@fugood/bricks-cli 2.25.0-beta.61 → 2.25.0-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/10.js +1 -1
- package/lib/117.js +1 -1
- package/lib/209.js +112 -0
- package/lib/212.js +1 -0
- package/lib/215.js +1 -1
- package/lib/223.js +4 -4
- package/lib/247.js +1 -0
- package/lib/320.js +2 -2
- package/lib/332.js +13 -0
- package/lib/358.js +1 -0
- package/lib/370.js +1 -0
- package/lib/387.js +35 -0
- package/lib/405.js +1 -0
- package/lib/456.js +2 -2
- package/lib/486.js +1 -0
- package/lib/511.js +1 -1
- package/lib/557.js +1 -1
- package/lib/563.js +1 -1
- package/lib/583.js +22 -0
- package/lib/658.js +2 -0
- package/lib/663.js +1 -1
- package/lib/690.js +1 -0
- package/lib/708.js +8 -6
- package/lib/785.js +1 -0
- package/lib/818.js +1 -0
- package/lib/831.js +1 -0
- package/lib/907.js +872 -0
- package/lib/915.js +3 -2
- package/lib/936.js +1 -0
- package/lib/940.js +19 -1
- package/lib/index.js +98 -1142
- package/package.json +5 -5
- package/lib/3.js +0 -1
- package/lib/412.js +0 -1
package/lib/209.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export const __rspack_esm_id=209;export const __rspack_esm_ids=[209];export const __webpack_modules__={68089(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let i=n(24434),o=r(n(3680)),a=r(n(9873)),s=o.default("agent-base");function l(){let{stack:e}=Error();return"string"==typeof e&&e.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}function u(e,t){return new u.Agent(e,t)}var c=u||(u={});class p extends i.EventEmitter{constructor(e,t){super();let n=t;"function"==typeof e?this.callback=e:e&&(n=e),this.timeout=null,n&&"number"==typeof n.timeout&&(this.timeout=n.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return"number"==typeof this.explicitDefaultPort?this.explicitDefaultPort:l()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return"string"==typeof this.explicitProtocol?this.explicitProtocol:l()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let n=Object.assign({},t);"boolean"!=typeof n.secureEndpoint&&(n.secureEndpoint=l()),null==n.host&&(n.host="localhost"),null==n.port&&(n.port=n.secureEndpoint?443:80),null==n.protocol&&(n.protocol=n.secureEndpoint?"https:":"http:"),n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null,o=n.timeout||this.timeout,u=t=>{e._hadError||(e.emit("error",t),e._hadError=!0)},c=e=>{r||(null!==i&&(clearTimeout(i),i=null),u(e))},p=t=>{if(!r){if(null!=i&&(clearTimeout(i),i=null),t&&"function"==typeof t.addRequest){s("Callback returned another Agent instance %o",t.constructor.name),t.addRequest(e,n);return}if(t){t.once("free",()=>{this.freeSocket(t,n)}),e.onSocket(t);return}u(Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``))}};if("function"!=typeof this.callback)return void u(Error("`callback` is not defined"));this.promisifiedCallback||(this.callback.length>=3?(s("Converting legacy callback function to promise"),this.promisifiedCallback=a.default(this.callback)):this.promisifiedCallback=this.callback),"number"==typeof o&&o>0&&(i=setTimeout(()=>{i=null,r=!0;let e=Error(`A "socket" was not created for HTTP request before ${o}ms`);e.code="ETIMEOUT",u(e)},o)),"port"in n&&"number"!=typeof n.port&&(n.port=Number(n.port));try{s("Resolving socket for %o request: %o",n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(p,c)}catch(e){Promise.reject(e).catch(c)}}freeSocket(e,t){s("Freeing socket %o %o",e.constructor.name,t),e.destroy()}destroy(){s("Destroying agent %o",this.constructor.name)}}c.Agent=p,c.prototype=c.Agent.prototype,e.exports=u},9873(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(e,t)=>{e?i(e):r(t)})})}}},35646(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=i(n(69278)),a=i(n(64756)),s=i(n(87016)),l=i(n(42613)),u=i(n(3680)),c=n(68089),p=i(n(36981)),f=u.default("https-proxy-agent:agent");class d extends c.Agent{constructor(e){var t;let n;if(!(n="string"==typeof e?s.default.parse(e):e))throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");f("creating new HttpsProxyAgent instance: %o",n),super(n);let r=Object.assign({},n);this.secureProxy=n.secureProxy||"string"==typeof(t=r.protocol)&&/^https:?$/i.test(t),r.host=r.hostname||r.host,"string"==typeof r.port&&(r.port=parseInt(r.port,10)),!r.port&&r.host&&(r.port=this.secureProxy?443:80),!this.secureProxy||"ALPNProtocols"in r||(r.ALPNProtocols=["http 1.1"]),r.host&&r.path&&(delete r.path,delete r.pathname),this.proxy=r}callback(e,t){return r(this,void 0,void 0,function*(){var n,r;let i,{proxy:s,secureProxy:u}=this;u?(f("Creating `tls.Socket`: %o",s),i=a.default.connect(s)):(f("Creating `net.Socket`: %o",s),i=o.default.connect(s));let c=Object.assign({},s.headers),d=`${t.host}:${t.port}`,y=`CONNECT ${d} HTTP/1.1\r
|
|
2
|
+
`;s.auth&&(c["Proxy-Authorization"]=`Basic ${Buffer.from(s.auth).toString("base64")}`);let{host:m,port:v,secureEndpoint:g}=t;for(let e of(n=v,((r=g)||80!==n)&&(!r||443!==n)&&(m+=`:${v}`),c.Host=m,c.Connection="close",Object.keys(c)))y+=`${e}: ${c[e]}\r
|
|
3
|
+
`;let b=p.default(i);i.write(`${y}\r
|
|
4
|
+
`);let{statusCode:E,buffered:T}=yield b;if(200===E){if(e.once("socket",h),t.secureEndpoint){f("Upgrading socket connection to TLS");let e=t.servername||t.host;return a.default.connect(Object.assign(Object.assign({},function(e,...t){let n,r={};for(n in e)t.includes(n)||(r[n]=e[n]);return r}(t,"host","hostname","path","port")),{socket:i,servername:e}))}return i}i.destroy();let _=new o.default.Socket({writable:!1});return _.readable=!0,e.once("socket",e=>{f("replaying proxy buffer for failed request"),l.default(e.listenerCount("data")>0),e.push(T),e.push(null)}),_})}}function h(e){e.resume()}t.default=d},64007(e,t,n){var r;let i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(35646));function o(e){return new i.default(e)}(r=o||(o={})).HttpsProxyAgent=i.default,r.prototype=i.default.prototype,e.exports=o},36981(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(n(3680)).default("https-proxy-agent:parse-proxy-response");t.default=function(e){return new Promise((t,n)=>{let r=0,o=[];function a(){let n=e.read();n?function(e){o.push(e),r+=e.length;let n=Buffer.concat(o,r);if(-1===n.indexOf("\r\n\r\n")){i("have not received end of HTTP headers yet..."),a();return}let s=n.toString("ascii",0,n.indexOf("\r\n")),l=+s.split(" ")[1];i("got proxy server response: %o",s),t({statusCode:l,buffered:n})}(n):e.once("readable",a)}function s(e){i("onclose had error %o",e)}function l(){i("onend")}e.on("error",function t(r){e.removeListener("end",l),e.removeListener("error",t),e.removeListener("close",s),e.removeListener("readable",a),i("onerror %o",r),n(r)}),e.on("close",s),e.on("end",l),a()})}},54506(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(85608),o=n(70916),a=n(4232),s=n(28876),l=n(55888),u=n(5437),c=n(94037),p=n(53570),f=n(60837),d=n(44592),h=n(39283),y=n(36869),m=n(25979),v=n(19371),g=n(94370),b=l&&"object"==typeof l&&"default"in l?l.default:l;function E(e){return null!==e&&"object"==typeof e}var T=Object.prototype.hasOwnProperty,_=function(e,t,n){return this.merge(e[n],t[n])},N=function(){function e(e){void 0===e&&(e=_),this.reconciler=e,this.isObject=E,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return E(t)&&E(e)?(Object.keys(t).forEach(function(o){if(T.call(e,o)){var a=e[o];if(t[o]!==a){var s=n.reconciler.apply(n,i.__spreadArray([e,t,o],r,!1));s!==a&&((e=n.shallowCopyForMerge(e))[o]=s)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return E(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):i.__assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function O(e){return!!e&&e<7}function I(e){return!!e.directives&&e.directives.some(w)}function w(e){return"nonreactive"===e.name.value}t.NetworkStatus=void 0,(r=t.NetworkStatus||(t.NetworkStatus={}))[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error";var S=Object.assign,D=Object.hasOwnProperty,R=function(e){function n(t){var r=t.queryManager,o=t.queryInfo,a=t.options,s=this,l=n.inactiveOnCreation.getValue();(s=e.call(this,function(e){l&&(r.queries.set(s.queryId,o),l=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=k)}catch(e){}var n=!s.observers.size;s.observers.add(e);var i=s.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(s.maskResult(i.result)),n&&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.queryInfo=o,s.queryManager=r,s.waitForOwnResult=F(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=r.defaultOptions.watchQuery,p=(void 0===c?{}:c).fetchPolicy,f=void 0===p?"cache-first":p,d=a.fetchPolicy,h=void 0===d?f:d,y=a.initialFetchPolicy,m=void 0===y?"standby"===h?f:h:y;s.options=i.__assign(i.__assign({},a),{initialFetchPolicy:m,fetchPolicy:h}),s.queryId=o.queryId||r.generateQueryId();var v=u.getOperationDefinition(s.query);return s.queryName=v&&v.name&&v.name.value,s}return i.__extends(n,e),Object.defineProperty(n.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),n.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},n.prototype.resetDiff=function(){this.queryInfo.resetDiff()},n.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var n=this.getLastResult(!0),r=this.queryInfo.networkStatus||n&&n.networkStatus||t.NetworkStatus.ready,o=i.__assign(i.__assign({},n),{loading:O(r),networkStatus:r}),a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if(F(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(o.data=u.result),l.equal(o.data,{})&&(o.data=void 0),u.complete?(delete o.partial,u.complete&&o.networkStatus===t.NetworkStatus.loading&&("cache-first"===s||"cache-only"===s)&&(o.networkStatus=t.NetworkStatus.ready,o.loading=!1)):o.partial=!0,o.networkStatus===t.NetworkStatus.ready&&(o.error||o.errors)&&(o.networkStatus=t.NetworkStatus.error),!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||o.loading||o.data||o.error||A(u.missing)}return e&&this.updateLastResult(o),o},n.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},n.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n,r,o,a,s,c=this.queryManager.getDocumentInfo(this.query),p=this.queryManager.dataMasking,f=p?c.nonReactiveQuery:this.query;return(p||c.hasNonreactiveDirective?(n=this.last.result,r=this.variables,o=n.data,a=i.__rest(n,["data"]),s=e.data,!(b(a,i.__rest(e,["data"]))&&function e(t,n,r,i){if(n===r)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!u.shouldInclude(t,i.variables)||I(t)))return!0;if(u.isField(t)){var a=u.resultKeyNameFromField(t),s=n&&n[a],l=r&&r[a],c=t.selectionSet;if(!c)return b(s,l);var p=Array.isArray(s),f=Array.isArray(l);if(p!==f)return!1;if(p&&f){var d=s.length;if(l.length!==d)return!1;for(var h=0;h<d;++h)if(!e(c,s[h],l[h],i))return!1;return!0}return e(c,s,l,i)}var y=u.getFragmentFromSelection(t,i.fragmentMap);if(y)return!!I(y)||e(y.selectionSet,n,r,i)})}(u.getMainDefinition(f).selectionSet,o,s,{fragmentMap:u.createFragmentMap(u.getFragmentDefinitions(f)),variables:r}))):!l.equal(this.last.result,e))||t&&!l.equal(this.last.variables,t)},n.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||l.equal(n.variables,this.variables)))return n[e]},n.prototype.getLastResult=function(e){return this.getLast("result",e)},n.prototype.getLastError=function(e){return this.getLast("error",e)},n.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},n.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},n.prototype.refetch=function(e){var n,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&D.call(e,"variables")){var a=u.getQueryDefinition(this.query),s=a.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||o.invariant.warn(21,e,(null==(n=a.name)?void 0:n.value)||a)}return e&&!l.equal(this.options.variables,e)&&(r.variables=this.options.variables=i.__assign(i.__assign({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,t.NetworkStatus.refetch)},n.prototype.fetchMore=function(e){var n=this,r=i.__assign(i.__assign({},e.query?e:i.__assign(i.__assign(i.__assign(i.__assign({},this.options),{query:this.options.query}),e),{variables:i.__assign(i.__assign({},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,l=s.networkStatus;s.networkStatus=t.NetworkStatus.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,p="no-cache"!==this.options.fetchPolicy;return p||o.invariant(c,22),this.queryManager.fetchQuery(a,r,t.NetworkStatus.fetchMore).then(function(o){if(n.queryManager.removeQuery(a),s.networkStatus===t.NetworkStatus.fetchMore&&(s.networkStatus=l),p)n.queryManager.cache.batch({update:function(t){var i=e.updateQuery;i?t.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:o.data,variables:r.variables})}):t.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var f=n.getLast("result"),d=c(f.data,{fetchMoreResult:o.data,variables:r.variables});n.reportResult(i.__assign(i.__assign({},f),{networkStatus:l,loading:O(l),data:d}),n.variables)}return n.maskResult(o)}).finally(function(){p&&!u.has(n.query)&&n.reobserveCacheFirst()})},n.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,i.__assign({subscriptionData:n},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&o.invariant.error(23,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},n.prototype.setOptions=function(e){return this.reobserve(e)},n.prototype.silentSetOptions=function(e){var t=u.compact(this.options,e||{});S(this.options,t)},n.prototype.setVariables=function(e){return l.equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},t.NetworkStatus.setVariables):Promise.resolve()},n.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,o=e(r,{variables:this.variables,complete:!!i,previousData:r});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},n.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},n.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},n.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},n.prototype.fetch=function(e,t,n){var r=this.queryManager.getOrCreateQuery(this.queryId);return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},n.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var n=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!n||n.interval!==r){o.invariant(r,24),(n||(this.pollingInfo={})).interval=r;var i=function(){var n,r;e.pollingInfo&&(O(e.queryInfo.networkStatus)||(null==(r=(n=e.options).skipPollAttempt)?void 0:r.call(n))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},t.NetworkStatus.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};a()}}},n.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!l.equal(t,this.last.variables)&&(n=void 0),this.last=i.__assign({result:this.queryManager.assumeImmutableResults?e:u.cloneDeep(e),variables:t},n?{error:n}:null)},n.prototype.reobserveAsConcast=function(e,n){var r=this;this.isTornDown=!1;var o=n===t.NetworkStatus.refetch||n===t.NetworkStatus.fetchMore||n===t.NetworkStatus.poll,a=this.options.variables,s=this.options.fetchPolicy,c=u.compact(this.options,e||{}),f=o?c:S(this.options,c),d=this.transformDocument(f.query);this.lastQuery=d,!o&&(this.updatePolling(),e&&e.variables&&!l.equal(e.variables,a)&&"standby"!==f.fetchPolicy&&(f.fetchPolicy===s||"function"==typeof f.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",f),void 0===n&&(n=t.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=F(f.fetchPolicy));var h=function(){r.concast===v&&(r.waitForOwnResult=!1)},y=f.variables&&i.__assign({},f.variables),m=this.fetch(f,n,d),v=m.concast,g=m.fromLink,b={next:function(e){l.equal(r.variables,y)&&(h(),r.reportResult(e,y))},error:function(e){l.equal(r.variables,y)&&(p.isApolloError(e)||(e=new p.ApolloError({networkError:e})),h(),r.reportError(e,y))}};return o||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=b),v.addObserver(b),v},n.prototype.reobserve=function(e,t){return u.preventUnhandledRejection(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},n.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},n.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},n.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&u.iterateObserversSafely(this.observers,"next",this.maskResult(e))},n.prototype.reportError=function(e,n){var r=i.__assign(i.__assign({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:t.NetworkStatus.error,loading:!1});this.updateLastResult(r,n),u.iterateObserversSafely(this.observers,"error",this.last.error=e)},n.prototype.hasObservers=function(){return this.observers.size>0},n.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)},n.prototype.transformDocument=function(e){return this.queryManager.transform(e)},n.prototype.maskResult=function(e){return e&&"data"in e?i.__assign(i.__assign({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},n.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},n.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},n.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},n.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!O(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},n.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,r){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,r):t}}):this.reobserve()},n.inactiveOnCreation=new f.Slot,n}(u.Observable);function k(e){!1!==globalThis.__DEV__&&o.invariant.error(25,e.message,e.stack)}function A(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&o.invariant.debug(26,e)}function F(e){return"network-only"===e||"no-cache"===e||"standby"===e}u.fixObservableSubclass(R);var $=new(u.canUseWeakMap?WeakMap:Map);function L(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return $.set(e,($.get(e)+1)%1e15),n.apply(this,arguments)})}var x=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 n=this.cache=e.cache;$.has(n)||($.set(n,0),L(n,"evict"),L(n,"modify"),L(n,"reset"))}return e.prototype.init=function(e){var n=e.networkStatus||t.NetworkStatus.loading;return this.variables&&this.networkStatus!==t.NetworkStatus.loading&&!l.equal(this.variables,e.variables)&&(n=t.NetworkStatus.setVariables),l.equal(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),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.getDiffOptions();if(this.lastDiff&&l.equal(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),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,n,r=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),l.equal(r&&r.result,e&&e.result)||null==(n=this.observableQuery)||n.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 n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=i.__assign(i.__assign({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&l.equal(r,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===$.get(this.cache)&&l.equal(t,n.variables)&&l.equal(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i,o=this,a=new u.DeepMerger,s=u.isNonEmptyArray(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&u.isNonEmptyArray(e.incremental)){var c=u.mergeIncrementalData(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var p=this.getDiff();e.data=a.merge(p.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(C(e,n.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:$.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var a=o.getDiffOptions(n.variables),s=i.diff(a);!o.stopped&&l.equal(o.variables,n.variables)&&o.updateWatch(n.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=t.NetworkStatus.ready},e.prototype.markError=function(e){var n;return this.networkStatus=t.NetworkStatus.error,this.lastWrite=void 0,null==(n=this.observableQuery)||n.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function C(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!u.graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var P=Object.prototype.hasOwnProperty,M=Object.create(null),V=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new u.AutoCleanedWeakCache(u.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new d.Trie(!1),this.noCacheWarningsByQueryId=new Set;var n=new u.DocumentTransform(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 r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,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,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(o.newInvariantError(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return i.__awaiter(this,arguments,void 0,function(e){var t,n,r,a,s,l,c,f=e.mutation,d=e.variables,h=e.optimisticResponse,y=e.updateQueries,m=e.refetchQueries,v=void 0===m?[]:m,g=e.awaitRefetchQueries,b=void 0!==g&&g,E=e.update,T=e.onQueryUpdated,_=e.fetchPolicy,N=void 0===_?(null==(l=this.defaultOptions.mutate)?void 0:l.fetchPolicy)||"network-only":_,O=e.errorPolicy,I=void 0===O?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":O,w=e.keepRootFields,S=e.context;return i.__generator(this,function(e){switch(e.label){case 0:if(o.invariant(f,28),o.invariant("network-only"===N||"no-cache"===N,29),t=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),n=this.getDocumentInfo(f).hasClientExports,d=this.getVariables(f,d),!n)return[3,2];return[4,this.localState.addExportedVariables(f,d,S)];case 1:d=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:f,variables:d,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:f,variables:d,fetchPolicy:N,errorPolicy:I,context:S,updateQueries:y,update:E,keepRootFields:w}),this.broadcastQueries(),s=this,[2,new Promise(function(e,n){return u.asyncMap(s.getObservableFromLink(f,i.__assign(i.__assign({},S),{optimisticResponse:a?h:void 0}),d,{},!1),function(e){if(u.graphQLResultHasError(e)&&"none"===I)throw new p.ApolloError({graphQLErrors:u.getGraphQLErrorsFromResult(e)});r&&(r.loading=!1,r.error=null);var n=i.__assign({},e);return"function"==typeof v&&(v=v(n)),"ignore"===I&&u.graphQLResultHasError(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:f,variables:d,fetchPolicy:N,errorPolicy:I,context:S,update:E,updateQueries:y,awaitRefetchQueries:b,refetchQueries:v,removeOptimistic:a?t:void 0,onQueryUpdated:T,keepRootFields:w})}).subscribe({next:function(n){s.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e(i.__assign(i.__assign({},n),{data:s.maskOperation({document:f,data:n.data,fetchPolicy:N,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof p.ApolloError?e:new p.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&C(r,e.errorPolicy)){if(u.isExecutionPatchIncrementalResult(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),u.isExecutionPatchIncrementalResult(r)&&u.isNonEmptyArray(r.incremental)){var s,l,c,p,f,d=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),h=void 0;d.result&&(s=d.result,l=r,p=s,f=new N,"incremental"in l&&Array.isArray(c=l.incremental)&&c.length>0&&l.incremental.forEach(function(e){for(var t=e.data,n=e.path,r=n.length-1;r>=0;--r){var i=n[r],o=isNaN(+i)?{}:[];o[i]=t,t=o}p=f.merge(p,t)}),h=p),void 0!==h&&(r.data=h,o.push({result:h,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var y=e.updateQueries;y&&this.queries.forEach(function(e,i){var a=e.observableQuery,s=a&&a.queryName;if(s&&P.call(y,s)){var l=y[s],c=n.queries.get(i),p=c.document,f=c.variables,d=t.diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var m=l(h,{mutationResult:r,queryName:p&&u.getOperationName(p)||void 0,queryVariables:f});m&&o.push({result:m,dataId:"ROOT_QUERY",query:p,variables:f})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var m=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,l=!u.isExecutionPatchResult(r)||u.isExecutionPatchIncrementalResult(r)&&!r.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(r=i.__assign(i.__assign({},r),{data:c.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}l&&s(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return m.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(m).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables,{IGNORE:M}):e;return r!==M&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(i.__assign(i.__assign({},t),{result:{data:r}}),e)}catch(e){!1!==globalThis.__DEV__&&o.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:u.hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:u.hasDirectives(["nonreactive"],e),nonReactiveQuery:u.addNonReactiveToNamedFragments(e),clientQuery:this.localState.clientQuery(e),serverQuery:u.removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:u.getDefaultValues(u.getOperationDefinition(e)),asQuery:i.__assign(i.__assign({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?i.__assign(i.__assign({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return i.__assign(i.__assign({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=i.__assign(i.__assign({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new x(this),r=new R({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,R.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),o.invariant(e.query,30),o.invariant("Document"===e.query.kind,31),o.invariant(!e.returnPartialData,32),o.invariant(!e.pollInterval,33);var r=this.transform(e.query);return this.fetchQuery(t,i.__assign(i.__assign({},e),{query:r})).then(function(o){return o&&i.__assign(i.__assign({},o),{data:n.maskOperation({document:r,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(o.newInvariantError(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=t.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)r.set(e,e),a.set(e,!1);else if(u.isDocumentNode(e)){var n=u.print(t.transform(e));r.set(n,u.getOperationName(e)),a.set(n,!1)}else u.isNonNullObject(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has(u.print(o)))&&(n.set(r,i),s&&a.set(s,!0),o&&a.set(u.print(o),!0))}}),s.size&&s.forEach(function(e){var r=u.makeUniqueId("legacyOneTimeQuery"),a=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),s=new R({queryManager:t,queryInfo:a,options:i.__assign(i.__assign({},e),{fetchPolicy:"network-only"})});o.invariant(s.queryId===r),a.setObservableQuery(s),n.set(r,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var n=r.get(t);n?!1!==globalThis.__DEV__&&o.invariant.warn(35,n):!1!==globalThis.__DEV__&&o.invariant.warn(36)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,l=void 0===s?{}:s,c=e.extensions,f=void 0===c?{}:c;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,l,e,f).map(function(r){"no-cache"!==i&&(C(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=u.graphQLResultHasError(r),s=p.graphQLResultHasProtocolErrors(r);if(o||s){var l={};if(o&&(l.graphQLErrors=r.errors),s&&(l.protocolErrors=r.extensions[p.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new p.ApolloError(l)}return"ignore"===a&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var h=this.localState.addExportedVariables(n,r,l).then(d);return new u.Observable(function(e){var t=null;return h.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},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,n,r,o){var s,l,p=this;void 0===o&&(o=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var f=this.getDocumentInfo(e),d=f.serverQuery,h=f.clientQuery;if(d){var y=this.inFlightLinkObservables,m=this.link,v={query:d,variables:n,operationName:u.getOperationName(d)||void 0,context:this.prepareContext(i.__assign(i.__assign({},t),{forceFetch:!o})),extensions:r};if(t=v.context,o){var g=u.print(d),b=c.canonicalStringify(n),E=y.lookup(g,b);if(!(l=E.observable)){var T=new u.Concast([a.execute(m,v)]);l=E.observable=T,T.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?T.beforeNext(e):y.remove(g,b)})}}else l=new u.Concast([a.execute(m,v)])}else l=new u.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);return h&&(l=u.asyncMap(l,function(e){return p.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})})),l},e.prototype.getResultsFromLink=function(e,n,r){var i=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return u.asyncMap(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=u.getGraphQLErrorsFromResult(a),l=s.length>0,c=r.errorPolicy;if(i>=e.lastRequestId){if(l&&"none"===c)throw e.markError(new p.ApolloError({graphQLErrors:s}));e.markResult(a,o,r,n),e.markReady()}var f={data:a.data,loading:!1,networkStatus:t.NetworkStatus.ready};return l&&"none"===c&&(f.data=void 0),l&&"ignore"!==c&&(f.errors=s,f.networkStatus=t.NetworkStatus.error),f},function(t){var n=p.isApolloError(t)?t:new p.ApolloError({networkError:t});throw i>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,n,r,i){var o,a,s=this;void 0===r&&(r=t.NetworkStatus.loading),void 0===i&&(i=n.query);var l=this.getVariables(i,n.variables),c=this.defaultOptions.watchQuery,p=n.fetchPolicy,f=void 0===p?c&&c.fetchPolicy||"cache-first":p,d=n.errorPolicy,h=void 0===d?c&&c.errorPolicy||"none":d,y=n.returnPartialData,m=n.notifyOnNetworkStatusChange,v=n.context,g=Object.assign({},n,{query:i,variables:l,fetchPolicy:f,errorPolicy:h,returnPartialData:void 0!==y&&y,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===v?{}:v}),b=function(t){g.variables=t;var i=s.fetchQueryByPolicy(e,g,r);return"standby"!==g.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",n),i},E=function(){return s.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){E(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)o=new u.Concast(this.localState.addExportedVariables(g.query,g.variables,g.context).then(b).then(function(e){return e.sources})),a=!0;else{var T=b(g.variables);a=T.fromLink,o=new u.Concast(T.sources)}return o.promise.then(E,E),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?u.makeUniqueId("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var p=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof x&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&p.set(r,i),i}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;l&&(a||(a=t.cache.diff(i.queryInfo.getDiffOptions())),r=l(i,a,o)),l&&!0!==r||(r=i.refetch()),!1!==r&&p.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),p},e.prototype.maskOperation=function(e){var t,n,r,i=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,l=e.id,c=null==(t=u.getOperationDefinition(i))?void 0:t.operation,p=(null!=(n=null==c?void 0:c[0])?n:"o")+l;!this.dataMasking||"no-cache"!==s||u.isFullyUnmaskedOperation(i)||this.noCacheWarningsByQueryId.has(p)||(this.noCacheWarningsByQueryId.add(p),!1!==globalThis.__DEV__&&o.invariant.warn(37,null!=(r=u.getOperationName(i))?r:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?h.maskOperation(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?h.maskFragment(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,n,r){var o=this,a=n.query,s=n.variables,c=n.fetchPolicy,p=n.refetchWritePolicy,f=n.errorPolicy,d=n.returnPartialData,h=n.context,y=n.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:a,variables:s,networkStatus:r});var v=function(){return e.getDiff()},g=function(n,r){void 0===r&&(r=e.networkStatus||t.NetworkStatus.loading);var c=n.result;!1===globalThis.__DEV__||d||l.equal(c,{})||A(n.missing);var p=function(e){return u.Observable.of(i.__assign({data:e,loading:O(r),networkStatus:r},n.complete?null:{partial:!0}))};return c&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:c},context:h,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return p(e.data||void 0)}):"none"===f&&r===t.NetworkStatus.refetch&&Array.isArray(n.missing)?p(void 0):p(c)},b="no-cache"===c?0:r===t.NetworkStatus.refetch&&"merge"!==p?1:2,E=function(){return o.getResultsFromLink(e,b,{query:a,variables:s,context:h,fetchPolicy:c,errorPolicy:f})},T=y&&"number"==typeof m&&m!==r&&O(r);switch(c){default:case"cache-first":var _=v();if(_.complete)return{fromLink:!1,sources:[g(_,e.markReady())]};if(d||T)return{fromLink:!0,sources:[g(_),E()]};return{fromLink:!0,sources:[E()]};case"cache-and-network":var _=v();if(_.complete||d||T)return{fromLink:!0,sources:[g(_),E()]};return{fromLink:!0,sources:[E()]};case"cache-only":return{fromLink:!1,sources:[g(v(),e.markReady())]};case"network-only":if(T)return{fromLink:!0,sources:[g(v()),E()]};return{fromLink:!0,sources:[E()]};case"no-cache":if(T)return{fromLink:!0,sources:[g(e.getDiff()),E()]};return{fromLink:!0,sources:[E()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new x(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return i.__assign(i.__assign(i.__assign({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),U=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=u.mergeDeep(t.resolvers,e)}):this.resolvers=u.mergeDeep(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 i.__awaiter(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return i.__generator(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,s).then(function(e){return i.__assign(i.__assign({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return u.hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return u.removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return i.__assign(i.__assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return i.__awaiter(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),i.__generator(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return i.__assign(i.__assign({},t),e.exportedVariables)})]:[2,i.__assign({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return y.visit(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 y.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:u.buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return i.__awaiter(this,arguments,void 0,function(e,t,n,r,o,a){var s,l,c,p,f,d,h,y,m,v;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),i.__generator(this,function(g){return s=u.getMainDefinition(e),l=u.getFragmentDefinitions(e),c=u.createFragmentMap(l),p=this.collectSelectionsToResolve(s,c),d=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=this,y=h.cache,m=h.client,v={fragmentMap:c,context:i.__assign(i.__assign({},n),{cache:y,client:m}),variables:r,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return i.__awaiter(this,void 0,void 0,function(){var a,s,l,c,p,f=this;return i.__generator(this,function(d){return a=r.fragmentMap,s=r.context,l=r.variables,c=[n],p=function(e){return i.__awaiter(f,void 0,void 0,function(){var p,f;return i.__generator(this,function(i){return(t||r.selectionsToResolve.has(e))&&u.shouldInclude(e,l)?u.isField(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&c.push(((n={})[u.resultKeyNameFromField(e)]=t,n))})]:(u.isInlineFragment(e)?p=e:(p=a[e.name.value],o.invariant(p,19,e.name.value)),p&&p.typeCondition&&(f=p.typeCondition.name.value,r.fragmentMatcher(n,f,s)))?[2,this.resolveSelectionSet(p.selectionSet,t,n,r).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(p)).then(function(){return u.mergeDeepArray(c)})]})})},e.prototype.resolveField=function(e,t,n,r){return i.__awaiter(this,void 0,void 0,function(){var o,a,s,l,p,f,d,h,y,m=this;return i.__generator(this,function(i){return n?(o=r.variables,l=(a=e.name.value)!==(s=u.resultKeyNameFromField(e)),f=Promise.resolve(p=n[s]||n[a]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(y=h[l?a:s])&&(f=Promise.resolve(c.cacheSlot.withValue(this.cache,y,[n,u.argumentsObjectFromField(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,f.then(function(n){if(void 0===n&&(n=p),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&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;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(n)?m.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?m.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var a=new Set;r.set(i,a),y.visit(i,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){n(e)&&y.isSelectionNode(e)&&a.add(e)})},FragmentSpread:function(r,i,s,l,u){var c=t[r.name.value];o.invariant(c,20,r.name.value);var p=e(c);p.size>0&&(u.forEach(function(e){n(e)&&y.isSelectionNode(e)&&a.add(e)}),a.add(r),p.forEach(function(e){a.add(e)}))}})}return r.get(i)}(e)},e}(),j=Symbol.for("apollo.cacheSize"),q=i.__assign({},o.global[j]),Q={},G=!1!==globalThis.__DEV__?function(){var e,t,n,r,o;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],n=e[1];return[t,q[t]||n]})),sizes:i.__assign({print:null==(e=Q.print)?void 0:e.call(Q),parser:null==(t=Q.parser)?void 0:t.call(Q),canonicalStringify:null==(n=Q.canonicalStringify)?void 0:n.call(Q),links:function e(t){var n;return t?i.__spreadArray(i.__spreadArray([null==(n=null==t?void 0:t.getMemoryInternals)?void 0:n.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(B):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:(function e(t){var n,r;return t?i.__spreadArray(i.__spreadArray([(r=n=null==t?void 0:t.performWork)&&"dirtyKey"in r?n.size:void 0],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(B):[]})(this.queryManager.documentTransform).map(function(e){return{cache:e}})}},null==(o=(r=this.cache).getMemoryInternals)?void 0:o.call(r))}}:void 0;function B(e){return null!=e}var H=!1,Y=function(){function e(e){var t,n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw o.newInvariantError(16);var r=e.uri,l=e.credentials,u=e.headers,c=e.cache,p=e.documentTransform,f=e.ssrMode,d=void 0!==f&&f,h=e.ssrForceFetchDelay,y=void 0===h?0:h,m=e.connectToDevTools,v=e.queryDeduplication,g=void 0===v||v,b=e.defaultOptions,E=e.defaultContext,T=e.assumeImmutableResults,_=void 0===T?c.assumeImmutableResults:T,N=e.resolvers,O=e.typeDefs,I=e.fragmentMatcher,w=e.name,S=e.version,D=e.devtools,R=e.dataMasking,k=e.link;k||(k=r?new s.HttpLink({uri:r,credentials:l,headers:u}):a.ApolloLink.empty()),this.link=k,this.cache=c,this.disableNetworkFetches=d||y>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=O,this.devtoolsConfig=i.__assign(i.__assign({},D),{enabled:null!=(t=null==D?void 0:D.enabled)?t:m}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return n.disableNetworkFetches=!1},y),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="3.13.8",this.localState=new U({cache:c,client:this,resolvers:N,fragmentMatcher:I}),this.queryManager=new V({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:p,queryDeduplication:g,ssrMode:d,dataMasking:!!R,clientAwareness:{name:w,version:S},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!H&&!1!==globalThis.__DEV__&&(H=!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,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&o.invariant.log("Download the Apollo DevTools for a better development experience: %s",n)}},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=u.mergeOptions(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=i.__assign(i.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=u.mergeOptions(this.defaultOptions.query,e)),o.invariant("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=i.__assign(i.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=u.mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return i.__assign(i.__assign({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},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(i.__assign(i.__assign({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a.execute(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){!1!==globalThis.__DEV__&&o.invariant.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();for(var J in!1!==globalThis.__DEV__&&(Y.prototype.getMemoryInternals=G),v.setVerbosity(!1!==globalThis.__DEV__?"log":"silent"),t.DocumentTransform=u.DocumentTransform,t.Observable=u.Observable,t.isReference=u.isReference,t.makeReference=u.makeReference,t.mergeOptions=u.mergeOptions,t.ApolloCache=c.ApolloCache,t.Cache=c.Cache,t.InMemoryCache=c.InMemoryCache,t.MissingFieldError=c.MissingFieldError,t.defaultDataIdFromObject=c.defaultDataIdFromObject,t.makeVar=c.makeVar,t.ApolloError=p.ApolloError,t.isApolloError=p.isApolloError,t.fromError=m.fromError,t.fromPromise=m.fromPromise,t.throwServerError=m.throwServerError,t.toPromise=m.toPromise,t.setLogVerbosity=v.setVerbosity,t.disableExperimentalFragmentVariables=g.disableExperimentalFragmentVariables,t.disableFragmentWarnings=g.disableFragmentWarnings,t.enableExperimentalFragmentVariables=g.enableExperimentalFragmentVariables,t.gql=g.gql,t.resetCaches=g.resetCaches,t.ApolloClient=Y,t.ObservableQuery=R,t.isNetworkRequestSettled=function(e){return 7===e||8===e},a)"default"===J||t.hasOwnProperty(J)||(t[J]=a[J]);for(var J in s)"default"===J||t.hasOwnProperty(J)||(t[J]=s[J])},78549(e,t,n){var r=n(85608),i=n(4232),o=n(5437);t.o=function(e){return new i.ApolloLink(function(t,n){var i=r.__rest(t,[]);return new o.Observable(function(r){var o,a=!1;return Promise.resolve(i).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){a||(o=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))}).catch(r.error.bind(r)),function(){a=!0,o&&o.unsubscribe()}})})}},94037(e,t,n){n.r(t),n.d(t,{fieldNameFromStoreName:()=>u.iJ,makeVar:()=>p.UT,canonicalStringify:()=>s.M,cacheSlot:()=>p.bl,isReference:()=>a.A_,MissingFieldError:()=>o.Z,EntityStore:()=>l.D_,Cache:()=>i.l,Policies:()=>f.l,InMemoryCache:()=>c.D,ApolloCache:()=>r.k,defaultDataIdFromObject:()=>u.or,makeReference:()=>a.WU,createFragmentRegistry:()=>b}),n(70916);var r=n(42495),i=n(84673),o=n(65702),a=n(28907),s=n(44214),l=n(83906),u=n(35207),c=n(7068),p=n(777),f=n(92610),d=n(85608),h=n(90424),y=n(60837),m=n(3777),v=n(555),g=n(54019);function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(E.bind.apply(E,(0,d.__spreadArray)([void 0],e,!1)))}var E=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new Map;return t.forEach(function(e){(0,m.zK)(e).forEach(function(e){r.set(e.name.value,e)})}),r.forEach(function(t,n){t!==e.registry[n]&&(e.registry[n]=t,e.invalidate(n))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){var t=e.prototype;this.invalidate=(this.lookup=(0,y.wrap)(t.lookup.bind(this),{makeCacheKey:function(e){return e},max:v.v["fragmentRegistry.lookup"]||1e3})).dirty,this.transform=(0,y.wrap)(t.transform.bind(this),{cache:g.l,max:v.v["fragmentRegistry.transform"]||2e3}),this.findFragmentSpreads=(0,y.wrap)(t.findFragmentSpreads.bind(this),{cache:g.l,max:v.v["fragmentRegistry.findFragmentSpreads"]||4e3})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,n=new Map;(0,m.zK)(e).forEach(function(e){n.set(e.name.value,e)});var r=new Set,i=function(e){n.has(e)||r.add(e)},o=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(i)};o(e);var a=[],s=Object.create(null);if(r.forEach(function(e){var r=n.get(e);if(r)o(s[e]=r);else{a.push(e);var i=t.lookup(e);i&&o(s[e]=i)}}),a.length){var l=[];a.forEach(function(e){var t=s[e];t&&l.push(t)}),l.length&&(e=(0,d.__assign)((0,d.__assign)({},e),{definitions:e.definitions.concat(l)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return(0,h.YR)(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()},25979(e,t,n){n.r(t),n.d(t,{createOperation:()=>l.k,filterOperationVariables:()=>c.X,fromError:()=>r.N,fromPromise:()=>o.S,throwServerError:()=>a.A,toPromise:()=>i.h,transformOperation:()=>u.A,validateOperation:()=>s.K}),n(70916);var r=n(93161),i=n(60441),o=n(22594),a=n(3848),s=n(46192),l=n(16878),u=n(38414),c=n(70783)},39283(e,t,n){n.r(t),n.d(t,{disableWarningsSlot:()=>r.yV,maskFragment:()=>i.z,maskOperation:()=>o.m});var r=n(47150),i=n(62959),o=n(28354)},5437(e,t,n){n.r(t),n.d(t,{DEV:()=>r.DEV,concatPagination:()=>v,getInclusionDirectives:()=>i.tY,makeReference:()=>u.WU,shouldInclude:()=>i.MS,createFragmentMap:()=>a.JG,AutoCleanedStrongCache:()=>Y.V,hasAllDirectives:()=>i.I5,AutoCleanedWeakCache:()=>Y.A,canUseWeakMap:()=>P.et,getFragmentFromSelection:()=>a.HQ,storeKeyNameFromField:()=>u.Ii,getOperationDefinition:()=>s.Vu,isArray:()=>L.c,checkDocument:()=>s.sw,getFragmentMaskMode:()=>i.s7,maybe:()=>r.maybe,valueToObjectRepresentation:()=>u.J,mergeDeepArray:()=>m.IM,getDirectiveNames:()=>i.sx,isExecutionPatchInitialResult:()=>q.EQ,graphQLResultHasError:()=>C.t,resultKeyNameFromField:()=>u.ue,hasDirectives:()=>i.d8,isPlainObject:()=>x.Q,isNonNullObject:()=>x.U,mergeOptions:()=>j.l,canUseAsyncIteratorSymbol:()=>P.uJ,isReference:()=>u.A_,DeepMerger:()=>m.ZI,maybeDeepFreeze:()=>R.G,getFragmentDefinition:()=>s.E4,getTypenameFromResult:()=>u.D$,iterateObserversSafely:()=>k.w,getOperationName:()=>s.n4,removeDirectivesFromDocument:()=>c.iz,isStatefulPromise:()=>I,isInlineFragment:()=>u.kd,canUseWeakSet:()=>P.En,mergeDeep:()=>m.D9,omitDeep:()=>G,isQueryOperation:()=>d,print:()=>l.y,createRejectedPromise:()=>O,getStoreKeyName:()=>u.o5,removeFragmentSpreadFromDocument:()=>c.TC,removeArgumentsFromDocument:()=>c.it,fixObservableSubclass:()=>$.r,createFulfilledPromise:()=>N,canUseSymbol:()=>P.ol,getFragmentQueryDocument:()=>a.ct,removeConnectionDirectiveFromDocument:()=>c.hX,stringifyForDisplay:()=>U.p,wrapPromiseWithState:()=>w,relayStylePagination:()=>b,isNonEmptyArray:()=>L.E,getFragmentDefinitions:()=>s.zK,isExecutionPatchIncrementalResult:()=>q.ST,buildQueryFromSelectionSet:()=>c.zc,preventUnhandledRejection:()=>S.X,stripTypename:()=>H,canUseDOM:()=>P.Sw,canUseLayoutEffect:()=>P.JR,isApolloPayloadResult:()=>q.Nw,DocumentTransform:()=>o.c,addTypenameToDocument:()=>c.XY,canonicalStringify:()=>Q.M,Concast:()=>F.E,Observable:()=>_.c,argumentsObjectFromField:()=>u.MB,getDefaultValues:()=>s.wY,isField:()=>u.dt,hasClientExports:()=>i.f2,offsetLimitPagination:()=>g,removeClientSetsFromDocument:()=>c.er,isDocumentNode:()=>u.Kc,compact:()=>M.o,getGraphQLErrorsFromResult:()=>C.M,addNonReactiveToNamedFragments:()=>c.x3,getQueryDefinition:()=>s.AT,isExecutionPatchResult:()=>q.YX,asyncMap:()=>A.x,isFullyUnmaskedOperation:()=>a.s6,hasAnyDirectives:()=>i.hE,getMainDefinition:()=>s.Vn,isMutationOperation:()=>f,cloneDeep:()=>D.m,isSubscriptionOperation:()=>h,cacheSizes:()=>J.v,makeUniqueId:()=>V.v,mergeIncrementalData:()=>q.bd});var r=n(70916),i=n(82307),o=n(9354),a=n(2904),s=n(3777),l=n(38678),u=n(28907),c=n(53925);function p(e,t){var n;return(null==(n=(0,s.Vu)(e))?void 0:n.operation)===t}function f(e){return p(e,"mutation")}function d(e){return p(e,"query")}function h(e){return p(e,"subscription")}var y=n(85608),m=n(30671);function v(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,y.__spreadArray)((0,y.__spreadArray)([],e,!0),t,!0):t}}}function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,n){var r=n.args,i=e?e.slice(0):[];if(t)if(r)for(var o=r.offset,a=void 0===o?0:o,s=0;s<t.length;++s)i[a+s]=t[s];else i.push.apply(i,t);return i}}}function b(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,r=t.readField;if(!e)return e;var i=[],o="",a="";e.edges.forEach(function(e){n(r("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor||"",a=e.cursor||a))}),i.length>1&&o===a&&(o="");var s=e.pageInfo||{},l=s.startCursor,u=s.endCursor;return(0,y.__assign)((0,y.__assign)({},E(e)),{edges:i,pageInfo:(0,y.__assign)((0,y.__assign)({},e.pageInfo),{startCursor:l||o,endCursor:u||a})})},merge:function(e,t,n){var r=n.args,i=n.isReference,o=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return i(e=(0,y.__assign)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,l=s.startCursor,u=s.endCursor,c=a[0],p=a[a.length-1];c&&l&&(c.cursor=l),p&&u&&(p.cursor=u);var f=c&&c.cursor;f&&!l&&(t=(0,m.D9)(t,{pageInfo:{startCursor:f}}));var d=p&&p.cursor;d&&!u&&(t=(0,m.D9)(t,{pageInfo:{endCursor:d}}))}var h=e.edges,v=[];if(r&&r.after){var g=h.findIndex(function(e){return e.cursor===r.after});g>=0&&(h=h.slice(0,g+1))}else if(r&&r.before){var g=h.findIndex(function(e){return e.cursor===r.before});v=g<0?h:h.slice(g),h=[]}else t.edges&&(h=[]);var b=(0,y.__spreadArray)((0,y.__spreadArray)((0,y.__spreadArray)([],h,!0),a,!0),v,!0),T=(0,y.__assign)((0,y.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var _=t.pageInfo,N=_.hasPreviousPage,O=_.hasNextPage,l=_.startCursor,u=_.endCursor;Object.assign(T,(0,y.__rest)(_,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),h.length||(void 0!==N&&(T.hasPreviousPage=N),void 0!==l&&(T.startCursor=l)),v.length||(void 0!==O&&(T.hasNextPage=O),void 0!==u&&(T.endCursor=u))}return(0,y.__assign)((0,y.__assign)((0,y.__assign)({},E(e)),E(t)),{edges:b,pageInfo:T})}}}var E=function(e){return(0,y.__rest)(e,T)},T=["edges","pageInfo"],_=n(36054);function N(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function O(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function I(e){return"status"in e}function w(e){return I(e)||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var S=n(30234),D=n(20906),R=n(57236),k=n(87613),A=n(5762),F=n(45637),$=n(35892),L=n(73767),x=n(21777),C=n(32710),P=n(51360),M=n(50492),V=n(21461),U=n(86563),j=n(31507),q=n(37396),Q=n(44214);function G(e,t){return B(e,t)}function B(e,t,n){if(void 0===n&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var i=[];if(n.set(e,i),e.forEach(function(e,o){var a=B(e,t,n);r||(r=a!==e),i[o]=a}),r)return i}else if((0,x.Q)(e)){var o=Object.create(Object.getPrototypeOf(e));if(n.set(e,o),Object.keys(e).forEach(function(i){if(i===t){r=!0;return}var a=B(e[i],t,n);r||(r=a!==e[i]),o[i]=a}),r)return o}return e}function H(e){return B(e,"__typename")}var Y=n(45078),J=n(555)},36869(e,t,n){let r;n.r(t),n.d(t,{VariablesAreInputTypesRule:()=>nV,SingleFieldSubscriptionsRule:()=>nN,UniqueVariableNamesRule:()=>nC,GraphQLDeprecatedDirective:()=>e9,GraphQLNonNull:()=>eh,__InputValue:()=>td,createSourceEventStream:()=>ry,execute:()=>nZ,isDefinitionNode:()=>tM.MD,isInterfaceType:()=>B,isRequiredArgument:()=>e$,isValidNameError:()=>r0,parseValue:()=>y.$x,valueFromAST:()=>nd,NoUnusedVariablesRule:()=>t0,__DirectiveLocation:()=>tc,findDangerousChanges:()=>r3,__TypeKind:()=>ty,isSchema:()=>tT,UniqueTypeNamesRule:()=>nx,NoSchemaIntrospectionCustomRule:()=>rg,defaultTypeResolver:()=>rn,isType:()=>V,syntaxError:()=>rb.I,version:()=>i,UniqueFragmentNamesRule:()=>nA,assertWrappingType:()=>em,getNullableType:()=>eb,isObjectType:()=>Q,visitWithTypeInfo:()=>tP,assertEnumValueName:()=>M,printSchema:()=>rP,validate:()=>nY,BREAK:()=>t$.sP,assertNonNullType:()=>en,assertNullableType:()=>eg,executeSync:()=>n0,isLeafType:()=>es,resolveSchemaCoordinate:()=>r5,assertOutputType:()=>ea,buildASTSchema:()=>rk,astFromValue:()=>ta,Kind:()=>$.b,ProvidedRequiredArgumentsRule:()=>ni,UniqueDirectiveNamesRule:()=>nS,KnownDirectivesRule:()=>tG,DEFAULT_DEPRECATION_REASON:()=>e5,TypeKind:()=>c,assertInterfaceType:()=>H,isValueNode:()=>tM.aR,GraphQLSpecifiedByDirective:()=>te,GraphQLFloat:()=>ez,UniqueFieldDefinitionNamesRule:()=>nk,LoneAnonymousOperationRule:()=>tJ,VariablesInAllowedPositionRule:()=>nU,assertInputType:()=>ei,formatError:()=>v.Wk,assertInputObjectType:()=>X,isOutputType:()=>eo,isWrappingType:()=>ey,assertLeafType:()=>el,assertValidSchema:()=>tw,FragmentsOnCompositeTypesRule:()=>tj,graphql:()=>ro,UniqueOperationTypesRule:()=>nL,parseSchemaCoordinate:()=>y.Ng,UniqueEnumValueNamesRule:()=>nR,isNonNullType:()=>et,isSelectionNode:()=>tM.VK,printError:()=>v.yJ,specifiedDirectives:()=>tn,visit:()=>t$.YR,GraphQLScalarType:()=>eI,assertEnumType:()=>z,UniqueDirectivesPerLocationRule:()=>nD,assertName:()=>P,getDirectiveValues:()=>nv,isConstValueNode:()=>tM.TZ,isEqualType:()=>eQ,isNamedType:()=>eE,isTypeDefinitionNode:()=>tM.a6,validateSchema:()=>tI,parse:()=>y.qg,__Schema:()=>tl,isTypeSystemDefinitionNode:()=>tM.xu,valueFromASTUntyped:()=>x,LoneSchemaDefinitionRule:()=>tW,isTypeSubTypeOf:()=>eG,UniqueArgumentNamesRule:()=>nw,UniqueInputFieldNamesRule:()=>nF,locatedError:()=>nK,typeFromAST:()=>tL,printLocation:()=>rc.V,assertUnionType:()=>J,separateOperations:()=>rz,getVariableValues:()=>ny,Location:()=>g.aZ,GraphQLObjectType:()=>ew,UniqueArgumentDefinitionNamesRule:()=>nI,stripIgnoredCharacters:()=>rX,GRAPHQL_MAX_INT:()=>eY,visitInParallel:()=>t$.oP,parseType:()=>y.Mb,isTypeNode:()=>tM.dI,PossibleTypeExtensionsRule:()=>nn,graphqlSync:()=>ra,isSchemaCoordinateNode:()=>tM.gj,DirectiveLocation:()=>eH.H,TypeNameMetaFieldDef:()=>tg,coerceInputValue:()=>np,GraphQLInt:()=>eW,resolveObjMapThunk:()=>eO,GraphQLInterfaceType:()=>eL,UniqueOperationNamesRule:()=>n$,GraphQLSkipDirective:()=>e8,isEnumType:()=>W,assertValidName:()=>rZ,buildClientSchema:()=>rO,KnownArgumentNamesRule:()=>tq,ValuesOfCorrectTypeRule:()=>nP,isInputObjectType:()=>K,GraphQLID:()=>eZ,NoUnusedFragmentsRule:()=>tZ,isUnionType:()=>Y,isSpecifiedScalarType:()=>e1,getArgumentValues:()=>nm,printSourceLocation:()=>rc.C,__EnumValue:()=>th,getOperationAST:()=>rT,isExecutableDefinitionNode:()=>tM._m,isAbstractType:()=>ep,assertAbstractType:()=>ef,isTypeExtensionNode:()=>tM.i7,GraphQLInputObjectType:()=>eU,getNamedType:()=>e_,parseConstValue:()=>y.u8,KnownFragmentNamesRule:()=>tB,isListType:()=>Z,Lexer:()=>rp.JG,isSpecifiedDirective:()=>tr,responsePathAsArray:()=>nc,isDirective:()=>e2,TypeInfo:()=>tx,assertScalarType:()=>q,extendSchema:()=>rI,isIntrospectionType:()=>tE,print:()=>L.y,getIntrospectionQuery:()=>rE,GraphQLBoolean:()=>eX,KnownTypeNamesRule:()=>tH,assertListType:()=>ee,concatAST:()=>rW,NoDeprecatedCustomRule:()=>rv,defaultFieldResolver:()=>rr,GraphQLDirective:()=>e7,getLocation:()=>ru.g,TypeMetaFieldDef:()=>tv,GRAPHQL_MIN_INT:()=>eJ,GraphQLIncludeDirective:()=>e6,ScalarLeafsRule:()=>ns,assertSchema:()=>t_,lexicographicSortSchema:()=>rF,GraphQLList:()=>ed,isTypeSystemExtensionNode:()=>tM.fT,specifiedScalarTypes:()=>e0,BreakingChangeType:()=>p,ExecutableDefinitionsRule:()=>tV,assertDirective:()=>e4,__Field:()=>tf,getVisitFn:()=>t$.UY,recommendedRules:()=>nj,SchemaMetaFieldDef:()=>tm,assertCompositeType:()=>ec,isRequiredInputField:()=>eq,Token:()=>g.ou,specifiedRules:()=>nq,DangerousChangeType:()=>f,GraphQLUnionType:()=>ex,isCompositeType:()=>eu,versionInfo:()=>o,FieldsOnCorrectTypeRule:()=>tU,GraphQLString:()=>eK,assertType:()=>U,introspectionFromSchema:()=>rN,doTypesOverlap:()=>eB,GraphQLEnumType:()=>eP,resolveReadonlyArrayThunk:()=>eN,GraphQLOneOfDirective:()=>tt,NoFragmentCyclesRule:()=>tK,findBreakingChanges:()=>r1,ValidationContext:()=>nH,OverlappingFieldsCanBeMergedRule:()=>t3,isScalarType:()=>j,MaxIntrospectionDepthRule:()=>tz,NoUndefinedVariablesRule:()=>tX,assertObjectType:()=>G,getOperationRootType:()=>r_,printType:()=>rj,OperationTypeNode:()=>g.cE,isInputType:()=>er,__Directive:()=>tu,GraphQLSchema:()=>tN,Source:()=>rl.k,resolveASTSchemaCoordinate:()=>r9,GraphQLError:()=>v.eO,assertNamedType:()=>eT,buildSchema:()=>rA,introspectionTypes:()=>tb,PossibleFragmentSpreadsRule:()=>nt,__Type:()=>tp,getEnterLeaveForKind:()=>t$.XO,TokenKind:()=>rf.Y,printIntrospectionSchema:()=>rM,isNullableType:()=>ev,subscribe:()=>rh});let i="16.12.0",o=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});var a,s,l,u,c,p,f,d=n(93217);function h(e){return"function"==typeof(null==e?void 0:e.then)}var y=n(20186),m=n(35198),v=n(48255),g=n(59762);function b(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function E(e){return e}var T=n(50792),_=n(91070);function N(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function O(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function I(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function w(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(D(i)&&D(o)){let a=0;do++n,a=10*a+i-S,i=e.charCodeAt(n);while(D(i)&&a>0);let s=0;do++r,s=10*s+o-S,o=t.charCodeAt(r);while(D(o)&&s>0);if(a<s)return -1;if(a>s)return 1}else{if(i<o)return -1;if(i>o)return 1;++n,++r}}return e.length-t.length}let S=48;function D(e){return!isNaN(e)&&S<=e&&e<=57}function R(e,t){let n=Object.create(null),r=new k(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:w(e,t)})}class k{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=A(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=A(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let o=r.length,a=i.length;if(o-a>t)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),u<l&&(l=u),o[t]=u}if(l>t)return}let l=s[o%3][a];return l<=t?l:void 0}}function A(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function F(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var $=n(42455),L=n(95818);function x(e,t){switch(e.kind){case $.b.NULL:return null;case $.b.INT:return parseInt(e.value,10);case $.b.FLOAT:return parseFloat(e.value);case $.b.STRING:case $.b.ENUM:case $.b.BOOLEAN:return e.value;case $.b.LIST:return e.values.map(e=>x(e,t));case $.b.OBJECT:return O(e.fields,e=>e.name.value,e=>x(e.value,t));case $.b.VARIABLE:return null==t?void 0:t[e.name.value]}}var C=n(25881);function P(e){if(null!=e||(0,d.U)(!1,"Must provide name."),"string"==typeof e||(0,d.U)(!1,"Expected name to be a string."),0===e.length)throw new v.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,C.xr)(e.charCodeAt(t)))throw new v.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,C.un)(e.charCodeAt(0)))throw new v.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function M(e){if("true"===e||"false"===e||"null"===e)throw new v.eO(`Enum values cannot be named: ${e}`);return P(e)}function V(e){return j(e)||Q(e)||B(e)||Y(e)||W(e)||K(e)||Z(e)||et(e)}function U(e){if(!V(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL type.`);return e}function j(e){return(0,T.h)(e,eI)}function q(e){if(!j(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Scalar type.`);return e}function Q(e){return(0,T.h)(e,ew)}function G(e){if(!Q(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Object type.`);return e}function B(e){return(0,T.h)(e,eL)}function H(e){if(!B(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Interface type.`);return e}function Y(e){return(0,T.h)(e,ex)}function J(e){if(!Y(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Union type.`);return e}function W(e){return(0,T.h)(e,eP)}function z(e){if(!W(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Enum type.`);return e}function K(e){return(0,T.h)(e,eU)}function X(e){if(!K(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Input Object type.`);return e}function Z(e){return(0,T.h)(e,ed)}function ee(e){if(!Z(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL List type.`);return e}function et(e){return(0,T.h)(e,eh)}function en(e){if(!et(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL Non-Null type.`);return e}function er(e){return j(e)||W(e)||K(e)||ey(e)&&er(e.ofType)}function ei(e){if(!er(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL input type.`);return e}function eo(e){return j(e)||Q(e)||B(e)||Y(e)||W(e)||ey(e)&&eo(e.ofType)}function ea(e){if(!eo(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL output type.`);return e}function es(e){return j(e)||W(e)}function el(e){if(!es(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL leaf type.`);return e}function eu(e){return Q(e)||B(e)||Y(e)}function ec(e){if(!eu(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL composite type.`);return e}function ep(e){return B(e)||Y(e)}function ef(e){if(!ep(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL abstract type.`);return e}class ed{constructor(e){V(e)||(0,d.U)(!1,`Expected ${(0,m.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class eh{constructor(e){ev(e)||(0,d.U)(!1,`Expected ${(0,m.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function ey(e){return Z(e)||et(e)}function em(e){if(!ey(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL wrapping type.`);return e}function ev(e){return V(e)&&!et(e)}function eg(e){if(!ev(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL nullable type.`);return e}function eb(e){if(e)return et(e)?e.ofType:e}function eE(e){return j(e)||Q(e)||B(e)||Y(e)||W(e)||K(e)}function eT(e){if(!eE(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL named type.`);return e}function e_(e){if(e){let t=e;for(;ey(t);)t=t.ofType;return t}}function eN(e){return"function"==typeof e?e():e}function eO(e){return"function"==typeof e?e():e}class eI{constructor(e){var t,n,r,i;let o=null!=(t=e.parseValue)?t:E;this.name=P(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(n=e.serialize)?n:E,this.parseValue=o,this.parseLiteral=null!=(r=e.parseLiteral)?r:(e,t)=>o(x(e,t)),this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,d.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,m.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,d.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,d.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ew{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>eD(e),this._interfaces=()=>eS(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,d.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,m.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:eA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eS(e){var t;let n=eN(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||(0,d.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eD(e){let t=eO(e.fields);return ek(t)||(0,d.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),I(t,(t,n)=>{var r;ek(t)||(0,d.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,d.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,m.N)(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return ek(i)||(0,d.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:P(n),description:t.description,type:t.type,args:eR(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}})}function eR(e){return Object.entries(e).map(([e,t])=>({name:P(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function ek(e){return(0,_.Z)(e)&&!Array.isArray(e)}function eA(e){return I(e,e=>({description:e.description,type:e.type,args:eF(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eF(e){return O(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function e$(e){return et(e.type)&&void 0===e.defaultValue}class eL{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=eD.bind(void 0,e),this._interfaces=eS.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,d.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,m.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:eA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ex{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=eC.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,d.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,m.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eC(e){let t=eN(e.types);return Array.isArray(t)||(0,d.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class eP{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:eV(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=eV(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=N(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new v.eO(`Enum "${this.name}" cannot represent value: ${(0,m.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,m.N)(e);throw new v.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eM(this,t))}let t=this.getValue(e);if(null==t)throw new v.eO(`Value "${e}" does not exist in "${this.name}" enum.`+eM(this,e));return t.value}parseLiteral(e,t){if(e.kind!==$.b.ENUM){let t=(0,L.y)(e);throw new v.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eM(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=(0,L.y)(e);throw new v.eO(`Value "${t}" does not exist in "${this.name}" enum.`+eM(this,t),{nodes:e})}return n.value}toConfig(){let e=O(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eM(e,t){return b("the enum value",R(t,e.getValues().map(e=>e.name)))}function eV(e,t){return ek(t)||(0,d.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(ek(n)||(0,d.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,m.N)(n)}.`),{name:M(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:F(n.extensions),astNode:n.astNode}))}class eU{constructor(e){var t,n;this.name=P(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=ej.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=I(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function ej(e){let t=eO(e.fields);return ek(t)||(0,d.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),I(t,(t,n)=>("resolve"in t&&(0,d.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:P(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function eq(e){return et(e.type)&&void 0===e.defaultValue}function eQ(e,t){return e===t||!!(et(e)&&et(t)||Z(e)&&Z(t))&&eQ(e.ofType,t.ofType)}function eG(e,t,n){return t===n||(et(n)?!!et(t)&&eG(e,t.ofType,n.ofType):et(t)?eG(e,t.ofType,n):Z(n)?!!Z(t)&&eG(e,t.ofType,n.ofType):!Z(t)&&ep(n)&&(B(t)||Q(t))&&e.isSubType(n,t))}function eB(e,t,n){return t===n||(ep(t)?ep(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ep(n)&&e.isSubType(n,t))}var eH=n(42868);let eY=0x7fffffff,eJ=-0x80000000,eW=new eI({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=e3(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new v.eO(`Int cannot represent non-integer value: ${(0,m.N)(t)}`);if(n>eY||n<eJ)throw new v.eO("Int cannot represent non 32-bit signed integer value: "+(0,m.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new v.eO(`Int cannot represent non-integer value: ${(0,m.N)(e)}`);if(e>eY||e<eJ)throw new v.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==$.b.INT)throw new v.eO(`Int cannot represent non-integer value: ${(0,L.y)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>eY||t<eJ)throw new v.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),ez=new eI({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=e3(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new v.eO(`Float cannot represent non numeric value: ${(0,m.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new v.eO(`Float cannot represent non numeric value: ${(0,m.N)(e)}`);return e},parseLiteral(e){if(e.kind!==$.b.FLOAT&&e.kind!==$.b.INT)throw new v.eO(`Float cannot represent non numeric value: ${(0,L.y)(e)}`,e);return parseFloat(e.value)}}),eK=new eI({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=e3(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new v.eO(`String cannot represent value: ${(0,m.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new v.eO(`String cannot represent a non string value: ${(0,m.N)(e)}`);return e},parseLiteral(e){if(e.kind!==$.b.STRING)throw new v.eO(`String cannot represent a non string value: ${(0,L.y)(e)}`,{nodes:e});return e.value}}),eX=new eI({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=e3(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new v.eO(`Boolean cannot represent a non boolean value: ${(0,m.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new v.eO(`Boolean cannot represent a non boolean value: ${(0,m.N)(e)}`);return e},parseLiteral(e){if(e.kind!==$.b.BOOLEAN)throw new v.eO(`Boolean cannot represent a non boolean value: ${(0,L.y)(e)}`,{nodes:e});return e.value}}),eZ=new eI({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=e3(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new v.eO(`ID cannot represent value: ${(0,m.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new v.eO(`ID cannot represent value: ${(0,m.N)(e)}`)},parseLiteral(e){if(e.kind!==$.b.STRING&&e.kind!==$.b.INT)throw new v.eO("ID cannot represent a non-string and non-integer value: "+(0,L.y)(e),{nodes:e});return e.value}}),e0=Object.freeze([eK,eW,ez,eX,eZ]);function e1(e){return e0.some(({name:t})=>e.name===t)}function e3(e){if((0,_.Z)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,_.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function e2(e){return(0,T.h)(e,e7)}function e4(e){if(!e2(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL directive.`);return e}class e7{constructor(e){var t,n;this.name=P(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=F(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,d.U)(!1,`@${e.name} locations must be an Array.`);let r=null!=(n=e.args)?n:{};(0,_.Z)(r)&&!Array.isArray(r)||(0,d.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=eR(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eF(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let e6=new e7({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[eH.H.FIELD,eH.H.FRAGMENT_SPREAD,eH.H.INLINE_FRAGMENT],args:{if:{type:new eh(eX),description:"Included when true."}}}),e8=new e7({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[eH.H.FIELD,eH.H.FRAGMENT_SPREAD,eH.H.INLINE_FRAGMENT],args:{if:{type:new eh(eX),description:"Skipped when true."}}}),e5="No longer supported",e9=new e7({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[eH.H.FIELD_DEFINITION,eH.H.ARGUMENT_DEFINITION,eH.H.INPUT_FIELD_DEFINITION,eH.H.ENUM_VALUE],args:{reason:{type:eK,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:e5}}}),te=new e7({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[eH.H.SCALAR],args:{url:{type:new eh(eK),description:"The URL that specifies the behavior of this scalar."}}}),tt=new e7({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[eH.H.INPUT_OBJECT],args:{}}),tn=Object.freeze([e6,e8,e9,te,tt]);function tr(e){return tn.some(({name:t})=>t===e.name)}var ti=n(71306);function to(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ta(e,t){if(et(t)){let n=ta(e,t.ofType);return(null==n?void 0:n.kind)===$.b.NULL?null:n}if(null===e)return{kind:$.b.NULL};if(void 0===e)return null;if(Z(t)){let n=t.ofType;if(to(e)){let t=[];for(let r of e){let e=ta(r,n);null!=e&&t.push(e)}return{kind:$.b.LIST,values:t}}return ta(e,n)}if(K(t)){if(!(0,_.Z)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ta(e[r.name],r.type);t&&n.push({kind:$.b.OBJECT_FIELD,name:{kind:$.b.NAME,value:r.name},value:t})}return{kind:$.b.OBJECT,fields:n}}if(es(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:$.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return ts.test(e)?{kind:$.b.INT,value:e}:{kind:$.b.FLOAT,value:e}}if("string"==typeof n)return W(t)?{kind:$.b.ENUM,value:n}:t===eZ&&ts.test(n)?{kind:$.b.INT,value:n}:{kind:$.b.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,m.N)(n)}.`)}(0,ti.V)(!1,"Unexpected input type: "+(0,m.N)(t))}let ts=/^-?(?:0|[1-9][0-9]*)$/,tl=new ew({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:eK,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new eh(new ed(new eh(tp))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new eh(tp),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tp,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tp,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new eh(new ed(new eh(tu))),resolve:e=>e.getDirectives()}})}),tu=new ew({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new eh(eK),resolve:e=>e.name},description:{type:eK,resolve:e=>e.description},isRepeatable:{type:new eh(eX),resolve:e=>e.isRepeatable},locations:{type:new eh(new ed(new eh(tc))),resolve:e=>e.locations},args:{type:new eh(new ed(new eh(td))),args:{includeDeprecated:{type:eX,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),tc=new eP({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:eH.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:eH.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:eH.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:eH.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:eH.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:eH.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:eH.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:eH.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:eH.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:eH.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:eH.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:eH.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:eH.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:eH.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:eH.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:eH.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:eH.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:eH.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:eH.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),tp=new ew({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new eh(ty),resolve:e=>j(e)?c.SCALAR:Q(e)?c.OBJECT:B(e)?c.INTERFACE:Y(e)?c.UNION:W(e)?c.ENUM:K(e)?c.INPUT_OBJECT:Z(e)?c.LIST:et(e)?c.NON_NULL:void(0,ti.V)(!1,`Unexpected type: "${(0,m.N)(e)}".`)},name:{type:eK,resolve:e=>"name"in e?e.name:void 0},description:{type:eK,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:eK,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ed(new eh(tf)),args:{includeDeprecated:{type:eX,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Q(e)||B(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new ed(new eh(tp)),resolve(e){if(Q(e)||B(e))return e.getInterfaces()}},possibleTypes:{type:new ed(new eh(tp)),resolve(e,t,n,{schema:r}){if(ep(e))return r.getPossibleTypes(e)}},enumValues:{type:new ed(new eh(th)),args:{includeDeprecated:{type:eX,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(W(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new ed(new eh(td)),args:{includeDeprecated:{type:eX,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(K(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tp,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:eX,resolve:e=>{if(K(e))return e.isOneOf}}})}),tf=new ew({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new eh(eK),resolve:e=>e.name},description:{type:eK,resolve:e=>e.description},args:{type:new eh(new ed(new eh(td))),args:{includeDeprecated:{type:eX,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new eh(tp),resolve:e=>e.type},isDeprecated:{type:new eh(eX),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eK,resolve:e=>e.deprecationReason}})}),td=new ew({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new eh(eK),resolve:e=>e.name},description:{type:eK,resolve:e=>e.description},type:{type:new eh(tp),resolve:e=>e.type},defaultValue:{type:eK,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ta(n,t);return r?(0,L.y)(r):null}},isDeprecated:{type:new eh(eX),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eK,resolve:e=>e.deprecationReason}})}),th=new ew({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new eh(eK),resolve:e=>e.name},description:{type:eK,resolve:e=>e.description},isDeprecated:{type:new eh(eX),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eK,resolve:e=>e.deprecationReason}})});(a=c||(c={})).SCALAR="SCALAR",a.OBJECT="OBJECT",a.INTERFACE="INTERFACE",a.UNION="UNION",a.ENUM="ENUM",a.INPUT_OBJECT="INPUT_OBJECT",a.LIST="LIST",a.NON_NULL="NON_NULL";let ty=new eP({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:c.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:c.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:c.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:c.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:c.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:c.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:c.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),tm={name:"__schema",type:new eh(tl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tv={name:"__type",type:tp,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new eh(eK),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tg={name:"__typename",type:new eh(eK),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tb=Object.freeze([tl,tu,tc,tp,tf,td,th,ty]);function tE(e){return tb.some(({name:t})=>e.name===t)}function tT(e){return(0,T.h)(e,tN)}function t_(e){if(!tT(e))throw Error(`Expected ${(0,m.N)(e)} to be a GraphQL schema.`);return e}class tN{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,_.Z)(e)||(0,d.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,d.U)(!1,`"types" must be Array if provided but got: ${(0,m.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,d.U)(!1,`"directives" must be Array if provided but got: ${(0,m.N)(e.directives)}.`),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:tn;let r=new Set(e.types);if(null!=e.types)for(let t of e.types)r.delete(t),tO(t,r);for(let e of(null!=this._queryType&&tO(this._queryType,r),null!=this._mutationType&&tO(this._mutationType,r),null!=this._subscriptionType&&tO(this._subscriptionType,r),this._directives))if(e2(e))for(let t of e.args)tO(t.type,r);for(let e of(tO(tl,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;let t=e.name;if(t||(0,d.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,B(e)){for(let t of e.getInterfaces())if(B(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(Q(e)){for(let t of e.getInterfaces())if(B(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case g.cE.QUERY:return this.getQueryType();case g.cE.MUTATION:return this.getMutationType();case g.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Y(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Y(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function tO(e,t){let n=e_(e);if(!t.has(n)){if(t.add(n),Y(n))for(let e of n.getTypes())tO(e,t);else if(Q(n)||B(n)){for(let e of n.getInterfaces())tO(e,t);for(let e of Object.values(n.getFields()))for(let n of(tO(e.type,t),e.args))tO(n.type,t)}else if(K(n))for(let e of Object.values(n.getFields()))tO(e.type,t)}return t}function tI(e){var t,n,r,i;let o,a,s,l;if(t_(e),e.__validationErrors)return e.__validationErrors;let u=new tS(e);(a=(o=(t=u).schema).getQueryType())?Q(a)||t.reportError(`Query root type must be Object type, it cannot be ${(0,m.N)(a)}.`,null!=(n=tD(o,g.cE.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!Q(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,m.N)(s)}.`,null!=(r=tD(o,g.cE.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!Q(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,m.N)(l)}.`,null!=(i=tD(o,g.cE.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!e2(n)){e.reportError(`Expected directive but got: ${(0,m.N)(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(tR(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(tR(e,r),er(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,m.N)(r.type)}.`,r.astNode),e$(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[tF(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(u),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(et(a.type)&&K(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!eE(t)){e.reportError(`Expected GraphQL named type but got: ${(0,m.N)(t)}.`,t.astNode);continue}tE(t)||tR(e,t),Q(t)||B(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(tR(e,a),eo(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,m.N)(a.type)}.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;tR(e,n),er(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${(0,m.N)(n.type)}.`,null==(i=n.astNode)?void 0:i.type),e$(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[tF(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!B(r)){e.reportError(`Type ${(0,m.N)(t)} must only implement Interface types, it cannot implement ${(0,m.N)(r)}.`,tk(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tk(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tk(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tk(n,i),...tk(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(eG(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${(0,m.N)(l.type)} but ${t.name}.${u} is type ${(0,m.N)(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}eQ(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${(0,m.N)(r.type)} but ${t.name}.${u}(${i}:) is type ${(0,m.N)(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&e$(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):Y(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tA(t,i.name));continue}r[i.name]=!0,Q(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,m.N)(i)}.`,tA(t,String(i)))}}(e,t):W(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))tR(e,r)}(e,t):K(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;tR(e,o),er(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,m.N)(o.type)}.`,null==(r=o.astNode)?void 0:r.type),eq(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[tF(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(et(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(u);let c=u.getErrors();return e.__validationErrors=c,c}function tw(e){let t=tI(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tS{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new v.eO(e,{nodes:n}))}getErrors(){return this._errors}}function tD(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function tR(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tk(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function tA(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function tF(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===e9.name)}var t$=n(90424);function tL(e,t){switch(t.kind){case $.b.LIST_TYPE:{let n=tL(e,t.type);return n&&new ed(n)}case $.b.NON_NULL_TYPE:{let n=tL(e,t.type);return n&&new eh(n)}case $.b.NAMED_TYPE:return e.getType(t.name.value)}}class tx{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:tC,t&&(er(t)&&this._inputTypeStack.push(t),eu(t)&&this._parentTypeStack.push(t),eo(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case $.b.SELECTION_SET:{let e=e_(this.getType());this._parentTypeStack.push(eu(e)?e:void 0);break}case $.b.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(eo(r)?r:void 0);break}case $.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case $.b.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(Q(n)?n:void 0);break}case $.b.INLINE_FRAGMENT:case $.b.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?tL(t,n):e_(this.getType());this._typeStack.push(eo(r)?r:void 0);break}case $.b.VARIABLE_DEFINITION:{let n=tL(t,e.type);this._inputTypeStack.push(er(n)?n:void 0);break}case $.b.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(er(r)?r:void 0);break}case $.b.LIST:{let e=eb(this.getInputType()),t=Z(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case $.b.OBJECT_FIELD:{let t,n,r=e_(this.getInputType());K(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case $.b.ENUM:{let t,n=e_(this.getInputType());W(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case $.b.SELECTION_SET:this._parentTypeStack.pop();break;case $.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case $.b.DIRECTIVE:this._directive=null;break;case $.b.OPERATION_DEFINITION:case $.b.INLINE_FRAGMENT:case $.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case $.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case $.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $.b.LIST:case $.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $.b.ENUM:this._enumValue=null}}}function tC(e,t,n){let r=n.name.value;return r===tm.name&&e.getQueryType()===t?tm:r===tv.name&&e.getQueryType()===t?tv:r===tg.name&&eu(t)?tg:Q(t)||B(t)?t.getFields()[r]:void 0}function tP(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,t$.XO)(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),(0,g.Ll)(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=(0,t$.XO)(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}var tM=n(3420);function tV(e){return{Document(t){for(let n of t.definitions)if(!(0,tM._m)(n)){let t=n.kind===$.b.SCHEMA_DEFINITION||n.kind===$.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new v.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function tU(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=b("to use an inline fragment on",function(e,t,n){if(!ep(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:B(t)&&e.isSubType(t,n)?-1:B(n)&&e.isSubType(n,t)?1:w(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=b((r=n,i=a,Q(r)||B(r)?R(i,Object.keys(r.getFields())):[]))),e.reportError(new v.eO(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function tj(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tL(e.getSchema(),n);if(t&&!eu(t)){let t=(0,L.y)(n);e.reportError(new v.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tL(e.getSchema(),t.typeCondition);if(n&&!eu(n)){let n=(0,L.y)(t.typeCondition);e.reportError(new v.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tq(e){return{...tQ(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=R(n,r.args.map(e=>e.name));e.reportError(new v.eO(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+b(o),{nodes:t}))}}}}function tQ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===$.b.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=R(n,i);e.reportError(new v.eO(`Unknown argument "${n}" on directive "@${r}".`+b(o),{nodes:t}))}}return!1}}}function tG(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===$.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new v.eO(`Unknown directive "@${s}".`,{nodes:n}));let u=function(e){let t=e[e.length-1];switch("kind"in t||(0,ti.V)(!1),t.kind){case $.b.OPERATION_DEFINITION:var n=t.operation;switch(n){case g.cE.QUERY:return eH.H.QUERY;case g.cE.MUTATION:return eH.H.MUTATION;case g.cE.SUBSCRIPTION:return eH.H.SUBSCRIPTION}return;case $.b.FIELD:return eH.H.FIELD;case $.b.FRAGMENT_SPREAD:return eH.H.FRAGMENT_SPREAD;case $.b.INLINE_FRAGMENT:return eH.H.INLINE_FRAGMENT;case $.b.FRAGMENT_DEFINITION:return eH.H.FRAGMENT_DEFINITION;case $.b.VARIABLE_DEFINITION:return eH.H.VARIABLE_DEFINITION;case $.b.SCHEMA_DEFINITION:case $.b.SCHEMA_EXTENSION:return eH.H.SCHEMA;case $.b.SCALAR_TYPE_DEFINITION:case $.b.SCALAR_TYPE_EXTENSION:return eH.H.SCALAR;case $.b.OBJECT_TYPE_DEFINITION:case $.b.OBJECT_TYPE_EXTENSION:return eH.H.OBJECT;case $.b.FIELD_DEFINITION:return eH.H.FIELD_DEFINITION;case $.b.INTERFACE_TYPE_DEFINITION:case $.b.INTERFACE_TYPE_EXTENSION:return eH.H.INTERFACE;case $.b.UNION_TYPE_DEFINITION:case $.b.UNION_TYPE_EXTENSION:return eH.H.UNION;case $.b.ENUM_TYPE_DEFINITION:case $.b.ENUM_TYPE_EXTENSION:return eH.H.ENUM;case $.b.ENUM_VALUE_DEFINITION:return eH.H.ENUM_VALUE;case $.b.INPUT_OBJECT_TYPE_DEFINITION:case $.b.INPUT_OBJECT_TYPE_EXTENSION:return eH.H.INPUT_OBJECT;case $.b.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,ti.V)(!1),t.kind===$.b.INPUT_OBJECT_TYPE_DEFINITION?eH.H.INPUT_FIELD_DEFINITION:eH.H.ARGUMENT_DEFINITION}default:(0,ti.V)(!1,"Unexpected kind: "+(0,m.N)(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new v.eO(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}function tB(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new v.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function tH(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)(0,tM.a6)(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&((0,tM.xu)(p)||(0,tM.fT)(p));if(r&&tY.includes(u))return;let o=R(u,r?tY.concat(i):i);e.reportError(new v.eO(`Unknown type "${u}".`+b(o),{nodes:t}))}}}}let tY=[...e0,...tb].map(e=>e.name);function tJ(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===$.b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new v.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function tW(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new v.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new v.eO("Must provide only one schema definition.",{nodes:t})),++a)}}}function tz(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===$.b.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===$.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new v.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function tK(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new v.eO(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function tX(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new v.eO(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function tZ(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new v.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function t0(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new v.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function t1(e){switch(e.kind){case $.b.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:t1(e.value)})).sort((e,t)=>w(e.name.value,t.name.value))};case $.b.LIST:return{...e,values:e.values.map(t1)};case $.b.INT:case $.b.FLOAT:case $.b.STRING:case $.b.BOOLEAN:case $.b.NULL:case $.b.ENUM:case $.b.VARIABLE:return e}}function t3(e){let t=new t9,n=new ne,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=t8(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){let u=t6(e,n,r,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,n,r,s),0!==l.length)for(let i=0;i<l.length;i++){t2(e,a,t,n,r,!1,s,l[i]);for(let o=i+1;o<l.length;o++)t4(e,a,t,n,r,!1,l[i],l[o])}return a}(e,r,t,n,e.getParentType(),i)){let t=function e(t){return Array.isArray(t)?t.map(([t,n])=>`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new v.eO(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function t2(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=t5(e,n,l);if(a!==u)for(let s of(t7(e,t,n,r,i,o,a,u),c))t2(e,t,n,r,i,o,a,s)}function t4(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=t5(e,n,l),[f,d]=t5(e,n,u);for(let s of(t7(e,t,n,r,i,o,c,f),d))t4(e,t,n,r,i,o,a,s);for(let a of p)t4(e,t,n,r,i,o,a,s)}function t7(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=t6(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function t6(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,f,d]=s,h=i||l!==p&&Q(l)&&Q(p);if(!h){let e=u.name.value,t=f.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[f]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return(0,L.y)(t1(e))}(t)===function(e){return(0,L.y)(t1(e))}(n)})}(u,f))return[[o,"they have differing arguments"],[u],[f]]}let y=null==c?void 0:c.type,v=null==d?void 0:d.type;if(y&&v&&function e(t,n){return Z(t)?!Z(n)||e(t.ofType,n.ofType):!!Z(n)||(et(t)?!et(n)||e(t.ofType,n.ofType):!!et(n)||!!(es(t)||es(n))&&t!==n)}(y,v))return[[o,`they return conflicting types "${(0,m.N)(y)}" and "${(0,m.N)(v)}"`],[u],[f]];let g=u.selectionSet,b=f.selectionSet;if(g&&b){var E=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=t8(e,t,o,a),[f,d]=t8(e,t,s,l);for(let o of(t7(e,u,t,n,r,i,c,f),d))t2(e,u,t,n,r,i,c,o);for(let o of p)t2(e,u,t,n,r,i,f,o);for(let o of p)for(let a of d)t4(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,e_(y),g,e_(v),b),T=o,_=u,N=f;return E.length>0?[[T,E.map(([e])=>e)],[_,...E.map(([,e])=>e).flat()],[N,...E.map(([,,e])=>e).flat()]]:void 0}}function t8(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case $.b.FIELD:{let e,t=a.name.value;(Q(n)||B(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case $.b.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case $.b.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?tL(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function t5(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=tL(e.getSchema(),n.typeCondition);return t8(e,t,i,n.selectionSet)}class t9{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class ne{constructor(){this._orderedPairSet=new t9}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}function nt(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(eu(n)&&eu(r)&&!eB(e.getSchema(),n,r)){let i=(0,m.N)(r),o=(0,m.N)(n);e.reportError(new v.eO(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=function(e,t){let n=e.getFragment(t);if(n){let t=tL(e.getSchema(),n.typeCondition);if(eu(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!eB(e.getSchema(),r,i)){let o=(0,m.N)(i),a=(0,m.N)(r);e.reportError(new v.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function nn(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)(0,tM.a6)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){var i;let o,a=r.name.value,s=n[a],l=null==t?void 0:t.getType(a);if(s?o=nr[s.kind]:l&&(o=j(i=l)?$.b.SCALAR_TYPE_EXTENSION:Q(i)?$.b.OBJECT_TYPE_EXTENSION:B(i)?$.b.INTERFACE_TYPE_EXTENSION:Y(i)?$.b.UNION_TYPE_EXTENSION:W(i)?$.b.ENUM_TYPE_EXTENSION:K(i)?$.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,ti.V)(!1,"Unexpected type: "+(0,m.N)(i))),o){if(o!==r.kind){let t=function(e){switch(e){case $.b.SCALAR_TYPE_EXTENSION:return"scalar";case $.b.OBJECT_TYPE_EXTENSION:return"object";case $.b.INTERFACE_TYPE_EXTENSION:return"interface";case $.b.UNION_TYPE_EXTENSION:return"union";case $.b.ENUM_TYPE_EXTENSION:return"enum";case $.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,ti.V)(!1,"Unexpected kind: "+(0,m.N)(e))}}(r.kind);e.reportError(new v.eO(`Cannot extend non-${t} type "${a}".`,{nodes:s?[s,r]:r}))}}else{let i=R(a,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new v.eO(`Cannot extend type "${a}" because it is not defined.`+b(i),{nodes:r.name}))}}}let nr={[$.b.SCALAR_TYPE_DEFINITION]:$.b.SCALAR_TYPE_EXTENSION,[$.b.OBJECT_TYPE_DEFINITION]:$.b.OBJECT_TYPE_EXTENSION,[$.b.INTERFACE_TYPE_DEFINITION]:$.b.INTERFACE_TYPE_EXTENSION,[$.b.UNION_TYPE_DEFINITION]:$.b.UNION_TYPE_EXTENSION,[$.b.ENUM_TYPE_DEFINITION]:$.b.ENUM_TYPE_EXTENSION,[$.b.INPUT_OBJECT_TYPE_DEFINITION]:$.b.INPUT_OBJECT_TYPE_EXTENSION};function ni(e){return{...no(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set(null==(n=t.arguments)?void 0:n.map(e=>e.name.value));for(let n of r.args)if(!i.has(n.name)&&e$(n)){let i=(0,m.N)(n.type);e.reportError(new v.eO(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function no(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:tn)r[e.name]=N(e.args.filter(e$),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===$.b.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=N(e.filter(na),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=V(a.type)?(0,m.N)(a.type):(0,L.y)(a.type);e.reportError(new v.eO(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function na(e){return e.type.kind===$.b.NON_NULL_TYPE&&null==e.defaultValue}function ns(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(es(e_(n))){if(r){let i=t.name.value,o=(0,m.N)(n);e.reportError(new v.eO(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=(0,m.N)(n);e.reportError(new v.eO(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=(0,m.N)(n);e.reportError(new v.eO(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function nl(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function nu(e,t,n){return{prev:e,key:t,typename:n}}function nc(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function np(e,t,n=nf){return function e(t,n,r,i){if(et(n))return null!=t?e(t,n.ofType,r,i):void r(nc(i),t,new v.eO(`Expected non-nullable type "${(0,m.N)(n)}" not to be null.`));if(null==t)return null;if(Z(n)){let o=n.ofType;return to(t)?Array.from(t,(t,n)=>e(t,o,r,nu(i,n,void 0))):[e(t,o,r,i)]}if(K(n)){if(!(0,_.Z)(t)||Array.isArray(t))return void r(nc(i),t,new v.eO(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(et(s.type)){let e=(0,m.N)(s.type);r(nc(i),t,new v.eO(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,nu(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=R(e,Object.keys(n.getFields()));r(nc(i),t,new v.eO(`Field "${e}" is not defined by type "${n.name}".`+b(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(nc(i),t,new v.eO(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(nc(i).concat(a),s,new v.eO(`Field "${a}" must be non-null.`))}return o}if(es(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof v.eO?r(nc(i),t,e):r(nc(i),t,new v.eO(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(nc(i),t,new v.eO(`Expected type "${n.name}".`)),e}(0,ti.V)(!1,"Unexpected input type: "+(0,m.N)(n))}(e,t,n,void 0)}function nf(e,t,n){let r="Invalid value "+(0,m.N)(t);throw e.length>0&&(r+=` at "value${nl(e)}"`),n.message=r+": "+n.message,n}function nd(e,t,n){if(e){if(e.kind===$.b.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&et(t))return;return i}if(et(t)){if(e.kind===$.b.NULL)return;return nd(e,t.ofType,n)}if(e.kind===$.b.NULL)return null;if(Z(t)){let r=t.ofType;if(e.kind===$.b.LIST){let t=[];for(let i of e.values)if(nh(i,n)){if(et(r))return;t.push(null)}else{let e=nd(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=nd(e,r,n);if(void 0===i)return;return[i]}if(K(t)){if(e.kind!==$.b.OBJECT)return;let r=Object.create(null),i=N(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||nh(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(et(e.type))return;continue}let o=nd(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(es(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,ti.V)(!1,"Unexpected input type: "+(0,m.N)(t))}}function nh(e,t){return e.kind===$.b.VARIABLE&&(null==t||void 0===t[e.name.value])}function ny(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=tL(e,o.type);if(!er(a)){let e=(0,L.y)(o.type);r(new v.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ng(n,t)){if(o.defaultValue)i[t]=nd(o.defaultValue,a);else if(et(a)){let e=(0,m.N)(a);r(new v.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&et(a)){let e=(0,m.N)(a);r(new v.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=np(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+(0,m.N)(n);e.length>0&&(a+=` at "${t}${nl(e)}"`),r(new v.eO(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new v.eO("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function nm(e,t,n){var r;let i={},o=N(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(et(a))throw new v.eO(`Argument "${e}" of required type "${(0,m.N)(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===$.b.NULL;if(l.kind===$.b.VARIABLE){let t=l.name.value;if(null==n||!ng(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(et(a))throw new v.eO(`Argument "${e}" of required type "${(0,m.N)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&et(a))throw new v.eO(`Argument "${e}" of non-null type "${(0,m.N)(a)}" must not be null.`,{nodes:l});let c=nd(l,a,n);if(void 0===c)throw new v.eO(`Argument "${e}" has invalid value ${(0,L.y)(l)}.`,{nodes:l});i[e]=c}return i}function nv(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return nm(e,i,n)}function ng(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nb(e,t,n,r,i){let o=new Map;return nE(e,t,n,r,i,o,new Set),o}function nE(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case $.b.FIELD:{var s;if(!nT(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case $.b.INLINE_FRAGMENT:if(!nT(n,l)||!n_(e,l,r))continue;nE(e,t,n,r,l.selectionSet,o,a);break;case $.b.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!nT(n,l))continue;a.add(i);let s=t[i];if(!s||!n_(e,s,r))continue;nE(e,t,n,r,s.selectionSet,o,a)}}}function nT(e,t){let n=nv(e8,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=nv(e6,t,e);return(null==r?void 0:r.if)!==!1}function n_(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tL(e,r);return i===n||!!ep(i)&&e.isSubType(i,n)}function nN(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===$.b.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=nb(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new v.eO(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new v.eO(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function nO(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function nI(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of nO(n,e=>e.name.value))i.length>1&&e.reportError(new v.eO(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function nw(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of nO(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new v.eO(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function nS(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new v.eO(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new v.eO(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function nD(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===$.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===$.b.SCHEMA_DEFINITION||n.kind===$.b.SCHEMA_EXTENSION)o=r;else if((0,tM.a6)(n)||(0,tM.i7)(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new v.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function nR(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];W(i)&&i.getValue(r)?e.reportError(new v.eO(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new v.eO(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function nk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(Q(o)||B(o)||K(o))&&null!=o.getFields()[a])?e.reportError(new v.eO(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new v.eO(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function nA(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new v.eO(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function nF(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||(0,ti.V)(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new v.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function n$(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new v.eO(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function nL(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new v.eO(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new v.eO(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function nx(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new v.eO(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new v.eO(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function nC(e){return{OperationDefinition(t){var n;for(let[r,i]of nO(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new v.eO(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function nP(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!Z(eb(e.getParentInputType())))return nM(e,t),!1},ObjectValue(t){let n=e_(e.getInputType());if(!K(n))return nM(e,t),!1;let r=N(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&eq(i)){let r=(0,m.N)(i.type);e.reportError(new v.eO(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new v.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==$.b.NULL||e.reportError(new v.eO(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=e_(e.getParentInputType());if(!e.getInputType()&&K(n)){let r=R(t.name.value,Object.keys(n.getFields()));e.reportError(new v.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+b(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();et(n)&&e.reportError(new v.eO(`Expected value of type "${(0,m.N)(n)}", found ${(0,L.y)(t)}.`,{nodes:t}))},EnumValue:t=>nM(e,t),IntValue:t=>nM(e,t),FloatValue:t=>nM(e,t),StringValue:t=>nM(e,t),BooleanValue:t=>nM(e,t)}}function nM(e,t){let n=e.getInputType();if(!n)return;let r=e_(n);if(!es(r)){let r=(0,m.N)(n);e.reportError(new v.eO(`Expected value of type "${r}", found ${(0,L.y)(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=(0,m.N)(n);e.reportError(new v.eO(`Expected value of type "${r}", found ${(0,L.y)(t)}.`,{nodes:t}))}}catch(i){let r=(0,m.N)(n);i instanceof v.eO?e.reportError(i):e.reportError(new v.eO(`Expected value of type "${r}", found ${(0,L.y)(t)}; `+i.message,{nodes:t,originalError:i}))}}function nV(e){return{VariableDefinition(t){let n=tL(e.getSchema(),t.type);if(void 0!==n&&!er(n)){let n=t.variable.name.value,r=(0,L.y)(t.type);e.reportError(new v.eO(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function nU(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:p}of e.getRecursiveVariableUsages(n)){let n=l.name.value,f=t[n];if(f&&u){var r,i,o,a,s;let t=e.getSchema(),d=tL(t,f.type);if(d&&(r=t,i=d,o=f.defaultValue,a=u,s=c,et(a)&&!et(i)?!((null!=o&&o.kind!==$.b.NULL||void 0!==s)&&eG(r,i,a.ofType)):!eG(r,i,a))){let t=(0,m.N)(d),r=(0,m.N)(u);e.reportError(new v.eO(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,l]}))}K(p)&&p.isOneOf&&ev(d)&&e.reportError(new v.eO(`Variable "$${n}" is of type "${d}" but must be non-nullable to be used for OneOf Input Object "${p}".`,{nodes:[f,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let nj=Object.freeze([tz]),nq=Object.freeze([tV,n$,tJ,nN,tH,tj,nV,ns,tU,nA,tB,tZ,nt,tK,nC,tX,t0,tG,nD,tq,nw,nP,ni,nU,t3,nF,...nj]),nQ=Object.freeze([tW,nL,nx,nR,nk,nI,nS,tH,tG,nD,nn,tQ,nw,nF,no]);class nG{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===$.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===$.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class nB extends nG{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nH extends nG{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new tx(this._schema);(0,t$.YR)(e,tP(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function nY(e,t,n=nq,r,i=new tx(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||(0,d.U)(!1,"Must provide document."),tw(e);let s=Object.freeze({}),l=[],u=new nH(e,t,i,e=>{if(l.length>=a)throw l.push(new v.eO("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=(0,t$.oP)(n.map(e=>e(u)));try{(0,t$.YR)(t,tP(i,c))}catch(e){if(e!==s)throw e}return l}function nJ(e,t,n=nQ){let r=[],i=new nB(e,t,e=>{r.push(e)}),o=n.map(e=>e(i));return(0,t$.YR)(e,(0,t$.oP)(o)),r}function nW(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class nz extends Error{constructor(e){super("Unexpected error value: "+(0,m.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nK(e,t,n){var r;let i=e instanceof Error?e:new nz(e);return Array.isArray(i.path)?i:new v.eO(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let nX=(s=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&nE(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(e,t,n){void 0===r&&(r=new WeakMap);let i=r.get(e);void 0===i&&(i=new WeakMap,r.set(e,i));let o=i.get(t);void 0===o&&(o=new WeakMap,i.set(t,o));let a=o.get(n);return void 0===a&&(a=s(e,t,n),o.set(n,a)),a});function nZ(e){arguments.length<2||(0,d.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;n3(t,n,r);let o=n2(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new v.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=nb(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case g.cE.QUERY:return n4(e,r,n,o,i);case g.cE.MUTATION:var a,s,l,u,c;return a=e,s=r,l=n,u=o,c=i,function(e,t,n){let r=n;for(let n of e)r=h(r)?r.then(e=>t(e,n)):t(r,n);return r}(c.entries(),(e,[t,n])=>{let r=nu(u,t,s.name),i=n7(a,s,l,n,r);return void 0===i?e:h(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case g.cE.SUBSCRIPTION:return n4(e,r,n,o,i)}}(o,e,i);if(h(t))return t.then(e=>n1(e,o.errors),e=>(o.errors.push(e),n1(null,o.errors)));return n1(t,o.errors)}catch(e){return o.errors.push(e),n1(null,o.errors)}}function n0(e){let t=nZ(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function n1(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function n3(e,t,n){t||(0,d.U)(!1,"Must provide document."),tw(e),null==n||(0,_.Z)(n)||(0,d.U)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function n2(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:p,typeResolver:f,subscribeFieldResolver:d,options:h}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case $.b.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new v.eO("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case $.b.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new v.eO(`Unknown operation named "${c}".`)]:[new v.eO("Must provide an operation.")];let m=ny(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==h?void 0:h.maxCoercionErrors)?r:50});return m.errors?m.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:m.coerced,fieldResolver:null!=p?p:rr,typeResolver:null!=f?f:rn,subscribeFieldResolver:null!=d?d:rr,errors:[]}}function n4(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=nu(r,s,t.name),u=n7(e,t,n,l,i);void 0!==u&&(o[s]=u,h(u)&&(a=!0))}}catch(e){if(a)return nW(o).finally(()=>{throw e});throw e}return a?nW(o):o}function n7(e,t,n,r,i){var o;let a=ri(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=n6(e,a,r,t,i);try{let t,o=nm(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=h(p)?p.then(t=>n5(e,s,r,u,i,t)):n5(e,s,r,u,i,p),h(t))return t.then(void 0,t=>{let n=nK(t,r,nc(i));return n8(n,s,e)});return t}catch(t){return n8(nK(t,r,nc(i)),s,e)}}function n6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function n8(e,t,n){if(et(t))throw e;return n.errors.push(e),null}function n5(e,t,n,r,i,o){var a,s,l,u,c,p,f;let d;if(o instanceof Error)throw o;if(et(t)){let a=n5(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:Z(t)?function(e,t,n,r,i,o){if(!to(o))throw new v.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=nu(i,o,void 0);try{let i;if(i=h(t)?t.then(t=>n5(e,a,n,r,l,t)):n5(e,a,n,r,l,t),h(i))return s=!0,i.then(void 0,t=>{let r=nK(t,n,nc(l));return n8(r,a,e)});return i}catch(t){return n8(nK(t,n,nc(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):es(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${(0,m.N)(e)}.serialize(${(0,m.N)(t)})\` to return non-nullable value, returned: ${(0,m.N)(n)}`);return n}(t,o):ep(t)?(a=e,s=t,l=n,u=r,c=i,p=o,h(d=(null!=(f=s.resolveType)?f:a.typeResolver)(p,a.contextValue,u,s))?d.then(e=>re(a,n9(e,a,s,l,u,p),l,u,c,p)):re(a,n9(d,a,s,l,u,p),l,u,c,p)):Q(t)?re(e,t,n,r,i,o):void(0,ti.V)(!1,"Cannot complete value of unexpected output type: "+(0,m.N)(t))}function n9(e,t,n,r,i,o){if(null==e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Q(e))throw new v.eO("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,m.N)(o)}, received "${(0,m.N)(e)}".`);let a=t.schema.getType(e);if(null==a)throw new v.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!Q(a))throw new v.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new v.eO(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function re(e,t,n,r,i,o){let a=nX(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(h(s))return s.then(r=>{if(!r)throw rt(t,o,n);return n4(e,t,o,i,a)});if(!s)throw rt(t,o,n)}return n4(e,t,o,i,a)}function rt(e,t,n){return new v.eO(`Expected value of type "${e.name}" but got: ${(0,m.N)(t)}.`,{nodes:n})}let rn=function(e,t,n,r){if((0,_.Z)(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){let a=i[r];if(a.isTypeOf){let i=a.isTypeOf(e,t,n);if(h(i))o[r]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},rr=function(e,t,n,r){if((0,_.Z)(e)||"function"==typeof e){let i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function ri(e,t,n){let r=n.name.value;return r===tm.name&&e.getQueryType()===t?tm:r===tv.name&&e.getQueryType()===t?tv:r===tg.name?tg:t.getFields()[r]}function ro(e){return new Promise(t=>t(rs(e)))}function ra(e){let t=rs(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function rs(e){let t;arguments.length<2||(0,d.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=tI(n);if(c.length>0)return{errors:c};try{t=(0,y.qg)(r)}catch(e){return{errors:[e]}}let p=nY(n,t);return p.length>0?{errors:p}:nZ({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}var rl=n(39537),ru=n(73971),rc=n(8238),rp=n(98472),rf=n(12039);function rd(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function rh(e){arguments.length<2||(0,d.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await ry(e);if(!rd(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,nZ({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ry(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;n3(r,i,o);let a=n2(n);if(!("schema"in a))return{errors:a};try{let e=await rm(a);if(!rd(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,m.N)(e)}.`);return e}catch(e){if(e instanceof v.eO)return{errors:[e]};throw e}}async function rm(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new v.eO("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...nb(t,n,i,a,r.selectionSet).entries()][0],u=ri(t,a,l[0]);if(!u){let e=l[0].name.value;throw new v.eO(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=nu(void 0,s,a.name),p=n6(e,u,l,a,c);try{var f;let t=nm(u,l[0],i),n=e.contextValue,r=null!=(f=u.subscribe)?f:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw nK(e,l,nc(c))}}function rv(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||(0,ti.V)(!1),e.reportError(new v.eO(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new v.eO(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||(0,ti.V)(!1),e.reportError(new v.eO(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=e_(e.getParentInputType());if(K(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new v.eO(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e_(e.getInputType());null!=i||(0,ti.V)(!1),e.reportError(new v.eO(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function rg(e){return{Field(t){let n=e_(e.getType());n&&tE(n)&&e.reportError(new v.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var rb=n(59841);function rE(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return`
|
|
5
|
+
query IntrospectionQuery {
|
|
6
|
+
__schema {
|
|
7
|
+
${o}
|
|
8
|
+
queryType { name kind }
|
|
9
|
+
mutationType { name kind }
|
|
10
|
+
subscriptionType { name kind }
|
|
11
|
+
types {
|
|
12
|
+
...FullType
|
|
13
|
+
}
|
|
14
|
+
directives {
|
|
15
|
+
name
|
|
16
|
+
${n}
|
|
17
|
+
${i}
|
|
18
|
+
locations
|
|
19
|
+
args${a("(includeDeprecated: true)")} {
|
|
20
|
+
...InputValue
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
fragment FullType on __Type {
|
|
27
|
+
kind
|
|
28
|
+
name
|
|
29
|
+
${n}
|
|
30
|
+
${r}
|
|
31
|
+
${s}
|
|
32
|
+
fields(includeDeprecated: true) {
|
|
33
|
+
name
|
|
34
|
+
${n}
|
|
35
|
+
args${a("(includeDeprecated: true)")} {
|
|
36
|
+
...InputValue
|
|
37
|
+
}
|
|
38
|
+
type {
|
|
39
|
+
...TypeRef
|
|
40
|
+
}
|
|
41
|
+
isDeprecated
|
|
42
|
+
deprecationReason
|
|
43
|
+
}
|
|
44
|
+
inputFields${a("(includeDeprecated: true)")} {
|
|
45
|
+
...InputValue
|
|
46
|
+
}
|
|
47
|
+
interfaces {
|
|
48
|
+
...TypeRef
|
|
49
|
+
}
|
|
50
|
+
enumValues(includeDeprecated: true) {
|
|
51
|
+
name
|
|
52
|
+
${n}
|
|
53
|
+
isDeprecated
|
|
54
|
+
deprecationReason
|
|
55
|
+
}
|
|
56
|
+
possibleTypes {
|
|
57
|
+
...TypeRef
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
fragment InputValue on __InputValue {
|
|
62
|
+
name
|
|
63
|
+
${n}
|
|
64
|
+
type { ...TypeRef }
|
|
65
|
+
defaultValue
|
|
66
|
+
${a("isDeprecated")}
|
|
67
|
+
${a("deprecationReason")}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
fragment TypeRef on __Type {
|
|
71
|
+
kind
|
|
72
|
+
name
|
|
73
|
+
ofType {
|
|
74
|
+
kind
|
|
75
|
+
name
|
|
76
|
+
ofType {
|
|
77
|
+
kind
|
|
78
|
+
name
|
|
79
|
+
ofType {
|
|
80
|
+
kind
|
|
81
|
+
name
|
|
82
|
+
ofType {
|
|
83
|
+
kind
|
|
84
|
+
name
|
|
85
|
+
ofType {
|
|
86
|
+
kind
|
|
87
|
+
name
|
|
88
|
+
ofType {
|
|
89
|
+
kind
|
|
90
|
+
name
|
|
91
|
+
ofType {
|
|
92
|
+
kind
|
|
93
|
+
name
|
|
94
|
+
ofType {
|
|
95
|
+
kind
|
|
96
|
+
name
|
|
97
|
+
ofType {
|
|
98
|
+
kind
|
|
99
|
+
name
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
`}function rT(e,t){let n=null;for(let i of e.definitions)if(i.kind===$.b.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function r_(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new v.eO("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new v.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new v.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new v.eO("Can only have query, mutation and subscription operations.",{nodes:t})}function rN(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=n0({schema:e,document:(0,y.qg)(rE(n))});return!r.errors&&r.data||(0,ti.V)(!1),r.data}function rO(e,t){(0,_.Z)(e)&&(0,_.Z)(e.__schema)||(0,d.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,m.N)(e)}.`);let n=e.__schema,r=O(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case c.SCALAR:return new eI({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case c.OBJECT:return new ew({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>v(n)});case c.INTERFACE:return new eL({name:(r=e).name,description:r.description,interfaces:()=>h(r),fields:()=>v(r)});case c.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=(0,m.N)(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new ex({name:i.name,description:i.description,types:()=>i.possibleTypes.map(p)});case c.ENUM:var o=e;if(!o.enumValues){let e=(0,m.N)(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new eP({name:o.name,description:o.description,values:O(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case c.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=(0,m.N)(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new eU({name:a.name,description:a.description,fields:()=>b(a.inputFields),isOneOf:a.isOneOf})}let s=(0,m.N)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...e0,...tb])r[e.name]&&(r[e.name]=e);let i=n.queryType?p(n.queryType):null,o=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=(0,m.N)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,m.N)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new e7({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:b(e.args)})}):[];return new tN({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===c.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new ed(l(t))}if(e.kind===c.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new eh(eg(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,m.N)(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function p(e){return G(u(e))}function f(e){return H(u(e))}function h(e){if(null===e.interfaces&&e.kind===c.INTERFACE)return[];if(!e.interfaces){let t=(0,m.N)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function v(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,m.N)(e)}.`);return O(e.fields,e=>e.name,g)}function g(e){let t=l(e.type);if(!eo(t)){let e=(0,m.N)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,m.N)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:b(e.args)}}function b(e){return O(e,e=>e.name,E)}function E(e){let t=l(e.type);if(!er(t)){let e=(0,m.N)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?nd((0,y.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function rI(e,t,n){t_(e),null!=t&&t.kind===$.b.DOCUMENT||(0,d.U)(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=nJ(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=rw(r,t,n);return r===i?e:new tN(i)}function rw(e,t,n){var r,i,o,a,s,l;let u,c=[],p=Object.create(null),f=[],d=[];for(let e of t.definitions)if(e.kind===$.b.SCHEMA_DEFINITION)u=e;else if(e.kind===$.b.SCHEMA_EXTENSION)d.push(e);else if((0,tM.a6)(e))c.push(e);else if((0,tM.i7)(e)){let t=e.name.value,n=p[t];p[t]=n?n.concat([e]):[e]}else e.kind===$.b.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(p).length&&0===c.length&&0===f.length&&0===d.length&&null==u)return e;let h=Object.create(null);for(let t of e.types){h[t.name]=tE(l=t)||e1(l)?l:j(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=p[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=rR(e))?n:o;return new eI({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):Q(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new ew({...n,interfaces:()=>[...e.getInterfaces().map(g),...R(r)],fields:()=>({...I(n.fields,b),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):B(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new eL({...n,interfaces:()=>[...e.getInterfaces().map(g),...R(r)],fields:()=>({...I(n.fields,b),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):Y(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new ex({...n,types:()=>[...e.getTypes().map(g),...k(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):W(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[e.name])?t:[];return new eP({...n,values:{...n.values,...D(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):K(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new eU({...n,fields:()=>({...I(n.fields,e=>({...e,type:v(e.type)})),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void(0,ti.V)(!1,"Unexpected type: "+(0,m.N)(l))}for(let e of c){let t=e.name.value;h[t]=null!=(s=rS[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=p[l])?t:[];switch(e.kind){case $.b.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new ew({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>R(t),fields:()=>O(t),astNode:e,extensionASTNodes:u})}case $.b.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new eL({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>R(t),fields:()=>O(t),astNode:e,extensionASTNodes:u})}case $.b.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new eP({name:l,description:null==(i=e.description)?void 0:i.value,values:D(t),astNode:e,extensionASTNodes:u})}case $.b.UNION_TYPE_DEFINITION:{let t=[e,...u];return new ex({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>k(t),astNode:e,extensionASTNodes:u})}case $.b.SCALAR_TYPE_DEFINITION:return new eI({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:rR(e),astNode:e,extensionASTNodes:u});case $.b.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new eU({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>S(t),astNode:e,extensionASTNodes:u,isOneOf:!!nv(tt,e)})}}}(e)}let y={query:e.query&&g(e.query),mutation:e.mutation&&g(e.mutation),subscription:e.subscription&&g(e.subscription),...u&&T([u]),...T(d)};return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...y,types:Object.values(h),directives:[...e.directives.map(function(e){let t=e.toConfig();return new e7({...t,args:I(t.args,E)})}),...f.map(function(e){var t;return new e7({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:w(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function v(e){return Z(e)?new ed(v(e.ofType)):et(e)?new eh(v(e.ofType)):g(e)}function g(e){return h[e.name]}function b(e){return{...e,type:v(e.type),args:e.args&&I(e.args,E)}}function E(e){return{...e,type:v(e.type)}}function T(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=_(e.type)}return t}function _(e){var t;let n=e.name.value,r=null!=(t=rS[n])?t:h[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function N(e){return e.kind===$.b.LIST_TYPE?new ed(N(e.type)):e.kind===$.b.NON_NULL_TYPE?new eh(N(e.type)):_(e)}function O(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:N(e.type),description:null==(r=e.description)?void 0:r.value,args:w(e.arguments),deprecationReason:rD(e),astNode:e}}return t}function w(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=N(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:nd(r.defaultValue,e),deprecationReason:rD(r),astNode:r}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=N(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:nd(e.defaultValue,n),deprecationReason:rD(e),astNode:e}}}return t}function D(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:rD(e),astNode:e}}return t}function R(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(_))?t:[]})}function k(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(_))?t:[]})}}let rS=N([...e0,...tb],e=>e.name);function rD(e){let t=nv(e9,e);return null==t?void 0:t.reason}function rR(e){let t=nv(te,e);return null==t?void 0:t.url}function rk(e,t){null!=e&&e.kind===$.b.DOCUMENT||(0,d.U)(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=nJ(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=rw({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...tn.filter(e=>n.directives.every(t=>t.name!==e.name))];return new tN({...n,directives:r})}function rA(e,t){return rk((0,y.qg)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function rF(e){var t,n,r;let i=e.toConfig(),o=O(rL(i.types),e=>e.name,function(e){if(j(e)||tE(e))return e;if(Q(e)){let t=e.toConfig();return new ew({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(B(e)){let t=e.toConfig();return new eL({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(Y(e)){let t=e.toConfig();return new ex({...t,types:()=>c(t.types)})}if(W(e)){let t=e.toConfig();return new eP({...t,values:r$(t.values,e=>e)})}if(K(e)){let t=e.toConfig();return new eU({...t,fields:()=>r$(t.fields,e=>({...e,type:a(e.type)}))})}(0,ti.V)(!1,"Unexpected type: "+(0,m.N)(e))});return new tN({...i,types:Object.values(o),directives:rL(i.directives).map(function(e){let t=e.toConfig();return new e7({...t,locations:rx(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return Z(e)?new ed(a(e.ofType)):et(e)?new eh(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return r$(e,e=>({...e,type:a(e.type)}))}function u(e){return r$(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return rL(e).map(s)}}function r$(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(w))n[r]=t(e[r]);return n}function rL(e){return rx(e,e=>e.name)}function rx(e,t){return e.slice().sort((e,n)=>w(t(e),t(n)))}var rC=n(67714);function rP(e){return rU(e,e=>!tr(e),rV)}function rM(e){return rU(e,tr,tE)}function rV(e){return!e1(e)&&!tE(e)}function rU(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),rJ(e)+`schema {
|
|
111
|
+
${t.join("\n")}
|
|
112
|
+
}`}(e),...r.map(e=>{var t;return rJ(t=e)+"directive @"+t.name+rB(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>rj(e))].filter(Boolean).join("\n\n")}function rj(e){var t,n,r,i,o,a;let s,l,u,c;return j(e)?rJ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=(0,L.y)({kind:$.b.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):Q(e)?rJ(n=e)+`type ${n.name}`+rq(n)+rQ(n):B(e)?rJ(r=e)+`interface ${r.name}`+rq(r)+rQ(r):Y(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",rJ(i)+"union "+i.name+l):W(e)?(u=(o=e).getValues().map((e,t)=>rJ(e," ",!t)+" "+e.name+rY(e.deprecationReason)),rJ(o)+`enum ${o.name}`+rG(u)):K(e)?(c=Object.values((a=e).getFields()).map((e,t)=>rJ(e," ",!t)+" "+rH(e)),rJ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+rG(c)):void(0,ti.V)(!1,"Unexpected type: "+(0,m.N)(e))}function rq(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function rQ(e){return rG(Object.values(e.getFields()).map((e,t)=>rJ(e," ",!t)+" "+e.name+rB(e.args," ")+": "+String(e.type)+rY(e.deprecationReason)))}function rG(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function rB(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(rH).join(", ")+")":"(\n"+e.map((e,n)=>rJ(e," "+t,!n)+" "+t+rH(e)).join("\n")+"\n"+t+")"}function rH(e){let t=ta(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,L.y)(t)}`),n+rY(e.deprecationReason)}function rY(e){if(null==e)return"";if(e!==e5){let t=(0,L.y)({kind:$.b.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function rJ(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,L.y)({kind:$.b.STRING,value:r,block:(0,rC.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}function rW(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:$.b.DOCUMENT,definitions:t}}function rz(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case $.b.OPERATION_DEFINITION:t.push(r);break;case $.b.FRAGMENT_DEFINITION:n[r.name.value]=rK(r.selectionSet)}let r=Object.create(null);for(let i of t){let t=new Set;for(let e of rK(i.selectionSet))!function e(t,n,r){if(!t.has(r)){t.add(r);let i=n[r];if(void 0!==i)for(let r of i)e(t,n,r)}}(t,n,e);r[i.name?i.name.value:""]={kind:$.b.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===$.b.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function rK(e){let t=[];return(0,t$.YR)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function rX(e){let t=(0,rl._)(e)?e:new rl.k(e),n=t.body,r=new rp.JG(t),i="",o=!1;for(;r.advance().kind!==rf.Y.EOF;){let e=r.token,t=e.kind,a=!(0,rp.Z_)(e.kind);o&&(a||e.kind===rf.Y.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===rf.Y.BLOCK_STRING?i+=(0,rC.yo)(e.value,{minimize:!0}):i+=s,o=a}return i}function rZ(e){let t=r0(e);if(t)throw t;return e}function r0(e){if("string"==typeof e||(0,d.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new v.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{P(e)}catch(e){return e}}function r1(e,t){return r2(e,t).filter(e=>e.type in p)}function r3(e,t){return r2(e,t).filter(e=>e.type in f)}function r2(e,t){return[...function(e,t){let n=[],r=r8(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:p.TYPE_REMOVED,description:e1(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)W(e)&&W(t)?n.push(...function(e,t){let n=[],r=r8(e.getValues(),t.getValues());for(let t of r.added)n.push({type:f.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:p.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):Y(e)&&Y(t)?n.push(...function(e,t){let n=[],r=r8(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:f.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:p.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):K(e)&&K(t)?n.push(...function(e,t){let n=[],r=r8(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)eq(t)?n.push({type:p.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:f.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)r4(t.type,i.type)||n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):Q(e)&&Q(t)||B(e)&&B(t)?n.push(...function(e,t){let n=[],r=r8(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=r8(t.args,n.args);for(let n of i.removed)r.push({type:p.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(r4(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:f.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=r6(n.defaultValue,n.type),a=r6(o.defaultValue,o.type);i!==a&&r.push({type:f.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:p.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)e$(n)?r.push({type:p.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:f.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return Z(t)?Z(n)&&e(t.ofType,n.ofType)||et(n)&&e(t,n.ofType):et(t)?et(n)&&e(t.ofType,n.ofType):eE(n)&&t.name===n.name||et(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=r8(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:f.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:p.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:p.TYPE_CHANGED_KIND,description:`${e.name} changed from ${r7(e)} to ${r7(t)}.`});return n}(e,t),...function(e,t){let n=[],r=r8(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:p.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=r8(e.args,t.args);for(let t of r.added)e$(t)&&n.push({type:p.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:p.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:p.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:p.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(l=p||(p={})).TYPE_REMOVED="TYPE_REMOVED",l.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",l.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",l.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",l.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",l.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",l.FIELD_REMOVED="FIELD_REMOVED",l.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",l.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",l.ARG_REMOVED="ARG_REMOVED",l.ARG_CHANGED_KIND="ARG_CHANGED_KIND",l.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",l.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",l.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",l.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",l.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(u=f||(f={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",u.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",u.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",u.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",u.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",u.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function r4(e,t){return Z(e)?Z(t)&&r4(e.ofType,t.ofType):et(e)?et(t)&&r4(e.ofType,t.ofType)||!et(t)&&r4(e.ofType,t):eE(t)&&e.name===t.name}function r7(e){return j(e)?"a Scalar type":Q(e)?"an Object type":B(e)?"an Interface type":Y(e)?"a Union type":W(e)?"an Enum type":K(e)?"an Input type":void(0,ti.V)(!1,"Unexpected type: "+(0,m.N)(e))}function r6(e,t){let n=ta(e,t);return null!=n||(0,ti.V)(!1),(0,L.y)(t1(n))}function r8(e,t){let n=[],r=[],i=[],o=N(e,({name:e})=>e),a=N(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function r5(e,t){return r9(e,(0,y.Ng)(t))}function r9(e,t){switch(t.kind){case $.b.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case $.b.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${(0,m.N)(n)} to be defined as a type in the schema.`);if(!W(r)&&!K(r)&&!Q(r)&&!B(r))throw Error(`Expected ${(0,m.N)(n)} to be an Enum, Input Object, Object or Interface type.`);if(W(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(K(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case $.b.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${(0,m.N)(n)} to be defined as a type in the schema.`);if(!Q(r)&&!B(r))throw Error(`Expected ${(0,m.N)(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${(0,m.N)(i)} to exist as a field of type ${(0,m.N)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case $.b.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case $.b.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${(0,m.N)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}}};
|
package/lib/212.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __rspack_esm_id=212;export const __rspack_esm_ids=[212];export const __webpack_modules__={76983(r,n,t){t.r(n),t.d(n,{runWithConcurrency:()=>i});var e,o=t(99436),i=(e=o(function*(r,n,t){var e,i=[],s=0,_=(e=o(function*(){for(;s<r.length;){var n=s++;i[n]=yield t(r[n],n)}}),function(){return e.apply(this,arguments)}),c=Array.from({length:Math.min(Number.isInteger(n)&&n>0?n:1,r.length)},()=>_());return yield Promise.all(c),i}),function(r,n,t){return e.apply(this,arguments)})}};
|