1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2220],{240:(e,t,r)=>{r.d(t,{Ki:()=>l,jq:()=>a,xm:()=>s,yV:()=>u});var n=r(3965),i=r(7318),o=r(542),a=o.et?WeakMap:Map,s=o.En?WeakSet:Set,u=new n.DX,c=!1;function l(){c||(c=!0,!1!==globalThis.__DEV__&&i.V1.warn(64))}},427:(e,t,r)=>{e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(4232))},542:(e,t,r)=>{r.d(t,{En:()=>a,Sw:()=>c,et:()=>o,ol:()=>s,uJ:()=>u});var n=r(7318),i="ReactNative"==(0,n.no)(function(){return navigator.product}),o="function"==typeof WeakMap&&!(i&&!global.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,u=s&&Symbol.asyncIterator,c="function"==typeof(0,n.no)(function(){return window.document.createElement});(0,n.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},592:(e,t,r)=>{r.d(t,{c:()=>f});var n=r(9668),i=r(542),o=r(5813),a=r(7318),s=r(9853),u=r(3965),c=r(593);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?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(l,{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 n.b(i.et);this.performWork=(0,u.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.V1)(Array.isArray(n),104),r.lookupArray(n)},max:c.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,o.sw)(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}()},593:(e,t,r)=>{r.d(t,{v:()=>a});var n=r(4902),i=r(7318),o=Symbol.for("apollo.cacheSize"),a=(0,n.Cl)({},i.Sf[o])},929:(e,t,r)=>{r.d(t,{R:()=>ep});var n,i=r(4902),o=r(7318),a=r(2337),s=a.C.execute,u=r(4918),c=r(4812),l=r(996),f=r(4868),h=r(1211),p=r(1055),d=r(8922),v=r(6828),y=r(592),m=r(5072);function g(e,t,r){return new m.c(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()}})}var b=r(8166);function _(e){var t=E(e);return(0,b.E)(t)}function E(e){var t=(0,b.E)(e.errors)?e.errors.slice(0):[];return(0,f.ST)(e)&&(0,b.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var T=r(5813),O=r(8851),k=r(3957),w=r(8659);function C(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}var S=r(542);function D(e){function t(t){Object.defineProperty(e,t,{value:m.c})}return S.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function I(e){return e&&"function"==typeof e.then}var N=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),C(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),C(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?I(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"),C(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 m.c(t)]),I(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,i.C6)(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}(m.c);D(N);var x=r(3070);function A(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}));var R=r(9760),F=r(4962),V=r(9221),M=r(3965),P=r(1027),L=Object.assign,j=Object.hasOwnProperty,q=function(e){function t(r){var n=r.queryManager,o=r.queryInfo,a=r.options,s=this,u=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=Q)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(s.maskResult(n.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return u&&(n.queries.set(s.queryId,o),u=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=o,s.queryManager=n,s.waitForOwnResult=U(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=n.defaultOptions.watchQuery,l=(void 0===c?{}:c).fetchPolicy,f=void 0===l?"cache-first":l,h=a.fetchPolicy,p=void 0===h?f:h,d=a.initialFetchPolicy,v=void 0===d?"standby"===p?f:p:d;s.options=(0,i.Cl)((0,i.Cl)({},a),{initialFetchPolicy:v,fetchPolicy:p}),s.queryId=o.queryId||n.generateQueryId();var y=(0,T.Vu)(s.query);return s.queryName=y&&y.name&&y.name.value,s}return(0,i.C6)(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!1!==globalThis.__DEV__&&(0,P.S2)("observableQuery.result",function(){!1!==globalThis.__DEV__&&o.V1.warn(23)}),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){var t=this;void 0===e&&(e=!0);var r=(0,P.lz)("getLastResult",function(){return t.getLastResult(!0)}),o=this.queryInfo.networkStatus||r&&r.networkStatus||n.ready,a=(0,i.Cl)((0,i.Cl)({},r),{loading:A(o),networkStatus:o}),s=this.options.fetchPolicy,u=void 0===s?"cache-first":s;if(U(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(a.data=c.result),(0,l.L)(a.data,{})&&(a.data=void 0),c.complete?(delete a.partial,c.complete&&a.networkStatus===n.loading&&("cache-first"===u||"cache-only"===u)&&(a.networkStatus=n.ready,a.loading=!1)):a.partial=!0,a.networkStatus===n.ready&&(a.error||a.errors)&&(a.networkStatus=n.error),!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||a.loading||a.data||a.error||z(c.missing)}return e&&this.updateLastResult(a),a},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?!(0,V.a)(i,this.last.result,e,this.variables):!(0,l.L)(this.last.result,e))||t&&!(0,l.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,l.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&(0,P.S2)("getLastResult",function(){!1!==globalThis.__DEV__&&o.V1.warn(24)}),this.getLast("result",e)},t.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&(0,P.S2)("getLastError",function(){!1!==globalThis.__DEV__&&o.V1.warn(25)}),this.getLast("error",e)},t.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&(0,P.S2)("resetLastResults",function(){!1!==globalThis.__DEV__&&o.V1.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&o.V1.warn(27),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&&j.call(e,"variables")){var a=(0,T.AT)(this.query),s=a.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||o.V1.warn(28,e,(null==(t=a.name)?void 0:t.value)||a)}return e&&!(0,l.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,i.Cl)((0,i.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,n.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,i.Cl)((0,i.Cl)({},e.query?e:(0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,i.Cl)((0,i.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var s=this.queryInfo,u=s.networkStatus;s.networkStatus=n.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var c=new Set,l=null==e?void 0:e.updateQuery,f="no-cache"!==this.options.fetchPolicy;return f||(0,o.V1)(l,29),this.queryManager.fetchQuery(a,r,n.fetchMore).then(function(o){if
1(t.queryManager.removeQuery(a),s.networkStatus===n.fetchMore&&(s.networkStatus=u),f)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:o.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var h=t.getLast("result"),p=l(h.data,{fetchMoreResult:o.data,variables:r.variables});t.reportResult((0,i.Cl)((0,i.Cl)({},h),{networkStatus:u,loading:A(u),data:p}),t.variables)}return t.maskResult(o)}).finally(function(){f&&!c.has(t.query)&&t.reobserveCacheFirst()})},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,i.Cl)({subscriptionData:r},t))})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&o.V1.error(30,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&((0,P.cc)(e,"canonizeResults","setOptions"),(0,P.S2)("setOptions",function(){!1!==globalThis.__DEV__&&o.V1.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,R.o)(this.options,e||{});L(this.options,t)},t.prototype.setVariables=function(e){var t=this;return(0,l.L)(this.variables,e)?this.observers.size?(0,P.lz)("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},n.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){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,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,o.V1)(r,32),(t||(this.pollingInfo={})).interval=r;var i=function(){var t,r;e.pollingInfo&&(A(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},n.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};a()}}},t.prototype.updateLastResult=function(e,t){var r=this;void 0===t&&(t=this.variables);var n=(0,P.lz)("getLastError",function(){return r.getLastError()});return n&&this.last&&!(0,l.L)(t,this.last.variables)&&(n=void 0),this.last=(0,i.Cl)({result:this.queryManager.assumeImmutableResults?e:(0,F.m)(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var o=t===n.refetch||t===n.fetchMore||t===n.poll,a=this.options.variables,s=this.options.fetchPolicy,u=(0,R.o)(this.options,e||{}),c=o?u:L(this.options,u),f=this.transformDocument(c.query);this.lastQuery=f,!o&&(this.updatePolling(),e&&e.variables&&!(0,l.L)(e.variables,a)&&"standby"!==c.fetchPolicy&&(c.fetchPolicy===s||"function"==typeof c.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=n.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=U(c.fetchPolicy));var h=function(){r.concast===v&&(r.waitForOwnResult=!1)},p=c.variables&&(0,i.Cl)({},c.variables),d=this.fetch(c,t,f),v=d.concast,y=d.fromLink,m={next:function(e){(0,l.L)(r.variables,p)&&(h(),r.reportResult(e,p))},error:function(e){(0,l.L)(r.variables,p)&&((0,x.Mn)(e)||(e=new x.K4({networkError:e})),h(),r.reportError(e,p))}};return o||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=m),v.addObserver(m),v},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=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.last;(0,P.lz)("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=n,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this,n=(0,P.lz)("getLastError",function(){return r.getLastError()}),i=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||i)&&C(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=this,o=(0,i.Cl)((0,i.Cl)({},(0,P.lz)("getLastResult",function(){return r.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:n.error,loading:!1});this.updateLastResult(o,t),C(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,i.Cl)((0,i.Cl)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!A(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new M.DX,t}(m.c);function Q(e){!1!==globalThis.__DEV__&&o.V1.error(33,e.message,e.stack)}function z(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&o.V1.debug(34,e)}function U(e){return"network-only"===e||"no-cache"===e||"standby"===e}D(q);var B=r(8131),W=new(S.et?WeakMap:Map);function K(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return W.set(e,(W.get(e)+1)%1e15),r.apply(this,arguments)})}var Y=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;W.has(r)||(W.set(r,0),K(r,"evict"),K(r,"modify"),K(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||n.loading;return this.variables&&this.networkStatus!==n.loading&&!(0,l.L)(this.variables,e.variables)&&(t=n.setVariables),(0,l.L)(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.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,l.L)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,P.lz)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,P.lz)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,l.L)(n&&n.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.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,i.Cl)((0,i.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&(0,l.L)(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===W.get(this.cache)&&(0,l.L)(t,r.variables)&&(0,l.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,o=this,a=new B.ZI,s=(0,b.E)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,b.E)(e.incremental)){var u=(0,f.bd)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(G(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:W.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var a=o.getDiffOptions(r.variables),s=(0,P.lz)("canonizeResults",function(){return i.diff(a)});!o.stopped&&(0,l.L)(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=n.ready},e.prototype.markError=function(e){var t;return this.networkStatus=n.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function G(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!_(e);return!n&&r&&e.data&&(n=!0),n}var J=r(3322),$=r(9668),H=r(5682),X=r(593),Z=r(5958),ee=r(240),et=r(8347),er=Object.prototype.hasOwnProperty,en=Object.create(null),ei=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new H.A(X.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new $.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new y.c(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;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,o.vA)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,i.sH)(this,arguments,void 0,function(e){var t,r,n,a,s,u,c,l=e.mutation,f=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,v=void 0===d?[]:d,y=e.awaitRefetchQueries,m=void 0!==y&&y,b=e.update,T=e.onQueryUpdated,O=e.fetchPolicy,k=void 0===O?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":O,w=e.errorPolicy,C=void 0===w?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":w,S=e.keepRootFields,D=e.context;return(0,i.YH)(this,function(e){switch(e.label){case 0:if((0,o.V1)(l,36),(0,o.V1)("network-only"===k||"no-cache"===k,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,D)];case 1:f=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:f,fetchPolicy:k,errorPolicy:C,context:D,updateQueries:p,update:b,keepRootFields:S}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return g(s.getObservableFromLink(l,(0,i.Cl)((0,i.Cl)({},D),{optimisticResponse:a?h:void 0}),f,{},!1),function(e){if(_(e)&&"none"===C)throw new x.K4({graphQLErrors:E(e)});n&&(n.loading=!1,n.error=null);var r=(0,i.Cl)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===C&&_(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:C,context:D,update:b,updateQueries:p,awaitRefetchQueries:m,refetchQueries:v,removeOptimistic:a?t:void 0,onQueryUpdated:T,keepRootFields:S})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,i.Cl)((0,i.Cl)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:k,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof x.K4?e:new x.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&G(n,e.errorPolicy)){if((0,f.ST)(n)||o.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,f.ST)(n)&&(0,b.E)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),u=void 0;s.result&&(u=(0,f.bd)(s.result,n)),void 0!==u&&(n.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,i){var a=e.observableQuery,s=a&&a.queryName;if(s&&er.call(c,s)){var u=c[s],l=r.queries.get(i),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=u(d,{mutationResult:n,queryName:f&&(0,T.n4)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,f.YX)(n)||(0,f.ST)(n)&&!n.hasNext;if(s){if(!a){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,i.Cl)((0,i.Cl)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}a||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}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).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:en}):e;return n!==en&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,i.Cl)((0,i.Cl)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&o.V1.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(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:(0,h.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,h.d8)(["nonreactive"],e),nonReactiveQuery:(0,p.x3)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,T.wY)((0,T.Vu)(e)),asQuery:(0,i.Cl)((0,i.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,i.Cl)((0,i.Cl)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,i.Cl)((0,i.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,i.Cl)((0,i.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Y(this),n=new q({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,q.inactiveOnCreation.getValue()||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,o.V1)(e.query,38),(0,o.V1)("Document"===e.query.kind,39),(0,o.V1)(!e.returnPartialData,40),(0,o.V1)(!e.pollInterval,41);var n=this.transform(e.query);return this.fetchQuery(t,(0,i.Cl)((0,i.Cl)({},e),{query:n})).then(function(o){return o&&(0,i.Cl)((0,i.Cl)({},o),{data:r.maskOperation({document:n,data:o.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}
1),this.cancelPendingFetches((0,o.vA)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=n.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,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),a.set(e,!1);else if((0,O.Kc)(e)){var r=(0,J.y)(t.transform(e));n.set(r,(0,T.n4)(e)),a.set(r,!1)}else(0,k.U)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has((0,J.y)(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set((0,J.y)(o),!0))}}),s.size&&s.forEach(function(e){var n=(0,w.v)("legacyOneTimeQuery"),a=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),s=new q({queryManager:t,queryInfo:a,options:(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"network-only"})});(0,o.V1)(s.queryId===n),a.setObservableQuery(s),r.set(n,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&o.V1.warn(43,r):!1!==globalThis.__DEV__&&o.V1.warn(44)}}),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;(0,P.lz)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},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&&(G(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=_(n),s=(0,x.uR)(n);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[x.K$]),"none"===a||s)throw new x.K4(u)}return"ignore"===a&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new m.c(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){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,o){var a,u,c=this;void 0===o&&(o=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,h=l.clientQuery;if(f){var p=this.inFlightLinkObservables,d=this.link,y={query:f,variables:r,operationName:(0,T.n4)(f)||void 0,context:this.prepareContext((0,i.Cl)((0,i.Cl)({},t),{forceFetch:!o})),extensions:n};if(t=y.context,o){var b=(0,J.y)(f),_=(0,v.M)(r),E=p.lookup(b,_);if(!(u=E.observable)){var O=new N([s(d,y)]);u=E.observable=O,O.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?O.beforeNext(e):p.remove(b,_)})}}else u=new N([s(d,y)])}else u=new N([m.c.of({data:{}})]),t=this.prepareContext(t);return h&&(u=g(u,function(e){return c.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return g(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=E(a),u=s.length>0,c=r.errorPolicy;if(i>
1=e.lastRequestId){if(u&&"none"===c)throw e.markError(new x.K4({graphQLErrors:s}));e.markResult(a,o,r,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:n.ready};return u&&"none"===c&&(l.data=void 0),u&&"ignore"!==c&&(l.errors=s,l.networkStatus=n.error),l},function(t){var r=(0,x.Mn)(t)?t:new x.K4({networkError:t});throw i>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,i){var o,a,s=this;void 0===r&&(r=n.loading),void 0===i&&(i=t.query);var u=this.getVariables(i,t.variables),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:i,variables:u,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),g=function(n){m.variables=n;var i=s.fetchQueryByPolicy(e,m,r);return"standby"!==m.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)o=new N(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),a=!0;else{var _=g(m.variables);a=_.fromLink,o=new N(_.sources)}return o.promise.then(b,b),{concast:o,fromLink:a}},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,w.v)("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.queries.get(r)||e.queryInfo).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 Y&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;u&&(a||(a=(0,P.lz)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),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,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,u=e.id,c=null==(t=(0,T.Vu)(i))?void 0:t.operation,l=(null!=(r=null==c?void 0:c[0])?r:"o")+u;!this.dataMasking||"no-cache"!==s||(0,d.s6)(i)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&o.V1.warn(45,null!=(n=(0,T.n4)(i))?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&(0,ee.Ki)(),e;var n,i=(0,T.Vu)(t);return((0,o.V1)(i,63),null==e)?e:(0,Z.S)(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:(0,d.JG)((0,T.zK)(t)),cache:r,mutableTargets:new ee.jq,knownChanged:new ee.xm})}(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,et.z)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var o=this,a=t.query,s=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,f=t.errorPolicy,h=t.returnPartialData,p=t.context,d=t.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:a,variables:s,networkStatus:r});var y=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||n.loading);var u=t.result;!1===globalThis.__DEV__||h||(0,l.L)(u,{})||z(t.missing);var c=function(e){return m.c.of((0,i.Cl)({data:e,loading:A(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:u},context:p,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===f&&r===n.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},b="no-cache"===u?0:r===n.refetch&&"merge"!==c?1:2,_=function(){return o.getResultsFromLink(e,b,{query:a,variables:s,context:p,fetchPolicy:u,errorPolicy:f})},E=d&&"number"==typeof v&&v!==r&&A(r);switch(u){default:case"cache-first":var T=y();if(T.complete)return{fromLink:!1,sources:[g(T,e.markReady())]};if(h||E)return{fromLink:!0,sources:[g(T),_()]};return{fromLink:!0,sources:[_()]};case"cache-and-network":var T=y();if(T.complete||h||E)return{fromLink:!0,sources:[g(T),_()]};return{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[g(y(),e.markReady())]};case"network-only":if(E)return{fromLink:!0,sources:[g(y()),_()]};return{fromLink:!0,sources:[_()]};case"no-cache":if(E)return{fromLink:!0,sources:[g(e.getDiff()),_()]};return{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Y(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,i.Cl)((0,i.Cl)((0,i.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),eo=r(4968),ea=r(6968);function es(e){return e.kind===ea.b.FIELD||e.kind===ea.b.FRAGMENT_SPREAD||e.kind===ea.b.INLINE_FRAGMENT}var eu=r(8235),ec=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,B.D9)(t.resolvers,e)}):this.resolvers=(0,B.D9)(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,i.sH)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,i.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,s).then(function(e){return(0,i.Cl)((0,i.Cl)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,h.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,i.Cl)((0,i.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,i.sH)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,i.YH)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,i.Cl)((0,i.Cl)({},t),e.exportedVariables)})]:[2,(0,i.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,eo.YR)(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 eo.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,i.sH)(this,arguments,void 0,function(e,t,r,n,o,a){var s,u,c,l,f,h,p,v,y,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,i.YH)(this,function(g){return s=(0,T.Vn)(e),u=(0,T.zK)(e),c=(0,d.JG)(u),l=this.collectSelectionsToResolve(s,c),h=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,v=p.cache,y=p.client,m={fragmentMap:c,context:(0,i.Cl)((0,i.Cl)({},r),{cache:v,client:y}),variables:n,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,i.sH)(this,void 0,void 0,function(){var a,s,u,c,l,f=this;return(0,i.YH)(this,function(p){return a=n.fragmentMap,s=n.context,u=n.variables,c=[r],l=function(e){return(0,i.sH)(f,void 0,void 0,function(){var l,f;return(0,i.YH)(this,function(i){return(t||n.selectionsToResolve.has(e))&&(0,h.MS)(e,u)?(0,O.dt)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&c.push(((r={}
1)[(0,O.ue)(e)]=t,r))})]:((0,O.kd)(e)?l=e:(l=a[e.name.value],(0,o.V1)(l,21,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,B.IM)(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,i.sH)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,h,p,d=this;return(0,i.YH)(this,function(i){return r?(o=n.variables,u=(a=e.name.value)!==(s=(0,O.ue)(e)),l=Promise.resolve(c=r[s]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?a:s])&&(l=Promise.resolve(eu.bl.withValue(this.cache,p,[r,(0,O.MB)(e,o),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(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 a=new Set;n.set(i,a),(0,eo.YR)(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&es(e)&&a.add(e)})},FragmentSpread:function(n,i,s,u,c){var l=t[n.name.value];(0,o.V1)(l,22,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&es(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),el=r(8877),ef=r(7070),eh=!1,ep=function(){function e(e){var t,r,n,s=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,o.vA)(16);var l=e.uri,f=e.credentials,h=e.headers,p=e.cache,d=e.documentTransform,v=e.ssrMode,y=void 0!==v&&v,m=e.ssrForceFetchDelay,g=void 0===m?0:m,b=e.connectToDevTools,_=e.queryDeduplication,E=void 0===_||_,T=e.defaultOptions,O=e.defaultContext,k=e.assumeImmutableResults,w=void 0===k?p.assumeImmutableResults:k,C=e.resolvers,S=e.typeDefs,D=e.fragmentMatcher,I=e.clientAwareness,N=e.name,x=e.version,A=e.devtools,R=e.dataMasking;!1!==globalThis.__DEV__&&((0,P.cc)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,P.cc)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,P.cc)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,P.cc)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,P.cc)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,P.cc)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,P.cc)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||o.V1.warn(17));var F=e.link;F||(F=l?new c.P({uri:l,credentials:f,headers:h}):a.C.empty()),this.link=F,this.cache=p,this.disableNetworkFetches=y||g>0,this.queryDeduplication=E,this.defaultOptions=T||Object.create(null),this.typeDefs=S,this.devtoolsConfig=(0,i.Cl)((0,i.Cl)({},A),{enabled:null!=(t=null==A?void 0:A.enabled)?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return s.disableNetworkFetches=!1},g),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=u.r,this.localState=new ec({cache:p,client:this,resolvers:C,fragmentMatcher:D}),this.queryManager=new ei({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:O,documentTransform:d,queryDeduplication:E,ssrMode:y,dataMasking:!!R,clientAwareness:{name:null!=(r=null==I?void 0:I.name)?r:N,version:null!=(n=null==I?void 0:I.version)?n:x},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){s.devToolsHookCb&&s.devToolsHookCb({action:{},state:{queries:s.queryManager.getQueryStore(),mutations:s.queryManager.mutationStore||{}},dataWithOptimisticResults:s.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eh&&!1!==globalThis.__DEV__&&(eh=!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__&&o.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,el.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,P.cc)(e,"canonizeResults","client.watchQuery"),(0,P.cc)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,el.l)(this.defaultOptions.query,e)),(0,o.V1)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,P.cc)(e,"canonizeResults","client.query"),(0,P.cc)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&o.V1.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,el.l)(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,i.Cl)((0,i.Cl)({},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,i.Cl)((0,i.Cl)({},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 s(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__&&o.V1.debug(20,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}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ep.prototype.getMemoryInternals=ef.ep)},996:(e,t,r)=>{r.d(t,{A:()=>u,L:()=>s});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;let a=n.call(t);if(a!==n.call(r))return!1;switch(a){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(h(t,r))return!0;let n=c(t),o=c(r),a=n.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<a;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(h(t,r))return!0;let n=t.entries(),i="[object Map]"===a;for(;;){let t=n.next();if(t.done)break;let[o,a]=t.value;if(!r.has(o)||i&&!e(a,r.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,f)}}return!1}(e,t)}finally{a.clear()}}let u=s;function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}let f="{ [native code] }";function h(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},1027:(e,t,r)=>{r.d(t,{S2:()=>p,cc:()=>h,lz:()=>f});var n,i=r(4902),o=r(3965),a=r(7318),s=Symbol.for("apollo.deprecations"),u=Symbol.for("apollo.deprecations.slot"),c=a.Sf,l=null!=(n=c[u])?n:c[u]=new o.DX;function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return l.withValue.apply(l,(0,i.fX)([Array.isArray(e)?e:[e]],t,!1))}function h(e,t,r,n){void 0===n&&(n="Please remove this option."),p(t,function(){t in e&&!1!==globalThis.__DEV__&&a.V1.warn(103,r,t,n)})}function p(e,t){c[s]||(l.getValue()||[]).includes(e)||t()}},1055:(e,t,r)=>{r.d(t,{XY:()=>d,er:()=>y,iz:()=>p,x3:()=>m,zc:()=>v});var n=r(4902),i=r(7318),o=r(6968),a=r(4968),s=r(5813),u=r(8851),c=r(8922),l=r(8166),f={kind:o.b.FIELD,name:{kind:o.b.NAME,value:"__typename"}};function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function p(e,t){(0,s.sw)(t);for(var r,u,f,p=h(""),d=h(""),v=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.c)(r)){if(r.kind===o.b.OPERATION_DEFINITION)return p(r.name&&r.name.value);if(r.kind===o.b.FRAGMENT_DEFINITION)return d(r.name.value)}return!1!==globalThis.__DEV__&&i.V1.error(124),null},y=0,m=t.definitions.length-1;m>=0;--m)t.definitions[m].kind===o.b.OPERATION_DEFINITION&&++y;var g=(r=new Map,u=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,l.E)(e)&&e.map(g).some(function(e){return e&&e.remove})},_=new Map,E=!1,T={enter:function(e){if(b(e.directives))return E=!0,null}},O=(0,a.YR)(t,{Field:T,InlineFragment:T,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return E=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){_.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===_.get(JSON.stringify(n))?e:y>0&&e.selectionSet.selections.every(function(e){return e.kind===o.b.FIELD&&"__typename"===e.name.value})?(d(e.name.value).removed=!0,E=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return E=!0,null}}});if(!E)return t;var k=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){k(d(t)).transitiveVars.forEac
1h(function(t){e.transitiveVars.add(t)})})),e},w=new Set;O.definitions.forEach(function(e){e.kind===o.b.OPERATION_DEFINITION?k(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){w.add(e)}):e.kind!==o.b.FRAGMENT_DEFINITION||0!==y||d(e.name.value).removed||w.add(e.name.value)}),w.forEach(function(e){k(d(e)).fragmentSpreads.forEach(function(e){w.add(e)})});var C={enter:function(e){var t;if(t=e.name.value,!w.has(t)||d(t).removed)return null}};return f=(0,a.YR)(O,{FragmentSpread:C,FragmentDefinition:C,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=k(p(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.Cl)((0,n.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.Vu)(f)||(0,s.E4)(f),(0,c.JG)((0,s.zK)(f)))?f:null}var d=Object.assign(function(e){return(0,a.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.b.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.Cl)((0,n.Cl)({},e),{selections:(0,n.fX)((0,n.fX)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}});function v(e){return"query"===(0,s.Vn)(e).operation?e:(0,a.YR)(e,{OperationDefinition:{enter:function(e){return(0,n.Cl)((0,n.Cl)({},e),{operation:"query"})}}})}function y(e){return(0,s.sw)(e),p([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function m(e){return(0,s.sw)(e),(0,a.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,n.Cl)((0,n.Cl)({},e),{directives:(0,n.fX)((0,n.fX)([],e.directives||[],!0),[{kind:o.b.DIRECTIVE,name:{kind:o.b.NAME,value:"nonreactive"}}
1],!1)})}})}},1211:(e,t,r)=>{r.d(t,{MS:()=>a,d8:()=>s,f2:()=>u,s7:()=>c});var n=r(7318),i=r(4968),o=r(6968);function a(e,t){var r,i,o=e.directives;return!o||!o.length||(i=[],(r=o)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,o=e.name.value;(0,n.V1)(r&&1===r.length,106,o);var a=r[0];(0,n.V1)(a.name&&"if"===a.name.value,107,o);var s=a.value;(0,n.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),108,o),i.push({directive:e,ifArgument:a})}}),i).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.V1)(void 0!==o,105,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o})}function s(e,t,r){var n=new Set(e),o=n.size;return(0,i.YR)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<o}function u(e){return e&&s(["client","export"],e,!0)}function c(e){var t,r,i=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!i)return"mask";var a=null==(r=i.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&a&&(a.value.kind===o.b.VARIABLE?!1!==globalThis.__DEV__&&n.V1.warn(109):a.value.kind!==o.b.STRING?!1!==globalThis.__DEV__&&n.V1.warn(110):"migrate"!==a.value.value&&!1!==globalThis.__DEV__&&n.V1.warn(111,a.value.value)),a&&"value"in a.value&&"migrate"===a.value.value)?"migrate":"unmask"}},1500:(e,t,r)=>{r.d(t,{G:()=>i});var n=r(3957);function i(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,n.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.U)(e[r])&&t.add(e[r])})}),e}},2091:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(8659);function i(e,t){void 0===t&&(t=0);var r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},2311:(e,t,r)=>{r.d(t,{n:()=>E});var n,i,o=r(4902),a=r(427),s=r.t(a,2),u=r(8877),c=r(996),l=r(7318),f=r(5682),h=r(593),p=r(7070),d=r(1027);function v(e){var t;switch(e){case n.Query:t="Query";break;case n.Mutation:t="Mutation";break;case n.Subscription:t="Subscription"}return t}function y(e){(0,d.S2)("parser",function(){!1!==globalThis.__DEV__&&l.V1.warn(93)}),i||(i=new f.A(h.v.parser||1e3));var t,r,o=i.get(e);if(o)return o;(0,l.V1)(!!e&&!!e.kind,94,e);for(var a=[],s=[],u=[],c=[],p=0,v=e.definitions;p<v.length;p++){var y=v[p];if("FragmentDefinition"===y.kind){a.push(y);continue}if("OperationDefinition"===y.kind)switch(y.operation){case"query":s.push(y);break;case"mutation":u.push(y);break;case"subscription":c.push(y)}}(0,l.V1)(!a.length||s.length||u.length||c.length,95),(0,l.V1)(s.length+u.length+c.length<=1,96,e,s.length,c.length,u.length),r=s.length?n.Query:n.Mutation,s.length||u.length||(r=n.Subscription);var m=s.length?s:u.length?u:c;(0,l.V1)(1===m.length,97,e,m.length);var g=m[0];t=g.variableDefinitions||[];var b={name:g.name&&"Name"===g.name.kind?g.name.value:"data",type:r,variables:t};return i.set(e,b),b}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(n||(n={})),y.resetCache=function(){i=void 0},!1!==globalThis.__DEV__&&(0,p.D_)("parser",function(){return i?i.size:0});var m=r(3070),g=r(542),b=g.ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",_=g.Sw?a.useLayoutEffect:a.useEffect;function E(e,t){!1!==globalThis.__DEV__&&(r=t||{},i=a.useRef(!1),!1!==globalThis.__DEV__&&"ignoreResults"in r&&!i.current&&((0,d.cc)(r,"ignoreResults","useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly."),i.current=!0));var r,i,f,h,p,g,E,T,O,k,w=(f=null==t?void 0:t.client,p=a.useContext(((0,l.V1)("createContext"in s,69),(h=a.createContext[b])||(Object.defineProperty(a.createContext,b,{value:h=a.createContext({}),enumerable:!1,writable:!1,configurable:!0}),h.displayName="ApolloContext"),h)),g=f||p.client,(0,l.V1)(!!g,78),g);E=n.Mutation,T=(0,d.lz)("parser",y,[e]),O=v(E),k=v(T.type),(0,l.V1)(T.type===E,98,O,O,k);
1var C=a.useState({called:!1,loading:!1,client:w}),S=C[0],D=C[1],I=a.useRef({result:S,mutationId:0,isMounted:!0,client:w,mutation:e,options:t});_(function(){Object.assign(I.current,{client:w,options:t,mutation:e})});var N=a.useCallback(function(e){void 0===e&&(e={});var t=I.current,r=t.options,n=t.mutation,i=(0,o.Cl)((0,o.Cl)({},r),{mutation:n}),a=e.client||I.current.client;I.current.result.loading||i.ignoreResults||!I.current.isMounted||D(I.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:a});var s=++I.current.mutationId,l=(0,u.l)(i,e);return a.mutate(l).then(function(t){var r,n,i=t.data,o=t.errors,u=o&&o.length>0?new m.K4({graphQLErrors:o}):void 0,f=e.onError||(null==(r=I.current.options)?void 0:r.onError);if(u&&f&&f(u,l),s===I.current.mutationId&&!l.ignoreResults){var h={called:!0,loading:!1,data:i,error:u,client:a};I.current.isMounted&&!(0,c.L)(I.current.result,h)&&D(I.current.result=h)}var p=e.onCompleted||(null==(n=I.current.options)?void 0:n.onCompleted);return u||null==p||p(t.data,l),t},function(t){if(s===I.current.mutationId&&I.current.isMounted){var r,n={loading:!1,error:t,data:void 0,called:!0,client:a};(0,c.L)(I.current.result,n)||D(I.current.result=n)}var i=e.onError||(null==(r=I.current.options)?void 0:r.onError);if(i)return i(t,l),{data:void 0,errors:t};throw t})},[]),x=a.useCallback(function(){if(I.current.isMounted){var e={called:!1,loading:!1,client:I.current.client};Object.assign(I.current,{mutationId:0,result:e}),D(e)}},[]);return a.useEffect(function(){var e=I.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[N,(0,o.Cl)({reset:x},S)]}},2337:(e,t,r)=>{r.d(t,{C:()=>f});var n=r(7318),i=r(5072),o=r(4902),a=r(5813),s=r(1027);function u(e,t){return t?t(e):i.c.of()}function c(e){return"function"==typeof e?new f(e):e}function l(e){return e.request.length<=1}var f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=c(r),a=c(n||new e(u));return Object.assign(new e(l(o)&&l(a)?function(e){return t(e)?o.request(e)||i.c.of():a.request(e)||i.c.of()}:function(e,r){return t(e)?o.request(e,r)||i.c.of():a.request(e,r)||i.c.of()}),{left:o,right:a})},e.execute=function(e,t){var r,s,u,c,l;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n.vA)(58,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.n4)(s.query)||void 0:""),c=s,l=(0,o.Cl)({},u),Object.defineProperty(c,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,o.Cl)((0,o.Cl)({},l),e(l)):(0,o.Cl)((0,o.Cl)({},l),e)}}),Object.defineProperty(c,"getContext",{enumerable:!1,value:function(){return(0,o.Cl)({},l)}}),c))||i.c.of()},e.concat=function(t,r){var o=c(t);if(l(o))return!1!==globalThis.__DEV__&&n.V1.warn(47,o),o;var a=c(r);return Object.assign(new e(l(a)?function(e){return o.request(e,function(e){return a.request(e)||i.c.of()})||i.c.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.c.of()})||i.c.of()}),{left:o,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.vA)(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&(0,s.S2)("onError",function(){!1!==globalThis.__DEV__&&n.V1.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&n.V1.warn(50),this.onError=e,this},e}()},3070:(e,t,r)=>{r.d(t,{K$:()=>o,K4:()=>c,Mn:()=>s,uR:()=>a});var n=r(4902);r(7318);var i=r(3957),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,n.fX)((0,n.fX)((0,n.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.U)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(r){var i=r.graphQLErrors,o=r.protocolErrors,a=r.clientErrors,s=r.networkError,c=r.errorMessage,l=r.extraInfo,f=e.call(this,c)||this;return f.name="ApolloError",f.graphQLErrors=i||[],f.protocolErrors=o||[],f.clientErrors=a||[],f.networkError=s||null,f.message=c||u(f),f.extraInfo=l,f.cause=(0,n.fX)((0,n.fX)((0,n.fX)([s],i||[],!0),o||[],!0),a||[],!0).find(function(e){return!!e})||null,f.__proto__=t.prototype,f}return(0,n.C6)(t,e),t}(Error)},3322:(e,t,r)=>{r.d(t,{y:()=>g});var n,i=r(7518);let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}let s=["\\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"];var u=r(4968);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=d(e.variableDefinitions)?h("(\n",l(e.variableDefinitions,"\n"),"\n)"):h("(",l(e.variableDefinitions,", "),")"),r=h("",e.de
1scription,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>h("",i,"\n")+e+": "+t+h(" = ",r)+h(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=h("",e,": ")+t,a=o+h("(",l(r,", "),")");return a.length>80&&(a=o+h("(\n",p(l(r,"\n")),"\n)")),l([a,l(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+h(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",h("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>h("",o,"\n")+`fragment ${e}${h("(",l(r,", "),")")} `+`on ${t} ${h("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.yo)(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+h("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>h("",e,"\n")+l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["type",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>h("",e,"\n")+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+": "+n+h(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>h("",e,"\n")+l([t+": "+r,h("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["interface",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>h("",e,"\n")+l(["union",t,l(r," "),h("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>h("",e,"\n")+l(["enum",t,l(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>h("",e,"\n")+l(["input",t,l(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>h("",e,"\n")+"directive @"+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+h(" ",l(n," "))+(i?" repeatable":"")+" on "+l(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),h("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),f(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>l(["extend directive @"+e,l(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,h(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>l([e,h(".",t),h("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,h("(",t,":)")])}};function l(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function f(e){return h("{\n",p(l(e,"\n")),"\n}")}function h(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return h(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var v=r(5682),y=r(593),m=r(7070),g=Object.assign(function(e){var t=n.get(e);return t||(t=(0,u.YR)(e,c),n.set(e,t)),t},{reset:function(){n=new v.A(y.v.print||2e3)}});g.reset(),!1!==globalThis.__DEV__&&(0,m.D_)("print",function(){return n?n.size:0})},3957:(e,t,r)=>{r.d(t,{U:()=>n});function n(e){return null!==e&&"object"==typeof e}},3965:(e,t,r)=>{let n;r.d(t,{DX:()=>h,yN:()=>F,LV:()=>P});var i=r(9668),o=r(6898);let a=null,s={},u=1;function c(e){try{return e()}catch(e){}}let l="@wry/context:Slot",f=c(()=>globalThis)||c(()=>global)||Object.create(null),h=f[l]||Array[l]||function(e){try{Object.defineProperty(f,l,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",u++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=a;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===s)break;return e!==a&&(a.slots[this.id]=t),!0}return a&&(a.slots[this.id]=s),!1}getValue(){if(this.hasValue())return a.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=a;a={parent:o,slots:i};try{return t.apply(n,r)}finally{a=o}}static bind(e){let t=a;return function(){let r=a;try{return a=t,e.apply(this,arguments)}finally{a=r}}}static noContext(e,t,r){if(!a)return e.apply(r,t);{let n=a;try{return a=null,e.apply(r,t)}finally{a=n}}}}),{bind:p,noContext:d}=h,v=new h,{hasOwnProperty:y}=Object.prototype,m=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function g(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let b=[];function _(e,t){if(!e)throw Error(t||"assertion failure")}function E(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function T(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class O{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,++O.count}peek(){if(1===this.value.length&&!C(this))return k(this),this.value[0]}recompute(e){var t,r,n;return _(!this.recomputing,"already recomputing"),k(this),C(this)?(t=this,r=e,x(t),v.withValue(t,w,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{g(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,C(n)||function(e){S(e,I)}(n)),T(t.value)):T(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,S(e,D),g(this))}dispose(){this.setDirty(),x(this),S(this,(e,t)=>{e.setDirty(),A(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=b.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(m(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),b.push(this.deps),this.deps=null)}}function k(e){let t=v.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),C(e)?D(t,e):I(t,e),t}function w(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&&!E(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 C(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}O.count=0;function S(e,t){let r=e.parents.size;if(r){let n=m(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function D(e,t){_(e.childValues.has(t)),_(C(t));let r=!C(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=b.pop()||new Set;e.dirtyChildren.add(t),r&&S(e,D)}function I(e,t){_(e.childValues.has(t)),_(!C(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):E(r,t.value)||e.setDirty(),N(e,t),C(e)||S(e,I)}function N(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(b.length<100&&b.push(r),e.dirtyChildren=null))}function x(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{A(e,r)}),e.forgetDeps(),_(null===e.dirtyChildren)}function A(e,t){t.parents.delete(e),e.childValues.delete(t),N(e,t)}let R={setDirty:!0,dispose:!0,forget:!0};function F(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=v.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(g(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&y.call(R,r)?r:"setDirty";m(n).forEach(e=>e[i]()),t.delete(e),g(n)}},n}function V(...e){return(n||(n=new i.b("function"==typeof WeakMap))).lookupArray(e)}let M=new Set;function P(e,{max:t=65536,keyArgs:r,makeCacheKey:n=V,normalizeResult:i,subscribe:a,cache:s=o.C}=Object.create(null)){let u="function"==typeof s?new s(t,e=>e.dispose()):s,c=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=u.get(t);o||(u.set(t,o=new O(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>u.delete(t));let s=o.recompute(Array.prototype.slice.call(arguments));
1return u.set(t,o),M.add(u),v.hasValue()||(M.forEach(e=>e.clean()),M.clear()),s};function l(e){let t=e&&u.get(e);t&&t.setDirty()}function f(e){let t=e&&u.get(e);if(t)return t.peek()}function h(e){return!!e&&u.delete(e)}return Object.defineProperty(c,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:u}),c.dirtyKey=l,c.dirty=function(){l(n.apply(null,arguments))},c.peekKey=f,c.peek=function(){return f(n.apply(null,arguments))},c.forgetKey=h,c.forget=function(){return h(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}},4812:(e,t,r)=>{r.d(t,{P:()=>S});var n=r(4902),i=r(2337),o=r(7318),a=r(1211),s=r(5072),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,o.vA)(54,t,e.message);throw n.parseError=e,n}return r},c=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},l=r(542);function f(e){var t={next:function(){return e.read()}};return l.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var h=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},p=r(3070),d=r(4868),v=Object.prototype.hasOwnProperty;function y(e,t){e.status>=300&&h(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 m=function(e){if(!e&&"undefined"==typeof fetch)throw(0,o.vA)(51)},g=r(3322),b={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},_=function(e,t){return t(e)};function E(e){return new s.c(function(t){t.error(e)})}var T=r(4968),O=r(1055),k=r(5813),w=(0,o.no)(function(){return fetch}),C=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,C=e.fetch,S=e.print,D=void 0===S?_:S,I=e.includeExtensions,N=e.preserveHeaderCase,x=e.useGETForQueries,A=e.includeUnusedVariables,R=void 0!==A&&A,F=(0,n.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&m(C||w);var V={http:{includeExtensions:I,preserveHeaderCase:N},options:F.fetchOptions,credentials:F.credentials,headers:F.headers};return new i.C(function(e){var t,i,m,_,S,I,N=c(e,r),A=e.getContext(),F={};if(A.clientAwareness){var M=A.clientAwareness,P=M.name,L=M.version;P&&(F["apollographql-client-name"]=P),L&&(F["apollographql-client-version"]=L)}var j=(0,n.Cl)((0,n.Cl)({},F),A.headers),q={http:A.http,options:A.fetchOptions,credentials:A.credentials,headers:j};if((0,a.d8)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&o.V1.warn(52);var Q=(0,O.er)(e.query);if(!Q)return E(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=Q}var z=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.Cl)((0,n.Cl)((0,n.Cl)({},o),e.options),{headers:(0,n.Cl)((0,n.Cl)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.Cl)((0,n.Cl)({},a),e.http)}),o.headers&&(o.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}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,g.y)),{options:o,body:f}}(e,D,b,V,q),U=z.options,B=z.body;B.variables&&!R&&(t=B.variables,i=e.query,m=(0,n.Cl)({},t),_=new Set(Object.keys(t)),(0,T.YR)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&_.delete(e.name.value)}}),_.forEach(function(e){delete m[e]}),B.variables=m),U.signal||"undefined"==typeof AbortController||(U.signal=(I=new AbortController).signal);var W="OperationDefinition"===(S=(0,k.Vn)(e.query)).kind&&"subscription"===S.operation,K=(0,a.d8)(["defer"],e.query);if(x&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(U.method="GET"),K||W){U.headers=U.headers||{};var Y="multipart/mixed;";W&&K&&!1!==globalThis.__DEV__&&o.V1.warn(53),W?Y+="boundary=graphql;subscriptionSpec=1.0,application/json":K&&(Y+="deferSpec=20220824,application/json"),U.headers.accept=Y}if("GET"===U.method){var G=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=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(N,B),J=G.newURI,$=G.parseError;if($)return E($);N=J}else try{U.body=u(B,"Payload")}catch(e){return E(e)}return new s.c(function(t){var r=C||(0,o.no)(function(){return fetch})||w,i=t.next.bind(t);return r(N,U).then(function(t){e.setContext({response:t});var r,o=null==(r=t.headers)?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,n.sH)(this,void 0,void 0,function(){var r,i,o,a,s,u,c,h,v,m,g,b,_,E,T,O,k,w,C,S,D,I,N;return(0,n.YH)(this,function(x){switch(x.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"),i=null==(N=e.headers)?void 0:N.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",c=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,l.uJ&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return f(s.getReader());if(s.stream)return f(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)}))}},l.uJ&&(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 l.uJ&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,x.label=1;case 1:if(!h)return[3,3];return[4,c.next()];case 2:for(m=(v=x.sent()).value,g=v.done,b="string"==typeof m?m:r.decode(m),_=u.length-s.length+1,h=!g,u+=b,E=u.indexOf(s,_);E>-1;){if(T=void 0,T=(D=[u.slice(0,E),u.slice(E+s.length)])[0],u=D[1],O=T.indexOf("\r\n\r\n"),(k=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}(T.slice(0,O))["content-type"])&&-1===k.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(w=T.slice(O)){if(Object.keys(C=y(e,w)).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if((0,d.Nw)(C)){if(S={},"payload"in C){if(1===Object.keys(C).length&&null===C.payload)return[2];S=(0,n.Cl)({},C.payload)}"errors"in C&&(S=(0,n.Cl)((0,n.Cl)({},S),{extensions:(0,n.Cl)((0,n.Cl)({},"extensions"in S?S.extensions:null),((I={})[p.K$]=C.errors,I))})),t(S)}else t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2]}E=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return y(t,e)}).then(function(r){return Array.isArray(r)||v.call(r,"data")||v.call(r,"errors")||h(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(){I=void 0,t.complete()}).catch(function(e){I=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){I&&I.abort()}})})},S=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,C(t).request)||this;return r.options=t,r}return(0,n.C6)(t,e),t}(i.C)},4868:(e,t,r)=>{r.d(t,{Nw:()=>u,ST:()=>a,YX:()=>s,bd:()=>c});var n=r(3957),i=r(8166),o=r(8131);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.U)(e)&&"payload"in e}function c(e,t){var r=e,n=new o.ZI;return a(t)&&(0,i.E)(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}},4902:(e,t,r)=>{r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>u,fX:()=>c,sH:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var c=[s,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}Object.create;function c(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},4918:(e,t,r)=>{r.d(t,{r:()=>n});var n="3.14.1"},4962:(e,t,r)=>{r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);
1return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},4968:(e,t,r)=>{r.d(t,{YR:()=>u,sP:()=>s});var n=r(8287),i=r(7016),o=r(6158),a=r(6968);let s=Object.freeze({});function u(e,t,r=o.aD){let c,l,f,h=new Map;for(let e of Object.values(a.b))h.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 p=Array.isArray(e),d=[e],v=-1,y=[],m=e,g=[],b=[];do{var _,E,T;let e,a=++v===d.length,u=a&&0!==y.length;if(a){if(l=0===b.length?void 0:g[g.length-1],m=f,f=b.pop(),u)if(p){m=m.slice();let e=0;for(let[t,r]of y){let n=t-e;null===r?(m.splice(n,1),e++):m[n]=r}}else for(let[e,t]of(m={...m},y))m[e]=t;v=c.index,d=c.keys,y=c.edits,p=c.inArray,c=c.prev}else if(f){if(null==(m=f[l=p?v:d[v]]))continue;g.push(l)}if(!Array.isArray(m)){(0,o.Ll)(m)||(0,n.U)(!1,`Invalid AST Node: ${(0,i.N)(m)}.`);let r=a?null==(_=h.get(m.kind))?void 0:_.leave:null==(E=h.get(m.kind))?void 0:E.enter;if((e=null==r?void 0:r.call(t,m,l,f,g,b))===s)break;if(!1===e){if(!a){g.pop();continue}}else if(void 0!==e&&(y.push([l,e]),!a))if((0,o.Ll)(e))m=e;else{g.pop();continue}}void 0===e&&u&&y.push([l,m]),a?g.pop():(c={inArray:p,index:v,keys:d,edits:y,prev:c},d=(p=Array.isArray(m))?m:null!=(T=r[m.kind])?T:[],v=-1,y=[],f&&b.push(f),f=m)}while(void 0!==c);return 0!==y.length?y[y.length-1][1]:e}},5072:(e,t,r)=>{function n(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 i(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 o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{c:()=>T});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:T}function d(e){d.log?d.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){d(e)}})}function y(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=h(t,"unsubscribe");r&&r.call(t)}}catch(e){d(e)}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=h(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(m(e),i)i.call(n,r);else throw r;break;case"complete":m(e),i&&i.call(n)}}catch(e){d(e)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function b(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}],v(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}g(e,t,r)}}var _=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new E(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&&(m(this),y(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),T=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 _(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(p(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(p(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=p(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=p(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=p(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[l]=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 i=h(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof T&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=h(t,c)))return new r(function(e){v(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){v(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){v(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();a()&&Object.defineProperty(T,Symbol("extensions"),{value:{symbol:l,hostReportError:d},configurable:!0})},5682:(e,t,r)=>{r.d(t,{A:()=>s,V:()=>u});var n=r(9853),i=r(6898),o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(function(){e.clean(),o.delete(e)},100)))}var s=function(e,t){var r=new n.l(e,t);return r.set=function(e,t){var r=n.l.prototype.set.call(this,e,t);return a(this),r},r},u=function(e,t){var r=new i.C(e,t);return r.set=function(e,t){var r=i.C.prototype.set.call(this,e,t);return a(this),r},r}},5813:(e,t,r)=>{r.d(t,{AT:()=>c,E4:()=>l,Vn:()=>f,Vu:()=>a,n4:()=>s,sw:()=>o,wY:()=>h,zK:()=>u});var n=r(7318),i=r(8851);function o(e){(0,n.V1)(e&&"Document"===e.kind,115);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(116,e.kind);return e});return(0,n.V1)(t.length<=1,117,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.V1)(t&&"query"===t.operation,118),t}function l(e){(0,n.V1)("Document"===e.kind,119),(0,n.V1)(e.definitions.length<=1,120);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,121),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n.vA)(122)}function h(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},5944:(e,t,r)=>{r.d(t,{D:()=>eS});var n=r(4902),i=r(7318),o=r(3965),a=r(996),s=r(8922),u=r(593),c=r(5813),l=r(5072),f=r(8131),h=r(9853),p=r(7070),d=r(9221),v=r(8347),y=r(1027),m=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.LV)(s.ct,{max:u.v["cache.fragmentQueryDocuments"]||1e3,cache:h.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
1ptimistic?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){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.readQuery"),(0,y.lz)("canonizeResults",function(){return r.read((0,n.Cl)((0,n.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,o=e.fragment,a=e.fragmentName,s=e.from,u=e.optimistic,h=(0,n.Tt)(e,["fragment","fragmentName","from","optimistic"]),p=this.getFragmentDoc(o,a),y=void 0===s||"string"==typeof s?s:this.identify(s),m=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var g=a||(0,c.E4)(o).name.value;y||!1===globalThis.__DEV__||i.V1.warn(1,g)}var b=(0,n.Cl)((0,n.Cl)({},h),{returnPartialData:!0,id:y,query:p,optimistic:void 0===u||u});return new l.c(function(i){return r.watch((0,n.Cl)((0,n.Cl)({},b),{immediate:!0,callback:function(s){var u=m?(0,v.z)(s.result,o,r,a):s.result;if(!(t&&(0,d.a)(p,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=(0,f.IM)(s.missing.map(function(e){return e.missing}))),t=(0,n.Cl)((0,n.Cl)({},s),{result:u}),i.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.readFragment"),(0,y.lz)("canonizeResults",function(){return r.read((0,n.Cl)((0,n.Cl)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.Tt)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var i=(0,y.lz)("canonizeResults",function(){return r.readQuery(e)}),o=t(i);return null==o?i:(r.writeQuery((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var i=(0,y.lz)("canonizeResults",function(){return r.readFragment(e)}),o=t(i);return null==o?i:(r.writeFragment((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(m.prototype.getMemoryInternals=p.tQ);var g=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,n.C6)(t,e),t}(Error),b=r(592),_=r(1055),E=r(6828),T=r(3322),O=r(8851),k=r(6968),w=r(542),C=r(9760),S=r(1211),D=r(1500),I=r(3957),N=r(9668),x=r(8166),A=Object.prototype.hasOwnProperty;function R(e){return null==e}function F(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=R(n)?R(i)?void 0:{_id:i}:{id:n}),R(n)&&!R(i)&&(n=i),!R(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var V={dataIdFromObject:F,addTypename:!0,resultCaching:!0,canonizeResults:!1};function M(e){var t=e.canonizeResults;return void 0===t?V.canonizeResults:t}var P=/^[_a-z][_0-9a-z]*/i;function L(e){var t=e.match(P);return t?t[0]:e}function j(e){return(0,I.U)(e)&&!(0,O.A_)(e)&&!(0,x.c)(e)}function q(e,t){var r=(0,s.JG)((0,c.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var Q=Object.create(null),z=function(){return Q},U=Object.create(null),B=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,D.G)((0,O.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,O.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,O.WU)(e);if((0,O.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,O.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.Cl)({},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),A.call(this.data,e)){var r=this.data[e];if(r&&A.call(r,t))return r[t]}return"__typename"===t&&A.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Y?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),A.call(this.data,e))?this.data[e]:this instanceof Y?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,O.A_)(e)&&(e=e.__ref),(0,O.A_)(t)&&(t=t.__ref);
1var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.V1)("string"==typeof r,2);var s=new f.ZI(J).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=L(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof Y||delete s[e]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,u=!0,c={DELETE:Q,INVALIDATE:U,isReference:O.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,O.WU)(e)}:t,{store:r})}};if(Object.keys(o).forEach(function(l){var f=L(l),h=o[l];if(void 0!==h){var p="function"==typeof t?t:t[l]||t[f];if(p){var d=p===z?Q:p((0,D.G)(h),(0,n.Cl)((0,n.Cl)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(d===U)r.group.dirty(e,l);else if(d===Q&&(d=void 0),d!==h&&(a[l]=d,s=!0,h=d,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.V1.warn(3,e),!0};if((0,O.A_)(d))v(d);else if(Array.isArray(d))for(var y=!1,m=void 0,g=0,b=d;g<b.length;g++){var _=b[g];if((0,O.A_)(_)){if(y=!0,v(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(y&&void 0!==m){!1!==globalThis.__DEV__&&i.V1.warn(4,m);break}}}}void 0!==h&&(u=!1)}}),s)return this.merge(e,a),u&&(this instanceof Y?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]=z,n):z)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(A.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Y&&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){A.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&&A.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.Tt)(e,["__META"]);
1Object.keys(i).forEach(function(e){t.merge(e,i[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 Y?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){A.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 Y;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!A.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,O.A_)(e)&&(t[e.__ref]=!0),(0,I.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,I.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),W=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.yN)():null,this.keyMaker=new N.b(w.et)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=L(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 K(e,t){$(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new W(void 0===n||n))||this;return o.stump=new G(o),o.storageTrie=new N.b(w.et),i&&o.replace(i),o}return(0,n.C6)(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}(e);e.Root=t}(B||(B={}));var Y=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,n.C6)(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,a.L)(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,n.Cl)((0,n.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return A.call(this.data,t)?(0,n.Cl)((0,n.Cl)({},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}(B),G=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new W(t.group.caching,t.group))||this}return(0,n.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Y);function J(e,t,r){var n=e[r],i=t[r];return(0,a.L)(n,i)?n:i}function $(e){return!!(e instanceof B&&e.group.caching)}var H=function(){function e(){this.known=new(w.En?WeakSet:Set),this.pool=new N.b(w.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,I.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,I.U)(e)){var t=(0,I.U)(e)?(0,x.c)(e)?e.slice(0):(0,n.Cl)({__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,I.U)(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 X(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Z=function(){function e(e){var t=this;this.knownResults=new(w.et?WeakMap:Map),this.config=(0,C.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:M(e)}),this.canon=e.canon||new H,this.executeSelectionSet=(0,o.LV)(function(e){var r,i=e.context.canonizeResults,o=X(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.Cl)((0,n.Cl)({},a),{result:t.canon.admit(a.result)}):a:(K(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:X,makeCacheKey:function(e,t,r,n){if($(r.store))return r.store.makeCacheKey(e,(0,O.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.LV)(function(e){return K(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if($(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new H},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,o=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;a=(0,n.Cl)((0,n.Cl)({},(0,c.wY)((0,c.AT)(i))),a);var h=(0,O.WU)(void 0===o?"ROOT_QUERY":o),p=this.executeSelectionSet({selectionSet:(0,c.Vn)(i).selectionSet,objectOrReference:h,enclosingRef:h,context:(0,n.Cl)({store:r,query:i,policies:f,variables:a,varString:(0,E.M)(a),canonizeResults:l},q(i,this.config.fragments))});if(p.missing&&(t=[new g(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,i,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if($(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,o=e.objectOrReference,a=e.enclosingRef,u=e.context;if((0,O.A_)(o)&&!u.policies.rootTypenamesById[o.__ref]&&!u.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var c=u.variables,l=u.policies,h=u.store.getFieldValue(o,"__typename"),p=[],d=new f.ZI;function v(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof h&&!l.rootIdsByTypename[h]&&p.push({__typename:h});var y=new Set(n.selections);
1y.forEach(function(e){var n,f;if((0,S.MS)(e,c))if((0,O.dt)(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:u.variables,from:o},u),g=(0,O.ue)(e);void 0===m?_.XY.added(e)||(t=d.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat((0,O.A_)(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),n))):(0,x.c)(m)?m.length>0&&(m=v(r.executeSubSelectedArray({field:e,array:m,enclosingRef:a,context:u}),g)):e.selectionSet?null!=m&&(m=v(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,O.A_)(m)?m:a,context:u}),g)):u.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&p.push(((f={})[g]=m,f))}else{var b=(0,s.HQ)(e,u.lookupFragment);if(!b&&e.kind===k.b.FRAGMENT_SPREAD)throw(0,i.vA)(10,e.name.value);b&&l.fragmentMatches(b,h)&&b.selectionSet.selections.forEach(y.add,y)}});var m={result:(0,f.IM)(p),missing:t},g=u.canonizeResults?this.canon.admit(m):(0,D.G)(m);return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new f.ZI;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,x.c)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,O.A_)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,I.U)(r)&&((0,i.V1)(!(0,O.A_)(r),11,(0,O.A_)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),ee=r(4962),et=r(2091),er=r(8235),en=Object.create(null);function ei(e){var t=JSON.stringify(e);return en[t]||(en[t]=Object.create(null))}function eo(e){var t=ei(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=es(e,function(e){var o=ec(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&A.call(t,e[0])&&(o=ec(t,e,eu)),(0,i.V1)(void 0!==o,5,e.join("."),t),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function ea(e){var t=ei(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(es(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,x.E)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,O.MB)(s,i);return u&&ec(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&A.call(i,c)){var l=e.slice(0);return l[0]=c,ec(i,l)}return}if(t)return ec(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function es(e,t){var r=new f.ZI;return(function e(t){var r=ei(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,x.c)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,x.c)(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 eu(e,t){return e[t]}function ec(e,t,r){return r=r||eu,function e(t){return(0,I.U)(t)?(0,x.c)(t)?t.map(e):es(Object.keys(t).sort(),function(e){return ec(t,e)}):t}(t.reduce(function e(t,n){return(0,x.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}var el=r(240);function ef(e){return void 0!==e.args?e.args:e.field?(0,O.MB)(e.field,e.variables):null}var eh=function(){},ep=function(e,t){return t.fieldName},ed=function(e,t,r){return(0,r.mergeObjects)(e,t)},ev=function(e,t){return t},ey=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,n.Cl)({dataIdFromObject:F},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,i,o=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,n.Cl)((0,n.Cl)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eg(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;return el.yV.withValue(!0,function(){for(;l;){var t=l((0,n.Cl)((0,n.Cl)({},e),s),u);if((0,x.c)(t))l=eo(t);else{i=t;break}}}),i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,n.Tt)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),A.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ed:!1===t?ev:e.merge}a(n,t.merge),n.keyFn=!1===i?eh:(0,x.c)(i)?eo(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var 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?ep:(0,x.c)(s)?ea(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||ep)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.V1)(!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(P);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!A.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(r,(0,n.Tt)(i,["fields"])),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},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 o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var p=u[h];if(p.has(a))return s.has(a)||(f&&!1!==globalThis.__DEV__&&i.V1.warn(7,t,a),s.add(a)),!0;p.forEach(c),l&&h===u.length-1&&function e(t,r,n){return!!(0,I.U)(r)&&((0,x.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,O.dt)(t)&&(0,S.MS)(t,n)){var i=(0,O.ue)(t);return A.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=ef(e);o;){var u=o(s,a);if((0,x.c)(u))o=ea(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,O.Ii)(e.field,e.variables):(0,O.o5)(n,ef(e))),!1===t)?n:n===L(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=L(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o),u=s&&s.read;if(u){var c=em(this,r,e,t,t.store.getStorage((0,O.A_)(r)?r.__ref:r,i));return er.bl.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),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===ed?eb(n.store)(e,t):s===ev?t:(n.overwrite&&(e=void 0),s(e,t,em(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function em(e,t,r,n,i){var o=e.getStoreFieldName(r),a=L(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:ef(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:O.A_,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(eg(arguments,t,s),n)},mergeObjects:eb(n.store)}}function eg(e,t,r){var o,a=e[0],s=e[1],u=e.length;return"string"==typeof a?o={fieldName:a,from:u>1?s:t}:(o=(0,n.Cl)({},a),A.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.V1.warn(8,(0,et.p)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function eb(e){return function(t,r){if((0,x.c)(t)||(0,x.c)(r))throw(0,i.vA)(9);if((0,I.U)(t)&&(0,I.U)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,O.A_)(t)&&j(r))return e.merge(t.__ref,r),t;if(j(t)&&(0,O.A_)(r))return e.merge(t,r.__ref),r;if(j(t)&&j(r))return(0,n.Cl)((0,n.Cl)({},t),r)}return r}}function e_(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.Cl)((0,n.Cl)({},e),{clientOnly:t,deferred:r})),o}var eE=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,o=t.query,s=t.result,u=t.dataId,l=t.variables,h=t.overwrite,p=(0,c.Vu)(o),d=new f.ZI;l=(0,n.Cl)((0,n.Cl)({},(0,c.wY)(p)),l);var v=(0,n.Cl)((0,n.Cl)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
1(e,t)},variables:l,varString:(0,E.M)(l)},q(o,this.fragments)),{overwrite:!!h,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:v});if(!(0,O.A_)(y))throw(0,i.vA)(12,s);return v.incomingById.forEach(function(t,o){var s=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,l=(0,O.WU)(o);if(u&&u.map.size){var f=r.applyMerges(u,l,s,v);if((0,O.A_)(f))return;s=f}if(!1!==globalThis.__DEV__&&!v.overwrite){var h=Object.create(null);c.forEach(function(e){e.selectionSet&&(h[e.name.value]=!0)});var p=function(e){var t=u&&u.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(s).forEach(function(e){!0!==h[L(e)]||p(e)||function(e,t,r,o){var s=function(e){var t=o.getFieldValue(e,r);return"object"==typeof t&&t},u=s(e);if(u){var c=s(t);if(!(!c||(0,O.A_)(u)||(0,a.L)(u,c)||Object.keys(u).every(function(e){return void 0!==o.getFieldValue(c,e)}))){var l=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),f=L(r),h="".concat(l,".").concat(f);if(!eC.has(h)){eC.add(h);var p=[];(0,x.c)(u)||(0,x.c)(c)||[u,c].forEach(function(e){var t=o.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),!1!==globalThis.__DEV__&&i.V1.warn(15,f,l,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",h,(0,n.Cl)({},u),(0,n.Cl)({},c))}}}}(l,s,e,v.store)})}e.merge(o,s)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,O.D$)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var h=function(){var e=eg(arguments,l,s.variables);if((0,O.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.Cl)((0,n.Cl)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},p=new Set;this.flattenFields(a,o,s,f).forEach(function(e,r){var n,a=o[(0,O.ue)(r)];if(p.add(r),void 0!==a){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),d=eO(u,s),v=t.processFieldValue(a,r,r.selectionSet?e_(e,!1,!1):e,d),y=void 0;r.selectionSet&&((0,O.A_)(v)||j(v))&&(y=h("__typename",v));var m=c.getMergeFunction(f,r.name.value,y);m?d.info={field:r,typename:f,merge:m}:ew(u,s),l=e.merge(l,((n={})[s]=v,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||_.XY.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||i.V1.error(13,(0,O.ue)(r),o)});try{var d=c.identify(o,{typename:f,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:l,readField:h}),v=d[0],y=d[1];r=r||v,y&&(l=s.merge(l,y))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,O.WU)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(a)>=0||(g.push(a),this.reader&&this.reader.isFresh(o,m,a,s)))return m;var b=s.incomingById.get(r);return b?(b.storeObject=s.merge(b.storeObject,l),b.mergeTree=function e(t,r){if(t===r||!r||ek(r))return t;if(!t||ek(t))return r;var i=t.info&&r.info?(0,n.Cl)((0,n.Cl)({},t.info),r.info):t.info||r.info,o=t.map.size&&r.map.size,a={info:i,map:o?new Map:t.map.size?t.map:r.map};if(o){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(b.mergeTree,u),p.forEach(function(e){return b.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:ek(u)?void 0:u,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,x.c)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,eO(n,o));return ew(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,ee.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,O.D$)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,u=new N.b(!1);return!function e(c,l){var f=u.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(u){if((0,S.MS)(u,r.variables)){var c=l.clientOnly,f=l.deferred;
1if(!(c&&f)&&(0,x.E)(u.directives)&&u.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var n=(0,O.MB)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,O.dt)(u)){var h=o.get(u);h&&(c=c&&h.clientOnly,f=f&&h.deferred),o.set(u,e_(r,c,f))}else{var p=(0,s.HQ)(u,r.lookupFragment);if(!p&&u.kind===k.b.FRAGMENT_SPREAD)throw(0,i.vA)(14,u.name.value);p&&a.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,e_(r,c,f))}}}))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s=this;if(e.map.size&&!(0,O.A_)(r)){var u,c,l=!(0,x.c)(r)&&((0,O.A_)(t)||j(t))?t:void 0,f=r;l&&!a&&(a=[(0,O.A_)(l)?l.__ref:l]);var h=function(e,t){return(0,x.c)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=h(l,t),n=h(f,t);if(void 0!==n){a&&a.push(t);var u=s.applyMerges(e,r,n,o,a);u!==n&&(c=c||new Map).set(t,u),a&&(0,i.V1)(a.pop()===t)}}),c&&(r=(0,x.c)(f)?f.slice(0):(0,n.Cl)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):r},e}(),eT=[];function eO(e,t){var r=e.map;return r.has(t)||r.set(t,eT.pop()||{map:new Map}),r.get(t)}function ek(e){return!e||!(e.info||e.map.size)}function ew(e,t){var r=e.map,n=r.get(t);n&&ek(n)&&(eT.push(n),r.delete(t))}var eC=new Set,eS=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new b.c(_.XY),n.assumeImmutableResults=!0,n.makeVar=er.UT,n.txCount=0,!1!==globalThis.__DEV__&&((0,y.cc)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,y.cc)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r=t,n.config=(0,C.o)(V,r),n.addTypename=!!n.config.addTypename,n.policies=new ey({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,n.C6)(t,e),t.prototype.init=function(){var e=this.data=new B.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.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new eE(this,this.storeReader=new Z({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:M(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if($(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,E.M)({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){!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.Cl)((0,n.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof g)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(A.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!1!==globalThis.__DEV__&&(0,y.cc)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,n.Cl)((0,n.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,er.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,er.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,y.cc)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),E.M.reset(),T.y.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,O.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(A.call(e,"id"))return!1;e=(0,n.Cl)((0,n.Cl)({},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(),E.M.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,er.WR)(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,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.Cl)((0,n.Cl)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,n.Cl)((0,n.Cl)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){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=this,n=e.lastDiff,i=(0,y.lz)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,a.L)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(m);!1!==globalThis.__DEV__&&(eS.prototype.getMemoryInternals=p.cM)},5958:(e,t,r)=>{r.d(t,{S:()=>c});var n=r(6968),i=r(1500),o=r(8851),a=r(1211),s=r(240),u=r(7318);function c(e,t,r){return s.yV.withValue(!0,function(){var c=function e(t,r,i,c,l){var f,h=i.knownChanged,p=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,i.mutableTargets);if(Array.isArray(t)){for(var d=0,v=Array.from(t.entries());d<v.length;d++){var y=v[d],m=y[0],g=y[1];if(null===g){p[m]=null;continue}var b=e(g,r,i,c,!1!==globalThis.__DEV__?"".concat(l||"","[").concat(m,"]"):void 0);h.has(b)&&h.add(p),p[m]=b}return h.has(p)?p:t}for(var _=0,E=r.selections;_<E.length;_++){var T=E[_],O=void 0;if(c&&h.add(p),T.kind===n.b.FIELD){var k=(0,o.ue)(T),w=T.selectionSet;if(void 0===(O=p[k]||t[k]))continue;if(w&&null!==O){var b=e(t[k],w,i,c,!1!==globalThis.__DEV__?"".concat(l||"",".").concat(k):void 0);h.has(b)&&(O=b)}!1===globalThis.__DEV__&&(p[k]=O),!1!==globalThis.__DEV__&&(!c||"__typename"===k||(null==(f=Object.getOwnPropertyDescriptor(p,k))?void 0:f.value)?(delete p[k],p[k]=O):Object.defineProperty(p,k,function(e,t,r,n,i){var o=function(){return s.yV.getValue()||(!1!==globalThis.__DEV__&&u.V1.warn(60,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}}(k,O,l||"",i.operationName,i.operationType)))}if(T.kind===n.b.INLINE_FRAGMENT&&(!T.typeCondition||i.cache.fragmentMatches(T,t.__typename))&&(O=e(t,T.selectionSet,i,c,l)),T.kind===n.b.FRAGMENT_SPREAD){var C=T.name.value,S=i.fragmentMap[C]||(i.fragmentMap[C]=i.cache.lookupFragment(C));(0,u.V1)(S,59,C);var D=(0,a.s7)(T);"mask"!==D&&(O=e(t,S.selectionSet,i,"migrate"===D,l))}h.has(O)&&h.add(p)}return"__typename"in t&&!("__typename"in p)&&(p.__typename=t.__typename),Object.keys(p).length!==Object.keys(t).length&&h.add(p),h.has(p)?p:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,i.G)(c),c})}},6158:(e,t,r)=>{var n;r.d(t,{Ll:()=>u,aD:()=>a,aZ:()=>i,cE:()=>n,ou:()=>o});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},s=new Set(Object.keys(a));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},6828:(e,t,r)=>{r.d(t,{M:()=>s});var n,i=r(5682),o=r(593),a=r(7070),s=Object.assign(function(e){return JSON.stringify(e,u)},{reset:function(){n=new i.V(o.v.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),a=n.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=n.get(s)||i,n.set(o,a),n.set(s,a)}var u=Object.create(r);return a.forEach(function(e){u[e]=t[e]}),u}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,a.D_)("canonicalStringify",function(){return n.size}),s.reset()},6898:(e,t,r)=>{function n(){}r.d(t,{C:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},6968:(e,t,r)=>{var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(n||(n={}))},7016:(e,t,r)=>{function n(e){return 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){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,o=n;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let r=Math.min(10,i.length),a=i.length-r,s=[];for(let t=0;t<r;++t)s.push(e(i[t],o));return 1===a?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}var a=t,s=n;let u=Object.entries(a);return 0===u.length?"{}":s.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}(a)+"]":"{ "+u.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},7070:(e,t,r)=>{r.d(t,{D_:()=>a,cM:()=>u,ep:()=>s,tQ:()=>c});var n=r(4902),i=r(593),o={};function a(e,t){o[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,a,s;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.v[t]||r]}
1)),sizes:(0,n.Cl)({print:null==(e=o.print)?void 0:e.call(o),parser:null==(t=o.parser)?void 0:t.call(o),canonicalStringify:null==(r=o.canonicalStringify)?void 0:r.call(o),links:function e(t){var r;return t?(0,n.fX)((0,n.fX)([null==(r=null==t?void 0:t.getMemoryInternals)?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(h):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:p(this.queryManager.documentTransform)}},null==(s=(a=this.cache).getMemoryInternals)?void 0:s.call(a))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.Cl)((0,n.Cl)({},l.apply(this)),{addTypenameDocumentTransform:p(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return e&&"dirtyKey"in e?e.size:void 0}function h(e){return null!=e}function p(e){return(function e(t){return t?(0,n.fX)((0,n.fX)([f(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(h):[]})(e).map(function(e){return{cache:e}})}},7318:(e,t,r)=>{r.d(t,{Sf:()=>d,V1:()=>m,no:()=>p,vA:()=>g});var n=r(4902),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,a(n,t.prototype),n}return(0,n.C6)(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}));var h=r(4918);function p(e){try{return e()}catch(e){}}let d=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()});var v=r(2091);function y(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=E(i))||(t=T(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var m=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||u(e,E(t,r)||T(t,r))},{debug:y(u.debug),log:y(u.log),warn:y(u.warn),error:y(u.error)});function g(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new s(E(e,t)||T(e,t))}var b=Symbol.for("ApolloErrorMessageHandler_"+h.r);function _(e){if("string"==typeof e)return e;try{return(0,v.p)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function E(e,t){if(void 0===t&&(t=[]),e)return d[b]&&d[b](e,t.map(_))}function T(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:h.r,message:e,args:t.map(_)})))}globalThis.__DEV__},7518:(e,t,r)=>{r.d(t,{OC:()=>i,yo:()=>o});var n=r(7743);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],u=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(s);u!==s.length&&(o=null!=(r=o)?r:t,a=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=o)?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),s=r.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),h="",p=o&&(0,n.i0)(e.charCodeAt(0));return(f&&!p||a)&&(h+="\n"),h+=r,(f||l)&&(h+="\n"),'"""'+h+'"""'}},7743:(e,t,r)=>{function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{i0:()=>n,un:()=>a,xr:()=>s,yp:()=>i})},8131:(e,t,r)=>{r.d(t,{D9:()=>a,IM:()=>s,ZI:()=>c});var n=r(4902),i=r(3957),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
1var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.fX)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},8166:(e,t,r)=>{r.d(t,{E:()=>i,c:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},8235:(e,t,r)=>{r.d(t,{MS:()=>u,UT:()=>c,WR:()=>s,bl:()=>i});var n=r(3965),i=new n.DX,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){var t;a(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},8287:(e,t,r)=>{r.d(t,{U:()=>n});function n(e,t){if(!e)throw Error(t)}},8347:(e,t,r)=>{r.d(t,{z:()=>l});var n=r(6968),i=r(240),o=r(7318),a=r(996),s=r(5958),u=r(8922),c=r(5813);function l(e,t,r,l){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&(0,i.Ki)(),e;var f=t.definitions.filter(function(e){return e.kind===n.b.FRAGMENT_DEFINITION});void 0===l&&((0,o.V1)(1===f.length,61,f.length),l=f[0].name.value);var h=f.find(function(e){return e.name.value===l});return((0,o.V1)(!!h,62,l),null==e||(0,a.A)(e,{}))?e:(0,s.S)(e,h.selectionSet,{operationType:"fragment",operationName:h.name.value,fragmentMap:(0,u.JG)((0,c.zK)(t)),cache:r,mutableTargets:new i.jq,knownChanged:new i.xm})}},8659:(e,t,r)=>{r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},8851:(e,t,r)=>{r.d(t,{A_:()=>u,D$:()=>function e(t,r,n){for(var i,a=0,s=r.selections;a<s.length;a++){var u=s[a];if(m(u)){if("__typename"===u.name.value)return t[y(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,o.HQ)(u,n).selectionSet,n);if("string"==typeof f)return f}},Ii:()=>f,J:()=>l,Kc:()=>c,MB:()=>v,WU:()=>s,dt:()=>m,kd:()=>g,o5:()=>d,ue:()=>y});var n=r(7318),i=r(3957),o=r(8922),a=r(6828);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return l(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return l(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n.vA)(123,t.value,r.kind)}function f(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),d(e.name.value,n,r)}var h=["connection","include","skip","client","rest","export","nonreactive"],p=a.M,d=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={};
1return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===h.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}});function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},8877:(e,t,r)=>{r.d(t,{l:()=>o});var n=r(4902),i=r(9760);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.Cl)((0,n.Cl)({},e&&e.variables),t.variables))})}},8888:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},8922:(e,t,r)=>{r.d(t,{HQ:()=>u,JG:()=>s,ct:()=>a,s6:()=>c});var n=r(4902),i=r(7318),o=r(4968);function a(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(112,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.V1)(1===o.length,113,o.length),r=o[0].name.value),(0,n.Cl)((0,n.Cl)({},e),{definitions:(0,n.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function u(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,114,r),n||null;default:return null}}function c(e){var t=!0;return(0,o.YR)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return o.sP}}),t}},9221:(e,t,r)=>{r.d(t,{a:()=>c});var n=r(4902),i=r(996),o=r(5813),a=r(8922),s=r(1211),u=r(8851);function c(e,t,r,c){var f=t.data,h=(0,n.Tt)(t,["data"]),p=r.data,d=(0,n.Tt)(r,["data"]);return(0,i.A)(h,d)&&function e(t,r,n,o){if(r===n)return!0;var c=new Set;return t.selections.every(function(t){if(c.has(t)||(c.add(t),!(0,s.MS)(t,o.variables)||l(t)))return!0;if((0,u.dt)(t)){var f=(0,u.ue)(t),h=r&&r[f],p=n&&n[f],d=t.selectionSet;if(!d)return(0,i.A)(h,p);var v=Array.isArray(h),y=Array.isArray(p);if(v!==y)return!1;if(v&&y){var m=h.length;if(p.length!==m)return!1;for(var g=0;g<m;++g)if(!e(d,h[g],p[g],o))return!1;return!0}return e(d,h,p,o)}var b=(0,a.HQ)(t,o.fragmentMap);if(b)return!!l(b)||e(b.selectionSet,r,n,o)})}((0,o.Vn)(e).selectionSet,f,p,{fragmentMap:(0,a.JG)((0,o.zK)(e)),variables:c})}function l(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},9350:(e,t,r)=>{r.d(t,{J1:()=>j});var n,i,o=r(4902);let a=/\r\n|[\n\r]/g;function s(e,t){let r=0,n=1;for(let i of e.body.matchAll(a)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function u(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,u=t.column+s,l=`${e.name}:${a}:${u} 2`,f=n.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return l+c([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return l+c([[`${a-1} |`,f[i-1]],[`${a} |`,h],["|","^".padStart(u)],[`${a+1} |`,f[i+1]]])}function c(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class l extends Error{constructor(e,...t){var r,n,i;let{nodes:o,source:a,positions:u,path:c,originalError:h,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=h?h:void 0,this.nodes=f(Array.isArray(o)?o:o?[o]:void 0);let d=f(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==d||null==(n=d[0])?void 0:n.source,this.positions=null!=u?u:null==d?void 0:d.map(e=>e.start),this.locations=u&&a?u.map(e=>s(a,e)):null==d?void 0:d.map(e=>s(e.source,e.start));let v=!function(e){return"object"==typeof e&&null!==e}(null==h?void 0:h.extensions)||null==h?void 0:h.extensions;this.extensions=null!=(i=null!=p?p:v)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+u((t=r.loc).source,s(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+u(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function f(e){return void 0===e||0===e.length?void 0:e}function h(e,t,r){return new l(`Syntax Error: ${r}`,{source:e,positions:[t]})}var p=r(6158);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(n||(n={}));var d=r(6968),v=r(7518),y=r(7743);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
2",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(i||(i={}));class m{constructor(e){let t=new p.ou(i.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==i.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,o=t;for(;o<n;){let t=r.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,o=t+1;for(;o<n;){let e=r.charCodeAt(o);if(10===e||13===e)break;if(g(e))++o;else if(b(r,o))o+=2;else break}return O(e,i.COMMENT,t,o,r.slice(t+1,o))}(e,o);case 33:return O(e,i.BANG,o,o+1);case 36:return O(e,i.DOLLAR,o,o+1);case 38:return O(e,i.AMP,o,o+1);case 40:return O(e,i.PAREN_L,o,o+1);case 41:return O(e,i.PAREN_R,o,o+1);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return O(e,i.SPREAD,o,o+3);break;case 58:return O(e,i.COLON,o,o+1);case 61:return O(e,i.EQUALS,o,o+1);case 64:return O(e,i.AT,o,o+1);case 91:return O(e,i.BRACKET_L,o,o+1);case 93:return O(e,i.BRACKET_R,o,o+1);case 123:return O(e,i.BRACE_L,o,o+1);case 124:return O(e,i.PIPE,o,o+1);case 125:return O(e,i.BRACE_R,o,o+1);case 34:if(34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2))return function(e,t){let r=e.source.body,n=r.length,o=e.lineStart,a=t+3,s=a,u="",c=[];for(;a<n;){let n=r.charCodeAt(a);if(34===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){u+=r.slice(s,a),c.push(u);let n=O(e,i.BLOCK_STRING,t,a+3,(0,v.OC)(c).join("\n"));return e.line+=c.length-1,e.lineStart=o,n}if(92===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)&&34===r.charCodeAt(a+3)){u+=r.slice(s,a),s=a+1,a+=4;continue}if(10===n||13===n){u+=r.slice(s,a),c.push(u),13===n&&10===r.charCodeAt(a+1)?a+=2:++a,u="",s=a,o=a;continue}if(g(n))++a;else if(b(r,a))a+=2;else throw h(e.source,a,`Invalid character within String: ${T(e,a)}.`)}throw h(e.source,a,"Unterminated string.")}(e,o);return function(e,t){let r=e.source.body,n=r.length,o=t+1,a=o,s="";for(;o<n;){let n=r.charCodeAt(o);if(34===n)return s+=r.slice(a,o),O(e,i.STRING,t,o+1,s);if(92===n){s+=r.slice(a,o);let t=117===r.charCodeAt(o+1)?123===r.charCodeAt(o+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!g(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|C(e))<0)break}throw h(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,o):function(e,t){let r=e.source.body,n=w(r,t+2);if(g(n))return{value:String.fromCodePoint(n),size:6};if(_(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=w(r,t+8);if(E(e))return{value:String.fromCodePoint(n,e),size:12}}throw h(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,o):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,o);s+=t.value,o+=t.size,a=o;continue}if(10===n||13===n)break;if(g(n))++o;else if(b(r,o))o+=2;else throw h(e.source,o,`Invalid character within String: ${T(e,o)}.`)}throw h(e.source,o,"Unterminated string.")}(e,o)}if((0,y.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,o=t,a=r,s=!1;if(45===a&&(a=n.charCodeAt(++o)),48===a){if(a=n.charCodeAt(++o),(0,y.yp)(a))throw h(e.source,o,`Invalid number, unexpected digit after 0: ${T(e,o)}.`)}else o=k(e,o,a),a=n.charCodeAt(o);if(46===a&&(s=!0,a=n.charCodeAt(++o),o=k(e,o,a),a=n.charCodeAt(o)),(69===a||101===a)&&(s=!0,(43===(a=n.charCodeAt(++o))||45===a)&&(a=n.charCodeAt(++o)),o=k(e,o,a),a=n.charCodeAt(o)),46===a||(0,y.un)(a))throw h(e.source,o,`Invalid number, expected digit but got: ${T(e,o)}.`);return O(e,s?i.FLOAT:i.INT,t,o,n.slice(t,o))}(e,o,t);if((0,y.un)(t))return function(e,t){let r=e.source.body,n=r.length,o=t+1;for(;o<n;){let e=r.charCodeAt(o);if((0,y.xr)(e))++o;else break}return O(e,i.NAME,t,o,r.slice(t,o))}(e,o);throw h(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":g(t)||b(r,o)?`Unexpected character: ${T(e,o)}.`:`Invalid character: ${T(e,o)}.`)}return O(e,i.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===i.COMMENT);return e}}function g(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function b(e,t){return _(e.charCodeAt(t))&&E(e.charCodeAt(t+1))}function _(e){return e>=55296&&e<=56319}function E(e){return e>=56320&&e<=57343}function T(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return i.EOF;
2if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function O(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new p.ou(t,r,n,o,a,i)}function k(e,t,r){if(!(0,y.yp)(r))throw h(e.source,t,`Invalid number, expected digit but got: ${T(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,y.yp)(n.charCodeAt(i));)++i;return i}function w(e,t){return C(e.charCodeAt(t))<<12|C(e.charCodeAt(t+1))<<8|C(e.charCodeAt(t+2))<<4|C(e.charCodeAt(t+3))}function C(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var S=r(8287),D=r(7016);let I=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,D.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class N{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,S.U)(!1,`Body must be a string. Received: ${(0,D.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,S.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,S.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class x{constructor(e,t={}){let{lexer:r,...n}=t;if(r)this._lexer=r;else{let t=I(e,N)?e:new N(e);this._lexer=new m(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(i.NAME);return this.node(e,{kind:d.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:d.b.DOCUMENT,definitions:this.many(i.SOF,this.parseDefinition,i.EOF)})}parseDefinition(){if(this.peek(i.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===i.BRACE_L)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===i.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(i.BRACE_L))return this.node(t,{kind:d.b.OPERATION_DEFINITION,operation:p.cE.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(i.NAME)&&(e=this.parseName()),this.node(t,{kind:d.b.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(i.NAME);switch(e.value){case"query":return p.cE.QUERY;case"mutation":return p.cE.MUTATION;case"subscription":return p.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(i.PAREN_L,this.parseVariableDefinition,i.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:d.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(i.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(i.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(i.DOLLAR),this.node(e,{kind:d.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:d.b.SELECTION_SET,selections:this.many(i.BRACE_L,this.parseSelection,i.BRACE_R)})}parseSelection(){return this.peek(i.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(i.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:d.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(i.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(i.PAREN_L,t,i.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:d.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(i.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(i.NAME)?this.node(e,{kind:d.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:d.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:d.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:d.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case i.BRACKET_L:return this.parseList(e);case i.BRACE_L:return this.parseObject(e);case i.INT:return this.advanceLexer(),this.node(t,{kind:d.b.INT,value:t.value});case i.FLOAT:return this.advanceLexer(),this.node(t,{kind:d.b.FLOAT,value:t.value});case i.STRING:case i.BLOCK_STRING:return this.parseStringLiteral();case i.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:d.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:d.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:d.b.NULL});default:return this.node(t,{kind:d.b.ENUM,value:t.value})}case i.DOLLAR:if(e){if(this.expectToken(i.DOLLAR),this._lexer.token.kind===i.NAME){let e=this._lexer.token.value;throw h(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:d.b.STRING,value:e.value,block:e.kind===i.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:d.b.LIST,values:this.any(i.BRACKET_L,t,i.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:d.b.OBJECT,fields:this.any(i.BRACE_L,t,i.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(i.COLON),this.node(t,{kind:d.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(i.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(i.AT),this.node(t,{kind:d.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(i.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(i.BRACKET_R),e=this.node(t,{kind:d.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(i.BANG)?this.node(t,{kind:d.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:d.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(i.STRING)||this.peek(i.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);return this.node(e,{kind:d.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(i.COLON);let r=this.parseNamedType();return this.node(e,{kind:d.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:d.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(i.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseFieldDefinition,i.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(i.COLON);let o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:d.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(i.PAREN_L,this.parseInputValueDef,i.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(i.COLON);let o=this.parseTypeReference();this.expectOptionalToken(i.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:d.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:d.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(i.EQUALS)?this.delimitedMany(i.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:d.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(i.BRACE_L,this.parseEnumValueDefinition,i.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:d.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw h(this._lexer.source,this._lexer.token.start,`${A(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:d.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(i.BRACE_L,this.parseInputValueDef,i.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===i.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(i.BRACE_L,this.parseOperationTypeDefinition,i.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:d.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();retu
13rn this.node(e,{kind:d.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(i.AT);let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:d.b.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(i.AT);let r=this.parseName(),n=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:d.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,directives:o,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(i.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(n,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,n=this.expectOptionalToken(i.AT),o=this.parseName();return(!n&&this.expectOptionalToken(i.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(i.PAREN_L)&&(t=this.parseName(),this.expectToken(i.COLON),this.expectToken(i.PAREN_R)),n)?t?this.node(r,{kind:d.b.DIRECTIVE_ARGUMENT_COORDINATE,name:o,argumentName:t}):this.node(r,{kind:d.b.DIRECTIVE_COORDINATE,name:o}):e?t?this.node(r,{kind:d.b.ARGUMENT_COORDINATE,name:o,fieldName:e,argumentName:t}):this.node(r,{kind:d.b.MEMBER_COORDINATE,name:o,memberName:e}):this.node(r,{kind:d.b.TYPE_COORDINATE,name:o})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw h(this._lexer.source,t.start,`Expected ${R(e)}, found ${A(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===i.NAME&&t.value===e)this.advanceLexer();else throw h(this._lexer.source,t.start,`Expected "${e}", found ${A(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===i.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return h(this._lexer.source,t.start,`Unexpected ${A(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==i.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw h(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function A(e){let t=e.value;return R(e.kind)+(null!=t?` "${t}"`:"")}function R(e){return e===i.BANG||e===i.DOLLAR||e===i.AMP||e===i.PAREN_L||e===i.PAREN_R||e===i.DOT||e===i.SPREAD||e===i.COLON||e===i.EQUALS||e===i.AT||e===i.BRACKET_L||e===i.BRACKET_R||e===i.BRACE_L||e===i.PIPE||e===i.BRACE_R?`"${e}"`:e}var F=new Map,V=new Map,M=!0,P=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function j(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=L(e);if(!F.has(t)){var r,n,i,a,s,u=function(e,t){let r=new x(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}(e,{experimentalFragmentVariables:P,allowLegacyFragmentVariables:P,experimentalFragmentArguments:P});if(!u||"Document"!==u.kind)throw Error("Not a valid GraphQL document.");F.set(t,((a=new Set((r=new Set,n=[],u.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=L((t=e.loc).source.body.substring(t.start,t.end)),a=V.get(i);a&&!a.has(o)?M&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||V.set(i,a=new Set),a.add(o),r.has(o)||
13(r.add(o),n.push(e))}else n.push(e)}),i=(0,o.Cl)((0,o.Cl)({},u),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&a.add(r)})}),(s=i.loc)&&(delete s.startToken,delete s.endToken),i))}return F.get(t)}(n)}var q={gql:j,resetCaches:function(){F.clear(),V.clear()},disableFragmentWarnings:function(){M=!1},enableExperimentalFragmentVariables:function(){P=!0},disableExperimentalFragmentVariables:function(){P=!1}};!function(e){e.gql=q.gql,e.resetCaches=q.resetCaches,e.disableFragmentWarnings=q.disableFragmentWarnings,e.enableExperimentalFragmentVariables=q.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=q.disableExperimentalFragmentVariables}(j||(j={})),j.default=j},9668:(e,t,r)=>{r.d(t,{b:()=>s});let n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){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(o.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 s(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)}}},9760:(e,t,r)=>{r.d(t,{o:()=>n});function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}},9853:(e,t,r)=>{function n(){}r.d(t,{l:()=>s});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class s{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}}}]);
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.