From e21a00943fa65f7dba86e201d7dafbfecd70a23e Mon Sep 17 00:00:00 2001 From: Aenimus Date: Wed, 6 Aug 2025 22:11:26 +0100 Subject: [PATCH 1/2] fix: interface object implementing entity interface --- composition-go/index.global.js | 62 ++--- composition/src/errors/errors.ts | 13 +- composition/src/schema-building/types.ts | 7 +- composition/src/schema-building/utils.ts | 3 +- composition/src/types/types.ts | 10 + .../src/v1/federation/federation-factory.ts | 55 ++-- .../v1/normalization/normalization-factory.ts | 9 +- composition/tests/utils/utils.ts | 7 +- .../v1/directives/interface-object.test.ts | 247 ++++++++++++++++++ composition/tests/v1/entity-interface.test.ts | 4 +- composition/tests/v1/resolvability.test.ts | 2 +- 11 files changed, 348 insertions(+), 71 deletions(-) diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 7c5a90f8af..202a19726f 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -11,9 +11,9 @@ class URL { } } } -"use strict";var shim=(()=>{var tJ=Object.create;var yd=Object.defineProperty,nJ=Object.defineProperties,rJ=Object.getOwnPropertyDescriptor,iJ=Object.getOwnPropertyDescriptors,aJ=Object.getOwnPropertyNames,bA=Object.getOwnPropertySymbols,sJ=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty,oJ=Object.prototype.propertyIsEnumerable;var nn=Math.pow,yy=(e,t,n)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&yy(e,n,t[n]);if(bA)for(var n of bA(t))oJ.call(t,n)&&yy(e,n,t[n]);return e},Y=(e,t)=>nJ(e,iJ(t));var wu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),am=(e,t)=>{for(var n in t)yd(e,n,{get:t[n],enumerable:!0})},RA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aJ(t))!AA.call(e,i)&&i!==n&&yd(e,i,{get:()=>t[i],enumerable:!(r=rJ(t,i))||r.enumerable});return e};var ss=(e,t,n)=>(n=e!=null?tJ(sJ(e)):{},RA(t||!e||!e.__esModule?yd(n,"default",{value:e,enumerable:!0}):n,e)),sm=e=>RA(yd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(yy(e,typeof t!="symbol"?t+"":t,n),n);var vi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(p){i(p)}},o=l=>{try{c(n.throw(l))}catch(p){i(p)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=wu(()=>{"use strict"});var O={};am(O,{_debugEnd:()=>ER,_debugProcess:()=>TR,_events:()=>LR,_eventsCount:()=>CR,_exiting:()=>WA,_fatalExceptions:()=>pR,_getActiveHandles:()=>tR,_getActiveRequests:()=>eR,_kill:()=>rR,_linkedBinding:()=>HA,_maxListeners:()=>wR,_preload_modules:()=>RR,_rawDebug:()=>YA,_startProfilerIdleNotifier:()=>hR,_stopProfilerIdleNotifier:()=>yR,_tickCallback:()=>NR,abort:()=>vR,addListener:()=>BR,allowedNodeEnvironmentFlags:()=>cR,arch:()=>CA,argv:()=>kA,argv0:()=>AR,assert:()=>lR,binding:()=>jA,chdir:()=>$A,config:()=>XA,cpuUsage:()=>cm,cwd:()=>GA,debugPort:()=>bR,default:()=>GR,dlopen:()=>ZA,domain:()=>zA,emit:()=>qR,emitWarning:()=>VA,env:()=>UA,execArgv:()=>MA,execPath:()=>DR,exit:()=>oR,features:()=>dR,hasUncaughtExceptionCaptureCallback:()=>mR,hrtime:()=>um,kill:()=>sR,listeners:()=>KR,memoryUsage:()=>aR,moduleLoadList:()=>JA,nextTick:()=>FA,off:()=>kR,on:()=>us,once:()=>UR,openStdin:()=>uR,pid:()=>SR,platform:()=>BA,ppid:()=>OR,prependListener:()=>VR,prependOnceListener:()=>jR,reallyExit:()=>nR,release:()=>QA,removeAllListeners:()=>xR,removeListener:()=>MR,resourceUsage:()=>iR,setSourceMapsEnabled:()=>PR,setUncaughtExceptionCaptureCallback:()=>fR,stderr:()=>gR,stdin:()=>_R,stdout:()=>IR,title:()=>LA,umask:()=>KA,uptime:()=>FR,version:()=>xA,versions:()=>qA});function _y(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function uJ(){!Qc||!Lu||(Qc=!1,Lu.length?os=Lu.concat(os):om=-1,os.length&&PA())}function PA(){if(!Qc){var e=setTimeout(uJ,0);Qc=!0;for(var t=os.length;t;){for(Lu=os,os=[];++om1)for(var n=1;n{"use strict";m();T();N();os=[],Qc=!1,om=-1;wA.prototype.run=function(){this.fun.apply(null,this.array)};LA="browser",CA="x64",BA="browser",UA={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},kA=["/usr/bin/node"],MA=[],xA="v16.8.0",qA={},VA=function(e,t){console.warn((t?t+": ":"")+e)},jA=function(e){_y("binding")},KA=function(e){return 0},GA=function(){return"/"},$A=function(e){},QA={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};YA=hr,JA=[];zA={},WA=!1,XA={};nR=hr,rR=hr,cm=function(){return{}},iR=cm,aR=cm,sR=hr,oR=hr,uR=hr,cR={};dR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},pR=hr,fR=hr;NR=hr,TR=hr,ER=hr,hR=hr,yR=hr,IR=void 0,gR=void 0,_R=void 0,vR=hr,SR=2,OR=1,DR="/bin/usr/node",bR=9229,AR="node",RR=[],PR=hr,Yo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Yo.now===void 0&&(Iy=Date.now(),Yo.timing&&Yo.timing.navigationStart&&(Iy=Yo.timing.navigationStart),Yo.now=()=>Date.now()-Iy);gy=1e9;um.bigint=function(e){var t=um(e);return typeof BigInt=="undefined"?t[0]*gy+t[1]:BigInt(t[0]*gy)+BigInt(t[1])};wR=10,LR={},CR=0;BR=us,UR=us,kR=us,MR=us,xR=us,qR=hr,VR=us,jR=us;GR={version:xA,versions:qA,arch:CA,platform:BA,release:QA,_rawDebug:YA,moduleLoadList:JA,binding:jA,_linkedBinding:HA,_events:LR,_eventsCount:CR,_maxListeners:wR,on:us,addListener:BR,once:UR,off:kR,removeListener:MR,removeAllListeners:xR,emit:qR,prependListener:VR,prependOnceListener:jR,listeners:KR,domain:zA,_exiting:WA,config:XA,dlopen:ZA,uptime:FR,_getActiveRequests:eR,_getActiveHandles:tR,reallyExit:nR,_kill:rR,cpuUsage:cm,resourceUsage:iR,memoryUsage:aR,kill:sR,exit:oR,openStdin:uR,allowedNodeEnvironmentFlags:cR,assert:lR,features:dR,_fatalExceptions:pR,setUncaughtExceptionCaptureCallback:fR,hasUncaughtExceptionCaptureCallback:mR,emitWarning:VA,nextTick:FA,_tickCallback:NR,_debugProcess:TR,_debugEnd:ER,_startProfilerIdleNotifier:hR,_stopProfilerIdleNotifier:yR,stdout:IR,stdin:_R,stderr:gR,abort:vR,umask:KA,chdir:$A,cwd:GA,env:UA,title:LA,argv:kA,execArgv:MA,pid:SR,ppid:OR,execPath:DR,debugPort:bR,hrtime:um,argv0:AR,_preload_modules:RR,setSourceMapsEnabled:PR}});var N=wu(()=>{"use strict";$R()});function cJ(){if(QR)return Id;QR=!0,Id.byteLength=c,Id.toByteArray=p,Id.fromByteArray=g;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var k=v.indexOf("=");k===-1&&(k=P);var K=k===P?0:4-k%4;return[k,K]}function c(v){var P=o(v),k=P[0],K=P[1];return(k+K)*3/4-K}function l(v,P,k){return(P+k)*3/4-k}function p(v){var P,k=o(v),K=k[0],G=k[1],Z=new n(l(v,K,G)),W=0,Te=G>0?K-4:K,fe;for(fe=0;fe>16&255,Z[W++]=P>>8&255,Z[W++]=P&255;return G===2&&(P=t[v.charCodeAt(fe)]<<2|t[v.charCodeAt(fe+1)]>>4,Z[W++]=P&255),G===1&&(P=t[v.charCodeAt(fe)]<<10|t[v.charCodeAt(fe+1)]<<4|t[v.charCodeAt(fe+2)]>>2,Z[W++]=P>>8&255,Z[W++]=P&255),Z}function f(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,P,k){for(var K,G=[],Z=P;ZTe?Te:W+Z));return K===1?(P=v[k-1],G.push(e[P>>2]+e[P<<4&63]+"==")):K===2&&(P=(v[k-2]<<8)+v[k-1],G.push(e[P>>10]+e[P>>4&63]+e[P<<2&63]+"=")),G.join("")}return Id}function lJ(){if(YR)return lm;YR=!0;return lm.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,f=-7,y=n?i-1:0,g=n?-1:1,v=e[t+y];for(y+=g,a=v&(1<<-f)-1,v>>=-f,f+=c;f>0;a=a*256+e[t+y],y+=g,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+e[t+y],y+=g,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-p}return(v?-1:1)*o*Math.pow(2,a-r)},lm.write=function(e,t,n,r,i,a){var o,c,l,p=a*8-i-1,f=(1<>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,P=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=g/l:t+=g*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=f?(c=0,o=f):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=P,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=P,o/=256,p-=8);e[n+v-P]|=k*128},lm}function dJ(){if(JR)return Cu;JR=!0;let e=cJ(),t=lJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cu.Buffer=o,Cu.SlowBuffer=G,Cu.INSPECT_MAX_BYTES=50;let r=2147483647;Cu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let A=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(A,h),A.foo()===42}catch(A){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(A){if(A>r)throw new RangeError('The value "'+A+'" is invalid for option "size"');let h=new Uint8Array(A);return Object.setPrototypeOf(h,o.prototype),h}function o(A,h,I){if(typeof A=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(A)}return c(A,h,I)}o.poolSize=8192;function c(A,h,I){if(typeof A=="string")return y(A,h);if(ArrayBuffer.isView(A))return v(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(xt(A,ArrayBuffer)||A&&xt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(A,SharedArrayBuffer)||A&&xt(A.buffer,SharedArrayBuffer)))return P(A,h,I);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(C!=null&&C!==A)return o.from(C,h,I);let $=k(A);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return o.from(A[Symbol.toPrimitive]("string"),h,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}o.from=function(A,h,I){return c(A,h,I)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function p(A,h,I){return l(A),A<=0?a(A):h!==void 0?typeof I=="string"?a(A).fill(h,I):a(A).fill(h):a(A)}o.alloc=function(A,h,I){return p(A,h,I)};function f(A){return l(A),a(A<0?0:K(A)|0)}o.allocUnsafe=function(A){return f(A)},o.allocUnsafeSlow=function(A){return f(A)};function y(A,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let I=Z(A,h)|0,C=a(I),$=C.write(A,h);return $!==I&&(C=C.slice(0,$)),C}function g(A){let h=A.length<0?0:K(A.length)|0,I=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return A|0}function G(A){return+A!=A&&(A=0),o.alloc(+A)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,I){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(h)||!o.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===I)return 0;let C=h.length,$=I.length;for(let re=0,le=Math.min(C,$);re$.length?(o.isBuffer(le)||(le=o.from(le)),le.copy($,re)):Uint8Array.prototype.set.call($,le,re);else if(o.isBuffer(le))le.copy($,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=le.length}return $};function Z(A,h){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||xt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let I=A.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&I===0)return 0;let $=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return za(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return pr(A).length;default:if($)return C?-1:za(A).length;h=(""+h).toLowerCase(),$=!0}}o.byteLength=Z;function W(A,h,I){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,h>>>=0,I<=h))return"";for(A||(A="utf8");;)switch(A){case"hex":return Rr(this,h,I);case"utf8":case"utf-8":return Wt(this,h,I);case"ascii":return dn(this,h,I);case"latin1":case"binary":return Ar(this,h,I);case"base64":return zt(this,h,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Un(this,h,I);default:if(C)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(A,h,I){let C=A[h];A[h]=A[I],A[I]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;II&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,I,C,$,re){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(I===void 0&&(I=0),C===void 0&&(C=h?h.length:0),$===void 0&&($=0),re===void 0&&(re=this.length),I<0||C>h.length||$<0||re>this.length)throw new RangeError("out of range index");if($>=re&&I>=C)return 0;if($>=re)return-1;if(I>=C)return 1;if(I>>>=0,C>>>=0,$>>>=0,re>>>=0,this===h)return 0;let le=re-$,ft=C-I,pn=Math.min(le,ft),tn=this.slice($,re),hn=h.slice(I,C);for(let Xt=0;Xt2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,fr(I)&&(I=$?0:A.length-1),I<0&&(I=A.length+I),I>=A.length){if($)return-1;I=A.length-1}else if(I<0)if($)I=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:we(A,h,I,C,$);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(A,h,I):Uint8Array.prototype.lastIndexOf.call(A,h,I):we(A,[h],I,C,$);throw new TypeError("val must be string, number or Buffer")}function we(A,h,I,C,$){let re=1,le=A.length,ft=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(A.length<2||h.length<2)return-1;re=2,le/=2,ft/=2,I/=2}function pn(hn,Xt){return re===1?hn[Xt]:hn.readUInt16BE(Xt*re)}let tn;if($){let hn=-1;for(tn=I;tnle&&(I=le-ft),tn=I;tn>=0;tn--){let hn=!0;for(let Xt=0;Xt$&&(C=$)):C=$;let re=h.length;C>re/2&&(C=re/2);let le;for(le=0;le>>0,isFinite(C)?(C=C>>>0,$===void 0&&($="utf8")):($=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let re=this.length-I;if((C===void 0||C>re)&&(C=re),h.length>0&&(C<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let le=!1;for(;;)switch($){case"hex":return Ve(this,h,I,C);case"utf8":case"utf-8":return it(this,h,I,C);case"ascii":case"latin1":case"binary":return ee(this,h,I,C);case"base64":return ve(this,h,I,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,h,I,C);default:if(le)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),le=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(A,h,I){return h===0&&I===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(h,I))}function Wt(A,h,I){I=Math.min(A.length,I);let C=[],$=h;for(;$239?4:re>223?3:re>191?2:1;if($+ft<=I){let pn,tn,hn,Xt;switch(ft){case 1:re<128&&(le=re);break;case 2:pn=A[$+1],(pn&192)===128&&(Xt=(re&31)<<6|pn&63,Xt>127&&(le=Xt));break;case 3:pn=A[$+1],tn=A[$+2],(pn&192)===128&&(tn&192)===128&&(Xt=(re&15)<<12|(pn&63)<<6|tn&63,Xt>2047&&(Xt<55296||Xt>57343)&&(le=Xt));break;case 4:pn=A[$+1],tn=A[$+2],hn=A[$+3],(pn&192)===128&&(tn&192)===128&&(hn&192)===128&&(Xt=(re&15)<<18|(pn&63)<<12|(tn&63)<<6|hn&63,Xt>65535&&Xt<1114112&&(le=Xt))}}le===null?(le=65533,ft=1):le>65535&&(le-=65536,C.push(le>>>10&1023|55296),le=56320|le&1023),C.push(le),$+=ft}return Vt(C)}let Dn=4096;function Vt(A){let h=A.length;if(h<=Dn)return String.fromCharCode.apply(String,A);let I="",C=0;for(;CC)&&(I=C);let $="";for(let re=h;reC&&(h=C),I<0?(I+=C,I<0&&(I=0)):I>C&&(I=C),II)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],re=1,le=0;for(;++le>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h+--I],re=1;for(;I>0&&(re*=256);)$+=this[h+--I]*re;return $},o.prototype.readUint8=o.prototype.readUInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let $=I+this[++h]*nn(2,8)+this[++h]*nn(2,16)+this[++h]*nn(2,24),re=this[++h]+this[++h]*nn(2,8)+this[++h]*nn(2,16)+C*nn(2,24);return BigInt($)+(BigInt(re)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let $=I*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h],re=this[++h]*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+C;return(BigInt($)<>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],re=1,le=0;for(;++le=re&&($-=Math.pow(2,8*I)),$},o.prototype.readIntBE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=I,re=1,le=this[h+--$];for(;$>0&&(re*=256);)le+=this[h+--$]*re;return re*=128,le>=re&&(le-=Math.pow(2,8*I)),le},o.prototype.readInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let $=this[h+4]+this[h+5]*nn(2,8)+this[h+6]*nn(2,16)+(C<<24);return(BigInt($)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let $=(I<<24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h];return(BigInt($)<>>0,I||$t(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!1,52,8)};function bn(A,h,I,C,$,re){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>$||hA.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,C=C>>>0,!$){let ft=Math.pow(2,8*C)-1;bn(this,h,I,C,ft,0)}let re=1,le=0;for(this[I]=h&255;++le>>0,C=C>>>0,!$){let ft=Math.pow(2,8*C)-1;bn(this,h,I,C,ft,0)}let re=C-1,le=1;for(this[I+re]=h&255;--re>=0&&(le*=256);)this[I+re]=h/le&255;return I+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,255,0),this[I]=h&255,I+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I+3]=h>>>24,this[I+2]=h>>>16,this[I+1]=h>>>8,this[I]=h&255,I+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4};function oe(A,h,I,C,$){Lt(h,C,$,A,I,7);let re=Number(h&BigInt(4294967295));A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,I}function De(A,h,I,C,$){Lt(h,C,$,A,I,7);let re=Number(h&BigInt(4294967295));A[I+7]=re,re=re>>8,A[I+6]=re,re=re>>8,A[I+5]=re,re=re>>8,A[I+4]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I+3]=le,le=le>>8,A[I+2]=le,le=le>>8,A[I+1]=le,le=le>>8,A[I]=le,I+8}o.prototype.writeBigUInt64LE=ya(function(h,I=0){return oe(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ya(function(h,I=0){return De(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=0,le=1,ft=0;for(this[I]=h&255;++re>0)-ft&255;return I+C},o.prototype.writeIntBE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=C-1,le=1,ft=0;for(this[I+re]=h&255;--re>=0&&(le*=256);)h<0&&ft===0&&this[I+re+1]!==0&&(ft=1),this[I+re]=(h/le>>0)-ft&255;return I+C},o.prototype.writeInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,127,-128),h<0&&(h=255+h+1),this[I]=h&255,I+1},o.prototype.writeInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),this[I]=h&255,this[I+1]=h>>>8,this[I+2]=h>>>16,this[I+3]=h>>>24,I+4},o.prototype.writeInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4},o.prototype.writeBigInt64LE=ya(function(h,I=0){return oe(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ya(function(h,I=0){return De(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(A,h,I,C,$,re){if(I+C>A.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Le(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,4),t.write(A,h,I,C,23,4),I+4}o.prototype.writeFloatLE=function(h,I,C){return Le(this,h,I,!0,C)},o.prototype.writeFloatBE=function(h,I,C){return Le(this,h,I,!1,C)};function _t(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,8),t.write(A,h,I,C,52,8),I+8}o.prototype.writeDoubleLE=function(h,I,C){return _t(this,h,I,!0,C)},o.prototype.writeDoubleBE=function(h,I,C){return _t(this,h,I,!1,C)},o.prototype.copy=function(h,I,C,$){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!$&&$!==0&&($=this.length),I>=h.length&&(I=h.length),I||(I=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),h.length-I<$-C&&($=h.length-I+C);let re=$-C;return this===h&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,C,$):Uint8Array.prototype.set.call(h,this.subarray(C,$),I),re},o.prototype.fill=function(h,I,C,$){if(typeof h=="string"){if(typeof I=="string"?($=I,I=0,C=this.length):typeof C=="string"&&($=C,C=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(h.length===1){let le=h.charCodeAt(0);($==="utf8"&&le<128||$==="latin1")&&(h=le)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(I<0||this.length>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let re;if(typeof h=="number")for(re=I;renn(2,32)?$=xe(String(I)):typeof I=="bigint"&&($=String(I),(I>nn(BigInt(2),BigInt(32))||I<-nn(BigInt(2),BigInt(32)))&&($=xe($)),$+="n"),C+=` It must be ${h}. Received ${$}`,C},RangeError);function xe(A){let h="",I=A.length,C=A[0]==="-"?1:0;for(;I>=C+4;I-=3)h=`_${A.slice(I-3,I)}${h}`;return`${A.slice(0,I)}${h}`}function Qe(A,h,I){et(h,"offset"),(A[h]===void 0||A[h+I]===void 0)&&At(h,A.length-(I+1))}function Lt(A,h,I,C,$,re){if(A>I||A3?h===0||h===BigInt(0)?ft=`>= 0${le} and < 2${le} ** ${(re+1)*8}${le}`:ft=`>= -(2${le} ** ${(re+1)*8-1}${le}) and < 2 ** ${(re+1)*8-1}${le}`:ft=`>= ${h}${le} and <= ${I}${le}`,new J.ERR_OUT_OF_RANGE("value",ft,A)}Qe(C,$,re)}function et(A,h){if(typeof A!="number")throw new J.ERR_INVALID_ARG_TYPE(h,"number",A)}function At(A,h,I){throw Math.floor(A)!==A?(et(A,I),new J.ERR_OUT_OF_RANGE(I||"offset","an integer",A)):h<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(I||"offset",`>= ${I?1:0} and <= ${h}`,A)}let Ha=/[^+/0-9A-Za-z-_]/g;function xr(A){if(A=A.split("=")[0],A=A.trim().replace(Ha,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function za(A,h){h=h||1/0;let I,C=A.length,$=null,re=[];for(let le=0;le55295&&I<57344){if(!$){if(I>56319){(h-=3)>-1&&re.push(239,191,189);continue}else if(le+1===C){(h-=3)>-1&&re.push(239,191,189);continue}$=I;continue}if(I<56320){(h-=3)>-1&&re.push(239,191,189),$=I;continue}I=($-55296<<10|I-56320)+65536}else $&&(h-=3)>-1&&re.push(239,191,189);if($=null,I<128){if((h-=1)<0)break;re.push(I)}else if(I<2048){if((h-=2)<0)break;re.push(I>>6|192,I&63|128)}else if(I<65536){if((h-=3)<0)break;re.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((h-=4)<0)break;re.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return re}function wc(A){let h=[];for(let I=0;I>8,$=I%256,re.push($),re.push(C);return re}function pr(A){return e.toByteArray(xr(A))}function ni(A,h,I,C){let $;for($=0;$=h.length||$>=A.length);++$)h[$+I]=A[$];return $}function xt(A,h){return A instanceof h||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===h.name}function fr(A){return A!==A}let gu=function(){let A="0123456789abcdef",h=new Array(256);for(let I=0;I<16;++I){let C=I*16;for(let $=0;$<16;++$)h[C+$]=A[I]+A[$]}return h}();function ya(A){return typeof BigInt=="undefined"?_u:A}function _u(){throw new Error("BigInt not supported")}return Cu}var Id,QR,lm,YR,Cu,JR,Bu,D,Rde,Pde,HR=wu(()=>{"use strict";m();T();N();Id={},QR=!1;lm={},YR=!1;Cu={},JR=!1;Bu=dJ();Bu.Buffer;Bu.SlowBuffer;Bu.INSPECT_MAX_BYTES;Bu.kMaxLength;D=Bu.Buffer,Rde=Bu.INSPECT_MAX_BYTES,Pde=Bu.kMaxLength});var T=wu(()=>{"use strict";HR()});var zR=w(Yc=>{"use strict";m();T();N();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.versionInfo=Yc.version=void 0;var pJ="16.9.0";Yc.version=pJ;var fJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Yc.versionInfo=fJ});var Lr=w(vy=>{"use strict";m();T();N();Object.defineProperty(vy,"__esModule",{value:!0});vy.devAssert=mJ;function mJ(e,t){if(!!!e)throw new Error(t)}});var dm=w(Sy=>{"use strict";m();T();N();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.isPromise=NJ;function NJ(e){return typeof(e==null?void 0:e.then)=="function"}});var va=w(Oy=>{"use strict";m();T();N();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.isObjectLike=TJ;function TJ(e){return typeof e=="object"&&e!==null}});var yr=w(Dy=>{"use strict";m();T();N();Object.defineProperty(Dy,"__esModule",{value:!0});Dy.invariant=EJ;function EJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var pm=w(by=>{"use strict";m();T();N();Object.defineProperty(by,"__esModule",{value:!0});by.getLocation=IJ;var hJ=yr(),yJ=/\r\n|[\n\r]/g;function IJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(yJ)){if(typeof i.index=="number"||(0,hJ.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Ay=w(fm=>{"use strict";m();T();N();Object.defineProperty(fm,"__esModule",{value:!0});fm.printLocation=_J;fm.printSourceLocation=XR;var gJ=pm();function _J(e){return XR(e.source,(0,gJ.getLocation)(e.source,e.start))}function XR(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,p=`${e.name}:${o}:${l} -`,f=r.split(/\r\n|[\n\r]/g),y=f[i];if(y.length>120){let g=Math.floor(l/80),v=l%80,P=[];for(let k=0;k["|",k]),["|","^".padStart(v)],["|",P[g+1]]])}return p+WR([[`${o-1} |`,f[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,f[i+1]]])}function WR(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}});var He=w(Jc=>{"use strict";m();T();N();Object.defineProperty(Jc,"__esModule",{value:!0});Jc.GraphQLError=void 0;Jc.formatError=DJ;Jc.printError=OJ;var vJ=va(),ZR=pm(),eP=Ay();function SJ(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Ry=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:p,originalError:f,extensions:y}=SJ(n);super(t),this.name="GraphQLError",this.path=p!=null?p:void 0,this.originalError=f!=null?f:void 0,this.nodes=tP(Array.isArray(o)?o:o?[o]:void 0);let g=tP((r=this.nodes)===null||r===void 0?void 0:r.map(P=>P.loc).filter(P=>P!=null));this.source=c!=null?c:g==null||(i=g[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:g==null?void 0:g.map(P=>P.start),this.locations=l&&c?l.map(P=>(0,ZR.getLocation)(c,P)):g==null?void 0:g.map(P=>(0,ZR.getLocation)(P.source,P.start));let v=(0,vJ.isObjectLike)(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(a=y!=null?y:v)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +"use strict";var shim=(()=>{var tJ=Object.create;var yd=Object.defineProperty,nJ=Object.defineProperties,rJ=Object.getOwnPropertyDescriptor,iJ=Object.getOwnPropertyDescriptors,aJ=Object.getOwnPropertyNames,bA=Object.getOwnPropertySymbols,sJ=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty,oJ=Object.prototype.propertyIsEnumerable;var nn=Math.pow,yy=(e,t,n)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&yy(e,n,t[n]);if(bA)for(var n of bA(t))oJ.call(t,n)&&yy(e,n,t[n]);return e},Y=(e,t)=>nJ(e,iJ(t));var wu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),am=(e,t)=>{for(var n in t)yd(e,n,{get:t[n],enumerable:!0})},RA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aJ(t))!AA.call(e,i)&&i!==n&&yd(e,i,{get:()=>t[i],enumerable:!(r=rJ(t,i))||r.enumerable});return e};var ss=(e,t,n)=>(n=e!=null?tJ(sJ(e)):{},RA(t||!e||!e.__esModule?yd(n,"default",{value:e,enumerable:!0}):n,e)),sm=e=>RA(yd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(yy(e,typeof t!="symbol"?t+"":t,n),n);var vi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(p){i(p)}},o=l=>{try{c(n.throw(l))}catch(p){i(p)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=wu(()=>{"use strict"});var O={};am(O,{_debugEnd:()=>ER,_debugProcess:()=>TR,_events:()=>LR,_eventsCount:()=>CR,_exiting:()=>WA,_fatalExceptions:()=>pR,_getActiveHandles:()=>tR,_getActiveRequests:()=>eR,_kill:()=>rR,_linkedBinding:()=>HA,_maxListeners:()=>wR,_preload_modules:()=>RR,_rawDebug:()=>YA,_startProfilerIdleNotifier:()=>hR,_stopProfilerIdleNotifier:()=>yR,_tickCallback:()=>NR,abort:()=>vR,addListener:()=>BR,allowedNodeEnvironmentFlags:()=>cR,arch:()=>CA,argv:()=>kA,argv0:()=>AR,assert:()=>lR,binding:()=>jA,chdir:()=>$A,config:()=>XA,cpuUsage:()=>cm,cwd:()=>GA,debugPort:()=>bR,default:()=>GR,dlopen:()=>ZA,domain:()=>zA,emit:()=>qR,emitWarning:()=>VA,env:()=>UA,execArgv:()=>MA,execPath:()=>DR,exit:()=>oR,features:()=>dR,hasUncaughtExceptionCaptureCallback:()=>mR,hrtime:()=>um,kill:()=>sR,listeners:()=>KR,memoryUsage:()=>aR,moduleLoadList:()=>JA,nextTick:()=>FA,off:()=>kR,on:()=>us,once:()=>UR,openStdin:()=>uR,pid:()=>SR,platform:()=>BA,ppid:()=>OR,prependListener:()=>VR,prependOnceListener:()=>jR,reallyExit:()=>nR,release:()=>QA,removeAllListeners:()=>xR,removeListener:()=>MR,resourceUsage:()=>iR,setSourceMapsEnabled:()=>PR,setUncaughtExceptionCaptureCallback:()=>fR,stderr:()=>gR,stdin:()=>_R,stdout:()=>IR,title:()=>LA,umask:()=>KA,uptime:()=>FR,version:()=>xA,versions:()=>qA});function _y(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function uJ(){!Qc||!Lu||(Qc=!1,Lu.length?os=Lu.concat(os):om=-1,os.length&&PA())}function PA(){if(!Qc){var e=setTimeout(uJ,0);Qc=!0;for(var t=os.length;t;){for(Lu=os,os=[];++om1)for(var n=1;n{"use strict";m();T();N();os=[],Qc=!1,om=-1;wA.prototype.run=function(){this.fun.apply(null,this.array)};LA="browser",CA="x64",BA="browser",UA={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},kA=["/usr/bin/node"],MA=[],xA="v16.8.0",qA={},VA=function(e,t){console.warn((t?t+": ":"")+e)},jA=function(e){_y("binding")},KA=function(e){return 0},GA=function(){return"/"},$A=function(e){},QA={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};YA=hr,JA=[];zA={},WA=!1,XA={};nR=hr,rR=hr,cm=function(){return{}},iR=cm,aR=cm,sR=hr,oR=hr,uR=hr,cR={};dR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},pR=hr,fR=hr;NR=hr,TR=hr,ER=hr,hR=hr,yR=hr,IR=void 0,gR=void 0,_R=void 0,vR=hr,SR=2,OR=1,DR="/bin/usr/node",bR=9229,AR="node",RR=[],PR=hr,Yo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Yo.now===void 0&&(Iy=Date.now(),Yo.timing&&Yo.timing.navigationStart&&(Iy=Yo.timing.navigationStart),Yo.now=()=>Date.now()-Iy);gy=1e9;um.bigint=function(e){var t=um(e);return typeof BigInt=="undefined"?t[0]*gy+t[1]:BigInt(t[0]*gy)+BigInt(t[1])};wR=10,LR={},CR=0;BR=us,UR=us,kR=us,MR=us,xR=us,qR=hr,VR=us,jR=us;GR={version:xA,versions:qA,arch:CA,platform:BA,release:QA,_rawDebug:YA,moduleLoadList:JA,binding:jA,_linkedBinding:HA,_events:LR,_eventsCount:CR,_maxListeners:wR,on:us,addListener:BR,once:UR,off:kR,removeListener:MR,removeAllListeners:xR,emit:qR,prependListener:VR,prependOnceListener:jR,listeners:KR,domain:zA,_exiting:WA,config:XA,dlopen:ZA,uptime:FR,_getActiveRequests:eR,_getActiveHandles:tR,reallyExit:nR,_kill:rR,cpuUsage:cm,resourceUsage:iR,memoryUsage:aR,kill:sR,exit:oR,openStdin:uR,allowedNodeEnvironmentFlags:cR,assert:lR,features:dR,_fatalExceptions:pR,setUncaughtExceptionCaptureCallback:fR,hasUncaughtExceptionCaptureCallback:mR,emitWarning:VA,nextTick:FA,_tickCallback:NR,_debugProcess:TR,_debugEnd:ER,_startProfilerIdleNotifier:hR,_stopProfilerIdleNotifier:yR,stdout:IR,stdin:_R,stderr:gR,abort:vR,umask:KA,chdir:$A,cwd:GA,env:UA,title:LA,argv:kA,execArgv:MA,pid:SR,ppid:OR,execPath:DR,debugPort:bR,hrtime:um,argv0:AR,_preload_modules:RR,setSourceMapsEnabled:PR}});var N=wu(()=>{"use strict";$R()});function cJ(){if(QR)return Id;QR=!0,Id.byteLength=c,Id.toByteArray=p,Id.fromByteArray=g;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var k=v.indexOf("=");k===-1&&(k=F);var K=k===F?0:4-k%4;return[k,K]}function c(v){var F=o(v),k=F[0],K=F[1];return(k+K)*3/4-K}function l(v,F,k){return(F+k)*3/4-k}function p(v){var F,k=o(v),K=k[0],$=k[1],ne=new n(l(v,K,$)),z=0,Te=$>0?K-4:K,pe;for(pe=0;pe>16&255,ne[z++]=F>>8&255,ne[z++]=F&255;return $===2&&(F=t[v.charCodeAt(pe)]<<2|t[v.charCodeAt(pe+1)]>>4,ne[z++]=F&255),$===1&&(F=t[v.charCodeAt(pe)]<<10|t[v.charCodeAt(pe+1)]<<4|t[v.charCodeAt(pe+2)]>>2,ne[z++]=F>>8&255,ne[z++]=F&255),ne}function f(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,F,k){for(var K,$=[],ne=F;neTe?Te:z+ne));return K===1?(F=v[k-1],$.push(e[F>>2]+e[F<<4&63]+"==")):K===2&&(F=(v[k-2]<<8)+v[k-1],$.push(e[F>>10]+e[F>>4&63]+e[F<<2&63]+"=")),$.join("")}return Id}function lJ(){if(YR)return lm;YR=!0;return lm.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,f=-7,y=n?i-1:0,g=n?-1:1,v=e[t+y];for(y+=g,a=v&(1<<-f)-1,v>>=-f,f+=c;f>0;a=a*256+e[t+y],y+=g,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+e[t+y],y+=g,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-p}return(v?-1:1)*o*Math.pow(2,a-r)},lm.write=function(e,t,n,r,i,a){var o,c,l,p=a*8-i-1,f=(1<>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,F=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=g/l:t+=g*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=f?(c=0,o=f):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=F,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=F,o/=256,p-=8);e[n+v-F]|=k*128},lm}function dJ(){if(JR)return Cu;JR=!0;let e=cJ(),t=lJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cu.Buffer=o,Cu.SlowBuffer=$,Cu.INSPECT_MAX_BYTES=50;let r=2147483647;Cu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let A=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(A,h),A.foo()===42}catch(A){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(A){if(A>r)throw new RangeError('The value "'+A+'" is invalid for option "size"');let h=new Uint8Array(A);return Object.setPrototypeOf(h,o.prototype),h}function o(A,h,I){if(typeof A=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(A)}return c(A,h,I)}o.poolSize=8192;function c(A,h,I){if(typeof A=="string")return y(A,h);if(ArrayBuffer.isView(A))return v(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(xt(A,ArrayBuffer)||A&&xt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(A,SharedArrayBuffer)||A&&xt(A.buffer,SharedArrayBuffer)))return F(A,h,I);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(C!=null&&C!==A)return o.from(C,h,I);let G=k(A);if(G)return G;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return o.from(A[Symbol.toPrimitive]("string"),h,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}o.from=function(A,h,I){return c(A,h,I)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function p(A,h,I){return l(A),A<=0?a(A):h!==void 0?typeof I=="string"?a(A).fill(h,I):a(A).fill(h):a(A)}o.alloc=function(A,h,I){return p(A,h,I)};function f(A){return l(A),a(A<0?0:K(A)|0)}o.allocUnsafe=function(A){return f(A)},o.allocUnsafeSlow=function(A){return f(A)};function y(A,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let I=ne(A,h)|0,C=a(I),G=C.write(A,h);return G!==I&&(C=C.slice(0,G)),C}function g(A){let h=A.length<0?0:K(A.length)|0,I=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return A|0}function $(A){return+A!=A&&(A=0),o.alloc(+A)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,I){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(h)||!o.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===I)return 0;let C=h.length,G=I.length;for(let re=0,le=Math.min(C,G);reG.length?(o.isBuffer(le)||(le=o.from(le)),le.copy(G,re)):Uint8Array.prototype.set.call(G,le,re);else if(o.isBuffer(le))le.copy(G,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=le.length}return G};function ne(A,h){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||xt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let I=A.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&I===0)return 0;let G=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return za(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return pr(A).length;default:if(G)return C?-1:za(A).length;h=(""+h).toLowerCase(),G=!0}}o.byteLength=ne;function z(A,h,I){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,h>>>=0,I<=h))return"";for(A||(A="utf8");;)switch(A){case"hex":return Rr(this,h,I);case"utf8":case"utf-8":return Wt(this,h,I);case"ascii":return dn(this,h,I);case"latin1":case"binary":return Ar(this,h,I);case"base64":return zt(this,h,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Un(this,h,I);default:if(C)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(A,h,I){let C=A[h];A[h]=A[I],A[I]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;II&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,I,C,G,re){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(I===void 0&&(I=0),C===void 0&&(C=h?h.length:0),G===void 0&&(G=0),re===void 0&&(re=this.length),I<0||C>h.length||G<0||re>this.length)throw new RangeError("out of range index");if(G>=re&&I>=C)return 0;if(G>=re)return-1;if(I>=C)return 1;if(I>>>=0,C>>>=0,G>>>=0,re>>>=0,this===h)return 0;let le=re-G,ft=C-I,pn=Math.min(le,ft),tn=this.slice(G,re),hn=h.slice(I,C);for(let Xt=0;Xt2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,fr(I)&&(I=G?0:A.length-1),I<0&&(I=A.length+I),I>=A.length){if(G)return-1;I=A.length-1}else if(I<0)if(G)I=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:Fe(A,h,I,C,G);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?G?Uint8Array.prototype.indexOf.call(A,h,I):Uint8Array.prototype.lastIndexOf.call(A,h,I):Fe(A,[h],I,C,G);throw new TypeError("val must be string, number or Buffer")}function Fe(A,h,I,C,G){let re=1,le=A.length,ft=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(A.length<2||h.length<2)return-1;re=2,le/=2,ft/=2,I/=2}function pn(hn,Xt){return re===1?hn[Xt]:hn.readUInt16BE(Xt*re)}let tn;if(G){let hn=-1;for(tn=I;tnle&&(I=le-ft),tn=I;tn>=0;tn--){let hn=!0;for(let Xt=0;XtG&&(C=G)):C=G;let re=h.length;C>re/2&&(C=re/2);let le;for(le=0;le>>0,isFinite(C)?(C=C>>>0,G===void 0&&(G="utf8")):(G=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let re=this.length-I;if((C===void 0||C>re)&&(C=re),h.length>0&&(C<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");let le=!1;for(;;)switch(G){case"hex":return Ve(this,h,I,C);case"utf8":case"utf-8":return et(this,h,I,C);case"ascii":case"latin1":case"binary":return X(this,h,I,C);case"base64":return ve(this,h,I,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,h,I,C);default:if(le)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),le=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(A,h,I){return h===0&&I===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(h,I))}function Wt(A,h,I){I=Math.min(A.length,I);let C=[],G=h;for(;G239?4:re>223?3:re>191?2:1;if(G+ft<=I){let pn,tn,hn,Xt;switch(ft){case 1:re<128&&(le=re);break;case 2:pn=A[G+1],(pn&192)===128&&(Xt=(re&31)<<6|pn&63,Xt>127&&(le=Xt));break;case 3:pn=A[G+1],tn=A[G+2],(pn&192)===128&&(tn&192)===128&&(Xt=(re&15)<<12|(pn&63)<<6|tn&63,Xt>2047&&(Xt<55296||Xt>57343)&&(le=Xt));break;case 4:pn=A[G+1],tn=A[G+2],hn=A[G+3],(pn&192)===128&&(tn&192)===128&&(hn&192)===128&&(Xt=(re&15)<<18|(pn&63)<<12|(tn&63)<<6|hn&63,Xt>65535&&Xt<1114112&&(le=Xt))}}le===null?(le=65533,ft=1):le>65535&&(le-=65536,C.push(le>>>10&1023|55296),le=56320|le&1023),C.push(le),G+=ft}return Vt(C)}let Dn=4096;function Vt(A){let h=A.length;if(h<=Dn)return String.fromCharCode.apply(String,A);let I="",C=0;for(;CC)&&(I=C);let G="";for(let re=h;reC&&(h=C),I<0?(I+=C,I<0&&(I=0)):I>C&&(I=C),II)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let G=this[h],re=1,le=0;for(;++le>>0,I=I>>>0,C||$t(h,I,this.length);let G=this[h+--I],re=1;for(;I>0&&(re*=256);)G+=this[h+--I]*re;return G},o.prototype.readUint8=o.prototype.readUInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=ya(function(h){h=h>>>0,tt(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let G=I+this[++h]*nn(2,8)+this[++h]*nn(2,16)+this[++h]*nn(2,24),re=this[++h]+this[++h]*nn(2,8)+this[++h]*nn(2,16)+C*nn(2,24);return BigInt(G)+(BigInt(re)<>>0,tt(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let G=I*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h],re=this[++h]*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+C;return(BigInt(G)<>>0,I=I>>>0,C||$t(h,I,this.length);let G=this[h],re=1,le=0;for(;++le=re&&(G-=Math.pow(2,8*I)),G},o.prototype.readIntBE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let G=I,re=1,le=this[h+--G];for(;G>0&&(re*=256);)le+=this[h+--G]*re;return re*=128,le>=re&&(le-=Math.pow(2,8*I)),le},o.prototype.readInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=ya(function(h){h=h>>>0,tt(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let G=this[h+4]+this[h+5]*nn(2,8)+this[h+6]*nn(2,16)+(C<<24);return(BigInt(G)<>>0,tt(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&At(h,this.length-8);let G=(I<<24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h];return(BigInt(G)<>>0,I||$t(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!1,52,8)};function bn(A,h,I,C,G,re){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>G||hA.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,I,C,G){if(h=+h,I=I>>>0,C=C>>>0,!G){let ft=Math.pow(2,8*C)-1;bn(this,h,I,C,ft,0)}let re=1,le=0;for(this[I]=h&255;++le>>0,C=C>>>0,!G){let ft=Math.pow(2,8*C)-1;bn(this,h,I,C,ft,0)}let re=C-1,le=1;for(this[I+re]=h&255;--re>=0&&(le*=256);)this[I+re]=h/le&255;return I+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,255,0),this[I]=h&255,I+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I+3]=h>>>24,this[I+2]=h>>>16,this[I+1]=h>>>8,this[I]=h&255,I+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4};function oe(A,h,I,C,G){Lt(h,C,G,A,I,7);let re=Number(h&BigInt(4294967295));A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,I}function De(A,h,I,C,G){Lt(h,C,G,A,I,7);let re=Number(h&BigInt(4294967295));A[I+7]=re,re=re>>8,A[I+6]=re,re=re>>8,A[I+5]=re,re=re>>8,A[I+4]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I+3]=le,le=le>>8,A[I+2]=le,le=le>>8,A[I+1]=le,le=le>>8,A[I]=le,I+8}o.prototype.writeBigUInt64LE=ya(function(h,I=0){return oe(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ya(function(h,I=0){return De(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,I,C,G){if(h=+h,I=I>>>0,!G){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=0,le=1,ft=0;for(this[I]=h&255;++re>0)-ft&255;return I+C},o.prototype.writeIntBE=function(h,I,C,G){if(h=+h,I=I>>>0,!G){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=C-1,le=1,ft=0;for(this[I+re]=h&255;--re>=0&&(le*=256);)h<0&&ft===0&&this[I+re+1]!==0&&(ft=1),this[I+re]=(h/le>>0)-ft&255;return I+C},o.prototype.writeInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,127,-128),h<0&&(h=255+h+1),this[I]=h&255,I+1},o.prototype.writeInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),this[I]=h&255,this[I+1]=h>>>8,this[I+2]=h>>>16,this[I+3]=h>>>24,I+4},o.prototype.writeInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4},o.prototype.writeBigInt64LE=ya(function(h,I=0){return oe(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ya(function(h,I=0){return De(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(A,h,I,C,G,re){if(I+C>A.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Le(A,h,I,C,G){return h=+h,I=I>>>0,G||_e(A,h,I,4),t.write(A,h,I,C,23,4),I+4}o.prototype.writeFloatLE=function(h,I,C){return Le(this,h,I,!0,C)},o.prototype.writeFloatBE=function(h,I,C){return Le(this,h,I,!1,C)};function _t(A,h,I,C,G){return h=+h,I=I>>>0,G||_e(A,h,I,8),t.write(A,h,I,C,52,8),I+8}o.prototype.writeDoubleLE=function(h,I,C){return _t(this,h,I,!0,C)},o.prototype.writeDoubleBE=function(h,I,C){return _t(this,h,I,!1,C)},o.prototype.copy=function(h,I,C,G){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!G&&G!==0&&(G=this.length),I>=h.length&&(I=h.length),I||(I=0),G>0&&G=this.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),h.length-I>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let re;if(typeof h=="number")for(re=I;renn(2,32)?G=xe(String(I)):typeof I=="bigint"&&(G=String(I),(I>nn(BigInt(2),BigInt(32))||I<-nn(BigInt(2),BigInt(32)))&&(G=xe(G)),G+="n"),C+=` It must be ${h}. Received ${G}`,C},RangeError);function xe(A){let h="",I=A.length,C=A[0]==="-"?1:0;for(;I>=C+4;I-=3)h=`_${A.slice(I-3,I)}${h}`;return`${A.slice(0,I)}${h}`}function Qe(A,h,I){tt(h,"offset"),(A[h]===void 0||A[h+I]===void 0)&&At(h,A.length-(I+1))}function Lt(A,h,I,C,G,re){if(A>I||A3?h===0||h===BigInt(0)?ft=`>= 0${le} and < 2${le} ** ${(re+1)*8}${le}`:ft=`>= -(2${le} ** ${(re+1)*8-1}${le}) and < 2 ** ${(re+1)*8-1}${le}`:ft=`>= ${h}${le} and <= ${I}${le}`,new J.ERR_OUT_OF_RANGE("value",ft,A)}Qe(C,G,re)}function tt(A,h){if(typeof A!="number")throw new J.ERR_INVALID_ARG_TYPE(h,"number",A)}function At(A,h,I){throw Math.floor(A)!==A?(tt(A,I),new J.ERR_OUT_OF_RANGE(I||"offset","an integer",A)):h<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(I||"offset",`>= ${I?1:0} and <= ${h}`,A)}let Ha=/[^+/0-9A-Za-z-_]/g;function xr(A){if(A=A.split("=")[0],A=A.trim().replace(Ha,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function za(A,h){h=h||1/0;let I,C=A.length,G=null,re=[];for(let le=0;le55295&&I<57344){if(!G){if(I>56319){(h-=3)>-1&&re.push(239,191,189);continue}else if(le+1===C){(h-=3)>-1&&re.push(239,191,189);continue}G=I;continue}if(I<56320){(h-=3)>-1&&re.push(239,191,189),G=I;continue}I=(G-55296<<10|I-56320)+65536}else G&&(h-=3)>-1&&re.push(239,191,189);if(G=null,I<128){if((h-=1)<0)break;re.push(I)}else if(I<2048){if((h-=2)<0)break;re.push(I>>6|192,I&63|128)}else if(I<65536){if((h-=3)<0)break;re.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((h-=4)<0)break;re.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return re}function wc(A){let h=[];for(let I=0;I>8,G=I%256,re.push(G),re.push(C);return re}function pr(A){return e.toByteArray(xr(A))}function ni(A,h,I,C){let G;for(G=0;G=h.length||G>=A.length);++G)h[G+I]=A[G];return G}function xt(A,h){return A instanceof h||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===h.name}function fr(A){return A!==A}let gu=function(){let A="0123456789abcdef",h=new Array(256);for(let I=0;I<16;++I){let C=I*16;for(let G=0;G<16;++G)h[C+G]=A[I]+A[G]}return h}();function ya(A){return typeof BigInt=="undefined"?_u:A}function _u(){throw new Error("BigInt not supported")}return Cu}var Id,QR,lm,YR,Cu,JR,Bu,D,Rde,Pde,HR=wu(()=>{"use strict";m();T();N();Id={},QR=!1;lm={},YR=!1;Cu={},JR=!1;Bu=dJ();Bu.Buffer;Bu.SlowBuffer;Bu.INSPECT_MAX_BYTES;Bu.kMaxLength;D=Bu.Buffer,Rde=Bu.INSPECT_MAX_BYTES,Pde=Bu.kMaxLength});var T=wu(()=>{"use strict";HR()});var zR=w(Yc=>{"use strict";m();T();N();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.versionInfo=Yc.version=void 0;var pJ="16.9.0";Yc.version=pJ;var fJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Yc.versionInfo=fJ});var Lr=w(vy=>{"use strict";m();T();N();Object.defineProperty(vy,"__esModule",{value:!0});vy.devAssert=mJ;function mJ(e,t){if(!!!e)throw new Error(t)}});var dm=w(Sy=>{"use strict";m();T();N();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.isPromise=NJ;function NJ(e){return typeof(e==null?void 0:e.then)=="function"}});var va=w(Oy=>{"use strict";m();T();N();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.isObjectLike=TJ;function TJ(e){return typeof e=="object"&&e!==null}});var yr=w(Dy=>{"use strict";m();T();N();Object.defineProperty(Dy,"__esModule",{value:!0});Dy.invariant=EJ;function EJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var pm=w(by=>{"use strict";m();T();N();Object.defineProperty(by,"__esModule",{value:!0});by.getLocation=IJ;var hJ=yr(),yJ=/\r\n|[\n\r]/g;function IJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(yJ)){if(typeof i.index=="number"||(0,hJ.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Ay=w(fm=>{"use strict";m();T();N();Object.defineProperty(fm,"__esModule",{value:!0});fm.printLocation=_J;fm.printSourceLocation=XR;var gJ=pm();function _J(e){return XR(e.source,(0,gJ.getLocation)(e.source,e.start))}function XR(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,p=`${e.name}:${o}:${l} +`,f=r.split(/\r\n|[\n\r]/g),y=f[i];if(y.length>120){let g=Math.floor(l/80),v=l%80,F=[];for(let k=0;k["|",k]),["|","^".padStart(v)],["|",F[g+1]]])}return p+WR([[`${o-1} |`,f[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,f[i+1]]])}function WR(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}});var He=w(Jc=>{"use strict";m();T();N();Object.defineProperty(Jc,"__esModule",{value:!0});Jc.GraphQLError=void 0;Jc.formatError=DJ;Jc.printError=OJ;var vJ=va(),ZR=pm(),eP=Ay();function SJ(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Ry=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:p,originalError:f,extensions:y}=SJ(n);super(t),this.name="GraphQLError",this.path=p!=null?p:void 0,this.originalError=f!=null?f:void 0,this.nodes=tP(Array.isArray(o)?o:o?[o]:void 0);let g=tP((r=this.nodes)===null||r===void 0?void 0:r.map(F=>F.loc).filter(F=>F!=null));this.source=c!=null?c:g==null||(i=g[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:g==null?void 0:g.map(F=>F.start),this.locations=l&&c?l.map(F=>(0,ZR.getLocation)(c,F)):g==null?void 0:g.map(F=>(0,ZR.getLocation)(F.source,F.start));let v=(0,vJ.isObjectLike)(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(a=y!=null?y:v)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` `+(0,eP.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` @@ -32,7 +32,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};ym.instanceOf=i3});var gm=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.Source=void 0;Pd.isSource=o3;var jy=Lr(),a3=Yt(),s3=Rd(),Im=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,jy.devAssert)(!1,`Body must be a string. Received: ${(0,a3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,jy.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,jy.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Pd.Source=Im;function o3(e){return(0,s3.instanceOf)(e,Im)}});var Wc=w(Jo=>{"use strict";m();T();N();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.Parser=void 0;Jo.parse=c3;Jo.parseConstValue=d3;Jo.parseType=p3;Jo.parseValue=l3;var xu=mm(),Fd=Sa(),u3=Hc(),at=Pt(),lP=Em(),cP=gm(),Se=Dd();function c3(e,t){return new qu(e,t).parseDocument()}function l3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function d3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function p3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var qu=class{constructor(t,n={}){let r=(0,cP.isSource)(t)?t:new cP.Source(t);this._lexer=new lP.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:at.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:at.Kind.DOCUMENT,definitions:this.many(Se.TokenKind.SOF,this.parseDefinition,Se.TokenKind.EOF)})}parseDefinition(){if(this.peek(Se.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Se.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Se.TokenKind.BRACE_L))return this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:Fd.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Se.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Se.TokenKind.NAME);switch(t.value){case"query":return Fd.OperationTypeNode.QUERY;case"mutation":return Fd.OperationTypeNode.MUTATION;case"subscription":return Fd.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseVariableDefinition,Se.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:at.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Se.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Se.TokenKind.DOLLAR),this.node(t,{kind:at.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:at.Kind.SELECTION_SET,selections:this.many(Se.TokenKind.BRACE_L,this.parseSelection,Se.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Se.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Se.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:at.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.TokenKind.PAREN_L,n,Se.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Se.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.TokenKind.NAME)?this.node(t,{kind:at.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:at.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:at.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:at.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case Se.TokenKind.BRACKET_L:return this.parseList(t);case Se.TokenKind.BRACE_L:return this.parseObject(t);case Se.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:at.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:at.Kind.FLOAT,value:n.value});case Se.TokenKind.STRING:case Se.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Se.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:at.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:at.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:at.Kind.NULL});default:return this.node(n,{kind:at.Kind.ENUM,value:n.value})}case Se.TokenKind.DOLLAR:if(t)if(this.expectToken(Se.TokenKind.DOLLAR),this._lexer.token.kind===Se.TokenKind.NAME){let r=this._lexer.token.value;throw(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:at.Kind.STRING,value:t.value,block:t.kind===Se.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:at.Kind.LIST,values:this.any(Se.TokenKind.BRACKET_L,n,Se.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:at.Kind.OBJECT,fields:this.any(Se.TokenKind.BRACE_L,n,Se.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Se.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Se.TokenKind.AT),this.node(n,{kind:at.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Se.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Se.TokenKind.BRACKET_R),n=this.node(t,{kind:at.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:at.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:at.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.TokenKind.STRING)||this.peek(Se.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);return this.node(t,{kind:at.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:at.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:at.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseFieldDefinition,Se.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Se.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseInputValueDef,Se.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:at.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.TokenKind.EQUALS)?this.delimitedMany(Se.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:at.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseEnumValueDefinition,Se.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:at.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,`${_m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseInputValueDef,Se.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Se.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Se.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:at.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Se.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(u3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Fd.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected ${dP(t)}, found ${_m(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Se.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${_m(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Se.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected ${_m(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==Se.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,xu.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Jo.Parser=qu;function _m(e){let t=e.value;return dP(e.kind)+(t!=null?` "${t}"`:"")}function dP(e){return(0,lP.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Ho=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.didYouMean=m3;var f3=5;function m3(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,f3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var pP=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.identityFunc=N3;function N3(e){return e}});var zo=w($y=>{"use strict";m();T();N();Object.defineProperty($y,"__esModule",{value:!0});$y.keyMap=T3;function T3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var wd=w(Qy=>{"use strict";m();T();N();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.keyValMap=E3;function E3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var Jy=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.mapValue=h3;function h3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Ld=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.naturalCompare=y3;function y3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-Hy,a=t.charCodeAt(r);while(vm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var Hy=48,I3=57;function vm(e){return!isNaN(e)&&Hy<=e&&e<=I3}});var Wo=w(Xy=>{"use strict";m();T();N();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.suggestionList=_3;var g3=Ld();function _3(e,t){let n=Object.create(null),r=new Wy(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{let c=n[a]-n[o];return c!==0?c:(0,g3.naturalCompare)(a,o)})}var Wy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fP(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=fP(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=c;f++)l[0][f]=f;for(let f=1;f<=o;f++){let y=l[(f-1)%3],g=l[f%3],v=g[0]=f;for(let P=1;P<=c;P++){let k=i[f-1]===a[P-1]?0:1,K=Math.min(y[P]+1,g[P-1]+1,y[P-1]+k);if(f>1&&P>1&&i[f-1]===a[P-2]&&i[f-2]===a[P-1]){let G=l[(f-2)%3][P-2];K=Math.min(K,G+1)}Kn)return}let p=l[o%3][c];return p<=n?p:void 0}};function fP(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.toObjMap=v3;function v3(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var mP=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.printString=S3;function S3(e){return`"${e.replace(O3,D3)}"`}var O3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function D3(e){return b3[e.charCodeAt(0)]}var b3=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Vu=w(Xo=>{"use strict";m();T();N();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BREAK=void 0;Xo.getEnterLeaveForKind=Om;Xo.getVisitFn=w3;Xo.visit=P3;Xo.visitInParallel=F3;var A3=Lr(),R3=Yt(),tI=Sa(),NP=Pt(),Xc=Object.freeze({});Xo.BREAK=Xc;function P3(e,t,n=tI.QueryDocumentKeys){let r=new Map;for(let G of Object.values(NP.Kind))r.set(G,Om(t,G));let i,a=Array.isArray(e),o=[e],c=-1,l=[],p=e,f,y,g=[],v=[];do{c++;let G=c===o.length,Z=G&&l.length!==0;if(G){if(f=v.length===0?void 0:g[g.length-1],p=y,y=v.pop(),Z)if(a){p=p.slice();let Te=0;for(let[fe,we]of l){let Ve=fe-Te;we===null?(p.splice(Ve,1),Te++):p[Ve]=we}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(let[Te,fe]of l)p[Te]=fe}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(y){if(f=a?c:o[c],p=y[f],p==null)continue;g.push(f)}let W;if(!Array.isArray(p)){var P,k;(0,tI.isNode)(p)||(0,A3.devAssert)(!1,`Invalid AST Node: ${(0,R3.inspect)(p)}.`);let Te=G?(P=r.get(p.kind))===null||P===void 0?void 0:P.leave:(k=r.get(p.kind))===null||k===void 0?void 0:k.enter;if(W=Te==null?void 0:Te.call(t,p,f,y,g,v),W===Xc)break;if(W===!1){if(!G){g.pop();continue}}else if(W!==void 0&&(l.push([f,W]),!G))if((0,tI.isNode)(W))p=W;else{g.pop();continue}}if(W===void 0&&Z&&l.push([f,p]),G)g.pop();else{var K;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(p),o=a?p:(K=n[p.kind])!==null&&K!==void 0?K:[],c=-1,l=[],y&&v.push(y),y=p}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function F3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(NP.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();N();Object.defineProperty(nI,"__esModule",{value:!0});nI.print=U3;var L3=Sd(),C3=mP(),B3=Vu();function U3(e){return(0,B3.visit)(e,M3)}var k3=80,M3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` +spurious results.`)}}return!1};ym.instanceOf=i3});var gm=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.Source=void 0;Pd.isSource=o3;var jy=Lr(),a3=Yt(),s3=Rd(),Im=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,jy.devAssert)(!1,`Body must be a string. Received: ${(0,a3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,jy.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,jy.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Pd.Source=Im;function o3(e){return(0,s3.instanceOf)(e,Im)}});var Wc=w(Jo=>{"use strict";m();T();N();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.Parser=void 0;Jo.parse=c3;Jo.parseConstValue=d3;Jo.parseType=p3;Jo.parseValue=l3;var xu=mm(),Fd=Sa(),u3=Hc(),at=Pt(),lP=Em(),cP=gm(),Se=Dd();function c3(e,t){return new qu(e,t).parseDocument()}function l3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function d3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function p3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var qu=class{constructor(t,n={}){let r=(0,cP.isSource)(t)?t:new cP.Source(t);this._lexer=new lP.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:at.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:at.Kind.DOCUMENT,definitions:this.many(Se.TokenKind.SOF,this.parseDefinition,Se.TokenKind.EOF)})}parseDefinition(){if(this.peek(Se.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Se.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Se.TokenKind.BRACE_L))return this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:Fd.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Se.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Se.TokenKind.NAME);switch(t.value){case"query":return Fd.OperationTypeNode.QUERY;case"mutation":return Fd.OperationTypeNode.MUTATION;case"subscription":return Fd.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseVariableDefinition,Se.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:at.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Se.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Se.TokenKind.DOLLAR),this.node(t,{kind:at.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:at.Kind.SELECTION_SET,selections:this.many(Se.TokenKind.BRACE_L,this.parseSelection,Se.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Se.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Se.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:at.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.TokenKind.PAREN_L,n,Se.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Se.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.TokenKind.NAME)?this.node(t,{kind:at.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:at.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:at.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:at.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case Se.TokenKind.BRACKET_L:return this.parseList(t);case Se.TokenKind.BRACE_L:return this.parseObject(t);case Se.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:at.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:at.Kind.FLOAT,value:n.value});case Se.TokenKind.STRING:case Se.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Se.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:at.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:at.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:at.Kind.NULL});default:return this.node(n,{kind:at.Kind.ENUM,value:n.value})}case Se.TokenKind.DOLLAR:if(t)if(this.expectToken(Se.TokenKind.DOLLAR),this._lexer.token.kind===Se.TokenKind.NAME){let r=this._lexer.token.value;throw(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:at.Kind.STRING,value:t.value,block:t.kind===Se.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:at.Kind.LIST,values:this.any(Se.TokenKind.BRACKET_L,n,Se.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:at.Kind.OBJECT,fields:this.any(Se.TokenKind.BRACE_L,n,Se.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Se.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Se.TokenKind.AT),this.node(n,{kind:at.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Se.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Se.TokenKind.BRACKET_R),n=this.node(t,{kind:at.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:at.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:at.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.TokenKind.STRING)||this.peek(Se.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);return this.node(t,{kind:at.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:at.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:at.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseFieldDefinition,Se.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Se.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseInputValueDef,Se.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:at.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.TokenKind.EQUALS)?this.delimitedMany(Se.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:at.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseEnumValueDefinition,Se.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:at.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,`${_m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseInputValueDef,Se.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Se.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Se.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:at.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Se.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(u3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Fd.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected ${dP(t)}, found ${_m(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Se.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${_m(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Se.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected ${_m(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==Se.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,xu.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Jo.Parser=qu;function _m(e){let t=e.value;return dP(e.kind)+(t!=null?` "${t}"`:"")}function dP(e){return(0,lP.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Ho=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.didYouMean=m3;var f3=5;function m3(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,f3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var pP=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.identityFunc=N3;function N3(e){return e}});var zo=w($y=>{"use strict";m();T();N();Object.defineProperty($y,"__esModule",{value:!0});$y.keyMap=T3;function T3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var wd=w(Qy=>{"use strict";m();T();N();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.keyValMap=E3;function E3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var Jy=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.mapValue=h3;function h3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Ld=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.naturalCompare=y3;function y3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-Hy,a=t.charCodeAt(r);while(vm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var Hy=48,I3=57;function vm(e){return!isNaN(e)&&Hy<=e&&e<=I3}});var Wo=w(Xy=>{"use strict";m();T();N();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.suggestionList=_3;var g3=Ld();function _3(e,t){let n=Object.create(null),r=new Wy(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{let c=n[a]-n[o];return c!==0?c:(0,g3.naturalCompare)(a,o)})}var Wy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fP(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=fP(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=c;f++)l[0][f]=f;for(let f=1;f<=o;f++){let y=l[(f-1)%3],g=l[f%3],v=g[0]=f;for(let F=1;F<=c;F++){let k=i[f-1]===a[F-1]?0:1,K=Math.min(y[F]+1,g[F-1]+1,y[F-1]+k);if(f>1&&F>1&&i[f-1]===a[F-2]&&i[f-2]===a[F-1]){let $=l[(f-2)%3][F-2];K=Math.min(K,$+1)}Kn)return}let p=l[o%3][c];return p<=n?p:void 0}};function fP(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.toObjMap=v3;function v3(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var mP=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.printString=S3;function S3(e){return`"${e.replace(O3,D3)}"`}var O3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function D3(e){return b3[e.charCodeAt(0)]}var b3=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var Vu=w(Xo=>{"use strict";m();T();N();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BREAK=void 0;Xo.getEnterLeaveForKind=Om;Xo.getVisitFn=w3;Xo.visit=P3;Xo.visitInParallel=F3;var A3=Lr(),R3=Yt(),tI=Sa(),NP=Pt(),Xc=Object.freeze({});Xo.BREAK=Xc;function P3(e,t,n=tI.QueryDocumentKeys){let r=new Map;for(let $ of Object.values(NP.Kind))r.set($,Om(t,$));let i,a=Array.isArray(e),o=[e],c=-1,l=[],p=e,f,y,g=[],v=[];do{c++;let $=c===o.length,ne=$&&l.length!==0;if($){if(f=v.length===0?void 0:g[g.length-1],p=y,y=v.pop(),ne)if(a){p=p.slice();let Te=0;for(let[pe,Fe]of l){let Ve=pe-Te;Fe===null?(p.splice(Ve,1),Te++):p[Ve]=Fe}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(let[Te,pe]of l)p[Te]=pe}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(y){if(f=a?c:o[c],p=y[f],p==null)continue;g.push(f)}let z;if(!Array.isArray(p)){var F,k;(0,tI.isNode)(p)||(0,A3.devAssert)(!1,`Invalid AST Node: ${(0,R3.inspect)(p)}.`);let Te=$?(F=r.get(p.kind))===null||F===void 0?void 0:F.leave:(k=r.get(p.kind))===null||k===void 0?void 0:k.enter;if(z=Te==null?void 0:Te.call(t,p,f,y,g,v),z===Xc)break;if(z===!1){if(!$){g.pop();continue}}else if(z!==void 0&&(l.push([f,z]),!$))if((0,tI.isNode)(z))p=z;else{g.pop();continue}}if(z===void 0&&ne&&l.push([f,p]),$)g.pop();else{var K;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(p),o=a?p:(K=n[p.kind])!==null&&K!==void 0?K:[],c=-1,l=[],y&&v.push(y),y=p}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function F3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(NP.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();N();Object.defineProperty(nI,"__esModule",{value:!0});nI.print=U3;var L3=Sd(),C3=mP(),B3=Vu();function U3(e){return(0,B3.visit)(e,M3)}var k3=80,M3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` `)},OperationDefinition:{leave(e){let t=Dt("(",qe(e.variableDefinitions,", "),")"),n=qe([e.operation,qe([e.name,t]),qe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Dt(" = ",n)+Dt(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>zi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Dt("",e,": ")+t,o=a+Dt("(",qe(n,", "),")");return o.length>k3&&(o=a+Dt(`( `,Dm(qe(n,` @@ -63,11 +63,11 @@ spurious results.`)}}return!1};ym.instanceOf=i3});var gm=w(Pd=>{"use strict";m() In 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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(TI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Yd))),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Jt.__Directive=NI;var TI=new ke.GraphQLEnumType({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:zn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:zn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:zn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:zn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:zn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:zn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:zn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:zn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:zn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:zn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:zn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:zn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:zn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:zn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:zn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:zn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:zn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:zn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:zn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Jt.__DirectiveLocation=TI;var bi=new ke.GraphQLObjectType({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 ke.GraphQLNonNull(yI),resolve(e){if((0,ke.isScalarType)(e))return Wn.SCALAR;if((0,ke.isObjectType)(e))return Wn.OBJECT;if((0,ke.isInterfaceType)(e))return Wn.INTERFACE;if((0,ke.isUnionType)(e))return Wn.UNION;if((0,ke.isEnumType)(e))return Wn.ENUM;if((0,ke.isInputObjectType)(e))return Wn.INPUT_OBJECT;if((0,ke.isListType)(e))return Wn.LIST;if((0,ke.isNonNullType)(e))return Wn.NON_NULL;(0,FH.invariant)(!1,`Unexpected type: "${(0,PH.inspect)(e)}".`)}},name:{type:rn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:rn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:rn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(EI)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ke.GraphQLList(new ke.GraphQLNonNull(bi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(bi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(hI)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Yd)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:bi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:rn.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Jt.__Type=bi;var EI=new ke.GraphQLObjectType({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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Yd))),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(bi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__Field=EI;var Yd=new ke.GraphQLObjectType({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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(bi),resolve:e=>e.type},defaultValue:{type:rn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,LH.astFromValue)(n,t);return r?(0,wH.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__InputValue=Yd;var hI=new ke.GraphQLObjectType({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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__EnumValue=hI;var Wn;Jt.TypeKind=Wn;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Wn||(Jt.TypeKind=Wn={}));var yI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Wn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Wn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Wn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Wn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Wn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Wn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Wn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Wn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Jt.__TypeKind=yI;var CH={name:"__schema",type:new ke.GraphQLNonNull(mI),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};Jt.SchemaMetaFieldDef=CH;var BH={name:"__type",type:bi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(rn.GraphQLString),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};Jt.TypeMetaFieldDef=BH;var UH={name:"__typename",type:new ke.GraphQLNonNull(rn.GraphQLString),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};Jt.TypeNameMetaFieldDef=UH;var WP=Object.freeze([mI,NI,TI,bi,EI,Yd,hI,yI]);Jt.introspectionTypes=WP;function kH(e){return WP.some(({name:t})=>e.name===t)}});var Yu=w(tl=>{"use strict";m();T();N();Object.defineProperty(tl,"__esModule",{value:!0});tl.GraphQLSchema=void 0;tl.assertSchema=jH;tl.isSchema=ZP;var Qm=Lr(),gI=Yt(),MH=Rd(),xH=va(),qH=Sm(),II=Sa(),Xi=Ft(),XP=Gr(),VH=Ai();function ZP(e){return(0,MH.instanceOf)(e,Ym)}function jH(e){if(!ZP(e))throw new Error(`Expected ${(0,gI.inspect)(e)} to be a GraphQL schema.`);return e}var Ym=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,xH.isObjectLike)(t)||(0,Qm.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Qm.devAssert)(!1,`"types" must be Array if provided but got: ${(0,gI.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Qm.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,gI.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,qH.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:XP.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Zi(a,i);this._queryType!=null&&Zi(this._queryType,i),this._mutationType!=null&&Zi(this._mutationType,i),this._subscriptionType!=null&&Zi(this._subscriptionType,i);for(let a of this._directives)if((0,XP.isDirective)(a))for(let o of a.args)Zi(o.type,i);Zi(VH.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,Qm.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,Xi.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,Xi.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Xi.isObjectType)(a)){for(let c of a.getInterfaces())if((0,Xi.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case II.OperationTypeNode.QUERY:return this.getQueryType();case II.OperationTypeNode.MUTATION:return this.getMutationType();case II.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Xi.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,Xi.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)r[a.name]=!0;for(let a of i.interfaces)r[a.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}};tl.GraphQLSchema=Ym;function Zi(e,t){let n=(0,Xi.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,Xi.isUnionType)(n))for(let r of n.getTypes())Zi(r,t);else if((0,Xi.isObjectType)(n)||(0,Xi.isInterfaceType)(n)){for(let r of n.getInterfaces())Zi(r,t);for(let r of Object.values(n.getFields())){Zi(r.type,t);for(let i of r.args)Zi(i.type,t)}}else if((0,Xi.isInputObjectType)(n))for(let r of Object.values(n.getFields()))Zi(r.type,t)}return t}});var Hd=w(Jm=>{"use strict";m();T();N();Object.defineProperty(Jm,"__esModule",{value:!0});Jm.assertValidSchema=QH;Jm.validateSchema=aF;var gr=Yt(),KH=He(),_I=Sa(),eF=xd(),Rn=Ft(),iF=Gr(),GH=Ai(),$H=Yu();function aF(e){if((0,$H.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new SI(e);YH(t),JH(t),HH(t);let n=t.getErrors();return e.__validationErrors=n,n}function QH(e){let t=aF(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var SI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new KH.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function YH(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Rn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,gr.inspect)(n)}.`,(r=vI(t,_I.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Rn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,gr.inspect)(i)}.`,(a=vI(t,_I.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Rn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,gr.inspect)(o)}.`,(c=vI(t,_I.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function vI(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function JH(e){for(let n of e.schema.getDirectives()){if(!(0,iF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,gr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Ju(e,n);for(let r of n.args)if(Ju(e,r),(0,Rn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,gr.inspect)(r.type)}.`,r.astNode),(0,Rn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[OI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ju(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function HH(e){let t=n6(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Rn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,gr.inspect)(r)}.`,r.astNode);continue}(0,GH.isIntrospectionType)(r)||Ju(e,r),(0,Rn.isObjectType)(r)||(0,Rn.isInterfaceType)(r)?(tF(e,r),nF(e,r)):(0,Rn.isUnionType)(r)?XH(e,r):(0,Rn.isEnumType)(r)?ZH(e,r):(0,Rn.isInputObjectType)(r)&&(e6(e,r),t(r))}}function tF(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Ju(e,o),!(0,Rn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,gr.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Ju(e,c),!(0,Rn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,gr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Rn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[OI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function nF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Rn.isInterfaceType)(r)){e.reportError(`Type ${(0,gr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,gr.inspect)(r)}.`,Jd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Jd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Jd(t,r));continue}n[r.name]=!0,WH(e,t,r),zH(e,t,r)}}function zH(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let p=l.name,f=r[p];if(!f){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,eF.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${p} expects type ${(0,gr.inspect)(l.type)} but ${t.name}.${p} is type ${(0,gr.inspect)(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let g=y.name,v=f.args.find(P=>P.name===g);if(!v){e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expected but ${t.name}.${p} does not provide it.`,[y.astNode,f.astNode]);continue}if(!(0,eF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expects type ${(0,gr.inspect)(y.type)} but ${t.name}.${p}(${g}:) is type ${(0,gr.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of f.args){let g=y.name;!l.args.find(P=>P.name===g)&&(0,Rn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${g} that is missing from the Interface field ${n.name}.${p}.`,[y.astNode,l.astNode])}}}function WH(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}.`,[...Jd(n,i),...Jd(t,n)])}function XH(e,t){let n=t.getTypes();n.length===0&&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.`,rF(t,i.name));continue}r[i.name]=!0,(0,Rn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,gr.inspect)(i)}.`,rF(t,String(i)))}}function ZH(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Ju(e,r)}function e6(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(Ju(e,a),!(0,Rn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,gr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Rn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[OI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&t6(t,a,e)}}function t6(e,t,n){if((0,Rn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function n6(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Rn.isNonNullType)(c.type)&&(0,Rn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,p=r[l.name];if(n.push(c),p===void 0)i(l);else{let f=n.slice(p),y=f.map(g=>g.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,f.map(g=>g.astNode))}n.pop()}r[a.name]=void 0}}function Jd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function rF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function OI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===iF.GraphQLDeprecatedDirective.name)}});var Aa=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.typeFromAST=bI;var DI=Pt(),sF=Ft();function bI(e,t){switch(t.kind){case DI.Kind.LIST_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLList(n)}case DI.Kind.NON_NULL_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLNonNull(n)}case DI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Hm=w(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.TypeInfo=void 0;zd.visitWithTypeInfo=a6;var r6=Sa(),Pn=Pt(),oF=Vu(),Fn=Ft(),nl=Ai(),uF=Aa(),RI=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:i6,n&&((0,Fn.isInputType)(n)&&this._inputTypeStack.push(n),(0,Fn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Fn.isOutputType)(n)&&this._typeStack.push(n))}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(t){let n=this._schema;switch(t.kind){case Pn.Kind.SELECTION_SET:{let i=(0,Fn.getNamedType)(this.getType());this._parentTypeStack.push((0,Fn.isCompositeType)(i)?i:void 0);break}case Pn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Fn.isOutputType)(o)?o:void 0);break}case Pn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Pn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Fn.isObjectType)(i)?i:void 0);break}case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,uF.typeFromAST)(n,i):(0,Fn.getNamedType)(this.getType());this._typeStack.push((0,Fn.isOutputType)(a)?a:void 0);break}case Pn.Kind.VARIABLE_DEFINITION:{let i=(0,uF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Fn.isInputType)(i)?i:void 0);break}case Pn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.LIST:{let i=(0,Fn.getNullableType)(this.getInputType()),a=(0,Fn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.OBJECT_FIELD:{let i=(0,Fn.getNamedType)(this.getInputType()),a,o;(0,Fn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.ENUM:{let i=(0,Fn.getNamedType)(this.getInputType()),a;(0,Fn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Pn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Pn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Pn.Kind.DIRECTIVE:this._directive=null;break;case Pn.Kind.OPERATION_DEFINITION:case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Pn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Pn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.LIST:case Pn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.ENUM:this._enumValue=null;break;default:}}};zd.TypeInfo=RI;function i6(e,t,n){let r=n.name.value;if(r===nl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return nl.SchemaMetaFieldDef;if(r===nl.TypeMetaFieldDef.name&&e.getQueryType()===t)return nl.TypeMetaFieldDef;if(r===nl.TypeNameMetaFieldDef.name&&(0,Fn.isCompositeType)(t))return nl.TypeNameMetaFieldDef;if((0,Fn.isObjectType)(t)||(0,Fn.isInterfaceType)(t))return t.getFields()[r]}function a6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,oF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,r6.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,oF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var Hu=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isConstValueNode=PI;Ri.isDefinitionNode=s6;Ri.isExecutableDefinitionNode=cF;Ri.isSelectionNode=o6;Ri.isTypeDefinitionNode=pF;Ri.isTypeExtensionNode=mF;Ri.isTypeNode=u6;Ri.isTypeSystemDefinitionNode=dF;Ri.isTypeSystemExtensionNode=fF;Ri.isValueNode=lF;var wt=Pt();function s6(e){return cF(e)||dF(e)||fF(e)}function cF(e){return e.kind===wt.Kind.OPERATION_DEFINITION||e.kind===wt.Kind.FRAGMENT_DEFINITION}function o6(e){return e.kind===wt.Kind.FIELD||e.kind===wt.Kind.FRAGMENT_SPREAD||e.kind===wt.Kind.INLINE_FRAGMENT}function lF(e){return e.kind===wt.Kind.VARIABLE||e.kind===wt.Kind.INT||e.kind===wt.Kind.FLOAT||e.kind===wt.Kind.STRING||e.kind===wt.Kind.BOOLEAN||e.kind===wt.Kind.NULL||e.kind===wt.Kind.ENUM||e.kind===wt.Kind.LIST||e.kind===wt.Kind.OBJECT}function PI(e){return lF(e)&&(e.kind===wt.Kind.LIST?e.values.some(PI):e.kind===wt.Kind.OBJECT?e.fields.some(t=>PI(t.value)):e.kind!==wt.Kind.VARIABLE)}function u6(e){return e.kind===wt.Kind.NAMED_TYPE||e.kind===wt.Kind.LIST_TYPE||e.kind===wt.Kind.NON_NULL_TYPE}function dF(e){return e.kind===wt.Kind.SCHEMA_DEFINITION||pF(e)||e.kind===wt.Kind.DIRECTIVE_DEFINITION}function pF(e){return e.kind===wt.Kind.SCALAR_TYPE_DEFINITION||e.kind===wt.Kind.OBJECT_TYPE_DEFINITION||e.kind===wt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===wt.Kind.UNION_TYPE_DEFINITION||e.kind===wt.Kind.ENUM_TYPE_DEFINITION||e.kind===wt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function fF(e){return e.kind===wt.Kind.SCHEMA_EXTENSION||mF(e)}function mF(e){return e.kind===wt.Kind.SCALAR_TYPE_EXTENSION||e.kind===wt.Kind.OBJECT_TYPE_EXTENSION||e.kind===wt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===wt.Kind.UNION_TYPE_EXTENSION||e.kind===wt.Kind.ENUM_TYPE_EXTENSION||e.kind===wt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var wI=w(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.ExecutableDefinitionsRule=d6;var c6=He(),NF=Pt(),l6=Hu();function d6(e){return{Document(t){for(let n of t.definitions)if(!(0,l6.isExecutableDefinitionNode)(n)){let r=n.kind===NF.Kind.SCHEMA_DEFINITION||n.kind===NF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new c6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var CI=w(LI=>{"use strict";m();T();N();Object.defineProperty(LI,"__esModule",{value:!0});LI.FieldsOnCorrectTypeRule=N6;var TF=Ho(),p6=Ld(),f6=Wo(),m6=He(),Wd=Ft();function N6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,TF.didYouMean)("to use an inline fragment on",T6(i,n,a));o===""&&(o=(0,TF.didYouMean)(E6(n,a))),e.reportError(new m6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function T6(e,t,n){if(!(0,Wd.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,Wd.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Wd.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,p6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function E6(e,t){if((0,Wd.isObjectType)(e)||(0,Wd.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,f6.suggestionList)(t,n)}return[]}});var UI=w(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.FragmentsOnCompositeTypesRule=h6;var EF=He(),hF=ci(),yF=Ft(),IF=Aa();function h6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,IF.typeFromAST)(e.getSchema(),n);if(r&&!(0,yF.isCompositeType)(r)){let i=(0,hF.print)(n);e.reportError(new EF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,IF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,yF.isCompositeType)(n)){let r=(0,hF.print)(t.typeCondition);e.reportError(new EF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var kI=w(zm=>{"use strict";m();T();N();Object.defineProperty(zm,"__esModule",{value:!0});zm.KnownArgumentNamesOnDirectivesRule=SF;zm.KnownArgumentNamesRule=g6;var gF=Ho(),_F=Wo(),vF=He(),y6=Pt(),I6=Gr();function g6(e){return Y(x({},SF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,_F.suggestionList)(a,o);e.reportError(new vF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,gF.didYouMean)(c),{nodes:t}))}}})}function SF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():I6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===y6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let p of o.arguments){let f=p.name.value;if(!l.includes(f)){let y=(0,_F.suggestionList)(f,l);e.reportError(new vF.GraphQLError(`Unknown argument "${f}" on directive "@${c}".`+(0,gF.didYouMean)(y),{nodes:p}))}}return!1}}}});var VI=w(qI=>{"use strict";m();T();N();Object.defineProperty(qI,"__esModule",{value:!0});qI.KnownDirectivesRule=S6;var _6=Yt(),MI=yr(),OF=He(),xI=Sa(),Xn=Hc(),En=Pt(),v6=Gr();function S6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():v6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===En.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,p){let f=a.name.value,y=t[f];if(!y){e.reportError(new OF.GraphQLError(`Unknown directive "@${f}".`,{nodes:a}));return}let g=O6(p);g&&!y.includes(g)&&e.reportError(new OF.GraphQLError(`Directive "@${f}" may not be used on ${g}.`,{nodes:a}))}}}function O6(e){let t=e[e.length-1];switch("kind"in t||(0,MI.invariant)(!1),t.kind){case En.Kind.OPERATION_DEFINITION:return D6(t.operation);case En.Kind.FIELD:return Xn.DirectiveLocation.FIELD;case En.Kind.FRAGMENT_SPREAD:return Xn.DirectiveLocation.FRAGMENT_SPREAD;case En.Kind.INLINE_FRAGMENT:return Xn.DirectiveLocation.INLINE_FRAGMENT;case En.Kind.FRAGMENT_DEFINITION:return Xn.DirectiveLocation.FRAGMENT_DEFINITION;case En.Kind.VARIABLE_DEFINITION:return Xn.DirectiveLocation.VARIABLE_DEFINITION;case En.Kind.SCHEMA_DEFINITION:case En.Kind.SCHEMA_EXTENSION:return Xn.DirectiveLocation.SCHEMA;case En.Kind.SCALAR_TYPE_DEFINITION:case En.Kind.SCALAR_TYPE_EXTENSION:return Xn.DirectiveLocation.SCALAR;case En.Kind.OBJECT_TYPE_DEFINITION:case En.Kind.OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.OBJECT;case En.Kind.FIELD_DEFINITION:return Xn.DirectiveLocation.FIELD_DEFINITION;case En.Kind.INTERFACE_TYPE_DEFINITION:case En.Kind.INTERFACE_TYPE_EXTENSION:return Xn.DirectiveLocation.INTERFACE;case En.Kind.UNION_TYPE_DEFINITION:case En.Kind.UNION_TYPE_EXTENSION:return Xn.DirectiveLocation.UNION;case En.Kind.ENUM_TYPE_DEFINITION:case En.Kind.ENUM_TYPE_EXTENSION:return Xn.DirectiveLocation.ENUM;case En.Kind.ENUM_VALUE_DEFINITION:return Xn.DirectiveLocation.ENUM_VALUE;case En.Kind.INPUT_OBJECT_TYPE_DEFINITION:case En.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.INPUT_OBJECT;case En.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,MI.invariant)(!1),n.kind===En.Kind.INPUT_OBJECT_TYPE_DEFINITION?Xn.DirectiveLocation.INPUT_FIELD_DEFINITION:Xn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,MI.invariant)(!1,"Unexpected kind: "+(0,_6.inspect)(t.kind))}}function D6(e){switch(e){case xI.OperationTypeNode.QUERY:return Xn.DirectiveLocation.QUERY;case xI.OperationTypeNode.MUTATION:return Xn.DirectiveLocation.MUTATION;case xI.OperationTypeNode.SUBSCRIPTION:return Xn.DirectiveLocation.SUBSCRIPTION}}});var KI=w(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.KnownFragmentNamesRule=A6;var b6=He();function A6(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new b6.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var QI=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.KnownTypeNamesRule=C6;var R6=Ho(),P6=Wo(),F6=He(),GI=Hu(),w6=Ai(),L6=ba();function C6(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,GI.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,p){let f=a.name.value;if(!n[f]&&!r[f]){var y;let g=(y=p[2])!==null&&y!==void 0?y:c,v=g!=null&&B6(g);if(v&&DF.includes(f))return;let P=(0,P6.suggestionList)(f,v?DF.concat(i):i);e.reportError(new F6.GraphQLError(`Unknown type "${f}".`+(0,R6.didYouMean)(P),{nodes:a}))}}}}var DF=[...L6.specifiedScalarTypes,...w6.introspectionTypes].map(e=>e.name);function B6(e){return"kind"in e&&((0,GI.isTypeSystemDefinitionNode)(e)||(0,GI.isTypeSystemExtensionNode)(e))}});var JI=w(YI=>{"use strict";m();T();N();Object.defineProperty(YI,"__esModule",{value:!0});YI.LoneAnonymousOperationRule=M6;var U6=He(),k6=Pt();function M6(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===k6.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new U6.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var zI=w(HI=>{"use strict";m();T();N();Object.defineProperty(HI,"__esModule",{value:!0});HI.LoneSchemaDefinitionRule=x6;var bF=He();function x6(e){var t,n,r;let i=e.getSchema(),a=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new bF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new bF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var XI=w(WI=>{"use strict";m();T();N();Object.defineProperty(WI,"__esModule",{value:!0});WI.MaxIntrospectionDepthRule=j6;var q6=He(),AF=Pt(),V6=3;function j6(e){function t(n,r=Object.create(null),i=0){if(n.kind===AF.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===AF.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=V6))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new q6.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var eg=w(ZI=>{"use strict";m();T();N();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.NoFragmentCyclesRule=G6;var K6=He();function G6(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let p=l.name.value,f=r[p];if(n.push(l),f===void 0){let y=e.getFragment(p);y&&i(y)}else{let y=n.slice(f),g=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new K6.GraphQLError(`Cannot spread fragment "${p}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.NoUndefinedVariablesRule=Q6;var $6=He();function Q6(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let a=i.name.value;t[a]!==!0&&e.reportError(new $6.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.NoUnusedFragmentsRule=J6;var Y6=He();function J6(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new Y6.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.NoUnusedVariablesRule=z6;var H6=He();function z6(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new H6.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.sortValueNode=og;var W6=Ld(),ds=Pt();function og(e){switch(e.kind){case ds.Kind.OBJECT:return Y(x({},e),{fields:X6(e.fields)});case ds.Kind.LIST:return Y(x({},e),{values:e.values.map(og)});case ds.Kind.INT:case ds.Kind.FLOAT:case ds.Kind.STRING:case ds.Kind.BOOLEAN:case ds.Kind.NULL:case ds.Kind.ENUM:case ds.Kind.VARIABLE:return e}}function X6(e){return e.map(t=>Y(x({},t),{value:og(t.value)})).sort((t,n)=>(0,W6.naturalCompare)(t.name.value,n.name.value))}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.OverlappingFieldsCanBeMergedRule=nz;var RF=Yt(),Z6=He(),lg=Pt(),ez=ci(),$r=Ft(),tz=cg(),FF=Aa();function wF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+wF(n)).join(" and "):e}function nz(e){let t=new fg,n=new Map;return{SelectionSet(r){let i=rz(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let p=wF(o);e.reportError(new Z6.GraphQLError(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function rz(e,t,n,r,i){let a=[],[o,c]=Zm(e,t,r,i);if(az(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:PF(o)===PF(c)})}function PF(e){return(0,ez.print)((0,tz.sortValueNode)(e))}function dg(e,t){return(0,$r.isListType)(e)?(0,$r.isListType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isListType)(t)?!0:(0,$r.isNonNullType)(e)?(0,$r.isNonNullType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isNonNullType)(t)?!0:(0,$r.isLeafType)(e)||(0,$r.isLeafType)(t)?e!==t:!1}function Zm(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);CF(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function pg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,FF.typeFromAST)(e.getSchema(),n.typeCondition);return Zm(e,t,i,n.selectionSet)}function CF(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case lg.Kind.FIELD:{let o=a.name.value,c;((0,$r.isObjectType)(t)||(0,$r.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case lg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case lg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,FF.typeFromAST)(e.getSchema(),o):t;CF(e,c,a.selectionSet,r,i);break}}}function oz(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var fg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.PossibleFragmentSpreadsRule=cz;var eN=Yt(),BF=He(),Eg=Ft(),UF=xd(),uz=Aa();function cz(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Eg.isCompositeType)(n)&&(0,Eg.isCompositeType)(r)&&!(0,UF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,eN.inspect)(r),a=(0,eN.inspect)(n);e.reportError(new BF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=lz(e,n),i=e.getParentType();if(r&&i&&!(0,UF.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,eN.inspect)(i),o=(0,eN.inspect)(r);e.reportError(new BF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function lz(e,t){let n=e.getFragment(t);if(n){let r=(0,uz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Eg.isCompositeType)(r))return r}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.PossibleTypeExtensionsRule=mz;var dz=Ho(),MF=Yt(),xF=yr(),pz=Wo(),kF=He(),In=Pt(),fz=Hu(),rl=Ft();function mz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,fz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=Nz[o.kind]:c&&(l=Tz(c)),l){if(l!==i.kind){let p=Ez(i.kind);e.reportError(new kF.GraphQLError(`Cannot extend non-${p} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let p=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=(0,pz.suggestionList)(a,p);e.reportError(new kF.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,dz.didYouMean)(f),{nodes:i.name}))}}}var Nz={[In.Kind.SCALAR_TYPE_DEFINITION]:In.Kind.SCALAR_TYPE_EXTENSION,[In.Kind.OBJECT_TYPE_DEFINITION]:In.Kind.OBJECT_TYPE_EXTENSION,[In.Kind.INTERFACE_TYPE_DEFINITION]:In.Kind.INTERFACE_TYPE_EXTENSION,[In.Kind.UNION_TYPE_DEFINITION]:In.Kind.UNION_TYPE_EXTENSION,[In.Kind.ENUM_TYPE_DEFINITION]:In.Kind.ENUM_TYPE_EXTENSION,[In.Kind.INPUT_OBJECT_TYPE_DEFINITION]:In.Kind.INPUT_OBJECT_TYPE_EXTENSION};function Tz(e){if((0,rl.isScalarType)(e))return In.Kind.SCALAR_TYPE_EXTENSION;if((0,rl.isObjectType)(e))return In.Kind.OBJECT_TYPE_EXTENSION;if((0,rl.isInterfaceType)(e))return In.Kind.INTERFACE_TYPE_EXTENSION;if((0,rl.isUnionType)(e))return In.Kind.UNION_TYPE_EXTENSION;if((0,rl.isEnumType)(e))return In.Kind.ENUM_TYPE_EXTENSION;if((0,rl.isInputObjectType)(e))return In.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,xF.invariant)(!1,"Unexpected type: "+(0,MF.inspect)(e))}function Ez(e){switch(e){case In.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case In.Kind.OBJECT_TYPE_EXTENSION:return"object";case In.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case In.Kind.UNION_TYPE_EXTENSION:return"union";case In.Kind.ENUM_TYPE_EXTENSION:return"enum";case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,xF.invariant)(!1,"Unexpected kind: "+(0,MF.inspect)(e))}}});var vg=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.ProvidedRequiredArgumentsOnDirectivesRule=GF;tN.ProvidedRequiredArgumentsRule=Iz;var VF=Yt(),qF=zo(),jF=He(),KF=Pt(),hz=ci(),_g=Ft(),yz=Gr();function Iz(e){return Y(x({},GF(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,_g.isRequiredArgument)(a)){let o=(0,VF.inspect)(a.type);e.reportError(new jF.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function GF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:yz.specifiedDirectives;for(let c of i)n[c.name]=(0,qF.keyMap)(c.args.filter(_g.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===KF.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,qF.keyMap)(l.filter(gz),p=>p.name.value)}return{Directive:{leave(c){let l=c.name.value,p=n[l];if(p){var f;let y=(f=c.arguments)!==null&&f!==void 0?f:[],g=new Set(y.map(v=>v.name.value));for(let[v,P]of Object.entries(p))if(!g.has(v)){let k=(0,_g.isType)(P.type)?(0,VF.inspect)(P.type):(0,hz.print)(P.type);e.reportError(new jF.GraphQLError(`Directive "@${l}" argument "${v}" of type "${k}" is required, but it was not provided.`,{nodes:c}))}}}}}}function gz(e){return e.type.kind===KF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Og=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.ScalarLeafsRule=_z;var $F=Yt(),QF=He(),YF=Ft();function _z(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,YF.isLeafType)((0,YF.getNamedType)(n))){if(r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var bg=w(Dg=>{"use strict";m();T();N();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.printPathArray=vz;function vz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Xd=w(nN=>{"use strict";m();T();N();Object.defineProperty(nN,"__esModule",{value:!0});nN.addPath=Sz;nN.pathToArray=Oz;function Sz(e,t,n){return{prev:e,key:t,typename:n}}function Oz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Rg=w(Ag=>{"use strict";m();T();N();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.coerceInputValue=wz;var Dz=Ho(),rN=Yt(),bz=yr(),Az=$m(),Rz=va(),ea=Xd(),Pz=bg(),Fz=Wo(),ps=He(),Zd=Ft();function wz(e,t,n=Lz){return ep(e,t,n,void 0)}function Lz(e,t,n){let r="Invalid value "+(0,rN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,Pz.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function ep(e,t,n,r){if((0,Zd.isNonNullType)(t)){if(e!=null)return ep(e,t.ofType,n,r);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected non-nullable type "${(0,rN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Zd.isListType)(t)){let i=t.ofType;return(0,Az.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,ea.addPath)(r,o,void 0);return ep(a,i,n,c)}):[ep(e,i,n,r)]}if((0,Zd.isInputObjectType)(t)){if(!(0,Rz.isObjectLike)(e)){n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Zd.isNonNullType)(o.type)){let l=(0,rN.inspect)(o.type);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=ep(c,o.type,n,(0,ea.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,Fz.suggestionList)(o,Object.keys(t.getFields()));n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,Dz.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,ea.pathToArray)(r).concat(c),l,new ps.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Zd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ps.GraphQLError?n((0,ea.pathToArray)(r),e,a):n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,bz.invariant)(!1,"Unexpected input type: "+(0,rN.inspect)(t))}});var np=w(Pg=>{"use strict";m();T();N();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.valueFromAST=tp;var Cz=Yt(),Bz=yr(),Uz=zo(),il=Pt(),zu=Ft();function tp(e,t,n){if(e){if(e.kind===il.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,zu.isNonNullType)(t)?void 0:i}if((0,zu.isNonNullType)(t))return e.kind===il.Kind.NULL?void 0:tp(e,t.ofType,n);if(e.kind===il.Kind.NULL)return null;if((0,zu.isListType)(t)){let r=t.ofType;if(e.kind===il.Kind.LIST){let a=[];for(let o of e.values)if(JF(o,n)){if((0,zu.isNonNullType)(r))return;a.push(null)}else{let c=tp(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=tp(e,r,n);return i===void 0?void 0:[i]}if((0,zu.isInputObjectType)(t)){if(e.kind!==il.Kind.OBJECT)return;let r=Object.create(null),i=(0,Uz.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||JF(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,zu.isNonNullType)(a.type))return;continue}let c=tp(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,zu.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,Bz.invariant)(!1,"Unexpected input type: "+(0,Cz.inspect)(t))}}function JF(e,t){return e.kind===il.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ol=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.getArgumentValues=XF;rp.getDirectiveValues=Kz;rp.getVariableValues=Vz;var al=Yt(),kz=zo(),Mz=bg(),fs=He(),HF=Pt(),zF=ci(),sl=Ft(),xz=Rg(),qz=Aa(),WF=np();function Vz(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=jz(e,t,n,c=>{if(a!=null&&i.length>=a)throw new fs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function jz(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,qz.typeFromAST)(e,a.type);if(!(0,sl.isInputType)(c)){let p=(0,zF.print)(a.type);r(new fs.GraphQLError(`Variable "$${o}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!ZF(n,o)){if(a.defaultValue)i[o]=(0,WF.valueFromAST)(a.defaultValue,c);else if((0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of required type "${p}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of non-null type "${p}" must not be null.`,{nodes:a}));continue}i[o]=(0,xz.coerceInputValue)(l,c,(p,f,y)=>{let g=`Variable "$${o}" got invalid value `+(0,al.inspect)(f);p.length>0&&(g+=` at "${o}${(0,Mz.printPathArray)(p)}"`),r(new fs.GraphQLError(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function XF(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,kz.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,p=c.type,f=o[l];if(!f){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was not provided.`,{nodes:t});continue}let y=f.value,g=y.kind===HF.Kind.NULL;if(y.kind===HF.Kind.VARIABLE){let P=y.name.value;if(n==null||!ZF(n,P)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:y});continue}g=n[P]==null}if(g&&(0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of non-null type "${(0,al.inspect)(p)}" must not be null.`,{nodes:y});let v=(0,WF.valueFromAST)(y,p,n);if(v===void 0)throw new fs.GraphQLError(`Argument "${l}" has invalid value ${(0,zF.print)(y)}.`,{nodes:y});i[l]=v}return i}function Kz(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return XF(e,i,n)}function ZF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var sN=w(aN=>{"use strict";m();T();N();Object.defineProperty(aN,"__esModule",{value:!0});aN.collectFields=Qz;aN.collectSubfields=Yz;var Fg=Pt(),Gz=Ft(),ew=Gr(),$z=Aa(),tw=ol();function Qz(e,t,n,r,i){let a=new Map;return iN(e,t,n,r,i,a,new Set),a}function Yz(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&iN(e,t,n,r,c.selectionSet,a,o);return a}function iN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Fg.Kind.FIELD:{if(!wg(n,c))continue;let l=Jz(c),p=a.get(l);p!==void 0?p.push(c):a.set(l,[c]);break}case Fg.Kind.INLINE_FRAGMENT:{if(!wg(n,c)||!nw(e,c,r))continue;iN(e,t,n,r,c.selectionSet,a,o);break}case Fg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!wg(n,c))continue;o.add(l);let p=t[l];if(!p||!nw(e,p,r))continue;iN(e,t,n,r,p.selectionSet,a,o);break}}}function wg(e,t){let n=(0,tw.getDirectiveValues)(ew.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,tw.getDirectiveValues)(ew.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function nw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,$z.typeFromAST)(e,r);return i===n?!0:(0,Gz.isAbstractType)(i)?e.isSubType(i,n):!1}function Jz(e){return e.alias?e.alias.value:e.name.value}});var Cg=w(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.SingleFieldSubscriptionsRule=Wz;var rw=He(),Hz=Pt(),zz=sN();function Wz(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let p of o.definitions)p.kind===Hz.Kind.FRAGMENT_DEFINITION&&(c[p.name.value]=p);let l=(0,zz.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let p of l.values())p[0].name.value.startsWith("__")&&e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var oN=w(Bg=>{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.groupBy=Xz;function Xz(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var kg=w(Ug=>{"use strict";m();T();N();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.UniqueArgumentDefinitionNamesRule=t4;var Zz=oN(),e4=He();function t4(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let p=l.name.value,f=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${p}`,f)}return!1}function n(r,i){let a=(0,Zz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new e4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var xg=w(Mg=>{"use strict";m();T();N();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.UniqueArgumentNamesRule=i4;var n4=oN(),r4=He();function i4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,n4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new r4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var Vg=w(qg=>{"use strict";m();T();N();Object.defineProperty(qg,"__esModule",{value:!0});qg.UniqueDirectiveNamesRule=a4;var iw=He();function a4(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new iw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new iw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.UniqueDirectivesPerLocationRule=u4;var s4=He(),jg=Pt(),aw=Hu(),o4=Gr();function u4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():o4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===jg.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===jg.Kind.SCHEMA_DEFINITION||c.kind===jg.Kind.SCHEMA_EXTENSION)l=a;else if((0,aw.isTypeDefinitionNode)(c)||(0,aw.isTypeExtensionNode)(c)){let p=c.name.value;l=o[p],l===void 0&&(o[p]=l=Object.create(null))}else l=Object.create(null);for(let p of c.directives){let f=p.name.value;t[f]&&(l[f]?e.reportError(new s4.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],p]})):l[f]=p)}}}}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.UniqueEnumValueNamesRule=l4;var sw=He(),c4=Ft();function l4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value,g=n[c];(0,c4.isEnumType)(g)&&g.getValue(y)?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.UniqueFieldDefinitionNamesRule=d4;var ow=He(),Yg=Ft();function d4(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(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value;p4(n[c],y)?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}function p4(e,t){return(0,Yg.isObjectType)(e)||(0,Yg.isInterfaceType)(e)||(0,Yg.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.UniqueFragmentNamesRule=m4;var f4=He();function m4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new f4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.UniqueInputFieldNamesRule=E4;var N4=yr(),T4=He();function E4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,N4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new T4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var t_=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.UniqueOperationNamesRule=y4;var h4=He();function y4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new h4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var r_=w(n_=>{"use strict";m();T();N();Object.defineProperty(n_,"__esModule",{value:!0});n_.UniqueOperationTypesRule=I4;var uw=He();function I4(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(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let p=l.operation,f=n[p];r[p]?e.reportError(new uw.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new uw.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[f,l]})):n[p]=l}return!1}}});var a_=w(i_=>{"use strict";m();T();N();Object.defineProperty(i_,"__esModule",{value:!0});i_.UniqueTypeNamesRule=g4;var cw=He();function g4(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new cw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new cw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueVariableNamesRule=S4;var _4=oN(),v4=He();function S4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,_4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new v4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var l_=w(c_=>{"use strict";m();T();N();Object.defineProperty(c_,"__esModule",{value:!0});c_.ValuesOfCorrectTypeRule=A4;var O4=Ho(),ip=Yt(),D4=zo(),b4=Wo(),Pa=He(),u_=Pt(),uN=ci(),Ra=Ft();function A4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Ra.getNullableType)(e.getParentInputType());if(!(0,Ra.isListType)(r))return Wu(e,n),!1},ObjectValue(n){let r=(0,Ra.getNamedType)(e.getInputType());if(!(0,Ra.isInputObjectType)(r))return Wu(e,n),!1;let i=(0,D4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Ra.isRequiredInputField)(a)){let c=(0,ip.inspect)(a.type);e.reportError(new Pa.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&R4(e,n,r,i,t)},ObjectField(n){let r=(0,Ra.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ra.isInputObjectType)(r)){let a=(0,b4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Pa.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,O4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Ra.isNonNullType)(r)&&e.reportError(new Pa.GraphQLError(`Expected value of type "${(0,ip.inspect)(r)}", found ${(0,uN.print)(n)}.`,{nodes:n}))},EnumValue:n=>Wu(e,n),IntValue:n=>Wu(e,n),FloatValue:n=>Wu(e,n),StringValue:n=>Wu(e,n),BooleanValue:n=>Wu(e,n)}}function Wu(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ra.getNamedType)(n);if(!(0,Ra.isLeafType)(r)){let i=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${i}", found ${(0,uN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ip.inspect)(n);i instanceof Pa.GraphQLError?e.reportError(i):e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function R4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new Pa.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,p=!l||l.kind===u_.Kind.NULL,f=(l==null?void 0:l.kind)===u_.Kind.VARIABLE;if(p){e.reportError(new Pa.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let y=l.name.value;i[y].type.kind!==u_.Kind.NON_NULL_TYPE&&e.reportError(new Pa.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var p_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.VariablesAreInputTypesRule=C4;var P4=He(),F4=ci(),w4=Ft(),L4=Aa();function C4(e){return{VariableDefinition(t){let n=(0,L4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,w4.isInputType)(n)){let r=t.variable.name.value,i=(0,F4.print)(t.type);e.reportError(new P4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var m_=w(f_=>{"use strict";m();T();N();Object.defineProperty(f_,"__esModule",{value:!0});f_.VariablesInAllowedPositionRule=M4;var lw=Yt(),B4=He(),U4=Pt(),dw=Ft(),pw=xd(),k4=Aa();function M4(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let p=e.getSchema(),f=(0,k4.typeFromAST)(p,l.type);if(f&&!x4(p,f,l.defaultValue,a,o)){let y=(0,lw.inspect)(f),g=(0,lw.inspect)(a);e.reportError(new B4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${g}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function x4(e,t,n,r,i){if((0,dw.isNonNullType)(r)&&!(0,dw.isNonNullType)(t)){if(!(n!=null&&n.kind!==U4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,pw.isTypeSubTypeOf)(e,t,c)}return(0,pw.isTypeSubTypeOf)(e,t,r)}});var N_=w(tu=>{"use strict";m();T();N();Object.defineProperty(tu,"__esModule",{value:!0});tu.specifiedSDLRules=tu.specifiedRules=tu.recommendedRules=void 0;var q4=wI(),V4=CI(),j4=UI(),fw=kI(),mw=VI(),K4=KI(),Nw=QI(),G4=JI(),$4=zI(),Q4=XI(),Y4=eg(),J4=ng(),H4=ig(),z4=sg(),W4=Tg(),X4=yg(),Z4=gg(),Tw=vg(),eW=Og(),tW=Cg(),nW=kg(),Ew=xg(),rW=Vg(),hw=Gg(),iW=Qg(),aW=Hg(),sW=Wg(),yw=Zg(),oW=t_(),uW=r_(),cW=a_(),lW=o_(),dW=l_(),pW=p_(),fW=m_(),Iw=Object.freeze([Q4.MaxIntrospectionDepthRule]);tu.recommendedRules=Iw;var mW=Object.freeze([q4.ExecutableDefinitionsRule,oW.UniqueOperationNamesRule,G4.LoneAnonymousOperationRule,tW.SingleFieldSubscriptionsRule,Nw.KnownTypeNamesRule,j4.FragmentsOnCompositeTypesRule,pW.VariablesAreInputTypesRule,eW.ScalarLeafsRule,V4.FieldsOnCorrectTypeRule,sW.UniqueFragmentNamesRule,K4.KnownFragmentNamesRule,H4.NoUnusedFragmentsRule,X4.PossibleFragmentSpreadsRule,Y4.NoFragmentCyclesRule,lW.UniqueVariableNamesRule,J4.NoUndefinedVariablesRule,z4.NoUnusedVariablesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,fw.KnownArgumentNamesRule,Ew.UniqueArgumentNamesRule,dW.ValuesOfCorrectTypeRule,Tw.ProvidedRequiredArgumentsRule,fW.VariablesInAllowedPositionRule,W4.OverlappingFieldsCanBeMergedRule,yw.UniqueInputFieldNamesRule,...Iw]);tu.specifiedRules=mW;var NW=Object.freeze([$4.LoneSchemaDefinitionRule,uW.UniqueOperationTypesRule,cW.UniqueTypeNamesRule,iW.UniqueEnumValueNamesRule,aW.UniqueFieldDefinitionNamesRule,nW.UniqueArgumentDefinitionNamesRule,rW.UniqueDirectiveNamesRule,Nw.KnownTypeNamesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,Z4.PossibleTypeExtensionsRule,fw.KnownArgumentNamesOnDirectivesRule,Ew.UniqueArgumentNamesRule,yw.UniqueInputFieldNamesRule,Tw.ProvidedRequiredArgumentsOnDirectivesRule]);tu.specifiedSDLRules=NW});var h_=w(nu=>{"use strict";m();T();N();Object.defineProperty(nu,"__esModule",{value:!0});nu.ValidationContext=nu.SDLValidationContext=nu.ASTValidationContext=void 0;var gw=Pt(),TW=Vu(),_w=Hm(),ap=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===gw.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let a of i.selections)a.kind===gw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};nu.ASTValidationContext=ap;var T_=class extends ap{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};nu.SDLValidationContext=T_;var E_=class extends ap{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new _w.TypeInfo(this._schema);(0,TW.visit)(t,(0,_w.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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()}};nu.ValidationContext=E_});var cl=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.assertValidSDL=gW;ul.assertValidSDLExtension=_W;ul.validate=IW;ul.validateSDL=y_;var EW=Lr(),hW=He(),cN=Vu(),yW=Hd(),vw=Hm(),Sw=N_(),Ow=h_();function IW(e,t,n=Sw.specifiedRules,r,i=new vw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,EW.devAssert)(!1,"Must provide document."),(0,yW.assertValidSchema)(e);let c=Object.freeze({}),l=[],p=new Ow.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new hW.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),f=(0,cN.visitInParallel)(n.map(y=>y(p)));try{(0,cN.visit)(t,(0,vw.visitWithTypeInfo)(i,f))}catch(y){if(y!==c)throw y}return l}function y_(e,t,n=Sw.specifiedSDLRules){let r=[],i=new Ow.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,cN.visit)(e,(0,cN.visitInParallel)(a)),r}function gW(e){let t=y_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var SI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new KH.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function YH(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Rn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,gr.inspect)(n)}.`,(r=vI(t,_I.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Rn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,gr.inspect)(i)}.`,(a=vI(t,_I.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Rn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,gr.inspect)(o)}.`,(c=vI(t,_I.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function vI(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function JH(e){for(let n of e.schema.getDirectives()){if(!(0,iF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,gr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Ju(e,n);for(let r of n.args)if(Ju(e,r),(0,Rn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,gr.inspect)(r.type)}.`,r.astNode),(0,Rn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[OI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ju(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function HH(e){let t=n6(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Rn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,gr.inspect)(r)}.`,r.astNode);continue}(0,GH.isIntrospectionType)(r)||Ju(e,r),(0,Rn.isObjectType)(r)||(0,Rn.isInterfaceType)(r)?(tF(e,r),nF(e,r)):(0,Rn.isUnionType)(r)?XH(e,r):(0,Rn.isEnumType)(r)?ZH(e,r):(0,Rn.isInputObjectType)(r)&&(e6(e,r),t(r))}}function tF(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Ju(e,o),!(0,Rn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,gr.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Ju(e,c),!(0,Rn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,gr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Rn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[OI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function nF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Rn.isInterfaceType)(r)){e.reportError(`Type ${(0,gr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,gr.inspect)(r)}.`,Jd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Jd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Jd(t,r));continue}n[r.name]=!0,WH(e,t,r),zH(e,t,r)}}function zH(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let p=l.name,f=r[p];if(!f){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,eF.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${p} expects type ${(0,gr.inspect)(l.type)} but ${t.name}.${p} is type ${(0,gr.inspect)(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let g=y.name,v=f.args.find(F=>F.name===g);if(!v){e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expected but ${t.name}.${p} does not provide it.`,[y.astNode,f.astNode]);continue}if(!(0,eF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expects type ${(0,gr.inspect)(y.type)} but ${t.name}.${p}(${g}:) is type ${(0,gr.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of f.args){let g=y.name;!l.args.find(F=>F.name===g)&&(0,Rn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${g} that is missing from the Interface field ${n.name}.${p}.`,[y.astNode,l.astNode])}}}function WH(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}.`,[...Jd(n,i),...Jd(t,n)])}function XH(e,t){let n=t.getTypes();n.length===0&&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.`,rF(t,i.name));continue}r[i.name]=!0,(0,Rn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,gr.inspect)(i)}.`,rF(t,String(i)))}}function ZH(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Ju(e,r)}function e6(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of n){if(Ju(e,a),!(0,Rn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,gr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Rn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[OI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&t6(t,a,e)}}function t6(e,t,n){if((0,Rn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function n6(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Rn.isNonNullType)(c.type)&&(0,Rn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,p=r[l.name];if(n.push(c),p===void 0)i(l);else{let f=n.slice(p),y=f.map(g=>g.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,f.map(g=>g.astNode))}n.pop()}r[a.name]=void 0}}function Jd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function rF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function OI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===iF.GraphQLDeprecatedDirective.name)}});var Aa=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.typeFromAST=bI;var DI=Pt(),sF=Ft();function bI(e,t){switch(t.kind){case DI.Kind.LIST_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLList(n)}case DI.Kind.NON_NULL_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLNonNull(n)}case DI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Hm=w(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.TypeInfo=void 0;zd.visitWithTypeInfo=a6;var r6=Sa(),Pn=Pt(),oF=Vu(),Fn=Ft(),nl=Ai(),uF=Aa(),RI=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:i6,n&&((0,Fn.isInputType)(n)&&this._inputTypeStack.push(n),(0,Fn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Fn.isOutputType)(n)&&this._typeStack.push(n))}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(t){let n=this._schema;switch(t.kind){case Pn.Kind.SELECTION_SET:{let i=(0,Fn.getNamedType)(this.getType());this._parentTypeStack.push((0,Fn.isCompositeType)(i)?i:void 0);break}case Pn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Fn.isOutputType)(o)?o:void 0);break}case Pn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Pn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Fn.isObjectType)(i)?i:void 0);break}case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,uF.typeFromAST)(n,i):(0,Fn.getNamedType)(this.getType());this._typeStack.push((0,Fn.isOutputType)(a)?a:void 0);break}case Pn.Kind.VARIABLE_DEFINITION:{let i=(0,uF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Fn.isInputType)(i)?i:void 0);break}case Pn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.LIST:{let i=(0,Fn.getNullableType)(this.getInputType()),a=(0,Fn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.OBJECT_FIELD:{let i=(0,Fn.getNamedType)(this.getInputType()),a,o;(0,Fn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.ENUM:{let i=(0,Fn.getNamedType)(this.getInputType()),a;(0,Fn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Pn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Pn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Pn.Kind.DIRECTIVE:this._directive=null;break;case Pn.Kind.OPERATION_DEFINITION:case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Pn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Pn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.LIST:case Pn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.ENUM:this._enumValue=null;break;default:}}};zd.TypeInfo=RI;function i6(e,t,n){let r=n.name.value;if(r===nl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return nl.SchemaMetaFieldDef;if(r===nl.TypeMetaFieldDef.name&&e.getQueryType()===t)return nl.TypeMetaFieldDef;if(r===nl.TypeNameMetaFieldDef.name&&(0,Fn.isCompositeType)(t))return nl.TypeNameMetaFieldDef;if((0,Fn.isObjectType)(t)||(0,Fn.isInterfaceType)(t))return t.getFields()[r]}function a6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,oF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,r6.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,oF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var Hu=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isConstValueNode=PI;Ri.isDefinitionNode=s6;Ri.isExecutableDefinitionNode=cF;Ri.isSelectionNode=o6;Ri.isTypeDefinitionNode=pF;Ri.isTypeExtensionNode=mF;Ri.isTypeNode=u6;Ri.isTypeSystemDefinitionNode=dF;Ri.isTypeSystemExtensionNode=fF;Ri.isValueNode=lF;var wt=Pt();function s6(e){return cF(e)||dF(e)||fF(e)}function cF(e){return e.kind===wt.Kind.OPERATION_DEFINITION||e.kind===wt.Kind.FRAGMENT_DEFINITION}function o6(e){return e.kind===wt.Kind.FIELD||e.kind===wt.Kind.FRAGMENT_SPREAD||e.kind===wt.Kind.INLINE_FRAGMENT}function lF(e){return e.kind===wt.Kind.VARIABLE||e.kind===wt.Kind.INT||e.kind===wt.Kind.FLOAT||e.kind===wt.Kind.STRING||e.kind===wt.Kind.BOOLEAN||e.kind===wt.Kind.NULL||e.kind===wt.Kind.ENUM||e.kind===wt.Kind.LIST||e.kind===wt.Kind.OBJECT}function PI(e){return lF(e)&&(e.kind===wt.Kind.LIST?e.values.some(PI):e.kind===wt.Kind.OBJECT?e.fields.some(t=>PI(t.value)):e.kind!==wt.Kind.VARIABLE)}function u6(e){return e.kind===wt.Kind.NAMED_TYPE||e.kind===wt.Kind.LIST_TYPE||e.kind===wt.Kind.NON_NULL_TYPE}function dF(e){return e.kind===wt.Kind.SCHEMA_DEFINITION||pF(e)||e.kind===wt.Kind.DIRECTIVE_DEFINITION}function pF(e){return e.kind===wt.Kind.SCALAR_TYPE_DEFINITION||e.kind===wt.Kind.OBJECT_TYPE_DEFINITION||e.kind===wt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===wt.Kind.UNION_TYPE_DEFINITION||e.kind===wt.Kind.ENUM_TYPE_DEFINITION||e.kind===wt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function fF(e){return e.kind===wt.Kind.SCHEMA_EXTENSION||mF(e)}function mF(e){return e.kind===wt.Kind.SCALAR_TYPE_EXTENSION||e.kind===wt.Kind.OBJECT_TYPE_EXTENSION||e.kind===wt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===wt.Kind.UNION_TYPE_EXTENSION||e.kind===wt.Kind.ENUM_TYPE_EXTENSION||e.kind===wt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var wI=w(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.ExecutableDefinitionsRule=d6;var c6=He(),NF=Pt(),l6=Hu();function d6(e){return{Document(t){for(let n of t.definitions)if(!(0,l6.isExecutableDefinitionNode)(n)){let r=n.kind===NF.Kind.SCHEMA_DEFINITION||n.kind===NF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new c6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var CI=w(LI=>{"use strict";m();T();N();Object.defineProperty(LI,"__esModule",{value:!0});LI.FieldsOnCorrectTypeRule=N6;var TF=Ho(),p6=Ld(),f6=Wo(),m6=He(),Wd=Ft();function N6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,TF.didYouMean)("to use an inline fragment on",T6(i,n,a));o===""&&(o=(0,TF.didYouMean)(E6(n,a))),e.reportError(new m6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function T6(e,t,n){if(!(0,Wd.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,Wd.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Wd.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,p6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function E6(e,t){if((0,Wd.isObjectType)(e)||(0,Wd.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,f6.suggestionList)(t,n)}return[]}});var UI=w(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.FragmentsOnCompositeTypesRule=h6;var EF=He(),hF=ci(),yF=Ft(),IF=Aa();function h6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,IF.typeFromAST)(e.getSchema(),n);if(r&&!(0,yF.isCompositeType)(r)){let i=(0,hF.print)(n);e.reportError(new EF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,IF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,yF.isCompositeType)(n)){let r=(0,hF.print)(t.typeCondition);e.reportError(new EF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var kI=w(zm=>{"use strict";m();T();N();Object.defineProperty(zm,"__esModule",{value:!0});zm.KnownArgumentNamesOnDirectivesRule=SF;zm.KnownArgumentNamesRule=g6;var gF=Ho(),_F=Wo(),vF=He(),y6=Pt(),I6=Gr();function g6(e){return Y(x({},SF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,_F.suggestionList)(a,o);e.reportError(new vF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,gF.didYouMean)(c),{nodes:t}))}}})}function SF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():I6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===y6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let p of o.arguments){let f=p.name.value;if(!l.includes(f)){let y=(0,_F.suggestionList)(f,l);e.reportError(new vF.GraphQLError(`Unknown argument "${f}" on directive "@${c}".`+(0,gF.didYouMean)(y),{nodes:p}))}}return!1}}}});var VI=w(qI=>{"use strict";m();T();N();Object.defineProperty(qI,"__esModule",{value:!0});qI.KnownDirectivesRule=S6;var _6=Yt(),MI=yr(),OF=He(),xI=Sa(),Xn=Hc(),En=Pt(),v6=Gr();function S6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():v6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===En.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,p){let f=a.name.value,y=t[f];if(!y){e.reportError(new OF.GraphQLError(`Unknown directive "@${f}".`,{nodes:a}));return}let g=O6(p);g&&!y.includes(g)&&e.reportError(new OF.GraphQLError(`Directive "@${f}" may not be used on ${g}.`,{nodes:a}))}}}function O6(e){let t=e[e.length-1];switch("kind"in t||(0,MI.invariant)(!1),t.kind){case En.Kind.OPERATION_DEFINITION:return D6(t.operation);case En.Kind.FIELD:return Xn.DirectiveLocation.FIELD;case En.Kind.FRAGMENT_SPREAD:return Xn.DirectiveLocation.FRAGMENT_SPREAD;case En.Kind.INLINE_FRAGMENT:return Xn.DirectiveLocation.INLINE_FRAGMENT;case En.Kind.FRAGMENT_DEFINITION:return Xn.DirectiveLocation.FRAGMENT_DEFINITION;case En.Kind.VARIABLE_DEFINITION:return Xn.DirectiveLocation.VARIABLE_DEFINITION;case En.Kind.SCHEMA_DEFINITION:case En.Kind.SCHEMA_EXTENSION:return Xn.DirectiveLocation.SCHEMA;case En.Kind.SCALAR_TYPE_DEFINITION:case En.Kind.SCALAR_TYPE_EXTENSION:return Xn.DirectiveLocation.SCALAR;case En.Kind.OBJECT_TYPE_DEFINITION:case En.Kind.OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.OBJECT;case En.Kind.FIELD_DEFINITION:return Xn.DirectiveLocation.FIELD_DEFINITION;case En.Kind.INTERFACE_TYPE_DEFINITION:case En.Kind.INTERFACE_TYPE_EXTENSION:return Xn.DirectiveLocation.INTERFACE;case En.Kind.UNION_TYPE_DEFINITION:case En.Kind.UNION_TYPE_EXTENSION:return Xn.DirectiveLocation.UNION;case En.Kind.ENUM_TYPE_DEFINITION:case En.Kind.ENUM_TYPE_EXTENSION:return Xn.DirectiveLocation.ENUM;case En.Kind.ENUM_VALUE_DEFINITION:return Xn.DirectiveLocation.ENUM_VALUE;case En.Kind.INPUT_OBJECT_TYPE_DEFINITION:case En.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.INPUT_OBJECT;case En.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,MI.invariant)(!1),n.kind===En.Kind.INPUT_OBJECT_TYPE_DEFINITION?Xn.DirectiveLocation.INPUT_FIELD_DEFINITION:Xn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,MI.invariant)(!1,"Unexpected kind: "+(0,_6.inspect)(t.kind))}}function D6(e){switch(e){case xI.OperationTypeNode.QUERY:return Xn.DirectiveLocation.QUERY;case xI.OperationTypeNode.MUTATION:return Xn.DirectiveLocation.MUTATION;case xI.OperationTypeNode.SUBSCRIPTION:return Xn.DirectiveLocation.SUBSCRIPTION}}});var KI=w(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.KnownFragmentNamesRule=A6;var b6=He();function A6(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new b6.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var QI=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.KnownTypeNamesRule=C6;var R6=Ho(),P6=Wo(),F6=He(),GI=Hu(),w6=Ai(),L6=ba();function C6(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,GI.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,p){let f=a.name.value;if(!n[f]&&!r[f]){var y;let g=(y=p[2])!==null&&y!==void 0?y:c,v=g!=null&&B6(g);if(v&&DF.includes(f))return;let F=(0,P6.suggestionList)(f,v?DF.concat(i):i);e.reportError(new F6.GraphQLError(`Unknown type "${f}".`+(0,R6.didYouMean)(F),{nodes:a}))}}}}var DF=[...L6.specifiedScalarTypes,...w6.introspectionTypes].map(e=>e.name);function B6(e){return"kind"in e&&((0,GI.isTypeSystemDefinitionNode)(e)||(0,GI.isTypeSystemExtensionNode)(e))}});var JI=w(YI=>{"use strict";m();T();N();Object.defineProperty(YI,"__esModule",{value:!0});YI.LoneAnonymousOperationRule=M6;var U6=He(),k6=Pt();function M6(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===k6.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new U6.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var zI=w(HI=>{"use strict";m();T();N();Object.defineProperty(HI,"__esModule",{value:!0});HI.LoneSchemaDefinitionRule=x6;var bF=He();function x6(e){var t,n,r;let i=e.getSchema(),a=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new bF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new bF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var XI=w(WI=>{"use strict";m();T();N();Object.defineProperty(WI,"__esModule",{value:!0});WI.MaxIntrospectionDepthRule=j6;var q6=He(),AF=Pt(),V6=3;function j6(e){function t(n,r=Object.create(null),i=0){if(n.kind===AF.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===AF.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=V6))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new q6.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var eg=w(ZI=>{"use strict";m();T();N();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.NoFragmentCyclesRule=G6;var K6=He();function G6(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let p=l.name.value,f=r[p];if(n.push(l),f===void 0){let y=e.getFragment(p);y&&i(y)}else{let y=n.slice(f),g=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new K6.GraphQLError(`Cannot spread fragment "${p}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.NoUndefinedVariablesRule=Q6;var $6=He();function Q6(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let a=i.name.value;t[a]!==!0&&e.reportError(new $6.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.NoUnusedFragmentsRule=J6;var Y6=He();function J6(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new Y6.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.NoUnusedVariablesRule=z6;var H6=He();function z6(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new H6.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.sortValueNode=og;var W6=Ld(),ds=Pt();function og(e){switch(e.kind){case ds.Kind.OBJECT:return Y(x({},e),{fields:X6(e.fields)});case ds.Kind.LIST:return Y(x({},e),{values:e.values.map(og)});case ds.Kind.INT:case ds.Kind.FLOAT:case ds.Kind.STRING:case ds.Kind.BOOLEAN:case ds.Kind.NULL:case ds.Kind.ENUM:case ds.Kind.VARIABLE:return e}}function X6(e){return e.map(t=>Y(x({},t),{value:og(t.value)})).sort((t,n)=>(0,W6.naturalCompare)(t.name.value,n.name.value))}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.OverlappingFieldsCanBeMergedRule=nz;var RF=Yt(),Z6=He(),lg=Pt(),ez=ci(),$r=Ft(),tz=cg(),FF=Aa();function wF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+wF(n)).join(" and "):e}function nz(e){let t=new fg,n=new Map;return{SelectionSet(r){let i=rz(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let p=wF(o);e.reportError(new Z6.GraphQLError(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function rz(e,t,n,r,i){let a=[],[o,c]=Zm(e,t,r,i);if(az(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:PF(o)===PF(c)})}function PF(e){return(0,ez.print)((0,tz.sortValueNode)(e))}function dg(e,t){return(0,$r.isListType)(e)?(0,$r.isListType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isListType)(t)?!0:(0,$r.isNonNullType)(e)?(0,$r.isNonNullType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isNonNullType)(t)?!0:(0,$r.isLeafType)(e)||(0,$r.isLeafType)(t)?e!==t:!1}function Zm(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);CF(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function pg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,FF.typeFromAST)(e.getSchema(),n.typeCondition);return Zm(e,t,i,n.selectionSet)}function CF(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case lg.Kind.FIELD:{let o=a.name.value,c;((0,$r.isObjectType)(t)||(0,$r.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case lg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case lg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,FF.typeFromAST)(e.getSchema(),o):t;CF(e,c,a.selectionSet,r,i);break}}}function oz(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var fg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.PossibleFragmentSpreadsRule=cz;var eN=Yt(),BF=He(),Eg=Ft(),UF=xd(),uz=Aa();function cz(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Eg.isCompositeType)(n)&&(0,Eg.isCompositeType)(r)&&!(0,UF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,eN.inspect)(r),a=(0,eN.inspect)(n);e.reportError(new BF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=lz(e,n),i=e.getParentType();if(r&&i&&!(0,UF.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,eN.inspect)(i),o=(0,eN.inspect)(r);e.reportError(new BF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function lz(e,t){let n=e.getFragment(t);if(n){let r=(0,uz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Eg.isCompositeType)(r))return r}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.PossibleTypeExtensionsRule=mz;var dz=Ho(),MF=Yt(),xF=yr(),pz=Wo(),kF=He(),In=Pt(),fz=Hu(),rl=Ft();function mz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,fz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=Nz[o.kind]:c&&(l=Tz(c)),l){if(l!==i.kind){let p=Ez(i.kind);e.reportError(new kF.GraphQLError(`Cannot extend non-${p} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let p=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=(0,pz.suggestionList)(a,p);e.reportError(new kF.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,dz.didYouMean)(f),{nodes:i.name}))}}}var Nz={[In.Kind.SCALAR_TYPE_DEFINITION]:In.Kind.SCALAR_TYPE_EXTENSION,[In.Kind.OBJECT_TYPE_DEFINITION]:In.Kind.OBJECT_TYPE_EXTENSION,[In.Kind.INTERFACE_TYPE_DEFINITION]:In.Kind.INTERFACE_TYPE_EXTENSION,[In.Kind.UNION_TYPE_DEFINITION]:In.Kind.UNION_TYPE_EXTENSION,[In.Kind.ENUM_TYPE_DEFINITION]:In.Kind.ENUM_TYPE_EXTENSION,[In.Kind.INPUT_OBJECT_TYPE_DEFINITION]:In.Kind.INPUT_OBJECT_TYPE_EXTENSION};function Tz(e){if((0,rl.isScalarType)(e))return In.Kind.SCALAR_TYPE_EXTENSION;if((0,rl.isObjectType)(e))return In.Kind.OBJECT_TYPE_EXTENSION;if((0,rl.isInterfaceType)(e))return In.Kind.INTERFACE_TYPE_EXTENSION;if((0,rl.isUnionType)(e))return In.Kind.UNION_TYPE_EXTENSION;if((0,rl.isEnumType)(e))return In.Kind.ENUM_TYPE_EXTENSION;if((0,rl.isInputObjectType)(e))return In.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,xF.invariant)(!1,"Unexpected type: "+(0,MF.inspect)(e))}function Ez(e){switch(e){case In.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case In.Kind.OBJECT_TYPE_EXTENSION:return"object";case In.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case In.Kind.UNION_TYPE_EXTENSION:return"union";case In.Kind.ENUM_TYPE_EXTENSION:return"enum";case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,xF.invariant)(!1,"Unexpected kind: "+(0,MF.inspect)(e))}}});var vg=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.ProvidedRequiredArgumentsOnDirectivesRule=GF;tN.ProvidedRequiredArgumentsRule=Iz;var VF=Yt(),qF=zo(),jF=He(),KF=Pt(),hz=ci(),_g=Ft(),yz=Gr();function Iz(e){return Y(x({},GF(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,_g.isRequiredArgument)(a)){let o=(0,VF.inspect)(a.type);e.reportError(new jF.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function GF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:yz.specifiedDirectives;for(let c of i)n[c.name]=(0,qF.keyMap)(c.args.filter(_g.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===KF.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,qF.keyMap)(l.filter(gz),p=>p.name.value)}return{Directive:{leave(c){let l=c.name.value,p=n[l];if(p){var f;let y=(f=c.arguments)!==null&&f!==void 0?f:[],g=new Set(y.map(v=>v.name.value));for(let[v,F]of Object.entries(p))if(!g.has(v)){let k=(0,_g.isType)(F.type)?(0,VF.inspect)(F.type):(0,hz.print)(F.type);e.reportError(new jF.GraphQLError(`Directive "@${l}" argument "${v}" of type "${k}" is required, but it was not provided.`,{nodes:c}))}}}}}}function gz(e){return e.type.kind===KF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Og=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.ScalarLeafsRule=_z;var $F=Yt(),QF=He(),YF=Ft();function _z(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,YF.isLeafType)((0,YF.getNamedType)(n))){if(r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var bg=w(Dg=>{"use strict";m();T();N();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.printPathArray=vz;function vz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Xd=w(nN=>{"use strict";m();T();N();Object.defineProperty(nN,"__esModule",{value:!0});nN.addPath=Sz;nN.pathToArray=Oz;function Sz(e,t,n){return{prev:e,key:t,typename:n}}function Oz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Rg=w(Ag=>{"use strict";m();T();N();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.coerceInputValue=wz;var Dz=Ho(),rN=Yt(),bz=yr(),Az=$m(),Rz=va(),ea=Xd(),Pz=bg(),Fz=Wo(),ps=He(),Zd=Ft();function wz(e,t,n=Lz){return ep(e,t,n,void 0)}function Lz(e,t,n){let r="Invalid value "+(0,rN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,Pz.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function ep(e,t,n,r){if((0,Zd.isNonNullType)(t)){if(e!=null)return ep(e,t.ofType,n,r);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected non-nullable type "${(0,rN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Zd.isListType)(t)){let i=t.ofType;return(0,Az.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,ea.addPath)(r,o,void 0);return ep(a,i,n,c)}):[ep(e,i,n,r)]}if((0,Zd.isInputObjectType)(t)){if(!(0,Rz.isObjectLike)(e)){n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Zd.isNonNullType)(o.type)){let l=(0,rN.inspect)(o.type);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=ep(c,o.type,n,(0,ea.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,Fz.suggestionList)(o,Object.keys(t.getFields()));n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,Dz.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,ea.pathToArray)(r).concat(c),l,new ps.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Zd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ps.GraphQLError?n((0,ea.pathToArray)(r),e,a):n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,bz.invariant)(!1,"Unexpected input type: "+(0,rN.inspect)(t))}});var np=w(Pg=>{"use strict";m();T();N();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.valueFromAST=tp;var Cz=Yt(),Bz=yr(),Uz=zo(),il=Pt(),zu=Ft();function tp(e,t,n){if(e){if(e.kind===il.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,zu.isNonNullType)(t)?void 0:i}if((0,zu.isNonNullType)(t))return e.kind===il.Kind.NULL?void 0:tp(e,t.ofType,n);if(e.kind===il.Kind.NULL)return null;if((0,zu.isListType)(t)){let r=t.ofType;if(e.kind===il.Kind.LIST){let a=[];for(let o of e.values)if(JF(o,n)){if((0,zu.isNonNullType)(r))return;a.push(null)}else{let c=tp(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=tp(e,r,n);return i===void 0?void 0:[i]}if((0,zu.isInputObjectType)(t)){if(e.kind!==il.Kind.OBJECT)return;let r=Object.create(null),i=(0,Uz.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||JF(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,zu.isNonNullType)(a.type))return;continue}let c=tp(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,zu.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,Bz.invariant)(!1,"Unexpected input type: "+(0,Cz.inspect)(t))}}function JF(e,t){return e.kind===il.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ol=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.getArgumentValues=XF;rp.getDirectiveValues=Kz;rp.getVariableValues=Vz;var al=Yt(),kz=zo(),Mz=bg(),fs=He(),HF=Pt(),zF=ci(),sl=Ft(),xz=Rg(),qz=Aa(),WF=np();function Vz(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=jz(e,t,n,c=>{if(a!=null&&i.length>=a)throw new fs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function jz(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,qz.typeFromAST)(e,a.type);if(!(0,sl.isInputType)(c)){let p=(0,zF.print)(a.type);r(new fs.GraphQLError(`Variable "$${o}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!ZF(n,o)){if(a.defaultValue)i[o]=(0,WF.valueFromAST)(a.defaultValue,c);else if((0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of required type "${p}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of non-null type "${p}" must not be null.`,{nodes:a}));continue}i[o]=(0,xz.coerceInputValue)(l,c,(p,f,y)=>{let g=`Variable "$${o}" got invalid value `+(0,al.inspect)(f);p.length>0&&(g+=` at "${o}${(0,Mz.printPathArray)(p)}"`),r(new fs.GraphQLError(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function XF(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,kz.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,p=c.type,f=o[l];if(!f){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was not provided.`,{nodes:t});continue}let y=f.value,g=y.kind===HF.Kind.NULL;if(y.kind===HF.Kind.VARIABLE){let F=y.name.value;if(n==null||!ZF(n,F)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:y});continue}g=n[F]==null}if(g&&(0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of non-null type "${(0,al.inspect)(p)}" must not be null.`,{nodes:y});let v=(0,WF.valueFromAST)(y,p,n);if(v===void 0)throw new fs.GraphQLError(`Argument "${l}" has invalid value ${(0,zF.print)(y)}.`,{nodes:y});i[l]=v}return i}function Kz(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return XF(e,i,n)}function ZF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var sN=w(aN=>{"use strict";m();T();N();Object.defineProperty(aN,"__esModule",{value:!0});aN.collectFields=Qz;aN.collectSubfields=Yz;var Fg=Pt(),Gz=Ft(),ew=Gr(),$z=Aa(),tw=ol();function Qz(e,t,n,r,i){let a=new Map;return iN(e,t,n,r,i,a,new Set),a}function Yz(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&iN(e,t,n,r,c.selectionSet,a,o);return a}function iN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Fg.Kind.FIELD:{if(!wg(n,c))continue;let l=Jz(c),p=a.get(l);p!==void 0?p.push(c):a.set(l,[c]);break}case Fg.Kind.INLINE_FRAGMENT:{if(!wg(n,c)||!nw(e,c,r))continue;iN(e,t,n,r,c.selectionSet,a,o);break}case Fg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!wg(n,c))continue;o.add(l);let p=t[l];if(!p||!nw(e,p,r))continue;iN(e,t,n,r,p.selectionSet,a,o);break}}}function wg(e,t){let n=(0,tw.getDirectiveValues)(ew.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,tw.getDirectiveValues)(ew.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function nw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,$z.typeFromAST)(e,r);return i===n?!0:(0,Gz.isAbstractType)(i)?e.isSubType(i,n):!1}function Jz(e){return e.alias?e.alias.value:e.name.value}});var Cg=w(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.SingleFieldSubscriptionsRule=Wz;var rw=He(),Hz=Pt(),zz=sN();function Wz(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let p of o.definitions)p.kind===Hz.Kind.FRAGMENT_DEFINITION&&(c[p.name.value]=p);let l=(0,zz.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let p of l.values())p[0].name.value.startsWith("__")&&e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var oN=w(Bg=>{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.groupBy=Xz;function Xz(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var kg=w(Ug=>{"use strict";m();T();N();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.UniqueArgumentDefinitionNamesRule=t4;var Zz=oN(),e4=He();function t4(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let p=l.name.value,f=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${p}`,f)}return!1}function n(r,i){let a=(0,Zz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new e4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var xg=w(Mg=>{"use strict";m();T();N();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.UniqueArgumentNamesRule=i4;var n4=oN(),r4=He();function i4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,n4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new r4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var Vg=w(qg=>{"use strict";m();T();N();Object.defineProperty(qg,"__esModule",{value:!0});qg.UniqueDirectiveNamesRule=a4;var iw=He();function a4(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new iw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new iw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.UniqueDirectivesPerLocationRule=u4;var s4=He(),jg=Pt(),aw=Hu(),o4=Gr();function u4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():o4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===jg.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===jg.Kind.SCHEMA_DEFINITION||c.kind===jg.Kind.SCHEMA_EXTENSION)l=a;else if((0,aw.isTypeDefinitionNode)(c)||(0,aw.isTypeExtensionNode)(c)){let p=c.name.value;l=o[p],l===void 0&&(o[p]=l=Object.create(null))}else l=Object.create(null);for(let p of c.directives){let f=p.name.value;t[f]&&(l[f]?e.reportError(new s4.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],p]})):l[f]=p)}}}}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.UniqueEnumValueNamesRule=l4;var sw=He(),c4=Ft();function l4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value,g=n[c];(0,c4.isEnumType)(g)&&g.getValue(y)?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.UniqueFieldDefinitionNamesRule=d4;var ow=He(),Yg=Ft();function d4(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(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value;p4(n[c],y)?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}function p4(e,t){return(0,Yg.isObjectType)(e)||(0,Yg.isInterfaceType)(e)||(0,Yg.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.UniqueFragmentNamesRule=m4;var f4=He();function m4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new f4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.UniqueInputFieldNamesRule=E4;var N4=yr(),T4=He();function E4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,N4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new T4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var t_=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.UniqueOperationNamesRule=y4;var h4=He();function y4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new h4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var r_=w(n_=>{"use strict";m();T();N();Object.defineProperty(n_,"__esModule",{value:!0});n_.UniqueOperationTypesRule=I4;var uw=He();function I4(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(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let p=l.operation,f=n[p];r[p]?e.reportError(new uw.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new uw.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[f,l]})):n[p]=l}return!1}}});var a_=w(i_=>{"use strict";m();T();N();Object.defineProperty(i_,"__esModule",{value:!0});i_.UniqueTypeNamesRule=g4;var cw=He();function g4(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new cw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new cw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueVariableNamesRule=S4;var _4=oN(),v4=He();function S4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,_4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new v4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var l_=w(c_=>{"use strict";m();T();N();Object.defineProperty(c_,"__esModule",{value:!0});c_.ValuesOfCorrectTypeRule=A4;var O4=Ho(),ip=Yt(),D4=zo(),b4=Wo(),Pa=He(),u_=Pt(),uN=ci(),Ra=Ft();function A4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Ra.getNullableType)(e.getParentInputType());if(!(0,Ra.isListType)(r))return Wu(e,n),!1},ObjectValue(n){let r=(0,Ra.getNamedType)(e.getInputType());if(!(0,Ra.isInputObjectType)(r))return Wu(e,n),!1;let i=(0,D4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Ra.isRequiredInputField)(a)){let c=(0,ip.inspect)(a.type);e.reportError(new Pa.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&R4(e,n,r,i,t)},ObjectField(n){let r=(0,Ra.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ra.isInputObjectType)(r)){let a=(0,b4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Pa.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,O4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Ra.isNonNullType)(r)&&e.reportError(new Pa.GraphQLError(`Expected value of type "${(0,ip.inspect)(r)}", found ${(0,uN.print)(n)}.`,{nodes:n}))},EnumValue:n=>Wu(e,n),IntValue:n=>Wu(e,n),FloatValue:n=>Wu(e,n),StringValue:n=>Wu(e,n),BooleanValue:n=>Wu(e,n)}}function Wu(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ra.getNamedType)(n);if(!(0,Ra.isLeafType)(r)){let i=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${i}", found ${(0,uN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ip.inspect)(n);i instanceof Pa.GraphQLError?e.reportError(i):e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function R4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new Pa.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,p=!l||l.kind===u_.Kind.NULL,f=(l==null?void 0:l.kind)===u_.Kind.VARIABLE;if(p){e.reportError(new Pa.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let y=l.name.value;i[y].type.kind!==u_.Kind.NON_NULL_TYPE&&e.reportError(new Pa.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var p_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.VariablesAreInputTypesRule=C4;var P4=He(),F4=ci(),w4=Ft(),L4=Aa();function C4(e){return{VariableDefinition(t){let n=(0,L4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,w4.isInputType)(n)){let r=t.variable.name.value,i=(0,F4.print)(t.type);e.reportError(new P4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var m_=w(f_=>{"use strict";m();T();N();Object.defineProperty(f_,"__esModule",{value:!0});f_.VariablesInAllowedPositionRule=M4;var lw=Yt(),B4=He(),U4=Pt(),dw=Ft(),pw=xd(),k4=Aa();function M4(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let p=e.getSchema(),f=(0,k4.typeFromAST)(p,l.type);if(f&&!x4(p,f,l.defaultValue,a,o)){let y=(0,lw.inspect)(f),g=(0,lw.inspect)(a);e.reportError(new B4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${g}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function x4(e,t,n,r,i){if((0,dw.isNonNullType)(r)&&!(0,dw.isNonNullType)(t)){if(!(n!=null&&n.kind!==U4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,pw.isTypeSubTypeOf)(e,t,c)}return(0,pw.isTypeSubTypeOf)(e,t,r)}});var N_=w(tu=>{"use strict";m();T();N();Object.defineProperty(tu,"__esModule",{value:!0});tu.specifiedSDLRules=tu.specifiedRules=tu.recommendedRules=void 0;var q4=wI(),V4=CI(),j4=UI(),fw=kI(),mw=VI(),K4=KI(),Nw=QI(),G4=JI(),$4=zI(),Q4=XI(),Y4=eg(),J4=ng(),H4=ig(),z4=sg(),W4=Tg(),X4=yg(),Z4=gg(),Tw=vg(),eW=Og(),tW=Cg(),nW=kg(),Ew=xg(),rW=Vg(),hw=Gg(),iW=Qg(),aW=Hg(),sW=Wg(),yw=Zg(),oW=t_(),uW=r_(),cW=a_(),lW=o_(),dW=l_(),pW=p_(),fW=m_(),Iw=Object.freeze([Q4.MaxIntrospectionDepthRule]);tu.recommendedRules=Iw;var mW=Object.freeze([q4.ExecutableDefinitionsRule,oW.UniqueOperationNamesRule,G4.LoneAnonymousOperationRule,tW.SingleFieldSubscriptionsRule,Nw.KnownTypeNamesRule,j4.FragmentsOnCompositeTypesRule,pW.VariablesAreInputTypesRule,eW.ScalarLeafsRule,V4.FieldsOnCorrectTypeRule,sW.UniqueFragmentNamesRule,K4.KnownFragmentNamesRule,H4.NoUnusedFragmentsRule,X4.PossibleFragmentSpreadsRule,Y4.NoFragmentCyclesRule,lW.UniqueVariableNamesRule,J4.NoUndefinedVariablesRule,z4.NoUnusedVariablesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,fw.KnownArgumentNamesRule,Ew.UniqueArgumentNamesRule,dW.ValuesOfCorrectTypeRule,Tw.ProvidedRequiredArgumentsRule,fW.VariablesInAllowedPositionRule,W4.OverlappingFieldsCanBeMergedRule,yw.UniqueInputFieldNamesRule,...Iw]);tu.specifiedRules=mW;var NW=Object.freeze([$4.LoneSchemaDefinitionRule,uW.UniqueOperationTypesRule,cW.UniqueTypeNamesRule,iW.UniqueEnumValueNamesRule,aW.UniqueFieldDefinitionNamesRule,nW.UniqueArgumentDefinitionNamesRule,rW.UniqueDirectiveNamesRule,Nw.KnownTypeNamesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,Z4.PossibleTypeExtensionsRule,fw.KnownArgumentNamesOnDirectivesRule,Ew.UniqueArgumentNamesRule,yw.UniqueInputFieldNamesRule,Tw.ProvidedRequiredArgumentsOnDirectivesRule]);tu.specifiedSDLRules=NW});var h_=w(nu=>{"use strict";m();T();N();Object.defineProperty(nu,"__esModule",{value:!0});nu.ValidationContext=nu.SDLValidationContext=nu.ASTValidationContext=void 0;var gw=Pt(),TW=Vu(),_w=Hm(),ap=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===gw.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let a of i.selections)a.kind===gw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};nu.ASTValidationContext=ap;var T_=class extends ap{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};nu.SDLValidationContext=T_;var E_=class extends ap{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new _w.TypeInfo(this._schema);(0,TW.visit)(t,(0,_w.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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()}};nu.ValidationContext=E_});var cl=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.assertValidSDL=gW;ul.assertValidSDLExtension=_W;ul.validate=IW;ul.validateSDL=y_;var EW=Lr(),hW=He(),cN=Vu(),yW=Hd(),vw=Hm(),Sw=N_(),Ow=h_();function IW(e,t,n=Sw.specifiedRules,r,i=new vw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,EW.devAssert)(!1,"Must provide document."),(0,yW.assertValidSchema)(e);let c=Object.freeze({}),l=[],p=new Ow.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new hW.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),f=(0,cN.visitInParallel)(n.map(y=>y(p)));try{(0,cN.visit)(t,(0,vw.visitWithTypeInfo)(i,f))}catch(y){if(y!==c)throw y}return l}function y_(e,t,n=Sw.specifiedSDLRules){let r=[],i=new Ow.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,cN.visit)(e,(0,cN.visitInParallel)(a)),r}function gW(e){let t=y_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function _W(e,t){let n=y_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var Dw=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.memoize3=vW;function vW(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var bw=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.promiseForObject=SW;function SW(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})}});var Aw=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.promiseReduce=DW;var OW=dm();function DW(e,t,n){let r=n;for(let i of e)r=(0,OW.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var Rw=w(S_=>{"use strict";m();T();N();Object.defineProperty(S_,"__esModule",{value:!0});S_.toError=AW;var bW=Yt();function AW(e){return e instanceof Error?e:new v_(e)}var v_=class extends Error{constructor(t){super("Unexpected error value: "+(0,bW.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var lN=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.locatedError=FW;var RW=Rw(),PW=He();function FW(e,t,n){var r;let i=(0,RW.toError)(e);return wW(i)?i:new PW.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function wW(e){return Array.isArray(e.path)}});var op=w(Fi=>{"use strict";m();T();N();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.assertValidExecutionArguments=kw;Fi.buildExecutionContext=Mw;Fi.buildResolveInfo=qw;Fi.defaultTypeResolver=Fi.defaultFieldResolver=void 0;Fi.execute=Uw;Fi.executeSync=xW;Fi.getFieldDef=jw;var b_=Lr(),Xu=Yt(),LW=yr(),CW=$m(),P_=va(),ta=dm(),BW=Dw(),Zu=Xd(),Pw=bw(),UW=Aw(),Pi=He(),pN=lN(),D_=Sa(),Fw=Pt(),ru=Ft(),ll=Ai(),kW=Hd(),Cw=sN(),Bw=ol(),MW=(0,BW.memoize3)((e,t,n)=>(0,Cw.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function Uw(e){arguments.length<2||(0,b_.devAssert)(!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;kw(t,n,r);let a=Mw(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=qW(a,o,i);return(0,ta.isPromise)(c)?c.then(l=>dN(l,a.errors),l=>(a.errors.push(l),dN(null,a.errors))):dN(c,a.errors)}catch(o){return a.errors.push(o),dN(null,a.errors)}}function xW(e){let t=Uw(e);if((0,ta.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function dN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function kw(e,t,n){t||(0,b_.devAssert)(!1,"Must provide document."),(0,kW.assertValidSchema)(e),n==null||(0,P_.isObjectLike)(n)||(0,b_.devAssert)(!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 Mw(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:y}=e,g,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case Fw.Kind.OPERATION_DEFINITION:if(l==null){if(g!==void 0)return[new Pi.GraphQLError("Must provide operation name if query contains multiple operations.")];g=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(g=K);break;case Fw.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!g)return l!=null?[new Pi.GraphQLError(`Unknown operation named "${l}".`)]:[new Pi.GraphQLError("Must provide an operation.")];let P=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],k=(0,Bw.getVariableValues)(r,P,c!=null?c:{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:g,variableValues:k.coerced,fieldResolver:p!=null?p:R_,typeResolver:f!=null?f:Vw,subscribeFieldResolver:y!=null?y:R_,errors:[]}}function qW(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Pi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Cw.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case D_.OperationTypeNode.QUERY:return fN(e,r,n,a,i);case D_.OperationTypeNode.MUTATION:return VW(e,r,n,a,i);case D_.OperationTypeNode.SUBSCRIPTION:return fN(e,r,n,a,i)}}function VW(e,t,n,r,i){return(0,UW.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,Zu.addPath)(r,o,t.name),p=xw(e,t,n,c,l);return p===void 0?a:(0,ta.isPromise)(p)?p.then(f=>(a[o]=f,a)):(a[o]=p,a)},Object.create(null))}function fN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let p=(0,Zu.addPath)(r,c,t.name),f=xw(e,t,n,l,p);f!==void 0&&(a[c]=f,(0,ta.isPromise)(f)&&(o=!0))}}catch(c){if(o)return(0,Pw.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,Pw.promiseForObject)(a):a}function xw(e,t,n,r,i){var a;let o=jw(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,p=qw(e,o,r,t,i);try{let f=(0,Bw.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,g=l(n,f,y,p),v;return(0,ta.isPromise)(g)?v=g.then(P=>sp(e,c,r,p,i,P)):v=sp(e,c,r,p,i,g),(0,ta.isPromise)(v)?v.then(void 0,P=>{let k=(0,pN.locatedError)(P,r,(0,Zu.pathToArray)(i));return mN(k,c,e)}):v}catch(f){let y=(0,pN.locatedError)(f,r,(0,Zu.pathToArray)(i));return mN(y,c,e)}}function qw(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 mN(e,t,n){if((0,ru.isNonNullType)(t))throw e;return n.errors.push(e),null}function sp(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,ru.isNonNullType)(t)){let o=sp(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,ru.isListType)(t))return jW(e,t,n,r,i,a);if((0,ru.isLeafType)(t))return KW(t,a);if((0,ru.isAbstractType)(t))return GW(e,t,n,r,i,a);if((0,ru.isObjectType)(t))return A_(e,t,n,r,i,a);(0,LW.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Xu.inspect)(t))}function jW(e,t,n,r,i,a){if(!(0,CW.isIterableObject)(a))throw new Pi.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(p,f)=>{let y=(0,Zu.addPath)(i,f,void 0);try{let g;return(0,ta.isPromise)(p)?g=p.then(v=>sp(e,o,n,r,y,v)):g=sp(e,o,n,r,y,p),(0,ta.isPromise)(g)?(c=!0,g.then(void 0,v=>{let P=(0,pN.locatedError)(v,n,(0,Zu.pathToArray)(y));return mN(P,o,e)})):g}catch(g){let v=(0,pN.locatedError)(g,n,(0,Zu.pathToArray)(y));return mN(v,o,e)}});return c?Promise.all(l):l}function KW(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Xu.inspect)(e)}.serialize(${(0,Xu.inspect)(t)})\` to return non-nullable value, returned: ${(0,Xu.inspect)(n)}`);return n}function GW(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,p=c(a,l,r,t);return(0,ta.isPromise)(p)?p.then(f=>A_(e,ww(f,e,t,n,r,a),n,r,i,a)):A_(e,ww(p,e,t,n,r,a),n,r,i,a)}function ww(e,t,n,r,i,a){if(e==null)throw new Pi.GraphQLError(`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((0,ru.isObjectType)(e))throw new Pi.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Pi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Xu.inspect)(a)}, received "${(0,Xu.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,ru.isObjectType)(o))throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Pi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function A_(e,t,n,r,i,a){let o=MW(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,ta.isPromise)(c))return c.then(l=>{if(!l)throw Lw(t,a,n);return fN(e,t,a,i,o)});if(!c)throw Lw(t,a,n)}return fN(e,t,a,i,o)}function Lw(e,t,n){return new Pi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Xu.inspect)(t)}.`,{nodes:n})}var Vw=function(e,t,n,r){if((0,P_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(NN,"__esModule",{value:!0});NN.graphql=WW;NN.graphqlSync=XW;var $W=Lr(),QW=dm(),YW=Wc(),JW=Hd(),HW=cl(),zW=op();function WW(e){return new Promise(t=>t(Kw(e)))}function XW(e){let t=Kw(e);if((0,QW.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Kw(e){arguments.length<2||(0,$W.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l}=e,p=(0,JW.validateSchema)(t);if(p.length>0)return{errors:p};let f;try{f=(0,YW.parse)(n)}catch(g){return{errors:[g]}}let y=(0,HW.validate)(t,f);return y.length>0?{errors:y}:(0,zW.execute)({schema:t,document:f,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var Yw=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return na.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return ms.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return na.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return na.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return tt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return ms.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return ms.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return na.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return tt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return ms.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return tt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return tt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return tt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return tt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return na.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return tt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return F_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return na.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return na.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return ms.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return tt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Qr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Qr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Qr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Qr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Qr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Qr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Qr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Qr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Qr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Qr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return tt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return tt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return na.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return tt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return Qw.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return tt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return tt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return tt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return tt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return tt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return Qw.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return tt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return tt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return tt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return tt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return tt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return tt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return F_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return tt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return tt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return $w.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return tt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return tt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return tt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Qr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return tt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return tt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return na.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return tt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return tt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return tt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return tt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Qr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return tt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return tt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return tt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return tt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return tt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return tt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return tt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return tt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return tt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return tt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return F_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return na.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ms.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return tt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return tt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return tt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return tt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return tt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return na.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return ms.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return $w.validateSchema}});var F_=Yu(),tt=Ft(),na=Gr(),ms=ba(),Qr=Ai(),$w=Hd(),Qw=Cd()});var Hw=w(Ct=>{"use strict";m();T();N();Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"BREAK",{enumerable:!0,get:function(){return up.BREAK}});Object.defineProperty(Ct,"DirectiveLocation",{enumerable:!0,get:function(){return a8.DirectiveLocation}});Object.defineProperty(Ct,"Kind",{enumerable:!0,get:function(){return t8.Kind}});Object.defineProperty(Ct,"Lexer",{enumerable:!0,get:function(){return r8.Lexer}});Object.defineProperty(Ct,"Location",{enumerable:!0,get:function(){return w_.Location}});Object.defineProperty(Ct,"OperationTypeNode",{enumerable:!0,get:function(){return w_.OperationTypeNode}});Object.defineProperty(Ct,"Source",{enumerable:!0,get:function(){return ZW.Source}});Object.defineProperty(Ct,"Token",{enumerable:!0,get:function(){return w_.Token}});Object.defineProperty(Ct,"TokenKind",{enumerable:!0,get:function(){return n8.TokenKind}});Object.defineProperty(Ct,"getEnterLeaveForKind",{enumerable:!0,get:function(){return up.getEnterLeaveForKind}});Object.defineProperty(Ct,"getLocation",{enumerable:!0,get:function(){return e8.getLocation}});Object.defineProperty(Ct,"getVisitFn",{enumerable:!0,get:function(){return up.getVisitFn}});Object.defineProperty(Ct,"isConstValueNode",{enumerable:!0,get:function(){return Fa.isConstValueNode}});Object.defineProperty(Ct,"isDefinitionNode",{enumerable:!0,get:function(){return Fa.isDefinitionNode}});Object.defineProperty(Ct,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Fa.isExecutableDefinitionNode}});Object.defineProperty(Ct,"isSelectionNode",{enumerable:!0,get:function(){return Fa.isSelectionNode}});Object.defineProperty(Ct,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeDefinitionNode}});Object.defineProperty(Ct,"isTypeExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeExtensionNode}});Object.defineProperty(Ct,"isTypeNode",{enumerable:!0,get:function(){return Fa.isTypeNode}});Object.defineProperty(Ct,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemDefinitionNode}});Object.defineProperty(Ct,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemExtensionNode}});Object.defineProperty(Ct,"isValueNode",{enumerable:!0,get:function(){return Fa.isValueNode}});Object.defineProperty(Ct,"parse",{enumerable:!0,get:function(){return TN.parse}});Object.defineProperty(Ct,"parseConstValue",{enumerable:!0,get:function(){return TN.parseConstValue}});Object.defineProperty(Ct,"parseType",{enumerable:!0,get:function(){return TN.parseType}});Object.defineProperty(Ct,"parseValue",{enumerable:!0,get:function(){return TN.parseValue}});Object.defineProperty(Ct,"print",{enumerable:!0,get:function(){return i8.print}});Object.defineProperty(Ct,"printLocation",{enumerable:!0,get:function(){return Jw.printLocation}});Object.defineProperty(Ct,"printSourceLocation",{enumerable:!0,get:function(){return Jw.printSourceLocation}});Object.defineProperty(Ct,"visit",{enumerable:!0,get:function(){return up.visit}});Object.defineProperty(Ct,"visitInParallel",{enumerable:!0,get:function(){return up.visitInParallel}});var ZW=gm(),e8=pm(),Jw=Ay(),t8=Pt(),n8=Dd(),r8=Em(),TN=Wc(),i8=ci(),up=Vu(),w_=Sa(),Fa=Hu(),a8=Hc()});var zw=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.isAsyncIterable=s8;function s8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Ww=w(C_=>{"use strict";m();T();N();Object.defineProperty(C_,"__esModule",{value:!0});C_.mapAsyncIterator=o8;function o8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return vi(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return vi(this,null,function*(){return r(yield n.next())})},return(){return vi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return vi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var tL=w(EN=>{"use strict";m();T();N();Object.defineProperty(EN,"__esModule",{value:!0});EN.createSourceEventStream=eL;EN.subscribe=m8;var u8=Lr(),c8=Yt(),Zw=zw(),Xw=Xd(),B_=He(),l8=lN(),d8=sN(),cp=op(),p8=Ww(),f8=ol();function m8(t){return vi(this,arguments,function*(e){arguments.length<2||(0,u8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield eL(e);if(!(0,Zw.isAsyncIterable)(n))return n;let r=i=>(0,cp.execute)(Y(x({},e),{rootValue:i}));return(0,p8.mapAsyncIterator)(n,r)})}function N8(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function eL(...e){return vi(this,null,function*(){let t=N8(e),{schema:n,document:r,variableValues:i}=t;(0,cp.assertValidExecutionArguments)(n,r,i);let a=(0,cp.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield T8(a);if(!(0,Zw.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,c8.inspect)(o)}.`);return o}catch(o){if(o instanceof B_.GraphQLError)return{errors:[o]};throw o}})}function T8(e){return vi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new B_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,d8.collectFields)(t,n,i,o,r.selectionSet),[l,p]=[...c.entries()][0],f=(0,cp.getFieldDef)(t,o,p[0]);if(!f){let P=p[0].name.value;throw new B_.GraphQLError(`The subscription field "${P}" is not defined.`,{nodes:p})}let y=(0,Xw.addPath)(void 0,l,o.name),g=(0,cp.buildResolveInfo)(e,f,p,o,y);try{var v;let P=(0,f8.getArgumentValues)(f,p[0],i),k=e.contextValue,G=yield((v=f.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,P,k,g);if(G instanceof Error)throw G;return G}catch(P){throw(0,l8.locatedError)(P,p,(0,Xw.pathToArray)(y))}})}});var rL=w(wi=>{"use strict";m();T();N();Object.defineProperty(wi,"__esModule",{value:!0});Object.defineProperty(wi,"createSourceEventStream",{enumerable:!0,get:function(){return nL.createSourceEventStream}});Object.defineProperty(wi,"defaultFieldResolver",{enumerable:!0,get:function(){return hN.defaultFieldResolver}});Object.defineProperty(wi,"defaultTypeResolver",{enumerable:!0,get:function(){return hN.defaultTypeResolver}});Object.defineProperty(wi,"execute",{enumerable:!0,get:function(){return hN.execute}});Object.defineProperty(wi,"executeSync",{enumerable:!0,get:function(){return hN.executeSync}});Object.defineProperty(wi,"getArgumentValues",{enumerable:!0,get:function(){return U_.getArgumentValues}});Object.defineProperty(wi,"getDirectiveValues",{enumerable:!0,get:function(){return U_.getDirectiveValues}});Object.defineProperty(wi,"getVariableValues",{enumerable:!0,get:function(){return U_.getVariableValues}});Object.defineProperty(wi,"responsePathAsArray",{enumerable:!0,get:function(){return E8.pathToArray}});Object.defineProperty(wi,"subscribe",{enumerable:!0,get:function(){return nL.subscribe}});var E8=Xd(),hN=op(),nL=tL(),U_=ol()});var iL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.NoDeprecatedCustomRule=h8;var k_=yr(),lp=He(),M_=Ft();function h8(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new lp.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,M_.getNamedType)(e.getParentInputType());if((0,M_.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new lp.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,M_.getNamedType)(e.getInputType());i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var aL=w(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.NoSchemaIntrospectionCustomRule=_8;var y8=He(),I8=Ft(),g8=Ai();function _8(e){return{Field(t){let n=(0,I8.getNamedType)(e.getType());n&&(0,g8.isIntrospectionType)(n)&&e.reportError(new y8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var oL=w(dt=>{"use strict";m();T();N();Object.defineProperty(dt,"__esModule",{value:!0});Object.defineProperty(dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return O8.ExecutableDefinitionsRule}});Object.defineProperty(dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return D8.FieldsOnCorrectTypeRule}});Object.defineProperty(dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return b8.FragmentsOnCompositeTypesRule}});Object.defineProperty(dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return A8.KnownArgumentNamesRule}});Object.defineProperty(dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return R8.KnownDirectivesRule}});Object.defineProperty(dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return P8.KnownFragmentNamesRule}});Object.defineProperty(dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return F8.KnownTypeNamesRule}});Object.defineProperty(dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return w8.LoneAnonymousOperationRule}});Object.defineProperty(dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return X8.LoneSchemaDefinitionRule}});Object.defineProperty(dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return W8.MaxIntrospectionDepthRule}});Object.defineProperty(dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return s5.NoDeprecatedCustomRule}});Object.defineProperty(dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return L8.NoFragmentCyclesRule}});Object.defineProperty(dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return o5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return C8.NoUndefinedVariablesRule}});Object.defineProperty(dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return B8.NoUnusedFragmentsRule}});Object.defineProperty(dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return U8.NoUnusedVariablesRule}});Object.defineProperty(dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return k8.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return M8.PossibleFragmentSpreadsRule}});Object.defineProperty(dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return a5.PossibleTypeExtensionsRule}});Object.defineProperty(dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return x8.ProvidedRequiredArgumentsRule}});Object.defineProperty(dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return q8.ScalarLeafsRule}});Object.defineProperty(dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return V8.SingleFieldSubscriptionsRule}});Object.defineProperty(dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return r5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return j8.UniqueArgumentNamesRule}});Object.defineProperty(dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return i5.UniqueDirectiveNamesRule}});Object.defineProperty(dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return K8.UniqueDirectivesPerLocationRule}});Object.defineProperty(dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return t5.UniqueEnumValueNamesRule}});Object.defineProperty(dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return n5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return G8.UniqueFragmentNamesRule}});Object.defineProperty(dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return $8.UniqueInputFieldNamesRule}});Object.defineProperty(dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Q8.UniqueOperationNamesRule}});Object.defineProperty(dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Z8.UniqueOperationTypesRule}});Object.defineProperty(dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return e5.UniqueTypeNamesRule}});Object.defineProperty(dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Y8.UniqueVariableNamesRule}});Object.defineProperty(dt,"ValidationContext",{enumerable:!0,get:function(){return S8.ValidationContext}});Object.defineProperty(dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return J8.ValuesOfCorrectTypeRule}});Object.defineProperty(dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return H8.VariablesAreInputTypesRule}});Object.defineProperty(dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return z8.VariablesInAllowedPositionRule}});Object.defineProperty(dt,"recommendedRules",{enumerable:!0,get:function(){return sL.recommendedRules}});Object.defineProperty(dt,"specifiedRules",{enumerable:!0,get:function(){return sL.specifiedRules}});Object.defineProperty(dt,"validate",{enumerable:!0,get:function(){return v8.validate}});var v8=cl(),S8=h_(),sL=N_(),O8=wI(),D8=CI(),b8=UI(),A8=kI(),R8=VI(),P8=KI(),F8=QI(),w8=JI(),L8=eg(),C8=ng(),B8=ig(),U8=sg(),k8=Tg(),M8=yg(),x8=vg(),q8=Og(),V8=Cg(),j8=xg(),K8=Gg(),G8=Wg(),$8=Zg(),Q8=t_(),Y8=o_(),J8=l_(),H8=p_(),z8=m_(),W8=XI(),X8=zI(),Z8=r_(),e5=a_(),t5=Qg(),n5=Hg(),r5=kg(),i5=Vg(),a5=gg(),s5=iL(),o5=aL()});var uL=w(ec=>{"use strict";m();T();N();Object.defineProperty(ec,"__esModule",{value:!0});Object.defineProperty(ec,"GraphQLError",{enumerable:!0,get:function(){return V_.GraphQLError}});Object.defineProperty(ec,"formatError",{enumerable:!0,get:function(){return V_.formatError}});Object.defineProperty(ec,"locatedError",{enumerable:!0,get:function(){return c5.locatedError}});Object.defineProperty(ec,"printError",{enumerable:!0,get:function(){return V_.printError}});Object.defineProperty(ec,"syntaxError",{enumerable:!0,get:function(){return u5.syntaxError}});var V_=He(),u5=mm(),c5=lN()});var K_=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.getIntrospectionQuery=l5;function l5(e){let t=x({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":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` +`))}});var Dw=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.memoize3=vW;function vW(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var bw=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.promiseForObject=SW;function SW(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})}});var Aw=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.promiseReduce=DW;var OW=dm();function DW(e,t,n){let r=n;for(let i of e)r=(0,OW.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var Rw=w(S_=>{"use strict";m();T();N();Object.defineProperty(S_,"__esModule",{value:!0});S_.toError=AW;var bW=Yt();function AW(e){return e instanceof Error?e:new v_(e)}var v_=class extends Error{constructor(t){super("Unexpected error value: "+(0,bW.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var lN=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.locatedError=FW;var RW=Rw(),PW=He();function FW(e,t,n){var r;let i=(0,RW.toError)(e);return wW(i)?i:new PW.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function wW(e){return Array.isArray(e.path)}});var op=w(Fi=>{"use strict";m();T();N();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.assertValidExecutionArguments=kw;Fi.buildExecutionContext=Mw;Fi.buildResolveInfo=qw;Fi.defaultTypeResolver=Fi.defaultFieldResolver=void 0;Fi.execute=Uw;Fi.executeSync=xW;Fi.getFieldDef=jw;var b_=Lr(),Xu=Yt(),LW=yr(),CW=$m(),P_=va(),ta=dm(),BW=Dw(),Zu=Xd(),Pw=bw(),UW=Aw(),Pi=He(),pN=lN(),D_=Sa(),Fw=Pt(),ru=Ft(),ll=Ai(),kW=Hd(),Cw=sN(),Bw=ol(),MW=(0,BW.memoize3)((e,t,n)=>(0,Cw.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function Uw(e){arguments.length<2||(0,b_.devAssert)(!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;kw(t,n,r);let a=Mw(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=qW(a,o,i);return(0,ta.isPromise)(c)?c.then(l=>dN(l,a.errors),l=>(a.errors.push(l),dN(null,a.errors))):dN(c,a.errors)}catch(o){return a.errors.push(o),dN(null,a.errors)}}function xW(e){let t=Uw(e);if((0,ta.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function dN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function kw(e,t,n){t||(0,b_.devAssert)(!1,"Must provide document."),(0,kW.assertValidSchema)(e),n==null||(0,P_.isObjectLike)(n)||(0,b_.devAssert)(!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 Mw(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:y}=e,g,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case Fw.Kind.OPERATION_DEFINITION:if(l==null){if(g!==void 0)return[new Pi.GraphQLError("Must provide operation name if query contains multiple operations.")];g=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(g=K);break;case Fw.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!g)return l!=null?[new Pi.GraphQLError(`Unknown operation named "${l}".`)]:[new Pi.GraphQLError("Must provide an operation.")];let F=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],k=(0,Bw.getVariableValues)(r,F,c!=null?c:{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:g,variableValues:k.coerced,fieldResolver:p!=null?p:R_,typeResolver:f!=null?f:Vw,subscribeFieldResolver:y!=null?y:R_,errors:[]}}function qW(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Pi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Cw.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case D_.OperationTypeNode.QUERY:return fN(e,r,n,a,i);case D_.OperationTypeNode.MUTATION:return VW(e,r,n,a,i);case D_.OperationTypeNode.SUBSCRIPTION:return fN(e,r,n,a,i)}}function VW(e,t,n,r,i){return(0,UW.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,Zu.addPath)(r,o,t.name),p=xw(e,t,n,c,l);return p===void 0?a:(0,ta.isPromise)(p)?p.then(f=>(a[o]=f,a)):(a[o]=p,a)},Object.create(null))}function fN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let p=(0,Zu.addPath)(r,c,t.name),f=xw(e,t,n,l,p);f!==void 0&&(a[c]=f,(0,ta.isPromise)(f)&&(o=!0))}}catch(c){if(o)return(0,Pw.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,Pw.promiseForObject)(a):a}function xw(e,t,n,r,i){var a;let o=jw(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,p=qw(e,o,r,t,i);try{let f=(0,Bw.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,g=l(n,f,y,p),v;return(0,ta.isPromise)(g)?v=g.then(F=>sp(e,c,r,p,i,F)):v=sp(e,c,r,p,i,g),(0,ta.isPromise)(v)?v.then(void 0,F=>{let k=(0,pN.locatedError)(F,r,(0,Zu.pathToArray)(i));return mN(k,c,e)}):v}catch(f){let y=(0,pN.locatedError)(f,r,(0,Zu.pathToArray)(i));return mN(y,c,e)}}function qw(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 mN(e,t,n){if((0,ru.isNonNullType)(t))throw e;return n.errors.push(e),null}function sp(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,ru.isNonNullType)(t)){let o=sp(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,ru.isListType)(t))return jW(e,t,n,r,i,a);if((0,ru.isLeafType)(t))return KW(t,a);if((0,ru.isAbstractType)(t))return GW(e,t,n,r,i,a);if((0,ru.isObjectType)(t))return A_(e,t,n,r,i,a);(0,LW.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Xu.inspect)(t))}function jW(e,t,n,r,i,a){if(!(0,CW.isIterableObject)(a))throw new Pi.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(p,f)=>{let y=(0,Zu.addPath)(i,f,void 0);try{let g;return(0,ta.isPromise)(p)?g=p.then(v=>sp(e,o,n,r,y,v)):g=sp(e,o,n,r,y,p),(0,ta.isPromise)(g)?(c=!0,g.then(void 0,v=>{let F=(0,pN.locatedError)(v,n,(0,Zu.pathToArray)(y));return mN(F,o,e)})):g}catch(g){let v=(0,pN.locatedError)(g,n,(0,Zu.pathToArray)(y));return mN(v,o,e)}});return c?Promise.all(l):l}function KW(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Xu.inspect)(e)}.serialize(${(0,Xu.inspect)(t)})\` to return non-nullable value, returned: ${(0,Xu.inspect)(n)}`);return n}function GW(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,p=c(a,l,r,t);return(0,ta.isPromise)(p)?p.then(f=>A_(e,ww(f,e,t,n,r,a),n,r,i,a)):A_(e,ww(p,e,t,n,r,a),n,r,i,a)}function ww(e,t,n,r,i,a){if(e==null)throw new Pi.GraphQLError(`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((0,ru.isObjectType)(e))throw new Pi.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Pi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Xu.inspect)(a)}, received "${(0,Xu.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,ru.isObjectType)(o))throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Pi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function A_(e,t,n,r,i,a){let o=MW(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,ta.isPromise)(c))return c.then(l=>{if(!l)throw Lw(t,a,n);return fN(e,t,a,i,o)});if(!c)throw Lw(t,a,n)}return fN(e,t,a,i,o)}function Lw(e,t,n){return new Pi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Xu.inspect)(t)}.`,{nodes:n})}var Vw=function(e,t,n,r){if((0,P_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(NN,"__esModule",{value:!0});NN.graphql=WW;NN.graphqlSync=XW;var $W=Lr(),QW=dm(),YW=Wc(),JW=Hd(),HW=cl(),zW=op();function WW(e){return new Promise(t=>t(Kw(e)))}function XW(e){let t=Kw(e);if((0,QW.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Kw(e){arguments.length<2||(0,$W.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l}=e,p=(0,JW.validateSchema)(t);if(p.length>0)return{errors:p};let f;try{f=(0,YW.parse)(n)}catch(g){return{errors:[g]}}let y=(0,HW.validate)(t,f);return y.length>0?{errors:y}:(0,zW.execute)({schema:t,document:f,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var Yw=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return na.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return ms.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return na.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return na.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return nt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return ms.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return ms.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return na.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return nt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return ms.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return nt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return nt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return nt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return nt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return na.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return nt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return F_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return na.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return na.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return ms.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return nt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Qr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Qr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Qr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Qr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Qr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Qr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Qr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Qr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Qr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Qr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return nt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return nt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return na.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return nt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return Qw.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return nt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return nt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return nt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return nt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return nt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return Qw.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return nt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return nt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return nt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return nt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return nt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return nt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return F_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return nt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return nt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return $w.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return nt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return nt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return nt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Qr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return nt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return nt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return na.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return nt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return nt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return nt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return nt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Qr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return nt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return nt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return nt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return nt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return nt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return nt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return nt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return nt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return nt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return nt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return F_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return na.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ms.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return nt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return nt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return nt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return nt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return nt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return na.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return ms.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return $w.validateSchema}});var F_=Yu(),nt=Ft(),na=Gr(),ms=ba(),Qr=Ai(),$w=Hd(),Qw=Cd()});var Hw=w(Ct=>{"use strict";m();T();N();Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"BREAK",{enumerable:!0,get:function(){return up.BREAK}});Object.defineProperty(Ct,"DirectiveLocation",{enumerable:!0,get:function(){return a8.DirectiveLocation}});Object.defineProperty(Ct,"Kind",{enumerable:!0,get:function(){return t8.Kind}});Object.defineProperty(Ct,"Lexer",{enumerable:!0,get:function(){return r8.Lexer}});Object.defineProperty(Ct,"Location",{enumerable:!0,get:function(){return w_.Location}});Object.defineProperty(Ct,"OperationTypeNode",{enumerable:!0,get:function(){return w_.OperationTypeNode}});Object.defineProperty(Ct,"Source",{enumerable:!0,get:function(){return ZW.Source}});Object.defineProperty(Ct,"Token",{enumerable:!0,get:function(){return w_.Token}});Object.defineProperty(Ct,"TokenKind",{enumerable:!0,get:function(){return n8.TokenKind}});Object.defineProperty(Ct,"getEnterLeaveForKind",{enumerable:!0,get:function(){return up.getEnterLeaveForKind}});Object.defineProperty(Ct,"getLocation",{enumerable:!0,get:function(){return e8.getLocation}});Object.defineProperty(Ct,"getVisitFn",{enumerable:!0,get:function(){return up.getVisitFn}});Object.defineProperty(Ct,"isConstValueNode",{enumerable:!0,get:function(){return Fa.isConstValueNode}});Object.defineProperty(Ct,"isDefinitionNode",{enumerable:!0,get:function(){return Fa.isDefinitionNode}});Object.defineProperty(Ct,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Fa.isExecutableDefinitionNode}});Object.defineProperty(Ct,"isSelectionNode",{enumerable:!0,get:function(){return Fa.isSelectionNode}});Object.defineProperty(Ct,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeDefinitionNode}});Object.defineProperty(Ct,"isTypeExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeExtensionNode}});Object.defineProperty(Ct,"isTypeNode",{enumerable:!0,get:function(){return Fa.isTypeNode}});Object.defineProperty(Ct,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemDefinitionNode}});Object.defineProperty(Ct,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemExtensionNode}});Object.defineProperty(Ct,"isValueNode",{enumerable:!0,get:function(){return Fa.isValueNode}});Object.defineProperty(Ct,"parse",{enumerable:!0,get:function(){return TN.parse}});Object.defineProperty(Ct,"parseConstValue",{enumerable:!0,get:function(){return TN.parseConstValue}});Object.defineProperty(Ct,"parseType",{enumerable:!0,get:function(){return TN.parseType}});Object.defineProperty(Ct,"parseValue",{enumerable:!0,get:function(){return TN.parseValue}});Object.defineProperty(Ct,"print",{enumerable:!0,get:function(){return i8.print}});Object.defineProperty(Ct,"printLocation",{enumerable:!0,get:function(){return Jw.printLocation}});Object.defineProperty(Ct,"printSourceLocation",{enumerable:!0,get:function(){return Jw.printSourceLocation}});Object.defineProperty(Ct,"visit",{enumerable:!0,get:function(){return up.visit}});Object.defineProperty(Ct,"visitInParallel",{enumerable:!0,get:function(){return up.visitInParallel}});var ZW=gm(),e8=pm(),Jw=Ay(),t8=Pt(),n8=Dd(),r8=Em(),TN=Wc(),i8=ci(),up=Vu(),w_=Sa(),Fa=Hu(),a8=Hc()});var zw=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.isAsyncIterable=s8;function s8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Ww=w(C_=>{"use strict";m();T();N();Object.defineProperty(C_,"__esModule",{value:!0});C_.mapAsyncIterator=o8;function o8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return vi(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return vi(this,null,function*(){return r(yield n.next())})},return(){return vi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return vi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var tL=w(EN=>{"use strict";m();T();N();Object.defineProperty(EN,"__esModule",{value:!0});EN.createSourceEventStream=eL;EN.subscribe=m8;var u8=Lr(),c8=Yt(),Zw=zw(),Xw=Xd(),B_=He(),l8=lN(),d8=sN(),cp=op(),p8=Ww(),f8=ol();function m8(t){return vi(this,arguments,function*(e){arguments.length<2||(0,u8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield eL(e);if(!(0,Zw.isAsyncIterable)(n))return n;let r=i=>(0,cp.execute)(Y(x({},e),{rootValue:i}));return(0,p8.mapAsyncIterator)(n,r)})}function N8(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}function eL(...e){return vi(this,null,function*(){let t=N8(e),{schema:n,document:r,variableValues:i}=t;(0,cp.assertValidExecutionArguments)(n,r,i);let a=(0,cp.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield T8(a);if(!(0,Zw.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,c8.inspect)(o)}.`);return o}catch(o){if(o instanceof B_.GraphQLError)return{errors:[o]};throw o}})}function T8(e){return vi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new B_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,d8.collectFields)(t,n,i,o,r.selectionSet),[l,p]=[...c.entries()][0],f=(0,cp.getFieldDef)(t,o,p[0]);if(!f){let F=p[0].name.value;throw new B_.GraphQLError(`The subscription field "${F}" is not defined.`,{nodes:p})}let y=(0,Xw.addPath)(void 0,l,o.name),g=(0,cp.buildResolveInfo)(e,f,p,o,y);try{var v;let F=(0,f8.getArgumentValues)(f,p[0],i),k=e.contextValue,$=yield((v=f.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,F,k,g);if($ instanceof Error)throw $;return $}catch(F){throw(0,l8.locatedError)(F,p,(0,Xw.pathToArray)(y))}})}});var rL=w(wi=>{"use strict";m();T();N();Object.defineProperty(wi,"__esModule",{value:!0});Object.defineProperty(wi,"createSourceEventStream",{enumerable:!0,get:function(){return nL.createSourceEventStream}});Object.defineProperty(wi,"defaultFieldResolver",{enumerable:!0,get:function(){return hN.defaultFieldResolver}});Object.defineProperty(wi,"defaultTypeResolver",{enumerable:!0,get:function(){return hN.defaultTypeResolver}});Object.defineProperty(wi,"execute",{enumerable:!0,get:function(){return hN.execute}});Object.defineProperty(wi,"executeSync",{enumerable:!0,get:function(){return hN.executeSync}});Object.defineProperty(wi,"getArgumentValues",{enumerable:!0,get:function(){return U_.getArgumentValues}});Object.defineProperty(wi,"getDirectiveValues",{enumerable:!0,get:function(){return U_.getDirectiveValues}});Object.defineProperty(wi,"getVariableValues",{enumerable:!0,get:function(){return U_.getVariableValues}});Object.defineProperty(wi,"responsePathAsArray",{enumerable:!0,get:function(){return E8.pathToArray}});Object.defineProperty(wi,"subscribe",{enumerable:!0,get:function(){return nL.subscribe}});var E8=Xd(),hN=op(),nL=tL(),U_=ol()});var iL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.NoDeprecatedCustomRule=h8;var k_=yr(),lp=He(),M_=Ft();function h8(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new lp.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,M_.getNamedType)(e.getParentInputType());if((0,M_.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new lp.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,M_.getNamedType)(e.getInputType());i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var aL=w(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.NoSchemaIntrospectionCustomRule=_8;var y8=He(),I8=Ft(),g8=Ai();function _8(e){return{Field(t){let n=(0,I8.getNamedType)(e.getType());n&&(0,g8.isIntrospectionType)(n)&&e.reportError(new y8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var oL=w(dt=>{"use strict";m();T();N();Object.defineProperty(dt,"__esModule",{value:!0});Object.defineProperty(dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return O8.ExecutableDefinitionsRule}});Object.defineProperty(dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return D8.FieldsOnCorrectTypeRule}});Object.defineProperty(dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return b8.FragmentsOnCompositeTypesRule}});Object.defineProperty(dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return A8.KnownArgumentNamesRule}});Object.defineProperty(dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return R8.KnownDirectivesRule}});Object.defineProperty(dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return P8.KnownFragmentNamesRule}});Object.defineProperty(dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return F8.KnownTypeNamesRule}});Object.defineProperty(dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return w8.LoneAnonymousOperationRule}});Object.defineProperty(dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return X8.LoneSchemaDefinitionRule}});Object.defineProperty(dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return W8.MaxIntrospectionDepthRule}});Object.defineProperty(dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return s5.NoDeprecatedCustomRule}});Object.defineProperty(dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return L8.NoFragmentCyclesRule}});Object.defineProperty(dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return o5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return C8.NoUndefinedVariablesRule}});Object.defineProperty(dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return B8.NoUnusedFragmentsRule}});Object.defineProperty(dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return U8.NoUnusedVariablesRule}});Object.defineProperty(dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return k8.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return M8.PossibleFragmentSpreadsRule}});Object.defineProperty(dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return a5.PossibleTypeExtensionsRule}});Object.defineProperty(dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return x8.ProvidedRequiredArgumentsRule}});Object.defineProperty(dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return q8.ScalarLeafsRule}});Object.defineProperty(dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return V8.SingleFieldSubscriptionsRule}});Object.defineProperty(dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return r5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return j8.UniqueArgumentNamesRule}});Object.defineProperty(dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return i5.UniqueDirectiveNamesRule}});Object.defineProperty(dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return K8.UniqueDirectivesPerLocationRule}});Object.defineProperty(dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return t5.UniqueEnumValueNamesRule}});Object.defineProperty(dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return n5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return G8.UniqueFragmentNamesRule}});Object.defineProperty(dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return $8.UniqueInputFieldNamesRule}});Object.defineProperty(dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Q8.UniqueOperationNamesRule}});Object.defineProperty(dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Z8.UniqueOperationTypesRule}});Object.defineProperty(dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return e5.UniqueTypeNamesRule}});Object.defineProperty(dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Y8.UniqueVariableNamesRule}});Object.defineProperty(dt,"ValidationContext",{enumerable:!0,get:function(){return S8.ValidationContext}});Object.defineProperty(dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return J8.ValuesOfCorrectTypeRule}});Object.defineProperty(dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return H8.VariablesAreInputTypesRule}});Object.defineProperty(dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return z8.VariablesInAllowedPositionRule}});Object.defineProperty(dt,"recommendedRules",{enumerable:!0,get:function(){return sL.recommendedRules}});Object.defineProperty(dt,"specifiedRules",{enumerable:!0,get:function(){return sL.specifiedRules}});Object.defineProperty(dt,"validate",{enumerable:!0,get:function(){return v8.validate}});var v8=cl(),S8=h_(),sL=N_(),O8=wI(),D8=CI(),b8=UI(),A8=kI(),R8=VI(),P8=KI(),F8=QI(),w8=JI(),L8=eg(),C8=ng(),B8=ig(),U8=sg(),k8=Tg(),M8=yg(),x8=vg(),q8=Og(),V8=Cg(),j8=xg(),K8=Gg(),G8=Wg(),$8=Zg(),Q8=t_(),Y8=o_(),J8=l_(),H8=p_(),z8=m_(),W8=XI(),X8=zI(),Z8=r_(),e5=a_(),t5=Qg(),n5=Hg(),r5=kg(),i5=Vg(),a5=gg(),s5=iL(),o5=aL()});var uL=w(ec=>{"use strict";m();T();N();Object.defineProperty(ec,"__esModule",{value:!0});Object.defineProperty(ec,"GraphQLError",{enumerable:!0,get:function(){return V_.GraphQLError}});Object.defineProperty(ec,"formatError",{enumerable:!0,get:function(){return V_.formatError}});Object.defineProperty(ec,"locatedError",{enumerable:!0,get:function(){return c5.locatedError}});Object.defineProperty(ec,"printError",{enumerable:!0,get:function(){return V_.printError}});Object.defineProperty(ec,"syntaxError",{enumerable:!0,get:function(){return u5.syntaxError}});var V_=He(),u5=mm(),c5=lN()});var K_=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.getIntrospectionQuery=l5;function l5(e){let t=x({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":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${a} @@ -173,7 +173,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var cL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.getOperationAST=p5;var d5=Pt();function p5(e,t){let n=null;for(let i of e.definitions)if(i.kind===d5.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var lL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.getOperationRootType=f5;var yN=He();function f5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new yN.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new yN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new yN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new yN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var dL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.introspectionFromSchema=h5;var m5=yr(),N5=Wc(),T5=op(),E5=K_();function h5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,N5.parse)((0,E5.getIntrospectionQuery)(n)),i=(0,T5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,m5.invariant)(!1),i.data}});var fL=w(Y_=>{"use strict";m();T();N();Object.defineProperty(Y_,"__esModule",{value:!0});Y_.buildClientSchema=O5;var y5=Lr(),li=Yt(),pL=va(),IN=wd(),I5=Wc(),di=Ft(),g5=Gr(),wa=Ai(),_5=ba(),v5=Yu(),S5=np();function O5(e,t){(0,pL.isObjectLike)(e)&&(0,pL.isObjectLike)(e.__schema)||(0,y5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,li.inspect)(e)}.`);let n=e.__schema,r=(0,IN.keyValMap)(n.types,ee=>ee.name,ee=>g(ee));for(let ee of[..._5.specifiedScalarTypes,...wa.introspectionTypes])r[ee.name]&&(r[ee.name]=ee);let i=n.queryType?f(n.queryType):null,a=n.mutationType?f(n.mutationType):null,o=n.subscriptionType?f(n.subscriptionType):null,c=n.directives?n.directives.map(it):[];return new v5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(ee){if(ee.kind===wa.TypeKind.LIST){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");return new di.GraphQLList(l(ve))}if(ee.kind===wa.TypeKind.NON_NULL){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");let gt=l(ve);return new di.GraphQLNonNull((0,di.assertNullableType)(gt))}return p(ee)}function p(ee){let ve=ee.name;if(!ve)throw new Error(`Unknown type reference: ${(0,li.inspect)(ee)}.`);let gt=r[ve];if(!gt)throw new Error(`Invalid or incomplete schema, unknown type: ${ve}. Ensure that a full introspection query is used in order to build a client schema.`);return gt}function f(ee){return(0,di.assertObjectType)(p(ee))}function y(ee){return(0,di.assertInterfaceType)(p(ee))}function g(ee){if(ee!=null&&ee.name!=null&&ee.kind!=null)switch(ee.kind){case wa.TypeKind.SCALAR:return v(ee);case wa.TypeKind.OBJECT:return k(ee);case wa.TypeKind.INTERFACE:return K(ee);case wa.TypeKind.UNION:return G(ee);case wa.TypeKind.ENUM:return Z(ee);case wa.TypeKind.INPUT_OBJECT:return W(ee)}let ve=(0,li.inspect)(ee);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ve}.`)}function v(ee){return new di.GraphQLScalarType({name:ee.name,description:ee.description,specifiedByURL:ee.specifiedByURL})}function P(ee){if(ee.interfaces===null&&ee.kind===wa.TypeKind.INTERFACE)return[];if(!ee.interfaces){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing interfaces: ${ve}.`)}return ee.interfaces.map(y)}function k(ee){return new di.GraphQLObjectType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function K(ee){return new di.GraphQLInterfaceType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function G(ee){if(!ee.possibleTypes){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing possibleTypes: ${ve}.`)}return new di.GraphQLUnionType({name:ee.name,description:ee.description,types:()=>ee.possibleTypes.map(f)})}function Z(ee){if(!ee.enumValues){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing enumValues: ${ve}.`)}return new di.GraphQLEnumType({name:ee.name,description:ee.description,values:(0,IN.keyValMap)(ee.enumValues,ve=>ve.name,ve=>({description:ve.description,deprecationReason:ve.deprecationReason}))})}function W(ee){if(!ee.inputFields){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing inputFields: ${ve}.`)}return new di.GraphQLInputObjectType({name:ee.name,description:ee.description,fields:()=>we(ee.inputFields),isOneOf:ee.isOneOf})}function Te(ee){if(!ee.fields)throw new Error(`Introspection result missing fields: ${(0,li.inspect)(ee)}.`);return(0,IN.keyValMap)(ee.fields,ve=>ve.name,fe)}function fe(ee){let ve=l(ee.type);if(!(0,di.isOutputType)(ve)){let gt=(0,li.inspect)(ve);throw new Error(`Introspection must provide output type for fields, but received: ${gt}.`)}if(!ee.args){let gt=(0,li.inspect)(ee);throw new Error(`Introspection result missing field args: ${gt}.`)}return{description:ee.description,deprecationReason:ee.deprecationReason,type:ve,args:we(ee.args)}}function we(ee){return(0,IN.keyValMap)(ee,ve=>ve.name,Ve)}function Ve(ee){let ve=l(ee.type);if(!(0,di.isInputType)(ve)){let zt=(0,li.inspect)(ve);throw new Error(`Introspection must provide input type for arguments, but received: ${zt}.`)}let gt=ee.defaultValue!=null?(0,S5.valueFromAST)((0,I5.parseValue)(ee.defaultValue),ve):void 0;return{description:ee.description,type:ve,defaultValue:gt,deprecationReason:ee.deprecationReason}}function it(ee){if(!ee.args){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive args: ${ve}.`)}if(!ee.locations){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive locations: ${ve}.`)}return new g5.GraphQLDirective({name:ee.name,description:ee.description,isRepeatable:ee.isRepeatable,locations:ee.locations.slice(),args:we(ee.args)})}}});var H_=w(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.extendSchema=F5;_N.extendSchemaImpl=gL;var D5=Lr(),b5=Yt(),A5=yr(),R5=zo(),dp=Jy(),Li=Pt(),mL=Hu(),gn=Ft(),pp=Gr(),yL=Ai(),IL=ba(),NL=Yu(),P5=cl(),J_=ol(),TL=np();function F5(e,t,n){(0,NL.assertSchema)(e),t!=null&&t.kind===Li.Kind.DOCUMENT||(0,D5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,P5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=gL(r,t,n);return r===i?e:new NL.GraphQLSchema(i)}function gL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),p=[],f,y=[];for(let oe of t.definitions)if(oe.kind===Li.Kind.SCHEMA_DEFINITION)f=oe;else if(oe.kind===Li.Kind.SCHEMA_EXTENSION)y.push(oe);else if((0,mL.isTypeDefinitionNode)(oe))c.push(oe);else if((0,mL.isTypeExtensionNode)(oe)){let De=oe.name.value,_e=l[De];l[De]=_e?_e.concat([oe]):[oe]}else oe.kind===Li.Kind.DIRECTIVE_DEFINITION&&p.push(oe);if(Object.keys(l).length===0&&c.length===0&&p.length===0&&y.length===0&&f==null)return e;let g=Object.create(null);for(let oe of e.types)g[oe.name]=Z(oe);for(let oe of c){var v;let De=oe.name.value;g[De]=(v=EL[De])!==null&&v!==void 0?v:bn(oe)}let P=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},f&>([f])),gt(y));return Y(x({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},P),{types:Object.values(g),directives:[...e.directives.map(G),...p.map(Dn)],extensions:Object.create(null),astNode:(a=f)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function k(oe){return(0,gn.isListType)(oe)?new gn.GraphQLList(k(oe.ofType)):(0,gn.isNonNullType)(oe)?new gn.GraphQLNonNull(k(oe.ofType)):K(oe)}function K(oe){return g[oe.name]}function G(oe){let De=oe.toConfig();return new pp.GraphQLDirective(Y(x({},De),{args:(0,dp.mapValue)(De.args,ve)}))}function Z(oe){if((0,yL.isIntrospectionType)(oe)||(0,IL.isSpecifiedScalarType)(oe))return oe;if((0,gn.isScalarType)(oe))return fe(oe);if((0,gn.isObjectType)(oe))return we(oe);if((0,gn.isInterfaceType)(oe))return Ve(oe);if((0,gn.isUnionType)(oe))return it(oe);if((0,gn.isEnumType)(oe))return Te(oe);if((0,gn.isInputObjectType)(oe))return W(oe);(0,A5.invariant)(!1,"Unexpected type: "+(0,b5.inspect)(oe))}function W(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInputObjectType(Y(x({},_e),{fields:()=>x(x({},(0,dp.mapValue)(_e.fields,_t=>Y(x({},_t),{type:k(_t.type)}))),Ar(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Te(oe){var De;let _e=oe.toConfig(),Le=(De=l[oe.name])!==null&&De!==void 0?De:[];return new gn.GraphQLEnumType(Y(x({},_e),{values:x(x({},_e.values),Rr(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function fe(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[],_t=_e.specifiedByURL;for(let se of Le){var J;_t=(J=hL(se))!==null&&J!==void 0?J:_t}return new gn.GraphQLScalarType(Y(x({},_e),{specifiedByURL:_t,extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function we(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLObjectType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Ve(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInterfaceType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function it(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLUnionType(Y(x({},_e),{types:()=>[...oe.getTypes().map(K),...$t(Le)],extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function ee(oe){return Y(x({},oe),{type:k(oe.type),args:oe.args&&(0,dp.mapValue)(oe.args,ve)})}function ve(oe){return Y(x({},oe),{type:k(oe.type)})}function gt(oe){let De={};for(let Le of oe){var _e;let _t=(_e=Le.operationTypes)!==null&&_e!==void 0?_e:[];for(let J of _t)De[J.operation]=zt(J.type)}return De}function zt(oe){var De;let _e=oe.name.value,Le=(De=EL[_e])!==null&&De!==void 0?De:g[_e];if(Le===void 0)throw new Error(`Unknown type: "${_e}".`);return Le}function Wt(oe){return oe.kind===Li.Kind.LIST_TYPE?new gn.GraphQLList(Wt(oe.type)):oe.kind===Li.Kind.NON_NULL_TYPE?new gn.GraphQLNonNull(Wt(oe.type)):zt(oe)}function Dn(oe){var De;return new pp.GraphQLDirective({name:oe.name.value,description:(De=oe.description)===null||De===void 0?void 0:De.value,locations:oe.locations.map(({value:_e})=>_e),isRepeatable:oe.repeatable,args:dn(oe.arguments),astNode:oe})}function Vt(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={type:Wt(se.type),description:(Le=se.description)===null||Le===void 0?void 0:Le.value,args:dn(se.arguments),deprecationReason:gN(se),astNode:se}}}return De}function dn(oe){let De=oe!=null?oe:[],_e=Object.create(null);for(let _t of De){var Le;let J=Wt(_t.type);_e[_t.name.value]={type:J,description:(Le=_t.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(_t.defaultValue,J),deprecationReason:gN(_t),astNode:_t}}return _e}function Ar(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;let xe=Wt(se.type);De[se.name.value]={type:xe,description:(Le=se.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(se.defaultValue,xe),deprecationReason:gN(se),astNode:se}}}return De}function Rr(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.values)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={description:(Le=se.description)===null||Le===void 0?void 0:Le.value,deprecationReason:gN(se),astNode:se}}}return De}function Un(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.interfaces)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function $t(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.types)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function bn(oe){var De;let _e=oe.name.value,Le=(De=l[_e])!==null&&De!==void 0?De:[];switch(oe.kind){case Li.Kind.OBJECT_TYPE_DEFINITION:{var _t;let et=[oe,...Le];return new gn.GraphQLObjectType({name:_e,description:(_t=oe.description)===null||_t===void 0?void 0:_t.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INTERFACE_TYPE_DEFINITION:{var J;let et=[oe,...Le];return new gn.GraphQLInterfaceType({name:_e,description:(J=oe.description)===null||J===void 0?void 0:J.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.ENUM_TYPE_DEFINITION:{var se;let et=[oe,...Le];return new gn.GraphQLEnumType({name:_e,description:(se=oe.description)===null||se===void 0?void 0:se.value,values:Rr(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.UNION_TYPE_DEFINITION:{var xe;let et=[oe,...Le];return new gn.GraphQLUnionType({name:_e,description:(xe=oe.description)===null||xe===void 0?void 0:xe.value,types:()=>$t(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.SCALAR_TYPE_DEFINITION:{var Qe;return new gn.GraphQLScalarType({name:_e,description:(Qe=oe.description)===null||Qe===void 0?void 0:Qe.value,specifiedByURL:hL(oe),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Lt;let et=[oe,...Le];return new gn.GraphQLInputObjectType({name:_e,description:(Lt=oe.description)===null||Lt===void 0?void 0:Lt.value,fields:()=>Ar(et),astNode:oe,extensionASTNodes:Le,isOneOf:w5(oe)})}}}}var EL=(0,R5.keyMap)([...IL.specifiedScalarTypes,...yL.introspectionTypes],e=>e.name);function gN(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hL(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function w5(e){return!!(0,J_.getDirectiveValues)(pp.GraphQLOneOfDirective,e)}});var vL=w(vN=>{"use strict";m();T();N();Object.defineProperty(vN,"__esModule",{value:!0});vN.buildASTSchema=_L;vN.buildSchema=q5;var L5=Lr(),C5=Pt(),B5=Wc(),U5=Gr(),k5=Yu(),M5=cl(),x5=H_();function _L(e,t){e!=null&&e.kind===C5.Kind.DOCUMENT||(0,L5.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,M5.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,x5.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...U5.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new k5.GraphQLSchema(Y(x({},r),{directives:i}))}function q5(e,t){let n=(0,B5.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return _L(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var DL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.lexicographicSortSchema=Y5;var V5=Yt(),j5=yr(),K5=wd(),SL=Ld(),Cr=Ft(),G5=Gr(),$5=Ai(),Q5=Yu();function Y5(e){let t=e.toConfig(),n=(0,K5.keyValMap)(z_(t.types),g=>g.name,y);return new Q5.GraphQLSchema(Y(x({},t),{types:Object.values(n),directives:z_(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(g){return(0,Cr.isListType)(g)?new Cr.GraphQLList(r(g.ofType)):(0,Cr.isNonNullType)(g)?new Cr.GraphQLNonNull(r(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function o(g){let v=g.toConfig();return new G5.GraphQLDirective(Y(x({},v),{locations:OL(v.locations,P=>P),args:c(v.args)}))}function c(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function l(g){return SN(g,v=>Y(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function p(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function f(g){return z_(g).map(i)}function y(g){if((0,Cr.isScalarType)(g)||(0,$5.isIntrospectionType)(g))return g;if((0,Cr.isObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLObjectType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isInterfaceType)(g)){let v=g.toConfig();return new Cr.GraphQLInterfaceType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isUnionType)(g)){let v=g.toConfig();return new Cr.GraphQLUnionType(Y(x({},v),{types:()=>f(v.types)}))}if((0,Cr.isEnumType)(g)){let v=g.toConfig();return new Cr.GraphQLEnumType(Y(x({},v),{values:SN(v.values,P=>P)}))}if((0,Cr.isInputObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLInputObjectType(Y(x({},v),{fields:()=>p(v.fields)}))}(0,j5.invariant)(!1,"Unexpected type: "+(0,V5.inspect)(g))}}function SN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(SL.naturalCompare))n[r]=t(e[r]);return n}function z_(e){return OL(e,t=>t.name)}function OL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,SL.naturalCompare)(i,a)})}});var LL=w(fp=>{"use strict";m();T();N();Object.defineProperty(fp,"__esModule",{value:!0});fp.printIntrospectionSchema=eX;fp.printSchema=Z5;fp.printType=RL;var J5=Yt(),H5=yr(),z5=Sd(),Z_=Pt(),ON=ci(),dl=Ft(),ev=Gr(),bL=Ai(),W5=ba(),X5=Qd();function Z5(e){return AL(e,t=>!(0,ev.isSpecifiedDirective)(t),tX)}function eX(e){return AL(e,ev.isSpecifiedDirective,bL.isIntrospectionType)}function tX(e){return!(0,W5.isSpecifiedScalarType)(e)&&!(0,bL.isIntrospectionType)(e)}function AL(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[nX(e),...r.map(a=>lX(a)),...i.map(a=>RL(a))].filter(Boolean).join(` + `}});var cL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.getOperationAST=p5;var d5=Pt();function p5(e,t){let n=null;for(let i of e.definitions)if(i.kind===d5.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var lL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.getOperationRootType=f5;var yN=He();function f5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new yN.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new yN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new yN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new yN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var dL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.introspectionFromSchema=h5;var m5=yr(),N5=Wc(),T5=op(),E5=K_();function h5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,N5.parse)((0,E5.getIntrospectionQuery)(n)),i=(0,T5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,m5.invariant)(!1),i.data}});var fL=w(Y_=>{"use strict";m();T();N();Object.defineProperty(Y_,"__esModule",{value:!0});Y_.buildClientSchema=O5;var y5=Lr(),li=Yt(),pL=va(),IN=wd(),I5=Wc(),di=Ft(),g5=Gr(),wa=Ai(),_5=ba(),v5=Yu(),S5=np();function O5(e,t){(0,pL.isObjectLike)(e)&&(0,pL.isObjectLike)(e.__schema)||(0,y5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,li.inspect)(e)}.`);let n=e.__schema,r=(0,IN.keyValMap)(n.types,X=>X.name,X=>g(X));for(let X of[..._5.specifiedScalarTypes,...wa.introspectionTypes])r[X.name]&&(r[X.name]=X);let i=n.queryType?f(n.queryType):null,a=n.mutationType?f(n.mutationType):null,o=n.subscriptionType?f(n.subscriptionType):null,c=n.directives?n.directives.map(et):[];return new v5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(X){if(X.kind===wa.TypeKind.LIST){let ve=X.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");return new di.GraphQLList(l(ve))}if(X.kind===wa.TypeKind.NON_NULL){let ve=X.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");let gt=l(ve);return new di.GraphQLNonNull((0,di.assertNullableType)(gt))}return p(X)}function p(X){let ve=X.name;if(!ve)throw new Error(`Unknown type reference: ${(0,li.inspect)(X)}.`);let gt=r[ve];if(!gt)throw new Error(`Invalid or incomplete schema, unknown type: ${ve}. Ensure that a full introspection query is used in order to build a client schema.`);return gt}function f(X){return(0,di.assertObjectType)(p(X))}function y(X){return(0,di.assertInterfaceType)(p(X))}function g(X){if(X!=null&&X.name!=null&&X.kind!=null)switch(X.kind){case wa.TypeKind.SCALAR:return v(X);case wa.TypeKind.OBJECT:return k(X);case wa.TypeKind.INTERFACE:return K(X);case wa.TypeKind.UNION:return $(X);case wa.TypeKind.ENUM:return ne(X);case wa.TypeKind.INPUT_OBJECT:return z(X)}let ve=(0,li.inspect)(X);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ve}.`)}function v(X){return new di.GraphQLScalarType({name:X.name,description:X.description,specifiedByURL:X.specifiedByURL})}function F(X){if(X.interfaces===null&&X.kind===wa.TypeKind.INTERFACE)return[];if(!X.interfaces){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing interfaces: ${ve}.`)}return X.interfaces.map(y)}function k(X){return new di.GraphQLObjectType({name:X.name,description:X.description,interfaces:()=>F(X),fields:()=>Te(X)})}function K(X){return new di.GraphQLInterfaceType({name:X.name,description:X.description,interfaces:()=>F(X),fields:()=>Te(X)})}function $(X){if(!X.possibleTypes){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing possibleTypes: ${ve}.`)}return new di.GraphQLUnionType({name:X.name,description:X.description,types:()=>X.possibleTypes.map(f)})}function ne(X){if(!X.enumValues){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing enumValues: ${ve}.`)}return new di.GraphQLEnumType({name:X.name,description:X.description,values:(0,IN.keyValMap)(X.enumValues,ve=>ve.name,ve=>({description:ve.description,deprecationReason:ve.deprecationReason}))})}function z(X){if(!X.inputFields){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing inputFields: ${ve}.`)}return new di.GraphQLInputObjectType({name:X.name,description:X.description,fields:()=>Fe(X.inputFields),isOneOf:X.isOneOf})}function Te(X){if(!X.fields)throw new Error(`Introspection result missing fields: ${(0,li.inspect)(X)}.`);return(0,IN.keyValMap)(X.fields,ve=>ve.name,pe)}function pe(X){let ve=l(X.type);if(!(0,di.isOutputType)(ve)){let gt=(0,li.inspect)(ve);throw new Error(`Introspection must provide output type for fields, but received: ${gt}.`)}if(!X.args){let gt=(0,li.inspect)(X);throw new Error(`Introspection result missing field args: ${gt}.`)}return{description:X.description,deprecationReason:X.deprecationReason,type:ve,args:Fe(X.args)}}function Fe(X){return(0,IN.keyValMap)(X,ve=>ve.name,Ve)}function Ve(X){let ve=l(X.type);if(!(0,di.isInputType)(ve)){let zt=(0,li.inspect)(ve);throw new Error(`Introspection must provide input type for arguments, but received: ${zt}.`)}let gt=X.defaultValue!=null?(0,S5.valueFromAST)((0,I5.parseValue)(X.defaultValue),ve):void 0;return{description:X.description,type:ve,defaultValue:gt,deprecationReason:X.deprecationReason}}function et(X){if(!X.args){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing directive args: ${ve}.`)}if(!X.locations){let ve=(0,li.inspect)(X);throw new Error(`Introspection result missing directive locations: ${ve}.`)}return new g5.GraphQLDirective({name:X.name,description:X.description,isRepeatable:X.isRepeatable,locations:X.locations.slice(),args:Fe(X.args)})}}});var H_=w(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.extendSchema=F5;_N.extendSchemaImpl=gL;var D5=Lr(),b5=Yt(),A5=yr(),R5=zo(),dp=Jy(),Li=Pt(),mL=Hu(),gn=Ft(),pp=Gr(),yL=Ai(),IL=ba(),NL=Yu(),P5=cl(),J_=ol(),TL=np();function F5(e,t,n){(0,NL.assertSchema)(e),t!=null&&t.kind===Li.Kind.DOCUMENT||(0,D5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,P5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=gL(r,t,n);return r===i?e:new NL.GraphQLSchema(i)}function gL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),p=[],f,y=[];for(let oe of t.definitions)if(oe.kind===Li.Kind.SCHEMA_DEFINITION)f=oe;else if(oe.kind===Li.Kind.SCHEMA_EXTENSION)y.push(oe);else if((0,mL.isTypeDefinitionNode)(oe))c.push(oe);else if((0,mL.isTypeExtensionNode)(oe)){let De=oe.name.value,_e=l[De];l[De]=_e?_e.concat([oe]):[oe]}else oe.kind===Li.Kind.DIRECTIVE_DEFINITION&&p.push(oe);if(Object.keys(l).length===0&&c.length===0&&p.length===0&&y.length===0&&f==null)return e;let g=Object.create(null);for(let oe of e.types)g[oe.name]=ne(oe);for(let oe of c){var v;let De=oe.name.value;g[De]=(v=EL[De])!==null&&v!==void 0?v:bn(oe)}let F=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},f&>([f])),gt(y));return Y(x({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},F),{types:Object.values(g),directives:[...e.directives.map($),...p.map(Dn)],extensions:Object.create(null),astNode:(a=f)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function k(oe){return(0,gn.isListType)(oe)?new gn.GraphQLList(k(oe.ofType)):(0,gn.isNonNullType)(oe)?new gn.GraphQLNonNull(k(oe.ofType)):K(oe)}function K(oe){return g[oe.name]}function $(oe){let De=oe.toConfig();return new pp.GraphQLDirective(Y(x({},De),{args:(0,dp.mapValue)(De.args,ve)}))}function ne(oe){if((0,yL.isIntrospectionType)(oe)||(0,IL.isSpecifiedScalarType)(oe))return oe;if((0,gn.isScalarType)(oe))return pe(oe);if((0,gn.isObjectType)(oe))return Fe(oe);if((0,gn.isInterfaceType)(oe))return Ve(oe);if((0,gn.isUnionType)(oe))return et(oe);if((0,gn.isEnumType)(oe))return Te(oe);if((0,gn.isInputObjectType)(oe))return z(oe);(0,A5.invariant)(!1,"Unexpected type: "+(0,b5.inspect)(oe))}function z(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInputObjectType(Y(x({},_e),{fields:()=>x(x({},(0,dp.mapValue)(_e.fields,_t=>Y(x({},_t),{type:k(_t.type)}))),Ar(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Te(oe){var De;let _e=oe.toConfig(),Le=(De=l[oe.name])!==null&&De!==void 0?De:[];return new gn.GraphQLEnumType(Y(x({},_e),{values:x(x({},_e.values),Rr(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function pe(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[],_t=_e.specifiedByURL;for(let se of Le){var J;_t=(J=hL(se))!==null&&J!==void 0?J:_t}return new gn.GraphQLScalarType(Y(x({},_e),{specifiedByURL:_t,extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Fe(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLObjectType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,X)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Ve(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInterfaceType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,X)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function et(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLUnionType(Y(x({},_e),{types:()=>[...oe.getTypes().map(K),...$t(Le)],extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function X(oe){return Y(x({},oe),{type:k(oe.type),args:oe.args&&(0,dp.mapValue)(oe.args,ve)})}function ve(oe){return Y(x({},oe),{type:k(oe.type)})}function gt(oe){let De={};for(let Le of oe){var _e;let _t=(_e=Le.operationTypes)!==null&&_e!==void 0?_e:[];for(let J of _t)De[J.operation]=zt(J.type)}return De}function zt(oe){var De;let _e=oe.name.value,Le=(De=EL[_e])!==null&&De!==void 0?De:g[_e];if(Le===void 0)throw new Error(`Unknown type: "${_e}".`);return Le}function Wt(oe){return oe.kind===Li.Kind.LIST_TYPE?new gn.GraphQLList(Wt(oe.type)):oe.kind===Li.Kind.NON_NULL_TYPE?new gn.GraphQLNonNull(Wt(oe.type)):zt(oe)}function Dn(oe){var De;return new pp.GraphQLDirective({name:oe.name.value,description:(De=oe.description)===null||De===void 0?void 0:De.value,locations:oe.locations.map(({value:_e})=>_e),isRepeatable:oe.repeatable,args:dn(oe.arguments),astNode:oe})}function Vt(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={type:Wt(se.type),description:(Le=se.description)===null||Le===void 0?void 0:Le.value,args:dn(se.arguments),deprecationReason:gN(se),astNode:se}}}return De}function dn(oe){let De=oe!=null?oe:[],_e=Object.create(null);for(let _t of De){var Le;let J=Wt(_t.type);_e[_t.name.value]={type:J,description:(Le=_t.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(_t.defaultValue,J),deprecationReason:gN(_t),astNode:_t}}return _e}function Ar(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;let xe=Wt(se.type);De[se.name.value]={type:xe,description:(Le=se.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(se.defaultValue,xe),deprecationReason:gN(se),astNode:se}}}return De}function Rr(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.values)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={description:(Le=se.description)===null||Le===void 0?void 0:Le.value,deprecationReason:gN(se),astNode:se}}}return De}function Un(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.interfaces)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function $t(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.types)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function bn(oe){var De;let _e=oe.name.value,Le=(De=l[_e])!==null&&De!==void 0?De:[];switch(oe.kind){case Li.Kind.OBJECT_TYPE_DEFINITION:{var _t;let tt=[oe,...Le];return new gn.GraphQLObjectType({name:_e,description:(_t=oe.description)===null||_t===void 0?void 0:_t.value,interfaces:()=>Un(tt),fields:()=>Vt(tt),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INTERFACE_TYPE_DEFINITION:{var J;let tt=[oe,...Le];return new gn.GraphQLInterfaceType({name:_e,description:(J=oe.description)===null||J===void 0?void 0:J.value,interfaces:()=>Un(tt),fields:()=>Vt(tt),astNode:oe,extensionASTNodes:Le})}case Li.Kind.ENUM_TYPE_DEFINITION:{var se;let tt=[oe,...Le];return new gn.GraphQLEnumType({name:_e,description:(se=oe.description)===null||se===void 0?void 0:se.value,values:Rr(tt),astNode:oe,extensionASTNodes:Le})}case Li.Kind.UNION_TYPE_DEFINITION:{var xe;let tt=[oe,...Le];return new gn.GraphQLUnionType({name:_e,description:(xe=oe.description)===null||xe===void 0?void 0:xe.value,types:()=>$t(tt),astNode:oe,extensionASTNodes:Le})}case Li.Kind.SCALAR_TYPE_DEFINITION:{var Qe;return new gn.GraphQLScalarType({name:_e,description:(Qe=oe.description)===null||Qe===void 0?void 0:Qe.value,specifiedByURL:hL(oe),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Lt;let tt=[oe,...Le];return new gn.GraphQLInputObjectType({name:_e,description:(Lt=oe.description)===null||Lt===void 0?void 0:Lt.value,fields:()=>Ar(tt),astNode:oe,extensionASTNodes:Le,isOneOf:w5(oe)})}}}}var EL=(0,R5.keyMap)([...IL.specifiedScalarTypes,...yL.introspectionTypes],e=>e.name);function gN(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hL(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function w5(e){return!!(0,J_.getDirectiveValues)(pp.GraphQLOneOfDirective,e)}});var vL=w(vN=>{"use strict";m();T();N();Object.defineProperty(vN,"__esModule",{value:!0});vN.buildASTSchema=_L;vN.buildSchema=q5;var L5=Lr(),C5=Pt(),B5=Wc(),U5=Gr(),k5=Yu(),M5=cl(),x5=H_();function _L(e,t){e!=null&&e.kind===C5.Kind.DOCUMENT||(0,L5.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,M5.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,x5.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...U5.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new k5.GraphQLSchema(Y(x({},r),{directives:i}))}function q5(e,t){let n=(0,B5.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return _L(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var DL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.lexicographicSortSchema=Y5;var V5=Yt(),j5=yr(),K5=wd(),SL=Ld(),Cr=Ft(),G5=Gr(),$5=Ai(),Q5=Yu();function Y5(e){let t=e.toConfig(),n=(0,K5.keyValMap)(z_(t.types),g=>g.name,y);return new Q5.GraphQLSchema(Y(x({},t),{types:Object.values(n),directives:z_(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(g){return(0,Cr.isListType)(g)?new Cr.GraphQLList(r(g.ofType)):(0,Cr.isNonNullType)(g)?new Cr.GraphQLNonNull(r(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function o(g){let v=g.toConfig();return new G5.GraphQLDirective(Y(x({},v),{locations:OL(v.locations,F=>F),args:c(v.args)}))}function c(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function l(g){return SN(g,v=>Y(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function p(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function f(g){return z_(g).map(i)}function y(g){if((0,Cr.isScalarType)(g)||(0,$5.isIntrospectionType)(g))return g;if((0,Cr.isObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLObjectType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isInterfaceType)(g)){let v=g.toConfig();return new Cr.GraphQLInterfaceType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isUnionType)(g)){let v=g.toConfig();return new Cr.GraphQLUnionType(Y(x({},v),{types:()=>f(v.types)}))}if((0,Cr.isEnumType)(g)){let v=g.toConfig();return new Cr.GraphQLEnumType(Y(x({},v),{values:SN(v.values,F=>F)}))}if((0,Cr.isInputObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLInputObjectType(Y(x({},v),{fields:()=>p(v.fields)}))}(0,j5.invariant)(!1,"Unexpected type: "+(0,V5.inspect)(g))}}function SN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(SL.naturalCompare))n[r]=t(e[r]);return n}function z_(e){return OL(e,t=>t.name)}function OL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,SL.naturalCompare)(i,a)})}});var LL=w(fp=>{"use strict";m();T();N();Object.defineProperty(fp,"__esModule",{value:!0});fp.printIntrospectionSchema=eX;fp.printSchema=Z5;fp.printType=RL;var J5=Yt(),H5=yr(),z5=Sd(),Z_=Pt(),ON=ci(),dl=Ft(),ev=Gr(),bL=Ai(),W5=ba(),X5=Qd();function Z5(e){return AL(e,t=>!(0,ev.isSpecifiedDirective)(t),tX)}function eX(e){return AL(e,ev.isSpecifiedDirective,bL.isIntrospectionType)}function tX(e){return!(0,W5.isSpecifiedScalarType)(e)&&!(0,bL.isIntrospectionType)(e)}function AL(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[nX(e),...r.map(a=>lX(a)),...i.map(a=>RL(a))].filter(Boolean).join(` `)}function nX(e){if(e.description==null&&rX(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}`),Ci(e)+`schema { ${t.join(` @@ -187,13 +187,13 @@ ${t.join(` `+t+")"}function X_(e){let t=(0,X5.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,ON.print)(t)}`),n+nv(e.deprecationReason)}function lX(e){return Ci(e)+"directive @"+e.name+wL(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function nv(e){return e==null?"":e!==ev.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,ON.print)({kind:Z_.Kind.STRING,value:e})})`:" @deprecated"}function dX(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,ON.print)({kind:Z_.Kind.STRING,value:e.specifiedByURL})})`}function Ci(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,ON.print)({kind:Z_.Kind.STRING,value:r,block:(0,z5.isPrintableAsBlockString)(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var CL=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.concatAST=fX;var pX=Pt();function fX(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:pX.Kind.DOCUMENT,definitions:t}}});var kL=w(iv=>{"use strict";m();T();N();Object.defineProperty(iv,"__esModule",{value:!0});iv.separateOperations=NX;var DN=Pt(),mX=Vu();function NX(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case DN.Kind.OPERATION_DEFINITION:t.push(i);break;case DN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=BL(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of BL(i.selectionSet))UL(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:DN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===DN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function UL(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)UL(e,t,i)}}function BL(e){let t=[];return(0,mX.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var qL=w(sv=>{"use strict";m();T();N();Object.defineProperty(sv,"__esModule",{value:!0});sv.stripIgnoredCharacters=EX;var TX=Sd(),ML=Em(),xL=gm(),av=Dd();function EX(e){let t=(0,xL.isSource)(e)?e:new xL.Source(e),n=t.body,r=new ML.Lexer(t),i="",a=!1;for(;r.advance().kind!==av.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,ML.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===av.TokenKind.SPREAD)&&(i+=" ");let p=n.slice(o.start,o.end);c===av.TokenKind.BLOCK_STRING?i+=(0,TX.printBlockString)(o.value,{minimize:!0}):i+=p,a=l}return i}});var jL=w(bN=>{"use strict";m();T();N();Object.defineProperty(bN,"__esModule",{value:!0});bN.assertValidName=gX;bN.isValidNameError=VL;var hX=Lr(),yX=He(),IX=Cd();function gX(e){let t=VL(e);if(t)throw t;return e}function VL(e){if(typeof e=="string"||(0,hX.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new yX.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,IX.assertName)(e)}catch(t){return t}}});var zL=w(La=>{"use strict";m();T();N();Object.defineProperty(La,"__esModule",{value:!0});La.DangerousChangeType=La.BreakingChangeType=void 0;La.findBreakingChanges=bX;La.findDangerousChanges=AX;var _X=Yt(),JL=yr(),KL=zo(),vX=ci(),qt=Ft(),SX=ba(),OX=Qd(),DX=cg(),wn;La.BreakingChangeType=wn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(wn||(La.BreakingChangeType=wn={}));var ra;La.DangerousChangeType=ra;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ra||(La.DangerousChangeType=ra={}));function bX(e,t){return HL(e,t).filter(n=>n.type in wn)}function AX(e,t){return HL(e,t).filter(n=>n.type in ra)}function HL(e,t){return[...PX(e,t),...RX(e,t)]}function RX(e,t){let n=[],r=Ns(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:wn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=Ns(i.args,a.args);for(let c of o.added)(0,qt.isRequiredArgument)(c)&&n.push({type:wn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:wn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:wn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:wn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function PX(e,t){let n=[],r=Ns(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:wn.TYPE_REMOVED,description:(0,SX.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,qt.isEnumType)(i)&&(0,qt.isEnumType)(a)?n.push(...LX(i,a)):(0,qt.isUnionType)(i)&&(0,qt.isUnionType)(a)?n.push(...wX(i,a)):(0,qt.isInputObjectType)(i)&&(0,qt.isInputObjectType)(a)?n.push(...FX(i,a)):(0,qt.isObjectType)(i)&&(0,qt.isObjectType)(a)?n.push(...$L(i,a),...GL(i,a)):(0,qt.isInterfaceType)(i)&&(0,qt.isInterfaceType)(a)?n.push(...$L(i,a),...GL(i,a)):i.constructor!==a.constructor&&n.push({type:wn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${QL(i)} to ${QL(a)}.`});return n}function FX(e,t){let n=[],r=Ns(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,qt.isRequiredInputField)(i)?n.push({type:wn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ra.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:wn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)Np(i.type,a.type)||n.push({type:wn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function wX(e,t){let n=[],r=Ns(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ra.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:wn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function LX(e,t){let n=[],r=Ns(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ra.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:wn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function GL(e,t){let n=[],r=Ns(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ra.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:wn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function $L(e,t){let n=[],r=Ns(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:wn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...CX(e,i,a)),mp(i.type,a.type)||n.push({type:wn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function CX(e,t,n){let r=[],i=Ns(t.args,n.args);for(let a of i.removed)r.push({type:wn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!Np(a.type,o.type))r.push({type:wn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=YL(a.defaultValue,a.type),p=YL(o.defaultValue,o.type);l!==p&&r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${p}.`})}for(let a of i.added)(0,qt.isRequiredArgument)(a)?r.push({type:wn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:ra.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function mp(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&mp(e.ofType,t.ofType)||(0,qt.isNonNullType)(t)&&mp(e,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&mp(e.ofType,t.ofType):(0,qt.isNamedType)(t)&&e.name===t.name||(0,qt.isNonNullType)(t)&&mp(e,t.ofType)}function Np(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&Np(e.ofType,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&Np(e.ofType,t.ofType)||!(0,qt.isNonNullType)(t)&&Np(e.ofType,t):(0,qt.isNamedType)(t)&&e.name===t.name}function QL(e){if((0,qt.isScalarType)(e))return"a Scalar type";if((0,qt.isObjectType)(e))return"an Object type";if((0,qt.isInterfaceType)(e))return"an Interface type";if((0,qt.isUnionType)(e))return"a Union type";if((0,qt.isEnumType)(e))return"an Enum type";if((0,qt.isInputObjectType)(e))return"an Input type";(0,JL.invariant)(!1,"Unexpected type: "+(0,_X.inspect)(e))}function YL(e,t){let n=(0,OX.astFromValue)(e,t);return n!=null||(0,JL.invariant)(!1),(0,vX.print)((0,DX.sortValueNode)(n))}function Ns(e,t){let n=[],r=[],i=[],a=(0,KL.keyMap)(e,({name:c})=>c),o=(0,KL.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var eC=w(Bt=>{"use strict";m();T();N();Object.defineProperty(Bt,"__esModule",{value:!0});Object.defineProperty(Bt,"BreakingChangeType",{enumerable:!0,get:function(){return AN.BreakingChangeType}});Object.defineProperty(Bt,"DangerousChangeType",{enumerable:!0,get:function(){return AN.DangerousChangeType}});Object.defineProperty(Bt,"TypeInfo",{enumerable:!0,get:function(){return XL.TypeInfo}});Object.defineProperty(Bt,"assertValidName",{enumerable:!0,get:function(){return ZL.assertValidName}});Object.defineProperty(Bt,"astFromValue",{enumerable:!0,get:function(){return $X.astFromValue}});Object.defineProperty(Bt,"buildASTSchema",{enumerable:!0,get:function(){return WL.buildASTSchema}});Object.defineProperty(Bt,"buildClientSchema",{enumerable:!0,get:function(){return xX.buildClientSchema}});Object.defineProperty(Bt,"buildSchema",{enumerable:!0,get:function(){return WL.buildSchema}});Object.defineProperty(Bt,"coerceInputValue",{enumerable:!0,get:function(){return QX.coerceInputValue}});Object.defineProperty(Bt,"concatAST",{enumerable:!0,get:function(){return YX.concatAST}});Object.defineProperty(Bt,"doTypesOverlap",{enumerable:!0,get:function(){return uv.doTypesOverlap}});Object.defineProperty(Bt,"extendSchema",{enumerable:!0,get:function(){return qX.extendSchema}});Object.defineProperty(Bt,"findBreakingChanges",{enumerable:!0,get:function(){return AN.findBreakingChanges}});Object.defineProperty(Bt,"findDangerousChanges",{enumerable:!0,get:function(){return AN.findDangerousChanges}});Object.defineProperty(Bt,"getIntrospectionQuery",{enumerable:!0,get:function(){return BX.getIntrospectionQuery}});Object.defineProperty(Bt,"getOperationAST",{enumerable:!0,get:function(){return UX.getOperationAST}});Object.defineProperty(Bt,"getOperationRootType",{enumerable:!0,get:function(){return kX.getOperationRootType}});Object.defineProperty(Bt,"introspectionFromSchema",{enumerable:!0,get:function(){return MX.introspectionFromSchema}});Object.defineProperty(Bt,"isEqualType",{enumerable:!0,get:function(){return uv.isEqualType}});Object.defineProperty(Bt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return uv.isTypeSubTypeOf}});Object.defineProperty(Bt,"isValidNameError",{enumerable:!0,get:function(){return ZL.isValidNameError}});Object.defineProperty(Bt,"lexicographicSortSchema",{enumerable:!0,get:function(){return VX.lexicographicSortSchema}});Object.defineProperty(Bt,"printIntrospectionSchema",{enumerable:!0,get:function(){return ov.printIntrospectionSchema}});Object.defineProperty(Bt,"printSchema",{enumerable:!0,get:function(){return ov.printSchema}});Object.defineProperty(Bt,"printType",{enumerable:!0,get:function(){return ov.printType}});Object.defineProperty(Bt,"separateOperations",{enumerable:!0,get:function(){return JX.separateOperations}});Object.defineProperty(Bt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return HX.stripIgnoredCharacters}});Object.defineProperty(Bt,"typeFromAST",{enumerable:!0,get:function(){return jX.typeFromAST}});Object.defineProperty(Bt,"valueFromAST",{enumerable:!0,get:function(){return KX.valueFromAST}});Object.defineProperty(Bt,"valueFromASTUntyped",{enumerable:!0,get:function(){return GX.valueFromASTUntyped}});Object.defineProperty(Bt,"visitWithTypeInfo",{enumerable:!0,get:function(){return XL.visitWithTypeInfo}});var BX=K_(),UX=cL(),kX=lL(),MX=dL(),xX=fL(),WL=vL(),qX=H_(),VX=DL(),ov=LL(),jX=Aa(),KX=np(),GX=aI(),$X=Qd(),XL=Hm(),QX=Rg(),YX=CL(),JX=kL(),HX=qL(),uv=xd(),ZL=jL(),AN=zL()});var Ae=w(V=>{"use strict";m();T();N();Object.defineProperty(V,"__esModule",{value:!0});Object.defineProperty(V,"BREAK",{enumerable:!0,get:function(){return Kt.BREAK}});Object.defineProperty(V,"BreakingChangeType",{enumerable:!0,get:function(){return Gt.BreakingChangeType}});Object.defineProperty(V,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ie.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(V,"DangerousChangeType",{enumerable:!0,get:function(){return Gt.DangerousChangeType}});Object.defineProperty(V,"DirectiveLocation",{enumerable:!0,get:function(){return Kt.DirectiveLocation}});Object.defineProperty(V,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Tt.ExecutableDefinitionsRule}});Object.defineProperty(V,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Tt.FieldsOnCorrectTypeRule}});Object.defineProperty(V,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Tt.FragmentsOnCompositeTypesRule}});Object.defineProperty(V,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MAX_INT}});Object.defineProperty(V,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MIN_INT}});Object.defineProperty(V,"GraphQLBoolean",{enumerable:!0,get:function(){return Ie.GraphQLBoolean}});Object.defineProperty(V,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ie.GraphQLDeprecatedDirective}});Object.defineProperty(V,"GraphQLDirective",{enumerable:!0,get:function(){return Ie.GraphQLDirective}});Object.defineProperty(V,"GraphQLEnumType",{enumerable:!0,get:function(){return Ie.GraphQLEnumType}});Object.defineProperty(V,"GraphQLError",{enumerable:!0,get:function(){return Tp.GraphQLError}});Object.defineProperty(V,"GraphQLFloat",{enumerable:!0,get:function(){return Ie.GraphQLFloat}});Object.defineProperty(V,"GraphQLID",{enumerable:!0,get:function(){return Ie.GraphQLID}});Object.defineProperty(V,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ie.GraphQLIncludeDirective}});Object.defineProperty(V,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ie.GraphQLInputObjectType}});Object.defineProperty(V,"GraphQLInt",{enumerable:!0,get:function(){return Ie.GraphQLInt}});Object.defineProperty(V,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ie.GraphQLInterfaceType}});Object.defineProperty(V,"GraphQLList",{enumerable:!0,get:function(){return Ie.GraphQLList}});Object.defineProperty(V,"GraphQLNonNull",{enumerable:!0,get:function(){return Ie.GraphQLNonNull}});Object.defineProperty(V,"GraphQLObjectType",{enumerable:!0,get:function(){return Ie.GraphQLObjectType}});Object.defineProperty(V,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Ie.GraphQLOneOfDirective}});Object.defineProperty(V,"GraphQLScalarType",{enumerable:!0,get:function(){return Ie.GraphQLScalarType}});Object.defineProperty(V,"GraphQLSchema",{enumerable:!0,get:function(){return Ie.GraphQLSchema}});Object.defineProperty(V,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ie.GraphQLSkipDirective}});Object.defineProperty(V,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ie.GraphQLSpecifiedByDirective}});Object.defineProperty(V,"GraphQLString",{enumerable:!0,get:function(){return Ie.GraphQLString}});Object.defineProperty(V,"GraphQLUnionType",{enumerable:!0,get:function(){return Ie.GraphQLUnionType}});Object.defineProperty(V,"Kind",{enumerable:!0,get:function(){return Kt.Kind}});Object.defineProperty(V,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Tt.KnownArgumentNamesRule}});Object.defineProperty(V,"KnownDirectivesRule",{enumerable:!0,get:function(){return Tt.KnownDirectivesRule}});Object.defineProperty(V,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Tt.KnownFragmentNamesRule}});Object.defineProperty(V,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Tt.KnownTypeNamesRule}});Object.defineProperty(V,"Lexer",{enumerable:!0,get:function(){return Kt.Lexer}});Object.defineProperty(V,"Location",{enumerable:!0,get:function(){return Kt.Location}});Object.defineProperty(V,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Tt.LoneAnonymousOperationRule}});Object.defineProperty(V,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Tt.LoneSchemaDefinitionRule}});Object.defineProperty(V,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Tt.MaxIntrospectionDepthRule}});Object.defineProperty(V,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Tt.NoDeprecatedCustomRule}});Object.defineProperty(V,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Tt.NoFragmentCyclesRule}});Object.defineProperty(V,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Tt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(V,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUndefinedVariablesRule}});Object.defineProperty(V,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Tt.NoUnusedFragmentsRule}});Object.defineProperty(V,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUnusedVariablesRule}});Object.defineProperty(V,"OperationTypeNode",{enumerable:!0,get:function(){return Kt.OperationTypeNode}});Object.defineProperty(V,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Tt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(V,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Tt.PossibleFragmentSpreadsRule}});Object.defineProperty(V,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Tt.PossibleTypeExtensionsRule}});Object.defineProperty(V,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Tt.ProvidedRequiredArgumentsRule}});Object.defineProperty(V,"ScalarLeafsRule",{enumerable:!0,get:function(){return Tt.ScalarLeafsRule}});Object.defineProperty(V,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ie.SchemaMetaFieldDef}});Object.defineProperty(V,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Tt.SingleFieldSubscriptionsRule}});Object.defineProperty(V,"Source",{enumerable:!0,get:function(){return Kt.Source}});Object.defineProperty(V,"Token",{enumerable:!0,get:function(){return Kt.Token}});Object.defineProperty(V,"TokenKind",{enumerable:!0,get:function(){return Kt.TokenKind}});Object.defineProperty(V,"TypeInfo",{enumerable:!0,get:function(){return Gt.TypeInfo}});Object.defineProperty(V,"TypeKind",{enumerable:!0,get:function(){return Ie.TypeKind}});Object.defineProperty(V,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeMetaFieldDef}});Object.defineProperty(V,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeNameMetaFieldDef}});Object.defineProperty(V,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(V,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentNamesRule}});Object.defineProperty(V,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Tt.UniqueDirectiveNamesRule}});Object.defineProperty(V,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Tt.UniqueDirectivesPerLocationRule}});Object.defineProperty(V,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Tt.UniqueEnumValueNamesRule}});Object.defineProperty(V,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(V,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFragmentNamesRule}});Object.defineProperty(V,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Tt.UniqueInputFieldNamesRule}});Object.defineProperty(V,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationNamesRule}});Object.defineProperty(V,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationTypesRule}});Object.defineProperty(V,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Tt.UniqueTypeNamesRule}});Object.defineProperty(V,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Tt.UniqueVariableNamesRule}});Object.defineProperty(V,"ValidationContext",{enumerable:!0,get:function(){return Tt.ValidationContext}});Object.defineProperty(V,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Tt.ValuesOfCorrectTypeRule}});Object.defineProperty(V,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Tt.VariablesAreInputTypesRule}});Object.defineProperty(V,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Tt.VariablesInAllowedPositionRule}});Object.defineProperty(V,"__Directive",{enumerable:!0,get:function(){return Ie.__Directive}});Object.defineProperty(V,"__DirectiveLocation",{enumerable:!0,get:function(){return Ie.__DirectiveLocation}});Object.defineProperty(V,"__EnumValue",{enumerable:!0,get:function(){return Ie.__EnumValue}});Object.defineProperty(V,"__Field",{enumerable:!0,get:function(){return Ie.__Field}});Object.defineProperty(V,"__InputValue",{enumerable:!0,get:function(){return Ie.__InputValue}});Object.defineProperty(V,"__Schema",{enumerable:!0,get:function(){return Ie.__Schema}});Object.defineProperty(V,"__Type",{enumerable:!0,get:function(){return Ie.__Type}});Object.defineProperty(V,"__TypeKind",{enumerable:!0,get:function(){return Ie.__TypeKind}});Object.defineProperty(V,"assertAbstractType",{enumerable:!0,get:function(){return Ie.assertAbstractType}});Object.defineProperty(V,"assertCompositeType",{enumerable:!0,get:function(){return Ie.assertCompositeType}});Object.defineProperty(V,"assertDirective",{enumerable:!0,get:function(){return Ie.assertDirective}});Object.defineProperty(V,"assertEnumType",{enumerable:!0,get:function(){return Ie.assertEnumType}});Object.defineProperty(V,"assertEnumValueName",{enumerable:!0,get:function(){return Ie.assertEnumValueName}});Object.defineProperty(V,"assertInputObjectType",{enumerable:!0,get:function(){return Ie.assertInputObjectType}});Object.defineProperty(V,"assertInputType",{enumerable:!0,get:function(){return Ie.assertInputType}});Object.defineProperty(V,"assertInterfaceType",{enumerable:!0,get:function(){return Ie.assertInterfaceType}});Object.defineProperty(V,"assertLeafType",{enumerable:!0,get:function(){return Ie.assertLeafType}});Object.defineProperty(V,"assertListType",{enumerable:!0,get:function(){return Ie.assertListType}});Object.defineProperty(V,"assertName",{enumerable:!0,get:function(){return Ie.assertName}});Object.defineProperty(V,"assertNamedType",{enumerable:!0,get:function(){return Ie.assertNamedType}});Object.defineProperty(V,"assertNonNullType",{enumerable:!0,get:function(){return Ie.assertNonNullType}});Object.defineProperty(V,"assertNullableType",{enumerable:!0,get:function(){return Ie.assertNullableType}});Object.defineProperty(V,"assertObjectType",{enumerable:!0,get:function(){return Ie.assertObjectType}});Object.defineProperty(V,"assertOutputType",{enumerable:!0,get:function(){return Ie.assertOutputType}});Object.defineProperty(V,"assertScalarType",{enumerable:!0,get:function(){return Ie.assertScalarType}});Object.defineProperty(V,"assertSchema",{enumerable:!0,get:function(){return Ie.assertSchema}});Object.defineProperty(V,"assertType",{enumerable:!0,get:function(){return Ie.assertType}});Object.defineProperty(V,"assertUnionType",{enumerable:!0,get:function(){return Ie.assertUnionType}});Object.defineProperty(V,"assertValidName",{enumerable:!0,get:function(){return Gt.assertValidName}});Object.defineProperty(V,"assertValidSchema",{enumerable:!0,get:function(){return Ie.assertValidSchema}});Object.defineProperty(V,"assertWrappingType",{enumerable:!0,get:function(){return Ie.assertWrappingType}});Object.defineProperty(V,"astFromValue",{enumerable:!0,get:function(){return Gt.astFromValue}});Object.defineProperty(V,"buildASTSchema",{enumerable:!0,get:function(){return Gt.buildASTSchema}});Object.defineProperty(V,"buildClientSchema",{enumerable:!0,get:function(){return Gt.buildClientSchema}});Object.defineProperty(V,"buildSchema",{enumerable:!0,get:function(){return Gt.buildSchema}});Object.defineProperty(V,"coerceInputValue",{enumerable:!0,get:function(){return Gt.coerceInputValue}});Object.defineProperty(V,"concatAST",{enumerable:!0,get:function(){return Gt.concatAST}});Object.defineProperty(V,"createSourceEventStream",{enumerable:!0,get:function(){return Ca.createSourceEventStream}});Object.defineProperty(V,"defaultFieldResolver",{enumerable:!0,get:function(){return Ca.defaultFieldResolver}});Object.defineProperty(V,"defaultTypeResolver",{enumerable:!0,get:function(){return Ca.defaultTypeResolver}});Object.defineProperty(V,"doTypesOverlap",{enumerable:!0,get:function(){return Gt.doTypesOverlap}});Object.defineProperty(V,"execute",{enumerable:!0,get:function(){return Ca.execute}});Object.defineProperty(V,"executeSync",{enumerable:!0,get:function(){return Ca.executeSync}});Object.defineProperty(V,"extendSchema",{enumerable:!0,get:function(){return Gt.extendSchema}});Object.defineProperty(V,"findBreakingChanges",{enumerable:!0,get:function(){return Gt.findBreakingChanges}});Object.defineProperty(V,"findDangerousChanges",{enumerable:!0,get:function(){return Gt.findDangerousChanges}});Object.defineProperty(V,"formatError",{enumerable:!0,get:function(){return Tp.formatError}});Object.defineProperty(V,"getArgumentValues",{enumerable:!0,get:function(){return Ca.getArgumentValues}});Object.defineProperty(V,"getDirectiveValues",{enumerable:!0,get:function(){return Ca.getDirectiveValues}});Object.defineProperty(V,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Kt.getEnterLeaveForKind}});Object.defineProperty(V,"getIntrospectionQuery",{enumerable:!0,get:function(){return Gt.getIntrospectionQuery}});Object.defineProperty(V,"getLocation",{enumerable:!0,get:function(){return Kt.getLocation}});Object.defineProperty(V,"getNamedType",{enumerable:!0,get:function(){return Ie.getNamedType}});Object.defineProperty(V,"getNullableType",{enumerable:!0,get:function(){return Ie.getNullableType}});Object.defineProperty(V,"getOperationAST",{enumerable:!0,get:function(){return Gt.getOperationAST}});Object.defineProperty(V,"getOperationRootType",{enumerable:!0,get:function(){return Gt.getOperationRootType}});Object.defineProperty(V,"getVariableValues",{enumerable:!0,get:function(){return Ca.getVariableValues}});Object.defineProperty(V,"getVisitFn",{enumerable:!0,get:function(){return Kt.getVisitFn}});Object.defineProperty(V,"graphql",{enumerable:!0,get:function(){return nC.graphql}});Object.defineProperty(V,"graphqlSync",{enumerable:!0,get:function(){return nC.graphqlSync}});Object.defineProperty(V,"introspectionFromSchema",{enumerable:!0,get:function(){return Gt.introspectionFromSchema}});Object.defineProperty(V,"introspectionTypes",{enumerable:!0,get:function(){return Ie.introspectionTypes}});Object.defineProperty(V,"isAbstractType",{enumerable:!0,get:function(){return Ie.isAbstractType}});Object.defineProperty(V,"isCompositeType",{enumerable:!0,get:function(){return Ie.isCompositeType}});Object.defineProperty(V,"isConstValueNode",{enumerable:!0,get:function(){return Kt.isConstValueNode}});Object.defineProperty(V,"isDefinitionNode",{enumerable:!0,get:function(){return Kt.isDefinitionNode}});Object.defineProperty(V,"isDirective",{enumerable:!0,get:function(){return Ie.isDirective}});Object.defineProperty(V,"isEnumType",{enumerable:!0,get:function(){return Ie.isEnumType}});Object.defineProperty(V,"isEqualType",{enumerable:!0,get:function(){return Gt.isEqualType}});Object.defineProperty(V,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Kt.isExecutableDefinitionNode}});Object.defineProperty(V,"isInputObjectType",{enumerable:!0,get:function(){return Ie.isInputObjectType}});Object.defineProperty(V,"isInputType",{enumerable:!0,get:function(){return Ie.isInputType}});Object.defineProperty(V,"isInterfaceType",{enumerable:!0,get:function(){return Ie.isInterfaceType}});Object.defineProperty(V,"isIntrospectionType",{enumerable:!0,get:function(){return Ie.isIntrospectionType}});Object.defineProperty(V,"isLeafType",{enumerable:!0,get:function(){return Ie.isLeafType}});Object.defineProperty(V,"isListType",{enumerable:!0,get:function(){return Ie.isListType}});Object.defineProperty(V,"isNamedType",{enumerable:!0,get:function(){return Ie.isNamedType}});Object.defineProperty(V,"isNonNullType",{enumerable:!0,get:function(){return Ie.isNonNullType}});Object.defineProperty(V,"isNullableType",{enumerable:!0,get:function(){return Ie.isNullableType}});Object.defineProperty(V,"isObjectType",{enumerable:!0,get:function(){return Ie.isObjectType}});Object.defineProperty(V,"isOutputType",{enumerable:!0,get:function(){return Ie.isOutputType}});Object.defineProperty(V,"isRequiredArgument",{enumerable:!0,get:function(){return Ie.isRequiredArgument}});Object.defineProperty(V,"isRequiredInputField",{enumerable:!0,get:function(){return Ie.isRequiredInputField}});Object.defineProperty(V,"isScalarType",{enumerable:!0,get:function(){return Ie.isScalarType}});Object.defineProperty(V,"isSchema",{enumerable:!0,get:function(){return Ie.isSchema}});Object.defineProperty(V,"isSelectionNode",{enumerable:!0,get:function(){return Kt.isSelectionNode}});Object.defineProperty(V,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ie.isSpecifiedDirective}});Object.defineProperty(V,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ie.isSpecifiedScalarType}});Object.defineProperty(V,"isType",{enumerable:!0,get:function(){return Ie.isType}});Object.defineProperty(V,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Kt.isTypeDefinitionNode}});Object.defineProperty(V,"isTypeExtensionNode",{enumerable:!0,get:function(){return Kt.isTypeExtensionNode}});Object.defineProperty(V,"isTypeNode",{enumerable:!0,get:function(){return Kt.isTypeNode}});Object.defineProperty(V,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Gt.isTypeSubTypeOf}});Object.defineProperty(V,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Kt.isTypeSystemDefinitionNode}});Object.defineProperty(V,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Kt.isTypeSystemExtensionNode}});Object.defineProperty(V,"isUnionType",{enumerable:!0,get:function(){return Ie.isUnionType}});Object.defineProperty(V,"isValidNameError",{enumerable:!0,get:function(){return Gt.isValidNameError}});Object.defineProperty(V,"isValueNode",{enumerable:!0,get:function(){return Kt.isValueNode}});Object.defineProperty(V,"isWrappingType",{enumerable:!0,get:function(){return Ie.isWrappingType}});Object.defineProperty(V,"lexicographicSortSchema",{enumerable:!0,get:function(){return Gt.lexicographicSortSchema}});Object.defineProperty(V,"locatedError",{enumerable:!0,get:function(){return Tp.locatedError}});Object.defineProperty(V,"parse",{enumerable:!0,get:function(){return Kt.parse}});Object.defineProperty(V,"parseConstValue",{enumerable:!0,get:function(){return Kt.parseConstValue}});Object.defineProperty(V,"parseType",{enumerable:!0,get:function(){return Kt.parseType}});Object.defineProperty(V,"parseValue",{enumerable:!0,get:function(){return Kt.parseValue}});Object.defineProperty(V,"print",{enumerable:!0,get:function(){return Kt.print}});Object.defineProperty(V,"printError",{enumerable:!0,get:function(){return Tp.printError}});Object.defineProperty(V,"printIntrospectionSchema",{enumerable:!0,get:function(){return Gt.printIntrospectionSchema}});Object.defineProperty(V,"printLocation",{enumerable:!0,get:function(){return Kt.printLocation}});Object.defineProperty(V,"printSchema",{enumerable:!0,get:function(){return Gt.printSchema}});Object.defineProperty(V,"printSourceLocation",{enumerable:!0,get:function(){return Kt.printSourceLocation}});Object.defineProperty(V,"printType",{enumerable:!0,get:function(){return Gt.printType}});Object.defineProperty(V,"recommendedRules",{enumerable:!0,get:function(){return Tt.recommendedRules}});Object.defineProperty(V,"resolveObjMapThunk",{enumerable:!0,get:function(){return Ie.resolveObjMapThunk}});Object.defineProperty(V,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Ie.resolveReadonlyArrayThunk}});Object.defineProperty(V,"responsePathAsArray",{enumerable:!0,get:function(){return Ca.responsePathAsArray}});Object.defineProperty(V,"separateOperations",{enumerable:!0,get:function(){return Gt.separateOperations}});Object.defineProperty(V,"specifiedDirectives",{enumerable:!0,get:function(){return Ie.specifiedDirectives}});Object.defineProperty(V,"specifiedRules",{enumerable:!0,get:function(){return Tt.specifiedRules}});Object.defineProperty(V,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ie.specifiedScalarTypes}});Object.defineProperty(V,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Gt.stripIgnoredCharacters}});Object.defineProperty(V,"subscribe",{enumerable:!0,get:function(){return Ca.subscribe}});Object.defineProperty(V,"syntaxError",{enumerable:!0,get:function(){return Tp.syntaxError}});Object.defineProperty(V,"typeFromAST",{enumerable:!0,get:function(){return Gt.typeFromAST}});Object.defineProperty(V,"validate",{enumerable:!0,get:function(){return Tt.validate}});Object.defineProperty(V,"validateSchema",{enumerable:!0,get:function(){return Ie.validateSchema}});Object.defineProperty(V,"valueFromAST",{enumerable:!0,get:function(){return Gt.valueFromAST}});Object.defineProperty(V,"valueFromASTUntyped",{enumerable:!0,get:function(){return Gt.valueFromASTUntyped}});Object.defineProperty(V,"version",{enumerable:!0,get:function(){return tC.version}});Object.defineProperty(V,"versionInfo",{enumerable:!0,get:function(){return tC.versionInfo}});Object.defineProperty(V,"visit",{enumerable:!0,get:function(){return Kt.visit}});Object.defineProperty(V,"visitInParallel",{enumerable:!0,get:function(){return Kt.visitInParallel}});Object.defineProperty(V,"visitWithTypeInfo",{enumerable:!0,get:function(){return Gt.visitWithTypeInfo}});var tC=zR(),nC=Gw(),Ie=Yw(),Kt=Hw(),Ca=rL(),Tt=oL(),Tp=uL(),Gt=eC()});var ur=w(F=>{"use strict";m();T();N();Object.defineProperty(F,"__esModule",{value:!0});F.FLOAT_SCALAR=F.FIRST_ORDINAL=F.FIELD_DEFINITION_UPPER=F.FIELDS=F.FIELD_SET_SCALAR=F.FIELD_UPPER=F.FIELD_PATH=F.FIELD=F.EXTENSIONS=F.EXTENDS=F.EXTERNAL=F.EXECUTION=F.ENUM_VALUE_UPPER=F.ENUM_VALUE=F.ENUM_UPPER=F.ENUM=F.ENTITY_UNION=F.ENTITIES_FIELD=F.ENTITIES=F.EDFS_REDIS_SUBSCRIBE=F.EDFS_REDIS_PUBLISH=F.EDFS_NATS_STREAM_CONFIGURATION=F.EDFS_PUBLISH_RESULT=F.EDFS_NATS_SUBSCRIBE=F.EDFS_NATS_REQUEST=F.EDFS_NATS_PUBLISH=F.EDFS_KAFKA_SUBSCRIBE=F.EDFS_KAFKA_PUBLISH=F.DIRECTIVE_DEFINITION=F.DESCRIPTION_OVERRIDE=F.DEPRECATED_DEFAULT_ARGUMENT_VALUE=F.DEPRECATED=F.DEFAULT_SUBSCRIPTION=F.DEFAULT_QUERY=F.DEFAULT_MUTATION=F.DEFAULT_EDFS_PROVIDER_ID=F.DEFAULT=F.CONSUMER_NAME=F.CONFIGURE_CHILD_DESCRIPTIONS=F.CONFIGURE_DESCRIPTION=F.CONDITION=F.COMPOSE_DIRECTIVE=F.BOOLEAN_SCALAR=F.BOOLEAN=F.ARGUMENT_DEFINITION_UPPER=F.AUTHENTICATED=F.ARGUMENT=F.ANY_SCALAR=F.AND_UPPER=F.AS=void 0;F.PARENT_DEFINITION_DATA=F.OVERRIDE=F.OR_UPPER=F.OBJECT_UPPER=F.OBJECT=F.OPERATION_TO_DEFAULT=F.NULL=F.NOT_UPPER=F.NON_NULLABLE_STRING=F.NON_NULLABLE_INT=F.NON_NULLABLE_BOOLEAN=F.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=F.NAME=F.NOT_APPLICABLE=F.PROVIDER_TYPE_REDIS=F.PROVIDER_TYPE_NATS=F.PROVIDER_TYPE_KAFKA=F.PROPAGATE=F.MUTATION_UPPER=F.MUTATION=F.NUMBER=F.LITERAL_NEW_LINE=F.LITERAL_SPACE=F.LIST=F.LINK_PURPOSE=F.LINK_IMPORT=F.LINK=F.LEFT_PARENTHESIS=F.KEY=F.INTERFACE_OBJECT=F.INTERFACE_UPPER=F.INTERFACE=F.INT_SCALAR=F.INPUT_VALUE=F.INPUT_OBJECT_UPPER=F.INPUT_OBJECT=F.INPUT_FIELD_DEFINITION_UPPER=F.INPUT_FIELD=F.INPUT=F.INLINE_FRAGMENT_UPPER=F.INLINE_FRAGMENT=F.INACCESSIBLE=F.IN_UPPER=F.IMPORT=F.ID_SCALAR=F.HYPHEN_JOIN=F.FROM=F.FRAGMENT_SPREAD_UPPER=F.FRAGMENT_DEFINITION_UPPER=F.FOR=void 0;F.CHANNEL=F.VARIABLE_DEFINITION_UPPER=F.VALUES=F.URL_LOWER=F.UNION_UPPER=F.UNION=F.TOPICS=F.TOPIC=F.TAG=F.SUCCESS=F.SUBSCRIPTION_UPPER=F.SUBSCRIBE=F.SUBSCRIPTION_FILTER_VALUE=F.SUBSCRIPTION_FILTER_CONDITION=F.SUBSCRIPTION_FILTER=F.SUBSCRIPTION_FIELD_CONDITION=F.SUBSCRIPTION=F.SUBJECTS=F.SUBJECT=F.STRING_SCALAR=F.STRING=F.STREAM_NAME=F.CONSUMER_INACTIVE_THRESHOLD=F.STREAM_CONFIGURATION=F.SPECIFIED_BY=F.SHAREABLE=F.SERVICE_FIELD=F.SERVICE_OBJECT=F.SELECTION_REPRESENTATION=F.SECURITY=F.SCOPE_SCALAR=F.SCOPES=F.SCHEMA_UPPER=F.SCHEMA=F.SCALAR_UPPER=F.SCALAR=F.RESOLVABLE=F.REQUIRES_SCOPES=F.REQUIRES=F.REQUEST=F.REASON=F.QUOTATION_JOIN=F.QUERY_UPPER=F.QUERY=F.PUBLISH=F.PROVIDES=F.PROVIDER_ID=F.PERIOD=F.PARENT_EXTENSION_DATA_MAP=F.PARENT_DEFINITION_DATA_MAP=void 0;F.OUTPUT_NODE_KINDS=F.INPUT_NODE_KINDS=F.IGNORED_FIELDS=F.INHERITABLE_DIRECTIVE_NAMES=F.PERSISTED_CLIENT_DIRECTIVES=F.AUTHORIZATION_DIRECTIVES=F.ROOT_TYPE_NAMES=F.EXECUTABLE_DIRECTIVE_LOCATIONS=F.CHANNELS=void 0;var iu=Ae();F.AS="as";F.AND_UPPER="AND";F.ANY_SCALAR="_Any";F.ARGUMENT="argument";F.AUTHENTICATED="authenticated";F.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";F.BOOLEAN="boolean";F.BOOLEAN_SCALAR="Boolean";F.COMPOSE_DIRECTIVE="composeDirective";F.CONDITION="condition";F.CONFIGURE_DESCRIPTION="openfed__configureDescription";F.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";F.CONSUMER_NAME="consumerName";F.DEFAULT="default";F.DEFAULT_EDFS_PROVIDER_ID="default";F.DEFAULT_MUTATION="Mutation";F.DEFAULT_QUERY="Query";F.DEFAULT_SUBSCRIPTION="Subscription";F.DEPRECATED="deprecated";F.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";F.DESCRIPTION_OVERRIDE="descriptionOverride";F.DIRECTIVE_DEFINITION="directive definition";F.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";F.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";F.EDFS_NATS_PUBLISH="edfs__natsPublish";F.EDFS_NATS_REQUEST="edfs__natsRequest";F.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";F.EDFS_PUBLISH_RESULT="edfs__PublishResult";F.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";F.EDFS_REDIS_PUBLISH="edfs__redisPublish";F.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";F.ENTITIES="entities";F.ENTITIES_FIELD="_entities";F.ENTITY_UNION="_Entity";F.ENUM="Enum";F.ENUM_UPPER="ENUM";F.ENUM_VALUE="Enum Value";F.ENUM_VALUE_UPPER="ENUM_VALUE";F.EXECUTION="EXECUTION";F.EXTERNAL="external";F.EXTENDS="extends";F.EXTENSIONS="extensions";F.FIELD="field";F.FIELD_PATH="fieldPath";F.FIELD_UPPER="FIELD";F.FIELD_SET_SCALAR="openfed__FieldSet";F.FIELDS="fields";F.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";F.FIRST_ORDINAL="1st";F.FLOAT_SCALAR="Float";F.FOR="for";F.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";F.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";F.FROM="from";F.HYPHEN_JOIN=` - -`;F.ID_SCALAR="ID";F.IMPORT="import";F.IN_UPPER="IN";F.INACCESSIBLE="inaccessible";F.INLINE_FRAGMENT="inlineFragment";F.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";F.INPUT="Input";F.INPUT_FIELD="Input field";F.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";F.INPUT_OBJECT="Input Object";F.INPUT_OBJECT_UPPER="INPUT_OBJECT";F.INPUT_VALUE="Input Value";F.INT_SCALAR="Int";F.INTERFACE="Interface";F.INTERFACE_UPPER="INTERFACE";F.INTERFACE_OBJECT="interfaceObject";F.KEY="key";F.LEFT_PARENTHESIS="(";F.LINK="link";F.LINK_IMPORT="link__Import";F.LINK_PURPOSE="link__Purpose";F.LIST="list";F.LITERAL_SPACE=" ";F.LITERAL_NEW_LINE=` -`;F.NUMBER="number";F.MUTATION="Mutation";F.MUTATION_UPPER="MUTATION";F.PROPAGATE="propagate";F.PROVIDER_TYPE_KAFKA="kafka";F.PROVIDER_TYPE_NATS="nats";F.PROVIDER_TYPE_REDIS="redis";F.NOT_APPLICABLE="N/A";F.NAME="name";F.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";F.NON_NULLABLE_BOOLEAN="Boolean!";F.NON_NULLABLE_INT="Int!";F.NON_NULLABLE_STRING="String!";F.NOT_UPPER="NOT";F.NULL="Null";F.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";F.OBJECT="Object";F.OBJECT_UPPER="OBJECT";F.OR_UPPER="OR";F.OVERRIDE="override";F.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";F.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";F.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";F.PERIOD=".";F.PROVIDER_ID="providerId";F.PROVIDES="provides";F.PUBLISH="publish";F.QUERY="Query";F.QUERY_UPPER="QUERY";F.QUOTATION_JOIN='", "';F.REASON="reason";F.REQUEST="request";F.REQUIRES="requires";F.REQUIRES_SCOPES="requiresScopes";F.RESOLVABLE="resolvable";F.SCALAR="Scalar";F.SCALAR_UPPER="SCALAR";F.SCHEMA="schema";F.SCHEMA_UPPER="SCHEMA";F.SCOPES="scopes";F.SCOPE_SCALAR="openfed__Scope";F.SECURITY="SECURITY";F.SELECTION_REPRESENTATION=" { ... }";F.SERVICE_OBJECT="_Service";F.SERVICE_FIELD="_service";F.SHAREABLE="shareable";F.SPECIFIED_BY="specifiedBy";F.STREAM_CONFIGURATION="streamConfiguration";F.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";F.STREAM_NAME="streamName";F.STRING="string";F.STRING_SCALAR="String";F.SUBJECT="subject";F.SUBJECTS="subjects";F.SUBSCRIPTION="Subscription";F.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";F.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";F.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";F.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";F.SUBSCRIBE="subscribe";F.SUBSCRIPTION_UPPER="SUBSCRIPTION";F.SUCCESS="success";F.TAG="tag";F.TOPIC="topic";F.TOPICS="topics";F.UNION="Union";F.UNION_UPPER="UNION";F.URL_LOWER="url";F.VALUES="values";F.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";F.CHANNEL="channel";F.CHANNELS="channels";F.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([F.FIELD_UPPER,F.FRAGMENT_DEFINITION_UPPER,F.FRAGMENT_SPREAD_UPPER,F.INLINE_FRAGMENT_UPPER,F.MUTATION_UPPER,F.QUERY_UPPER,F.SUBSCRIPTION_UPPER]);F.ROOT_TYPE_NAMES=new Set([F.MUTATION,F.QUERY,F.SUBSCRIPTION]);F.AUTHORIZATION_DIRECTIVES=new Set([F.AUTHENTICATED,F.REQUIRES_SCOPES]);F.PERSISTED_CLIENT_DIRECTIVES=new Set([F.DEPRECATED]);F.INHERITABLE_DIRECTIVE_NAMES=new Set([F.EXTERNAL,F.SHAREABLE]);F.IGNORED_FIELDS=new Set([F.ENTITIES_FIELD,F.SERVICE_FIELD]);F.INPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INPUT_OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION]);F.OUTPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INTERFACE_TYPE_DEFINITION,iu.Kind.OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION,iu.Kind.UNION_TYPE_DEFINITION])});var Yr=w($n=>{"use strict";m();T();N();Object.defineProperty($n,"__esModule",{value:!0});$n.operationTypeNodeToDefaultType=void 0;$n.isObjectLikeNodeEntity=zX;$n.isNodeInterfaceObject=WX;$n.stringToNameNode=PN;$n.stringArrayToNameNodeArray=XX;$n.setToNameNodeArray=ZX;$n.stringToNamedTypeNode=rC;$n.setToNamedTypeNodeArray=e9;$n.nodeKindToDirectiveLocation=t9;$n.isKindAbstract=n9;$n.extractExecutableDirectiveLocations=r9;$n.formatDescription=i9;$n.lexicographicallySortArgumentNodes=iC;$n.lexicographicallySortSelectionSetNode=RN;$n.lexicographicallySortDocumentNode=a9;$n.parse=aC;$n.safeParse=s9;var Ut=Ae(),vn=ur();function zX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.KEY)return!0;return!1}function WX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.INTERFACE_OBJECT)return!0;return!1}function PN(e){return{kind:Ut.Kind.NAME,value:e}}function XX(e){let t=[];for(let n of e)t.push(PN(n));return t}function ZX(e){let t=[];for(let n of e)t.push(PN(n));return t}function rC(e){return{kind:Ut.Kind.NAMED_TYPE,name:PN(e)}}function e9(e){let t=[];for(let n of e)t.push(rC(n));return t}function t9(e){switch(e){case Ut.Kind.ARGUMENT:return vn.ARGUMENT_DEFINITION_UPPER;case Ut.Kind.ENUM_TYPE_DEFINITION:case Ut.Kind.ENUM_TYPE_EXTENSION:return vn.ENUM_UPPER;case Ut.Kind.ENUM_VALUE_DEFINITION:return vn.ENUM_VALUE_UPPER;case Ut.Kind.FIELD_DEFINITION:return vn.FIELD_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_DEFINITION:return vn.FRAGMENT_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_SPREAD:return vn.FRAGMENT_SPREAD_UPPER;case Ut.Kind.INLINE_FRAGMENT:return vn.INLINE_FRAGMENT_UPPER;case Ut.Kind.INPUT_VALUE_DEFINITION:return vn.INPUT_FIELD_DEFINITION_UPPER;case Ut.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ut.Kind.INPUT_OBJECT_TYPE_EXTENSION:return vn.INPUT_OBJECT_UPPER;case Ut.Kind.INTERFACE_TYPE_DEFINITION:case Ut.Kind.INTERFACE_TYPE_EXTENSION:return vn.INTERFACE_UPPER;case Ut.Kind.OBJECT_TYPE_DEFINITION:case Ut.Kind.OBJECT_TYPE_EXTENSION:return vn.OBJECT_UPPER;case Ut.Kind.SCALAR_TYPE_DEFINITION:case Ut.Kind.SCALAR_TYPE_EXTENSION:return vn.SCALAR_UPPER;case Ut.Kind.SCHEMA_DEFINITION:case Ut.Kind.SCHEMA_EXTENSION:return vn.SCHEMA_UPPER;case Ut.Kind.UNION_TYPE_DEFINITION:case Ut.Kind.UNION_TYPE_EXTENSION:return vn.UNION_UPPER;default:return e}}$n.operationTypeNodeToDefaultType=new Map([[Ut.OperationTypeNode.MUTATION,vn.MUTATION],[Ut.OperationTypeNode.QUERY,vn.QUERY],[Ut.OperationTypeNode.SUBSCRIPTION,vn.SUBSCRIPTION]]);function n9(e){return e===Ut.Kind.INTERFACE_TYPE_DEFINITION||e===Ut.Kind.UNION_TYPE_DEFINITION}function r9(e,t){for(let n of e){let r=n.value;vn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function i9(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` +`}});var CL=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.concatAST=fX;var pX=Pt();function fX(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:pX.Kind.DOCUMENT,definitions:t}}});var kL=w(iv=>{"use strict";m();T();N();Object.defineProperty(iv,"__esModule",{value:!0});iv.separateOperations=NX;var DN=Pt(),mX=Vu();function NX(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case DN.Kind.OPERATION_DEFINITION:t.push(i);break;case DN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=BL(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of BL(i.selectionSet))UL(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:DN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===DN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function UL(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)UL(e,t,i)}}function BL(e){let t=[];return(0,mX.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var qL=w(sv=>{"use strict";m();T();N();Object.defineProperty(sv,"__esModule",{value:!0});sv.stripIgnoredCharacters=EX;var TX=Sd(),ML=Em(),xL=gm(),av=Dd();function EX(e){let t=(0,xL.isSource)(e)?e:new xL.Source(e),n=t.body,r=new ML.Lexer(t),i="",a=!1;for(;r.advance().kind!==av.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,ML.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===av.TokenKind.SPREAD)&&(i+=" ");let p=n.slice(o.start,o.end);c===av.TokenKind.BLOCK_STRING?i+=(0,TX.printBlockString)(o.value,{minimize:!0}):i+=p,a=l}return i}});var jL=w(bN=>{"use strict";m();T();N();Object.defineProperty(bN,"__esModule",{value:!0});bN.assertValidName=gX;bN.isValidNameError=VL;var hX=Lr(),yX=He(),IX=Cd();function gX(e){let t=VL(e);if(t)throw t;return e}function VL(e){if(typeof e=="string"||(0,hX.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new yX.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,IX.assertName)(e)}catch(t){return t}}});var zL=w(La=>{"use strict";m();T();N();Object.defineProperty(La,"__esModule",{value:!0});La.DangerousChangeType=La.BreakingChangeType=void 0;La.findBreakingChanges=bX;La.findDangerousChanges=AX;var _X=Yt(),JL=yr(),KL=zo(),vX=ci(),qt=Ft(),SX=ba(),OX=Qd(),DX=cg(),wn;La.BreakingChangeType=wn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(wn||(La.BreakingChangeType=wn={}));var ra;La.DangerousChangeType=ra;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ra||(La.DangerousChangeType=ra={}));function bX(e,t){return HL(e,t).filter(n=>n.type in wn)}function AX(e,t){return HL(e,t).filter(n=>n.type in ra)}function HL(e,t){return[...PX(e,t),...RX(e,t)]}function RX(e,t){let n=[],r=Ns(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:wn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=Ns(i.args,a.args);for(let c of o.added)(0,qt.isRequiredArgument)(c)&&n.push({type:wn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:wn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:wn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:wn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function PX(e,t){let n=[],r=Ns(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:wn.TYPE_REMOVED,description:(0,SX.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,qt.isEnumType)(i)&&(0,qt.isEnumType)(a)?n.push(...LX(i,a)):(0,qt.isUnionType)(i)&&(0,qt.isUnionType)(a)?n.push(...wX(i,a)):(0,qt.isInputObjectType)(i)&&(0,qt.isInputObjectType)(a)?n.push(...FX(i,a)):(0,qt.isObjectType)(i)&&(0,qt.isObjectType)(a)?n.push(...$L(i,a),...GL(i,a)):(0,qt.isInterfaceType)(i)&&(0,qt.isInterfaceType)(a)?n.push(...$L(i,a),...GL(i,a)):i.constructor!==a.constructor&&n.push({type:wn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${QL(i)} to ${QL(a)}.`});return n}function FX(e,t){let n=[],r=Ns(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,qt.isRequiredInputField)(i)?n.push({type:wn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ra.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:wn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)Np(i.type,a.type)||n.push({type:wn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function wX(e,t){let n=[],r=Ns(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ra.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:wn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function LX(e,t){let n=[],r=Ns(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ra.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:wn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function GL(e,t){let n=[],r=Ns(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ra.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:wn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function $L(e,t){let n=[],r=Ns(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:wn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...CX(e,i,a)),mp(i.type,a.type)||n.push({type:wn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function CX(e,t,n){let r=[],i=Ns(t.args,n.args);for(let a of i.removed)r.push({type:wn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!Np(a.type,o.type))r.push({type:wn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=YL(a.defaultValue,a.type),p=YL(o.defaultValue,o.type);l!==p&&r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${p}.`})}for(let a of i.added)(0,qt.isRequiredArgument)(a)?r.push({type:wn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:ra.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function mp(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&mp(e.ofType,t.ofType)||(0,qt.isNonNullType)(t)&&mp(e,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&mp(e.ofType,t.ofType):(0,qt.isNamedType)(t)&&e.name===t.name||(0,qt.isNonNullType)(t)&&mp(e,t.ofType)}function Np(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&Np(e.ofType,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&Np(e.ofType,t.ofType)||!(0,qt.isNonNullType)(t)&&Np(e.ofType,t):(0,qt.isNamedType)(t)&&e.name===t.name}function QL(e){if((0,qt.isScalarType)(e))return"a Scalar type";if((0,qt.isObjectType)(e))return"an Object type";if((0,qt.isInterfaceType)(e))return"an Interface type";if((0,qt.isUnionType)(e))return"a Union type";if((0,qt.isEnumType)(e))return"an Enum type";if((0,qt.isInputObjectType)(e))return"an Input type";(0,JL.invariant)(!1,"Unexpected type: "+(0,_X.inspect)(e))}function YL(e,t){let n=(0,OX.astFromValue)(e,t);return n!=null||(0,JL.invariant)(!1),(0,vX.print)((0,DX.sortValueNode)(n))}function Ns(e,t){let n=[],r=[],i=[],a=(0,KL.keyMap)(e,({name:c})=>c),o=(0,KL.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var eC=w(Bt=>{"use strict";m();T();N();Object.defineProperty(Bt,"__esModule",{value:!0});Object.defineProperty(Bt,"BreakingChangeType",{enumerable:!0,get:function(){return AN.BreakingChangeType}});Object.defineProperty(Bt,"DangerousChangeType",{enumerable:!0,get:function(){return AN.DangerousChangeType}});Object.defineProperty(Bt,"TypeInfo",{enumerable:!0,get:function(){return XL.TypeInfo}});Object.defineProperty(Bt,"assertValidName",{enumerable:!0,get:function(){return ZL.assertValidName}});Object.defineProperty(Bt,"astFromValue",{enumerable:!0,get:function(){return $X.astFromValue}});Object.defineProperty(Bt,"buildASTSchema",{enumerable:!0,get:function(){return WL.buildASTSchema}});Object.defineProperty(Bt,"buildClientSchema",{enumerable:!0,get:function(){return xX.buildClientSchema}});Object.defineProperty(Bt,"buildSchema",{enumerable:!0,get:function(){return WL.buildSchema}});Object.defineProperty(Bt,"coerceInputValue",{enumerable:!0,get:function(){return QX.coerceInputValue}});Object.defineProperty(Bt,"concatAST",{enumerable:!0,get:function(){return YX.concatAST}});Object.defineProperty(Bt,"doTypesOverlap",{enumerable:!0,get:function(){return uv.doTypesOverlap}});Object.defineProperty(Bt,"extendSchema",{enumerable:!0,get:function(){return qX.extendSchema}});Object.defineProperty(Bt,"findBreakingChanges",{enumerable:!0,get:function(){return AN.findBreakingChanges}});Object.defineProperty(Bt,"findDangerousChanges",{enumerable:!0,get:function(){return AN.findDangerousChanges}});Object.defineProperty(Bt,"getIntrospectionQuery",{enumerable:!0,get:function(){return BX.getIntrospectionQuery}});Object.defineProperty(Bt,"getOperationAST",{enumerable:!0,get:function(){return UX.getOperationAST}});Object.defineProperty(Bt,"getOperationRootType",{enumerable:!0,get:function(){return kX.getOperationRootType}});Object.defineProperty(Bt,"introspectionFromSchema",{enumerable:!0,get:function(){return MX.introspectionFromSchema}});Object.defineProperty(Bt,"isEqualType",{enumerable:!0,get:function(){return uv.isEqualType}});Object.defineProperty(Bt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return uv.isTypeSubTypeOf}});Object.defineProperty(Bt,"isValidNameError",{enumerable:!0,get:function(){return ZL.isValidNameError}});Object.defineProperty(Bt,"lexicographicSortSchema",{enumerable:!0,get:function(){return VX.lexicographicSortSchema}});Object.defineProperty(Bt,"printIntrospectionSchema",{enumerable:!0,get:function(){return ov.printIntrospectionSchema}});Object.defineProperty(Bt,"printSchema",{enumerable:!0,get:function(){return ov.printSchema}});Object.defineProperty(Bt,"printType",{enumerable:!0,get:function(){return ov.printType}});Object.defineProperty(Bt,"separateOperations",{enumerable:!0,get:function(){return JX.separateOperations}});Object.defineProperty(Bt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return HX.stripIgnoredCharacters}});Object.defineProperty(Bt,"typeFromAST",{enumerable:!0,get:function(){return jX.typeFromAST}});Object.defineProperty(Bt,"valueFromAST",{enumerable:!0,get:function(){return KX.valueFromAST}});Object.defineProperty(Bt,"valueFromASTUntyped",{enumerable:!0,get:function(){return GX.valueFromASTUntyped}});Object.defineProperty(Bt,"visitWithTypeInfo",{enumerable:!0,get:function(){return XL.visitWithTypeInfo}});var BX=K_(),UX=cL(),kX=lL(),MX=dL(),xX=fL(),WL=vL(),qX=H_(),VX=DL(),ov=LL(),jX=Aa(),KX=np(),GX=aI(),$X=Qd(),XL=Hm(),QX=Rg(),YX=CL(),JX=kL(),HX=qL(),uv=xd(),ZL=jL(),AN=zL()});var Ae=w(V=>{"use strict";m();T();N();Object.defineProperty(V,"__esModule",{value:!0});Object.defineProperty(V,"BREAK",{enumerable:!0,get:function(){return Kt.BREAK}});Object.defineProperty(V,"BreakingChangeType",{enumerable:!0,get:function(){return Gt.BreakingChangeType}});Object.defineProperty(V,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ie.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(V,"DangerousChangeType",{enumerable:!0,get:function(){return Gt.DangerousChangeType}});Object.defineProperty(V,"DirectiveLocation",{enumerable:!0,get:function(){return Kt.DirectiveLocation}});Object.defineProperty(V,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Tt.ExecutableDefinitionsRule}});Object.defineProperty(V,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Tt.FieldsOnCorrectTypeRule}});Object.defineProperty(V,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Tt.FragmentsOnCompositeTypesRule}});Object.defineProperty(V,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MAX_INT}});Object.defineProperty(V,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ie.GRAPHQL_MIN_INT}});Object.defineProperty(V,"GraphQLBoolean",{enumerable:!0,get:function(){return Ie.GraphQLBoolean}});Object.defineProperty(V,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ie.GraphQLDeprecatedDirective}});Object.defineProperty(V,"GraphQLDirective",{enumerable:!0,get:function(){return Ie.GraphQLDirective}});Object.defineProperty(V,"GraphQLEnumType",{enumerable:!0,get:function(){return Ie.GraphQLEnumType}});Object.defineProperty(V,"GraphQLError",{enumerable:!0,get:function(){return Tp.GraphQLError}});Object.defineProperty(V,"GraphQLFloat",{enumerable:!0,get:function(){return Ie.GraphQLFloat}});Object.defineProperty(V,"GraphQLID",{enumerable:!0,get:function(){return Ie.GraphQLID}});Object.defineProperty(V,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ie.GraphQLIncludeDirective}});Object.defineProperty(V,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ie.GraphQLInputObjectType}});Object.defineProperty(V,"GraphQLInt",{enumerable:!0,get:function(){return Ie.GraphQLInt}});Object.defineProperty(V,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ie.GraphQLInterfaceType}});Object.defineProperty(V,"GraphQLList",{enumerable:!0,get:function(){return Ie.GraphQLList}});Object.defineProperty(V,"GraphQLNonNull",{enumerable:!0,get:function(){return Ie.GraphQLNonNull}});Object.defineProperty(V,"GraphQLObjectType",{enumerable:!0,get:function(){return Ie.GraphQLObjectType}});Object.defineProperty(V,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Ie.GraphQLOneOfDirective}});Object.defineProperty(V,"GraphQLScalarType",{enumerable:!0,get:function(){return Ie.GraphQLScalarType}});Object.defineProperty(V,"GraphQLSchema",{enumerable:!0,get:function(){return Ie.GraphQLSchema}});Object.defineProperty(V,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ie.GraphQLSkipDirective}});Object.defineProperty(V,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ie.GraphQLSpecifiedByDirective}});Object.defineProperty(V,"GraphQLString",{enumerable:!0,get:function(){return Ie.GraphQLString}});Object.defineProperty(V,"GraphQLUnionType",{enumerable:!0,get:function(){return Ie.GraphQLUnionType}});Object.defineProperty(V,"Kind",{enumerable:!0,get:function(){return Kt.Kind}});Object.defineProperty(V,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Tt.KnownArgumentNamesRule}});Object.defineProperty(V,"KnownDirectivesRule",{enumerable:!0,get:function(){return Tt.KnownDirectivesRule}});Object.defineProperty(V,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Tt.KnownFragmentNamesRule}});Object.defineProperty(V,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Tt.KnownTypeNamesRule}});Object.defineProperty(V,"Lexer",{enumerable:!0,get:function(){return Kt.Lexer}});Object.defineProperty(V,"Location",{enumerable:!0,get:function(){return Kt.Location}});Object.defineProperty(V,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Tt.LoneAnonymousOperationRule}});Object.defineProperty(V,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Tt.LoneSchemaDefinitionRule}});Object.defineProperty(V,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Tt.MaxIntrospectionDepthRule}});Object.defineProperty(V,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Tt.NoDeprecatedCustomRule}});Object.defineProperty(V,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Tt.NoFragmentCyclesRule}});Object.defineProperty(V,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Tt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(V,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUndefinedVariablesRule}});Object.defineProperty(V,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Tt.NoUnusedFragmentsRule}});Object.defineProperty(V,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Tt.NoUnusedVariablesRule}});Object.defineProperty(V,"OperationTypeNode",{enumerable:!0,get:function(){return Kt.OperationTypeNode}});Object.defineProperty(V,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Tt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(V,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Tt.PossibleFragmentSpreadsRule}});Object.defineProperty(V,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Tt.PossibleTypeExtensionsRule}});Object.defineProperty(V,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Tt.ProvidedRequiredArgumentsRule}});Object.defineProperty(V,"ScalarLeafsRule",{enumerable:!0,get:function(){return Tt.ScalarLeafsRule}});Object.defineProperty(V,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ie.SchemaMetaFieldDef}});Object.defineProperty(V,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Tt.SingleFieldSubscriptionsRule}});Object.defineProperty(V,"Source",{enumerable:!0,get:function(){return Kt.Source}});Object.defineProperty(V,"Token",{enumerable:!0,get:function(){return Kt.Token}});Object.defineProperty(V,"TokenKind",{enumerable:!0,get:function(){return Kt.TokenKind}});Object.defineProperty(V,"TypeInfo",{enumerable:!0,get:function(){return Gt.TypeInfo}});Object.defineProperty(V,"TypeKind",{enumerable:!0,get:function(){return Ie.TypeKind}});Object.defineProperty(V,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeMetaFieldDef}});Object.defineProperty(V,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ie.TypeNameMetaFieldDef}});Object.defineProperty(V,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(V,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueArgumentNamesRule}});Object.defineProperty(V,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Tt.UniqueDirectiveNamesRule}});Object.defineProperty(V,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Tt.UniqueDirectivesPerLocationRule}});Object.defineProperty(V,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Tt.UniqueEnumValueNamesRule}});Object.defineProperty(V,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(V,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Tt.UniqueFragmentNamesRule}});Object.defineProperty(V,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Tt.UniqueInputFieldNamesRule}});Object.defineProperty(V,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationNamesRule}});Object.defineProperty(V,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Tt.UniqueOperationTypesRule}});Object.defineProperty(V,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Tt.UniqueTypeNamesRule}});Object.defineProperty(V,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Tt.UniqueVariableNamesRule}});Object.defineProperty(V,"ValidationContext",{enumerable:!0,get:function(){return Tt.ValidationContext}});Object.defineProperty(V,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Tt.ValuesOfCorrectTypeRule}});Object.defineProperty(V,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Tt.VariablesAreInputTypesRule}});Object.defineProperty(V,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Tt.VariablesInAllowedPositionRule}});Object.defineProperty(V,"__Directive",{enumerable:!0,get:function(){return Ie.__Directive}});Object.defineProperty(V,"__DirectiveLocation",{enumerable:!0,get:function(){return Ie.__DirectiveLocation}});Object.defineProperty(V,"__EnumValue",{enumerable:!0,get:function(){return Ie.__EnumValue}});Object.defineProperty(V,"__Field",{enumerable:!0,get:function(){return Ie.__Field}});Object.defineProperty(V,"__InputValue",{enumerable:!0,get:function(){return Ie.__InputValue}});Object.defineProperty(V,"__Schema",{enumerable:!0,get:function(){return Ie.__Schema}});Object.defineProperty(V,"__Type",{enumerable:!0,get:function(){return Ie.__Type}});Object.defineProperty(V,"__TypeKind",{enumerable:!0,get:function(){return Ie.__TypeKind}});Object.defineProperty(V,"assertAbstractType",{enumerable:!0,get:function(){return Ie.assertAbstractType}});Object.defineProperty(V,"assertCompositeType",{enumerable:!0,get:function(){return Ie.assertCompositeType}});Object.defineProperty(V,"assertDirective",{enumerable:!0,get:function(){return Ie.assertDirective}});Object.defineProperty(V,"assertEnumType",{enumerable:!0,get:function(){return Ie.assertEnumType}});Object.defineProperty(V,"assertEnumValueName",{enumerable:!0,get:function(){return Ie.assertEnumValueName}});Object.defineProperty(V,"assertInputObjectType",{enumerable:!0,get:function(){return Ie.assertInputObjectType}});Object.defineProperty(V,"assertInputType",{enumerable:!0,get:function(){return Ie.assertInputType}});Object.defineProperty(V,"assertInterfaceType",{enumerable:!0,get:function(){return Ie.assertInterfaceType}});Object.defineProperty(V,"assertLeafType",{enumerable:!0,get:function(){return Ie.assertLeafType}});Object.defineProperty(V,"assertListType",{enumerable:!0,get:function(){return Ie.assertListType}});Object.defineProperty(V,"assertName",{enumerable:!0,get:function(){return Ie.assertName}});Object.defineProperty(V,"assertNamedType",{enumerable:!0,get:function(){return Ie.assertNamedType}});Object.defineProperty(V,"assertNonNullType",{enumerable:!0,get:function(){return Ie.assertNonNullType}});Object.defineProperty(V,"assertNullableType",{enumerable:!0,get:function(){return Ie.assertNullableType}});Object.defineProperty(V,"assertObjectType",{enumerable:!0,get:function(){return Ie.assertObjectType}});Object.defineProperty(V,"assertOutputType",{enumerable:!0,get:function(){return Ie.assertOutputType}});Object.defineProperty(V,"assertScalarType",{enumerable:!0,get:function(){return Ie.assertScalarType}});Object.defineProperty(V,"assertSchema",{enumerable:!0,get:function(){return Ie.assertSchema}});Object.defineProperty(V,"assertType",{enumerable:!0,get:function(){return Ie.assertType}});Object.defineProperty(V,"assertUnionType",{enumerable:!0,get:function(){return Ie.assertUnionType}});Object.defineProperty(V,"assertValidName",{enumerable:!0,get:function(){return Gt.assertValidName}});Object.defineProperty(V,"assertValidSchema",{enumerable:!0,get:function(){return Ie.assertValidSchema}});Object.defineProperty(V,"assertWrappingType",{enumerable:!0,get:function(){return Ie.assertWrappingType}});Object.defineProperty(V,"astFromValue",{enumerable:!0,get:function(){return Gt.astFromValue}});Object.defineProperty(V,"buildASTSchema",{enumerable:!0,get:function(){return Gt.buildASTSchema}});Object.defineProperty(V,"buildClientSchema",{enumerable:!0,get:function(){return Gt.buildClientSchema}});Object.defineProperty(V,"buildSchema",{enumerable:!0,get:function(){return Gt.buildSchema}});Object.defineProperty(V,"coerceInputValue",{enumerable:!0,get:function(){return Gt.coerceInputValue}});Object.defineProperty(V,"concatAST",{enumerable:!0,get:function(){return Gt.concatAST}});Object.defineProperty(V,"createSourceEventStream",{enumerable:!0,get:function(){return Ca.createSourceEventStream}});Object.defineProperty(V,"defaultFieldResolver",{enumerable:!0,get:function(){return Ca.defaultFieldResolver}});Object.defineProperty(V,"defaultTypeResolver",{enumerable:!0,get:function(){return Ca.defaultTypeResolver}});Object.defineProperty(V,"doTypesOverlap",{enumerable:!0,get:function(){return Gt.doTypesOverlap}});Object.defineProperty(V,"execute",{enumerable:!0,get:function(){return Ca.execute}});Object.defineProperty(V,"executeSync",{enumerable:!0,get:function(){return Ca.executeSync}});Object.defineProperty(V,"extendSchema",{enumerable:!0,get:function(){return Gt.extendSchema}});Object.defineProperty(V,"findBreakingChanges",{enumerable:!0,get:function(){return Gt.findBreakingChanges}});Object.defineProperty(V,"findDangerousChanges",{enumerable:!0,get:function(){return Gt.findDangerousChanges}});Object.defineProperty(V,"formatError",{enumerable:!0,get:function(){return Tp.formatError}});Object.defineProperty(V,"getArgumentValues",{enumerable:!0,get:function(){return Ca.getArgumentValues}});Object.defineProperty(V,"getDirectiveValues",{enumerable:!0,get:function(){return Ca.getDirectiveValues}});Object.defineProperty(V,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Kt.getEnterLeaveForKind}});Object.defineProperty(V,"getIntrospectionQuery",{enumerable:!0,get:function(){return Gt.getIntrospectionQuery}});Object.defineProperty(V,"getLocation",{enumerable:!0,get:function(){return Kt.getLocation}});Object.defineProperty(V,"getNamedType",{enumerable:!0,get:function(){return Ie.getNamedType}});Object.defineProperty(V,"getNullableType",{enumerable:!0,get:function(){return Ie.getNullableType}});Object.defineProperty(V,"getOperationAST",{enumerable:!0,get:function(){return Gt.getOperationAST}});Object.defineProperty(V,"getOperationRootType",{enumerable:!0,get:function(){return Gt.getOperationRootType}});Object.defineProperty(V,"getVariableValues",{enumerable:!0,get:function(){return Ca.getVariableValues}});Object.defineProperty(V,"getVisitFn",{enumerable:!0,get:function(){return Kt.getVisitFn}});Object.defineProperty(V,"graphql",{enumerable:!0,get:function(){return nC.graphql}});Object.defineProperty(V,"graphqlSync",{enumerable:!0,get:function(){return nC.graphqlSync}});Object.defineProperty(V,"introspectionFromSchema",{enumerable:!0,get:function(){return Gt.introspectionFromSchema}});Object.defineProperty(V,"introspectionTypes",{enumerable:!0,get:function(){return Ie.introspectionTypes}});Object.defineProperty(V,"isAbstractType",{enumerable:!0,get:function(){return Ie.isAbstractType}});Object.defineProperty(V,"isCompositeType",{enumerable:!0,get:function(){return Ie.isCompositeType}});Object.defineProperty(V,"isConstValueNode",{enumerable:!0,get:function(){return Kt.isConstValueNode}});Object.defineProperty(V,"isDefinitionNode",{enumerable:!0,get:function(){return Kt.isDefinitionNode}});Object.defineProperty(V,"isDirective",{enumerable:!0,get:function(){return Ie.isDirective}});Object.defineProperty(V,"isEnumType",{enumerable:!0,get:function(){return Ie.isEnumType}});Object.defineProperty(V,"isEqualType",{enumerable:!0,get:function(){return Gt.isEqualType}});Object.defineProperty(V,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Kt.isExecutableDefinitionNode}});Object.defineProperty(V,"isInputObjectType",{enumerable:!0,get:function(){return Ie.isInputObjectType}});Object.defineProperty(V,"isInputType",{enumerable:!0,get:function(){return Ie.isInputType}});Object.defineProperty(V,"isInterfaceType",{enumerable:!0,get:function(){return Ie.isInterfaceType}});Object.defineProperty(V,"isIntrospectionType",{enumerable:!0,get:function(){return Ie.isIntrospectionType}});Object.defineProperty(V,"isLeafType",{enumerable:!0,get:function(){return Ie.isLeafType}});Object.defineProperty(V,"isListType",{enumerable:!0,get:function(){return Ie.isListType}});Object.defineProperty(V,"isNamedType",{enumerable:!0,get:function(){return Ie.isNamedType}});Object.defineProperty(V,"isNonNullType",{enumerable:!0,get:function(){return Ie.isNonNullType}});Object.defineProperty(V,"isNullableType",{enumerable:!0,get:function(){return Ie.isNullableType}});Object.defineProperty(V,"isObjectType",{enumerable:!0,get:function(){return Ie.isObjectType}});Object.defineProperty(V,"isOutputType",{enumerable:!0,get:function(){return Ie.isOutputType}});Object.defineProperty(V,"isRequiredArgument",{enumerable:!0,get:function(){return Ie.isRequiredArgument}});Object.defineProperty(V,"isRequiredInputField",{enumerable:!0,get:function(){return Ie.isRequiredInputField}});Object.defineProperty(V,"isScalarType",{enumerable:!0,get:function(){return Ie.isScalarType}});Object.defineProperty(V,"isSchema",{enumerable:!0,get:function(){return Ie.isSchema}});Object.defineProperty(V,"isSelectionNode",{enumerable:!0,get:function(){return Kt.isSelectionNode}});Object.defineProperty(V,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ie.isSpecifiedDirective}});Object.defineProperty(V,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ie.isSpecifiedScalarType}});Object.defineProperty(V,"isType",{enumerable:!0,get:function(){return Ie.isType}});Object.defineProperty(V,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Kt.isTypeDefinitionNode}});Object.defineProperty(V,"isTypeExtensionNode",{enumerable:!0,get:function(){return Kt.isTypeExtensionNode}});Object.defineProperty(V,"isTypeNode",{enumerable:!0,get:function(){return Kt.isTypeNode}});Object.defineProperty(V,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Gt.isTypeSubTypeOf}});Object.defineProperty(V,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Kt.isTypeSystemDefinitionNode}});Object.defineProperty(V,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Kt.isTypeSystemExtensionNode}});Object.defineProperty(V,"isUnionType",{enumerable:!0,get:function(){return Ie.isUnionType}});Object.defineProperty(V,"isValidNameError",{enumerable:!0,get:function(){return Gt.isValidNameError}});Object.defineProperty(V,"isValueNode",{enumerable:!0,get:function(){return Kt.isValueNode}});Object.defineProperty(V,"isWrappingType",{enumerable:!0,get:function(){return Ie.isWrappingType}});Object.defineProperty(V,"lexicographicSortSchema",{enumerable:!0,get:function(){return Gt.lexicographicSortSchema}});Object.defineProperty(V,"locatedError",{enumerable:!0,get:function(){return Tp.locatedError}});Object.defineProperty(V,"parse",{enumerable:!0,get:function(){return Kt.parse}});Object.defineProperty(V,"parseConstValue",{enumerable:!0,get:function(){return Kt.parseConstValue}});Object.defineProperty(V,"parseType",{enumerable:!0,get:function(){return Kt.parseType}});Object.defineProperty(V,"parseValue",{enumerable:!0,get:function(){return Kt.parseValue}});Object.defineProperty(V,"print",{enumerable:!0,get:function(){return Kt.print}});Object.defineProperty(V,"printError",{enumerable:!0,get:function(){return Tp.printError}});Object.defineProperty(V,"printIntrospectionSchema",{enumerable:!0,get:function(){return Gt.printIntrospectionSchema}});Object.defineProperty(V,"printLocation",{enumerable:!0,get:function(){return Kt.printLocation}});Object.defineProperty(V,"printSchema",{enumerable:!0,get:function(){return Gt.printSchema}});Object.defineProperty(V,"printSourceLocation",{enumerable:!0,get:function(){return Kt.printSourceLocation}});Object.defineProperty(V,"printType",{enumerable:!0,get:function(){return Gt.printType}});Object.defineProperty(V,"recommendedRules",{enumerable:!0,get:function(){return Tt.recommendedRules}});Object.defineProperty(V,"resolveObjMapThunk",{enumerable:!0,get:function(){return Ie.resolveObjMapThunk}});Object.defineProperty(V,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Ie.resolveReadonlyArrayThunk}});Object.defineProperty(V,"responsePathAsArray",{enumerable:!0,get:function(){return Ca.responsePathAsArray}});Object.defineProperty(V,"separateOperations",{enumerable:!0,get:function(){return Gt.separateOperations}});Object.defineProperty(V,"specifiedDirectives",{enumerable:!0,get:function(){return Ie.specifiedDirectives}});Object.defineProperty(V,"specifiedRules",{enumerable:!0,get:function(){return Tt.specifiedRules}});Object.defineProperty(V,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ie.specifiedScalarTypes}});Object.defineProperty(V,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Gt.stripIgnoredCharacters}});Object.defineProperty(V,"subscribe",{enumerable:!0,get:function(){return Ca.subscribe}});Object.defineProperty(V,"syntaxError",{enumerable:!0,get:function(){return Tp.syntaxError}});Object.defineProperty(V,"typeFromAST",{enumerable:!0,get:function(){return Gt.typeFromAST}});Object.defineProperty(V,"validate",{enumerable:!0,get:function(){return Tt.validate}});Object.defineProperty(V,"validateSchema",{enumerable:!0,get:function(){return Ie.validateSchema}});Object.defineProperty(V,"valueFromAST",{enumerable:!0,get:function(){return Gt.valueFromAST}});Object.defineProperty(V,"valueFromASTUntyped",{enumerable:!0,get:function(){return Gt.valueFromASTUntyped}});Object.defineProperty(V,"version",{enumerable:!0,get:function(){return tC.version}});Object.defineProperty(V,"versionInfo",{enumerable:!0,get:function(){return tC.versionInfo}});Object.defineProperty(V,"visit",{enumerable:!0,get:function(){return Kt.visit}});Object.defineProperty(V,"visitInParallel",{enumerable:!0,get:function(){return Kt.visitInParallel}});Object.defineProperty(V,"visitWithTypeInfo",{enumerable:!0,get:function(){return Gt.visitWithTypeInfo}});var tC=zR(),nC=Gw(),Ie=Yw(),Kt=Hw(),Ca=rL(),Tt=oL(),Tp=uL(),Gt=eC()});var ur=w(P=>{"use strict";m();T();N();Object.defineProperty(P,"__esModule",{value:!0});P.FLOAT_SCALAR=P.FIRST_ORDINAL=P.FIELD_DEFINITION_UPPER=P.FIELDS=P.FIELD_SET_SCALAR=P.FIELD_UPPER=P.FIELD_PATH=P.FIELD=P.EXTENSIONS=P.EXTENDS=P.EXTERNAL=P.EXECUTION=P.ENUM_VALUE_UPPER=P.ENUM_VALUE=P.ENUM_UPPER=P.ENUM=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=P.EDFS_REDIS_SUBSCRIBE=P.EDFS_REDIS_PUBLISH=P.EDFS_NATS_STREAM_CONFIGURATION=P.EDFS_PUBLISH_RESULT=P.EDFS_NATS_SUBSCRIBE=P.EDFS_NATS_REQUEST=P.EDFS_NATS_PUBLISH=P.EDFS_KAFKA_SUBSCRIBE=P.EDFS_KAFKA_PUBLISH=P.DIRECTIVE_DEFINITION=P.DESCRIPTION_OVERRIDE=P.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.DEFAULT_EDFS_PROVIDER_ID=P.DEFAULT=P.CONSUMER_NAME=P.CONFIGURE_CHILD_DESCRIPTIONS=P.CONFIGURE_DESCRIPTION=P.CONDITION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.BOOLEAN=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=P.AND_UPPER=P.AS=void 0;P.PARENT_DEFINITION_DATA=P.OVERRIDE=P.OR_UPPER=P.OBJECT_UPPER=P.OBJECT=P.OPERATION_TO_DEFAULT=P.NULL=P.NOT_UPPER=P.NON_NULLABLE_STRING=P.NON_NULLABLE_INT=P.NON_NULLABLE_BOOLEAN=P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=P.NAME=P.NOT_APPLICABLE=P.PROVIDER_TYPE_REDIS=P.PROVIDER_TYPE_NATS=P.PROVIDER_TYPE_KAFKA=P.PROPAGATE=P.MUTATION_UPPER=P.MUTATION=P.NUMBER=P.LITERAL_NEW_LINE=P.LITERAL_SPACE=P.LIST=P.LINK_PURPOSE=P.LINK_IMPORT=P.LINK=P.LEFT_PARENTHESIS=P.KEY=P.INTERFACE_OBJECT=P.INTERFACE_UPPER=P.INTERFACE=P.INT_SCALAR=P.INPUT_VALUE=P.INPUT_OBJECT_UPPER=P.INPUT_OBJECT=P.INPUT_FIELD_DEFINITION_UPPER=P.INPUT_FIELD=P.INPUT=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.IN_UPPER=P.IMPORT=P.ID_SCALAR=P.HYPHEN_JOIN=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FOR=void 0;P.CHANNEL=P.VARIABLE_DEFINITION_UPPER=P.VALUES=P.URL_LOWER=P.UNION_UPPER=P.UNION=P.TOPICS=P.TOPIC=P.TAG=P.SUCCESS=P.SUBSCRIPTION_UPPER=P.SUBSCRIBE=P.SUBSCRIPTION_FILTER_VALUE=P.SUBSCRIPTION_FILTER_CONDITION=P.SUBSCRIPTION_FILTER=P.SUBSCRIPTION_FIELD_CONDITION=P.SUBSCRIPTION=P.SUBJECTS=P.SUBJECT=P.STRING_SCALAR=P.STRING=P.STREAM_NAME=P.CONSUMER_INACTIVE_THRESHOLD=P.STREAM_CONFIGURATION=P.SPECIFIED_BY=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SECURITY=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=P.SCHEMA=P.SCALAR_UPPER=P.SCALAR=P.RESOLVABLE=P.REQUIRES_SCOPES=P.REQUIRES=P.REQUEST=P.REASON=P.QUOTATION_JOIN=P.QUERY_UPPER=P.QUERY=P.PUBLISH=P.PROVIDES=P.PROVIDER_ID=P.PERIOD=P.PARENT_EXTENSION_DATA_MAP=P.PARENT_DEFINITION_DATA_MAP=void 0;P.OUTPUT_NODE_KINDS=P.INPUT_NODE_KINDS=P.IGNORED_FIELDS=P.INHERITABLE_DIRECTIVE_NAMES=P.PERSISTED_CLIENT_DIRECTIVES=P.AUTHORIZATION_DIRECTIVES=P.ROOT_TYPE_NAMES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=P.CHANNELS=void 0;var iu=Ae();P.AS="as";P.AND_UPPER="AND";P.ANY_SCALAR="_Any";P.ARGUMENT="argument";P.AUTHENTICATED="authenticated";P.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";P.BOOLEAN="boolean";P.BOOLEAN_SCALAR="Boolean";P.COMPOSE_DIRECTIVE="composeDirective";P.CONDITION="condition";P.CONFIGURE_DESCRIPTION="openfed__configureDescription";P.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";P.CONSUMER_NAME="consumerName";P.DEFAULT="default";P.DEFAULT_EDFS_PROVIDER_ID="default";P.DEFAULT_MUTATION="Mutation";P.DEFAULT_QUERY="Query";P.DEFAULT_SUBSCRIPTION="Subscription";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";P.DESCRIPTION_OVERRIDE="descriptionOverride";P.DIRECTIVE_DEFINITION="directive definition";P.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";P.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";P.EDFS_NATS_PUBLISH="edfs__natsPublish";P.EDFS_NATS_REQUEST="edfs__natsRequest";P.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";P.EDFS_PUBLISH_RESULT="edfs__PublishResult";P.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";P.EDFS_REDIS_PUBLISH="edfs__redisPublish";P.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";P.ENTITIES="entities";P.ENTITIES_FIELD="_entities";P.ENTITY_UNION="_Entity";P.ENUM="Enum";P.ENUM_UPPER="ENUM";P.ENUM_VALUE="Enum Value";P.ENUM_VALUE_UPPER="ENUM_VALUE";P.EXECUTION="EXECUTION";P.EXTERNAL="external";P.EXTENDS="extends";P.EXTENSIONS="extensions";P.FIELD="field";P.FIELD_PATH="fieldPath";P.FIELD_UPPER="FIELD";P.FIELD_SET_SCALAR="openfed__FieldSet";P.FIELDS="fields";P.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";P.FIRST_ORDINAL="1st";P.FLOAT_SCALAR="Float";P.FOR="for";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.HYPHEN_JOIN=` + -`;P.ID_SCALAR="ID";P.IMPORT="import";P.IN_UPPER="IN";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";P.INPUT="Input";P.INPUT_FIELD="Input field";P.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";P.INPUT_OBJECT="Input Object";P.INPUT_OBJECT_UPPER="INPUT_OBJECT";P.INPUT_VALUE="Input Value";P.INT_SCALAR="Int";P.INTERFACE="Interface";P.INTERFACE_UPPER="INTERFACE";P.INTERFACE_OBJECT="interfaceObject";P.KEY="key";P.LEFT_PARENTHESIS="(";P.LINK="link";P.LINK_IMPORT="link__Import";P.LINK_PURPOSE="link__Purpose";P.LIST="list";P.LITERAL_SPACE=" ";P.LITERAL_NEW_LINE=` +`;P.NUMBER="number";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.PROPAGATE="propagate";P.PROVIDER_TYPE_KAFKA="kafka";P.PROVIDER_TYPE_NATS="nats";P.PROVIDER_TYPE_REDIS="redis";P.NOT_APPLICABLE="N/A";P.NAME="name";P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";P.NON_NULLABLE_BOOLEAN="Boolean!";P.NON_NULLABLE_INT="Int!";P.NON_NULLABLE_STRING="String!";P.NOT_UPPER="NOT";P.NULL="Null";P.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";P.OBJECT="Object";P.OBJECT_UPPER="OBJECT";P.OR_UPPER="OR";P.OVERRIDE="override";P.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";P.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";P.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";P.PERIOD=".";P.PROVIDER_ID="providerId";P.PROVIDES="provides";P.PUBLISH="publish";P.QUERY="Query";P.QUERY_UPPER="QUERY";P.QUOTATION_JOIN='", "';P.REASON="reason";P.REQUEST="request";P.REQUIRES="requires";P.REQUIRES_SCOPES="requiresScopes";P.RESOLVABLE="resolvable";P.SCALAR="Scalar";P.SCALAR_UPPER="SCALAR";P.SCHEMA="schema";P.SCHEMA_UPPER="SCHEMA";P.SCOPES="scopes";P.SCOPE_SCALAR="openfed__Scope";P.SECURITY="SECURITY";P.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SPECIFIED_BY="specifiedBy";P.STREAM_CONFIGURATION="streamConfiguration";P.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";P.STREAM_NAME="streamName";P.STRING="string";P.STRING_SCALAR="String";P.SUBJECT="subject";P.SUBJECTS="subjects";P.SUBSCRIPTION="Subscription";P.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";P.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";P.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";P.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";P.SUBSCRIBE="subscribe";P.SUBSCRIPTION_UPPER="SUBSCRIPTION";P.SUCCESS="success";P.TAG="tag";P.TOPIC="topic";P.TOPICS="topics";P.UNION="Union";P.UNION_UPPER="UNION";P.URL_LOWER="url";P.VALUES="values";P.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";P.CHANNEL="channel";P.CHANNELS="channels";P.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([P.FIELD_UPPER,P.FRAGMENT_DEFINITION_UPPER,P.FRAGMENT_SPREAD_UPPER,P.INLINE_FRAGMENT_UPPER,P.MUTATION_UPPER,P.QUERY_UPPER,P.SUBSCRIPTION_UPPER]);P.ROOT_TYPE_NAMES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION]);P.AUTHORIZATION_DIRECTIVES=new Set([P.AUTHENTICATED,P.REQUIRES_SCOPES]);P.PERSISTED_CLIENT_DIRECTIVES=new Set([P.DEPRECATED]);P.INHERITABLE_DIRECTIVE_NAMES=new Set([P.EXTERNAL,P.SHAREABLE]);P.IGNORED_FIELDS=new Set([P.ENTITIES_FIELD,P.SERVICE_FIELD]);P.INPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INPUT_OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION]);P.OUTPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INTERFACE_TYPE_DEFINITION,iu.Kind.OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION,iu.Kind.UNION_TYPE_DEFINITION])});var Yr=w($n=>{"use strict";m();T();N();Object.defineProperty($n,"__esModule",{value:!0});$n.operationTypeNodeToDefaultType=void 0;$n.isObjectLikeNodeEntity=zX;$n.isNodeInterfaceObject=WX;$n.stringToNameNode=PN;$n.stringArrayToNameNodeArray=XX;$n.setToNameNodeArray=ZX;$n.stringToNamedTypeNode=rC;$n.setToNamedTypeNodeArray=e9;$n.nodeKindToDirectiveLocation=t9;$n.isKindAbstract=n9;$n.extractExecutableDirectiveLocations=r9;$n.formatDescription=i9;$n.lexicographicallySortArgumentNodes=iC;$n.lexicographicallySortSelectionSetNode=RN;$n.lexicographicallySortDocumentNode=a9;$n.parse=aC;$n.safeParse=s9;var Ut=Ae(),vn=ur();function zX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.KEY)return!0;return!1}function WX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.INTERFACE_OBJECT)return!0;return!1}function PN(e){return{kind:Ut.Kind.NAME,value:e}}function XX(e){let t=[];for(let n of e)t.push(PN(n));return t}function ZX(e){let t=[];for(let n of e)t.push(PN(n));return t}function rC(e){return{kind:Ut.Kind.NAMED_TYPE,name:PN(e)}}function e9(e){let t=[];for(let n of e)t.push(rC(n));return t}function t9(e){switch(e){case Ut.Kind.ARGUMENT:return vn.ARGUMENT_DEFINITION_UPPER;case Ut.Kind.ENUM_TYPE_DEFINITION:case Ut.Kind.ENUM_TYPE_EXTENSION:return vn.ENUM_UPPER;case Ut.Kind.ENUM_VALUE_DEFINITION:return vn.ENUM_VALUE_UPPER;case Ut.Kind.FIELD_DEFINITION:return vn.FIELD_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_DEFINITION:return vn.FRAGMENT_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_SPREAD:return vn.FRAGMENT_SPREAD_UPPER;case Ut.Kind.INLINE_FRAGMENT:return vn.INLINE_FRAGMENT_UPPER;case Ut.Kind.INPUT_VALUE_DEFINITION:return vn.INPUT_FIELD_DEFINITION_UPPER;case Ut.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ut.Kind.INPUT_OBJECT_TYPE_EXTENSION:return vn.INPUT_OBJECT_UPPER;case Ut.Kind.INTERFACE_TYPE_DEFINITION:case Ut.Kind.INTERFACE_TYPE_EXTENSION:return vn.INTERFACE_UPPER;case Ut.Kind.OBJECT_TYPE_DEFINITION:case Ut.Kind.OBJECT_TYPE_EXTENSION:return vn.OBJECT_UPPER;case Ut.Kind.SCALAR_TYPE_DEFINITION:case Ut.Kind.SCALAR_TYPE_EXTENSION:return vn.SCALAR_UPPER;case Ut.Kind.SCHEMA_DEFINITION:case Ut.Kind.SCHEMA_EXTENSION:return vn.SCHEMA_UPPER;case Ut.Kind.UNION_TYPE_DEFINITION:case Ut.Kind.UNION_TYPE_EXTENSION:return vn.UNION_UPPER;default:return e}}$n.operationTypeNodeToDefaultType=new Map([[Ut.OperationTypeNode.MUTATION,vn.MUTATION],[Ut.OperationTypeNode.QUERY,vn.QUERY],[Ut.OperationTypeNode.SUBSCRIPTION,vn.SUBSCRIPTION]]);function n9(e){return e===Ut.Kind.INTERFACE_TYPE_DEFINITION||e===Ut.Kind.UNION_TYPE_DEFINITION}function r9(e,t){for(let n of e){let r=n.value;vn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function i9(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` `);n.length>1&&(t=n.map(r=>r.trimStart()).join(` -`))}return Y(x({},e),{value:t,block:!0})}function iC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function RN(e){let t=e.selections;return Y(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return vn.NAME in n?vn.NAME in r?n.name.value.localeCompare(r.name.value):-1:vn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Ut.Kind.FIELD:return Y(x({},n),{arguments:iC(n),selectionSet:n.selectionSet?RN(n.selectionSet):n.selectionSet});case Ut.Kind.FRAGMENT_SPREAD:return n;case Ut.Kind.INLINE_FRAGMENT:return Y(x({},n),{selectionSet:RN(n.selectionSet)})}})})}function a9(e){return Y(x({},e),{definitions:e.definitions.map(t=>t.kind!==Ut.Kind.OPERATION_DEFINITION?t:Y(x({},t),{selectionSet:RN(t.selectionSet)}))})}function aC(e,t=!0){return(0,Ut.parse)(e,{noLocation:t})}function s9(e,t=!0){try{return{documentNode:aC(e,t)}}catch(n){return{error:n}}}});var uC=w(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.AccumulatorMap=void 0;fl.mapValue=pl;fl.extendSchemaImpl=o9;var Ue=Ae(),Ts=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};fl.AccumulatorMap=Ts;function pl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function o9(e,t,n){var De,_e,Le,_t;let r=[],i=new Ts,a=new Ts,o=new Ts,c=new Ts,l=new Ts,p=new Ts,f=[],y,g=[],v=!1;for(let J of t.definitions){switch(J.kind){case Ue.Kind.SCHEMA_DEFINITION:y=J;break;case Ue.Kind.SCHEMA_EXTENSION:g.push(J);break;case Ue.Kind.DIRECTIVE_DEFINITION:f.push(J);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(J.name.value,J);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(J.name.value,J);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(J.name.value,J);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:p.add(J.name.value,J);break;default:continue}v=!0}if(!v)return e;let P=new Map;for(let J of e.types){let se=W(J);se&&P.set(J.name,se)}for(let J of r){let se=J.name.value;P.set(se,(De=sC.get(se))!=null?De:oe(J))}for(let[J,se]of a)P.set(J,new Ue.GraphQLObjectType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,se]of o)P.set(J,new Ue.GraphQLInterfaceType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));for(let[J,se]of l)P.set(J,new Ue.GraphQLEnumType({name:J,values:Un(se),extensionASTNodes:se}));for(let[J,se]of c)P.set(J,new Ue.GraphQLUnionType({name:J,types:()=>bn(se),extensionASTNodes:se}));for(let[J,se]of i)P.set(J,new Ue.GraphQLScalarType({name:J,extensionASTNodes:se}));for(let[J,se]of p)P.set(J,new Ue.GraphQLInputObjectType({name:J,fields:()=>Rr(se),extensionASTNodes:se}))}let k=x(x({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},y&&zt([y])),zt(g));return Y(x({description:(Le=(_e=y==null?void 0:y.description)==null?void 0:_e.value)!=null?Le:e.description},k),{types:Array.from(P.values()),directives:[...e.directives.map(Z),...f.map(Vt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(_t=n==null?void 0:n.assumeValid)!=null?_t:!1});function K(J){return(0,Ue.isListType)(J)?new Ue.GraphQLList(K(J.ofType)):(0,Ue.isNonNullType)(J)?new Ue.GraphQLNonNull(K(J.ofType)):G(J)}function G(J){return P.get(J.name)}function Z(J){if((0,Ue.isSpecifiedDirective)(J))return J;let se=J.toConfig();return new Ue.GraphQLDirective(Y(x({},se),{args:pl(se.args,gt)}))}function W(J){if((0,Ue.isIntrospectionType)(J)||(0,Ue.isSpecifiedScalarType)(J))return J;if((0,Ue.isScalarType)(J))return we(J);if((0,Ue.isObjectType)(J))return Ve(J);if((0,Ue.isInterfaceType)(J))return it(J);if((0,Ue.isUnionType)(J))return ee(J);if((0,Ue.isEnumType)(J))return fe(J);if((0,Ue.isInputObjectType)(J))return Te(J)}function Te(J){var Qe;let se=J.toConfig(),xe=(Qe=p.get(se.name))!=null?Qe:[];return new Ue.GraphQLInputObjectType(Y(x({},se),{fields:()=>x(x({},pl(se.fields,Lt=>Y(x({},Lt),{type:K(Lt.type)}))),Rr(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function fe(J){var Qe;let se=J.toConfig(),xe=(Qe=l.get(J.name))!=null?Qe:[];return new Ue.GraphQLEnumType(Y(x({},se),{values:x(x({},se.values),Un(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function we(J){var Lt,et;let se=J.toConfig(),xe=(Lt=i.get(se.name))!=null?Lt:[],Qe=se.specifiedByURL;for(let At of xe)Qe=(et=oC(At))!=null?et:Qe;return new Ue.GraphQLScalarType(Y(x({},se),{specifiedByURL:Qe,extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function Ve(J){var Qe;let se=J.toConfig(),xe=(Qe=a.get(se.name))!=null?Qe:[];return new Ue.GraphQLObjectType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function it(J){var Qe;let se=J.toConfig(),xe=(Qe=o.get(se.name))!=null?Qe:[];return new Ue.GraphQLInterfaceType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ee(J){var Qe;let se=J.toConfig(),xe=(Qe=c.get(se.name))!=null?Qe:[];return new Ue.GraphQLUnionType(Y(x({},se),{types:()=>[...J.getTypes().map(G),...bn(xe)],extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ve(J){return Y(x({},J),{type:K(J.type),args:J.args&&pl(J.args,gt)})}function gt(J){return Y(x({},J),{type:K(J.type)})}function zt(J){var xe;let se={};for(let Qe of J){let Lt=(xe=Qe.operationTypes)!=null?xe:[];for(let et of Lt)se[et.operation]=Wt(et.type)}return se}function Wt(J){var Qe;let se=J.name.value,xe=(Qe=sC.get(se))!=null?Qe:P.get(se);if(xe===void 0)throw new Error(`Unknown type: "${se}".`);return xe}function Dn(J){return J.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Dn(J.type)):J.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Dn(J.type)):Wt(J)}function Vt(J){var se;return new Ue.GraphQLDirective({name:J.name.value,description:(se=J.description)==null?void 0:se.value,locations:J.locations.map(({value:xe})=>xe),isRepeatable:J.repeatable,args:Ar(J.arguments),astNode:J})}function dn(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let At of et)se[At.name.value]={type:Dn(At.type),description:(Qe=At.description)==null?void 0:Qe.value,args:Ar(At.arguments),deprecationReason:FN(At),astNode:At}}return se}function Ar(J){var Qe;let se=J!=null?J:[],xe=Object.create(null);for(let Lt of se){let et=Dn(Lt.type);xe[Lt.name.value]={type:et,description:(Qe=Lt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(Lt.defaultValue,et),deprecationReason:FN(Lt),astNode:Lt}}return xe}function Rr(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let At of et){let Ha=Dn(At.type);se[At.name.value]={type:Ha,description:(Qe=At.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(At.defaultValue,Ha),deprecationReason:FN(At),astNode:At}}}return se}function Un(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.values)!=null?xe:[];for(let At of et)se[At.name.value]={description:(Qe=At.description)==null?void 0:Qe.value,deprecationReason:FN(At),astNode:At}}return se}function $t(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.interfaces)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function bn(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.types)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function oe(J){var xe,Qe,Lt,et,At,Ha,xr,za,wc,ha,pr,ni;let se=J.name.value;switch(J.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(xe=a.get(se))!=null?xe:[],fr=[J,...xt];return a.delete(se),new Ue.GraphQLObjectType({name:se,description:(Qe=J.description)==null?void 0:Qe.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Lt=o.get(se))!=null?Lt:[],fr=[J,...xt];return o.delete(se),new Ue.GraphQLInterfaceType({name:se,description:(et=J.description)==null?void 0:et.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(At=l.get(se))!=null?At:[],fr=[J,...xt];return l.delete(se),new Ue.GraphQLEnumType({name:se,description:(Ha=J.description)==null?void 0:Ha.value,values:Un(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(xr=c.get(se))!=null?xr:[],fr=[J,...xt];return c.delete(se),new Ue.GraphQLUnionType({name:se,description:(za=J.description)==null?void 0:za.value,types:()=>bn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(wc=i.get(se))!=null?wc:[];return i.delete(se),new Ue.GraphQLScalarType({name:se,description:(ha=J.description)==null?void 0:ha.value,specifiedByURL:oC(J),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(pr=p.get(se))!=null?pr:[],fr=[J,...xt];return p.delete(se),new Ue.GraphQLInputObjectType({name:se,description:(ni=J.description)==null?void 0:ni.value,fields:()=>Rr(fr),astNode:J,extensionASTNodes:xt})}}}}var sC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function FN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function oC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var lv=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.buildASTSchema=l9;var cC=Ae(),u9=cl(),c9=uC();function l9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,u9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,c9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new cC.GraphQLSchema(Y(x({},r),{directives:i}))}});var ml=w(au=>{"use strict";m();T();N();Object.defineProperty(au,"__esModule",{value:!0});au.MAX_INT32=au.MAX_SUBSCRIPTION_FILTER_DEPTH=au.MAXIMUM_TYPE_NESTING=void 0;au.MAXIMUM_TYPE_NESTING=30;au.MAX_SUBSCRIPTION_FILTER_DEPTH=5;au.MAX_INT32=nn(2,31)-1});var Jr=w(Nr=>{"use strict";m();T();N();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getOrThrowError=p9;Nr.getEntriesNotInHashSet=f9;Nr.numberToOrdinal=m9;Nr.addIterableValuesToSet=N9;Nr.addSets=T9;Nr.kindToNodeType=E9;Nr.getValueOrDefault=h9;Nr.add=y9;Nr.generateSimpleDirective=I9;Nr.generateRequiresScopesDirective=g9;Nr.copyObjectValueMap=_9;Nr.addNewObjectValueMapEntries=v9;Nr.copyArrayValueMap=S9;Nr.addMapEntries=O9;Nr.getSingleSetEntry=D9;var an=Ae(),_r=ur(),d9=ia(),dv=Yr();function p9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,d9.invalidKeyFatalError)(t,n);return r}function f9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function m9(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function N9(e,t){for(let n of e)t.add(n)}function T9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function E9(e){switch(e){case an.Kind.BOOLEAN:return _r.BOOLEAN_SCALAR;case an.Kind.ENUM:case an.Kind.ENUM_TYPE_DEFINITION:return _r.ENUM;case an.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case an.Kind.ENUM_VALUE_DEFINITION:return _r.ENUM_VALUE;case an.Kind.FIELD_DEFINITION:return _r.FIELD;case an.Kind.FLOAT:return _r.FLOAT_SCALAR;case an.Kind.INPUT_OBJECT_TYPE_DEFINITION:return _r.INPUT_OBJECT;case an.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case an.Kind.INPUT_VALUE_DEFINITION:return _r.INPUT_VALUE;case an.Kind.INT:return _r.INT_SCALAR;case an.Kind.INTERFACE_TYPE_DEFINITION:return _r.INTERFACE;case an.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case an.Kind.NULL:return _r.NULL;case an.Kind.OBJECT:case an.Kind.OBJECT_TYPE_DEFINITION:return _r.OBJECT;case an.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case an.Kind.STRING:return _r.STRING_SCALAR;case an.Kind.SCALAR_TYPE_DEFINITION:return _r.SCALAR;case an.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case an.Kind.UNION_TYPE_DEFINITION:return _r.UNION;case an.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function h9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function y9(e,t){return e.has(t)?!1:(e.add(t),!0)}function I9(e){return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(e)}}function g9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:an.Kind.STRING,value:i});t.push({kind:an.Kind.LIST,values:r})}return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(_r.REQUIRES_SCOPES),arguments:[{kind:an.Kind.ARGUMENT,name:(0,dv.stringToNameNode)(_r.SCOPES),value:{kind:an.Kind.LIST,values:t}}]}}function _9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function v9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function S9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function O9(e,t){for(let[n,r]of e)t.set(n,r)}function D9(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Ep=w(wN=>{"use strict";m();T();N();Object.defineProperty(wN,"__esModule",{value:!0});wN.ExtensionType=void 0;var lC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(lC||(wN.ExtensionType=lC={}))});var su=w(Sr=>{"use strict";m();T();N();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getMutableDirectiveDefinitionNode=A9;Sr.getMutableEnumNode=R9;Sr.getMutableEnumValueNode=P9;Sr.getMutableFieldNode=F9;Sr.getMutableInputObjectNode=w9;Sr.getMutableInputValueNode=L9;Sr.getMutableInterfaceNode=C9;Sr.getMutableObjectNode=B9;Sr.getMutableObjectExtensionNode=U9;Sr.getMutableScalarNode=k9;Sr.getMutableTypeNode=pv;Sr.getMutableUnionNode=M9;Sr.getTypeNodeNamedTypeName=fv;Sr.getNamedTypeNode=pC;var vr=Ae(),Nl=Yr(),dC=ia(),b9=ml();function A9(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,Nl.formatDescription)(e.description)}}function R9(e){return{kind:vr.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function P9(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,Nl.formatDescription)(e.description)}}function F9(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),description:(0,Nl.formatDescription)(e.description)}}function w9(e){return{kind:vr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function L9(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Nl.formatDescription)(e.description)}}function C9(e){return{kind:vr.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function B9(e){return{kind:vr.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function U9(e){let t=e.kind===vr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:vr.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,Nl.formatDescription)(t)}}function k9(e){return{kind:vr.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function pv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(LN,"__esModule",{value:!0});LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Es=w(te=>{"use strict";m();T();N();Object.defineProperty(te,"__esModule",{value:!0});te.MAX_OR_SCOPES=te.EDFS_ARGS_REGEXP=te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=te.CONFIGURE_DESCRIPTION_DEFINITION=te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=te.SCOPE_SCALAR_DEFINITION=te.FIELD_SET_SCALAR_DEFINITION=te.VERSION_TWO_DIRECTIVE_DEFINITIONS=te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=te.BASE_DIRECTIVE_DEFINITIONS=te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_VALUE_DEFINITION=te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_DEFINITION=te.SHAREABLE_DEFINITION=te.REQUIRES_SCOPES_DEFINITION=te.OVERRIDE_DEFINITION=te.LINK_DEFINITION=te.LINK_PURPOSE_DEFINITION=te.LINK_IMPORT_DEFINITION=te.INTERFACE_OBJECT_DEFINITION=te.INACCESSIBLE_DEFINITION=te.COMPOSE_DIRECTIVE_DEFINITION=te.AUTHENTICATED_DEFINITION=te.ALL_IN_BUILT_DIRECTIVE_NAMES=te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.EDFS_REDIS_SUBSCRIBE_DEFINITION=te.EDFS_REDIS_PUBLISH_DEFINITION=te.TAG_DEFINITION=te.SPECIFIED_BY_DEFINITION=te.REQUIRES_DEFINITION=te.PROVIDES_DEFINITION=te.KEY_DEFINITION=te.REQUIRED_FIELDSET_TYPE_NODE=te.EDFS_NATS_SUBSCRIBE_DEFINITION=te.EDFS_NATS_REQUEST_DEFINITION=te.EDFS_NATS_PUBLISH_DEFINITION=te.EDFS_KAFKA_SUBSCRIBE_DEFINITION=te.EDFS_KAFKA_PUBLISH_DEFINITION=te.EXTERNAL_DEFINITION=te.EXTENDS_DEFINITION=te.DEPRECATED_DEFINITION=te.BASE_SCALARS=te.REQUIRED_STRING_TYPE_NODE=void 0;var ue=Ae(),ae=Yr(),x9=mv(),U=ur();te.REQUIRED_STRING_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)};te.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);te.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.REASON),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ue.Kind.STRING,value:ue.DEFAULT_DEPRECATION_REASON}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.DEPRECATED),repeatable:!1};te.EXTENDS_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTENDS),repeatable:!1};te.EXTERNAL_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTERNAL),repeatable:!1};te.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPIC),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};te.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPICS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};te.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};te.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};te.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECTS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,ae.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};te.REQUIRED_FIELDSET_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};te.KEY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.RESOLVABLE),type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.KEY),repeatable:!0};te.PROVIDES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.PROVIDES),repeatable:!1};te.REQUIRES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.REQUIRES),repeatable:!1};te.SPECIFIED_BY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};te.TAG_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.TAG),repeatable:!0};te.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNEL),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};te.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNELS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,te.DEPRECATED_DEFINITION],[U.EXTENDS,te.EXTENDS_DEFINITION],[U.EXTERNAL,te.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,te.KEY_DEFINITION],[U.PROVIDES,te.PROVIDES_DEFINITION],[U.REQUIRES,te.REQUIRES_DEFINITION],[U.SPECIFIED_BY,te.SPECIFIED_BY_DEFINITION],[U.TAG,te.TAG_DEFINITION]]);te.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.OVERRIDE,U.PROVIDES,U.REQUIRES,U.REQUIRES_SCOPES,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);te.AUTHENTICATED_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};te.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};te.INACCESSIBLE_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};te.INTERFACE_OBJECT_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};te.LINK_IMPORT_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_IMPORT)};te.LINK_PURPOSE_DEFINITION={kind:ue.Kind.ENUM_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SECURITY)}]};te.LINK_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AS),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FOR),type:(0,ae.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IMPORT),type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.LINK),repeatable:!0};te.OVERRIDE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FROM),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.OVERRIDE),repeatable:!1};te.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};te.SHAREABLE_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.SHAREABLE),repeatable:!0};te.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONDITION),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AND_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IN_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.OR_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NOT_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};te.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_PATH),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.VALUES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,te.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,te.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,te.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,te.INTERFACE_OBJECT_DEFINITION],[U.LINK,te.LINK_DEFINITION],[U.OVERRIDE,te.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,te.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,te.SHAREABLE_DEFINITION]]);te.BASE_DIRECTIVE_DEFINITIONS=[te.DEPRECATED_DEFINITION,te.EXTENDS_DEFINITION,te.EXTERNAL_DEFINITION,te.KEY_DEFINITION,te.PROVIDES_DEFINITION,te.REQUIRES_DEFINITION,te.SPECIFIED_BY_DEFINITION,te.TAG_DEFINITION];te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);te.VERSION_TWO_DIRECTIVE_DEFINITIONS=[te.AUTHENTICATED_DEFINITION,te.COMPOSE_DIRECTIVE_DEFINITION,te.INACCESSIBLE_DEFINITION,te.INTERFACE_OBJECT_DEFINITION,te.OVERRIDE_DEFINITION,te.REQUIRES_SCOPES_DEFINITION,te.SHAREABLE_DEFINITION];te.FIELD_SET_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_SET_SCALAR)};te.SCOPE_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPE_SCALAR)};te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ue.Kind.INT,value:x9.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};te.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}},{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};te.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;te.MAX_OR_SCOPES=16});var CN=w(tc=>{"use strict";m();T();N();Object.defineProperty(tc,"__esModule",{value:!0});tc.newParentTagData=K9;tc.newChildTagData=G9;tc.validateImplicitFieldSets=$9;tc.newContractTagOptionsFromArrays=Q9;tc.getDescriptionFromString=Y9;var Hr=Ae(),q9=su(),V9=Es(),j9=Yr(),fC=Jr();function K9(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function G9(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function $9({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,fC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,p]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let f=[i],y=[],g=[],v=-1,P=!0,k=!0;(0,Hr.visit)(p,{Argument:{enter(){return k=!1,Hr.BREAK}},Field:{enter(K){let G=f[v];if(P)return k=!1,Hr.BREAK;let Z=K.name.value,W=G.fieldDataByName.get(Z);if(!W||W.argumentDataByName.size||y[v].has(Z))return k=!1,Hr.BREAK;let{isUnconditionallyProvided:Te}=(0,fC.getOrThrowError)(W.externalFieldDataBySubgraphName,t,`${W.originalParentTypeName}.${Z}.externalFieldDataBySubgraphName`),fe=e.get(`${W.renamedParentTypeName}.${Z}`);if(fe){if(fe.providedBy.length>0)g.push(...fe.providedBy);else if(fe.requiredBy.length>0)return k=!1,Hr.BREAK}else if(!Te)return k=!1,Hr.BREAK;y[v].add(Z);let we=(0,q9.getTypeNodeNamedTypeName)(W.node.type);if(V9.BASE_SCALARS.has(we))return;let Ve=a.get(we);if(!Ve)return k=!1,Hr.BREAK;if(Ve.kind===Hr.Kind.OBJECT_TYPE_DEFINITION){P=!0,f.push(Ve);return}if((0,j9.isKindAbstract)(Ve.kind))return k=!1,Hr.BREAK}},InlineFragment:{enter(){return k=!1,Hr.BREAK}},SelectionSet:{enter(){if(!P||(v+=1,P=!1,v<0||v>=f.length))return k=!1,Hr.BREAK;y.push(new Set)},leave(){if(P)return k=!1,Hr.BREAK;v-=1,f.pop(),y.pop()}}}),k&&(r.push(Y(x({fieldName:"",selectionSet:l},g.length>0?{conditions:g}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function Q9(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function Y9(e){if(e)return{block:!0,kind:Hr.Kind.STRING,value:e}}});var El=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=H9;mt.isNodeExternalOrShareable=z9;mt.isTypeRequired=W9;mt.areDefaultValuesCompatible=NC;mt.compareAndValidateInputValueDefaultValues=X9;mt.setMutualExecutableLocations=Z9;mt.isTypeNameRootType=e7;mt.getRenamedRootTypeName=t7;mt.childMapToValueArray=r7;mt.setLongestDescription=i7;mt.isParentDataRootType=TC;mt.isParentDataInterfaceType=a7;mt.setParentDataExtensionType=s7;mt.extractPersistedDirectives=c7;mt.propagateAuthDirectives=l7;mt.propagateFieldAuthDirectives=d7;mt.generateDeprecatedDirective=hv;mt.getClientPersistedDirectiveNodes=Tv;mt.getNodeForRouterSchemaByData=f7;mt.getClientSchemaFieldNodeByFieldData=m7;mt.getNodeWithPersistedDirectivesByInputValueData=hC;mt.addValidPersistedDirectiveDefinitionNodeByData=T7;mt.newInvalidFieldNames=E7;mt.validateExternalAndShareable=h7;mt.isTypeValidImplementation=BN;mt.isNodeDataInaccessible=yC;mt.isLeafKind=y7;mt.getSubscriptionFilterValue=I7;mt.getParentTypeName=g7;mt.newConditionalFieldData=_7;mt.getDefinitionDataCoords=v7;mt.isParentDataCompositeOutputType=S7;mt.newExternalFieldData=O7;mt.getInitialFederatedDescription=D7;mt.areKindsEqual=b7;mt.isFieldData=IC;mt.isInputNodeKind=A7;mt.isOutputNodeKind=R7;var st=Ae(),Nv=Ep(),Tl=Yr(),Ev=ia(),kt=ur(),hp=Jr(),J9=CN();function H9(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function z9(e,t,n){var i;let r={isExternal:n.has(kt.EXTERNAL),isShareable:t||n.has(kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===kt.EXTERNAL){r.isExternal=!0;continue}o===kt.SHAREABLE&&(r.isShareable=!0)}return r}function W9(e){return e.kind===st.Kind.NON_NULL_TYPE}function NC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case kt.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case kt.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case kt.INT_SCALAR:return t.kind===st.Kind.INT;case kt.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:NC(e.type,t)}}function X9(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Ev.incompatibleInputValueDefaultValuesError)(`${e.isArgument?kt.ARGUMENT:kt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function Z9(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function e7(e,t){return kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function t7(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return kt.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return kt.SUBSCRIPTION;default:return kt.QUERY}}function n7(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function r7(e){let t=[];for(let n of e.values()){IC(n)&&n7(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function i7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(t.requiredScopes)]))}function d7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.AUTHENTICATED,[(0,hp.generateSimpleDirective)(kt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function hv(e){return{kind:st.Kind.DIRECTIVE,name:(0,Tl.stringToNameNode)(kt.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,Tl.stringToNameNode)(kt.REASON),value:{kind:st.Kind.STRING,value:e||kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function p7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Ev.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function EC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(hv(e.persistedDirectivesData.deprecatedReason)),r.push(...p7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function Tv(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(hv(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directivesByDirectiveName)kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function f7(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=EC(e,t,n),e.node}function m7(e){let t=Tv(e),n=[];for(let r of e.argumentDataByName.values())yC(r)||n.push(Y(x({},r.node),{directives:Tv(r)}));return Y(x({},e.node),{directives:t,arguments:n})}function hC(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=EC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function N7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByArgumentName){let l=(0,hp.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(hC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Ev.invalidRequiredInputValueError)(kt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function T7(e,t,n,r){let i=[];N7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,Tl.setToNameNodeArray)(t.executableLocations),name:(0,Tl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function E7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function h7(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var mC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(mC||(mt.MergeMethod=mC={}));function BN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:BN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return BN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?BN(e.type,t.type,n):!1}}function yC(e){return e.persistedDirectivesData.directivesByDirectiveName.has(kt.INACCESSIBLE)||e.directivesByDirectiveName.has(kt.INACCESSIBLE)}function y7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function I7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function g7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function _7(){return{providedBy:[],requiredBy:[]}}function v7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function S7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function O7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function D7(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,J9.getDescriptionFromString)(t.description)||e.description}function b7(e,t){return e.kind===t.kind}function IC(e){return e.kind===st.Kind.FIELD_DEFINITION}function A7(e){return kt.INPUT_NODE_KINDS.has(e)}function R7(e){return kt.OUTPUT_NODE_KINDS.has(e)}});var gv={};am(gv,{__addDisposableResource:()=>VC,__assign:()=>UN,__asyncDelegator:()=>LC,__asyncGenerator:()=>wC,__asyncValues:()=>CC,__await:()=>hl,__awaiter:()=>DC,__classPrivateFieldGet:()=>MC,__classPrivateFieldIn:()=>qC,__classPrivateFieldSet:()=>xC,__createBinding:()=>MN,__decorate:()=>vC,__disposeResources:()=>jC,__esDecorate:()=>P7,__exportStar:()=>AC,__extends:()=>gC,__generator:()=>bC,__importDefault:()=>kC,__importStar:()=>UC,__makeTemplateObject:()=>BC,__metadata:()=>OC,__param:()=>SC,__propKey:()=>w7,__read:()=>Iv,__rest:()=>_C,__runInitializers:()=>F7,__setFunctionName:()=>L7,__spread:()=>RC,__spreadArray:()=>FC,__spreadArrays:()=>PC,__values:()=>kN,default:()=>U7});function gC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function _C(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function SC(e,t){return function(n,r){t(n,r,e)}}function P7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var k in r)P[k]=k==="access"?{}:r[k];for(var k in r.access)P.access[k]=r.access[k];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function F7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Iv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function RC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof hl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function LC(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:hl(e[i](o)),done:!1}:a?a(o):o}:a}}function CC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kN=="function"?kN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function BC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function UC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&MN(t,e,n);return C7(t,e),t}function kC(e){return e&&e.__esModule?e:{default:e}}function MC(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function xC(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function qC(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function VC(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function jC(e){function t(r){e.error=e.hasError?new B7(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var yv,UN,MN,C7,B7,U7,_v=wu(()=>{"use strict";m();T();N();yv=function(e,t){return yv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},yv(e,t)};UN=function(){return UN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rcB,__assign:()=>xN,__asyncDelegator:()=>tB,__asyncGenerator:()=>eB,__asyncValues:()=>nB,__await:()=>yl,__awaiter:()=>JC,__classPrivateFieldGet:()=>sB,__classPrivateFieldIn:()=>uB,__classPrivateFieldSet:()=>oB,__createBinding:()=>VN,__decorate:()=>$C,__disposeResources:()=>lB,__esDecorate:()=>k7,__exportStar:()=>zC,__extends:()=>KC,__generator:()=>HC,__importDefault:()=>aB,__importStar:()=>iB,__makeTemplateObject:()=>rB,__metadata:()=>YC,__param:()=>QC,__propKey:()=>x7,__read:()=>Sv,__rest:()=>GC,__runInitializers:()=>M7,__setFunctionName:()=>q7,__spread:()=>WC,__spreadArray:()=>ZC,__spreadArrays:()=>XC,__values:()=>qN,default:()=>K7});function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function GC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function QC(e,t){return function(n,r){t(n,r,e)}}function k7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var k in r)P[k]=k==="access"?{}:r[k];for(var k in r.access)P.access[k]=r.access[k];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function M7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function WC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof yl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function tB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:yl(e[i](o)),done:!1}:a?a(o):o}:a}}function nB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qN=="function"?qN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function rB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function iB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&VN(t,e,n);return V7(t,e),t}function aB(e){return e&&e.__esModule?e:{default:e}}function sB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function oB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function uB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function cB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function lB(e){function t(r){e.error=e.hasError?new j7(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var vv,xN,VN,V7,j7,K7,pB=wu(()=>{"use strict";m();T();N();vv=function(e,t){return vv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},vv(e,t)};xN=function(){return xN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var yp=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.assertSome=cr.isSome=cr.compareNodes=cr.nodeToString=cr.compareStrings=cr.isValidPath=cr.isDocumentString=cr.asArray=void 0;var G7=Ae(),$7=e=>Array.isArray(e)?e:e?[e]:[];cr.asArray=$7;var Q7=/\.[a-z0-9]+$/i;function Y7(e){if(typeof e!="string"||Q7.test(e))return!1;try{return(0,G7.parse)(e),!0}catch(t){}return!1}cr.isDocumentString=Y7;var J7=/[‘“!%^<>`]/;function H7(e){return typeof e=="string"&&!J7.test(e)}cr.isValidPath=H7;function mB(e,t){return String(e)String(t)?1:0}cr.compareStrings=mB;function Ov(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}cr.nodeToString=Ov;function z7(e,t,n){let r=Ov(e),i=Ov(t);return typeof n=="function"?n(r,i):mB(r,i)}cr.compareNodes=z7;function W7(e){return e!=null}cr.isSome=W7;function X7(e,t="Value should be something"){if(e==null)throw new Error(t)}cr.assertSome=X7});var Ip=w(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.inspect=void 0;var EB=3;function Z7(e){return jN(e,[])}KN.inspect=Z7;function jN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return eZ(e,t);default:return String(e)}}function NB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`))}return Y(x({},e),{value:t,block:!0})}function iC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function RN(e){let t=e.selections;return Y(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return vn.NAME in n?vn.NAME in r?n.name.value.localeCompare(r.name.value):-1:vn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Ut.Kind.FIELD:return Y(x({},n),{arguments:iC(n),selectionSet:n.selectionSet?RN(n.selectionSet):n.selectionSet});case Ut.Kind.FRAGMENT_SPREAD:return n;case Ut.Kind.INLINE_FRAGMENT:return Y(x({},n),{selectionSet:RN(n.selectionSet)})}})})}function a9(e){return Y(x({},e),{definitions:e.definitions.map(t=>t.kind!==Ut.Kind.OPERATION_DEFINITION?t:Y(x({},t),{selectionSet:RN(t.selectionSet)}))})}function aC(e,t=!0){return(0,Ut.parse)(e,{noLocation:t})}function s9(e,t=!0){try{return{documentNode:aC(e,t)}}catch(n){return{error:n}}}});var uC=w(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.AccumulatorMap=void 0;fl.mapValue=pl;fl.extendSchemaImpl=o9;var Ue=Ae(),Ts=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};fl.AccumulatorMap=Ts;function pl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function o9(e,t,n){var De,_e,Le,_t;let r=[],i=new Ts,a=new Ts,o=new Ts,c=new Ts,l=new Ts,p=new Ts,f=[],y,g=[],v=!1;for(let J of t.definitions){switch(J.kind){case Ue.Kind.SCHEMA_DEFINITION:y=J;break;case Ue.Kind.SCHEMA_EXTENSION:g.push(J);break;case Ue.Kind.DIRECTIVE_DEFINITION:f.push(J);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(J.name.value,J);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(J.name.value,J);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(J.name.value,J);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:p.add(J.name.value,J);break;default:continue}v=!0}if(!v)return e;let F=new Map;for(let J of e.types){let se=z(J);se&&F.set(J.name,se)}for(let J of r){let se=J.name.value;F.set(se,(De=sC.get(se))!=null?De:oe(J))}for(let[J,se]of a)F.set(J,new Ue.GraphQLObjectType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,se]of o)F.set(J,new Ue.GraphQLInterfaceType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));for(let[J,se]of l)F.set(J,new Ue.GraphQLEnumType({name:J,values:Un(se),extensionASTNodes:se}));for(let[J,se]of c)F.set(J,new Ue.GraphQLUnionType({name:J,types:()=>bn(se),extensionASTNodes:se}));for(let[J,se]of i)F.set(J,new Ue.GraphQLScalarType({name:J,extensionASTNodes:se}));for(let[J,se]of p)F.set(J,new Ue.GraphQLInputObjectType({name:J,fields:()=>Rr(se),extensionASTNodes:se}))}let k=x(x({query:e.query&&$(e.query),mutation:e.mutation&&$(e.mutation),subscription:e.subscription&&$(e.subscription)},y&&zt([y])),zt(g));return Y(x({description:(Le=(_e=y==null?void 0:y.description)==null?void 0:_e.value)!=null?Le:e.description},k),{types:Array.from(F.values()),directives:[...e.directives.map(ne),...f.map(Vt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(_t=n==null?void 0:n.assumeValid)!=null?_t:!1});function K(J){return(0,Ue.isListType)(J)?new Ue.GraphQLList(K(J.ofType)):(0,Ue.isNonNullType)(J)?new Ue.GraphQLNonNull(K(J.ofType)):$(J)}function $(J){return F.get(J.name)}function ne(J){if((0,Ue.isSpecifiedDirective)(J))return J;let se=J.toConfig();return new Ue.GraphQLDirective(Y(x({},se),{args:pl(se.args,gt)}))}function z(J){if((0,Ue.isIntrospectionType)(J)||(0,Ue.isSpecifiedScalarType)(J))return J;if((0,Ue.isScalarType)(J))return Fe(J);if((0,Ue.isObjectType)(J))return Ve(J);if((0,Ue.isInterfaceType)(J))return et(J);if((0,Ue.isUnionType)(J))return X(J);if((0,Ue.isEnumType)(J))return pe(J);if((0,Ue.isInputObjectType)(J))return Te(J)}function Te(J){var Qe;let se=J.toConfig(),xe=(Qe=p.get(se.name))!=null?Qe:[];return new Ue.GraphQLInputObjectType(Y(x({},se),{fields:()=>x(x({},pl(se.fields,Lt=>Y(x({},Lt),{type:K(Lt.type)}))),Rr(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function pe(J){var Qe;let se=J.toConfig(),xe=(Qe=l.get(J.name))!=null?Qe:[];return new Ue.GraphQLEnumType(Y(x({},se),{values:x(x({},se.values),Un(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function Fe(J){var Lt,tt;let se=J.toConfig(),xe=(Lt=i.get(se.name))!=null?Lt:[],Qe=se.specifiedByURL;for(let At of xe)Qe=(tt=oC(At))!=null?tt:Qe;return new Ue.GraphQLScalarType(Y(x({},se),{specifiedByURL:Qe,extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function Ve(J){var Qe;let se=J.toConfig(),xe=(Qe=a.get(se.name))!=null?Qe:[];return new Ue.GraphQLObjectType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map($),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function et(J){var Qe;let se=J.toConfig(),xe=(Qe=o.get(se.name))!=null?Qe:[];return new Ue.GraphQLInterfaceType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map($),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function X(J){var Qe;let se=J.toConfig(),xe=(Qe=c.get(se.name))!=null?Qe:[];return new Ue.GraphQLUnionType(Y(x({},se),{types:()=>[...J.getTypes().map($),...bn(xe)],extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ve(J){return Y(x({},J),{type:K(J.type),args:J.args&&pl(J.args,gt)})}function gt(J){return Y(x({},J),{type:K(J.type)})}function zt(J){var xe;let se={};for(let Qe of J){let Lt=(xe=Qe.operationTypes)!=null?xe:[];for(let tt of Lt)se[tt.operation]=Wt(tt.type)}return se}function Wt(J){var Qe;let se=J.name.value,xe=(Qe=sC.get(se))!=null?Qe:F.get(se);if(xe===void 0)throw new Error(`Unknown type: "${se}".`);return xe}function Dn(J){return J.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Dn(J.type)):J.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Dn(J.type)):Wt(J)}function Vt(J){var se;return new Ue.GraphQLDirective({name:J.name.value,description:(se=J.description)==null?void 0:se.value,locations:J.locations.map(({value:xe})=>xe),isRepeatable:J.repeatable,args:Ar(J.arguments),astNode:J})}function dn(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let tt=(xe=Lt.fields)!=null?xe:[];for(let At of tt)se[At.name.value]={type:Dn(At.type),description:(Qe=At.description)==null?void 0:Qe.value,args:Ar(At.arguments),deprecationReason:FN(At),astNode:At}}return se}function Ar(J){var Qe;let se=J!=null?J:[],xe=Object.create(null);for(let Lt of se){let tt=Dn(Lt.type);xe[Lt.name.value]={type:tt,description:(Qe=Lt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(Lt.defaultValue,tt),deprecationReason:FN(Lt),astNode:Lt}}return xe}function Rr(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let tt=(xe=Lt.fields)!=null?xe:[];for(let At of tt){let Ha=Dn(At.type);se[At.name.value]={type:Ha,description:(Qe=At.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(At.defaultValue,Ha),deprecationReason:FN(At),astNode:At}}}return se}function Un(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let tt=(xe=Lt.values)!=null?xe:[];for(let At of tt)se[At.name.value]={description:(Qe=At.description)==null?void 0:Qe.value,deprecationReason:FN(At),astNode:At}}return se}function $t(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.interfaces)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function bn(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.types)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function oe(J){var xe,Qe,Lt,tt,At,Ha,xr,za,wc,ha,pr,ni;let se=J.name.value;switch(J.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(xe=a.get(se))!=null?xe:[],fr=[J,...xt];return a.delete(se),new Ue.GraphQLObjectType({name:se,description:(Qe=J.description)==null?void 0:Qe.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Lt=o.get(se))!=null?Lt:[],fr=[J,...xt];return o.delete(se),new Ue.GraphQLInterfaceType({name:se,description:(tt=J.description)==null?void 0:tt.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(At=l.get(se))!=null?At:[],fr=[J,...xt];return l.delete(se),new Ue.GraphQLEnumType({name:se,description:(Ha=J.description)==null?void 0:Ha.value,values:Un(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(xr=c.get(se))!=null?xr:[],fr=[J,...xt];return c.delete(se),new Ue.GraphQLUnionType({name:se,description:(za=J.description)==null?void 0:za.value,types:()=>bn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(wc=i.get(se))!=null?wc:[];return i.delete(se),new Ue.GraphQLScalarType({name:se,description:(ha=J.description)==null?void 0:ha.value,specifiedByURL:oC(J),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(pr=p.get(se))!=null?pr:[],fr=[J,...xt];return p.delete(se),new Ue.GraphQLInputObjectType({name:se,description:(ni=J.description)==null?void 0:ni.value,fields:()=>Rr(fr),astNode:J,extensionASTNodes:xt})}}}}var sC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function FN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function oC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var lv=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.buildASTSchema=l9;var cC=Ae(),u9=cl(),c9=uC();function l9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,u9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,c9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new cC.GraphQLSchema(Y(x({},r),{directives:i}))}});var ml=w(au=>{"use strict";m();T();N();Object.defineProperty(au,"__esModule",{value:!0});au.MAX_INT32=au.MAX_SUBSCRIPTION_FILTER_DEPTH=au.MAXIMUM_TYPE_NESTING=void 0;au.MAXIMUM_TYPE_NESTING=30;au.MAX_SUBSCRIPTION_FILTER_DEPTH=5;au.MAX_INT32=nn(2,31)-1});var Jr=w(Nr=>{"use strict";m();T();N();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getOrThrowError=p9;Nr.getEntriesNotInHashSet=f9;Nr.numberToOrdinal=m9;Nr.addIterableValuesToSet=N9;Nr.addSets=T9;Nr.kindToNodeType=E9;Nr.getValueOrDefault=h9;Nr.add=y9;Nr.generateSimpleDirective=I9;Nr.generateRequiresScopesDirective=g9;Nr.copyObjectValueMap=_9;Nr.addNewObjectValueMapEntries=v9;Nr.copyArrayValueMap=S9;Nr.addMapEntries=O9;Nr.getSingleSetEntry=D9;var an=Ae(),_r=ur(),d9=ia(),dv=Yr();function p9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,d9.invalidKeyFatalError)(t,n);return r}function f9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function m9(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function N9(e,t){for(let n of e)t.add(n)}function T9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function E9(e){switch(e){case an.Kind.BOOLEAN:return _r.BOOLEAN_SCALAR;case an.Kind.ENUM:case an.Kind.ENUM_TYPE_DEFINITION:return _r.ENUM;case an.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case an.Kind.ENUM_VALUE_DEFINITION:return _r.ENUM_VALUE;case an.Kind.FIELD_DEFINITION:return _r.FIELD;case an.Kind.FLOAT:return _r.FLOAT_SCALAR;case an.Kind.INPUT_OBJECT_TYPE_DEFINITION:return _r.INPUT_OBJECT;case an.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case an.Kind.INPUT_VALUE_DEFINITION:return _r.INPUT_VALUE;case an.Kind.INT:return _r.INT_SCALAR;case an.Kind.INTERFACE_TYPE_DEFINITION:return _r.INTERFACE;case an.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case an.Kind.NULL:return _r.NULL;case an.Kind.OBJECT:case an.Kind.OBJECT_TYPE_DEFINITION:return _r.OBJECT;case an.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case an.Kind.STRING:return _r.STRING_SCALAR;case an.Kind.SCALAR_TYPE_DEFINITION:return _r.SCALAR;case an.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case an.Kind.UNION_TYPE_DEFINITION:return _r.UNION;case an.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function h9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function y9(e,t){return e.has(t)?!1:(e.add(t),!0)}function I9(e){return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(e)}}function g9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:an.Kind.STRING,value:i});t.push({kind:an.Kind.LIST,values:r})}return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(_r.REQUIRES_SCOPES),arguments:[{kind:an.Kind.ARGUMENT,name:(0,dv.stringToNameNode)(_r.SCOPES),value:{kind:an.Kind.LIST,values:t}}]}}function _9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function v9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function S9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function O9(e,t){for(let[n,r]of e)t.set(n,r)}function D9(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Ep=w(wN=>{"use strict";m();T();N();Object.defineProperty(wN,"__esModule",{value:!0});wN.ExtensionType=void 0;var lC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(lC||(wN.ExtensionType=lC={}))});var su=w(Sr=>{"use strict";m();T();N();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getMutableDirectiveDefinitionNode=A9;Sr.getMutableEnumNode=R9;Sr.getMutableEnumValueNode=P9;Sr.getMutableFieldNode=F9;Sr.getMutableInputObjectNode=w9;Sr.getMutableInputValueNode=L9;Sr.getMutableInterfaceNode=C9;Sr.getMutableObjectNode=B9;Sr.getMutableObjectExtensionNode=U9;Sr.getMutableScalarNode=k9;Sr.getMutableTypeNode=pv;Sr.getMutableUnionNode=M9;Sr.getTypeNodeNamedTypeName=fv;Sr.getNamedTypeNode=pC;var vr=Ae(),Nl=Yr(),dC=ia(),b9=ml();function A9(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,Nl.formatDescription)(e.description)}}function R9(e){return{kind:vr.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function P9(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,Nl.formatDescription)(e.description)}}function F9(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),description:(0,Nl.formatDescription)(e.description)}}function w9(e){return{kind:vr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function L9(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Nl.formatDescription)(e.description)}}function C9(e){return{kind:vr.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function B9(e){return{kind:vr.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function U9(e){let t=e.kind===vr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:vr.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,Nl.formatDescription)(t)}}function k9(e){return{kind:vr.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function pv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(LN,"__esModule",{value:!0});LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Es=w(ee=>{"use strict";m();T();N();Object.defineProperty(ee,"__esModule",{value:!0});ee.MAX_OR_SCOPES=ee.EDFS_ARGS_REGEXP=ee.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=ee.CONFIGURE_DESCRIPTION_DEFINITION=ee.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=ee.SCOPE_SCALAR_DEFINITION=ee.FIELD_SET_SCALAR_DEFINITION=ee.VERSION_TWO_DIRECTIVE_DEFINITIONS=ee.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=ee.BASE_DIRECTIVE_DEFINITIONS=ee.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=ee.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=ee.SUBSCRIPTION_FILTER_VALUE_DEFINITION=ee.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=ee.SUBSCRIPTION_FILTER_DEFINITION=ee.SHAREABLE_DEFINITION=ee.REQUIRES_SCOPES_DEFINITION=ee.OVERRIDE_DEFINITION=ee.LINK_DEFINITION=ee.LINK_PURPOSE_DEFINITION=ee.LINK_IMPORT_DEFINITION=ee.INTERFACE_OBJECT_DEFINITION=ee.INACCESSIBLE_DEFINITION=ee.COMPOSE_DIRECTIVE_DEFINITION=ee.AUTHENTICATED_DEFINITION=ee.ALL_IN_BUILT_DIRECTIVE_NAMES=ee.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=ee.EDFS_REDIS_SUBSCRIBE_DEFINITION=ee.EDFS_REDIS_PUBLISH_DEFINITION=ee.TAG_DEFINITION=ee.SPECIFIED_BY_DEFINITION=ee.REQUIRES_DEFINITION=ee.PROVIDES_DEFINITION=ee.KEY_DEFINITION=ee.REQUIRED_FIELDSET_TYPE_NODE=ee.EDFS_NATS_SUBSCRIBE_DEFINITION=ee.EDFS_NATS_REQUEST_DEFINITION=ee.EDFS_NATS_PUBLISH_DEFINITION=ee.EDFS_KAFKA_SUBSCRIBE_DEFINITION=ee.EDFS_KAFKA_PUBLISH_DEFINITION=ee.EXTERNAL_DEFINITION=ee.EXTENDS_DEFINITION=ee.DEPRECATED_DEFINITION=ee.BASE_SCALARS=ee.REQUIRED_STRING_TYPE_NODE=void 0;var ue=Ae(),ae=Yr(),x9=mv(),U=ur();ee.REQUIRED_STRING_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)};ee.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);ee.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.REASON),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ue.Kind.STRING,value:ue.DEFAULT_DEPRECATION_REASON}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.DEPRECATED),repeatable:!1};ee.EXTENDS_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTENDS),repeatable:!1};ee.EXTERNAL_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTERNAL),repeatable:!1};ee.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPIC),type:ee.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:ee.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};ee.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPICS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:ee.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:ee.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};ee.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:ee.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};ee.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};ee.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECTS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:ee.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:ee.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,ae.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};ee.REQUIRED_FIELDSET_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};ee.KEY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:ee.REQUIRED_FIELDSET_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.RESOLVABLE),type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.KEY),repeatable:!0};ee.PROVIDES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:ee.REQUIRED_FIELDSET_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.PROVIDES),repeatable:!1};ee.REQUIRES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.REQUIRES),repeatable:!1};ee.SPECIFIED_BY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:ee.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};ee.TAG_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.TAG),repeatable:!0};ee.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNEL),type:ee.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:ee.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};ee.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNELS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:ee.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:ee.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};ee.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,ee.DEPRECATED_DEFINITION],[U.EXTENDS,ee.EXTENDS_DEFINITION],[U.EXTERNAL,ee.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,ee.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,ee.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,ee.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,ee.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,ee.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,ee.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,ee.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,ee.KEY_DEFINITION],[U.PROVIDES,ee.PROVIDES_DEFINITION],[U.REQUIRES,ee.REQUIRES_DEFINITION],[U.SPECIFIED_BY,ee.SPECIFIED_BY_DEFINITION],[U.TAG,ee.TAG_DEFINITION]]);ee.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.OVERRIDE,U.PROVIDES,U.REQUIRES,U.REQUIRES_SCOPES,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);ee.AUTHENTICATED_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};ee.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:ee.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};ee.INACCESSIBLE_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};ee.INTERFACE_OBJECT_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};ee.LINK_IMPORT_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_IMPORT)};ee.LINK_PURPOSE_DEFINITION={kind:ue.Kind.ENUM_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SECURITY)}]};ee.LINK_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AS),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FOR),type:(0,ae.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IMPORT),type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.LINK),repeatable:!0};ee.OVERRIDE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FROM),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.OVERRIDE),repeatable:!1};ee.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};ee.SHAREABLE_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.SHAREABLE),repeatable:!0};ee.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONDITION),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};ee.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AND_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IN_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.OR_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NOT_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};ee.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};ee.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_PATH),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.VALUES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};ee.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,ee.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,ee.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,ee.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,ee.INTERFACE_OBJECT_DEFINITION],[U.LINK,ee.LINK_DEFINITION],[U.OVERRIDE,ee.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,ee.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,ee.SHAREABLE_DEFINITION]]);ee.BASE_DIRECTIVE_DEFINITIONS=[ee.DEPRECATED_DEFINITION,ee.EXTENDS_DEFINITION,ee.EXTERNAL_DEFINITION,ee.KEY_DEFINITION,ee.PROVIDES_DEFINITION,ee.REQUIRES_DEFINITION,ee.SPECIFIED_BY_DEFINITION,ee.TAG_DEFINITION];ee.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,ee.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,ee.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,ee.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,ee.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,ee.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,ee.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,ee.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);ee.VERSION_TWO_DIRECTIVE_DEFINITIONS=[ee.AUTHENTICATED_DEFINITION,ee.COMPOSE_DIRECTIVE_DEFINITION,ee.INACCESSIBLE_DEFINITION,ee.INTERFACE_OBJECT_DEFINITION,ee.OVERRIDE_DEFINITION,ee.REQUIRES_SCOPES_DEFINITION,ee.SHAREABLE_DEFINITION];ee.FIELD_SET_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_SET_SCALAR)};ee.SCOPE_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPE_SCALAR)};ee.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ue.Kind.INT,value:x9.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};ee.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}},{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};ee.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};ee.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;ee.MAX_OR_SCOPES=16});var CN=w(tc=>{"use strict";m();T();N();Object.defineProperty(tc,"__esModule",{value:!0});tc.newParentTagData=K9;tc.newChildTagData=G9;tc.validateImplicitFieldSets=$9;tc.newContractTagOptionsFromArrays=Q9;tc.getDescriptionFromString=Y9;var Hr=Ae(),q9=su(),V9=Es(),j9=Yr(),fC=Jr();function K9(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function G9(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function $9({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,fC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,p]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let f=[i],y=[],g=[],v=-1,F=!0,k=!0;(0,Hr.visit)(p,{Argument:{enter(){return k=!1,Hr.BREAK}},Field:{enter(K){let $=f[v];if(F)return k=!1,Hr.BREAK;let ne=K.name.value,z=$.fieldDataByName.get(ne);if(!z||z.argumentDataByName.size||y[v].has(ne))return k=!1,Hr.BREAK;let{isUnconditionallyProvided:Te}=(0,fC.getOrThrowError)(z.externalFieldDataBySubgraphName,t,`${z.originalParentTypeName}.${ne}.externalFieldDataBySubgraphName`),pe=e.get(`${z.renamedParentTypeName}.${ne}`);if(pe){if(pe.providedBy.length>0)g.push(...pe.providedBy);else if(pe.requiredBy.length>0)return k=!1,Hr.BREAK}else if(!Te)return k=!1,Hr.BREAK;y[v].add(ne);let Fe=(0,q9.getTypeNodeNamedTypeName)(z.node.type);if(V9.BASE_SCALARS.has(Fe))return;let Ve=a.get(Fe);if(!Ve)return k=!1,Hr.BREAK;if(Ve.kind===Hr.Kind.OBJECT_TYPE_DEFINITION){F=!0,f.push(Ve);return}if((0,j9.isKindAbstract)(Ve.kind))return k=!1,Hr.BREAK}},InlineFragment:{enter(){return k=!1,Hr.BREAK}},SelectionSet:{enter(){if(!F||(v+=1,F=!1,v<0||v>=f.length))return k=!1,Hr.BREAK;y.push(new Set)},leave(){if(F)return k=!1,Hr.BREAK;v-=1,f.pop(),y.pop()}}}),k&&(r.push(Y(x({fieldName:"",selectionSet:l},g.length>0?{conditions:g}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function Q9(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function Y9(e){if(e)return{block:!0,kind:Hr.Kind.STRING,value:e}}});var El=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=H9;mt.isNodeExternalOrShareable=z9;mt.isTypeRequired=W9;mt.areDefaultValuesCompatible=NC;mt.compareAndValidateInputValueDefaultValues=X9;mt.setMutualExecutableLocations=Z9;mt.isTypeNameRootType=e7;mt.getRenamedRootTypeName=t7;mt.childMapToValueArray=r7;mt.setLongestDescription=i7;mt.isParentDataRootType=TC;mt.isParentDataInterfaceType=a7;mt.setParentDataExtensionType=s7;mt.extractPersistedDirectives=c7;mt.propagateAuthDirectives=l7;mt.propagateFieldAuthDirectives=d7;mt.generateDeprecatedDirective=hv;mt.getClientPersistedDirectiveNodes=Tv;mt.getNodeForRouterSchemaByData=f7;mt.getClientSchemaFieldNodeByFieldData=m7;mt.getNodeWithPersistedDirectivesByInputValueData=hC;mt.addValidPersistedDirectiveDefinitionNodeByData=T7;mt.newInvalidFieldNames=E7;mt.validateExternalAndShareable=h7;mt.isTypeValidImplementation=BN;mt.isNodeDataInaccessible=yC;mt.isLeafKind=y7;mt.getSubscriptionFilterValue=I7;mt.getParentTypeName=g7;mt.newConditionalFieldData=_7;mt.getDefinitionDataCoords=v7;mt.isParentDataCompositeOutputType=S7;mt.newExternalFieldData=O7;mt.getInitialFederatedDescription=D7;mt.areKindsEqual=b7;mt.isFieldData=IC;mt.isInputNodeKind=A7;mt.isOutputNodeKind=R7;var st=Ae(),Nv=Ep(),Tl=Yr(),Ev=ia(),kt=ur(),hp=Jr(),J9=CN();function H9(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function z9(e,t,n){var i;let r={isExternal:n.has(kt.EXTERNAL),isShareable:t||n.has(kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===kt.EXTERNAL){r.isExternal=!0;continue}o===kt.SHAREABLE&&(r.isShareable=!0)}return r}function W9(e){return e.kind===st.Kind.NON_NULL_TYPE}function NC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case kt.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case kt.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case kt.INT_SCALAR:return t.kind===st.Kind.INT;case kt.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:NC(e.type,t)}}function X9(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Ev.incompatibleInputValueDefaultValuesError)(`${e.isArgument?kt.ARGUMENT:kt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function Z9(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function e7(e,t){return kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function t7(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return kt.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return kt.SUBSCRIPTION;default:return kt.QUERY}}function n7(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function r7(e){let t=[];for(let n of e.values()){IC(n)&&n7(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function i7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(t.requiredScopes)]))}function d7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.AUTHENTICATED,[(0,hp.generateSimpleDirective)(kt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function hv(e){return{kind:st.Kind.DIRECTIVE,name:(0,Tl.stringToNameNode)(kt.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,Tl.stringToNameNode)(kt.REASON),value:{kind:st.Kind.STRING,value:e||kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function p7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Ev.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function EC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(hv(e.persistedDirectivesData.deprecatedReason)),r.push(...p7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function Tv(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(hv(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directivesByDirectiveName)kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function f7(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=EC(e,t,n),e.node}function m7(e){let t=Tv(e),n=[];for(let r of e.argumentDataByName.values())yC(r)||n.push(Y(x({},r.node),{directives:Tv(r)}));return Y(x({},e.node),{directives:t,arguments:n})}function hC(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=EC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function N7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByArgumentName){let l=(0,hp.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(hC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Ev.invalidRequiredInputValueError)(kt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function T7(e,t,n,r){let i=[];N7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,Tl.setToNameNodeArray)(t.executableLocations),name:(0,Tl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function E7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function h7(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var mC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(mC||(mt.MergeMethod=mC={}));function BN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:BN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return BN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?BN(e.type,t.type,n):!1}}function yC(e){return e.persistedDirectivesData.directivesByDirectiveName.has(kt.INACCESSIBLE)||e.directivesByDirectiveName.has(kt.INACCESSIBLE)}function y7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function I7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function g7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function _7(){return{providedBy:[],requiredBy:[]}}function v7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function S7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function O7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function D7(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,J9.getDescriptionFromString)(t.description)||e.description}function b7(e,t){return e.kind===t.kind}function IC(e){return e.kind===st.Kind.FIELD_DEFINITION}function A7(e){return kt.INPUT_NODE_KINDS.has(e)}function R7(e){return kt.OUTPUT_NODE_KINDS.has(e)}});var gv={};am(gv,{__addDisposableResource:()=>VC,__assign:()=>UN,__asyncDelegator:()=>LC,__asyncGenerator:()=>wC,__asyncValues:()=>CC,__await:()=>hl,__awaiter:()=>DC,__classPrivateFieldGet:()=>MC,__classPrivateFieldIn:()=>qC,__classPrivateFieldSet:()=>xC,__createBinding:()=>MN,__decorate:()=>vC,__disposeResources:()=>jC,__esDecorate:()=>P7,__exportStar:()=>AC,__extends:()=>gC,__generator:()=>bC,__importDefault:()=>kC,__importStar:()=>UC,__makeTemplateObject:()=>BC,__metadata:()=>OC,__param:()=>SC,__propKey:()=>w7,__read:()=>Iv,__rest:()=>_C,__runInitializers:()=>F7,__setFunctionName:()=>L7,__spread:()=>RC,__spreadArray:()=>FC,__spreadArrays:()=>PC,__values:()=>kN,default:()=>U7});function gC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function _C(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function SC(e,t){return function(n,r){t(n,r,e)}}function P7(e,t,n,r,i,a){function o($){if($!==void 0&&typeof $!="function")throw new TypeError("Function expected");return $}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function($){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o($||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function F7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Iv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function RC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(F){y(a[0][3],F)}}function l(g){g.value instanceof hl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function LC(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:hl(e[i](o)),done:!1}:a?a(o):o}:a}}function CC(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kN=="function"?kN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function BC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function UC(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&MN(t,e,n);return C7(t,e),t}function kC(e){return e&&e.__esModule?e:{default:e}}function MC(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function xC(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function qC(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function VC(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function jC(e){function t(r){e.error=e.hasError?new B7(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var yv,UN,MN,C7,B7,U7,_v=wu(()=>{"use strict";m();T();N();yv=function(e,t){return yv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},yv(e,t)};UN=function(){return UN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rcB,__assign:()=>xN,__asyncDelegator:()=>tB,__asyncGenerator:()=>eB,__asyncValues:()=>nB,__await:()=>yl,__awaiter:()=>JC,__classPrivateFieldGet:()=>sB,__classPrivateFieldIn:()=>uB,__classPrivateFieldSet:()=>oB,__createBinding:()=>VN,__decorate:()=>$C,__disposeResources:()=>lB,__esDecorate:()=>k7,__exportStar:()=>zC,__extends:()=>KC,__generator:()=>HC,__importDefault:()=>aB,__importStar:()=>iB,__makeTemplateObject:()=>rB,__metadata:()=>YC,__param:()=>QC,__propKey:()=>x7,__read:()=>Sv,__rest:()=>GC,__runInitializers:()=>M7,__setFunctionName:()=>q7,__spread:()=>WC,__spreadArray:()=>ZC,__spreadArrays:()=>XC,__values:()=>qN,default:()=>K7});function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function GC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function QC(e,t){return function(n,r){t(n,r,e)}}function k7(e,t,n,r,i,a){function o($){if($!==void 0&&typeof $!="function")throw new TypeError("Function expected");return $}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var F={};for(var k in r)F[k]=k==="access"?{}:r[k];for(var k in r.access)F.access[k]=r.access[k];F.addInitializer=function($){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o($||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],F);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function M7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function WC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(F){y(a[0][3],F)}}function l(g){g.value instanceof yl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function tB(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:yl(e[i](o)),done:!1}:a?a(o):o}:a}}function nB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qN=="function"?qN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function rB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function iB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&VN(t,e,n);return V7(t,e),t}function aB(e){return e&&e.__esModule?e:{default:e}}function sB(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function oB(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function uB(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function cB(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function lB(e){function t(r){e.error=e.hasError?new j7(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var vv,xN,VN,V7,j7,K7,pB=wu(()=>{"use strict";m();T();N();vv=function(e,t){return vv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},vv(e,t)};xN=function(){return xN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var yp=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.assertSome=cr.isSome=cr.compareNodes=cr.nodeToString=cr.compareStrings=cr.isValidPath=cr.isDocumentString=cr.asArray=void 0;var G7=Ae(),$7=e=>Array.isArray(e)?e:e?[e]:[];cr.asArray=$7;var Q7=/\.[a-z0-9]+$/i;function Y7(e){if(typeof e!="string"||Q7.test(e))return!1;try{return(0,G7.parse)(e),!0}catch(t){}return!1}cr.isDocumentString=Y7;var J7=/[‘“!%^<>`]/;function H7(e){return typeof e=="string"&&!J7.test(e)}cr.isValidPath=H7;function mB(e,t){return String(e)String(t)?1:0}cr.compareStrings=mB;function Ov(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}cr.nodeToString=Ov;function z7(e,t,n){let r=Ov(e),i=Ov(t);return typeof n=="function"?n(r,i):mB(r,i)}cr.compareNodes=z7;function W7(e){return e!=null}cr.isSome=W7;function X7(e,t="Value should be something"){if(e==null)throw new Error(t)}cr.assertSome=X7});var Ip=w(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.inspect=void 0;var EB=3;function Z7(e){return jN(e,[])}KN.inspect=Z7;function jN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return eZ(e,t);default:return String(e)}}function NB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function eZ(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?NB(e)+` -`+TB(e.errors,t):NB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(tZ(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jN(r,n)}else if(Array.isArray(e))return TB(e,n);return nZ(e,n)}function tZ(e){return typeof e.toJSON=="function"}function nZ(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>EB?"["+rZ(e)+"]":"{ "+n.map(([i,a])=>i+": "+jN(a,t)).join(", ")+" }"}function TB(e,t){if(e.length===0)return"[]";if(t.length>EB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.relocatedError=Il.createGraphQLError=void 0;var Dv=Ae(),iZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function aZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>iZ.includes(t))}function bv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&aZ(t.originalError)&&(t.originalError=bv(t.originalError.message,t.originalError)),Dv.versionInfo.major>=17?new Dv.GraphQLError(e,t):new Dv.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}Il.createGraphQLError=bv;function sZ(e,t){return bv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Il.relocatedError=sZ});var gp=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.hasOwnProperty=Bi.promiseReduce=Bi.isPromise=Bi.isObjectLike=Bi.isIterableObject=void 0;function oZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Bi.isIterableObject=oZ;function uZ(e){return typeof e=="object"&&e!==null}Bi.isObjectLike=uZ;function hB(e){return(e==null?void 0:e.then)!=null}Bi.isPromise=hB;function cZ(e,t,n){let r=n;for(let i of e)r=hB(r)?r.then(a=>t(a,i)):t(r,i);return r}Bi.promiseReduce=cZ;function lZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Bi.hasOwnProperty=lZ});var Rv=w(QN=>{"use strict";m();T();N();Object.defineProperty(QN,"__esModule",{value:!0});QN.getArgumentValues=void 0;var Av=Ip(),nc=Ae(),$N=GN(),dZ=gp();function pZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Y(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:p}of e.args){let f=a[c];if(!f){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=f.value,g=y.kind===nc.Kind.NULL;if(y.kind===nc.Kind.VARIABLE){let P=y.name.value;if(n==null||!(0,dZ.hasOwnProperty)(n,P)){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:[y]});continue}g=n[P]==null}if(g&&(0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Av.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,nc.valueFromAST)(y,l,n);if(v===void 0)throw(0,$N.createGraphQLError)(`Argument "${c}" has invalid value ${(0,nc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}QN.getArgumentValues=pZ});var Pv=w(Ba=>{"use strict";m();T();N();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.getDirective=Ba.getDirectives=Ba.getDirectiveInExtensions=Ba.getDirectivesInExtensions=void 0;var IB=Rv();function gB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ba.getDirectivesInExtensions=gB;function yB(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function _B(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return yB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return yB(i,t)}Ba.getDirectiveInExtensions=_B;function fZ(e,t,n=["directives"]){let r=gB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,p)=>(l[p.name]=p,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives){let f=a[p.name.value];f&&c.push({name:p.name.value,args:(0,IB.getArgumentValues)(f,p)})}return c}Ba.getDirectives=fZ;function mZ(e,t,n,r=["directives"]){let i=_B(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives)p.name.value===n&&c.push((0,IB.getArgumentValues)(a,p));if(c.length)return c}Ba.getDirective=mZ});var Fv=w(YN=>{"use strict";m();T();N();Object.defineProperty(YN,"__esModule",{value:!0});YN.getFieldsWithDirectives=void 0;var NZ=Ae();function TZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,p=`${o}.${l}`,f=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((g,v)=>Y(x({},g),{[v.name.value]:(0,NZ.valueFromASTUntyped)(v.value)}),{})}));n[p]=f}}}return n}YN.getFieldsWithDirectives=TZ});var vB=w(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.getArgumentsWithDirectives=void 0;var wv=Ae();function EZ(e){return e.kind===wv.Kind.OBJECT_TYPE_DEFINITION||e.kind===wv.Kind.OBJECT_TYPE_EXTENSION}function hZ(e){var r;let t={},n=e.definitions.filter(EZ);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var p;return(p=l.directives)==null?void 0:p.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let p=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((y,g)=>Y(x({},y),{[g.name.value]:(0,wv.valueFromASTUntyped)(g.value)}),{})}));c[l.name.value]=p}}return t}JN.getArgumentsWithDirectives=hZ});var Lv=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.getImplementingTypes=void 0;var yZ=Ae();function IZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,yZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}HN.getImplementingTypes=IZ});var Bv=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.astFromType=void 0;var gZ=Ip(),rc=Ae();function Cv(e){if((0,rc.isNonNullType)(e)){let t=Cv(e.ofType);if(t.kind===rc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,gZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rc.Kind.NON_NULL_TYPE,type:t}}else if((0,rc.isListType)(e))return{kind:rc.Kind.LIST_TYPE,type:Cv(e.ofType)};return{kind:rc.Kind.NAMED_TYPE,name:{kind:rc.Kind.NAME,value:e.name}}}zN.astFromType=Cv});var XN=w(WN=>{"use strict";m();T();N();Object.defineProperty(WN,"__esModule",{value:!0});WN.astFromValueUntyped=void 0;var Ua=Ae();function Uv(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Uv(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Uv(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return _Z.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}WN.astFromValueUntyped=Uv;var _Z=/^-?(?:0|[1-9][0-9]*)$/});var OB=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.astFromValue=void 0;var vZ=Ip(),pi=Ae(),SZ=XN(),SB=gp();function _p(e,t){if((0,pi.isNonNullType)(t)){let n=_p(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,SB.isIterableObject)(e)){let r=[];for(let i of e){let a=_p(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return _p(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,SB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=_p(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&OZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,SZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,vZ.inspect)(t))}ZN.astFromValue=_p;var OZ=/^-?(?:0|[1-9][0-9]*)$/});var DB=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getDescriptionNode=void 0;var DZ=Ae();function bZ(e){var t;if((t=e.astNode)!=null&&t.description)return Y(x({},e.astNode.description),{block:!0});if(e.description)return{kind:DZ.Kind.STRING,value:e.description,block:!0}}eT.getDescriptionNode=bZ});var gl=w(Or=>{"use strict";m();T();N();Object.defineProperty(Or,"__esModule",{value:!0});Or.memoize2of5=Or.memoize2of4=Or.memoize5=Or.memoize4=Or.memoize3=Or.memoize2=Or.memoize1=void 0;function AZ(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}Or.memoize1=AZ;function RZ(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}Or.memoize2=RZ;function PZ(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let p=new WeakMap;o.set(i,p);let f=e(r,i,a);return p.set(a,f),f}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let p=e(r,i,a);return c.set(a,p),p}let l=c.get(a);if(l===void 0){let p=e(r,i,a);return c.set(a,p),p}return l}}Or.memoize3=PZ;function FZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let g=new WeakMap;y.set(a,g);let v=e(r,i,a,o);return g.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let p=l.get(a);if(!p){let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let f=p.get(o);if(f===void 0){let y=e(r,i,a,o);return p.set(o,y),y}return f}}Or.memoize4=FZ;function wZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let P=new WeakMap;v.set(a,P);let k=new WeakMap;P.set(o,k);let K=e(r,i,a,o,c);return k.set(c,K),K}let p=l.get(i);if(!p){p=new WeakMap,l.set(i,p);let v=new WeakMap;p.set(a,v);let P=new WeakMap;v.set(o,P);let k=e(r,i,a,o,c);return P.set(c,k),k}let f=p.get(a);if(!f){f=new WeakMap,p.set(a,f);let v=new WeakMap;f.set(o,v);let P=e(r,i,a,o,c);return v.set(c,P),P}let y=f.get(o);if(!y){y=new WeakMap,f.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let g=y.get(c);if(g===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return g}}Or.memoize5=wZ;function LZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let p=e(r,i,a,o);return c.set(i,p),p}let l=c.get(i);if(l===void 0){let p=e(r,i,a,o);return c.set(i,p),p}return l}}Or.memoize2of4=LZ;function CZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let f=e(r,i,a,o,c);return l.set(i,f),f}let p=l.get(i);if(p===void 0){let f=e(r,i,a,o,c);return l.set(i,f),f}return p}}Or.memoize2of5=CZ});var vp=w(fi=>{"use strict";m();T();N();Object.defineProperty(fi,"__esModule",{value:!0});fi.getRootTypeMap=fi.getRootTypes=fi.getRootTypeNames=fi.getDefinedRootType=void 0;var BZ=GN(),kv=gl();function UZ(e,t,n){let i=(0,fi.getRootTypeMap)(e).get(t);if(i==null)throw(0,BZ.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}fi.getDefinedRootType=UZ;fi.getRootTypeNames=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});fi.getRootTypes=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypeMap)(t);return new Set(n.values())});fi.getRootTypeMap=(0,kv.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var jv=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ut=Ae(),ic=Bv(),Mv=OB(),kZ=XN(),Ui=DB(),xv=Pv(),MZ=yp(),xZ=vp();function bB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=AB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ut.isSpecifiedDirective)(c)||a.push(RB(c,e,n));for(let c in r){let l=r[c],p=(0,ut.isSpecifiedScalarType)(l),f=(0,ut.isIntrospectionType)(l);if(!(p||f))if((0,ut.isObjectType)(l))a.push(PB(l,e,n));else if((0,ut.isInterfaceType)(l))a.push(FB(l,e,n));else if((0,ut.isUnionType)(l))a.push(wB(l,e,n));else if((0,ut.isInputObjectType)(l))a.push(LB(l,e,n));else if((0,ut.isEnumType)(l))a.push(CB(l,e,n));else if((0,ut.isScalarType)(l))a.push(BB(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ut.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=bB;function qZ(e,t={}){let n=bB(e,t);return(0,ut.print)(n)}ht.printSchemaWithDirectives=qZ;function AB(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)r.push(p);for(let p of r)if(p.operationTypes)for(let f of p.operationTypes)n.set(f.operation,f);let i=(0,xZ.getRootTypeMap)(e);for(let[p,f]of n){let y=i.get(p);if(y!=null){let g=(0,ic.astFromType)(y);f!=null?f.type=g:n.set(p,{kind:ut.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:g})}}let a=[...n.values()].filter(MZ.isSome),o=ac(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ut.Kind.SCHEMA_DEFINITION:ut.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Ui.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=AB;function RB(e,t,n){var r,i;return{kind:ut.Kind.DIRECTIVE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>qv(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ut.Kind.NAME,value:a})))||[]}}ht.astFromDirective=RB;function ac(e,t,n){let r=(0,xv.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=tT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=ac;function Op(e,t,n){var c,l;let r=[],i=null,a=(0,xv.getDirectivesInExtensions)(e,n),o;return a!=null?o=tT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(p=>p.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=MB(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Op;function qv(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Op(e,t,n)}}ht.astFromArg=qv;function PB(e,t,n){return{kind:ut.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Vv(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,ic.astFromType)(r)),directives:ac(e,t,n)}}ht.astFromObjectType=PB;function FB(e,t,n){let r={kind:ut.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Vv(i,t,n)),directives:ac(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,ic.astFromType)(i))),r}ht.astFromInterfaceType=FB;function wB(e,t,n){return{kind:ut.Kind.UNION_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:ac(e,t,n),types:e.getTypes().map(r=>(0,ic.astFromType)(r))}}ht.astFromUnionType=wB;function LB(e,t,n){return{kind:ut.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>UB(r,t,n)),directives:ac(e,t,n)}}ht.astFromInputObjectType=LB;function CB(e,t,n){return{kind:ut.Kind.ENUM_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>kB(r,t,n)),directives:ac(e,t,n)}}ht.astFromEnumType=CB;function BB(e,t,n){var o;let r=(0,xv.getDirectivesInExtensions)(e,n),i=r?tT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(Sp("specifiedBy",c))}return{kind:ut.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=BB;function Vv(e,t,n){return{kind:ut.Kind.FIELD_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:e.args.map(r=>qv(r,t,n)),type:(0,ic.astFromType)(e.type),directives:Op(e,t,n)}}ht.astFromField=Vv;function UB(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),directives:Op(e,t,n),defaultValue:(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=UB;function kB(e,t,n){return{kind:ut.Kind.ENUM_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:Op(e,t,n)}}ht.astFromEnumValue=kB;function MB(e){return Sp("deprecated",{reason:e},ut.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=MB;function Sp(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Mv.astFromValue)(o,i.type);c&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,kZ.astFromValueUntyped)(a);o&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:i},value:o})}return{kind:ut.Kind.DIRECTIVE,name:{kind:ut.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=Sp;function tT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Sp(r,o,a));else n.push(Sp(r,i,a))}return n}ht.makeDirectiveNodes=tT});var qB=w(_l=>{"use strict";m();T();N();Object.defineProperty(_l,"__esModule",{value:!0});_l.createDefaultRules=_l.validateGraphQlDocuments=void 0;var Dp=Ae();function VZ(e,t,n=xB()){var c;let r=new Set,i=new Map;for(let l of t)for(let p of l.definitions)p.kind===Dp.Kind.FRAGMENT_DEFINITION?i.set(p.name.value,p):r.add(p);let a={kind:Dp.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Dp.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let p of l.locations)l.stack+=` +`+TB(e.errors,t):NB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(tZ(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jN(r,n)}else if(Array.isArray(e))return TB(e,n);return nZ(e,n)}function tZ(e){return typeof e.toJSON=="function"}function nZ(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>EB?"["+rZ(e)+"]":"{ "+n.map(([i,a])=>i+": "+jN(a,t)).join(", ")+" }"}function TB(e,t){if(e.length===0)return"[]";if(t.length>EB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.relocatedError=Il.createGraphQLError=void 0;var Dv=Ae(),iZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function aZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>iZ.includes(t))}function bv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&aZ(t.originalError)&&(t.originalError=bv(t.originalError.message,t.originalError)),Dv.versionInfo.major>=17?new Dv.GraphQLError(e,t):new Dv.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}Il.createGraphQLError=bv;function sZ(e,t){return bv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Il.relocatedError=sZ});var gp=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.hasOwnProperty=Bi.promiseReduce=Bi.isPromise=Bi.isObjectLike=Bi.isIterableObject=void 0;function oZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Bi.isIterableObject=oZ;function uZ(e){return typeof e=="object"&&e!==null}Bi.isObjectLike=uZ;function hB(e){return(e==null?void 0:e.then)!=null}Bi.isPromise=hB;function cZ(e,t,n){let r=n;for(let i of e)r=hB(r)?r.then(a=>t(a,i)):t(r,i);return r}Bi.promiseReduce=cZ;function lZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Bi.hasOwnProperty=lZ});var Rv=w(QN=>{"use strict";m();T();N();Object.defineProperty(QN,"__esModule",{value:!0});QN.getArgumentValues=void 0;var Av=Ip(),nc=Ae(),$N=GN(),dZ=gp();function pZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Y(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:p}of e.args){let f=a[c];if(!f){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=f.value,g=y.kind===nc.Kind.NULL;if(y.kind===nc.Kind.VARIABLE){let F=y.name.value;if(n==null||!(0,dZ.hasOwnProperty)(n,F)){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was provided the variable "$${F}" which was not provided a runtime value.`,{nodes:[y]});continue}g=n[F]==null}if(g&&(0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Av.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,nc.valueFromAST)(y,l,n);if(v===void 0)throw(0,$N.createGraphQLError)(`Argument "${c}" has invalid value ${(0,nc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}QN.getArgumentValues=pZ});var Pv=w(Ba=>{"use strict";m();T();N();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.getDirective=Ba.getDirectives=Ba.getDirectiveInExtensions=Ba.getDirectivesInExtensions=void 0;var IB=Rv();function gB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ba.getDirectivesInExtensions=gB;function yB(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function _B(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return yB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return yB(i,t)}Ba.getDirectiveInExtensions=_B;function fZ(e,t,n=["directives"]){let r=gB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,p)=>(l[p.name]=p,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives){let f=a[p.name.value];f&&c.push({name:p.name.value,args:(0,IB.getArgumentValues)(f,p)})}return c}Ba.getDirectives=fZ;function mZ(e,t,n,r=["directives"]){let i=_B(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives)p.name.value===n&&c.push((0,IB.getArgumentValues)(a,p));if(c.length)return c}Ba.getDirective=mZ});var Fv=w(YN=>{"use strict";m();T();N();Object.defineProperty(YN,"__esModule",{value:!0});YN.getFieldsWithDirectives=void 0;var NZ=Ae();function TZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,p=`${o}.${l}`,f=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((g,v)=>Y(x({},g),{[v.name.value]:(0,NZ.valueFromASTUntyped)(v.value)}),{})}));n[p]=f}}}return n}YN.getFieldsWithDirectives=TZ});var vB=w(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.getArgumentsWithDirectives=void 0;var wv=Ae();function EZ(e){return e.kind===wv.Kind.OBJECT_TYPE_DEFINITION||e.kind===wv.Kind.OBJECT_TYPE_EXTENSION}function hZ(e){var r;let t={},n=e.definitions.filter(EZ);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var p;return(p=l.directives)==null?void 0:p.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let p=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((y,g)=>Y(x({},y),{[g.name.value]:(0,wv.valueFromASTUntyped)(g.value)}),{})}));c[l.name.value]=p}}return t}JN.getArgumentsWithDirectives=hZ});var Lv=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.getImplementingTypes=void 0;var yZ=Ae();function IZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,yZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}HN.getImplementingTypes=IZ});var Bv=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.astFromType=void 0;var gZ=Ip(),rc=Ae();function Cv(e){if((0,rc.isNonNullType)(e)){let t=Cv(e.ofType);if(t.kind===rc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,gZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rc.Kind.NON_NULL_TYPE,type:t}}else if((0,rc.isListType)(e))return{kind:rc.Kind.LIST_TYPE,type:Cv(e.ofType)};return{kind:rc.Kind.NAMED_TYPE,name:{kind:rc.Kind.NAME,value:e.name}}}zN.astFromType=Cv});var XN=w(WN=>{"use strict";m();T();N();Object.defineProperty(WN,"__esModule",{value:!0});WN.astFromValueUntyped=void 0;var Ua=Ae();function Uv(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Uv(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Uv(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return _Z.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}WN.astFromValueUntyped=Uv;var _Z=/^-?(?:0|[1-9][0-9]*)$/});var OB=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.astFromValue=void 0;var vZ=Ip(),pi=Ae(),SZ=XN(),SB=gp();function _p(e,t){if((0,pi.isNonNullType)(t)){let n=_p(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,SB.isIterableObject)(e)){let r=[];for(let i of e){let a=_p(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return _p(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,SB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=_p(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&OZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,SZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,vZ.inspect)(t))}ZN.astFromValue=_p;var OZ=/^-?(?:0|[1-9][0-9]*)$/});var DB=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getDescriptionNode=void 0;var DZ=Ae();function bZ(e){var t;if((t=e.astNode)!=null&&t.description)return Y(x({},e.astNode.description),{block:!0});if(e.description)return{kind:DZ.Kind.STRING,value:e.description,block:!0}}eT.getDescriptionNode=bZ});var gl=w(Or=>{"use strict";m();T();N();Object.defineProperty(Or,"__esModule",{value:!0});Or.memoize2of5=Or.memoize2of4=Or.memoize5=Or.memoize4=Or.memoize3=Or.memoize2=Or.memoize1=void 0;function AZ(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}Or.memoize1=AZ;function RZ(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}Or.memoize2=RZ;function PZ(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let p=new WeakMap;o.set(i,p);let f=e(r,i,a);return p.set(a,f),f}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let p=e(r,i,a);return c.set(a,p),p}let l=c.get(a);if(l===void 0){let p=e(r,i,a);return c.set(a,p),p}return l}}Or.memoize3=PZ;function FZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let g=new WeakMap;y.set(a,g);let v=e(r,i,a,o);return g.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let p=l.get(a);if(!p){let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let f=p.get(o);if(f===void 0){let y=e(r,i,a,o);return p.set(o,y),y}return f}}Or.memoize4=FZ;function wZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let F=new WeakMap;v.set(a,F);let k=new WeakMap;F.set(o,k);let K=e(r,i,a,o,c);return k.set(c,K),K}let p=l.get(i);if(!p){p=new WeakMap,l.set(i,p);let v=new WeakMap;p.set(a,v);let F=new WeakMap;v.set(o,F);let k=e(r,i,a,o,c);return F.set(c,k),k}let f=p.get(a);if(!f){f=new WeakMap,p.set(a,f);let v=new WeakMap;f.set(o,v);let F=e(r,i,a,o,c);return v.set(c,F),F}let y=f.get(o);if(!y){y=new WeakMap,f.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let g=y.get(c);if(g===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return g}}Or.memoize5=wZ;function LZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let p=e(r,i,a,o);return c.set(i,p),p}let l=c.get(i);if(l===void 0){let p=e(r,i,a,o);return c.set(i,p),p}return l}}Or.memoize2of4=LZ;function CZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let f=e(r,i,a,o,c);return l.set(i,f),f}let p=l.get(i);if(p===void 0){let f=e(r,i,a,o,c);return l.set(i,f),f}return p}}Or.memoize2of5=CZ});var vp=w(fi=>{"use strict";m();T();N();Object.defineProperty(fi,"__esModule",{value:!0});fi.getRootTypeMap=fi.getRootTypes=fi.getRootTypeNames=fi.getDefinedRootType=void 0;var BZ=GN(),kv=gl();function UZ(e,t,n){let i=(0,fi.getRootTypeMap)(e).get(t);if(i==null)throw(0,BZ.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}fi.getDefinedRootType=UZ;fi.getRootTypeNames=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});fi.getRootTypes=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypeMap)(t);return new Set(n.values())});fi.getRootTypeMap=(0,kv.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var jv=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ut=Ae(),ic=Bv(),Mv=OB(),kZ=XN(),Ui=DB(),xv=Pv(),MZ=yp(),xZ=vp();function bB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=AB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ut.isSpecifiedDirective)(c)||a.push(RB(c,e,n));for(let c in r){let l=r[c],p=(0,ut.isSpecifiedScalarType)(l),f=(0,ut.isIntrospectionType)(l);if(!(p||f))if((0,ut.isObjectType)(l))a.push(PB(l,e,n));else if((0,ut.isInterfaceType)(l))a.push(FB(l,e,n));else if((0,ut.isUnionType)(l))a.push(wB(l,e,n));else if((0,ut.isInputObjectType)(l))a.push(LB(l,e,n));else if((0,ut.isEnumType)(l))a.push(CB(l,e,n));else if((0,ut.isScalarType)(l))a.push(BB(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ut.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=bB;function qZ(e,t={}){let n=bB(e,t);return(0,ut.print)(n)}ht.printSchemaWithDirectives=qZ;function AB(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)r.push(p);for(let p of r)if(p.operationTypes)for(let f of p.operationTypes)n.set(f.operation,f);let i=(0,xZ.getRootTypeMap)(e);for(let[p,f]of n){let y=i.get(p);if(y!=null){let g=(0,ic.astFromType)(y);f!=null?f.type=g:n.set(p,{kind:ut.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:g})}}let a=[...n.values()].filter(MZ.isSome),o=ac(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ut.Kind.SCHEMA_DEFINITION:ut.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Ui.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=AB;function RB(e,t,n){var r,i;return{kind:ut.Kind.DIRECTIVE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>qv(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ut.Kind.NAME,value:a})))||[]}}ht.astFromDirective=RB;function ac(e,t,n){let r=(0,xv.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=tT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=ac;function Op(e,t,n){var c,l;let r=[],i=null,a=(0,xv.getDirectivesInExtensions)(e,n),o;return a!=null?o=tT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(p=>p.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=MB(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Op;function qv(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Op(e,t,n)}}ht.astFromArg=qv;function PB(e,t,n){return{kind:ut.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Vv(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,ic.astFromType)(r)),directives:ac(e,t,n)}}ht.astFromObjectType=PB;function FB(e,t,n){let r={kind:ut.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Vv(i,t,n)),directives:ac(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,ic.astFromType)(i))),r}ht.astFromInterfaceType=FB;function wB(e,t,n){return{kind:ut.Kind.UNION_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:ac(e,t,n),types:e.getTypes().map(r=>(0,ic.astFromType)(r))}}ht.astFromUnionType=wB;function LB(e,t,n){return{kind:ut.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>UB(r,t,n)),directives:ac(e,t,n)}}ht.astFromInputObjectType=LB;function CB(e,t,n){return{kind:ut.Kind.ENUM_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>kB(r,t,n)),directives:ac(e,t,n)}}ht.astFromEnumType=CB;function BB(e,t,n){var o;let r=(0,xv.getDirectivesInExtensions)(e,n),i=r?tT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(Sp("specifiedBy",c))}return{kind:ut.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=BB;function Vv(e,t,n){return{kind:ut.Kind.FIELD_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:e.args.map(r=>qv(r,t,n)),type:(0,ic.astFromType)(e.type),directives:Op(e,t,n)}}ht.astFromField=Vv;function UB(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),directives:Op(e,t,n),defaultValue:(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=UB;function kB(e,t,n){return{kind:ut.Kind.ENUM_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:Op(e,t,n)}}ht.astFromEnumValue=kB;function MB(e){return Sp("deprecated",{reason:e},ut.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=MB;function Sp(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Mv.astFromValue)(o,i.type);c&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,kZ.astFromValueUntyped)(a);o&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:i},value:o})}return{kind:ut.Kind.DIRECTIVE,name:{kind:ut.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=Sp;function tT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Sp(r,o,a));else n.push(Sp(r,i,a))}return n}ht.makeDirectiveNodes=tT});var qB=w(_l=>{"use strict";m();T();N();Object.defineProperty(_l,"__esModule",{value:!0});_l.createDefaultRules=_l.validateGraphQlDocuments=void 0;var Dp=Ae();function VZ(e,t,n=xB()){var c;let r=new Set,i=new Map;for(let l of t)for(let p of l.definitions)p.kind===Dp.Kind.FRAGMENT_DEFINITION?i.set(p.name.value,p):r.add(p);let a={kind:Dp.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Dp.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let p of l.locations)l.stack+=` at ${(c=l.source)==null?void 0:c.name}:${p.line}:${p.column}`;return o}_l.validateGraphQlDocuments=VZ;function xB(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Dp.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Dp.specifiedRules.filter(t=>!e.includes(t.name))}_l.createDefaultRules=xB});var VB=w(nT=>{"use strict";m();T();N();Object.defineProperty(nT,"__esModule",{value:!0});nT.parseGraphQLJSON=void 0;var jZ=Ae();function KZ(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function GZ(e){return JSON.parse(KZ(e))}function $Z(e,t,n){let r=GZ(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,jZ.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}nT.parseGraphQLJSON=$Z});var Gv=w(Ln=>{"use strict";m();T();N();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getBlockStringIndentation=Ln.dedentBlockStringValue=Ln.getLeadingCommentBlock=Ln.getComment=Ln.getDescription=Ln.printWithComments=Ln.printComment=Ln.pushComment=Ln.collectComment=Ln.resetComments=void 0;var $B=Ae(),QZ=80,vl={};function YZ(){vl={}}Ln.resetComments=YZ;function JZ(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(bp(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)bp(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(bp(r,t,r.name.value),ZZ(r)&&r.arguments)for(let i of r.arguments)bp(i,t,r.name.value,i.name.value)}break}}Ln.collectComment=JZ;function bp(e,t,n,r){let i=Kv(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");vl[o]||(vl[o]=[]),vl[o].push(i)}Ln.pushComment=bp;function QB(e){return` # `+e.replace(/\n/g,` # `)}Ln.printComment=QB;function Me(e,t){return e?e.filter(n=>n).join(t||""):""}function jB(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` @@ -223,11 +223,11 @@ ${t}`)}Ln.getComment=Kv;function YB(e){let t=e.loc;if(!t)return;let n=[],r=t.sta `)}Ln.dedentBlockStringValue=JB;function HB(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(ou,"__esModule",{value:!0});ou.isDescribable=ou.transformCommentsToDescriptions=ou.parseGraphQLSDL=void 0;var ki=Ae(),WB=Gv();function tee(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=XB(t,n),n.noLocation&&(r=(0,ki.parse)((0,ki.print)(r),n))):r=(0,ki.parse)(new ki.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:ki.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}ou.parseGraphQLSDL=tee;function XB(e,t={}){let n=(0,ki.parse)(e,Y(x({},t),{noLocation:!1}));return(0,ki.visit)(n,{leave:i=>{if(ZB(i)){let a=(0,WB.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,WB.dedentBlockStringValue)(` `+a),c=o.includes(` `);return i.description?Y(x({},i),{description:Y(x({},i.description),{value:i.description.value+` -`+o,block:!0})}):Y(x({},i),{description:{kind:ki.Kind.STRING,value:o,block:c}})}}}})}ou.transformCommentsToDescriptions=XB;function ZB(e){return(0,ki.isTypeSystemDefinitionNode)(e)||e.kind===ki.Kind.FIELD_DEFINITION||e.kind===ki.Kind.INPUT_VALUE_DEFINITION||e.kind===ki.Kind.ENUM_VALUE_DEFINITION}ou.isDescribable=ZB});var uU=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.buildOperationNodeForField=void 0;var ct=Ae(),iU=vp(),Yv=[],rT=new Map;function aU(e){Yv.push(e)}function tU(){Yv=[]}function nU(){rT=new Map}function nee({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){tU(),nU();let p=(0,iU.getRootTypeNames)(e),f=ree({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:p});return f.variableDefinitions=[...Yv],tU(),nU(),f}iT.buildOperationNodeForField=nee;function ree({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:p}){let f=(0,iU.getDefinedRootType)(e,n),y=f.getFields()[t],g=`${t}_${n}`;if(y.args)for(let v of y.args){let P=v.name;(!c||c.includes(P))&&aU(sU(v,P))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:g},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[oU({type:f,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:p})]}}}function Qv({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){if(!(typeof g=="boolean"&&f>c)){if((0,ct.isUnionType)(t)){let P=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:P.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,G;return((G=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isInterfaceType)(t)){let P=Object.values(p.getTypeMap()).filter(k=>(0,ct.isObjectType)(k)&&k.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:P.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,G;return((G=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let P=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),k=n.includes(t.name);if(!r&&k&&!P)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(K).filter(G=>!$v([...a,(0,ct.getNamedType)(K[G].type)],{depth:l})).map(G=>{let Z=typeof g=="object"?g[G]:!0;return Z?oU({type:t,field:K[G],models:n,path:[...i,G],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:Z,rootTypeNames:v}):null}).filter(G=>{var Z,W;return G==null?!1:"selectionSet"in G?!!((W=(Z=G.selectionSet)==null?void 0:Z.selections)!=null&&W.length):!0})}}}}function sU(e,t){function n(r){return(0,ct.isListType)(r)?{kind:ct.Kind.LIST_TYPE,type:n(r.ofType)}:(0,ct.isNonNullType)(r)?{kind:ct.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:r.name}}}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type)}}function rU(e,t){return[...t,e].join("_")}function oU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){let P=(0,ct.getNamedType)(t.type),k=[],K=!1;if(t.args&&t.args.length&&(k=t.args.map(Te=>{let fe=rU(Te.name,i);return y&&!y.includes(fe)?((0,ct.isNonNullType)(Te.type)&&(K=!0),null):(r||aU(sU(Te,fe)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:Te.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:rU(Te.name,i)}}})}).filter(Boolean)),K)return null;let G=[...i,t.name],Z=G.join("."),W=t.name;return rT.has(Z)&&rT.get(Z)!==t.type.toString()&&(W+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),rT.set(Z,t.type.toString()),!(0,ct.isScalarType)(P)&&!(0,ct.isEnumType)(P)?Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{selectionSet:Qv({parent:e,type:P,models:n,firstCall:r,path:G,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f+1,argNames:y,selectedFields:g,rootTypeNames:v})||void 0,arguments:k}):Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{arguments:k})}function $v(e,t={depth:1}){let n=e[e.length-1];return(0,ct.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var lU=w(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.DirectiveLocation=void 0;var cU;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(cU||(aT.DirectiveLocation=cU={}))});var sc=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.MapperKind=void 0;var dU;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(dU||(sT.MapperKind=dU={}))});var Jv=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getObjectTypeFromTypeMap=void 0;var iee=Ae();function aee(e,t){if(t){let n=e[t.name];if((0,iee.isObjectType)(n))return n}}oT.getObjectTypeFromTypeMap=aee});var Wv=w(ka=>{"use strict";m();T();N();Object.defineProperty(ka,"__esModule",{value:!0});ka.getBuiltInForStub=ka.isNamedStub=ka.createStub=ka.createNamedStub=void 0;var lr=Ae();function Hv(e,t){let n;return t==="object"?n=lr.GraphQLObjectType:t==="interface"?n=lr.GraphQLInterfaceType:n=lr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:lr.GraphQLString}}})}ka.createNamedStub=Hv;function zv(e,t){switch(e.kind){case lr.Kind.LIST_TYPE:return new lr.GraphQLList(zv(e.type,t));case lr.Kind.NON_NULL_TYPE:return new lr.GraphQLNonNull(zv(e.type,t));default:return t==="output"?Hv(e.name.value,"object"):Hv(e.name.value,"input")}}ka.createStub=zv;function see(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ka.isNamedStub=see;function oee(e){switch(e.name){case lr.GraphQLInt.name:return lr.GraphQLInt;case lr.GraphQLFloat.name:return lr.GraphQLFloat;case lr.GraphQLString.name:return lr.GraphQLString;case lr.GraphQLBoolean.name:return lr.GraphQLBoolean;case lr.GraphQLID.name:return lr.GraphQLID;default:return e}}ka.getBuiltInForStub=oee});var cT=w(uT=>{"use strict";m();T();N();Object.defineProperty(uT,"__esModule",{value:!0});uT.rewireTypes=void 0;var Qn=Ae(),pU=Wv();function uee(e,t){let n=Object.create(null);for(let g in e)n[g]=e[g];let r=Object.create(null);for(let g in n){let v=n[g];if(v==null||g.startsWith("__"))continue;let P=v.name;if(!P.startsWith("__")){if(r[P]!=null){console.warn(`Duplicate schema type name ${P} found; keeping the existing one found in the schema`);continue}r[P]=v}}for(let g in r)r[g]=c(r[g]);let i=t.map(g=>a(g));return{typeMap:r,directives:i};function a(g){if((0,Qn.isSpecifiedDirective)(g))return g;let v=g.toConfig();return v.args=o(v.args),new Qn.GraphQLDirective(v)}function o(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&(k.type=K,v[P]=k)}return v}function c(g){if((0,Qn.isObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields),interfaces:()=>f(v.interfaces)});return new Qn.GraphQLObjectType(P)}else if((0,Qn.isInterfaceType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields)});return"interfaces"in P&&(P.interfaces=()=>f(v.interfaces)),new Qn.GraphQLInterfaceType(P)}else if((0,Qn.isUnionType)(g)){let v=g.toConfig(),P=Y(x({},v),{types:()=>f(v.types)});return new Qn.GraphQLUnionType(P)}else if((0,Qn.isInputObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>p(v.fields)});return new Qn.GraphQLInputObjectType(P)}else if((0,Qn.isEnumType)(g)){let v=g.toConfig();return new Qn.GraphQLEnumType(v)}else if((0,Qn.isScalarType)(g)){if((0,Qn.isSpecifiedScalarType)(g))return g;let v=g.toConfig();return new Qn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${g}`)}function l(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&k.args&&(k.type=K,k.args=o(k.args),v[P]=k)}return v}function p(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&(k.type=K,v[P]=k)}return v}function f(g){let v=[];for(let P of g){let k=y(P);k!=null&&v.push(k)}return v}function y(g){if((0,Qn.isListType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLList(v):null}else if((0,Qn.isNonNullType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLNonNull(v):null}else if((0,Qn.isNamedType)(g)){let v=n[g.name];return v===void 0&&(v=(0,pU.isNamedStub)(g)?(0,pU.getBuiltInForStub)(g):c(g),r[v.name]=n[g.name]=v),v!=null?r[v.name]:null}return null}}uT.rewireTypes=uee});var Xv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.parseInputValueLiteral=Ma.parseInputValue=Ma.serializeInputValue=Ma.transformInputValue=void 0;var lT=Ae(),cee=yp();function Sl(e,t,n=null,r=null){if(t==null)return t;let i=(0,lT.getNullableType)(e);if((0,lT.isLeafType)(i))return n!=null?n(i,t):t;if((0,lT.isListType)(i))return(0,cee.asArray)(t).map(a=>Sl(i.ofType,a,n,r));if((0,lT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Sl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Ma.transformInputValue=Sl;function lee(e,t){return Sl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ma.serializeInputValue=lee;function dee(e,t){return Sl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ma.parseInputValue=dee;function pee(e,t){return Sl(e,t,(n,r)=>n.parseLiteral(r,{}))}Ma.parseInputValueLiteral=pee});var bl=w(Dl=>{"use strict";m();T();N();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.correctASTNodes=Dl.mapSchema=void 0;var nt=Ae(),Ol=Jv(),bt=sc(),fee=cT(),fU=Xv();function mee(e,t={}){let n=TU(NU(Zv(mU(Nee(Zv(mU(e.getTypeMap(),e,fU.serializeInputValue),e,t,c=>(0,nt.isLeafType)(c)),e,t),e,fU.parseInputValue),e,t,c=>!(0,nt.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Tee(r,e,t),{typeMap:a,directives:o}=(0,fee.rewireTypes)(n,i);return new nt.GraphQLSchema(Y(x({},e.toConfig()),{query:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Dl.mapSchema=mee;function Zv(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=hee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function Nee(e,t,n){let r=vee(n);return r?Zv(e,t,{[bt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let p=o[l],f=r(p,i.name,t,l);if(f===void 0)c[l]=p;else if(Array.isArray(f)){let[y,g]=f;c[y]=g===void 0?p:g}else f!==null&&(c[l]=f)}return Rp(new nt.GraphQLEnumType(Y(x({},a),{values:c})))}},i=>(0,nt.isEnumType)(i)):e}function mU(e,t,n){let r=TU(e,t,{[bt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=dT(e,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}});return NU(r,t,{[bt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=dT(r,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function dT(e,t){if((0,nt.isListType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLList(n):null}else if((0,nt.isNonNullType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLNonNull(n):null}else if((0,nt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function NU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)&&!(0,nt.isInputObjectType)(a)){r[i]=a;continue}let o=Iee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=o(y,f,i,t);if(g===void 0)p[f]=y;else if(Array.isArray(g)){let[v,P]=g;P.astNode!=null&&(P.astNode=Y(x({},P.astNode),{name:Y(x({},P.astNode.name),{value:v})})),p[v]=P===void 0?y:P}else g!==null&&(p[f]=g)}(0,nt.isObjectType)(a)?r[i]=Rp(new nt.GraphQLObjectType(Y(x({},c),{fields:p}))):(0,nt.isInterfaceType)(a)?r[i]=Rp(new nt.GraphQLInterfaceType(Y(x({},c),{fields:p}))):r[i]=Rp(new nt.GraphQLInputObjectType(Y(x({},c),{fields:p})))}return r}function TU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)){r[i]=a;continue}let o=gee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=y.args;if(g==null){p[f]=y;continue}let v=Object.keys(g);if(!v.length){p[f]=y;continue}let P={};for(let k of v){let K=g[k],G=o(K,f,i,t);if(G===void 0)P[k]=K;else if(Array.isArray(G)){let[Z,W]=G;P[Z]=W}else G!==null&&(P[k]=G)}p[f]=Y(x({},y),{args:P})}(0,nt.isObjectType)(a)?r[i]=new nt.GraphQLObjectType(Y(x({},c),{fields:p})):(0,nt.isInterfaceType)(a)?r[i]=new nt.GraphQLInterfaceType(Y(x({},c),{fields:p})):r[i]=new nt.GraphQLInputObjectType(Y(x({},c),{fields:p}))}return r}function Tee(e,t,n){let r=_ee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function Eee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.TYPE];return(0,nt.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.SUBSCRIPTION)):(0,nt.isInputObjectType)(n)?r.push(bt.MapperKind.INPUT_OBJECT_TYPE):(0,nt.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.INTERFACE_TYPE):(0,nt.isUnionType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.UNION_TYPE):(0,nt.isEnumType)(n)?r.push(bt.MapperKind.ENUM_TYPE):(0,nt.isScalarType)(n)&&r.push(bt.MapperKind.SCALAR_TYPE),r}function hee(e,t,n){let r=Eee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function yee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.FIELD];return(0,nt.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,nt.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.INTERFACE_FIELD):(0,nt.isInputObjectType)(n)&&r.push(bt.MapperKind.INPUT_OBJECT_FIELD),r}function Iee(e,t,n){let r=yee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function gee(e){let t=e[bt.MapperKind.ARGUMENT];return t!=null?t:null}function _ee(e){let t=e[bt.MapperKind.DIRECTIVE];return t!=null?t:null}function vee(e){let t=e[bt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Rp(e){if((0,nt.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:nt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLObjectType(t)}else if((0,nt.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:nt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInterfaceType(t)}else if((0,nt.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:nt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInputObjectType(t)}else if((0,nt.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{values:void 0}))),new nt.GraphQLEnumType(t)}else return e}Dl.correctASTNodes=Rp});var EU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.filterSchema=void 0;var pT=Ae(),hs=sc(),See=bl();function Oee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,See.mapSchema)(e,{[hs.MapperKind.QUERY]:p=>eS(p,"Query",r,c),[hs.MapperKind.MUTATION]:p=>eS(p,"Mutation",r,c),[hs.MapperKind.SUBSCRIPTION]:p=>eS(p,"Subscription",r,c),[hs.MapperKind.OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLObjectType,p,i||n,c):null,[hs.MapperKind.INTERFACE_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInterfaceType,p,a||n,c):null,[hs.MapperKind.INPUT_OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInputObjectType,p,o||n):null,[hs.MapperKind.UNION_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.ENUM_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.SCALAR_TYPE]:p=>t(p.name,p)?void 0:null})}fT.filterSchema=Oee;function eS(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new pT.GraphQLObjectType(i)}return e}function tS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var yU=w(Al=>{"use strict";m();T();N();Object.defineProperty(Al,"__esModule",{value:!0});Al.healTypes=Al.healSchema=void 0;var xa=Ae();function Dee(e){return hU(e.getTypeMap(),e.getDirectives()),e}Al.healSchema=Dee;function hU(e,t){let n=Object.create(null);for(let p in e){let f=e[p];if(f==null||p.startsWith("__"))continue;let y=f.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=f}}for(let p in n){let f=n[p];e[p]=f}for(let p of t)p.args=p.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let p in e){let f=e[p];!p.startsWith("__")&&p in n&&f!=null&&r(f)}for(let p in e)!p.startsWith("__")&&!(p in n)&&delete e[p];function r(p){if((0,xa.isObjectType)(p)){i(p),a(p);return}else if((0,xa.isInterfaceType)(p)){i(p),"getInterfaces"in p&&a(p);return}else if((0,xa.isUnionType)(p)){c(p);return}else if((0,xa.isInputObjectType)(p)){o(p);return}else if((0,xa.isLeafType)(p))return;throw new Error(`Unexpected schema type: ${p}`)}function i(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),g.type=l(g.type),g.type===null&&delete f[y]}function a(p){if("getInterfaces"in p){let f=p.getInterfaces();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}}function o(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.type=l(g.type),g.type===null&&delete f[y]}function c(p){let f=p.getTypes();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}function l(p){if((0,xa.isListType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLList(f):null}else if((0,xa.isNonNullType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLNonNull(f):null}else if((0,xa.isNamedType)(p)){let f=e[p.name];if(f&&p!==f)return f}return p}}Al.healTypes=hU});var IU=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getResolversFromSchema=void 0;var oc=Ae();function bee(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,oc.isScalarType)(c)){if(!(0,oc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new oc.GraphQLScalarType(l)}}else if((0,oc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let p of l)n[o][p.name]=p.value}else if((0,oc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let p in l){let f=l[p];if(f.subscribe!=null&&(n[o][p]=n[o][p]||{},n[o][p].subscribe=f.subscribe),f.resolve!=null&&((i=f.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=f.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][p]=n[o][p]||{},n[o][p].resolve=f.resolve}}}}return n}mT.getResolversFromSchema=bee});var _U=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.forEachField=void 0;var gU=Ae();function Aee(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,gU.getNamedType)(i).name.startsWith("__")&&(0,gU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}NT.forEachField=Aee});var vU=w(TT=>{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.forEachDefaultValue=void 0;var nS=Ae();function Ree(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,nS.getNamedType)(i).name.startsWith("__")){if((0,nS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,nS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}TT.forEachDefaultValue=Ree});var aS=w(ET=>{"use strict";m();T();N();Object.defineProperty(ET,"__esModule",{value:!0});ET.addTypes=void 0;var rS=Ae(),iS=Jv(),Pee=cT();function Fee(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,rS.isNamedType)(c)?r[c.name]=c:(0,rS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,Pee.rewireTypes)(r,Object.values(i));return new rS.GraphQLSchema(Y(x({},n),{query:(0,iS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,iS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,iS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ET.addTypes=Fee});var OU=w(yT=>{"use strict";m();T();N();Object.defineProperty(yT,"__esModule",{value:!0});yT.pruneSchema=void 0;var Zn=Ae(),wee=Lv(),Lee=sc(),Cee=bl(),Bee=vp();function Uee(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let p=kee(l);if(i){let f=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let g=l.getType(y);g&&i(g)&&f.push(y)}p=SU(f,l,p)}c=[],l=(0,Cee.mapSchema)(l,{[Lee.MapperKind.TYPE]:f=>!p.has(f.name)&&!(0,Zn.isSpecifiedScalarType)(f)?((0,Zn.isUnionType)(f)||(0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f)||(0,Zn.isScalarType)(f))&&(o||(0,Zn.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,Zn.isInterfaceType)(f)&&a)?f:(c.push(f.name),p.delete(f.name),null):f})}while(c.length);return l}yT.pruneSchema=Uee;function kee(e){let t=[];for(let n of(0,Bee.getRootTypes)(e))t.push(n.name);return SU(t,e)}function SU(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let a=t.getType(i);if(a){if((0,Zn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,Zn.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,wee.getImplementingTypes)(a.name,t)),r[i]=!1),(0,Zn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?hT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,Zn.isObjectType)(a)&&e.push(...l.args.flatMap(f=>{let y=[(0,Zn.getNamedType)(f.type).name];return f.astNode&&y.push(...hT(t,f.astNode)),y}));let p=(0,Zn.getNamedType)(l.type);e.push(p.name),l.astNode&&e.push(...hT(t,l.astNode)),(0,Zn.isInterfaceType)(p)&&!(p.name in r)&&(r[p.name]=!0)}}a.astNode&&e.push(...hT(t,a.astNode)),n.add(i)}}return n}function hT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,Zn.getNamedType)(o.type).name))!=null?a:[]})}});var bU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.mergeDeep=void 0;var Mee=yp();function DU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(sS(r)&&sS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let p=Object.getOwnPropertyDescriptor(c,l);(0,Mee.isSome)(p)&&Object.defineProperty(o,l,p)}}for(let o in a)sS(a[o])?o in i?i[o]=DU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}IT.mergeDeep=DU;function sS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var AU=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.parseSelectionSet=void 0;var xee=Ae();function qee(e,t){return(0,xee.parse)(e,t).definitions[0].selectionSet}gT.parseSelectionSet=qee});var RU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.getResponseKeyFromInfo=void 0;function Vee(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}_T.getResponseKeyFromInfo=Vee});var PU=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.modifyObjectFields=qa.selectObjectFields=qa.removeObjectFields=qa.appendObjectFields=void 0;var vT=Ae(),jee=aS(),ST=sc(),uc=bl();function Kee(e,t,n){return e.getType(t)==null?(0,jee.addTypes)(e,[new vT.GraphQLObjectType({name:t,fields:n})]):(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},i),{fields:o})))}}})}qa.appendObjectFields=Kee;function Gee(e,t,n){let r={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let p in c){let f=c[p];n(p,f)?r[p]=f:l[p]=f}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},o),{fields:l})))}}}),r]}qa.removeObjectFields=Gee;function $ee(e,t,n){let r={};return(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}qa.selectObjectFields=$ee;function Qee(e,t,n,r){let i={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f];n(f,y)?i[f]=y:p[f]=y}for(let f in r){let y=r[f];p[f]=y}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},c),{fields:p})))}}}),i]}qa.modifyObjectFields=Qee});var FU=w(OT=>{"use strict";m();T();N();Object.defineProperty(OT,"__esModule",{value:!0});OT.renameType=void 0;var Mi=Ae();function Yee(e,t){if((0,Mi.isObjectType)(e))return new Mi.GraphQLObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInterfaceType)(e))return new Mi.GraphQLInterfaceType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isUnionType)(e))return new Mi.GraphQLUnionType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInputObjectType)(e))return new Mi.GraphQLInputObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isEnumType)(e))return new Mi.GraphQLEnumType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isScalarType)(e))return new Mi.GraphQLScalarType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}OT.renameType=Yee});var CU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.mapAsyncIterator=void 0;var Jee=gp();function Hee(e,t,n,r){let i,a,o;r&&(o=p=>{let f=r();return(0,Jee.isPromise)(f)?f.then(()=>p):p}),typeof e.return=="function"&&(i=e.return,a=p=>{let f=()=>Promise.reject(p);return i.call(e).then(f,f)});function c(p){return p.done?o?o(p):p:wU(p.value,t).then(LU,a)}let l;if(n){let p=n;l=f=>wU(f,p).then(LU,a)}return{next(){return e.next().then(c,l)},return(){let p=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?p.then(o):p},throw(p){return typeof e.throw=="function"?e.throw(p).then(c,l):Promise.reject(p).catch(a)},[Symbol.asyncIterator](){return this}}}DT.mapAsyncIterator=Hee;function wU(e,t){return new Promise(n=>n(t(e)))}function LU(e){return{value:e,done:!1}}});var BU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createVariableNameGenerator=Rl.updateArgument=void 0;var cc=Ae(),zee=Bv();function Wee(e,t,n,r,i,a,o){if(e[r]={kind:cc.Kind.ARGUMENT,name:{kind:cc.Kind.NAME,value:r},value:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}}},t[i]={kind:cc.Kind.VARIABLE_DEFINITION,variable:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}},type:(0,zee.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Rl.updateArgument=Wee;function Xee(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Rl.createVariableNameGenerator=Xee});var UU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.implementsAbstractType=void 0;var oS=Ae();function Zee(e,t,n){return n==null||t==null?!1:t===n?!0:(0,oS.isCompositeType)(t)&&(0,oS.isCompositeType)(n)?(0,oS.doTypesOverlap)(e,t,n):!1}bT.implementsAbstractType=Zee});var kU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.observableToAsyncIterable=void 0;function ete(e){let t=[],n=[],r=!0,i=f=>{t.length!==0?t.shift()({value:f,done:!1}):n.push({value:f,done:!1})},a=f=>{t.length!==0?t.shift()({value:{errors:[f]},done:!1}):n.push({value:{errors:[f]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(f=>{if(n.length!==0){let y=n.shift();f(y)}else t.push(f)}),l=e.subscribe({next(f){i(f)},error(f){a(f)},complete(){o()}}),p=()=>{if(r){r=!1,l.unsubscribe();for(let f of t)f({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return p(),Promise.resolve({value:void 0,done:!0})},throw(f){return p(),Promise.reject(f)},[Symbol.asyncIterator](){return this}}}AT.observableToAsyncIterable=ete});var MU=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.AccumulatorMap=void 0;var uS=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};RT.AccumulatorMap=uS});var cS=w(Pl=>{"use strict";m();T();N();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.GraphQLStreamDirective=Pl.GraphQLDeferDirective=void 0;var xi=Ae();Pl.GraphQLDeferDirective=new xi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FRAGMENT_SPREAD,xi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"}}});Pl.GraphQLStreamDirective=new xi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FIELD],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:xi.GraphQLInt,description:"Number of items to return immediately"}}})});var pS=w(zr=>{"use strict";m();T();N();Object.defineProperty(zr,"__esModule",{value:!0});zr.collectSubFields=zr.getDeferValues=zr.getFieldEntryKey=zr.doesFragmentConditionMatch=zr.shouldIncludeNode=zr.collectFields=void 0;var Va=Ae(),FT=MU(),tte=cS(),nte=gl();function Fl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Va.Kind.FIELD:{if(!PT(n,l))continue;a.add(xU(l),l);break}case Va.Kind.INLINE_FRAGMENT:{if(!PT(n,l)||!lS(e,l,r))continue;let p=dS(n,l);if(p){let f=new FT.AccumulatorMap;Fl(e,t,n,r,l.selectionSet,f,o,c),o.push({label:p.label,fields:f})}else Fl(e,t,n,r,l.selectionSet,a,o,c);break}case Va.Kind.FRAGMENT_SPREAD:{let p=l.name.value;if(!PT(n,l))continue;let f=dS(n,l);if(c.has(p)&&!f)continue;let y=t[p];if(!y||!lS(e,y,r))continue;if(f||c.add(p),f){let g=new FT.AccumulatorMap;Fl(e,t,n,r,y.selectionSet,g,o,c),o.push({label:f.label,fields:g})}else Fl(e,t,n,r,y.selectionSet,a,o,c);break}}}function rte(e,t,n,r,i){let a=new FT.AccumulatorMap,o=[];return Fl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}zr.collectFields=rte;function PT(e,t){let n=(0,Va.getDirectiveValues)(Va.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Va.getDirectiveValues)(Va.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}zr.shouldIncludeNode=PT;function lS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Va.typeFromAST)(e,r);return i===n?!0:(0,Va.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}zr.doesFragmentConditionMatch=lS;function xU(e){return e.alias?e.alias.value:e.name.value}zr.getFieldEntryKey=xU;function dS(e,t){let n=(0,Va.getDirectiveValues)(tte.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}zr.getDeferValues=dS;zr.collectSubFields=(0,nte.memoize5)(function(t,n,r,i,a){let o=new FT.AccumulatorMap,c=new Set,l=[],p={fields:o,patches:l};for(let f of a)f.selectionSet&&Fl(t,n,r,i,f.selectionSet,o,l,c);return p})});var fS=w(wl=>{"use strict";m();T();N();Object.defineProperty(wl,"__esModule",{value:!0});wl.getOperationASTFromRequest=wl.getOperationASTFromDocument=void 0;var ite=Ae(),ate=gl();function qU(e,t){let n=(0,ite.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}wl.getOperationASTFromDocument=qU;wl.getOperationASTFromRequest=(0,ate.memoize1)(function(t){return qU(t.document,t.operationName)})});var KU=w(cu=>{"use strict";m();T();N();Object.defineProperty(cu,"__esModule",{value:!0});cu.visitResult=cu.visitErrors=cu.visitData=void 0;var uu=Ae(),mS=pS(),ste=fS();function NS(e,t,n){if(Array.isArray(e))return e.map(r=>NS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:NS(a,t,n)})}return n!=null?n(r):r}return e}cu.visitData=NS;function ote(e,t){return e.map(n=>t(n))}cu.visitErrors=ote;function ute(e,t,n,r,i){let a=t.document.definitions.reduce((g,v)=>(v.kind===uu.Kind.FRAGMENT_DEFINITION&&(g[v.name.value]=v),g),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,p=e.errors,f=p!=null&&i!=null,y=(0,ste.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=dte(l,y,n,a,o,r,f?p:void 0,c)),p!=null&&i&&(e.errors=cte(p,i,c)),e}cu.visitResult=ute;function cte(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((p,f)=>{let y=f.type.name,g=t[y];if(g==null)return p;let v=g[f.fieldName];return v==null?p:v(p,f.pathIndex)},o);return a&&i.has(o)?a(l):l})}function lte(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function dte(e,t,n,r,i,a,o,c){let l=lte(n,t),{fields:p}=(0,mS.collectFields)(n,r,i,l,t.selectionSet);return TS(e,l,p,n,r,i,a,0,o,c)}function TS(e,t,n,r,i,a,o,c,l,p){var Z;let f=t.getFields(),y=o==null?void 0:o[t.name],g=y==null?void 0:y.__enter,v=g!=null?g(e):e,P,k=null;if(l!=null){P=fte(l,c),k=P.errorMap;for(let W of P.unpathedErrors)p.unpathedErrors.add(W)}for(let[W,Te]of n){let fe=Te[0].name.value,we=(Z=f[fe])==null?void 0:Z.type;if(we==null)switch(fe){case"__typename":we=uu.TypeNameMetaFieldDef.type;break;case"__schema":we=uu.SchemaMetaFieldDef.type;break;case"__type":we=uu.TypeMetaFieldDef.type;break}let Ve=c+1,it;k&&(it=k[W],it!=null&&delete k[W],mte(t,fe,Ve,it,p));let ee=jU(e[W],we,Te,r,i,a,o,Ve,it,p);VU(v,W,ee,y,fe)}let K=v.__typename;if(K!=null&&VU(v,"__typename",K,y,"__typename"),k)for(let W in k){let Te=k[W];for(let fe of Te)p.unpathedErrors.add(fe)}let G=y==null?void 0:y.__leave;return G!=null?G(v):v}function VU(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function pte(e,t,n,r,i,a,o,c,l,p){return e.map(f=>jU(f,t,n,r,i,a,o,c+1,l,p))}function jU(e,t,n,r,i,a,o,c,l=[],p){if(e==null)return e;let f=(0,uu.getNullableType)(t);if((0,uu.isListType)(f))return pte(e,f.ofType,n,r,i,a,o,c,l,p);if((0,uu.isAbstractType)(f)){let v=r.getType(e.__typename),{fields:P}=(0,mS.collectSubFields)(r,i,a,v,n);return TS(e,v,P,r,i,a,o,c,l,p)}else if((0,uu.isObjectType)(f)){let{fields:v}=(0,mS.collectSubFields)(r,i,a,f,n);return TS(e,f,v,r,i,a,o,c,l,p)}let y=o==null?void 0:o[f.name];if(y==null)return e;let g=y(e);return g===void 0?e:g}function fte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function mte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var GU=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.valueMatchesCriteria=void 0;function ES(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>ES(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>ES(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}wT.valueMatchesCriteria=ES});var $U=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.isAsyncIterable=void 0;function Nte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}LT.isAsyncIterable=Nte});var QU=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.isDocumentNode=void 0;var Tte=Ae();function Ete(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Tte.Kind.DOCUMENT}CT.isDocumentNode=Ete});var YU=w(()=>{"use strict";m();T();N()});var WU=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.withCancel=lu.getAsyncIterableWithCancel=lu.getAsyncIteratorWithCancel=void 0;var hte=gl();function yte(e){return vi(this,null,function*(){return{value:e,done:!0}})}var JU=(0,hte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function HU(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||yte;return function(l){return vi(this,null,function*(){let p=yield t(l);return Reflect.apply(o,n,[p])})}}else if(typeof a=="function")return JU(n,a);return a}})}lu.getAsyncIteratorWithCancel=HU;function zU(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return HU(c,t)}:typeof a=="function"?JU(n,a):a}})}lu.getAsyncIterableWithCancel=zU;lu.withCancel=zU});var XU=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.fixSchemaAst=void 0;var Ite=Ae(),gte=jv();function _te(e,t){let n=(0,gte.getDocumentNodeFromSchema)(e);return(0,Ite.buildASTSchema)(n,x({},t||{}))}function vte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=_te(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}BT.fixSchemaAst=vte});var ZU=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.extractExtensionsFromSchema=void 0;var ys=sc(),Ste=bl();function sa(e={}){let t=x({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function Ote(e){let t={schemaExtensions:sa(e.extensions),types:{}};return(0,Ste.mapSchema)(e,{[ys.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:sa(n.extensions)},n),[ys.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:sa(n.extensions)},n),[ys.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:sa(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=sa(a[o].extensions);return n},[ys.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:sa(n.extensions)},n),[ys.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=sa(n.extensions),n),[ys.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:sa(n.extensions)},n),[ys.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:sa(n.extensions)},n)}),t}UT.extractExtensionsFromSchema=Ote});var ek=w(du=>{"use strict";m();T();N();Object.defineProperty(du,"__esModule",{value:!0});du.printPathArray=du.pathToArray=du.addPath=void 0;function Dte(e,t,n){return{prev:e,key:t,typename:n}}du.addPath=Dte;function bte(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}du.pathToArray=bte;function Ate(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}du.printPathArray=Ate});var tk=w(hS=>{"use strict";m();T();N();function kT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty(MT,"__esModule",{value:!0});MT.mergeIncrementalResult=void 0;var yS=tk();function nk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,yS.dset)(t,n,i),n[n.length-1]++;e.data&&(0,yS.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,yS.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{nk({incrementalResult:i,executionResult:t})})}MT.mergeIncrementalResult=nk});var ak=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.debugTimerEnd=Ll.debugTimerStart=void 0;var ik=new Set;function Pte(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(ik.add(e),console.time(e))}Ll.debugTimerStart=Pte;function Fte(e){ik.has(e)&&console.timeEnd(e)}Ll.debugTimerEnd=Fte});var oa=w(Ge=>{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.inspect=void 0;var Ye=(pB(),sm(dB));Ye.__exportStar(fB(),Ge);Ye.__exportStar(yp(),Ge);Ye.__exportStar(Pv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(vB(),Ge);Ye.__exportStar(Lv(),Ge);Ye.__exportStar(jv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(qB(),Ge);Ye.__exportStar(VB(),Ge);Ye.__exportStar(eU(),Ge);Ye.__exportStar(uU(),Ge);Ye.__exportStar(lU(),Ge);Ye.__exportStar(EU(),Ge);Ye.__exportStar(yU(),Ge);Ye.__exportStar(IU(),Ge);Ye.__exportStar(_U(),Ge);Ye.__exportStar(vU(),Ge);Ye.__exportStar(bl(),Ge);Ye.__exportStar(aS(),Ge);Ye.__exportStar(cT(),Ge);Ye.__exportStar(OU(),Ge);Ye.__exportStar(bU(),Ge);Ye.__exportStar(sc(),Ge);Ye.__exportStar(Wv(),Ge);Ye.__exportStar(AU(),Ge);Ye.__exportStar(RU(),Ge);Ye.__exportStar(PU(),Ge);Ye.__exportStar(FU(),Ge);Ye.__exportStar(Xv(),Ge);Ye.__exportStar(CU(),Ge);Ye.__exportStar(BU(),Ge);Ye.__exportStar(UU(),Ge);Ye.__exportStar(GN(),Ge);Ye.__exportStar(kU(),Ge);Ye.__exportStar(KU(),Ge);Ye.__exportStar(Rv(),Ge);Ye.__exportStar(GU(),Ge);Ye.__exportStar($U(),Ge);Ye.__exportStar(QU(),Ge);Ye.__exportStar(XN(),Ge);Ye.__exportStar(YU(),Ge);Ye.__exportStar(WU(),Ge);Ye.__exportStar(vp(),Ge);Ye.__exportStar(Gv(),Ge);Ye.__exportStar(pS(),Ge);var wte=Ip();Object.defineProperty(Ge,"inspect",{enumerable:!0,get:function(){return wte.inspect}});Ye.__exportStar(gl(),Ge);Ye.__exportStar(XU(),Ge);Ye.__exportStar(fS(),Ge);Ye.__exportStar(ZU(),Ge);Ye.__exportStar(ek(),Ge);Ye.__exportStar(gp(),Ge);Ye.__exportStar(cS(),Ge);Ye.__exportStar(rk(),Ge);Ye.__exportStar(ak(),Ge)});var ok=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.mergeResolvers=void 0;var Lte=oa();function sk(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=sk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Lte.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}xT.mergeResolvers=sk});var IS=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.mergeArguments=void 0;var uk=oa();function Cte(e,t,n){let r=Bte([...t,...e].filter(uk.isSome),n);return n&&n.sort&&r.sort(uk.compareNodes),r}qT.mergeArguments=Cte;function Bte(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var qi=w(Cl=>{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.mergeDirective=Cl.mergeDirectives=void 0;var ck=Ae(),Ute=oa();function kte(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Mte(e,t){return t.some(({value:n})=>n===e.value)}function dk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=Kte(o,c,(l,p)=>{let f=l.value;return!f||!p.some(y=>y.value===f)})}else a.value=r.value}else n.push(r)}return n}function xte(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!lk(n,t)){let o=i[a];return n.arguments=dk(n.arguments,o.arguments),null}return n}).filter(Ute.isSome)}function qte(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=xte([...a],r);for(let l of o)if(kte(c,l)&&!lk(l,r)){let p=c.findIndex(y=>y.name.value===l.name.value),f=c[p];c[p].arguments=dk(l.arguments||[],f.arguments||[])}else c.push(l);return c}Cl.mergeDirectives=qte;function Vte(e,t){let n=(0,ck.print)(Y(x({},e),{description:void 0})),r=(0,ck.print)(Y(x({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +`+o,block:!0})}):Y(x({},i),{description:{kind:ki.Kind.STRING,value:o,block:c}})}}}})}ou.transformCommentsToDescriptions=XB;function ZB(e){return(0,ki.isTypeSystemDefinitionNode)(e)||e.kind===ki.Kind.FIELD_DEFINITION||e.kind===ki.Kind.INPUT_VALUE_DEFINITION||e.kind===ki.Kind.ENUM_VALUE_DEFINITION}ou.isDescribable=ZB});var uU=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.buildOperationNodeForField=void 0;var ct=Ae(),iU=vp(),Yv=[],rT=new Map;function aU(e){Yv.push(e)}function tU(){Yv=[]}function nU(){rT=new Map}function nee({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){tU(),nU();let p=(0,iU.getRootTypeNames)(e),f=ree({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:p});return f.variableDefinitions=[...Yv],tU(),nU(),f}iT.buildOperationNodeForField=nee;function ree({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:p}){let f=(0,iU.getDefinedRootType)(e,n),y=f.getFields()[t],g=`${t}_${n}`;if(y.args)for(let v of y.args){let F=v.name;(!c||c.includes(F))&&aU(sU(v,F))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:g},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[oU({type:f,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:p})]}}}function Qv({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){if(!(typeof g=="boolean"&&f>c)){if((0,ct.isUnionType)(t)){let F=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:F.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,$;return(($=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:$.length)>0})}}if((0,ct.isInterfaceType)(t)){let F=Object.values(p.getTypeMap()).filter(k=>(0,ct.isObjectType)(k)&&k.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:F.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,$;return(($=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:$.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let F=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),k=n.includes(t.name);if(!r&&k&&!F)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(K).filter($=>!$v([...a,(0,ct.getNamedType)(K[$].type)],{depth:l})).map($=>{let ne=typeof g=="object"?g[$]:!0;return ne?oU({type:t,field:K[$],models:n,path:[...i,$],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:ne,rootTypeNames:v}):null}).filter($=>{var ne,z;return $==null?!1:"selectionSet"in $?!!((z=(ne=$.selectionSet)==null?void 0:ne.selections)!=null&&z.length):!0})}}}}function sU(e,t){function n(r){return(0,ct.isListType)(r)?{kind:ct.Kind.LIST_TYPE,type:n(r.ofType)}:(0,ct.isNonNullType)(r)?{kind:ct.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:r.name}}}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type)}}function rU(e,t){return[...t,e].join("_")}function oU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){let F=(0,ct.getNamedType)(t.type),k=[],K=!1;if(t.args&&t.args.length&&(k=t.args.map(Te=>{let pe=rU(Te.name,i);return y&&!y.includes(pe)?((0,ct.isNonNullType)(Te.type)&&(K=!0),null):(r||aU(sU(Te,pe)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:Te.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:rU(Te.name,i)}}})}).filter(Boolean)),K)return null;let $=[...i,t.name],ne=$.join("."),z=t.name;return rT.has(ne)&&rT.get(ne)!==t.type.toString()&&(z+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),rT.set(ne,t.type.toString()),!(0,ct.isScalarType)(F)&&!(0,ct.isEnumType)(F)?Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},z!==t.name&&{alias:{kind:ct.Kind.NAME,value:z}}),{selectionSet:Qv({parent:e,type:F,models:n,firstCall:r,path:$,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f+1,argNames:y,selectedFields:g,rootTypeNames:v})||void 0,arguments:k}):Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},z!==t.name&&{alias:{kind:ct.Kind.NAME,value:z}}),{arguments:k})}function $v(e,t={depth:1}){let n=e[e.length-1];return(0,ct.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var lU=w(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.DirectiveLocation=void 0;var cU;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(cU||(aT.DirectiveLocation=cU={}))});var sc=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.MapperKind=void 0;var dU;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(dU||(sT.MapperKind=dU={}))});var Jv=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getObjectTypeFromTypeMap=void 0;var iee=Ae();function aee(e,t){if(t){let n=e[t.name];if((0,iee.isObjectType)(n))return n}}oT.getObjectTypeFromTypeMap=aee});var Wv=w(ka=>{"use strict";m();T();N();Object.defineProperty(ka,"__esModule",{value:!0});ka.getBuiltInForStub=ka.isNamedStub=ka.createStub=ka.createNamedStub=void 0;var lr=Ae();function Hv(e,t){let n;return t==="object"?n=lr.GraphQLObjectType:t==="interface"?n=lr.GraphQLInterfaceType:n=lr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:lr.GraphQLString}}})}ka.createNamedStub=Hv;function zv(e,t){switch(e.kind){case lr.Kind.LIST_TYPE:return new lr.GraphQLList(zv(e.type,t));case lr.Kind.NON_NULL_TYPE:return new lr.GraphQLNonNull(zv(e.type,t));default:return t==="output"?Hv(e.name.value,"object"):Hv(e.name.value,"input")}}ka.createStub=zv;function see(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ka.isNamedStub=see;function oee(e){switch(e.name){case lr.GraphQLInt.name:return lr.GraphQLInt;case lr.GraphQLFloat.name:return lr.GraphQLFloat;case lr.GraphQLString.name:return lr.GraphQLString;case lr.GraphQLBoolean.name:return lr.GraphQLBoolean;case lr.GraphQLID.name:return lr.GraphQLID;default:return e}}ka.getBuiltInForStub=oee});var cT=w(uT=>{"use strict";m();T();N();Object.defineProperty(uT,"__esModule",{value:!0});uT.rewireTypes=void 0;var Qn=Ae(),pU=Wv();function uee(e,t){let n=Object.create(null);for(let g in e)n[g]=e[g];let r=Object.create(null);for(let g in n){let v=n[g];if(v==null||g.startsWith("__"))continue;let F=v.name;if(!F.startsWith("__")){if(r[F]!=null){console.warn(`Duplicate schema type name ${F} found; keeping the existing one found in the schema`);continue}r[F]=v}}for(let g in r)r[g]=c(r[g]);let i=t.map(g=>a(g));return{typeMap:r,directives:i};function a(g){if((0,Qn.isSpecifiedDirective)(g))return g;let v=g.toConfig();return v.args=o(v.args),new Qn.GraphQLDirective(v)}function o(g){let v={};for(let F in g){let k=g[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function c(g){if((0,Qn.isObjectType)(g)){let v=g.toConfig(),F=Y(x({},v),{fields:()=>l(v.fields),interfaces:()=>f(v.interfaces)});return new Qn.GraphQLObjectType(F)}else if((0,Qn.isInterfaceType)(g)){let v=g.toConfig(),F=Y(x({},v),{fields:()=>l(v.fields)});return"interfaces"in F&&(F.interfaces=()=>f(v.interfaces)),new Qn.GraphQLInterfaceType(F)}else if((0,Qn.isUnionType)(g)){let v=g.toConfig(),F=Y(x({},v),{types:()=>f(v.types)});return new Qn.GraphQLUnionType(F)}else if((0,Qn.isInputObjectType)(g)){let v=g.toConfig(),F=Y(x({},v),{fields:()=>p(v.fields)});return new Qn.GraphQLInputObjectType(F)}else if((0,Qn.isEnumType)(g)){let v=g.toConfig();return new Qn.GraphQLEnumType(v)}else if((0,Qn.isScalarType)(g)){if((0,Qn.isSpecifiedScalarType)(g))return g;let v=g.toConfig();return new Qn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${g}`)}function l(g){let v={};for(let F in g){let k=g[F],K=y(k.type);K!=null&&k.args&&(k.type=K,k.args=o(k.args),v[F]=k)}return v}function p(g){let v={};for(let F in g){let k=g[F],K=y(k.type);K!=null&&(k.type=K,v[F]=k)}return v}function f(g){let v=[];for(let F of g){let k=y(F);k!=null&&v.push(k)}return v}function y(g){if((0,Qn.isListType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLList(v):null}else if((0,Qn.isNonNullType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLNonNull(v):null}else if((0,Qn.isNamedType)(g)){let v=n[g.name];return v===void 0&&(v=(0,pU.isNamedStub)(g)?(0,pU.getBuiltInForStub)(g):c(g),r[v.name]=n[g.name]=v),v!=null?r[v.name]:null}return null}}uT.rewireTypes=uee});var Xv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.parseInputValueLiteral=Ma.parseInputValue=Ma.serializeInputValue=Ma.transformInputValue=void 0;var lT=Ae(),cee=yp();function Sl(e,t,n=null,r=null){if(t==null)return t;let i=(0,lT.getNullableType)(e);if((0,lT.isLeafType)(i))return n!=null?n(i,t):t;if((0,lT.isListType)(i))return(0,cee.asArray)(t).map(a=>Sl(i.ofType,a,n,r));if((0,lT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Sl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Ma.transformInputValue=Sl;function lee(e,t){return Sl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ma.serializeInputValue=lee;function dee(e,t){return Sl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ma.parseInputValue=dee;function pee(e,t){return Sl(e,t,(n,r)=>n.parseLiteral(r,{}))}Ma.parseInputValueLiteral=pee});var bl=w(Dl=>{"use strict";m();T();N();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.correctASTNodes=Dl.mapSchema=void 0;var rt=Ae(),Ol=Jv(),bt=sc(),fee=cT(),fU=Xv();function mee(e,t={}){let n=TU(NU(Zv(mU(Nee(Zv(mU(e.getTypeMap(),e,fU.serializeInputValue),e,t,c=>(0,rt.isLeafType)(c)),e,t),e,fU.parseInputValue),e,t,c=>!(0,rt.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Tee(r,e,t),{typeMap:a,directives:o}=(0,fee.rewireTypes)(n,i);return new rt.GraphQLSchema(Y(x({},e.toConfig()),{query:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Dl.mapSchema=mee;function Zv(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=hee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function Nee(e,t,n){let r=vee(n);return r?Zv(e,t,{[bt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let p=o[l],f=r(p,i.name,t,l);if(f===void 0)c[l]=p;else if(Array.isArray(f)){let[y,g]=f;c[y]=g===void 0?p:g}else f!==null&&(c[l]=f)}return Rp(new rt.GraphQLEnumType(Y(x({},a),{values:c})))}},i=>(0,rt.isEnumType)(i)):e}function mU(e,t,n){let r=TU(e,t,{[bt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=dT(e,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}});return NU(r,t,{[bt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=dT(r,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function dT(e,t){if((0,rt.isListType)(t)){let n=dT(e,t.ofType);return n!=null?new rt.GraphQLList(n):null}else if((0,rt.isNonNullType)(t)){let n=dT(e,t.ofType);return n!=null?new rt.GraphQLNonNull(n):null}else if((0,rt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function NU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,rt.isObjectType)(a)&&!(0,rt.isInterfaceType)(a)&&!(0,rt.isInputObjectType)(a)){r[i]=a;continue}let o=Iee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=o(y,f,i,t);if(g===void 0)p[f]=y;else if(Array.isArray(g)){let[v,F]=g;F.astNode!=null&&(F.astNode=Y(x({},F.astNode),{name:Y(x({},F.astNode.name),{value:v})})),p[v]=F===void 0?y:F}else g!==null&&(p[f]=g)}(0,rt.isObjectType)(a)?r[i]=Rp(new rt.GraphQLObjectType(Y(x({},c),{fields:p}))):(0,rt.isInterfaceType)(a)?r[i]=Rp(new rt.GraphQLInterfaceType(Y(x({},c),{fields:p}))):r[i]=Rp(new rt.GraphQLInputObjectType(Y(x({},c),{fields:p})))}return r}function TU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,rt.isObjectType)(a)&&!(0,rt.isInterfaceType)(a)){r[i]=a;continue}let o=gee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=y.args;if(g==null){p[f]=y;continue}let v=Object.keys(g);if(!v.length){p[f]=y;continue}let F={};for(let k of v){let K=g[k],$=o(K,f,i,t);if($===void 0)F[k]=K;else if(Array.isArray($)){let[ne,z]=$;F[ne]=z}else $!==null&&(F[k]=$)}p[f]=Y(x({},y),{args:F})}(0,rt.isObjectType)(a)?r[i]=new rt.GraphQLObjectType(Y(x({},c),{fields:p})):(0,rt.isInterfaceType)(a)?r[i]=new rt.GraphQLInterfaceType(Y(x({},c),{fields:p})):r[i]=new rt.GraphQLInputObjectType(Y(x({},c),{fields:p}))}return r}function Tee(e,t,n){let r=_ee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function Eee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.TYPE];return(0,rt.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_OBJECT,bt.MapperKind.SUBSCRIPTION)):(0,rt.isInputObjectType)(n)?r.push(bt.MapperKind.INPUT_OBJECT_TYPE):(0,rt.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.INTERFACE_TYPE):(0,rt.isUnionType)(n)?r.push(bt.MapperKind.COMPOSITE_TYPE,bt.MapperKind.ABSTRACT_TYPE,bt.MapperKind.UNION_TYPE):(0,rt.isEnumType)(n)?r.push(bt.MapperKind.ENUM_TYPE):(0,rt.isScalarType)(n)&&r.push(bt.MapperKind.SCALAR_TYPE),r}function hee(e,t,n){let r=Eee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function yee(e,t){var i,a,o;let n=e.getType(t),r=[bt.MapperKind.FIELD];return(0,rt.isObjectType)(n)?(r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(bt.MapperKind.ROOT_FIELD,bt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,rt.isInterfaceType)(n)?r.push(bt.MapperKind.COMPOSITE_FIELD,bt.MapperKind.INTERFACE_FIELD):(0,rt.isInputObjectType)(n)&&r.push(bt.MapperKind.INPUT_OBJECT_FIELD),r}function Iee(e,t,n){let r=yee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function gee(e){let t=e[bt.MapperKind.ARGUMENT];return t!=null?t:null}function _ee(e){let t=e[bt.MapperKind.DIRECTIVE];return t!=null?t:null}function vee(e){let t=e[bt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Rp(e){if((0,rt.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:rt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:rt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new rt.GraphQLObjectType(t)}else if((0,rt.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:rt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:rt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new rt.GraphQLInterfaceType(t)}else if((0,rt.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{kind:rt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:rt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new rt.GraphQLInputObjectType(t)}else if((0,rt.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Y(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{values:void 0}))),new rt.GraphQLEnumType(t)}else return e}Dl.correctASTNodes=Rp});var EU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.filterSchema=void 0;var pT=Ae(),hs=sc(),See=bl();function Oee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,See.mapSchema)(e,{[hs.MapperKind.QUERY]:p=>eS(p,"Query",r,c),[hs.MapperKind.MUTATION]:p=>eS(p,"Mutation",r,c),[hs.MapperKind.SUBSCRIPTION]:p=>eS(p,"Subscription",r,c),[hs.MapperKind.OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLObjectType,p,i||n,c):null,[hs.MapperKind.INTERFACE_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInterfaceType,p,a||n,c):null,[hs.MapperKind.INPUT_OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInputObjectType,p,o||n):null,[hs.MapperKind.UNION_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.ENUM_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.SCALAR_TYPE]:p=>t(p.name,p)?void 0:null})}fT.filterSchema=Oee;function eS(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new pT.GraphQLObjectType(i)}return e}function tS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var yU=w(Al=>{"use strict";m();T();N();Object.defineProperty(Al,"__esModule",{value:!0});Al.healTypes=Al.healSchema=void 0;var xa=Ae();function Dee(e){return hU(e.getTypeMap(),e.getDirectives()),e}Al.healSchema=Dee;function hU(e,t){let n=Object.create(null);for(let p in e){let f=e[p];if(f==null||p.startsWith("__"))continue;let y=f.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=f}}for(let p in n){let f=n[p];e[p]=f}for(let p of t)p.args=p.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let p in e){let f=e[p];!p.startsWith("__")&&p in n&&f!=null&&r(f)}for(let p in e)!p.startsWith("__")&&!(p in n)&&delete e[p];function r(p){if((0,xa.isObjectType)(p)){i(p),a(p);return}else if((0,xa.isInterfaceType)(p)){i(p),"getInterfaces"in p&&a(p);return}else if((0,xa.isUnionType)(p)){c(p);return}else if((0,xa.isInputObjectType)(p)){o(p);return}else if((0,xa.isLeafType)(p))return;throw new Error(`Unexpected schema type: ${p}`)}function i(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),g.type=l(g.type),g.type===null&&delete f[y]}function a(p){if("getInterfaces"in p){let f=p.getInterfaces();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}}function o(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.type=l(g.type),g.type===null&&delete f[y]}function c(p){let f=p.getTypes();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}function l(p){if((0,xa.isListType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLList(f):null}else if((0,xa.isNonNullType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLNonNull(f):null}else if((0,xa.isNamedType)(p)){let f=e[p.name];if(f&&p!==f)return f}return p}}Al.healTypes=hU});var IU=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getResolversFromSchema=void 0;var oc=Ae();function bee(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,oc.isScalarType)(c)){if(!(0,oc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new oc.GraphQLScalarType(l)}}else if((0,oc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let p of l)n[o][p.name]=p.value}else if((0,oc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let p in l){let f=l[p];if(f.subscribe!=null&&(n[o][p]=n[o][p]||{},n[o][p].subscribe=f.subscribe),f.resolve!=null&&((i=f.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=f.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][p]=n[o][p]||{},n[o][p].resolve=f.resolve}}}}return n}mT.getResolversFromSchema=bee});var _U=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.forEachField=void 0;var gU=Ae();function Aee(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,gU.getNamedType)(i).name.startsWith("__")&&(0,gU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}NT.forEachField=Aee});var vU=w(TT=>{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.forEachDefaultValue=void 0;var nS=Ae();function Ree(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,nS.getNamedType)(i).name.startsWith("__")){if((0,nS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,nS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}TT.forEachDefaultValue=Ree});var aS=w(ET=>{"use strict";m();T();N();Object.defineProperty(ET,"__esModule",{value:!0});ET.addTypes=void 0;var rS=Ae(),iS=Jv(),Pee=cT();function Fee(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,rS.isNamedType)(c)?r[c.name]=c:(0,rS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,Pee.rewireTypes)(r,Object.values(i));return new rS.GraphQLSchema(Y(x({},n),{query:(0,iS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,iS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,iS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ET.addTypes=Fee});var OU=w(yT=>{"use strict";m();T();N();Object.defineProperty(yT,"__esModule",{value:!0});yT.pruneSchema=void 0;var Zn=Ae(),wee=Lv(),Lee=sc(),Cee=bl(),Bee=vp();function Uee(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let p=kee(l);if(i){let f=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let g=l.getType(y);g&&i(g)&&f.push(y)}p=SU(f,l,p)}c=[],l=(0,Cee.mapSchema)(l,{[Lee.MapperKind.TYPE]:f=>!p.has(f.name)&&!(0,Zn.isSpecifiedScalarType)(f)?((0,Zn.isUnionType)(f)||(0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f)||(0,Zn.isScalarType)(f))&&(o||(0,Zn.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,Zn.isInterfaceType)(f)&&a)?f:(c.push(f.name),p.delete(f.name),null):f})}while(c.length);return l}yT.pruneSchema=Uee;function kee(e){let t=[];for(let n of(0,Bee.getRootTypes)(e))t.push(n.name);return SU(t,e)}function SU(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let a=t.getType(i);if(a){if((0,Zn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,Zn.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,wee.getImplementingTypes)(a.name,t)),r[i]=!1),(0,Zn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?hT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,Zn.isObjectType)(a)&&e.push(...l.args.flatMap(f=>{let y=[(0,Zn.getNamedType)(f.type).name];return f.astNode&&y.push(...hT(t,f.astNode)),y}));let p=(0,Zn.getNamedType)(l.type);e.push(p.name),l.astNode&&e.push(...hT(t,l.astNode)),(0,Zn.isInterfaceType)(p)&&!(p.name in r)&&(r[p.name]=!0)}}a.astNode&&e.push(...hT(t,a.astNode)),n.add(i)}}return n}function hT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,Zn.getNamedType)(o.type).name))!=null?a:[]})}});var bU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.mergeDeep=void 0;var Mee=yp();function DU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(sS(r)&&sS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let p=Object.getOwnPropertyDescriptor(c,l);(0,Mee.isSome)(p)&&Object.defineProperty(o,l,p)}}for(let o in a)sS(a[o])?o in i?i[o]=DU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}IT.mergeDeep=DU;function sS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var AU=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.parseSelectionSet=void 0;var xee=Ae();function qee(e,t){return(0,xee.parse)(e,t).definitions[0].selectionSet}gT.parseSelectionSet=qee});var RU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.getResponseKeyFromInfo=void 0;function Vee(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}_T.getResponseKeyFromInfo=Vee});var PU=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.modifyObjectFields=qa.selectObjectFields=qa.removeObjectFields=qa.appendObjectFields=void 0;var vT=Ae(),jee=aS(),ST=sc(),uc=bl();function Kee(e,t,n){return e.getType(t)==null?(0,jee.addTypes)(e,[new vT.GraphQLObjectType({name:t,fields:n})]):(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},i),{fields:o})))}}})}qa.appendObjectFields=Kee;function Gee(e,t,n){let r={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let p in c){let f=c[p];n(p,f)?r[p]=f:l[p]=f}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},o),{fields:l})))}}}),r]}qa.removeObjectFields=Gee;function $ee(e,t,n){let r={};return(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}qa.selectObjectFields=$ee;function Qee(e,t,n,r){let i={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f];n(f,y)?i[f]=y:p[f]=y}for(let f in r){let y=r[f];p[f]=y}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},c),{fields:p})))}}}),i]}qa.modifyObjectFields=Qee});var FU=w(OT=>{"use strict";m();T();N();Object.defineProperty(OT,"__esModule",{value:!0});OT.renameType=void 0;var Mi=Ae();function Yee(e,t){if((0,Mi.isObjectType)(e))return new Mi.GraphQLObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInterfaceType)(e))return new Mi.GraphQLInterfaceType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isUnionType)(e))return new Mi.GraphQLUnionType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInputObjectType)(e))return new Mi.GraphQLInputObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isEnumType)(e))return new Mi.GraphQLEnumType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isScalarType)(e))return new Mi.GraphQLScalarType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}OT.renameType=Yee});var CU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.mapAsyncIterator=void 0;var Jee=gp();function Hee(e,t,n,r){let i,a,o;r&&(o=p=>{let f=r();return(0,Jee.isPromise)(f)?f.then(()=>p):p}),typeof e.return=="function"&&(i=e.return,a=p=>{let f=()=>Promise.reject(p);return i.call(e).then(f,f)});function c(p){return p.done?o?o(p):p:wU(p.value,t).then(LU,a)}let l;if(n){let p=n;l=f=>wU(f,p).then(LU,a)}return{next(){return e.next().then(c,l)},return(){let p=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?p.then(o):p},throw(p){return typeof e.throw=="function"?e.throw(p).then(c,l):Promise.reject(p).catch(a)},[Symbol.asyncIterator](){return this}}}DT.mapAsyncIterator=Hee;function wU(e,t){return new Promise(n=>n(t(e)))}function LU(e){return{value:e,done:!1}}});var BU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createVariableNameGenerator=Rl.updateArgument=void 0;var cc=Ae(),zee=Bv();function Wee(e,t,n,r,i,a,o){if(e[r]={kind:cc.Kind.ARGUMENT,name:{kind:cc.Kind.NAME,value:r},value:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}}},t[i]={kind:cc.Kind.VARIABLE_DEFINITION,variable:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}},type:(0,zee.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Rl.updateArgument=Wee;function Xee(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Rl.createVariableNameGenerator=Xee});var UU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.implementsAbstractType=void 0;var oS=Ae();function Zee(e,t,n){return n==null||t==null?!1:t===n?!0:(0,oS.isCompositeType)(t)&&(0,oS.isCompositeType)(n)?(0,oS.doTypesOverlap)(e,t,n):!1}bT.implementsAbstractType=Zee});var kU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.observableToAsyncIterable=void 0;function ete(e){let t=[],n=[],r=!0,i=f=>{t.length!==0?t.shift()({value:f,done:!1}):n.push({value:f,done:!1})},a=f=>{t.length!==0?t.shift()({value:{errors:[f]},done:!1}):n.push({value:{errors:[f]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(f=>{if(n.length!==0){let y=n.shift();f(y)}else t.push(f)}),l=e.subscribe({next(f){i(f)},error(f){a(f)},complete(){o()}}),p=()=>{if(r){r=!1,l.unsubscribe();for(let f of t)f({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return p(),Promise.resolve({value:void 0,done:!0})},throw(f){return p(),Promise.reject(f)},[Symbol.asyncIterator](){return this}}}AT.observableToAsyncIterable=ete});var MU=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.AccumulatorMap=void 0;var uS=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};RT.AccumulatorMap=uS});var cS=w(Pl=>{"use strict";m();T();N();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.GraphQLStreamDirective=Pl.GraphQLDeferDirective=void 0;var xi=Ae();Pl.GraphQLDeferDirective=new xi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FRAGMENT_SPREAD,xi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"}}});Pl.GraphQLStreamDirective=new xi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FIELD],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:xi.GraphQLInt,description:"Number of items to return immediately"}}})});var pS=w(zr=>{"use strict";m();T();N();Object.defineProperty(zr,"__esModule",{value:!0});zr.collectSubFields=zr.getDeferValues=zr.getFieldEntryKey=zr.doesFragmentConditionMatch=zr.shouldIncludeNode=zr.collectFields=void 0;var Va=Ae(),FT=MU(),tte=cS(),nte=gl();function Fl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Va.Kind.FIELD:{if(!PT(n,l))continue;a.add(xU(l),l);break}case Va.Kind.INLINE_FRAGMENT:{if(!PT(n,l)||!lS(e,l,r))continue;let p=dS(n,l);if(p){let f=new FT.AccumulatorMap;Fl(e,t,n,r,l.selectionSet,f,o,c),o.push({label:p.label,fields:f})}else Fl(e,t,n,r,l.selectionSet,a,o,c);break}case Va.Kind.FRAGMENT_SPREAD:{let p=l.name.value;if(!PT(n,l))continue;let f=dS(n,l);if(c.has(p)&&!f)continue;let y=t[p];if(!y||!lS(e,y,r))continue;if(f||c.add(p),f){let g=new FT.AccumulatorMap;Fl(e,t,n,r,y.selectionSet,g,o,c),o.push({label:f.label,fields:g})}else Fl(e,t,n,r,y.selectionSet,a,o,c);break}}}function rte(e,t,n,r,i){let a=new FT.AccumulatorMap,o=[];return Fl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}zr.collectFields=rte;function PT(e,t){let n=(0,Va.getDirectiveValues)(Va.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Va.getDirectiveValues)(Va.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}zr.shouldIncludeNode=PT;function lS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Va.typeFromAST)(e,r);return i===n?!0:(0,Va.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}zr.doesFragmentConditionMatch=lS;function xU(e){return e.alias?e.alias.value:e.name.value}zr.getFieldEntryKey=xU;function dS(e,t){let n=(0,Va.getDirectiveValues)(tte.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}zr.getDeferValues=dS;zr.collectSubFields=(0,nte.memoize5)(function(t,n,r,i,a){let o=new FT.AccumulatorMap,c=new Set,l=[],p={fields:o,patches:l};for(let f of a)f.selectionSet&&Fl(t,n,r,i,f.selectionSet,o,l,c);return p})});var fS=w(wl=>{"use strict";m();T();N();Object.defineProperty(wl,"__esModule",{value:!0});wl.getOperationASTFromRequest=wl.getOperationASTFromDocument=void 0;var ite=Ae(),ate=gl();function qU(e,t){let n=(0,ite.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}wl.getOperationASTFromDocument=qU;wl.getOperationASTFromRequest=(0,ate.memoize1)(function(t){return qU(t.document,t.operationName)})});var KU=w(cu=>{"use strict";m();T();N();Object.defineProperty(cu,"__esModule",{value:!0});cu.visitResult=cu.visitErrors=cu.visitData=void 0;var uu=Ae(),mS=pS(),ste=fS();function NS(e,t,n){if(Array.isArray(e))return e.map(r=>NS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:NS(a,t,n)})}return n!=null?n(r):r}return e}cu.visitData=NS;function ote(e,t){return e.map(n=>t(n))}cu.visitErrors=ote;function ute(e,t,n,r,i){let a=t.document.definitions.reduce((g,v)=>(v.kind===uu.Kind.FRAGMENT_DEFINITION&&(g[v.name.value]=v),g),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,p=e.errors,f=p!=null&&i!=null,y=(0,ste.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=dte(l,y,n,a,o,r,f?p:void 0,c)),p!=null&&i&&(e.errors=cte(p,i,c)),e}cu.visitResult=ute;function cte(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((p,f)=>{let y=f.type.name,g=t[y];if(g==null)return p;let v=g[f.fieldName];return v==null?p:v(p,f.pathIndex)},o);return a&&i.has(o)?a(l):l})}function lte(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function dte(e,t,n,r,i,a,o,c){let l=lte(n,t),{fields:p}=(0,mS.collectFields)(n,r,i,l,t.selectionSet);return TS(e,l,p,n,r,i,a,0,o,c)}function TS(e,t,n,r,i,a,o,c,l,p){var ne;let f=t.getFields(),y=o==null?void 0:o[t.name],g=y==null?void 0:y.__enter,v=g!=null?g(e):e,F,k=null;if(l!=null){F=fte(l,c),k=F.errorMap;for(let z of F.unpathedErrors)p.unpathedErrors.add(z)}for(let[z,Te]of n){let pe=Te[0].name.value,Fe=(ne=f[pe])==null?void 0:ne.type;if(Fe==null)switch(pe){case"__typename":Fe=uu.TypeNameMetaFieldDef.type;break;case"__schema":Fe=uu.SchemaMetaFieldDef.type;break;case"__type":Fe=uu.TypeMetaFieldDef.type;break}let Ve=c+1,et;k&&(et=k[z],et!=null&&delete k[z],mte(t,pe,Ve,et,p));let X=jU(e[z],Fe,Te,r,i,a,o,Ve,et,p);VU(v,z,X,y,pe)}let K=v.__typename;if(K!=null&&VU(v,"__typename",K,y,"__typename"),k)for(let z in k){let Te=k[z];for(let pe of Te)p.unpathedErrors.add(pe)}let $=y==null?void 0:y.__leave;return $!=null?$(v):v}function VU(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function pte(e,t,n,r,i,a,o,c,l,p){return e.map(f=>jU(f,t,n,r,i,a,o,c+1,l,p))}function jU(e,t,n,r,i,a,o,c,l=[],p){if(e==null)return e;let f=(0,uu.getNullableType)(t);if((0,uu.isListType)(f))return pte(e,f.ofType,n,r,i,a,o,c,l,p);if((0,uu.isAbstractType)(f)){let v=r.getType(e.__typename),{fields:F}=(0,mS.collectSubFields)(r,i,a,v,n);return TS(e,v,F,r,i,a,o,c,l,p)}else if((0,uu.isObjectType)(f)){let{fields:v}=(0,mS.collectSubFields)(r,i,a,f,n);return TS(e,f,v,r,i,a,o,c,l,p)}let y=o==null?void 0:o[f.name];if(y==null)return e;let g=y(e);return g===void 0?e:g}function fte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function mte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var GU=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.valueMatchesCriteria=void 0;function ES(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>ES(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>ES(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}wT.valueMatchesCriteria=ES});var $U=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.isAsyncIterable=void 0;function Nte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}LT.isAsyncIterable=Nte});var QU=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.isDocumentNode=void 0;var Tte=Ae();function Ete(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Tte.Kind.DOCUMENT}CT.isDocumentNode=Ete});var YU=w(()=>{"use strict";m();T();N()});var WU=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.withCancel=lu.getAsyncIterableWithCancel=lu.getAsyncIteratorWithCancel=void 0;var hte=gl();function yte(e){return vi(this,null,function*(){return{value:e,done:!0}})}var JU=(0,hte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function HU(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||yte;return function(l){return vi(this,null,function*(){let p=yield t(l);return Reflect.apply(o,n,[p])})}}else if(typeof a=="function")return JU(n,a);return a}})}lu.getAsyncIteratorWithCancel=HU;function zU(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return HU(c,t)}:typeof a=="function"?JU(n,a):a}})}lu.getAsyncIterableWithCancel=zU;lu.withCancel=zU});var XU=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.fixSchemaAst=void 0;var Ite=Ae(),gte=jv();function _te(e,t){let n=(0,gte.getDocumentNodeFromSchema)(e);return(0,Ite.buildASTSchema)(n,x({},t||{}))}function vte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=_te(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}BT.fixSchemaAst=vte});var ZU=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.extractExtensionsFromSchema=void 0;var ys=sc(),Ste=bl();function sa(e={}){let t=x({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function Ote(e){let t={schemaExtensions:sa(e.extensions),types:{}};return(0,Ste.mapSchema)(e,{[ys.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:sa(n.extensions)},n),[ys.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:sa(n.extensions)},n),[ys.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:sa(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=sa(a[o].extensions);return n},[ys.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:sa(n.extensions)},n),[ys.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=sa(n.extensions),n),[ys.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:sa(n.extensions)},n),[ys.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:sa(n.extensions)},n)}),t}UT.extractExtensionsFromSchema=Ote});var ek=w(du=>{"use strict";m();T();N();Object.defineProperty(du,"__esModule",{value:!0});du.printPathArray=du.pathToArray=du.addPath=void 0;function Dte(e,t,n){return{prev:e,key:t,typename:n}}du.addPath=Dte;function bte(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}du.pathToArray=bte;function Ate(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}du.printPathArray=Ate});var tk=w(hS=>{"use strict";m();T();N();function kT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty(MT,"__esModule",{value:!0});MT.mergeIncrementalResult=void 0;var yS=tk();function nk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,yS.dset)(t,n,i),n[n.length-1]++;e.data&&(0,yS.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,yS.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{nk({incrementalResult:i,executionResult:t})})}MT.mergeIncrementalResult=nk});var ak=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.debugTimerEnd=Ll.debugTimerStart=void 0;var ik=new Set;function Pte(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(ik.add(e),console.time(e))}Ll.debugTimerStart=Pte;function Fte(e){ik.has(e)&&console.timeEnd(e)}Ll.debugTimerEnd=Fte});var oa=w(Ge=>{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.inspect=void 0;var Ye=(pB(),sm(dB));Ye.__exportStar(fB(),Ge);Ye.__exportStar(yp(),Ge);Ye.__exportStar(Pv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(vB(),Ge);Ye.__exportStar(Lv(),Ge);Ye.__exportStar(jv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(qB(),Ge);Ye.__exportStar(VB(),Ge);Ye.__exportStar(eU(),Ge);Ye.__exportStar(uU(),Ge);Ye.__exportStar(lU(),Ge);Ye.__exportStar(EU(),Ge);Ye.__exportStar(yU(),Ge);Ye.__exportStar(IU(),Ge);Ye.__exportStar(_U(),Ge);Ye.__exportStar(vU(),Ge);Ye.__exportStar(bl(),Ge);Ye.__exportStar(aS(),Ge);Ye.__exportStar(cT(),Ge);Ye.__exportStar(OU(),Ge);Ye.__exportStar(bU(),Ge);Ye.__exportStar(sc(),Ge);Ye.__exportStar(Wv(),Ge);Ye.__exportStar(AU(),Ge);Ye.__exportStar(RU(),Ge);Ye.__exportStar(PU(),Ge);Ye.__exportStar(FU(),Ge);Ye.__exportStar(Xv(),Ge);Ye.__exportStar(CU(),Ge);Ye.__exportStar(BU(),Ge);Ye.__exportStar(UU(),Ge);Ye.__exportStar(GN(),Ge);Ye.__exportStar(kU(),Ge);Ye.__exportStar(KU(),Ge);Ye.__exportStar(Rv(),Ge);Ye.__exportStar(GU(),Ge);Ye.__exportStar($U(),Ge);Ye.__exportStar(QU(),Ge);Ye.__exportStar(XN(),Ge);Ye.__exportStar(YU(),Ge);Ye.__exportStar(WU(),Ge);Ye.__exportStar(vp(),Ge);Ye.__exportStar(Gv(),Ge);Ye.__exportStar(pS(),Ge);var wte=Ip();Object.defineProperty(Ge,"inspect",{enumerable:!0,get:function(){return wte.inspect}});Ye.__exportStar(gl(),Ge);Ye.__exportStar(XU(),Ge);Ye.__exportStar(fS(),Ge);Ye.__exportStar(ZU(),Ge);Ye.__exportStar(ek(),Ge);Ye.__exportStar(gp(),Ge);Ye.__exportStar(cS(),Ge);Ye.__exportStar(rk(),Ge);Ye.__exportStar(ak(),Ge)});var ok=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.mergeResolvers=void 0;var Lte=oa();function sk(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=sk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Lte.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}xT.mergeResolvers=sk});var IS=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.mergeArguments=void 0;var uk=oa();function Cte(e,t,n){let r=Bte([...t,...e].filter(uk.isSome),n);return n&&n.sort&&r.sort(uk.compareNodes),r}qT.mergeArguments=Cte;function Bte(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var qi=w(Cl=>{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.mergeDirective=Cl.mergeDirectives=void 0;var ck=Ae(),Ute=oa();function kte(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Mte(e,t){return t.some(({value:n})=>n===e.value)}function dk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=Kte(o,c,(l,p)=>{let f=l.value;return!f||!p.some(y=>y.value===f)})}else a.value=r.value}else n.push(r)}return n}function xte(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!lk(n,t)){let o=i[a];return n.arguments=dk(n.arguments,o.arguments),null}return n}).filter(Ute.isSome)}function qte(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=xte([...a],r);for(let l of o)if(kte(c,l)&&!lk(l,r)){let p=c.findIndex(y=>y.name.value===l.name.value),f=c[p];c[p].arguments=dk(l.arguments||[],f.arguments||[])}else c.push(l);return c}Cl.mergeDirectives=qte;function Vte(e,t){let n=(0,ck.print)(Y(x({},e),{description:void 0})),r=(0,ck.print)(Y(x({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${r} Received directive: - ${n}`)}function jte(e,t){return t?(Vte(e,t),Y(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!Mte(n,t.locations))]})):e}Cl.mergeDirective=jte;function Kte(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var gS=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.mergeEnumValues=void 0;var Gte=qi(),$te=oa();function Qte(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,Gte.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort($te.compareNodes),a}VT.mergeEnumValues=Qte});var _S=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.mergeEnum=void 0;var Yte=Ae(),Jte=qi(),Hte=gS();function zte(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,Jte.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Hte.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Yte.Kind.ENUM_TYPE_DEFINITION}):e}jT.mergeEnum=zte});var KT=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultStringComparator=qn.CompareVal=qn.printTypeNode=qn.isNonNullTypeNode=qn.isListTypeNode=qn.isWrappingTypeNode=qn.extractType=qn.isSourceTypes=qn.isStringTypes=void 0;var Pp=Ae();function Wte(e){return typeof e=="string"}qn.isStringTypes=Wte;function Xte(e){return e instanceof Pp.Source}qn.isSourceTypes=Xte;function Zte(e){let t=e;for(;t.kind===Pp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}qn.extractType=Zte;function ene(e){return e.kind!==Pp.Kind.NAMED_TYPE}qn.isWrappingTypeNode=ene;function pk(e){return e.kind===Pp.Kind.LIST_TYPE}qn.isListTypeNode=pk;function fk(e){return e.kind===Pp.Kind.NON_NULL_TYPE}qn.isNonNullTypeNode=fk;function vS(e){return pk(e)?`[${vS(e.type)}]`:fk(e)?`${vS(e.type)}!`:e.name.value}qn.printTypeNode=vS;var lc;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(lc=qn.CompareVal||(qn.CompareVal={}));function tne(e,t){return e==null&&t==null?lc.A_EQUALS_B:e==null?lc.A_SMALLER_THAN_B:t==null?lc.A_GREATER_THAN_B:et?lc.A_GREATER_THAN_B:lc.A_EQUALS_B}qn.defaultStringComparator=tne});var wp=w(GT=>{"use strict";m();T();N();Object.defineProperty(GT,"__esModule",{value:!0});GT.mergeFields=void 0;var Wr=KT(),nne=qi(),rne=oa(),ine=IS();function ane(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function sne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=ane(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let p=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||one(e,c,o,r==null?void 0:r.throwOnConflict);p.arguments=(0,ine.mergeArguments)(o.arguments||[],c.arguments||[],r),p.directives=(0,nne.mergeDirectives)(o.directives,c.directives,r,i),p.description=o.description||c.description,a[l]=p}else a.push(o)}if(r&&r.sort&&a.sort(rne.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}GT.mergeFields=sne;function one(e,t,n,r=!1){let i=(0,Wr.printTypeNode)(t.type),a=(0,Wr.printTypeNode)(n.type);if(i!==a){let o=(0,Wr.extractType)(t.type),c=(0,Wr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!Fp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Wr.isNonNullTypeNode)(n.type)&&!(0,Wr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Fp(e,t,n=!1){if(!(0,Wr.isWrappingTypeNode)(e)&&!(0,Wr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Wr.isNonNullTypeNode)(t)){let r=(0,Wr.isNonNullTypeNode)(e)?e.type:e;return Fp(r,t.type)}return(0,Wr.isNonNullTypeNode)(e)?Fp(t,e,n):(0,Wr.isListTypeNode)(e)?(0,Wr.isListTypeNode)(t)&&Fp(e.type,t.type)||(0,Wr.isNonNullTypeNode)(t)&&Fp(e,t.type):!1}});var SS=w($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeInputType=void 0;var une=Ae(),cne=wp(),lne=qi();function dne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,cne.mergeFields)(e,e.fields,t.fields,n),directives:(0,lne.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:une.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$T.mergeInputType=dne});var Lp=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeNamedTypeArray=void 0;var pne=oa();function fne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function mne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!fne(t,i))];return n&&n.sort&&r.sort(pne.compareNodes),r}QT.mergeNamedTypeArray=mne});var OS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeInterface=void 0;var Nne=Ae(),Tne=wp(),Ene=qi(),hne=Lp();function yne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Tne.mergeFields)(e,e.fields,t.fields,n),directives:(0,Ene.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,hne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:Nne.Kind.INTERFACE_TYPE_DEFINITION}):e}YT.mergeInterface=yne});var DS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeType=void 0;var Ine=Ae(),gne=wp(),_ne=qi(),vne=Lp();function Sne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,gne.mergeFields)(e,e.fields,t.fields,n),directives:(0,_ne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,vne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:Ine.Kind.OBJECT_TYPE_DEFINITION}):e}JT.mergeType=Sne});var bS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeScalar=void 0;var One=Ae(),Dne=qi();function bne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,Dne.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:One.Kind.SCALAR_TYPE_DEFINITION}):e}HT.mergeScalar=bne});var RS=w(zT=>{"use strict";m();T();N();Object.defineProperty(zT,"__esModule",{value:!0});zT.mergeUnion=void 0;var AS=Ae(),Ane=qi(),Rne=Lp();function Pne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,Ane.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?AS.Kind.UNION_TYPE_DEFINITION:AS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Rne.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:AS.Kind.UNION_TYPE_DEFINITION}):e}zT.mergeUnion=Pne});var PS=w(dc=>{"use strict";m();T();N();Object.defineProperty(dc,"__esModule",{value:!0});dc.mergeSchemaDefs=dc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Cp=Ae(),Fne=qi();dc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function wne(e=[],t=[]){let n=[];for(let r in dc.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function Lne(e,t,n,r){return t?{kind:e.kind===Cp.Kind.SCHEMA_DEFINITION||t.kind===Cp.Kind.SCHEMA_DEFINITION?Cp.Kind.SCHEMA_DEFINITION:Cp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,Fne.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:wne(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Cp.Kind.SCHEMA_DEFINITION}):e}dc.mergeSchemaDefs=Lne});var FS=w(ja=>{"use strict";m();T();N();Object.defineProperty(ja,"__esModule",{value:!0});ja.mergeGraphQLNodes=ja.isNamedDefinitionNode=ja.schemaDefSymbol=void 0;var Br=Ae(),Cne=DS(),Bne=_S(),Une=bS(),kne=RS(),Mne=SS(),xne=OS(),qne=qi(),Vne=PS(),jne=oa();ja.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function mk(e){return"name"in e}ja.isNamedDefinitionNode=mk;function Kne(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(mk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,jne.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case Br.Kind.OBJECT_TYPE_DEFINITION:case Br.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Cne.mergeType)(c,r[l],t,n);break;case Br.Kind.ENUM_TYPE_DEFINITION:case Br.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Bne.mergeEnum)(c,r[l],t,n);break;case Br.Kind.UNION_TYPE_DEFINITION:case Br.Kind.UNION_TYPE_EXTENSION:r[l]=(0,kne.mergeUnion)(c,r[l],t,n);break;case Br.Kind.SCALAR_TYPE_DEFINITION:case Br.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Une.mergeScalar)(c,r[l],t,n);break;case Br.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Br.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Mne.mergeInputType)(c,r[l],t,n);break;case Br.Kind.INTERFACE_TYPE_DEFINITION:case Br.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,xne.mergeInterface)(c,r[l],t,n);break;case Br.Kind.DIRECTIVE_DEFINITION:r[l]=(0,qne.mergeDirective)(c,r[l]);break}}else(c.kind===Br.Kind.SCHEMA_DEFINITION||c.kind===Br.Kind.SCHEMA_EXTENSION)&&(r[ja.schemaDefSymbol]=(0,Vne.mergeSchemaDefs)(c,r[ja.schemaDefSymbol],t));return r}ja.mergeGraphQLNodes=Kne});var Ek=w(Ml=>{"use strict";m();T();N();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.mergeGraphQLTypes=Ml.mergeTypeDefs=void 0;var Vi=Ae(),wS=KT(),Bl=FS(),kl=oa(),Nk=PS();function Gne(e,t){(0,kl.resetComments)();let n={kind:Vi.Kind.DOCUMENT,definitions:Tk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,kl.printWithComments)(n):r=n,(0,kl.resetComments)(),r}Ml.mergeTypeDefs=Gne;function Ul(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Ul(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Ul(a,t,n,r,i);else if((0,Vi.isSchema)(e)){let a=(0,kl.getDocumentNodeFromSchema)(e,t);Ul(a.definitions,t,n,r,i)}else if((0,wS.isStringTypes)(e)||(0,wS.isSourceTypes)(e)){let a=(0,Vi.parse)(e,t);Ul(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Vi.isDefinitionNode)(e))e.kind===Vi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,kl.isDocumentNode)(e))Ul(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function Tk(e,t){var c,l,p;(0,kl.resetComments)();let{allDirectives:n,allNodes:r}=Ul(e,t),i=(0,Bl.mergeGraphQLNodes)(n,t),a=(0,Bl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=a[Bl.schemaDefSymbol]||{kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=f.operationTypes;for(let g in Nk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(P=>P.operation===g)){let P=Nk.DEFAULT_OPERATION_TYPE_NAME_MAP[g],k=a[P];k!=null&&k.name!=null&&y.push({kind:Vi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Vi.Kind.NAMED_TYPE,name:k.name},operation:g})}((c=f==null?void 0:f.operationTypes)==null?void 0:c.length)!=null&&f.operationTypes.length>0&&(a[Bl.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((p=(l=a[Bl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&p.length)&&(a[Bl.schemaDefSymbol]={kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Vi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Vi.Kind.NAMED_TYPE,name:{kind:Vi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:wS.defaultStringComparator;o.sort((y,g)=>{var v,P;return f((v=y.name)==null?void 0:v.value,(P=g.name)==null?void 0:P.value)})}return o}Ml.mergeGraphQLTypes=Tk});var hk=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});var Xr=(_v(),sm(gv));Xr.__exportStar(IS(),Dr);Xr.__exportStar(qi(),Dr);Xr.__exportStar(gS(),Dr);Xr.__exportStar(_S(),Dr);Xr.__exportStar(wp(),Dr);Xr.__exportStar(SS(),Dr);Xr.__exportStar(OS(),Dr);Xr.__exportStar(Lp(),Dr);Xr.__exportStar(FS(),Dr);Xr.__exportStar(Ek(),Dr);Xr.__exportStar(bS(),Dr);Xr.__exportStar(DS(),Dr);Xr.__exportStar(RS(),Dr);Xr.__exportStar(KT(),Dr)});var Ik=w(pu=>{"use strict";m();T();N();Object.defineProperty(pu,"__esModule",{value:!0});pu.applyExtensions=pu.mergeExtensions=pu.extractExtensionsFromSchema=void 0;var yk=oa(),$ne=oa();Object.defineProperty(pu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return $ne.extractExtensionsFromSchema}});function Qne(e){return(0,yk.mergeDeep)(e)}pu.mergeExtensions=Qne;function xl(e,t){e&&(e.extensions=(0,yk.mergeDeep)([e.extensions||{},t||{}]))}function Yne(e,t){xl(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(xl(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){xl(c,o.extensions);for(let[l,p]of Object.entries(o.arguments))xl(c.args.find(f=>f.name===l),p)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];xl(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);xl(c,o)}}}return e}pu.applyExtensions=Yne});var WT=w(Bp=>{"use strict";m();T();N();Object.defineProperty(Bp,"__esModule",{value:!0});var LS=(_v(),sm(gv));LS.__exportStar(ok(),Bp);LS.__exportStar(hk(),Bp);LS.__exportStar(Ik(),Bp)});var ia=w(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=zne;z.incompatibleInputValueDefaultValueTypeError=Wne;z.incompatibleMergedTypesError=Xne;z.incompatibleInputValueDefaultValuesError=Zne;z.incompatibleSharedEnumError=ere;z.invalidSubgraphNamesError=tre;z.duplicateDirectiveDefinitionError=nre;z.duplicateEnumValueDefinitionError=rre;z.duplicateFieldDefinitionError=ire;z.duplicateInputFieldDefinitionError=are;z.duplicateImplementedInterfaceError=sre;z.duplicateUnionMemberDefinitionError=ore;z.duplicateTypeDefinitionError=ure;z.duplicateOperationTypeDefinitionError=cre;z.noBaseDefinitionForExtensionError=lre;z.noBaseScalarDefinitionError=dre;z.noDefinedUnionMembersError=pre;z.noDefinedEnumValuesError=fre;z.operationDefinitionError=mre;z.invalidFieldShareabilityError=Nre;z.undefinedDirectiveError=Tre;z.undefinedTypeError=Ere;z.invalidRepeatedDirectiveErrorMessage=hre;z.invalidDirectiveError=yre;z.invalidRepeatedFederatedDirectiveErrorMessage=Ire;z.invalidDirectiveLocationErrorMessage=gre;z.undefinedRequiredArgumentsErrorMessage=_re;z.unexpectedDirectiveArgumentErrorMessage=vre;z.duplicateDirectiveArgumentDefinitionsErrorMessage=Sre;z.invalidArgumentValueErrorMessage=Ore;z.maximumTypeNestingExceededError=Dre;z.unexpectedKindFatalError=bre;z.incompatibleParentKindFatalError=Are;z.unexpectedEdgeFatalError=Rre;z.incompatibleParentKindMergeError=Pre;z.fieldTypeMergeFatalError=Fre;z.unexpectedTypeNodeKindFatalError=wre;z.invalidKeyFatalError=Lre;z.unexpectedParentKindForChildError=Cre;z.subgraphValidationError=Bre;z.invalidSubgraphNameErrorMessage=Ure;z.invalidOperationTypeDefinitionError=kre;z.invalidRootTypeDefinitionError=Mre;z.subgraphInvalidSyntaxError=xre;z.invalidInterfaceImplementationError=qre;z.invalidRequiredInputValueError=Vre;z.duplicateArgumentsError=jre;z.noQueryRootTypeError=Kre;z.expectedEntityError=Gre;z.abstractTypeInKeyFieldSetErrorMessage=$re;z.unknownTypeInFieldSetErrorMessage=Qre;z.invalidSelectionSetErrorMessage=Yre;z.invalidSelectionSetDefinitionErrorMessage=Jre;z.undefinedFieldInFieldSetErrorMessage=Hre;z.unparsableFieldSetErrorMessage=zre;z.unparsableFieldSetSelectionErrorMessage=Wre;z.undefinedCompositeOutputTypeError=Xre;z.unexpectedArgumentErrorMessage=Zre;z.argumentsInKeyFieldSetErrorMessage=eie;z.invalidProvidesOrRequiresDirectivesError=tie;z.duplicateFieldInFieldSetErrorMessage=nie;z.invalidConfigurationDataErrorMessage=rie;z.incompatibleTypeWithProvidesErrorMessage=iie;z.invalidInlineFragmentTypeErrorMessage=aie;z.inlineFragmentWithoutTypeConditionErrorMessage=sie;z.unknownInlineFragmentTypeConditionErrorMessage=oie;z.invalidInlineFragmentTypeConditionTypeErrorMessage=uie;z.invalidInlineFragmentTypeConditionErrorMessage=cie;z.invalidSelectionOnUnionErrorMessage=lie;z.duplicateOverriddenFieldErrorMessage=die;z.duplicateOverriddenFieldsError=pie;z.noFieldDefinitionsError=fie;z.noInputValueDefinitionsError=mie;z.allChildDefinitionsAreInaccessibleError=Nie;z.equivalentSourceAndTargetOverrideErrorMessage=Tie;z.undefinedEntityInterfaceImplementationsError=Eie;z.orScopesLimitError=hie;z.invalidEventDrivenGraphError=yie;z.invalidRootTypeFieldEventsDirectivesErrorMessage=Iie;z.invalidEventDrivenMutationResponseTypeErrorMessage=gie;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=_ie;z.invalidNatsStreamInputFieldsErrorMessage=vie;z.invalidKeyFieldSetsEventDrivenErrorMessage=Sie;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=Oie;z.nonKeyFieldNamesEventDrivenErrorMessage=Die;z.nonEntityObjectExtensionsEventDrivenErrorMessage=bie;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=Aie;z.invalidEdfsDirectiveName=Rie;z.invalidImplementedTypeError=Pie;z.selfImplementationError=Fie;z.invalidEventSubjectErrorMessage=wie;z.invalidEventSubjectsErrorMessage=Lie;z.invalidEventSubjectsItemErrorMessage=Cie;z.invalidEventSubjectsArgumentErrorMessage=Bie;z.undefinedEventSubjectsArgumentErrorMessage=Uie;z.invalidEventDirectiveError=kie;z.invalidReferencesOfInaccessibleTypeError=Mie;z.inaccessibleRequiredInputValueError=xie;z.invalidUnionMemberTypeError=qie;z.invalidRootTypeError=Vie;z.invalidSubscriptionFilterLocationError=jie;z.invalidSubscriptionFilterDirectiveError=Kie;z.subscriptionFilterNamedTypeErrorMessage=Gie;z.subscriptionFilterConditionDepthExceededErrorMessage=$ie;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Qie;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Yie;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Jie;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Hie;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=zie;z.invalidInputFieldTypeErrorMessage=Wie;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=Xie;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Zie;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=eae;z.unknownFieldSubgraphNameError=tae;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=nae;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=rae;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=iae;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=aae;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=sae;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=oae;z.unresolvablePathError=uae;z.allExternalFieldInstancesError=cae;z.externalInterfaceFieldsError=lae;z.nonExternalConditionalFieldError=dae;z.incompatibleFederatedFieldNamedTypeError=pae;z.unknownNamedTypeErrorMessage=Dk;z.unknownNamedTypeError=fae;z.unknownFieldDataError=mae;z.unexpectedNonCompositeOutputTypeError=Nae;z.invalidExternalDirectiveError=Tae;z.configureDescriptionNoDescriptionError=Eae;z.configureDescriptionPropagationError=hae;z.duplicateDirectiveDefinitionArgumentErrorMessage=yae;z.duplicateDirectiveDefinitionLocationErrorMessage=Iae;z.invalidDirectiveDefinitionLocationErrorMessage=gae;z.invalidDirectiveDefinitionError=_ae;z.fieldAlreadyProvidedErrorMessage=vae;z.invalidInterfaceObjectImplementationDefinitionsError=Sae;z.invalidNamedTypeError=Oae;var gk=Ae(),We=ur(),_k=ml(),ql=Jr(),Jne=El(),Hne=WT();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function zne(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". + ${n}`)}function jte(e,t){return t?(Vte(e,t),Y(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!Mte(n,t.locations))]})):e}Cl.mergeDirective=jte;function Kte(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var gS=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.mergeEnumValues=void 0;var Gte=qi(),$te=oa();function Qte(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,Gte.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort($te.compareNodes),a}VT.mergeEnumValues=Qte});var _S=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.mergeEnum=void 0;var Yte=Ae(),Jte=qi(),Hte=gS();function zte(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,Jte.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Hte.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Yte.Kind.ENUM_TYPE_DEFINITION}):e}jT.mergeEnum=zte});var KT=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultStringComparator=qn.CompareVal=qn.printTypeNode=qn.isNonNullTypeNode=qn.isListTypeNode=qn.isWrappingTypeNode=qn.extractType=qn.isSourceTypes=qn.isStringTypes=void 0;var Pp=Ae();function Wte(e){return typeof e=="string"}qn.isStringTypes=Wte;function Xte(e){return e instanceof Pp.Source}qn.isSourceTypes=Xte;function Zte(e){let t=e;for(;t.kind===Pp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}qn.extractType=Zte;function ene(e){return e.kind!==Pp.Kind.NAMED_TYPE}qn.isWrappingTypeNode=ene;function pk(e){return e.kind===Pp.Kind.LIST_TYPE}qn.isListTypeNode=pk;function fk(e){return e.kind===Pp.Kind.NON_NULL_TYPE}qn.isNonNullTypeNode=fk;function vS(e){return pk(e)?`[${vS(e.type)}]`:fk(e)?`${vS(e.type)}!`:e.name.value}qn.printTypeNode=vS;var lc;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(lc=qn.CompareVal||(qn.CompareVal={}));function tne(e,t){return e==null&&t==null?lc.A_EQUALS_B:e==null?lc.A_SMALLER_THAN_B:t==null?lc.A_GREATER_THAN_B:et?lc.A_GREATER_THAN_B:lc.A_EQUALS_B}qn.defaultStringComparator=tne});var wp=w(GT=>{"use strict";m();T();N();Object.defineProperty(GT,"__esModule",{value:!0});GT.mergeFields=void 0;var Wr=KT(),nne=qi(),rne=oa(),ine=IS();function ane(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function sne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=ane(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let p=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||one(e,c,o,r==null?void 0:r.throwOnConflict);p.arguments=(0,ine.mergeArguments)(o.arguments||[],c.arguments||[],r),p.directives=(0,nne.mergeDirectives)(o.directives,c.directives,r,i),p.description=o.description||c.description,a[l]=p}else a.push(o)}if(r&&r.sort&&a.sort(rne.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}GT.mergeFields=sne;function one(e,t,n,r=!1){let i=(0,Wr.printTypeNode)(t.type),a=(0,Wr.printTypeNode)(n.type);if(i!==a){let o=(0,Wr.extractType)(t.type),c=(0,Wr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!Fp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Wr.isNonNullTypeNode)(n.type)&&!(0,Wr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Fp(e,t,n=!1){if(!(0,Wr.isWrappingTypeNode)(e)&&!(0,Wr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Wr.isNonNullTypeNode)(t)){let r=(0,Wr.isNonNullTypeNode)(e)?e.type:e;return Fp(r,t.type)}return(0,Wr.isNonNullTypeNode)(e)?Fp(t,e,n):(0,Wr.isListTypeNode)(e)?(0,Wr.isListTypeNode)(t)&&Fp(e.type,t.type)||(0,Wr.isNonNullTypeNode)(t)&&Fp(e,t.type):!1}});var SS=w($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeInputType=void 0;var une=Ae(),cne=wp(),lne=qi();function dne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,cne.mergeFields)(e,e.fields,t.fields,n),directives:(0,lne.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:une.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$T.mergeInputType=dne});var Lp=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeNamedTypeArray=void 0;var pne=oa();function fne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function mne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!fne(t,i))];return n&&n.sort&&r.sort(pne.compareNodes),r}QT.mergeNamedTypeArray=mne});var OS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeInterface=void 0;var Nne=Ae(),Tne=wp(),Ene=qi(),hne=Lp();function yne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Tne.mergeFields)(e,e.fields,t.fields,n),directives:(0,Ene.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,hne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:Nne.Kind.INTERFACE_TYPE_DEFINITION}):e}YT.mergeInterface=yne});var DS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeType=void 0;var Ine=Ae(),gne=wp(),_ne=qi(),vne=Lp();function Sne(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,gne.mergeFields)(e,e.fields,t.fields,n),directives:(0,_ne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,vne.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Y(x({},e),{kind:Ine.Kind.OBJECT_TYPE_DEFINITION}):e}JT.mergeType=Sne});var bS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeScalar=void 0;var One=Ae(),Dne=qi();function bne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,Dne.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:One.Kind.SCALAR_TYPE_DEFINITION}):e}HT.mergeScalar=bne});var RS=w(zT=>{"use strict";m();T();N();Object.defineProperty(zT,"__esModule",{value:!0});zT.mergeUnion=void 0;var AS=Ae(),Ane=qi(),Rne=Lp();function Pne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,Ane.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?AS.Kind.UNION_TYPE_DEFINITION:AS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Rne.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:AS.Kind.UNION_TYPE_DEFINITION}):e}zT.mergeUnion=Pne});var PS=w(dc=>{"use strict";m();T();N();Object.defineProperty(dc,"__esModule",{value:!0});dc.mergeSchemaDefs=dc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Cp=Ae(),Fne=qi();dc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function wne(e=[],t=[]){let n=[];for(let r in dc.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function Lne(e,t,n,r){return t?{kind:e.kind===Cp.Kind.SCHEMA_DEFINITION||t.kind===Cp.Kind.SCHEMA_DEFINITION?Cp.Kind.SCHEMA_DEFINITION:Cp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,Fne.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:wne(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Cp.Kind.SCHEMA_DEFINITION}):e}dc.mergeSchemaDefs=Lne});var FS=w(ja=>{"use strict";m();T();N();Object.defineProperty(ja,"__esModule",{value:!0});ja.mergeGraphQLNodes=ja.isNamedDefinitionNode=ja.schemaDefSymbol=void 0;var Br=Ae(),Cne=DS(),Bne=_S(),Une=bS(),kne=RS(),Mne=SS(),xne=OS(),qne=qi(),Vne=PS(),jne=oa();ja.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function mk(e){return"name"in e}ja.isNamedDefinitionNode=mk;function Kne(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(mk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,jne.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case Br.Kind.OBJECT_TYPE_DEFINITION:case Br.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Cne.mergeType)(c,r[l],t,n);break;case Br.Kind.ENUM_TYPE_DEFINITION:case Br.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Bne.mergeEnum)(c,r[l],t,n);break;case Br.Kind.UNION_TYPE_DEFINITION:case Br.Kind.UNION_TYPE_EXTENSION:r[l]=(0,kne.mergeUnion)(c,r[l],t,n);break;case Br.Kind.SCALAR_TYPE_DEFINITION:case Br.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Une.mergeScalar)(c,r[l],t,n);break;case Br.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Br.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Mne.mergeInputType)(c,r[l],t,n);break;case Br.Kind.INTERFACE_TYPE_DEFINITION:case Br.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,xne.mergeInterface)(c,r[l],t,n);break;case Br.Kind.DIRECTIVE_DEFINITION:r[l]=(0,qne.mergeDirective)(c,r[l]);break}}else(c.kind===Br.Kind.SCHEMA_DEFINITION||c.kind===Br.Kind.SCHEMA_EXTENSION)&&(r[ja.schemaDefSymbol]=(0,Vne.mergeSchemaDefs)(c,r[ja.schemaDefSymbol],t));return r}ja.mergeGraphQLNodes=Kne});var Ek=w(Ml=>{"use strict";m();T();N();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.mergeGraphQLTypes=Ml.mergeTypeDefs=void 0;var Vi=Ae(),wS=KT(),Bl=FS(),kl=oa(),Nk=PS();function Gne(e,t){(0,kl.resetComments)();let n={kind:Vi.Kind.DOCUMENT,definitions:Tk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,kl.printWithComments)(n):r=n,(0,kl.resetComments)(),r}Ml.mergeTypeDefs=Gne;function Ul(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Ul(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Ul(a,t,n,r,i);else if((0,Vi.isSchema)(e)){let a=(0,kl.getDocumentNodeFromSchema)(e,t);Ul(a.definitions,t,n,r,i)}else if((0,wS.isStringTypes)(e)||(0,wS.isSourceTypes)(e)){let a=(0,Vi.parse)(e,t);Ul(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Vi.isDefinitionNode)(e))e.kind===Vi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,kl.isDocumentNode)(e))Ul(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function Tk(e,t){var c,l,p;(0,kl.resetComments)();let{allDirectives:n,allNodes:r}=Ul(e,t),i=(0,Bl.mergeGraphQLNodes)(n,t),a=(0,Bl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=a[Bl.schemaDefSymbol]||{kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=f.operationTypes;for(let g in Nk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(F=>F.operation===g)){let F=Nk.DEFAULT_OPERATION_TYPE_NAME_MAP[g],k=a[F];k!=null&&k.name!=null&&y.push({kind:Vi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Vi.Kind.NAMED_TYPE,name:k.name},operation:g})}((c=f==null?void 0:f.operationTypes)==null?void 0:c.length)!=null&&f.operationTypes.length>0&&(a[Bl.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((p=(l=a[Bl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&p.length)&&(a[Bl.schemaDefSymbol]={kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Vi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Vi.Kind.NAMED_TYPE,name:{kind:Vi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:wS.defaultStringComparator;o.sort((y,g)=>{var v,F;return f((v=y.name)==null?void 0:v.value,(F=g.name)==null?void 0:F.value)})}return o}Ml.mergeGraphQLTypes=Tk});var hk=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});var Xr=(_v(),sm(gv));Xr.__exportStar(IS(),Dr);Xr.__exportStar(qi(),Dr);Xr.__exportStar(gS(),Dr);Xr.__exportStar(_S(),Dr);Xr.__exportStar(wp(),Dr);Xr.__exportStar(SS(),Dr);Xr.__exportStar(OS(),Dr);Xr.__exportStar(Lp(),Dr);Xr.__exportStar(FS(),Dr);Xr.__exportStar(Ek(),Dr);Xr.__exportStar(bS(),Dr);Xr.__exportStar(DS(),Dr);Xr.__exportStar(RS(),Dr);Xr.__exportStar(KT(),Dr)});var Ik=w(pu=>{"use strict";m();T();N();Object.defineProperty(pu,"__esModule",{value:!0});pu.applyExtensions=pu.mergeExtensions=pu.extractExtensionsFromSchema=void 0;var yk=oa(),$ne=oa();Object.defineProperty(pu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return $ne.extractExtensionsFromSchema}});function Qne(e){return(0,yk.mergeDeep)(e)}pu.mergeExtensions=Qne;function xl(e,t){e&&(e.extensions=(0,yk.mergeDeep)([e.extensions||{},t||{}]))}function Yne(e,t){xl(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(xl(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){xl(c,o.extensions);for(let[l,p]of Object.entries(o.arguments))xl(c.args.find(f=>f.name===l),p)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];xl(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);xl(c,o)}}}return e}pu.applyExtensions=Yne});var WT=w(Bp=>{"use strict";m();T();N();Object.defineProperty(Bp,"__esModule",{value:!0});var LS=(_v(),sm(gv));LS.__exportStar(ok(),Bp);LS.__exportStar(hk(),Bp);LS.__exportStar(Ik(),Bp)});var ia=w(W=>{"use strict";m();T();N();Object.defineProperty(W,"__esModule",{value:!0});W.invalidEventProviderIdErrorMessage=W.invalidNatsStreamConfigurationDefinitionErrorMessage=W.invalidEdfsPublishResultObjectErrorMessage=W.invalidNatsStreamInputErrorMessage=W.inlineFragmentInFieldSetErrorMessage=W.inaccessibleQueryRootTypeError=W.subgraphValidationFailureError=W.minimumSubgraphRequirementError=void 0;W.multipleNamedTypeDefinitionError=zne;W.incompatibleInputValueDefaultValueTypeError=Wne;W.incompatibleMergedTypesError=Xne;W.incompatibleInputValueDefaultValuesError=Zne;W.incompatibleSharedEnumError=ere;W.invalidSubgraphNamesError=tre;W.duplicateDirectiveDefinitionError=nre;W.duplicateEnumValueDefinitionError=rre;W.duplicateFieldDefinitionError=ire;W.duplicateInputFieldDefinitionError=are;W.duplicateImplementedInterfaceError=sre;W.duplicateUnionMemberDefinitionError=ore;W.duplicateTypeDefinitionError=ure;W.duplicateOperationTypeDefinitionError=cre;W.noBaseDefinitionForExtensionError=lre;W.noBaseScalarDefinitionError=dre;W.noDefinedUnionMembersError=pre;W.noDefinedEnumValuesError=fre;W.operationDefinitionError=mre;W.invalidFieldShareabilityError=Nre;W.undefinedDirectiveError=Tre;W.undefinedTypeError=Ere;W.invalidRepeatedDirectiveErrorMessage=hre;W.invalidDirectiveError=yre;W.invalidRepeatedFederatedDirectiveErrorMessage=Ire;W.invalidDirectiveLocationErrorMessage=gre;W.undefinedRequiredArgumentsErrorMessage=_re;W.unexpectedDirectiveArgumentErrorMessage=vre;W.duplicateDirectiveArgumentDefinitionsErrorMessage=Sre;W.invalidArgumentValueErrorMessage=Ore;W.maximumTypeNestingExceededError=Dre;W.unexpectedKindFatalError=bre;W.incompatibleParentKindFatalError=Are;W.unexpectedEdgeFatalError=Rre;W.incompatibleParentKindMergeError=Pre;W.fieldTypeMergeFatalError=Fre;W.unexpectedTypeNodeKindFatalError=wre;W.invalidKeyFatalError=Lre;W.unexpectedParentKindForChildError=Cre;W.subgraphValidationError=Bre;W.invalidSubgraphNameErrorMessage=Ure;W.invalidOperationTypeDefinitionError=kre;W.invalidRootTypeDefinitionError=Mre;W.subgraphInvalidSyntaxError=xre;W.invalidInterfaceImplementationError=qre;W.invalidRequiredInputValueError=Vre;W.duplicateArgumentsError=jre;W.noQueryRootTypeError=Kre;W.expectedEntityError=Gre;W.abstractTypeInKeyFieldSetErrorMessage=$re;W.unknownTypeInFieldSetErrorMessage=Qre;W.invalidSelectionSetErrorMessage=Yre;W.invalidSelectionSetDefinitionErrorMessage=Jre;W.undefinedFieldInFieldSetErrorMessage=Hre;W.unparsableFieldSetErrorMessage=zre;W.unparsableFieldSetSelectionErrorMessage=Wre;W.undefinedCompositeOutputTypeError=Xre;W.unexpectedArgumentErrorMessage=Zre;W.argumentsInKeyFieldSetErrorMessage=eie;W.invalidProvidesOrRequiresDirectivesError=tie;W.duplicateFieldInFieldSetErrorMessage=nie;W.invalidConfigurationDataErrorMessage=rie;W.incompatibleTypeWithProvidesErrorMessage=iie;W.invalidInlineFragmentTypeErrorMessage=aie;W.inlineFragmentWithoutTypeConditionErrorMessage=sie;W.unknownInlineFragmentTypeConditionErrorMessage=oie;W.invalidInlineFragmentTypeConditionTypeErrorMessage=uie;W.invalidInlineFragmentTypeConditionErrorMessage=cie;W.invalidSelectionOnUnionErrorMessage=lie;W.duplicateOverriddenFieldErrorMessage=die;W.duplicateOverriddenFieldsError=pie;W.noFieldDefinitionsError=fie;W.noInputValueDefinitionsError=mie;W.allChildDefinitionsAreInaccessibleError=Nie;W.equivalentSourceAndTargetOverrideErrorMessage=Tie;W.undefinedEntityInterfaceImplementationsError=Eie;W.orScopesLimitError=hie;W.invalidEventDrivenGraphError=yie;W.invalidRootTypeFieldEventsDirectivesErrorMessage=Iie;W.invalidEventDrivenMutationResponseTypeErrorMessage=gie;W.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=_ie;W.invalidNatsStreamInputFieldsErrorMessage=vie;W.invalidKeyFieldSetsEventDrivenErrorMessage=Sie;W.nonExternalKeyFieldNamesEventDrivenErrorMessage=Oie;W.nonKeyFieldNamesEventDrivenErrorMessage=Die;W.nonEntityObjectExtensionsEventDrivenErrorMessage=bie;W.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=Aie;W.invalidEdfsDirectiveName=Rie;W.invalidImplementedTypeError=Pie;W.selfImplementationError=Fie;W.invalidEventSubjectErrorMessage=wie;W.invalidEventSubjectsErrorMessage=Lie;W.invalidEventSubjectsItemErrorMessage=Cie;W.invalidEventSubjectsArgumentErrorMessage=Bie;W.undefinedEventSubjectsArgumentErrorMessage=Uie;W.invalidEventDirectiveError=kie;W.invalidReferencesOfInaccessibleTypeError=Mie;W.inaccessibleRequiredInputValueError=xie;W.invalidUnionMemberTypeError=qie;W.invalidRootTypeError=Vie;W.invalidSubscriptionFilterLocationError=jie;W.invalidSubscriptionFilterDirectiveError=Kie;W.subscriptionFilterNamedTypeErrorMessage=Gie;W.subscriptionFilterConditionDepthExceededErrorMessage=$ie;W.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Qie;W.subscriptionFilterConditionInvalidInputFieldErrorMessage=Yie;W.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Jie;W.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Hie;W.subscriptionFilterArrayConditionInvalidLengthErrorMessage=zie;W.invalidInputFieldTypeErrorMessage=Wie;W.subscriptionFieldConditionInvalidInputFieldErrorMessage=Xie;W.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Zie;W.subscriptionFieldConditionEmptyValuesArrayErrorMessage=eae;W.unknownFieldSubgraphNameError=tae;W.invalidSubscriptionFieldConditionFieldPathErrorMessage=nae;W.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=rae;W.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=iae;W.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=aae;W.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=sae;W.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=oae;W.unresolvablePathError=uae;W.allExternalFieldInstancesError=cae;W.externalInterfaceFieldsError=lae;W.nonExternalConditionalFieldError=dae;W.incompatibleFederatedFieldNamedTypeError=pae;W.unknownNamedTypeErrorMessage=Dk;W.unknownNamedTypeError=fae;W.unknownFieldDataError=mae;W.unexpectedNonCompositeOutputTypeError=Nae;W.invalidExternalDirectiveError=Tae;W.configureDescriptionNoDescriptionError=Eae;W.configureDescriptionPropagationError=hae;W.duplicateDirectiveDefinitionArgumentErrorMessage=yae;W.duplicateDirectiveDefinitionLocationErrorMessage=Iae;W.invalidDirectiveDefinitionLocationErrorMessage=gae;W.invalidDirectiveDefinitionError=_ae;W.fieldAlreadyProvidedErrorMessage=vae;W.invalidInterfaceObjectImplementationDefinitionsError=Sae;W.invalidNamedTypeError=Oae;var gk=Ae(),We=ur(),_k=ml(),ql=Jr(),Jne=El(),Hne=WT();W.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function zne(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". However, there must be only one type named "${e}".`)}function Wne(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function Xne({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":We.FIELD} "${t}": Expected type "${n}" but received "${e}".`)}function Zne(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: @@ -245,7 +245,7 @@ If an instance defines a default value, that default value must be consistently `)+r.join(` `))}function Ire(e,t){return new Error(`The definition for the directive "@${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function gre(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function _re(e,t,n){let r=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". However,`;return n.length<1?r+" no arguments are defined on this instance.":r+" the following required argument"+(n.length>1?"s are":" is")+' not defined on this instance: "'+n.join(We.QUOTATION_JOIN)+'".'}function vre(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(We.QUOTATION_JOIN)+'".'}function Sre(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(We.QUOTATION_JOIN)+'"'}function Ore(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function Dre(e){return new Error(` The type defined at path "${e}" has more than ${_k.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function bre(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function Are(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,ql.kindToNodeType)(t)} but received "${(0,ql.kindToNodeType)(n)}".`)}function Rre(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: - " ${t.join(We.QUOTATION_JOIN)}".`)}function Pre(e,t,n){return new Error(` When merging types, expected "${e}" to be type "${t}" but received "${n}".`)}function Fre(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}function wre(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function Lre(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function Cre(e,t,n,r,i){return new Error(` Expected "${e}" to be type ${t} but received "${n}" when handling child "${r}" of type "${i}".`)}function Bre(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: + " ${t.join(We.QUOTATION_JOIN)}".`)}function Pre(e,t,n){return new Error(` When merging types, expected "${e}" to be type "${t}" but received "${n}".`)}function Fre(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}function wre(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function Lre(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}W.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function Cre(e,t,n,r,i){return new Error(` Expected "${e}" to be type ${t} but received "${n}" when handling child "${r}" of type "${i}".`)}function Bre(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: `+t.map(n=>n.message).join(` `))}function Ure(e,t){return`The ${(0,ql.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function kre(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. If explicitly defined, each operation type must be a unique and valid Object type.`)}function Mre(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. @@ -273,7 +273,7 @@ For federation, it is only possible to use the default root types names ("Mutati For example: type Query { dummy: String - }`)}z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Gre(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function $re(e,t,n,r){return` The following field set is invalid: + }`)}W.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Gre(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}W.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function $re(e,t,n,r){return` The following field set is invalid: "${e}" This is because "${t}" returns "${n}", which is type "${r}". Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function Qre(e,t,n){return` The following field set is invalid: @@ -319,7 +319,7 @@ For federation, it is only possible to use the default root types names ("Mutati "${e}" This is because of the selection set corresponding to the `+XT(t,n,We.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function die(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(We.QUOTATION_JOIN)+'".'}function pie(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(We.QUOTATION_JOIN)+`". `)}function fie(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function mie(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function Nie(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function Tie(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function Eie(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity interface must also define each and every entity object that implements that entity interface. -`;for(let[r,i]of e){let o=(0,ql.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entities`+(o.size>1?"s":"")+`: +`;for(let[r,i]of e){let o=(0,ql.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entit`+(o.size>1?"ies":"y")+`: "`+Array.from(o).join(We.QUOTATION_JOIN)+`" However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": `;for(let{subgraphName:c,concreteTypeNames:l}of i){let p=(0,ql.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${c}" does not define the following implementations: "`+p.join(We.QUOTATION_JOIN)+`" @@ -345,12 +345,12 @@ Moreover, only fields that compose part of an entity's (composite) key and are d `;return t}function _ie(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. Consequently, the following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The root field path "${n}", which returns the invalid type "${r}" -`;return t}z.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: +`;return t}W.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: input edfs__NatsStreamConfiguration { consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function vie(e,t,n,r){let i=z.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(We.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(We.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(We.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(We.QUOTATION_JOIN)+'".'),i+=` + }`;function vie(e,t,n,r){let i=W.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(We.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(We.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(We.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(We.QUOTATION_JOIN)+'".'),i+=` However, the provided input was invalid for the following reason`+(a.length>1?"s":"")+`: `+a.join(` `),i}function Sie(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: @@ -364,17 +364,17 @@ Consequently, the following object extension definition`+(e.length>1?"s are":" i "`+e.join(We.QUOTATION_JOIN)+`" `}function Aie(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: "`+e.join(We.QUOTATION_JOIN)+`" -`}z.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: +`}W.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: type edfs__PublishResult { success: Boolean! - }`;z.invalidNatsStreamConfigurationDefinitionErrorMessage=` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must instead have the following definition: + }`;W.invalidNatsStreamConfigurationDefinitionErrorMessage=` The input object "edfs__NatsStreamConfiguration" that was defined in the Event Driven graph is invalid and must instead have the following definition: input edfs__NatsStreamConfiguration { consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! }`;function Rie(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function Pie(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: `;for(let[r,i]of t)n+=` "${r}", which is type "${i}" -`;return new Error(n)}function Fie(e){return new Error(` The interface "${e}" must not implement itself.`)}function wie(e){return`The "${e}" argument must be string with a minimum length of one.`}function Lie(e){return`The "${e}" argument must be a list of strings.`}function Cie(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Bie(e){return`An argument template references the invalid argument "${e}".`}function Uie(e){return`An argument template references the undefined argument "${e}".`}z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function kie(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: +`;return new Error(n)}function Fie(e){return new Error(` The interface "${e}" must not implement itself.`)}function wie(e){return`The "${e}" argument must be string with a minimum length of one.`}function Lie(e){return`The "${e}" argument must be a list of strings.`}function Cie(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Bie(e){return`An argument template references the invalid argument "${e}".`}function Uie(e){return`An argument template references the undefined argument "${e}".`}W.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function kie(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: `+n.join(` `))}function Mie(e,t,n){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: "`+n.join(We.QUOTATION_JOIN)+`" @@ -423,7 +423,7 @@ This should never happen. Please report this issue on GitHub.`)}function Tae(e){ A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function yae(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: "`+e.join(We.QUOTATION_JOIN)+'"'}function Iae(e){return`- The location "${e}" is defined multiple times.`}function gae(e){return`- "${e}" is not a valid directive location.`}function _ae(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(We.LITERAL_NEW_LINE)+'"')}function vae(e,t,n){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${n}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function Sae(e,t,n){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(n.length>1?"s":"")+` of "${e}": - "`+n.join(We.QUOTATION_JOIN)+'"')}function Oae({data:e,namedTypeData:t,nodeType:n}){let r=(0,Jne.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Hne.printTypeNode)(e.type)+`; however, ${(0,ql.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}});var Ak=w(bk=>{"use strict";m();T();N();Object.defineProperty(bk,"__esModule",{value:!0})});var Up=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ji.SUBSCRIPTION_FILTER_INPUT_NAMES=ji.STREAM_CONFIGURATION_FIELD_NAMES=ji.EVENT_DIRECTIVE_NAMES=ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var cn=ur();ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([cn.ARGUMENT_DEFINITION_UPPER,cn.ENUM_UPPER,cn.ENUM_VALUE_UPPER,cn.FIELD_DEFINITION_UPPER,cn.INPUT_FIELD_DEFINITION_UPPER,cn.INPUT_OBJECT_UPPER,cn.INTERFACE_UPPER,cn.OBJECT_UPPER,cn.SCALAR_UPPER,cn.SCHEMA_UPPER,cn.UNION_UPPER]);ji.EVENT_DIRECTIVE_NAMES=new Set([cn.EDFS_KAFKA_PUBLISH,cn.EDFS_KAFKA_SUBSCRIBE,cn.EDFS_NATS_PUBLISH,cn.EDFS_NATS_REQUEST,cn.EDFS_NATS_SUBSCRIBE,cn.EDFS_REDIS_PUBLISH,cn.EDFS_REDIS_SUBSCRIBE]);ji.STREAM_CONFIGURATION_FIELD_NAMES=new Set([cn.CONSUMER_INACTIVE_THRESHOLD,cn.CONSUMER_NAME,cn.STREAM_NAME]);ji.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([cn.AND_UPPER,cn.IN_UPPER,cn.NOT_UPPER,cn.OR_UPPER]);ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([cn.AND_UPPER,cn.OR_UPPER])});var Ki=w((BS,Rk)=>{"use strict";m();T();N();var kp=function(e){return e&&e.Math===Math&&e};Rk.exports=kp(typeof globalThis=="object"&&globalThis)||kp(typeof window=="object"&&window)||kp(typeof self=="object"&&self)||kp(typeof global=="object"&&global)||kp(typeof BS=="object"&&BS)||function(){return this}()||Function("return this")()});var Is=w((eAe,Pk)=>{"use strict";m();T();N();Pk.exports=function(e){try{return!!e()}catch(t){return!0}}});var fu=w((iAe,Fk)=>{"use strict";m();T();N();var Dae=Is();Fk.exports=!Dae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var US=w((uAe,wk)=>{"use strict";m();T();N();var bae=Is();wk.exports=!bae(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var pc=w((pAe,Lk)=>{"use strict";m();T();N();var Aae=US(),ZT=Function.prototype.call;Lk.exports=Aae?ZT.bind(ZT):function(){return ZT.apply(ZT,arguments)}});var kk=w(Uk=>{"use strict";m();T();N();var Ck={}.propertyIsEnumerable,Bk=Object.getOwnPropertyDescriptor,Rae=Bk&&!Ck.call({1:2},1);Uk.f=Rae?function(t){var n=Bk(this,t);return!!n&&n.enumerable}:Ck});var kS=w((IAe,Mk)=>{"use strict";m();T();N();Mk.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var mi=w((SAe,Vk)=>{"use strict";m();T();N();var xk=US(),qk=Function.prototype,MS=qk.call,Pae=xk&&qk.bind.bind(MS,MS);Vk.exports=xk?Pae:function(e){return function(){return MS.apply(e,arguments)}}});var Gk=w((AAe,Kk)=>{"use strict";m();T();N();var jk=mi(),Fae=jk({}.toString),wae=jk("".slice);Kk.exports=function(e){return wae(Fae(e),8,-1)}});var Qk=w((wAe,$k)=>{"use strict";m();T();N();var Lae=mi(),Cae=Is(),Bae=Gk(),xS=Object,Uae=Lae("".split);$k.exports=Cae(function(){return!xS("z").propertyIsEnumerable(0)})?function(e){return Bae(e)==="String"?Uae(e,""):xS(e)}:xS});var qS=w((UAe,Yk)=>{"use strict";m();T();N();Yk.exports=function(e){return e==null}});var VS=w((qAe,Jk)=>{"use strict";m();T();N();var kae=qS(),Mae=TypeError;Jk.exports=function(e){if(kae(e))throw new Mae("Can't call method on "+e);return e}});var eE=w((GAe,Hk)=>{"use strict";m();T();N();var xae=Qk(),qae=VS();Hk.exports=function(e){return xae(qae(e))}});var ua=w((JAe,zk)=>{"use strict";m();T();N();var jS=typeof document=="object"&&document.all;zk.exports=typeof jS=="undefined"&&jS!==void 0?function(e){return typeof e=="function"||e===jS}:function(e){return typeof e=="function"}});var Vl=w((XAe,Wk)=>{"use strict";m();T();N();var Vae=ua();Wk.exports=function(e){return typeof e=="object"?e!==null:Vae(e)}});var tE=w((nRe,Xk)=>{"use strict";m();T();N();var KS=Ki(),jae=ua(),Kae=function(e){return jae(e)?e:void 0};Xk.exports=function(e,t){return arguments.length<2?Kae(KS[e]):KS[e]&&KS[e][t]}});var eM=w((sRe,Zk)=>{"use strict";m();T();N();var Gae=mi();Zk.exports=Gae({}.isPrototypeOf)});var iM=w((lRe,rM)=>{"use strict";m();T();N();var $ae=Ki(),tM=$ae.navigator,nM=tM&&tM.userAgent;rM.exports=nM?String(nM):""});var dM=w((mRe,lM)=>{"use strict";m();T();N();var cM=Ki(),GS=iM(),aM=cM.process,sM=cM.Deno,oM=aM&&aM.versions||sM&&sM.version,uM=oM&&oM.v8,ca,nE;uM&&(ca=uM.split("."),nE=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1]));!nE&&GS&&(ca=GS.match(/Edge\/(\d+)/),(!ca||ca[1]>=74)&&(ca=GS.match(/Chrome\/(\d+)/),ca&&(nE=+ca[1])));lM.exports=nE});var $S=w((hRe,fM)=>{"use strict";m();T();N();var pM=dM(),Qae=Is(),Yae=Ki(),Jae=Yae.String;fM.exports=!!Object.getOwnPropertySymbols&&!Qae(function(){var e=Symbol("symbol detection");return!Jae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pM&&pM<41})});var QS=w((_Re,mM)=>{"use strict";m();T();N();var Hae=$S();mM.exports=Hae&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var YS=w((DRe,NM)=>{"use strict";m();T();N();var zae=tE(),Wae=ua(),Xae=eM(),Zae=QS(),ese=Object;NM.exports=Zae?function(e){return typeof e=="symbol"}:function(e){var t=zae("Symbol");return Wae(t)&&Xae(t.prototype,ese(e))}});var EM=w((PRe,TM)=>{"use strict";m();T();N();var tse=String;TM.exports=function(e){try{return tse(e)}catch(t){return"Object"}}});var rE=w((CRe,hM)=>{"use strict";m();T();N();var nse=ua(),rse=EM(),ise=TypeError;hM.exports=function(e){if(nse(e))return e;throw new ise(rse(e)+" is not a function")}});var JS=w((MRe,yM)=>{"use strict";m();T();N();var ase=rE(),sse=qS();yM.exports=function(e,t){var n=e[t];return sse(n)?void 0:ase(n)}});var gM=w((jRe,IM)=>{"use strict";m();T();N();var HS=pc(),zS=ua(),WS=Vl(),ose=TypeError;IM.exports=function(e,t){var n,r;if(t==="string"&&zS(n=e.toString)&&!WS(r=HS(n,e))||zS(n=e.valueOf)&&!WS(r=HS(n,e))||t!=="string"&&zS(n=e.toString)&&!WS(r=HS(n,e)))return r;throw new ose("Can't convert object to primitive value")}});var vM=w((QRe,_M)=>{"use strict";m();T();N();_M.exports=!1});var iE=w((zRe,OM)=>{"use strict";m();T();N();var SM=Ki(),use=Object.defineProperty;OM.exports=function(e,t){try{use(SM,e,{value:t,configurable:!0,writable:!0})}catch(n){SM[e]=t}return t}});var aE=w((ePe,AM)=>{"use strict";m();T();N();var cse=vM(),lse=Ki(),dse=iE(),DM="__core-js_shared__",bM=AM.exports=lse[DM]||dse(DM,{});(bM.versions||(bM.versions=[])).push({version:"3.41.0",mode:cse?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var XS=w((iPe,PM)=>{"use strict";m();T();N();var RM=aE();PM.exports=function(e,t){return RM[e]||(RM[e]=t||{})}});var wM=w((uPe,FM)=>{"use strict";m();T();N();var pse=VS(),fse=Object;FM.exports=function(e){return fse(pse(e))}});var mu=w((pPe,LM)=>{"use strict";m();T();N();var mse=mi(),Nse=wM(),Tse=mse({}.hasOwnProperty);LM.exports=Object.hasOwn||function(t,n){return Tse(Nse(t),n)}});var ZS=w((TPe,CM)=>{"use strict";m();T();N();var Ese=mi(),hse=0,yse=Math.random(),Ise=Ese(1 .toString);CM.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ise(++hse+yse,36)}});var kM=w((IPe,UM)=>{"use strict";m();T();N();var gse=Ki(),_se=XS(),BM=mu(),vse=ZS(),Sse=$S(),Ose=QS(),jl=gse.Symbol,eO=_se("wks"),Dse=Ose?jl.for||jl:jl&&jl.withoutSetter||vse;UM.exports=function(e){return BM(eO,e)||(eO[e]=Sse&&BM(jl,e)?jl[e]:Dse("Symbol."+e)),eO[e]}});var VM=w((SPe,qM)=>{"use strict";m();T();N();var bse=pc(),MM=Vl(),xM=YS(),Ase=JS(),Rse=gM(),Pse=kM(),Fse=TypeError,wse=Pse("toPrimitive");qM.exports=function(e,t){if(!MM(e)||xM(e))return e;var n=Ase(e,wse),r;if(n){if(t===void 0&&(t="default"),r=bse(n,e,t),!MM(r)||xM(r))return r;throw new Fse("Can't convert object to primitive value")}return t===void 0&&(t="number"),Rse(e,t)}});var tO=w((APe,jM)=>{"use strict";m();T();N();var Lse=VM(),Cse=YS();jM.exports=function(e){var t=Lse(e,"string");return Cse(t)?t:t+""}});var $M=w((wPe,GM)=>{"use strict";m();T();N();var Bse=Ki(),KM=Vl(),nO=Bse.document,Use=KM(nO)&&KM(nO.createElement);GM.exports=function(e){return Use?nO.createElement(e):{}}});var rO=w((UPe,QM)=>{"use strict";m();T();N();var kse=fu(),Mse=Is(),xse=$M();QM.exports=!kse&&!Mse(function(){return Object.defineProperty(xse("div"),"a",{get:function(){return 7}}).a!==7})});var iO=w(JM=>{"use strict";m();T();N();var qse=fu(),Vse=pc(),jse=kk(),Kse=kS(),Gse=eE(),$se=tO(),Qse=mu(),Yse=rO(),YM=Object.getOwnPropertyDescriptor;JM.f=qse?YM:function(t,n){if(t=Gse(t),n=$se(n),Yse)try{return YM(t,n)}catch(r){}if(Qse(t,n))return Kse(!Vse(jse.f,t,n),t[n])}});var zM=w((GPe,HM)=>{"use strict";m();T();N();var Jse=fu(),Hse=Is();HM.exports=Jse&&Hse(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Mp=w((JPe,WM)=>{"use strict";m();T();N();var zse=Vl(),Wse=String,Xse=TypeError;WM.exports=function(e){if(zse(e))return e;throw new Xse(Wse(e)+" is not an object")}});var oE=w(ZM=>{"use strict";m();T();N();var Zse=fu(),eoe=rO(),toe=zM(),sE=Mp(),XM=tO(),noe=TypeError,aO=Object.defineProperty,roe=Object.getOwnPropertyDescriptor,sO="enumerable",oO="configurable",uO="writable";ZM.f=Zse?toe?function(t,n,r){if(sE(t),n=XM(n),sE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&uO in r&&!r[uO]){var i=roe(t,n);i&&i[uO]&&(t[n]=r.value,r={configurable:oO in r?r[oO]:i[oO],enumerable:sO in r?r[sO]:i[sO],writable:!1})}return aO(t,n,r)}:aO:function(t,n,r){if(sE(t),n=XM(n),sE(r),eoe)try{return aO(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new noe("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var cO=w((nFe,ex)=>{"use strict";m();T();N();var ioe=fu(),aoe=oE(),soe=kS();ex.exports=ioe?function(e,t,n){return aoe.f(e,t,soe(1,n))}:function(e,t,n){return e[t]=n,e}});var rx=w((sFe,nx)=>{"use strict";m();T();N();var lO=fu(),ooe=mu(),tx=Function.prototype,uoe=lO&&Object.getOwnPropertyDescriptor,dO=ooe(tx,"name"),coe=dO&&function(){}.name==="something",loe=dO&&(!lO||lO&&uoe(tx,"name").configurable);nx.exports={EXISTS:dO,PROPER:coe,CONFIGURABLE:loe}});var ax=w((lFe,ix)=>{"use strict";m();T();N();var doe=mi(),poe=ua(),pO=aE(),foe=doe(Function.toString);poe(pO.inspectSource)||(pO.inspectSource=function(e){return foe(e)});ix.exports=pO.inspectSource});var ux=w((mFe,ox)=>{"use strict";m();T();N();var moe=Ki(),Noe=ua(),sx=moe.WeakMap;ox.exports=Noe(sx)&&/native code/.test(String(sx))});var dx=w((hFe,lx)=>{"use strict";m();T();N();var Toe=XS(),Eoe=ZS(),cx=Toe("keys");lx.exports=function(e){return cx[e]||(cx[e]=Eoe(e))}});var fO=w((_Fe,px)=>{"use strict";m();T();N();px.exports={}});var Tx=w((DFe,Nx)=>{"use strict";m();T();N();var hoe=ux(),mx=Ki(),yoe=Vl(),Ioe=cO(),mO=mu(),NO=aE(),goe=dx(),_oe=fO(),fx="Object already initialized",TO=mx.TypeError,voe=mx.WeakMap,uE,xp,cE,Soe=function(e){return cE(e)?xp(e):uE(e,{})},Ooe=function(e){return function(t){var n;if(!yoe(t)||(n=xp(t)).type!==e)throw new TO("Incompatible receiver, "+e+" required");return n}};hoe||NO.state?(la=NO.state||(NO.state=new voe),la.get=la.get,la.has=la.has,la.set=la.set,uE=function(e,t){if(la.has(e))throw new TO(fx);return t.facade=e,la.set(e,t),t},xp=function(e){return la.get(e)||{}},cE=function(e){return la.has(e)}):(fc=goe("state"),_oe[fc]=!0,uE=function(e,t){if(mO(e,fc))throw new TO(fx);return t.facade=e,Ioe(e,fc,t),t},xp=function(e){return mO(e,fc)?e[fc]:{}},cE=function(e){return mO(e,fc)});var la,fc;Nx.exports={set:uE,get:xp,has:cE,enforce:Soe,getterFor:Ooe}});var Ix=w((PFe,yx)=>{"use strict";m();T();N();var hO=mi(),Doe=Is(),boe=ua(),lE=mu(),EO=fu(),Aoe=rx().CONFIGURABLE,Roe=ax(),hx=Tx(),Poe=hx.enforce,Foe=hx.get,Ex=String,dE=Object.defineProperty,woe=hO("".slice),Loe=hO("".replace),Coe=hO([].join),Boe=EO&&!Doe(function(){return dE(function(){},"length",{value:8}).length!==8}),Uoe=String(String).split("String"),koe=yx.exports=function(e,t,n){woe(Ex(t),0,7)==="Symbol("&&(t="["+Loe(Ex(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lE(e,"name")||Aoe&&e.name!==t)&&(EO?dE(e,"name",{value:t,configurable:!0}):e.name=t),Boe&&n&&lE(n,"arity")&&e.length!==n.arity&&dE(e,"length",{value:n.arity});try{n&&lE(n,"constructor")&&n.constructor?EO&&dE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Poe(e);return lE(r,"source")||(r.source=Coe(Uoe,typeof t=="string"?t:"")),e};Function.prototype.toString=koe(function(){return boe(this)&&Foe(this).source||Roe(this)},"toString")});var _x=w((CFe,gx)=>{"use strict";m();T();N();var Moe=ua(),xoe=oE(),qoe=Ix(),Voe=iE();gx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Moe(n)&&qoe(n,a,r),r.global)i?e[t]=n:Voe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:xoe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Sx=w((MFe,vx)=>{"use strict";m();T();N();var joe=Math.ceil,Koe=Math.floor;vx.exports=Math.trunc||function(t){var n=+t;return(n>0?Koe:joe)(n)}});var pE=w((jFe,Ox)=>{"use strict";m();T();N();var Goe=Sx();Ox.exports=function(e){var t=+e;return t!==t||t===0?0:Goe(t)}});var bx=w((QFe,Dx)=>{"use strict";m();T();N();var $oe=pE(),Qoe=Math.max,Yoe=Math.min;Dx.exports=function(e,t){var n=$oe(e);return n<0?Qoe(n+t,0):Yoe(n,t)}});var Rx=w((zFe,Ax)=>{"use strict";m();T();N();var Joe=pE(),Hoe=Math.min;Ax.exports=function(e){var t=Joe(e);return t>0?Hoe(t,9007199254740991):0}});var Fx=w((ewe,Px)=>{"use strict";m();T();N();var zoe=Rx();Px.exports=function(e){return zoe(e.length)}});var Cx=w((iwe,Lx)=>{"use strict";m();T();N();var Woe=eE(),Xoe=bx(),Zoe=Fx(),wx=function(e){return function(t,n,r){var i=Woe(t),a=Zoe(i);if(a===0)return!e&&-1;var o=Xoe(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};Lx.exports={includes:wx(!0),indexOf:wx(!1)}});var kx=w((uwe,Ux)=>{"use strict";m();T();N();var eue=mi(),yO=mu(),tue=eE(),nue=Cx().indexOf,rue=fO(),Bx=eue([].push);Ux.exports=function(e,t){var n=tue(e),r=0,i=[],a;for(a in n)!yO(rue,a)&&yO(n,a)&&Bx(i,a);for(;t.length>r;)yO(n,a=t[r++])&&(~nue(i,a)||Bx(i,a));return i}});var xx=w((pwe,Mx)=>{"use strict";m();T();N();Mx.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vx=w(qx=>{"use strict";m();T();N();var iue=kx(),aue=xx(),sue=aue.concat("length","prototype");qx.f=Object.getOwnPropertyNames||function(t){return iue(t,sue)}});var Kx=w(jx=>{"use strict";m();T();N();jx.f=Object.getOwnPropertySymbols});var $x=w((Swe,Gx)=>{"use strict";m();T();N();var oue=tE(),uue=mi(),cue=Vx(),lue=Kx(),due=Mp(),pue=uue([].concat);Gx.exports=oue("Reflect","ownKeys")||function(t){var n=cue.f(due(t)),r=lue.f;return r?pue(n,r(t)):n}});var Jx=w((Awe,Yx)=>{"use strict";m();T();N();var Qx=mu(),fue=$x(),mue=iO(),Nue=oE();Yx.exports=function(e,t,n){for(var r=fue(t),i=Nue.f,a=mue.f,o=0;o{"use strict";m();T();N();var Tue=Is(),Eue=ua(),hue=/#|\.prototype\./,qp=function(e,t){var n=Iue[yue(e)];return n===_ue?!0:n===gue?!1:Eue(t)?Tue(t):!!t},yue=qp.normalize=function(e){return String(e).replace(hue,".").toLowerCase()},Iue=qp.data={},gue=qp.NATIVE="N",_ue=qp.POLYFILL="P";Hx.exports=qp});var IO=w((Uwe,Wx)=>{"use strict";m();T();N();var fE=Ki(),vue=iO().f,Sue=cO(),Oue=_x(),Due=iE(),bue=Jx(),Aue=zx();Wx.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,p,f;if(r?o=fE:i?o=fE[n]||Due(n,{}):o=fE[n]&&fE[n].prototype,o)for(c in t){if(p=t[c],e.dontCallGetSet?(f=vue(o,c),l=f&&f.value):l=o[c],a=Aue(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof p==typeof l)continue;bue(p,l)}(e.sham||l&&l.sham)&&Sue(p,"sham",!0),Oue(o,c,p,e)}}});var Vp=w((qwe,Xx)=>{"use strict";m();T();N();var gO=mi(),mE=Set.prototype;Xx.exports={Set,add:gO(mE.add),has:gO(mE.has),remove:gO(mE.delete),proto:mE}});var _O=w((Gwe,Zx)=>{"use strict";m();T();N();var Rue=Vp().has;Zx.exports=function(e){return Rue(e),e}});var tq=w((Jwe,eq)=>{"use strict";m();T();N();var Pue=mi(),Fue=rE();eq.exports=function(e,t,n){try{return Pue(Fue(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var vO=w((Xwe,nq)=>{"use strict";m();T();N();var wue=tq(),Lue=Vp();nq.exports=wue(Lue.proto,"size","get")||function(e){return e.size}});var SO=w((nLe,rq)=>{"use strict";m();T();N();var Cue=pc();rq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Cue(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var cq=w((sLe,uq)=>{"use strict";m();T();N();var iq=mi(),Bue=SO(),aq=Vp(),Uue=aq.Set,sq=aq.proto,kue=iq(sq.forEach),oq=iq(sq.keys),Mue=oq(new Uue).next;uq.exports=function(e,t,n){return n?Bue({iterator:oq(e),next:Mue},t):kue(e,t)}});var dq=w((lLe,lq)=>{"use strict";m();T();N();lq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OO=w((mLe,Eq)=>{"use strict";m();T();N();var pq=rE(),Nq=Mp(),fq=pc(),xue=pE(),que=dq(),mq="Invalid size",Vue=RangeError,jue=TypeError,Kue=Math.max,Tq=function(e,t){this.set=e,this.size=Kue(t,0),this.has=pq(e.has),this.keys=pq(e.keys)};Tq.prototype={getIterator:function(){return que(Nq(fq(this.keys,this.set)))},includes:function(e){return fq(this.has,this.set,e)}};Eq.exports=function(e){Nq(e);var t=+e.size;if(t!==t)throw new jue(mq);var n=xue(t);if(n<0)throw new Vue(mq);return new Tq(e,n)}});var yq=w((hLe,hq)=>{"use strict";m();T();N();var Gue=_O(),$ue=vO(),Que=cq(),Yue=OO();hq.exports=function(t){var n=Gue(this),r=Yue(t);return $ue(n)>r.size?!1:Que(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var DO=w((_Le,_q)=>{"use strict";m();T();N();var Jue=tE(),Iq=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},gq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};_q.exports=function(e,t){var n=Jue("Set");try{new n()[e](Iq(0));try{return new n()[e](Iq(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](gq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](gq(1/0)))}}}catch(i){return!1}}});var vq=w(()=>{"use strict";m();T();N();var Hue=IO(),zue=yq(),Wue=DO(),Xue=!Wue("isSubsetOf",function(e){return e});Hue({target:"Set",proto:!0,real:!0,forced:Xue},{isSubsetOf:zue})});var Sq=w(()=>{"use strict";m();T();N();vq()});var bq=w((ULe,Dq)=>{"use strict";m();T();N();var Zue=pc(),Oq=Mp(),ece=JS();Dq.exports=function(e,t,n){var r,i;Oq(e);try{if(r=ece(e,"return"),!r){if(t==="throw")throw n;return n}r=Zue(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Oq(r),n}});var Rq=w((qLe,Aq)=>{"use strict";m();T();N();var tce=_O(),nce=Vp().has,rce=vO(),ice=OO(),ace=SO(),sce=bq();Aq.exports=function(t){var n=tce(this),r=ice(t);if(rce(n){"use strict";m();T();N();var oce=IO(),uce=Rq(),cce=DO(),lce=!cce("isSupersetOf",function(e){return!e});oce({target:"Set",proto:!0,real:!0,forced:lce},{isSupersetOf:uce})});var Fq=w(()=>{"use strict";m();T();N();Pq()});var jp=w(Cn=>{"use strict";m();T();N();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.subtractSet=dce;Cn.mapToArrayOfValues=pce;Cn.kindToConvertedTypeString=fce;Cn.fieldDatasToSimpleFieldDatas=mce;Cn.isNodeLeaf=Nce;Cn.newEntityInterfaceFederationData=Tce;Cn.upsertEntityInterfaceFederationData=Ece;Cn.upsertEntityData=yce;Cn.updateEntityData=wq;Cn.newFieldAuthorizationData=Ice;Cn.newAuthorizationData=gce;Cn.addScopes=bO;Cn.mergeRequiredScopesByAND=EE;Cn.mergeRequiredScopesByOR=AO;Cn.upsertFieldAuthorizationData=Lq;Cn.upsertAuthorizationData=Sce;Cn.upsertAuthorizationConfiguration=Oce;Cn.isNodeKindObject=Dce;Cn.isInterfaceDefinitionData=bce;Cn.isObjectDefinitionData=Ace;var en=Ae(),Zr=ur(),NE=Jr(),TE=Es();Sq();Fq();function dce(e,t){for(let n of e)t.delete(n)}function pce(e){let t=[];for(let n of e.values())t.push(n);return t}function fce(e){switch(e){case en.Kind.BOOLEAN:return Zr.BOOLEAN_SCALAR;case en.Kind.ENUM:case en.Kind.ENUM_TYPE_DEFINITION:case en.Kind.ENUM_TYPE_EXTENSION:return Zr.ENUM;case en.Kind.ENUM_VALUE_DEFINITION:return Zr.ENUM_VALUE;case en.Kind.FIELD_DEFINITION:return Zr.FIELD;case en.Kind.FLOAT:return Zr.FLOAT_SCALAR;case en.Kind.INPUT_OBJECT_TYPE_DEFINITION:case en.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Zr.INPUT_OBJECT;case en.Kind.INPUT_VALUE_DEFINITION:return Zr.INPUT_VALUE;case en.Kind.INT:return Zr.INT_SCALAR;case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_EXTENSION:return Zr.INTERFACE;case en.Kind.NULL:return Zr.NULL;case en.Kind.OBJECT:case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.OBJECT_TYPE_EXTENSION:return Zr.OBJECT;case en.Kind.STRING:return Zr.STRING_SCALAR;case en.Kind.SCALAR_TYPE_DEFINITION:case en.Kind.SCALAR_TYPE_EXTENSION:return Zr.SCALAR;case en.Kind.UNION_TYPE_DEFINITION:case en.Kind.UNION_TYPE_EXTENSION:return Zr.UNION;default:return e}}function mce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function Nce(e){if(!e)return!0;switch(e){case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function Tce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Ece(e,t,n){(0,NE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,NE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,NE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphs.add(n)}function hce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function yce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?wq({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,hce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function wq({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function Ice(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function gce(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function bO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function EE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,NE.addSets)(r,i);bO(n,a)}return n}function AO(e,t){for(let n of t)bO(e,n);return e.length<=TE.MAX_OR_SCOPES}function Lq(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!AO(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>TE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>TE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=EE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=EE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,Cq(t)),!0)}function _ce(e){let t=new Map;for(let[n,r]of e)t.set(n,Cq(r));return t}function Cq(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function vce(e){return{fieldAuthDataByFieldName:_ce(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Sce(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,vce(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!AO(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>TE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=EE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)Lq(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function Oce(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function Dce(e){return e===en.Kind.OBJECT_TYPE_DEFINITION||e===en.Kind.OBJECT_TYPE_EXTENSION}function bce(e){return e.kind===en.Kind.INTERFACE_TYPE_DEFINITION}function Ace(e){return e?e.kind===en.Kind.OBJECT_TYPE_DEFINITION:!1}});var RO=w(Je=>{"use strict";m();T();N();Object.defineProperty(Je,"__esModule",{value:!0});Je.TAG_DEFINITION_DATA=Je.SUBSCRIPTION_FILTER_DEFINITION_DATA=Je.SHAREABLE_DEFINITION_DATA=Je.SPECIFIED_BY_DEFINITION_DATA=Je.REQUIRES_SCOPES_DEFINITION_DATA=Je.REQUIRES_DEFINITION_DATA=Je.PROVIDES_DEFINITION_DATA=Je.LINK_DEFINITION_DATA=Je.KEY_DEFINITION_DATA=Je.OVERRIDE_DEFINITION_DATA=Je.REDIS_SUBSCRIBE_DEFINITION_DATA=Je.REDIS_PUBLISH_DEFINITION_DATA=Je.NATS_SUBSCRIBE_DEFINITION_DATA=Je.NATS_REQUEST_DEFINITION_DATA=Je.NATS_PUBLISH_DEFINITION_DATA=Je.KAFKA_SUBSCRIBE_DEFINITION_DATA=Je.KAFKA_PUBLISH_DEFINITION_DATA=Je.INTERFACE_OBJECT_DEFINITION_DATA=Je.INACCESSIBLE_DEFINITION_DATA=Je.EXTERNAL_DEFINITION_DATA=Je.EXTENDS_DEFINITION_DATA=Je.DEPRECATED_DEFINITION_DATA=Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Je.COMPOSE_DIRECTIVE_DEFINITION_DATA=Je.AUTHENTICATED_DEFINITION_DATA=void 0;var rt=Es(),da=Yr(),ln=Ae(),q=ur();Je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:rt.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:rt.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:rt.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:rt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};Je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:ln.Kind.STRING,value:ln.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:rt.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};Je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:rt.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:rt.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:rt.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:rt.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:rt.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};Je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:rt.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};Je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:rt.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:rt.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,da.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:rt.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};Je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:rt.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};Je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:rt.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};Je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FROM,{name:q.FROM,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:rt.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};Je.KEY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:rt.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};Je.LINK_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,da.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:ln.Kind.LIST_TYPE,type:(0,da.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:rt.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};Je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:rt.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:rt.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:rt.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};Je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:rt.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};Je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:rt.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:rt.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};Je.TAG_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:rt.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var Kp=w(pa=>{"use strict";m();T();N();Object.defineProperty(pa,"__esModule",{value:!0});pa.newFieldSetData=Rce;pa.extractFieldSetValue=Pce;pa.getNormalizedFieldSet=Fce;pa.getInitialFieldCoordsPath=wce;pa.validateKeyFieldSets=Lce;pa.getConditionalFieldSetDirectiveName=Cce;pa.isNodeQuery=Bce;pa.validateArgumentTemplateReferences=Uce;pa.initializeDirectiveDefinitionDatas=kce;var er=Ae(),Bq=Yr(),br=ia(),Uq=Es(),PO=su(),mn=RO(),Mt=ur(),Nu=Jr();function Rce(){return{provides:new Map,requires:new Map}}function Pce(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==Mt.FIELDS||i.value.kind!==er.Kind.STRING||t.set(e,i.value.value)}function Fce(e){return(0,er.print)((0,Bq.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function wce(e,t){return e?[t]:[]}function Lce(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),p=0;for(let[f,{documentNode:y,isUnresolvable:g,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!g)),p+=1;let P=[],k=[t],K=[],G=[],Z=new Set,W=-1,Te=!0,fe="";if((0,er.visit)(y,{Argument:{enter(we){return P.push((0,br.unexpectedArgumentErrorMessage)(v,`${k[W].name}.${fe}`,we.name.value)),er.BREAK}},Field:{enter(we){let Ve=k[W],it=Ve.name;if(Te){let Dn=`${it}.${fe}`,Vt=Ve.fieldDataByName.get(fe);if(!Vt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,Dn,fe)),er.BREAK;let dn=(0,PO.getTypeNodeNamedTypeName)(Vt.node.type),Ar=e.parentDefinitionDataByTypeName.get(dn),Rr=Ar?Ar.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetErrorMessage)(v,[Dn],dn,(0,Nu.kindToNodeType)(Rr))),er.BREAK}let ee=we.name.value,ve=`${it}.${ee}`;fe=ee;let gt=Ve.fieldDataByName.get(ee);if(!gt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,ee)),er.BREAK;if(gt.argumentDataByName.size)return P.push((0,br.argumentsInKeyFieldSetErrorMessage)(v,ve)),er.BREAK;if(K[W].has(ee))return P.push((0,br.duplicateFieldInFieldSetErrorMessage)(v,ve)),er.BREAK;(0,Nu.getValueOrDefault)((0,Nu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,ve,()=>new Map),i,()=>new Set).add(f),G.push(ee),gt.isShareableBySubgraphName.set(e.subgraphName,!0),K[W].add(ee),(0,Nu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,it,()=>new Set).add(ee);let zt=(0,PO.getTypeNodeNamedTypeName)(gt.node.type);if(Uq.BASE_SCALARS.has(zt)){Z.add(G.join(Mt.PERIOD)),G.pop();return}let Wt=e.parentDefinitionDataByTypeName.get(zt);if(!Wt)return P.push((0,br.unknownTypeInFieldSetErrorMessage)(v,ve,zt)),er.BREAK;if(Wt.kind===er.Kind.OBJECT_TYPE_DEFINITION){Te=!0,k.push(Wt);return}if((0,Bq.isKindAbstract)(Wt.kind))return P.push((0,br.abstractTypeInKeyFieldSetErrorMessage)(v,ve,zt,(0,Nu.kindToNodeType)(Wt.kind))),er.BREAK;Z.add(G.join(Mt.PERIOD)),G.pop()}},InlineFragment:{enter(){return P.push(br.inlineFragmentInFieldSetErrorMessage),er.BREAK}},SelectionSet:{enter(){if(!Te){let we=k[W],it=`${we.name}.${fe}`,ee=we.fieldDataByName.get(fe);if(!ee)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,fe)),er.BREAK;let ve=(0,PO.getTypeNodeNamedTypeName)(ee.node.type),gt=e.parentDefinitionDataByTypeName.get(ve),zt=gt?gt.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetDefinitionErrorMessage)(v,[it],ve,(0,Nu.kindToNodeType)(zt))),er.BREAK}if(W+=1,Te=!1,W<0||W>=k.length)return P.push((0,br.unparsableFieldSetSelectionErrorMessage)(v,fe)),er.BREAK;K.push(new Set)},leave(){if(Te){let Ve=k[W].name,it=k[W+1],ee=`${Ve}.${fe}`;P.push((0,br.invalidSelectionSetErrorMessage)(v,[ee],it.name,(0,Nu.kindToNodeType)(it.kind))),Te=!1}W-=1,k.pop(),K.pop()}}}),P.length>0){e.errors.push((0,br.invalidDirectiveError)(Mt.KEY,i,(0,Nu.numberToOrdinal)(p),P));continue}a.push(x({fieldName:"",selectionSet:f},g?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!g&&(c==null||c.addTargetSubgraphByFieldSet(f,e.subgraphName),o.push(Z))}if(a.length>0)return a}function Cce(e){return e?Mt.PROVIDES:Mt.REQUIRES}function Bce(e,t){return e===Mt.QUERY||t===er.OperationTypeNode.QUERY}function Uce(e,t,n){let r=e.matchAll(Uq.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,br.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,br.invalidEventSubjectsArgumentErrorMessage)(o))}function kce(){return new Map([[Mt.AUTHENTICATED,mn.AUTHENTICATED_DEFINITION_DATA],[Mt.COMPOSE_DIRECTIVE,mn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Mt.CONFIGURE_DESCRIPTION,mn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Mt.CONFIGURE_CHILD_DESCRIPTIONS,mn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Mt.DEPRECATED,mn.DEPRECATED_DEFINITION_DATA],[Mt.EDFS_KAFKA_PUBLISH,mn.KAFKA_PUBLISH_DEFINITION_DATA],[Mt.EDFS_KAFKA_SUBSCRIBE,mn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_NATS_PUBLISH,mn.NATS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_NATS_REQUEST,mn.NATS_REQUEST_DEFINITION_DATA],[Mt.EDFS_NATS_SUBSCRIBE,mn.NATS_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_REDIS_PUBLISH,mn.REDIS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_REDIS_SUBSCRIBE,mn.REDIS_SUBSCRIBE_DEFINITION_DATA],[Mt.EXTENDS,mn.EXTENDS_DEFINITION_DATA],[Mt.EXTERNAL,mn.EXTERNAL_DEFINITION_DATA],[Mt.INACCESSIBLE,mn.INACCESSIBLE_DEFINITION_DATA],[Mt.INTERFACE_OBJECT,mn.INTERFACE_OBJECT_DEFINITION_DATA],[Mt.KEY,mn.KEY_DEFINITION_DATA],[Mt.LINK,mn.LINK_DEFINITION_DATA],[Mt.OVERRIDE,mn.OVERRIDE_DEFINITION_DATA],[Mt.PROVIDES,mn.PROVIDES_DEFINITION_DATA],[Mt.REQUIRES,mn.REQUIRES_DEFINITION_DATA],[Mt.REQUIRES_SCOPES,mn.REQUIRES_SCOPES_DEFINITION_DATA],[Mt.SHAREABLE,mn.SHAREABLE_DEFINITION_DATA],[Mt.SPECIFIED_BY,mn.SPECIFIED_BY_DEFINITION_DATA],[Mt.SUBSCRIPTION_FILTER,mn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Mt.TAG,mn.TAG_DEFINITION_DATA]])}});var wO=w(FO=>{"use strict";m();T();N();Object.defineProperty(FO,"__esModule",{value:!0});FO.recordSubgraphName=Mce;function Mce(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var CO=w(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.Warning=void 0;var LO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};hE.Warning=LO});var IE=w(fa=>{"use strict";m();T();N();Object.defineProperty(fa,"__esModule",{value:!0});fa.invalidOverrideTargetSubgraphNameWarning=xce;fa.externalInterfaceFieldsWarning=qce;fa.nonExternalConditionalFieldWarning=Vce;fa.unimplementedInterfaceOutputTypeWarning=jce;fa.invalidExternalFieldWarning=Kce;fa.requiresDefinedOnNonEntityFieldWarning=Gce;fa.consumerInactiveThresholdInvalidValueWarning=$ce;fa.externalEntityExtensionKeyFieldWarning=Qce;fa.fieldAlreadyProvidedWarning=Yce;var gs=CO(),BO=ur();function xce(e,t,n,r){return new gs.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(BO.QUOTATION_JOIN)+`". + "`+n.join(We.QUOTATION_JOIN)+'"')}function Oae({data:e,namedTypeData:t,nodeType:n}){let r=(0,Jne.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Hne.printTypeNode)(e.type)+`; however, ${(0,ql.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}});var Ak=w(bk=>{"use strict";m();T();N();Object.defineProperty(bk,"__esModule",{value:!0})});var Up=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ji.SUBSCRIPTION_FILTER_INPUT_NAMES=ji.STREAM_CONFIGURATION_FIELD_NAMES=ji.EVENT_DIRECTIVE_NAMES=ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var cn=ur();ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([cn.ARGUMENT_DEFINITION_UPPER,cn.ENUM_UPPER,cn.ENUM_VALUE_UPPER,cn.FIELD_DEFINITION_UPPER,cn.INPUT_FIELD_DEFINITION_UPPER,cn.INPUT_OBJECT_UPPER,cn.INTERFACE_UPPER,cn.OBJECT_UPPER,cn.SCALAR_UPPER,cn.SCHEMA_UPPER,cn.UNION_UPPER]);ji.EVENT_DIRECTIVE_NAMES=new Set([cn.EDFS_KAFKA_PUBLISH,cn.EDFS_KAFKA_SUBSCRIBE,cn.EDFS_NATS_PUBLISH,cn.EDFS_NATS_REQUEST,cn.EDFS_NATS_SUBSCRIBE,cn.EDFS_REDIS_PUBLISH,cn.EDFS_REDIS_SUBSCRIBE]);ji.STREAM_CONFIGURATION_FIELD_NAMES=new Set([cn.CONSUMER_INACTIVE_THRESHOLD,cn.CONSUMER_NAME,cn.STREAM_NAME]);ji.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([cn.AND_UPPER,cn.IN_UPPER,cn.NOT_UPPER,cn.OR_UPPER]);ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([cn.AND_UPPER,cn.OR_UPPER])});var Ki=w((BS,Rk)=>{"use strict";m();T();N();var kp=function(e){return e&&e.Math===Math&&e};Rk.exports=kp(typeof globalThis=="object"&&globalThis)||kp(typeof window=="object"&&window)||kp(typeof self=="object"&&self)||kp(typeof global=="object"&&global)||kp(typeof BS=="object"&&BS)||function(){return this}()||Function("return this")()});var Is=w((eAe,Pk)=>{"use strict";m();T();N();Pk.exports=function(e){try{return!!e()}catch(t){return!0}}});var fu=w((iAe,Fk)=>{"use strict";m();T();N();var Dae=Is();Fk.exports=!Dae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var US=w((uAe,wk)=>{"use strict";m();T();N();var bae=Is();wk.exports=!bae(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var pc=w((pAe,Lk)=>{"use strict";m();T();N();var Aae=US(),ZT=Function.prototype.call;Lk.exports=Aae?ZT.bind(ZT):function(){return ZT.apply(ZT,arguments)}});var kk=w(Uk=>{"use strict";m();T();N();var Ck={}.propertyIsEnumerable,Bk=Object.getOwnPropertyDescriptor,Rae=Bk&&!Ck.call({1:2},1);Uk.f=Rae?function(t){var n=Bk(this,t);return!!n&&n.enumerable}:Ck});var kS=w((IAe,Mk)=>{"use strict";m();T();N();Mk.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var mi=w((SAe,Vk)=>{"use strict";m();T();N();var xk=US(),qk=Function.prototype,MS=qk.call,Pae=xk&&qk.bind.bind(MS,MS);Vk.exports=xk?Pae:function(e){return function(){return MS.apply(e,arguments)}}});var Gk=w((AAe,Kk)=>{"use strict";m();T();N();var jk=mi(),Fae=jk({}.toString),wae=jk("".slice);Kk.exports=function(e){return wae(Fae(e),8,-1)}});var Qk=w((wAe,$k)=>{"use strict";m();T();N();var Lae=mi(),Cae=Is(),Bae=Gk(),xS=Object,Uae=Lae("".split);$k.exports=Cae(function(){return!xS("z").propertyIsEnumerable(0)})?function(e){return Bae(e)==="String"?Uae(e,""):xS(e)}:xS});var qS=w((UAe,Yk)=>{"use strict";m();T();N();Yk.exports=function(e){return e==null}});var VS=w((qAe,Jk)=>{"use strict";m();T();N();var kae=qS(),Mae=TypeError;Jk.exports=function(e){if(kae(e))throw new Mae("Can't call method on "+e);return e}});var eE=w((GAe,Hk)=>{"use strict";m();T();N();var xae=Qk(),qae=VS();Hk.exports=function(e){return xae(qae(e))}});var ua=w((JAe,zk)=>{"use strict";m();T();N();var jS=typeof document=="object"&&document.all;zk.exports=typeof jS=="undefined"&&jS!==void 0?function(e){return typeof e=="function"||e===jS}:function(e){return typeof e=="function"}});var Vl=w((XAe,Wk)=>{"use strict";m();T();N();var Vae=ua();Wk.exports=function(e){return typeof e=="object"?e!==null:Vae(e)}});var tE=w((nRe,Xk)=>{"use strict";m();T();N();var KS=Ki(),jae=ua(),Kae=function(e){return jae(e)?e:void 0};Xk.exports=function(e,t){return arguments.length<2?Kae(KS[e]):KS[e]&&KS[e][t]}});var eM=w((sRe,Zk)=>{"use strict";m();T();N();var Gae=mi();Zk.exports=Gae({}.isPrototypeOf)});var iM=w((lRe,rM)=>{"use strict";m();T();N();var $ae=Ki(),tM=$ae.navigator,nM=tM&&tM.userAgent;rM.exports=nM?String(nM):""});var dM=w((mRe,lM)=>{"use strict";m();T();N();var cM=Ki(),GS=iM(),aM=cM.process,sM=cM.Deno,oM=aM&&aM.versions||sM&&sM.version,uM=oM&&oM.v8,ca,nE;uM&&(ca=uM.split("."),nE=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1]));!nE&&GS&&(ca=GS.match(/Edge\/(\d+)/),(!ca||ca[1]>=74)&&(ca=GS.match(/Chrome\/(\d+)/),ca&&(nE=+ca[1])));lM.exports=nE});var $S=w((hRe,fM)=>{"use strict";m();T();N();var pM=dM(),Qae=Is(),Yae=Ki(),Jae=Yae.String;fM.exports=!!Object.getOwnPropertySymbols&&!Qae(function(){var e=Symbol("symbol detection");return!Jae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pM&&pM<41})});var QS=w((_Re,mM)=>{"use strict";m();T();N();var Hae=$S();mM.exports=Hae&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var YS=w((DRe,NM)=>{"use strict";m();T();N();var zae=tE(),Wae=ua(),Xae=eM(),Zae=QS(),ese=Object;NM.exports=Zae?function(e){return typeof e=="symbol"}:function(e){var t=zae("Symbol");return Wae(t)&&Xae(t.prototype,ese(e))}});var EM=w((PRe,TM)=>{"use strict";m();T();N();var tse=String;TM.exports=function(e){try{return tse(e)}catch(t){return"Object"}}});var rE=w((CRe,hM)=>{"use strict";m();T();N();var nse=ua(),rse=EM(),ise=TypeError;hM.exports=function(e){if(nse(e))return e;throw new ise(rse(e)+" is not a function")}});var JS=w((MRe,yM)=>{"use strict";m();T();N();var ase=rE(),sse=qS();yM.exports=function(e,t){var n=e[t];return sse(n)?void 0:ase(n)}});var gM=w((jRe,IM)=>{"use strict";m();T();N();var HS=pc(),zS=ua(),WS=Vl(),ose=TypeError;IM.exports=function(e,t){var n,r;if(t==="string"&&zS(n=e.toString)&&!WS(r=HS(n,e))||zS(n=e.valueOf)&&!WS(r=HS(n,e))||t!=="string"&&zS(n=e.toString)&&!WS(r=HS(n,e)))return r;throw new ose("Can't convert object to primitive value")}});var vM=w((QRe,_M)=>{"use strict";m();T();N();_M.exports=!1});var iE=w((zRe,OM)=>{"use strict";m();T();N();var SM=Ki(),use=Object.defineProperty;OM.exports=function(e,t){try{use(SM,e,{value:t,configurable:!0,writable:!0})}catch(n){SM[e]=t}return t}});var aE=w((ePe,AM)=>{"use strict";m();T();N();var cse=vM(),lse=Ki(),dse=iE(),DM="__core-js_shared__",bM=AM.exports=lse[DM]||dse(DM,{});(bM.versions||(bM.versions=[])).push({version:"3.41.0",mode:cse?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var XS=w((iPe,PM)=>{"use strict";m();T();N();var RM=aE();PM.exports=function(e,t){return RM[e]||(RM[e]=t||{})}});var wM=w((uPe,FM)=>{"use strict";m();T();N();var pse=VS(),fse=Object;FM.exports=function(e){return fse(pse(e))}});var mu=w((pPe,LM)=>{"use strict";m();T();N();var mse=mi(),Nse=wM(),Tse=mse({}.hasOwnProperty);LM.exports=Object.hasOwn||function(t,n){return Tse(Nse(t),n)}});var ZS=w((TPe,CM)=>{"use strict";m();T();N();var Ese=mi(),hse=0,yse=Math.random(),Ise=Ese(1 .toString);CM.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ise(++hse+yse,36)}});var kM=w((IPe,UM)=>{"use strict";m();T();N();var gse=Ki(),_se=XS(),BM=mu(),vse=ZS(),Sse=$S(),Ose=QS(),jl=gse.Symbol,eO=_se("wks"),Dse=Ose?jl.for||jl:jl&&jl.withoutSetter||vse;UM.exports=function(e){return BM(eO,e)||(eO[e]=Sse&&BM(jl,e)?jl[e]:Dse("Symbol."+e)),eO[e]}});var VM=w((SPe,qM)=>{"use strict";m();T();N();var bse=pc(),MM=Vl(),xM=YS(),Ase=JS(),Rse=gM(),Pse=kM(),Fse=TypeError,wse=Pse("toPrimitive");qM.exports=function(e,t){if(!MM(e)||xM(e))return e;var n=Ase(e,wse),r;if(n){if(t===void 0&&(t="default"),r=bse(n,e,t),!MM(r)||xM(r))return r;throw new Fse("Can't convert object to primitive value")}return t===void 0&&(t="number"),Rse(e,t)}});var tO=w((APe,jM)=>{"use strict";m();T();N();var Lse=VM(),Cse=YS();jM.exports=function(e){var t=Lse(e,"string");return Cse(t)?t:t+""}});var $M=w((wPe,GM)=>{"use strict";m();T();N();var Bse=Ki(),KM=Vl(),nO=Bse.document,Use=KM(nO)&&KM(nO.createElement);GM.exports=function(e){return Use?nO.createElement(e):{}}});var rO=w((UPe,QM)=>{"use strict";m();T();N();var kse=fu(),Mse=Is(),xse=$M();QM.exports=!kse&&!Mse(function(){return Object.defineProperty(xse("div"),"a",{get:function(){return 7}}).a!==7})});var iO=w(JM=>{"use strict";m();T();N();var qse=fu(),Vse=pc(),jse=kk(),Kse=kS(),Gse=eE(),$se=tO(),Qse=mu(),Yse=rO(),YM=Object.getOwnPropertyDescriptor;JM.f=qse?YM:function(t,n){if(t=Gse(t),n=$se(n),Yse)try{return YM(t,n)}catch(r){}if(Qse(t,n))return Kse(!Vse(jse.f,t,n),t[n])}});var zM=w((GPe,HM)=>{"use strict";m();T();N();var Jse=fu(),Hse=Is();HM.exports=Jse&&Hse(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Mp=w((JPe,WM)=>{"use strict";m();T();N();var zse=Vl(),Wse=String,Xse=TypeError;WM.exports=function(e){if(zse(e))return e;throw new Xse(Wse(e)+" is not an object")}});var oE=w(ZM=>{"use strict";m();T();N();var Zse=fu(),eoe=rO(),toe=zM(),sE=Mp(),XM=tO(),noe=TypeError,aO=Object.defineProperty,roe=Object.getOwnPropertyDescriptor,sO="enumerable",oO="configurable",uO="writable";ZM.f=Zse?toe?function(t,n,r){if(sE(t),n=XM(n),sE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&uO in r&&!r[uO]){var i=roe(t,n);i&&i[uO]&&(t[n]=r.value,r={configurable:oO in r?r[oO]:i[oO],enumerable:sO in r?r[sO]:i[sO],writable:!1})}return aO(t,n,r)}:aO:function(t,n,r){if(sE(t),n=XM(n),sE(r),eoe)try{return aO(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new noe("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var cO=w((nFe,ex)=>{"use strict";m();T();N();var ioe=fu(),aoe=oE(),soe=kS();ex.exports=ioe?function(e,t,n){return aoe.f(e,t,soe(1,n))}:function(e,t,n){return e[t]=n,e}});var rx=w((sFe,nx)=>{"use strict";m();T();N();var lO=fu(),ooe=mu(),tx=Function.prototype,uoe=lO&&Object.getOwnPropertyDescriptor,dO=ooe(tx,"name"),coe=dO&&function(){}.name==="something",loe=dO&&(!lO||lO&&uoe(tx,"name").configurable);nx.exports={EXISTS:dO,PROPER:coe,CONFIGURABLE:loe}});var ax=w((lFe,ix)=>{"use strict";m();T();N();var doe=mi(),poe=ua(),pO=aE(),foe=doe(Function.toString);poe(pO.inspectSource)||(pO.inspectSource=function(e){return foe(e)});ix.exports=pO.inspectSource});var ux=w((mFe,ox)=>{"use strict";m();T();N();var moe=Ki(),Noe=ua(),sx=moe.WeakMap;ox.exports=Noe(sx)&&/native code/.test(String(sx))});var dx=w((hFe,lx)=>{"use strict";m();T();N();var Toe=XS(),Eoe=ZS(),cx=Toe("keys");lx.exports=function(e){return cx[e]||(cx[e]=Eoe(e))}});var fO=w((_Fe,px)=>{"use strict";m();T();N();px.exports={}});var Tx=w((DFe,Nx)=>{"use strict";m();T();N();var hoe=ux(),mx=Ki(),yoe=Vl(),Ioe=cO(),mO=mu(),NO=aE(),goe=dx(),_oe=fO(),fx="Object already initialized",TO=mx.TypeError,voe=mx.WeakMap,uE,xp,cE,Soe=function(e){return cE(e)?xp(e):uE(e,{})},Ooe=function(e){return function(t){var n;if(!yoe(t)||(n=xp(t)).type!==e)throw new TO("Incompatible receiver, "+e+" required");return n}};hoe||NO.state?(la=NO.state||(NO.state=new voe),la.get=la.get,la.has=la.has,la.set=la.set,uE=function(e,t){if(la.has(e))throw new TO(fx);return t.facade=e,la.set(e,t),t},xp=function(e){return la.get(e)||{}},cE=function(e){return la.has(e)}):(fc=goe("state"),_oe[fc]=!0,uE=function(e,t){if(mO(e,fc))throw new TO(fx);return t.facade=e,Ioe(e,fc,t),t},xp=function(e){return mO(e,fc)?e[fc]:{}},cE=function(e){return mO(e,fc)});var la,fc;Nx.exports={set:uE,get:xp,has:cE,enforce:Soe,getterFor:Ooe}});var Ix=w((PFe,yx)=>{"use strict";m();T();N();var hO=mi(),Doe=Is(),boe=ua(),lE=mu(),EO=fu(),Aoe=rx().CONFIGURABLE,Roe=ax(),hx=Tx(),Poe=hx.enforce,Foe=hx.get,Ex=String,dE=Object.defineProperty,woe=hO("".slice),Loe=hO("".replace),Coe=hO([].join),Boe=EO&&!Doe(function(){return dE(function(){},"length",{value:8}).length!==8}),Uoe=String(String).split("String"),koe=yx.exports=function(e,t,n){woe(Ex(t),0,7)==="Symbol("&&(t="["+Loe(Ex(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lE(e,"name")||Aoe&&e.name!==t)&&(EO?dE(e,"name",{value:t,configurable:!0}):e.name=t),Boe&&n&&lE(n,"arity")&&e.length!==n.arity&&dE(e,"length",{value:n.arity});try{n&&lE(n,"constructor")&&n.constructor?EO&&dE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Poe(e);return lE(r,"source")||(r.source=Coe(Uoe,typeof t=="string"?t:"")),e};Function.prototype.toString=koe(function(){return boe(this)&&Foe(this).source||Roe(this)},"toString")});var _x=w((CFe,gx)=>{"use strict";m();T();N();var Moe=ua(),xoe=oE(),qoe=Ix(),Voe=iE();gx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Moe(n)&&qoe(n,a,r),r.global)i?e[t]=n:Voe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:xoe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Sx=w((MFe,vx)=>{"use strict";m();T();N();var joe=Math.ceil,Koe=Math.floor;vx.exports=Math.trunc||function(t){var n=+t;return(n>0?Koe:joe)(n)}});var pE=w((jFe,Ox)=>{"use strict";m();T();N();var Goe=Sx();Ox.exports=function(e){var t=+e;return t!==t||t===0?0:Goe(t)}});var bx=w((QFe,Dx)=>{"use strict";m();T();N();var $oe=pE(),Qoe=Math.max,Yoe=Math.min;Dx.exports=function(e,t){var n=$oe(e);return n<0?Qoe(n+t,0):Yoe(n,t)}});var Rx=w((zFe,Ax)=>{"use strict";m();T();N();var Joe=pE(),Hoe=Math.min;Ax.exports=function(e){var t=Joe(e);return t>0?Hoe(t,9007199254740991):0}});var Fx=w((ewe,Px)=>{"use strict";m();T();N();var zoe=Rx();Px.exports=function(e){return zoe(e.length)}});var Cx=w((iwe,Lx)=>{"use strict";m();T();N();var Woe=eE(),Xoe=bx(),Zoe=Fx(),wx=function(e){return function(t,n,r){var i=Woe(t),a=Zoe(i);if(a===0)return!e&&-1;var o=Xoe(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};Lx.exports={includes:wx(!0),indexOf:wx(!1)}});var kx=w((uwe,Ux)=>{"use strict";m();T();N();var eue=mi(),yO=mu(),tue=eE(),nue=Cx().indexOf,rue=fO(),Bx=eue([].push);Ux.exports=function(e,t){var n=tue(e),r=0,i=[],a;for(a in n)!yO(rue,a)&&yO(n,a)&&Bx(i,a);for(;t.length>r;)yO(n,a=t[r++])&&(~nue(i,a)||Bx(i,a));return i}});var xx=w((pwe,Mx)=>{"use strict";m();T();N();Mx.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vx=w(qx=>{"use strict";m();T();N();var iue=kx(),aue=xx(),sue=aue.concat("length","prototype");qx.f=Object.getOwnPropertyNames||function(t){return iue(t,sue)}});var Kx=w(jx=>{"use strict";m();T();N();jx.f=Object.getOwnPropertySymbols});var $x=w((Swe,Gx)=>{"use strict";m();T();N();var oue=tE(),uue=mi(),cue=Vx(),lue=Kx(),due=Mp(),pue=uue([].concat);Gx.exports=oue("Reflect","ownKeys")||function(t){var n=cue.f(due(t)),r=lue.f;return r?pue(n,r(t)):n}});var Jx=w((Awe,Yx)=>{"use strict";m();T();N();var Qx=mu(),fue=$x(),mue=iO(),Nue=oE();Yx.exports=function(e,t,n){for(var r=fue(t),i=Nue.f,a=mue.f,o=0;o{"use strict";m();T();N();var Tue=Is(),Eue=ua(),hue=/#|\.prototype\./,qp=function(e,t){var n=Iue[yue(e)];return n===_ue?!0:n===gue?!1:Eue(t)?Tue(t):!!t},yue=qp.normalize=function(e){return String(e).replace(hue,".").toLowerCase()},Iue=qp.data={},gue=qp.NATIVE="N",_ue=qp.POLYFILL="P";Hx.exports=qp});var IO=w((Uwe,Wx)=>{"use strict";m();T();N();var fE=Ki(),vue=iO().f,Sue=cO(),Oue=_x(),Due=iE(),bue=Jx(),Aue=zx();Wx.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,p,f;if(r?o=fE:i?o=fE[n]||Due(n,{}):o=fE[n]&&fE[n].prototype,o)for(c in t){if(p=t[c],e.dontCallGetSet?(f=vue(o,c),l=f&&f.value):l=o[c],a=Aue(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof p==typeof l)continue;bue(p,l)}(e.sham||l&&l.sham)&&Sue(p,"sham",!0),Oue(o,c,p,e)}}});var Vp=w((qwe,Xx)=>{"use strict";m();T();N();var gO=mi(),mE=Set.prototype;Xx.exports={Set,add:gO(mE.add),has:gO(mE.has),remove:gO(mE.delete),proto:mE}});var _O=w((Gwe,Zx)=>{"use strict";m();T();N();var Rue=Vp().has;Zx.exports=function(e){return Rue(e),e}});var tq=w((Jwe,eq)=>{"use strict";m();T();N();var Pue=mi(),Fue=rE();eq.exports=function(e,t,n){try{return Pue(Fue(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var vO=w((Xwe,nq)=>{"use strict";m();T();N();var wue=tq(),Lue=Vp();nq.exports=wue(Lue.proto,"size","get")||function(e){return e.size}});var SO=w((nLe,rq)=>{"use strict";m();T();N();var Cue=pc();rq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Cue(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var cq=w((sLe,uq)=>{"use strict";m();T();N();var iq=mi(),Bue=SO(),aq=Vp(),Uue=aq.Set,sq=aq.proto,kue=iq(sq.forEach),oq=iq(sq.keys),Mue=oq(new Uue).next;uq.exports=function(e,t,n){return n?Bue({iterator:oq(e),next:Mue},t):kue(e,t)}});var dq=w((lLe,lq)=>{"use strict";m();T();N();lq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OO=w((mLe,Eq)=>{"use strict";m();T();N();var pq=rE(),Nq=Mp(),fq=pc(),xue=pE(),que=dq(),mq="Invalid size",Vue=RangeError,jue=TypeError,Kue=Math.max,Tq=function(e,t){this.set=e,this.size=Kue(t,0),this.has=pq(e.has),this.keys=pq(e.keys)};Tq.prototype={getIterator:function(){return que(Nq(fq(this.keys,this.set)))},includes:function(e){return fq(this.has,this.set,e)}};Eq.exports=function(e){Nq(e);var t=+e.size;if(t!==t)throw new jue(mq);var n=xue(t);if(n<0)throw new Vue(mq);return new Tq(e,n)}});var yq=w((hLe,hq)=>{"use strict";m();T();N();var Gue=_O(),$ue=vO(),Que=cq(),Yue=OO();hq.exports=function(t){var n=Gue(this),r=Yue(t);return $ue(n)>r.size?!1:Que(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var DO=w((_Le,_q)=>{"use strict";m();T();N();var Jue=tE(),Iq=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},gq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};_q.exports=function(e,t){var n=Jue("Set");try{new n()[e](Iq(0));try{return new n()[e](Iq(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](gq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](gq(1/0)))}}}catch(i){return!1}}});var vq=w(()=>{"use strict";m();T();N();var Hue=IO(),zue=yq(),Wue=DO(),Xue=!Wue("isSubsetOf",function(e){return e});Hue({target:"Set",proto:!0,real:!0,forced:Xue},{isSubsetOf:zue})});var Sq=w(()=>{"use strict";m();T();N();vq()});var bq=w((ULe,Dq)=>{"use strict";m();T();N();var Zue=pc(),Oq=Mp(),ece=JS();Dq.exports=function(e,t,n){var r,i;Oq(e);try{if(r=ece(e,"return"),!r){if(t==="throw")throw n;return n}r=Zue(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Oq(r),n}});var Rq=w((qLe,Aq)=>{"use strict";m();T();N();var tce=_O(),nce=Vp().has,rce=vO(),ice=OO(),ace=SO(),sce=bq();Aq.exports=function(t){var n=tce(this),r=ice(t);if(rce(n){"use strict";m();T();N();var oce=IO(),uce=Rq(),cce=DO(),lce=!cce("isSupersetOf",function(e){return!e});oce({target:"Set",proto:!0,real:!0,forced:lce},{isSupersetOf:uce})});var Fq=w(()=>{"use strict";m();T();N();Pq()});var jp=w(Cn=>{"use strict";m();T();N();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.subtractSet=dce;Cn.mapToArrayOfValues=pce;Cn.kindToConvertedTypeString=fce;Cn.fieldDatasToSimpleFieldDatas=mce;Cn.isNodeLeaf=Nce;Cn.newEntityInterfaceFederationData=Tce;Cn.upsertEntityInterfaceFederationData=Ece;Cn.upsertEntityData=yce;Cn.updateEntityData=wq;Cn.newFieldAuthorizationData=Ice;Cn.newAuthorizationData=gce;Cn.addScopes=bO;Cn.mergeRequiredScopesByAND=EE;Cn.mergeRequiredScopesByOR=AO;Cn.upsertFieldAuthorizationData=Lq;Cn.upsertAuthorizationData=Sce;Cn.upsertAuthorizationConfiguration=Oce;Cn.isNodeKindObject=Dce;Cn.isInterfaceDefinitionData=bce;Cn.isObjectDefinitionData=Ace;var en=Ae(),Zr=ur(),NE=Jr(),TE=Es();Sq();Fq();function dce(e,t){for(let n of e)t.delete(n)}function pce(e){let t=[];for(let n of e.values())t.push(n);return t}function fce(e){switch(e){case en.Kind.BOOLEAN:return Zr.BOOLEAN_SCALAR;case en.Kind.ENUM:case en.Kind.ENUM_TYPE_DEFINITION:case en.Kind.ENUM_TYPE_EXTENSION:return Zr.ENUM;case en.Kind.ENUM_VALUE_DEFINITION:return Zr.ENUM_VALUE;case en.Kind.FIELD_DEFINITION:return Zr.FIELD;case en.Kind.FLOAT:return Zr.FLOAT_SCALAR;case en.Kind.INPUT_OBJECT_TYPE_DEFINITION:case en.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Zr.INPUT_OBJECT;case en.Kind.INPUT_VALUE_DEFINITION:return Zr.INPUT_VALUE;case en.Kind.INT:return Zr.INT_SCALAR;case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_EXTENSION:return Zr.INTERFACE;case en.Kind.NULL:return Zr.NULL;case en.Kind.OBJECT:case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.OBJECT_TYPE_EXTENSION:return Zr.OBJECT;case en.Kind.STRING:return Zr.STRING_SCALAR;case en.Kind.SCALAR_TYPE_DEFINITION:case en.Kind.SCALAR_TYPE_EXTENSION:return Zr.SCALAR;case en.Kind.UNION_TYPE_DEFINITION:case en.Kind.UNION_TYPE_EXTENSION:return Zr.UNION;default:return e}}function mce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function Nce(e){if(!e)return!0;switch(e){case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function Tce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Ece(e,t,n){(0,NE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,NE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,NE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphs.add(n)}function hce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function yce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?wq({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,hce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function wq({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function Ice(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function gce(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function bO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function EE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,NE.addSets)(r,i);bO(n,a)}return n}function AO(e,t){for(let n of t)bO(e,n);return e.length<=TE.MAX_OR_SCOPES}function Lq(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!AO(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>TE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>TE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=EE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=EE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,Cq(t)),!0)}function _ce(e){let t=new Map;for(let[n,r]of e)t.set(n,Cq(r));return t}function Cq(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function vce(e){return{fieldAuthDataByFieldName:_ce(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Sce(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,vce(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!AO(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>TE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=EE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)Lq(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function Oce(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function Dce(e){return e===en.Kind.OBJECT_TYPE_DEFINITION||e===en.Kind.OBJECT_TYPE_EXTENSION}function bce(e){return e.kind===en.Kind.INTERFACE_TYPE_DEFINITION}function Ace(e){return e?e.kind===en.Kind.OBJECT_TYPE_DEFINITION:!1}});var RO=w(Je=>{"use strict";m();T();N();Object.defineProperty(Je,"__esModule",{value:!0});Je.TAG_DEFINITION_DATA=Je.SUBSCRIPTION_FILTER_DEFINITION_DATA=Je.SHAREABLE_DEFINITION_DATA=Je.SPECIFIED_BY_DEFINITION_DATA=Je.REQUIRES_SCOPES_DEFINITION_DATA=Je.REQUIRES_DEFINITION_DATA=Je.PROVIDES_DEFINITION_DATA=Je.LINK_DEFINITION_DATA=Je.KEY_DEFINITION_DATA=Je.OVERRIDE_DEFINITION_DATA=Je.REDIS_SUBSCRIBE_DEFINITION_DATA=Je.REDIS_PUBLISH_DEFINITION_DATA=Je.NATS_SUBSCRIBE_DEFINITION_DATA=Je.NATS_REQUEST_DEFINITION_DATA=Je.NATS_PUBLISH_DEFINITION_DATA=Je.KAFKA_SUBSCRIBE_DEFINITION_DATA=Je.KAFKA_PUBLISH_DEFINITION_DATA=Je.INTERFACE_OBJECT_DEFINITION_DATA=Je.INACCESSIBLE_DEFINITION_DATA=Je.EXTERNAL_DEFINITION_DATA=Je.EXTENDS_DEFINITION_DATA=Je.DEPRECATED_DEFINITION_DATA=Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Je.COMPOSE_DIRECTIVE_DEFINITION_DATA=Je.AUTHENTICATED_DEFINITION_DATA=void 0;var it=Es(),da=Yr(),ln=Ae(),q=ur();Je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:it.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:it.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:it.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:it.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:it.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};Je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:ln.Kind.STRING,value:ln.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:it.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};Je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:it.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:it.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:it.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:it.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:it.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:it.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};Je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:it.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:it.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};Je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:it.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:it.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:it.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:it.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:it.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,da.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:it.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};Je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:it.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:it.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};Je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:it.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:it.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:it.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};Je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FROM,{name:q.FROM,typeNode:it.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:it.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};Je.KEY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:it.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:it.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};Je.LINK_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:it.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,da.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:ln.Kind.LIST_TYPE,type:(0,da.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:it.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};Je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:it.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:it.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:it.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:it.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:it.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};Je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:it.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:it.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};Je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:it.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:it.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};Je.TAG_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:it.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:it.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var Kp=w(pa=>{"use strict";m();T();N();Object.defineProperty(pa,"__esModule",{value:!0});pa.newFieldSetData=Rce;pa.extractFieldSetValue=Pce;pa.getNormalizedFieldSet=Fce;pa.getInitialFieldCoordsPath=wce;pa.validateKeyFieldSets=Lce;pa.getConditionalFieldSetDirectiveName=Cce;pa.isNodeQuery=Bce;pa.validateArgumentTemplateReferences=Uce;pa.initializeDirectiveDefinitionDatas=kce;var er=Ae(),Bq=Yr(),br=ia(),Uq=Es(),PO=su(),mn=RO(),Mt=ur(),Nu=Jr();function Rce(){return{provides:new Map,requires:new Map}}function Pce(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==Mt.FIELDS||i.value.kind!==er.Kind.STRING||t.set(e,i.value.value)}function Fce(e){return(0,er.print)((0,Bq.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function wce(e,t){return e?[t]:[]}function Lce(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),p=0;for(let[f,{documentNode:y,isUnresolvable:g,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!g)),p+=1;let F=[],k=[t],K=[],$=[],ne=new Set,z=-1,Te=!0,pe="";if((0,er.visit)(y,{Argument:{enter(Fe){return F.push((0,br.unexpectedArgumentErrorMessage)(v,`${k[z].name}.${pe}`,Fe.name.value)),er.BREAK}},Field:{enter(Fe){let Ve=k[z],et=Ve.name;if(Te){let Dn=`${et}.${pe}`,Vt=Ve.fieldDataByName.get(pe);if(!Vt)return F.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,Dn,pe)),er.BREAK;let dn=(0,PO.getTypeNodeNamedTypeName)(Vt.node.type),Ar=e.parentDefinitionDataByTypeName.get(dn),Rr=Ar?Ar.kind:er.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,br.invalidSelectionSetErrorMessage)(v,[Dn],dn,(0,Nu.kindToNodeType)(Rr))),er.BREAK}let X=Fe.name.value,ve=`${et}.${X}`;pe=X;let gt=Ve.fieldDataByName.get(X);if(!gt)return F.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,et,X)),er.BREAK;if(gt.argumentDataByName.size)return F.push((0,br.argumentsInKeyFieldSetErrorMessage)(v,ve)),er.BREAK;if(K[z].has(X))return F.push((0,br.duplicateFieldInFieldSetErrorMessage)(v,ve)),er.BREAK;(0,Nu.getValueOrDefault)((0,Nu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,ve,()=>new Map),i,()=>new Set).add(f),$.push(X),gt.isShareableBySubgraphName.set(e.subgraphName,!0),K[z].add(X),(0,Nu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,et,()=>new Set).add(X);let zt=(0,PO.getTypeNodeNamedTypeName)(gt.node.type);if(Uq.BASE_SCALARS.has(zt)){ne.add($.join(Mt.PERIOD)),$.pop();return}let Wt=e.parentDefinitionDataByTypeName.get(zt);if(!Wt)return F.push((0,br.unknownTypeInFieldSetErrorMessage)(v,ve,zt)),er.BREAK;if(Wt.kind===er.Kind.OBJECT_TYPE_DEFINITION){Te=!0,k.push(Wt);return}if((0,Bq.isKindAbstract)(Wt.kind))return F.push((0,br.abstractTypeInKeyFieldSetErrorMessage)(v,ve,zt,(0,Nu.kindToNodeType)(Wt.kind))),er.BREAK;ne.add($.join(Mt.PERIOD)),$.pop()}},InlineFragment:{enter(){return F.push(br.inlineFragmentInFieldSetErrorMessage),er.BREAK}},SelectionSet:{enter(){if(!Te){let Fe=k[z],et=`${Fe.name}.${pe}`,X=Fe.fieldDataByName.get(pe);if(!X)return F.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,et,pe)),er.BREAK;let ve=(0,PO.getTypeNodeNamedTypeName)(X.node.type),gt=e.parentDefinitionDataByTypeName.get(ve),zt=gt?gt.kind:er.Kind.SCALAR_TYPE_DEFINITION;return F.push((0,br.invalidSelectionSetDefinitionErrorMessage)(v,[et],ve,(0,Nu.kindToNodeType)(zt))),er.BREAK}if(z+=1,Te=!1,z<0||z>=k.length)return F.push((0,br.unparsableFieldSetSelectionErrorMessage)(v,pe)),er.BREAK;K.push(new Set)},leave(){if(Te){let Ve=k[z].name,et=k[z+1],X=`${Ve}.${pe}`;F.push((0,br.invalidSelectionSetErrorMessage)(v,[X],et.name,(0,Nu.kindToNodeType)(et.kind))),Te=!1}z-=1,k.pop(),K.pop()}}}),F.length>0){e.errors.push((0,br.invalidDirectiveError)(Mt.KEY,i,(0,Nu.numberToOrdinal)(p),F));continue}a.push(x({fieldName:"",selectionSet:f},g?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!g&&(c==null||c.addTargetSubgraphByFieldSet(f,e.subgraphName),o.push(ne))}if(a.length>0)return a}function Cce(e){return e?Mt.PROVIDES:Mt.REQUIRES}function Bce(e,t){return e===Mt.QUERY||t===er.OperationTypeNode.QUERY}function Uce(e,t,n){let r=e.matchAll(Uq.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,br.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,br.invalidEventSubjectsArgumentErrorMessage)(o))}function kce(){return new Map([[Mt.AUTHENTICATED,mn.AUTHENTICATED_DEFINITION_DATA],[Mt.COMPOSE_DIRECTIVE,mn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Mt.CONFIGURE_DESCRIPTION,mn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Mt.CONFIGURE_CHILD_DESCRIPTIONS,mn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Mt.DEPRECATED,mn.DEPRECATED_DEFINITION_DATA],[Mt.EDFS_KAFKA_PUBLISH,mn.KAFKA_PUBLISH_DEFINITION_DATA],[Mt.EDFS_KAFKA_SUBSCRIBE,mn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_NATS_PUBLISH,mn.NATS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_NATS_REQUEST,mn.NATS_REQUEST_DEFINITION_DATA],[Mt.EDFS_NATS_SUBSCRIBE,mn.NATS_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_REDIS_PUBLISH,mn.REDIS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_REDIS_SUBSCRIBE,mn.REDIS_SUBSCRIBE_DEFINITION_DATA],[Mt.EXTENDS,mn.EXTENDS_DEFINITION_DATA],[Mt.EXTERNAL,mn.EXTERNAL_DEFINITION_DATA],[Mt.INACCESSIBLE,mn.INACCESSIBLE_DEFINITION_DATA],[Mt.INTERFACE_OBJECT,mn.INTERFACE_OBJECT_DEFINITION_DATA],[Mt.KEY,mn.KEY_DEFINITION_DATA],[Mt.LINK,mn.LINK_DEFINITION_DATA],[Mt.OVERRIDE,mn.OVERRIDE_DEFINITION_DATA],[Mt.PROVIDES,mn.PROVIDES_DEFINITION_DATA],[Mt.REQUIRES,mn.REQUIRES_DEFINITION_DATA],[Mt.REQUIRES_SCOPES,mn.REQUIRES_SCOPES_DEFINITION_DATA],[Mt.SHAREABLE,mn.SHAREABLE_DEFINITION_DATA],[Mt.SPECIFIED_BY,mn.SPECIFIED_BY_DEFINITION_DATA],[Mt.SUBSCRIPTION_FILTER,mn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Mt.TAG,mn.TAG_DEFINITION_DATA]])}});var wO=w(FO=>{"use strict";m();T();N();Object.defineProperty(FO,"__esModule",{value:!0});FO.recordSubgraphName=Mce;function Mce(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var CO=w(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.Warning=void 0;var LO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};hE.Warning=LO});var IE=w(fa=>{"use strict";m();T();N();Object.defineProperty(fa,"__esModule",{value:!0});fa.invalidOverrideTargetSubgraphNameWarning=xce;fa.externalInterfaceFieldsWarning=qce;fa.nonExternalConditionalFieldWarning=Vce;fa.unimplementedInterfaceOutputTypeWarning=jce;fa.invalidExternalFieldWarning=Kce;fa.requiresDefinedOnNonEntityFieldWarning=Gce;fa.consumerInactiveThresholdInvalidValueWarning=$ce;fa.externalEntityExtensionKeyFieldWarning=Qce;fa.fieldAlreadyProvidedWarning=Yce;var gs=CO(),BO=ur();function xce(e,t,n,r){return new gs.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(BO.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function yE(e){return`The subgraph "${e}" is currently a "version one" subgraph, but if it were updated to "version two" in its current state, composition would be unsuccessful due to the following warning that would instead propagate as an error: @@ -438,23 +438,23 @@ The following field coordinates that form part of that field set are declared "@ "`+n.join(BO.QUOTATION_JOIN)+`" Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:r}})}function Yce(e,t,n,r){return new gs.Warning({message:yE(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. However, "${e}" forms part of the "@${t}" field set defined "${n}". -Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}});var kO=w(_E=>{"use strict";m();T();N();Object.defineProperty(_E,"__esModule",{value:!0});_E.upsertDirectiveSchemaAndEntityDefinitions=zce;_E.upsertParentsAndChildren=Wce;var Vn=Ae(),Tu=ia(),Nc=Es(),gE=jp(),Kl=Yr(),UO=Kp(),Jce=Up(),mc=El(),Gp=su(),Hce=IE(),tr=ur(),dr=Jr();function zce(e,t){(0,Vn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Jce.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),Nc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(Nc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case tr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(tr.SUBSCRIPTION_FILTER,Nc.SUBSCRIPTION_FILTER_DEFINITION);break}case tr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_DESCRIPTION,Nc.CONFIGURE_DESCRIPTION_DEFINITION);break}case tr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_CHILD_DESCRIPTIONS,Nc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Kl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Gp.getTypeNodeNamedTypeName)(n.type);if(i)return(0,Tu.duplicateOperationTypeDefinitionError)(r,a,(0,Gp.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Tu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Wce(e,t){let n=!1,r;(0,Vn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(o.kind!==Vn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,dr.kindToNodeType)(o.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByValueName.has(a)){e.errors.push((0,Tu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByValueName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Vn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Gp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,mc.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Kl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&tr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);(0,dr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(!(0,mc.isParentDataCompositeOutputType)(c)){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Tu.duplicateFieldDefinitionError)((0,dr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),p=e.extractDirectives(i,new Map),f=new Set;(0,mc.isParentDataInterfaceType)(c)||(e.addInheritedDirectivesToFieldData(p,f),p.has(tr.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${a}`));let y=e.addFieldDataByNode(c.fieldDataByName,i,l,p,f);n&&e.extractEventDirectivesToConfiguration(i,l);let g=y.directivesByDirectiveName.get(tr.PROVIDES),v=y.directivesByDirectiveName.get(tr.REQUIRES);if(!v&&!g)return;let P=e.entityDataByTypeName.get(e.originalParentTypeName),k=(0,dr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,UO.newFieldSetData);g&&(0,UO.extractFieldSetValue)(a,k.provides,g),v&&(P||e.warnings.push((0,Hce.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,UO.extractFieldSetValue)(a,k.requires,v))},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Vn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(c.kind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Tu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Vn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Vn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==tr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===tr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jO=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.EntityDataNode=Ka.RootNode=Ka.GraphNode=Ka.Edge=void 0;var vE=Jr(),MO=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Ka.Edge=MO;var xO=class{constructor(t,n,r){_(this,"fieldDataByFieldName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",[]);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,vE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,vE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Ka.GraphNode=xO;var qO=class{constructor(t){_(this,"fieldDataByFieldName",new Map);_(this,"headToShareableTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Ka.RootNode=qO;var VO=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,vE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,vE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Ka.EntityDataNode=VO});var GO=w(_s=>{"use strict";m();T();N();Object.defineProperty(_s,"__esModule",{value:!0});_s.NodeResolutionData=void 0;_s.newRootFieldData=Xce;_s.generateResolvabilityErrorReasons=xq;_s.generateSelectionSetSegments=qq;_s.renderSelectionSet=Vq;_s.generateResolvabilityErrors=tle;var kq=ia(),Tc=ur(),Mq=Jr(),KO=class{constructor(t,n){_(this,"fieldDataByFieldName");_(this,"isResolved",!1);_(this,"resolvedFieldNames",new Set);_(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Mq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,kq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};_s.NodeResolutionData=KO;function Xce(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Tc.QUOTATION_JOIN)}".`,subgraphNames:n}}function Zce(e,t){return e.isLeaf?e.name+` <-- +Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}});var kO=w(_E=>{"use strict";m();T();N();Object.defineProperty(_E,"__esModule",{value:!0});_E.upsertDirectiveSchemaAndEntityDefinitions=zce;_E.upsertParentsAndChildren=Wce;var Vn=Ae(),Tu=ia(),Nc=Es(),gE=jp(),Kl=Yr(),UO=Kp(),Jce=Up(),mc=El(),Gp=su(),Hce=IE(),tr=ur(),dr=Jr();function zce(e,t){(0,Vn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Jce.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),Nc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(Nc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case tr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(tr.SUBSCRIPTION_FILTER,Nc.SUBSCRIPTION_FILTER_DEFINITION);break}case tr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_DESCRIPTION,Nc.CONFIGURE_DESCRIPTION_DEFINITION);break}case tr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_CHILD_DESCRIPTIONS,Nc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Kl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Gp.getTypeNodeNamedTypeName)(n.type);if(i)return(0,Tu.duplicateOperationTypeDefinitionError)(r,a,(0,Gp.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Tu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Wce(e,t){let n=!1,r;(0,Vn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(o.kind!==Vn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,dr.kindToNodeType)(o.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByValueName.has(a)){e.errors.push((0,Tu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByValueName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Vn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Gp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,mc.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Kl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&tr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);(0,dr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(!(0,mc.isParentDataCompositeOutputType)(c)){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Tu.duplicateFieldDefinitionError)((0,dr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),p=e.extractDirectives(i,new Map),f=new Set;(0,mc.isParentDataInterfaceType)(c)||(e.addInheritedDirectivesToFieldData(p,f),p.has(tr.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${a}`));let y=e.addFieldDataByNode(c.fieldDataByName,i,l,p,f);n&&e.extractEventDirectivesToConfiguration(i,l);let g=y.directivesByDirectiveName.get(tr.PROVIDES),v=y.directivesByDirectiveName.get(tr.REQUIRES);if(!v&&!g)return;let F=e.entityDataByTypeName.get(e.originalParentTypeName),k=(0,dr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,UO.newFieldSetData);g&&(0,UO.extractFieldSetValue)(a,k.provides,g),v&&(F||e.warnings.push((0,Hce.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,UO.extractFieldSetValue)(a,k.requires,v))},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Vn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(c.kind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Tu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Vn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Vn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==tr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===tr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jO=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.EntityDataNode=Ka.RootNode=Ka.GraphNode=Ka.Edge=void 0;var vE=Jr(),MO=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Ka.Edge=MO;var xO=class{constructor(t,n,r){_(this,"fieldDataByFieldName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",[]);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,vE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,vE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Ka.GraphNode=xO;var qO=class{constructor(t){_(this,"fieldDataByFieldName",new Map);_(this,"headToShareableTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Ka.RootNode=qO;var VO=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,vE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,vE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Ka.EntityDataNode=VO});var GO=w(_s=>{"use strict";m();T();N();Object.defineProperty(_s,"__esModule",{value:!0});_s.NodeResolutionData=void 0;_s.newRootFieldData=Xce;_s.generateResolvabilityErrorReasons=xq;_s.generateSelectionSetSegments=qq;_s.renderSelectionSet=Vq;_s.generateResolvabilityErrors=tle;var kq=ia(),Tc=ur(),Mq=Jr(),KO=class{constructor(t,n){_(this,"fieldDataByFieldName");_(this,"isResolved",!1);_(this,"resolvedFieldNames",new Set);_(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Mq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,kq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};_s.NodeResolutionData=KO;function Xce(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Tc.QUOTATION_JOIN)}".`,subgraphNames:n}}function Zce(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- `+Tc.LITERAL_SPACE.repeat(t+3)+`... `+Tc.LITERAL_SPACE.repeat(t+2)+`} `}function xq({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Tc.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,p]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let f of p)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${f}" to access subgraph "${l}".`)}c||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendent of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that share the same root type field "${t.coordinate}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendent of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function qq(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(SE,"__esModule",{value:!0});SE.Graph=void 0;var Gl=jO(),$l=GO(),jq=ur(),Ur=Jr(),$O=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodes",new Map);_(this,"entityNodeNamesBySharedFieldPath",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"rootNodeByRootTypeName",new Map);_(this,"subgraphName",jq.NOT_APPLICABLE);_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);_(this,"nodeResolutionDataByFieldPath",new Map);_(this,"unresolvableFieldPaths",new Set);_(this,"failureResultByEntityNodeName",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ur.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Gl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ur.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Gl.Edge(this.getNextEdgeId(),n,r);return(0,Ur.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(c),c}let a=t,o=new Gl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gl.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(jq.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByFieldName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c||[]){if(l===a.subgraphName)continue;let p=this.nodeByNodeName.get(`${l}.${a.typeName}`);p&&a.entityEdges.push(new Gl.Edge(this.getNextEdgeId(),p,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,a]of t){let o=a.size>1,c,l=o?new Map:void 0,p=new Set,f=new Map;for(let y of a){let g=this.nodeByNodeName.get(y);if(!g)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let G=this.failureResultByEntityNodeName.get(y);if(!G){c=void 0;break}if(!o)return G}let P=this.nodesByTypeName.get(g.typeName)||[],k=(0,Ur.getValueOrDefault)(r,y,()=>o?f:new Map),K=new QO({interSubgraphNodes:P,entityNodeNamesBySharedFieldPath:k,originNode:g,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:p});if(K.visitEntityNode(g),K.unresolvableFieldPaths.size>0){if(o&&p.size<1){c=void 0;break}c={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,Ur.getOrThrowError)(this.entityDataNodes,g.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:g.subgraphName,typeName:g.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:g.typeName,unresolvableFieldPaths:o?p:K.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,c);continue}c=void 0;break}if(c)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(c.nodeName,l),c}if(r.size>0)for(let[i,a]of r){let o=this.validateEntities(a,n);if(!o.success){for(let[c,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(c);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let c of i){if(c.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(c,`${n.typeName.toLowerCase()}`)}let a=(0,Ur.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,$l.newRootFieldData)(n.typeName,r,a.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let c=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);c.success||this.generateEntityResolvabilityErrors(c,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,Ur.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,a]of t.headToTailEdges)this.visitEdge(a,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,Ur.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),a="";for(let o of t.parentFieldPathForEntityReference)a=o+a;(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:a,entityAncestorData:t.entityAncestorData})}};SE.Graph=$O;var QO=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:a,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:c}){_(this,"entityNodeNamesBySharedFieldPath");_(this,"interSubgraphNodes");_(this,"originNode");_(this,"resolvableFieldNamesByRelativeFieldPath");_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");_(this,"unresolvableFieldPaths",new Set);_(this,"unresolvableSharedFieldPaths");_(this,"walkerIndex");_(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=a,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=c}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,Ur.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[a,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(a),i==null||i.add(a));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var JO=w(OE=>{"use strict";m();T();N();Object.defineProperty(OE,"__esModule",{value:!0});OE.newFieldSetConditionData=nle;OE.newConfigurationData=rle;function nle({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function rle(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var zO=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.NormalizationFactory=void 0;Ec.normalizeSubgraphFromString=ole;Ec.normalizeSubgraph=Gq;Ec.batchNormalize=ule;var X=Ae(),On=Yr(),ei=Kp(),Ht=Es(),rr=jp(),de=ia(),DE=Up(),ile=lv(),ma=WT(),ale=wO(),vs=IE(),Kq=kO(),Ga=Ep(),Nn=El(),nr=su(),HO=YO(),bE=mv(),ne=ur(),sle=ml(),$e=Jr(),$p=JO();function ole(e,t=!0){let{error:n,documentNode:r}=(0,On.safeParse)(e,t);return n||!r?{errors:[(0,de.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Qp(new HO.Graph).normalize(r)}function Gq(e,t,n){return new Qp(n||new HO.Graph,t).normalize(e)}var Qp=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ei.initializeDirectiveDefinitionDatas)());_(this,"edfsDirectiveReferences",new Set);_(this,"errors",[]);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isCurrentParentExtension",!1);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",X.Kind.NULL);_(this,"lastChildNodeKind",X.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetDataByTypeName",new Map);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of Ht.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ne.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:X.Kind.SCHEMA_DEFINITION,name:ne.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,nr.getTypeNodeNamedTypeName)(r.type);if(Ht.BASE_SCALARS.has(i)){r.namedTypeKind=X.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Nn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,de.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,$e.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return ne.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===X.Kind.NULL)return t.kind!==X.Kind.NON_NULL_TYPE;switch(t.kind){case X.Kind.LIST_TYPE:{if(n.kind!==X.Kind.LIST)return this.isArgumentValueValid((0,nr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case X.Kind.NAMED_TYPE:switch(t.name.value){case ne.BOOLEAN_SCALAR:return n.kind===X.Kind.BOOLEAN;case ne.FLOAT_SCALAR:return n.kind===X.Kind.FLOAT||n.kind===X.Kind.INT;case ne.ID_SCALAR:return n.kind===X.Kind.STRING||n.kind===X.Kind.INT;case ne.INT_SCALAR:return n.kind===X.Kind.INT;case ne.FIELD_SET_SCALAR:case ne.SCOPE_SCALAR:case ne.STRING_SCALAR:return n.kind===X.Kind.STRING;case ne.LINK_IMPORT:return!0;case ne.LINK_PURPOSE:return n.kind!==X.Kind.ENUM?!1:n.value===ne.SECURITY||n.value===ne.EXECUTION;case ne.SUBSCRIPTION_FIELD_CONDITION:case ne.SUBSCRIPTION_FILTER_CONDITION:return n.kind===X.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===X.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===X.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==X.Kind.ENUM)return!1;let i=r.enumValueDataByValueName.get(n.value);return i?!i.directivesByDirectiveName.has(ne.INACCESSIBLE):!1}return r.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===X.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}addInheritedDirectivesToFieldData(t,n){return this.isParentObjectShareable&&!t.has(ne.SHAREABLE)&&(t.set(ne.SHAREABLE,[(0,$e.generateSimpleDirective)(ne.SHAREABLE)]),n.add(ne.SHAREABLE)),this.isParentObjectExternal&&!t.has(ne.EXTERNAL)&&(t.set(ne.EXTERNAL,[(0,$e.generateSimpleDirective)(ne.EXTERNAL)]),n.add(ne.EXTERNAL)),t}extractDirectives(t,n){if(!t.directives)return n;for(let r of t.directives){let i=r.name.value;i===ne.SHAREABLE?(0,$e.getValueOrDefault)(n,i,()=>[r]):(0,$e.getValueOrDefault)(n,i,()=>[]).push(r),(0,rr.isNodeKindObject)(t.kind)&&(this.isParentObjectExternal||(this.isParentObjectExternal=i===ne.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=i===ne.SHAREABLE))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===X.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,p=c===ne.AUTHENTICATED,f=c===ne.OVERRIDE,y=c===ne.REQUIRES_SCOPES;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,[])),p&&this.handleAuthenticatedDirective(t,l),a;let g=new Set,v=new Set,P=new Set,k=[];for(let Z of i.arguments){let W=Z.name.value;if(g.has(W)){v.add(W);continue}g.add(W);let Te=n.argumentTypeNodeByArgumentName.get(W);if(!Te){P.add(W);continue}if(!this.isArgumentValueValid(Te.typeNode,Z.value)){a.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(Z.value),`@${c}`,W,(0,ma.printTypeNode)(Te.typeNode)));continue}if(f&&t.kind===X.Kind.FIELD_DEFINITION){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:Z.value.value});continue}!y||W!==ne.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:Z.value.values,requiredScopes:k})}v.size>0&&a.push((0,de.duplicateDirectiveArgumentDefinitionsErrorMessage)([...v])),P.size>0&&a.push((0,de.unexpectedDirectiveArgumentErrorMessage)(c,[...P]));let K=(0,$e.getEntriesNotInHashSet)(o,g);if(K.length>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,K)),a.length>0||!y)return a;let G=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rr.newAuthorizationData)(l));if(t.kind!==X.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),G.requiredScopes.push(...k);else{let Z=(0,$e.getValueOrDefault)(G.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));Z.inheritedData.requiredScopes.push(...k),Z.originalData.requiredScopes.push(...k)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,de.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,On.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,de.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),c.push((0,de.invalidRepeatedDirectiveErrorMessage)(i)))}let p=[...o.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,de.invalidDirectiveError)(i,n,(0,$e.numberToOrdinal)(f+1),y))}}switch(t.kind){case X.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByValueName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?Ga.ExtensionType.REAL:r||!n.has(ne.EXTENDS)?Ga.ExtensionType.NONE:Ga.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Ga.ExtensionType.EXTENDS:case Ga.ExtensionType.NONE:{if(n===Ga.ExtensionType.REAL)return;this.errors.push((0,de.duplicateTypeDefinitionError)((0,$e.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case ne.PROPAGATE:{if(o.value.kind!=X.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case ne.DESCRIPTION_OVERRIDE:{if(o.value.kind!=X.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(ne.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateImplementedInterfaceError)((0,rr.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(ne.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(ne.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,de.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByArgumentName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!ne.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!DE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,de.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,de.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByArgumentName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let p=l.name.value;if(r.has(p)){c.add(p);continue}l.defaultValue&&i.add(p),(0,Nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(p),r.set(p,{name:p,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,de.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,de.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),Ht.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(Ht.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByArgumentName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByArgumentName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,de.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:p,isShareable:f}=(0,Nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,nr.getTypeNodeNamedTypeName)(n.type),g={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Nn.newExternalFieldData)(p)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(ne.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,f]]),kind:X.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Ht.BASE_SCALARS.has(y)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableFieldNode)(n,l,this.errors),originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,On.formatDescription)(n.description)};return Ht.BASE_SCALARS.has(g.namedTypeName)||this.referencedTypeNames.add(g.namedTypeName),this.extractConfigureDescriptionsData(g),t.set(o,g),g}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,p=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,de.incompatibleInputValueDefaultValueTypeError)((r?ne.ARGUMENT:ne.INPUT_FIELD)+` "${l}"`,p,(0,ma.printTypeNode)(i.type),(0,X.print)(i.defaultValue)));let f=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,nr.getTypeNodeNamedTypeName)(i.type),g={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?X.Kind.ARGUMENT:X.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Ht.BASE_SCALARS.has(y)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableInputValueNode)(i,a,this.errors),originalCoords:p,originalParentTypeName:a,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,Nn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,On.formatDescription)(i.description)};this.extractConfigureDescriptionsData(g),n.set(l,g)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let p of t.fields)c.interfaceFieldNames.add(p.name.value);if(i){if(i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(ne.KEY),isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case X.OperationTypeNode.MUTATION:return ne.MUTATION;case X.OperationTypeNode.SUBSCRIPTION:return ne.SUBSCRIPTION;default:return ne.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==X.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r);let p={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(ne.KEY),isInaccessible:a.has(ne.INACCESSIBLE),isRootType:o,kind:X.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(p),this.parentDefinitionDataByTypeName.set(r,p)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(ne.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByValueName:new Map,isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,nr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(ne.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,nr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateUnionMemberDefinitionError)(r,a));continue}(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Ht.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==X.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,nr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,de.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==ne.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===ne.RESOLVABLE){v.value.kind===X.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==ne.FIELDS){c=void 0;break}if(v.value.kind!==X.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:p,documentNode:f}=(0,On.safeParse)("{"+c+"}");if(p||!f){this.errors.push((0,de.invalidDirectiveError)(ne.KEY,r,(0,$e.numberToOrdinal)(i),[(0,de.unparsableFieldSetErrorMessage)(c,p)]));continue}let y=(0,ei.getNormalizedFieldSet)(f),g=n.get(y);g?g.isUnresolvable||(g.isUnresolvable=l):n.set(y,{documentNode:f,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,$e.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,nr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==X.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,de.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,On.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,de.unparsableFieldSetErrorMessage)(n,o)]};let l=this,p=[t],f=(0,ei.getConditionalFieldSetDirectiveName)(i),y=[],g=`${a}.${r}`,v=(0,ei.getInitialFieldCoordsPath)(i,g),P=[r],k=new Set,K=[],G=-1,Z=!0,W=r,Te=!1;return(0,X.visit)(c,{Argument:{enter(){return!1}},Field:{enter(fe){let we=p[G],Ve=we.name;if(we.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.invalidSelectionOnUnionErrorMessage)(n,v,Ve)),X.BREAK;let it=fe.name.value,ee=`${Ve}.${it}`;if(l.unvalidatedExternalFieldCoords.delete(ee),Z)return K.push((0,de.invalidSelectionSetErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(we.kind))),X.BREAK;v.push(ee),P.push(it),W=it;let ve=we.fieldDataByName.get(it);if(!ve)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,Ve,it)),X.BREAK;if(y[G].has(it))return K.push((0,de.duplicateFieldInFieldSetErrorMessage)(n,ee)),X.BREAK;y[G].add(it);let{isDefinedExternal:gt,isUnconditionallyProvided:zt}=(0,$e.getOrThrowError)(ve.externalFieldDataBySubgraphName,l.subgraphName,`${ee}.externalFieldDataBySubgraphName`),Wt=gt&&!zt;zt||(Te=!0);let Dn=(0,nr.getTypeNodeNamedTypeName)(ve.node.type),Vt=l.parentDefinitionDataByTypeName.get(Dn);if(Ht.BASE_SCALARS.has(Dn)||(Vt==null?void 0:Vt.kind)===X.Kind.SCALAR_TYPE_DEFINITION||(Vt==null?void 0:Vt.kind)===X.Kind.ENUM_TYPE_DEFINITION){if(k.size<1&&!gt){if(l.isSubgraphVersionTwo){l.errors.push((0,de.nonExternalConditionalFieldError)(g,l.subgraphName,ee,n,f));return}l.warnings.push((0,vs.nonExternalConditionalFieldWarning)(g,l.subgraphName,ee,n,f));return}if(k.size<1&&zt){l.isSubgraphVersionTwo?K.push((0,de.fieldAlreadyProvidedErrorMessage)(ee,l.subgraphName,f)):l.warnings.push((0,vs.fieldAlreadyProvidedWarning)(ee,f,g,l.subgraphName));return}if(!Wt&&!i)return;let dn=(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData),Ar=(0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]});i?dn.providedBy.push(Ar):dn.requiredBy.push(Ar);return}if(!Vt)return K.push((0,de.unknownTypeInFieldSetErrorMessage)(n,ee,Dn)),X.BREAK;if(gt&&(i&&(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData).providedBy.push((0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]})),k.add(ee)),Vt.kind===X.Kind.OBJECT_TYPE_DEFINITION||Vt.kind===X.Kind.INTERFACE_TYPE_DEFINITION||Vt.kind===X.Kind.UNION_TYPE_DEFINITION){Z=!0,p.push(Vt);return}},leave(){k.delete(v.pop()||""),P.pop()}},InlineFragment:{enter(fe){let we=p[G],Ve=we.name,it=v.length<1?t.name:v[v.length-1];if(!fe.typeCondition)return K.push((0,de.inlineFragmentWithoutTypeConditionErrorMessage)(n,it)),X.BREAK;let ee=fe.typeCondition.name.value;if(ee===Ve){p.push(we),Z=!0;return}if(!(0,On.isKindAbstract)(we.kind))return K.push((0,de.invalidInlineFragmentTypeErrorMessage)(n,v,ee,Ve)),X.BREAK;let ve=l.parentDefinitionDataByTypeName.get(ee);if(!ve)return K.push((0,de.unknownInlineFragmentTypeConditionErrorMessage)(n,v,Ve,ee)),X.BREAK;switch(Z=!0,ve.kind){case X.Kind.INTERFACE_TYPE_DEFINITION:{if(!ve.implementedInterfaceTypeNames.has(Ve))break;p.push(ve);return}case X.Kind.OBJECT_TYPE_DEFINITION:{let gt=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!gt||!gt.has(ee))break;p.push(ve);return}case X.Kind.UNION_TYPE_DEFINITION:{p.push(ve);return}default:return K.push((0,de.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,Ve,ee,(0,$e.kindToNodeType)(ve.kind))),X.BREAK}return K.push((0,de.invalidInlineFragmentTypeConditionErrorMessage)(n,v,ee,(0,$e.kindToNodeType)(we.kind),Ve)),X.BREAK}},SelectionSet:{enter(){if(!Z){let fe=p[G];if(fe.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;let we=fe.fieldDataByName.get(W);if(!we)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,fe.name,W)),X.BREAK;let Ve=(0,nr.getTypeNodeNamedTypeName)(we.node.type),it=l.parentDefinitionDataByTypeName.get(Ve),ee=it?it.kind:X.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(ee))),X.BREAK}if(G+=1,Z=!1,G<0||G>=p.length)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;y.push(new Set)},leave(){if(Z){let fe=p[G+1];K.push((0,de.invalidSelectionSetErrorMessage)(n,v,fe.name,(0,$e.kindToNodeType)(fe.kind))),Z=!1}G-=1,p.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ei.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,Nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:p,errorString:f}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(f){i.push(f);continue}if(!p)continue;let{errorMessages:g,configuration:v}=this.validateConditionalFieldSet(p,l,c,r,o);if(g.length>0){i.push(` On field "${y}": - -`+g.join(ne.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,de.invalidProvidesOrRequiresDirectivesError)((0,ei.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ne.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(Ht.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,$e.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[f,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let g=!1,v=t.fieldDataByName.get(f);if(!v){p=!0,l.unimplementedFields.push(f);continue}let P={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ma.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Nn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,g=!0,P.implementedResponseType=(0,ma.printTypeNode)(v.node.type));let k=new Set;for(let[K,G]of y.argumentDataByName){k.add(K);let Z=v.argumentDataByName.get(K);if(!Z){p=!0,g=!0,P.unimplementedArguments.add(K);continue}let W=(0,ma.printTypeNode)(Z.type),Te=(0,ma.printTypeNode)(G.type);Te!==W&&(p=!0,g=!0,P.invalidImplementedArguments.push({actualType:W,argumentName:K,expectedType:Te}))}for(let[K,G]of v.argumentDataByName)k.has(K)||G.type.kind===X.Kind.NON_NULL_TYPE&&(p=!0,g=!0,P.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(p=!0,g=!0,P.isInaccessible=!0),g&&l.invalidFieldImplementations.set(f,P)}p&&r.set(o,l)}i.size>0&&this.errors.push((0,de.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,de.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,de.invalidInterfaceImplementationError)(t.name,(0,$e.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,rr.newAuthorizationData)(n));if(t.kind===X.Kind.FIELD_DEFINITION){let i=(0,$e.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,de.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,$e.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,$e.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Ht.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,rr.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.TOPIC:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(ne.TOPIC));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_KAFKA,topics:a,type:ne.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.TOPICS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.TOPICS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.TOPICS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_KAFKA,topics:a,type:ne.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=ne.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case ne.SUBJECT:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push((0,de.invalidEventSubjectErrorMessage)(ne.SUBJECT));continue}(0,ei.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case ne.PROVIDER_ID:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push(de.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:ne.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID,c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",p="";for(let f of t.arguments||[])switch(f.name.value){case ne.SUBJECTS:{if(f.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.SUBJECTS));continue}for(let y of f.value.values){if(y.kind!==X.Kind.STRING||y.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.SUBJECTS));break}(0,ei.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case ne.PROVIDER_ID:{if(f.value.kind!==X.Kind.STRING||f.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=f.value.value;break}case ne.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==X.Kind.OBJECT||f.value.fields.length<1){i.push(de.invalidNatsStreamInputErrorMessage);continue}let y=!0,g=new Set,v=new Set(DE.STREAM_CONFIGURATION_FIELD_NAMES),P=new Set([ne.CONSUMER_NAME,ne.STREAM_NAME]),k=new Set,K=new Set;for(let G of f.value.fields){let Z=G.name.value;if(!DE.STREAM_CONFIGURATION_FIELD_NAMES.has(Z)){g.add(Z),y=!1;continue}if(v.has(Z))v.delete(Z);else{k.add(Z),y=!1;continue}switch(P.has(Z)&&P.delete(Z),Z){case ne.CONSUMER_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}l=G.value.value;break;case ne.STREAM_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}p=G.value.value;break;case ne.CONSUMER_INACTIVE_THRESHOLD:if(G.value.kind!=X.Kind.INT){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",ne.INT_SCALAR)),y=!1;continue}try{c=parseInt(G.value.value,10)}catch(W){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",ne.INT_SCALAR)),y=!1}break}}(!y||P.size>0)&&i.push((0,de.invalidNatsStreamInputFieldsErrorMessage)([...P],[...k],[...K],[...g]))}}if(!(i.length>0))return c<0?(c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>sle.MAX_INT32&&(c=0,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_NATS,subjects:a,type:ne.SUBSCRIBE},l&&p?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:p}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.CHANNEL:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(ne.CHANNEL));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_REDIS,channels:a,type:ne.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.CHANNELS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.CHANNELS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_REDIS,channels:a,type:ne.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===X.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===ne.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,de.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case ne.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case ne.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case ne.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(ne.PUBLISH,a,n,r,o);break}case ne.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(ne.REQUEST,a,n,r,o);break}case ne.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case ne.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case ne.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,de.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,$e.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case X.OperationTypeNode.MUTATION:return new Set([ne.EDFS_KAFKA_PUBLISH,ne.EDFS_NATS_PUBLISH,ne.EDFS_NATS_REQUEST,ne.EDFS_REDIS_PUBLISH]);case X.OperationTypeNode.QUERY:return new Set([ne.EDFS_NATS_REQUEST]);case X.OperationTypeNode.SUBSCRIPTION:return new Set([ne.EDFS_KAFKA_SUBSCRIBE,ne.EDFS_NATS_SUBSCRIBE,ne.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ne.MUTATION:return X.OperationTypeNode.MUTATION;case ne.QUERY:return X.OperationTypeNode.QUERY;case ne.SUBSCRIPTION:return X.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,de.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let p=`${l.originalParentTypeName}.${c}`,f=new Set;for(let K of DE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&f.add(K);let y=new Set;for(let K of f)o.has(K)||y.add(K);if((f.size<1||y.size>0)&&n.set(p,{definesDirectives:f.size>0,invalidDirectiveNames:[...y]}),a===X.OperationTypeNode.MUTATION){let K=(0,ma.printTypeNode)(l.type);K!==ne.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(p,K);continue}let g=(0,ma.printTypeNode)(l.type),v=l.namedTypeName+"!",P=!1,k=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of k)if(P||(P=this.entityDataByTypeName.has(K)),P)break;(!P||g!==v)&&r.set(p,g)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,$e.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ne.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==X.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==ne.SUCCESS||(0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case ne.CONSUMER_INACTIVE_THRESHOLD:{if((0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==X.Kind.INT||r.defaultValue.value!==`${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case ne.CONSUMER_NAME:case ne.STREAM_NAME:{if((0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,p=new Set,f=new Set;for(let[y,g]of this.parentDefinitionDataByTypeName){if(y===ne.EDFS_PUBLISH_RESULT||y===ne.EDFS_NATS_STREAM_CONFIGURATION||g.kind!==X.Kind.OBJECT_TYPE_DEFINITION)continue;if(g.isRootType){this.validateEventDrivenRootType(g,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){f.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(g.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(de.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ne.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(ne.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(de.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(ne.EDFS_NATS_STREAM_CONFIGURATION),t.push(Ht.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}this.referencedDirectiveNames.has(ne.LINK)&&(t.push(Ht.LINK_DEFINITION),t.push(Ht.LINK_IMPORT_DEFINITION),t.push(Ht.LINK_PURPOSE_DEFINITION)),r.size>0&&n.push((0,de.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,de.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,de.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,de.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,de.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,de.nonKeyFieldNamesEventDrivenErrorMessage)(l)),p.size>0&&n.push((0,de.nonEntityObjectExtensionsEventDrivenErrorMessage)([...p])),f.size>0&&n.push((0,de.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...f])),n.length>0&&this.errors.push((0,de.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,de.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,$e.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,de.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!0,i)),o=(0,ei.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&ne.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(a)||(f.add(a),this.errors.push((0,de.invalidDirectiveError)(a,n,"1st",[(0,de.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==ne.KEY){i.push(...o);continue}let l=[],p=new Set;for(let f=0;fnew Set).add(k)),(0,$e.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(P);let Z=(0,nr.getTypeNodeNamedTypeName)(K.node.type);if(Ht.BASE_SCALARS.has(Z))return;let W=a.parentDefinitionDataByTypeName.get(Z);if(!W)return X.BREAK;if(W.kind===X.Kind.OBJECT_TYPE_DEFINITION){f=!0,c.push(W);return}if((0,On.isKindAbstract)(W.kind))return X.BREAK}},InlineFragment:{enter(){return X.BREAK}},SelectionSet:{enter(){if(!f||(p+=1,f=!1,p<0||p>=c.length))return X.BREAK},leave(){f&&(f=!1),p-=1,c.pop()}}}),!(l.size<1))for(let[y,g]of l)this.warnings.push((0,vs.externalEntityExtensionKeyFieldWarning)(i.name,y,[...g],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}normalize(t){var a;(0,Kq.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,Kq.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,ne.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of Ht.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(Ht.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of Ht.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(Ht.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=Ht.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,de.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ne.SUBSCRIPTION_FILTER)&&(n.push(Ht.SUBSCRIPTION_FILTER_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(ne.CONFIGURE_DESCRIPTION)&&n.push(Ht.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(ne.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(Ht.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,de.configureDescriptionNoDescriptionError)((0,$e.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case X.Kind.ENUM_TYPE_DEFINITION:if(c.enumValueDataByValueName.size<1){this.errors.push((0,de.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break;case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(c.inputValueDataByName.size<1){this.errors.push((0,de.noInputValueDefinitionsError)(o));break}for(let K of c.inputValueDataByName.values()){if(K.namedTypeKind!==X.Kind.NULL)continue;let G=this.parentDefinitionDataByTypeName.get(K.namedTypeName);if(G){if(!(0,Nn.isInputNodeKind)(G.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:K,namedTypeData:G,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}K.namedTypeKind=G.kind}}n.push(this.getInputObjectNodeByData(c));break;case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:let l=this.entityDataByTypeName.has(o),p=this.operationTypeNodeByTypeName.get(o),f=c.kind===X.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===Ga.ExtensionType.EXTENDS&&(c.extensionType=Ga.ExtensionType.NONE),p&&(c.fieldDataByName.delete(ne.SERVICE_FIELD),c.fieldDataByName.delete(ne.ENTITIES_FIELD));let y=[];for(let[K,G]of c.fieldDataByName){if(!f&&((a=G.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments(G,c.kind),G.namedTypeKind!==X.Kind.NULL)continue;let Z=this.parentDefinitionDataByTypeName.get(G.namedTypeName);if(Z){if(!(0,Nn.isOutputNodeKind)(Z.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:G,namedTypeData:Z,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}G.namedTypeKind=this.entityInterfaceDataByTypeName.get(Z.name)?X.Kind.INTERFACE_TYPE_DEFINITION:Z.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,de.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,vs.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let g=(0,Nn.getParentTypeName)(c),v=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,g,()=>(0,$p.newConfigurationData)(l,o)),P=this.entityInterfaceDataByTypeName.get(o);if(P){P.fieldDatas=(0,rr.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,$e.addIterableValuesToSet)(K,P.concreteTypeNames),v.isInterfaceObject=P.isInterfaceObject,v.entityInterfaceConcreteTypeNames=P.concreteTypeNames}let k=this.eventsConfigurations.get(g);k&&(v.events=k),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ei.isNodeQuery)(o,p)&&this.errors.push((0,de.noFieldDefinitionsError)((0,$e.kindToNodeType)(c.kind),o));break;case X.Kind.SCALAR_TYPE_DEFINITION:if(c.extensionType===Ga.ExtensionType.REAL){this.errors.push((0,de.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break;case X.Kind.UNION_TYPE_DEFINITION:n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break;default:throw(0,de.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(X.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,$e.getOrThrowError)(On.operationTypeNodeToDefaultType,o,ne.OPERATION_TO_DEFAULT),p=c?(0,nr.getTypeNodeNamedTypeName)(c.type):l;if(Ht.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,de.invalidRootTypeDefinitionError)(o,p,l));continue}let f=this.parentDefinitionDataByTypeName.get(p);if(c){if(!f)continue;this.operationTypeNodeByTypeName.set(p,o)}if(!f)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),f.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,de.operationDefinitionError)(p,o,f.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,de.undefinedTypeError)(o));continue}if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<0)&&this.warnings.push((0,vs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,On.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,de.invalidExternalDirectiveError)(o)):this.warnings.push((0,vs.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:X.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,X.print)(i),schema:(0,ile.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Ec.NormalizationFactory=Qp;function ule(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,p=new Set,f=new Set,y=[],g=new Set,v=new Map,P=[],k=[];for(let Z of e)Z.name&&(0,ale.recordSubgraphName)(Z.name,p,f);let K=new HO.Graph;for(let Z=0;Z0&&P.push(...fe.warnings),!fe.success){k.push((0,de.subgraphValidationError)(Te,fe.errors));continue}if(!fe){k.push((0,de.subgraphValidationError)(Te,[de.subgraphValidationFailureError]));continue}l.set(Te,fe.parentDefinitionDataByTypeName);for(let we of fe.authorizationDataByParentTypeName.values())(0,rr.upsertAuthorizationData)(t,we,g);for(let[we,Ve]of fe.fieldCoordsByNamedTypeName)(0,$e.addIterableValuesToSet)(Ve,(0,$e.getValueOrDefault)(v,we,()=>new Set));for(let[we,Ve]of fe.concreteTypeNamesByAbstractTypeName){let it=n.get(we);if(!it){n.set(we,new Set(Ve));continue}(0,$e.addIterableValuesToSet)(Ve,it)}for(let[we,Ve]of fe.entityDataByTypeName){let it=Ve.keyFieldSetDatasBySubgraphName.get(Te);it&&(0,rr.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:it,typeName:we,subgraphName:Te})}if(W.name&&i.set(Te,{conditionalFieldDataByCoordinates:fe.conditionalFieldDataByCoordinates,configurationDataByTypeName:fe.configurationDataByTypeName,definitions:fe.subgraphAST,entityInterfaces:fe.entityInterfaces,isVersionTwo:fe.isVersionTwo,keyFieldNamesByParentTypeName:fe.keyFieldNamesByParentTypeName,name:Te,operationTypes:fe.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:fe.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:fe.persistedDirectiveDefinitionDataByDirectiveName,schema:fe.schema,url:W.url}),!(fe.overridesByTargetSubgraphName.size<1))for(let[we,Ve]of fe.overridesByTargetSubgraphName){let it=p.has(we);for(let[ee,ve]of Ve){let gt=fe.originalTypeNameByRenamedTypeName.get(ee)||ee;if(!it)P.push((0,vs.invalidOverrideTargetSubgraphNameWarning)(we,gt,[...ve],W.name));else{let zt=(0,$e.getValueOrDefault)(a,we,()=>new Map),Wt=(0,$e.getValueOrDefault)(zt,ee,()=>new Set(ve));(0,$e.addIterableValuesToSet)(ve,Wt)}for(let zt of ve){let Wt=`${gt}.${zt}`,Dn=o.get(Wt);if(!Dn){o.set(Wt,[Te]);continue}Dn.push(Te),c.add(Wt)}}}}let G=[];if(g.size>0&&G.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...g])),(y.length>0||f.size>0)&&G.push((0,de.invalidSubgraphNamesError)([...f],y)),c.size>0){let Z=[];for(let W of c){let Te=(0,$e.getOrThrowError)(o,W,"overrideSourceSubgraphNamesByFieldPath");Z.push((0,de.duplicateOverriddenFieldErrorMessage)(W,Te))}G.push((0,de.duplicateOverriddenFieldsError)(Z))}if(G.push(...k),G.length>0)return{errors:G,success:!1,warnings:P};for(let[Z,W]of a){let Te=(0,$e.getOrThrowError)(i,Z,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=W;for(let[fe,we]of W){let Ve=Te.configurationDataByTypeName.get(fe);Ve&&((0,rr.subtractSet)(we,Ve.fieldNames),Ve.fieldNames.size<1&&Te.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:P}}});var AE=w(Ic=>{"use strict";m();T();N();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DivergentType=void 0;Ic.getLeastRestrictiveMergedTypeNode=lle;Ic.getMostRestrictiveMergedTypeNode=dle;Ic.renameNamedTypeName=ple;var hc=Ae(),Qq=ia(),cle=su(),$q=Yr(),Yq=ml(),yc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(yc||(Ic.DivergentType=yc={}));function Jq(e,t,n,r,i){t=(0,cle.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=yc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameRootTypes=Nle;var fle=Ae(),WO=Yr(),mle=AE(),Eu=ur(),gc=Jr();function Nle(e,t){let n,r=!1,i;(0,fle.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Eu.SERVICE_FIELD||o===Eu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,gc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),p=t.operationTypes.get(l.namedTypeName);if(p){let f=(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,p,Eu.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,mle.renameNamedTypeName)(l,f,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var Hq=w((Ql,Yp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",p=1,f=2,y=4,g=1,v=2,P=1,k=2,K=4,G=8,Z=16,W=32,Te=64,fe=128,we=256,Ve=512,it=30,ee="...",ve=800,gt=16,zt=1,Wt=2,Dn=3,Vt=1/0,dn=9007199254740991,Ar=17976931348623157e292,Rr=NaN,Un=4294967295,$t=Un-1,bn=Un>>>1,oe=[["ary",fe],["bind",P],["bindKey",k],["curry",G],["curryRight",Z],["flip",Ve],["partial",W],["partialRight",Te],["rearg",we]],De="[object Arguments]",_e="[object Array]",Le="[object AsyncFunction]",_t="[object Boolean]",J="[object Date]",se="[object DOMException]",xe="[object Error]",Qe="[object Function]",Lt="[object GeneratorFunction]",et="[object Map]",At="[object Number]",Ha="[object Null]",xr="[object Object]",za="[object Promise]",wc="[object Proxy]",ha="[object RegExp]",pr="[object Set]",ni="[object String]",xt="[object Symbol]",fr="[object Undefined]",gu="[object WeakMap]",ya="[object WeakSet]",_u="[object ArrayBuffer]",A="[object DataView]",h="[object Float32Array]",I="[object Float64Array]",C="[object Int8Array]",$="[object Int16Array]",re="[object Int32Array]",le="[object Uint8Array]",ft="[object Uint8ClampedArray]",pn="[object Uint16Array]",tn="[object Uint32Array]",hn=/\b__p \+= '';/g,Xt=/\b(__p \+=) '' \+/g,S1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,XD=/&(?:amp|lt|gt|quot|#39);/g,ZD=/[&<>"']/g,O1=RegExp(XD.source),D1=RegExp(ZD.source),b1=/<%-([\s\S]+?)%>/g,A1=/<%([\s\S]+?)%>/g,eb=/<%=([\s\S]+?)%>/g,R1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P1=/^\w*$/,F1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oh=/[\\^$.*+?()[\]{}|]/g,w1=RegExp(oh.source),uh=/^\s+/,L1=/\s/,C1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,B1=/\{\n\/\* \[wrapped with (.+)\] \*/,U1=/,? & /,k1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,M1=/[()=,{}\[\]\/\s]/,x1=/\\(\\)?/g,q1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tb=/\w*$/,V1=/^[-+]0x[0-9a-f]+$/i,j1=/^0b[01]+$/i,K1=/^\[object .+?Constructor\]$/,G1=/^0o[0-7]+$/i,$1=/^(?:0|[1-9]\d*)$/,Q1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ef=/($^)/,Y1=/['\n\r\u2028\u2029\\]/g,hf="\\ud800-\\udfff",J1="\\u0300-\\u036f",H1="\\ufe20-\\ufe2f",z1="\\u20d0-\\u20ff",nb=J1+H1+z1,rb="\\u2700-\\u27bf",ib="a-z\\xdf-\\xf6\\xf8-\\xff",W1="\\xac\\xb1\\xd7\\xf7",X1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z1="\\u2000-\\u206f",ej=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ab="A-Z\\xc0-\\xd6\\xd8-\\xde",sb="\\ufe0e\\ufe0f",ob=W1+X1+Z1+ej,ch="['\u2019]",tj="["+hf+"]",ub="["+ob+"]",yf="["+nb+"]",cb="\\d+",nj="["+rb+"]",lb="["+ib+"]",db="[^"+hf+ob+cb+rb+ib+ab+"]",lh="\\ud83c[\\udffb-\\udfff]",rj="(?:"+yf+"|"+lh+")",pb="[^"+hf+"]",dh="(?:\\ud83c[\\udde6-\\uddff]){2}",ph="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+ab+"]",fb="\\u200d",mb="(?:"+lb+"|"+db+")",ij="(?:"+Lc+"|"+db+")",Nb="(?:"+ch+"(?:d|ll|m|re|s|t|ve))?",Tb="(?:"+ch+"(?:D|LL|M|RE|S|T|VE))?",Eb=rj+"?",hb="["+sb+"]?",aj="(?:"+fb+"(?:"+[pb,dh,ph].join("|")+")"+hb+Eb+")*",sj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yb=hb+Eb+aj,uj="(?:"+[nj,dh,ph].join("|")+")"+yb,cj="(?:"+[pb+yf+"?",yf,dh,ph,tj].join("|")+")",lj=RegExp(ch,"g"),dj=RegExp(yf,"g"),fh=RegExp(lh+"(?="+lh+")|"+cj+yb,"g"),pj=RegExp([Lc+"?"+lb+"+"+Nb+"(?="+[ub,Lc,"$"].join("|")+")",ij+"+"+Tb+"(?="+[ub,Lc+mb,"$"].join("|")+")",Lc+"?"+mb+"+"+Nb,Lc+"+"+Tb,oj,sj,cb,uj].join("|"),"g"),fj=RegExp("["+fb+hf+nb+sb+"]"),mj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tj=-1,Tn={};Tn[h]=Tn[I]=Tn[C]=Tn[$]=Tn[re]=Tn[le]=Tn[ft]=Tn[pn]=Tn[tn]=!0,Tn[De]=Tn[_e]=Tn[_u]=Tn[_t]=Tn[A]=Tn[J]=Tn[xe]=Tn[Qe]=Tn[et]=Tn[At]=Tn[xr]=Tn[ha]=Tn[pr]=Tn[ni]=Tn[gu]=!1;var fn={};fn[De]=fn[_e]=fn[_u]=fn[A]=fn[_t]=fn[J]=fn[h]=fn[I]=fn[C]=fn[$]=fn[re]=fn[et]=fn[At]=fn[xr]=fn[ha]=fn[pr]=fn[ni]=fn[xt]=fn[le]=fn[ft]=fn[pn]=fn[tn]=!0,fn[xe]=fn[Qe]=fn[gu]=!1;var Ej={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},hj={"&":"&","<":"<",">":">",'"':""","'":"'"},yj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ij={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gj=parseFloat,_j=parseInt,Ib=typeof global=="object"&&global&&global.Object===Object&&global,vj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Ib||vj||Function("return this")(),mh=typeof Ql=="object"&&Ql&&!Ql.nodeType&&Ql,vu=mh&&typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,gb=vu&&vu.exports===mh,Nh=gb&&Ib.process,Ni=function(){try{var Q=vu&&vu.require&&vu.require("util").types;return Q||Nh&&Nh.binding&&Nh.binding("util")}catch(ce){}}(),_b=Ni&&Ni.isArrayBuffer,vb=Ni&&Ni.isDate,Sb=Ni&&Ni.isMap,Ob=Ni&&Ni.isRegExp,Db=Ni&&Ni.isSet,bb=Ni&&Ni.isTypedArray;function ri(Q,ce,ie){switch(ie.length){case 0:return Q.call(ce);case 1:return Q.call(ce,ie[0]);case 2:return Q.call(ce,ie[0],ie[1]);case 3:return Q.call(ce,ie[0],ie[1],ie[2])}return Q.apply(ce,ie)}function Sj(Q,ce,ie,Be){for(var ot=-1,jt=Q==null?0:Q.length;++ot-1}function Th(Q,ce,ie){for(var Be=-1,ot=Q==null?0:Q.length;++Be-1;);return ie}function Bb(Q,ce){for(var ie=Q.length;ie--&&Cc(ce,Q[ie],0)>-1;);return ie}function Lj(Q,ce){for(var ie=Q.length,Be=0;ie--;)Q[ie]===ce&&++Be;return Be}var Cj=Ih(Ej),Bj=Ih(hj);function Uj(Q){return"\\"+Ij[Q]}function kj(Q,ce){return Q==null?e:Q[ce]}function Bc(Q){return fj.test(Q)}function Mj(Q){return mj.test(Q)}function xj(Q){for(var ce,ie=[];!(ce=Q.next()).done;)ie.push(ce.value);return ie}function Sh(Q){var ce=-1,ie=Array(Q.size);return Q.forEach(function(Be,ot){ie[++ce]=[ot,Be]}),ie}function Ub(Q,ce){return function(ie){return Q(ce(ie))}}function xo(Q,ce){for(var ie=-1,Be=Q.length,ot=0,jt=[];++ie-1}function DK(s,u){var d=this.__data__,E=kf(d,s);return E<0?(++this.size,d.push([s,u])):d[E][1]=u,this}Wa.prototype.clear=_K,Wa.prototype.delete=vK,Wa.prototype.get=SK,Wa.prototype.has=OK,Wa.prototype.set=DK;function Xa(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function yi(s,u,d,E,S,L){var M,j=u&p,H=u&f,pe=u&y;if(d&&(M=S?d(s,E,S,L):d(s)),M!==e)return M;if(!_n(s))return s;var me=lt(s);if(me){if(M=PG(s),!j)return qr(s,M)}else{var Ee=Er(s),be=Ee==Qe||Ee==Lt;if(Qo(s))return h0(s,j);if(Ee==xr||Ee==De||be&&!S){if(M=H||be?{}:k0(s),!j)return H?yG(s,jK(M,s)):hG(s,Jb(M,s))}else{if(!fn[Ee])return S?s:{};M=FG(s,Ee,j)}}L||(L=new Qi);var je=L.get(s);if(je)return je;L.set(s,M),pA(s)?s.forEach(function(Ze){M.add(yi(Ze,u,d,Ze,s,L))}):lA(s)&&s.forEach(function(Ze,vt){M.set(vt,yi(Ze,u,d,vt,s,L))});var Xe=pe?H?zh:Hh:H?jr:ar,Et=me?e:Xe(s);return Ti(Et||s,function(Ze,vt){Et&&(vt=Ze,Ze=s[vt]),ld(M,vt,yi(Ze,u,d,vt,s,L))}),M}function KK(s){var u=ar(s);return function(d){return Hb(d,s,u)}}function Hb(s,u,d){var E=d.length;if(s==null)return!E;for(s=on(s);E--;){var S=d[E],L=u[S],M=s[S];if(M===e&&!(S in s)||!L(M))return!1}return!0}function zb(s,u,d){if(typeof s!="function")throw new Ei(i);return Ed(function(){s.apply(e,d)},u)}function dd(s,u,d,E){var S=-1,L=If,M=!0,j=s.length,H=[],pe=u.length;if(!j)return H;d&&(u=yn(u,ii(d))),E?(L=Th,M=!1):u.length>=n&&(L=id,M=!1,u=new Du(u));e:for(;++SS?0:S+d),E=E===e||E>S?S:Nt(E),E<0&&(E+=S),E=d>E?0:mA(E);d0&&d(j)?u>1?mr(j,u-1,d,E,S):Mo(S,j):E||(S[S.length]=j)}return S}var Fh=S0(),Zb=S0(!0);function Ia(s,u){return s&&Fh(s,u,ar)}function wh(s,u){return s&&Zb(s,u,ar)}function xf(s,u){return ko(u,function(d){return rs(s[d])})}function Au(s,u){u=Go(u,s);for(var d=0,E=u.length;s!=null&&du}function QK(s,u){return s!=null&&Zt.call(s,u)}function YK(s,u){return s!=null&&u in on(s)}function JK(s,u,d){return s>=Tr(u,d)&&s=120&&me.length>=120)?new Du(M&&me):e}me=s[0];var Ee=-1,be=j[0];e:for(;++Ee-1;)j!==s&&Pf.call(j,H,1),Pf.call(s,H,1);return s}function l0(s,u){for(var d=s?u.length:0,E=d-1;d--;){var S=u[d];if(d==E||S!==L){var L=S;ns(S)?Pf.call(s,S,1):jh(s,S)}}return s}function xh(s,u){return s+Lf(Gb()*(u-s+1))}function oG(s,u,d,E){for(var S=-1,L=Jn(wf((u-s)/(d||1)),0),M=ie(L);L--;)M[E?L:++S]=s,s+=d;return M}function qh(s,u){var d="";if(!s||u<1||u>dn)return d;do u%2&&(d+=s),u=Lf(u/2),u&&(s+=s);while(u);return d}function yt(s,u){return ry(q0(s,u,Kr),s+"")}function uG(s){return Yb($c(s))}function cG(s,u){var d=$c(s);return zf(d,bu(u,0,d.length))}function md(s,u,d,E){if(!_n(s))return s;u=Go(u,s);for(var S=-1,L=u.length,M=L-1,j=s;j!=null&&++SS?0:S+u),d=d>S?S:d,d<0&&(d+=S),S=u>d?0:d-u>>>0,u>>>=0;for(var L=ie(S);++E>>1,M=s[L];M!==null&&!si(M)&&(d?M<=u:M=n){var pe=u?null:vG(s);if(pe)return _f(pe);M=!1,S=id,H=new Du}else H=u?[]:j;e:for(;++E=E?s:Ii(s,u,d)}var E0=eK||function(s){return ir.clearTimeout(s)};function h0(s,u){if(u)return s.slice();var d=s.length,E=xb?xb(d):new s.constructor(d);return s.copy(E),E}function Qh(s){var u=new s.constructor(s.byteLength);return new Af(u).set(new Af(s)),u}function mG(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function NG(s){var u=new s.constructor(s.source,tb.exec(s));return u.lastIndex=s.lastIndex,u}function TG(s){return cd?on(cd.call(s)):{}}function y0(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function I0(s,u){if(s!==u){var d=s!==e,E=s===null,S=s===s,L=si(s),M=u!==e,j=u===null,H=u===u,pe=si(u);if(!j&&!pe&&!L&&s>u||L&&M&&H&&!j&&!pe||E&&M&&H||!d&&H||!S)return 1;if(!E&&!L&&!pe&&s=j)return H;var pe=d[E];return H*(pe=="desc"?-1:1)}}return s.index-u.index}function g0(s,u,d,E){for(var S=-1,L=s.length,M=d.length,j=-1,H=u.length,pe=Jn(L-M,0),me=ie(H+pe),Ee=!E;++j1?d[S-1]:e,M=S>2?d[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,M&&Fr(d[0],d[1],M)&&(L=S<3?e:L,S=1),u=on(u);++E-1?S[L?u[M]:M]:e}}function b0(s){return ts(function(u){var d=u.length,E=d,S=hi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Ei(i);if(S&&!M&&Jf(L)=="wrapper")var M=new hi([],!0)}for(E=M?E:d;++E1&&Rt.reverse(),me&&Hj))return!1;var pe=L.get(s),me=L.get(u);if(pe&&me)return pe==u&&me==s;var Ee=-1,be=!0,je=d&v?new Du:e;for(L.set(s,u),L.set(u,s);++Ee1?"& ":"")+u[E],u=u.join(d>2?", ":" "),s.replace(C1,`{ +`+r;return{outputEnd:r,outputStart:n,pathNodes:t}}function Vq({outputEnd:e,outputStart:t,pathNodes:n},r){return t+Tc.LITERAL_SPACE.repeat(n.length+1)+Zce(r,n.length)+e}function ele(e,t){return t?e?`${t}${e}`:t:e}function tle({entityAncestorData:e,errors:t,nodeResolutionDataByFieldPath:n,pathFromRoot:r,rootFieldData:i,unresolvableFieldPaths:a}){let o=[];for(let c of a){let l=(0,Mq.getOrThrowError)(n,c,"nodeResolutionDataByFieldPath"),p=new Map;for(let[g,v]of l.fieldDataByFieldName)l.resolvedFieldNames.has(g)||p.set(g,v);let f=ele(c,r),y=qq(f);for(let[g,v]of p)o.push({fieldName:g,selectionSet:Vq(y,v),subgraphNames:v.subgraphNames,typeName:l.typeName})}for(let c of o)t.push((0,kq.unresolvablePathError)(c,xq({rootFieldData:i,unresolvableFieldData:c,entityAncestorData:e})))}});var YO=w(SE=>{"use strict";m();T();N();Object.defineProperty(SE,"__esModule",{value:!0});SE.Graph=void 0;var Gl=jO(),$l=GO(),jq=ur(),Ur=Jr(),$O=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodes",new Map);_(this,"entityNodeNamesBySharedFieldPath",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"rootNodeByRootTypeName",new Map);_(this,"subgraphName",jq.NOT_APPLICABLE);_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);_(this,"nodeResolutionDataByFieldPath",new Map);_(this,"unresolvableFieldPaths",new Set);_(this,"failureResultByEntityNodeName",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ur.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Gl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ur.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Gl.Edge(this.getNextEdgeId(),n,r);return(0,Ur.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(c),c}let a=t,o=new Gl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gl.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(jq.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByFieldName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c||[]){if(l===a.subgraphName)continue;let p=this.nodeByNodeName.get(`${l}.${a.typeName}`);p&&a.entityEdges.push(new Gl.Edge(this.getNextEdgeId(),p,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,a]of t){let o=a.size>1,c,l=o?new Map:void 0,p=new Set,f=new Map;for(let y of a){let g=this.nodeByNodeName.get(y);if(!g)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let $=this.failureResultByEntityNodeName.get(y);if(!$){c=void 0;break}if(!o)return $}let F=this.nodesByTypeName.get(g.typeName)||[],k=(0,Ur.getValueOrDefault)(r,y,()=>o?f:new Map),K=new QO({interSubgraphNodes:F,entityNodeNamesBySharedFieldPath:k,originNode:g,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:p});if(K.visitEntityNode(g),K.unresolvableFieldPaths.size>0){if(o&&p.size<1){c=void 0;break}c={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,Ur.getOrThrowError)(this.entityDataNodes,g.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:g.subgraphName,typeName:g.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:g.typeName,unresolvableFieldPaths:o?p:K.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,c);continue}c=void 0;break}if(c)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(c.nodeName,l),c}if(r.size>0)for(let[i,a]of r){let o=this.validateEntities(a,n);if(!o.success){for(let[c,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(c);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let c of i){if(c.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(c,`${n.typeName.toLowerCase()}`)}let a=(0,Ur.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,$l.newRootFieldData)(n.typeName,r,a.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let c=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);c.success||this.generateEntityResolvabilityErrors(c,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,Ur.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,a]of t.headToTailEdges)this.visitEdge(a,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,Ur.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),a="";for(let o of t.parentFieldPathForEntityReference)a=o+a;(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:a,entityAncestorData:t.entityAncestorData})}};SE.Graph=$O;var QO=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:a,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:c}){_(this,"entityNodeNamesBySharedFieldPath");_(this,"interSubgraphNodes");_(this,"originNode");_(this,"resolvableFieldNamesByRelativeFieldPath");_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");_(this,"unresolvableFieldPaths",new Set);_(this,"unresolvableSharedFieldPaths");_(this,"walkerIndex");_(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=a,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=c}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,Ur.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[a,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(a),i==null||i.add(a));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var JO=w(OE=>{"use strict";m();T();N();Object.defineProperty(OE,"__esModule",{value:!0});OE.newFieldSetConditionData=nle;OE.newConfigurationData=rle;function nle({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function rle(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var zO=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.NormalizationFactory=void 0;Ec.normalizeSubgraphFromString=ole;Ec.normalizeSubgraph=Gq;Ec.batchNormalize=ule;var Z=Ae(),On=Yr(),ei=Kp(),Ht=Es(),rr=jp(),de=ia(),DE=Up(),ile=lv(),ma=WT(),ale=wO(),vs=IE(),Kq=kO(),Ga=Ep(),Nn=El(),nr=su(),HO=YO(),bE=mv(),te=ur(),sle=ml(),$e=Jr(),$p=JO();function ole(e,t=!0){let{error:n,documentNode:r}=(0,On.safeParse)(e,t);return n||!r?{errors:[(0,de.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Qp(new HO.Graph).normalize(r)}function Gq(e,t,n){return new Qp(n||new HO.Graph,t).normalize(e)}var Qp=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ei.initializeDirectiveDefinitionDatas)());_(this,"edfsDirectiveReferences",new Set);_(this,"errors",[]);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isCurrentParentExtension",!1);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",Z.Kind.NULL);_(this,"lastChildNodeKind",Z.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetDataByTypeName",new Map);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of Ht.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||te.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:Z.Kind.SCHEMA_DEFINITION,name:te.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,nr.getTypeNodeNamedTypeName)(r.type);if(Ht.BASE_SCALARS.has(i)){r.namedTypeKind=Z.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Nn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,de.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,$e.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return te.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===Z.Kind.NULL)return t.kind!==Z.Kind.NON_NULL_TYPE;switch(t.kind){case Z.Kind.LIST_TYPE:{if(n.kind!==Z.Kind.LIST)return this.isArgumentValueValid((0,nr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case Z.Kind.NAMED_TYPE:switch(t.name.value){case te.BOOLEAN_SCALAR:return n.kind===Z.Kind.BOOLEAN;case te.FLOAT_SCALAR:return n.kind===Z.Kind.FLOAT||n.kind===Z.Kind.INT;case te.ID_SCALAR:return n.kind===Z.Kind.STRING||n.kind===Z.Kind.INT;case te.INT_SCALAR:return n.kind===Z.Kind.INT;case te.FIELD_SET_SCALAR:case te.SCOPE_SCALAR:case te.STRING_SCALAR:return n.kind===Z.Kind.STRING;case te.LINK_IMPORT:return!0;case te.LINK_PURPOSE:return n.kind!==Z.Kind.ENUM?!1:n.value===te.SECURITY||n.value===te.EXECUTION;case te.SUBSCRIPTION_FIELD_CONDITION:case te.SUBSCRIPTION_FILTER_CONDITION:return n.kind===Z.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===Z.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===Z.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==Z.Kind.ENUM)return!1;let i=r.enumValueDataByValueName.get(n.value);return i?!i.directivesByDirectiveName.has(te.INACCESSIBLE):!1}return r.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===Z.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}addInheritedDirectivesToFieldData(t,n){return this.isParentObjectShareable&&!t.has(te.SHAREABLE)&&(t.set(te.SHAREABLE,[(0,$e.generateSimpleDirective)(te.SHAREABLE)]),n.add(te.SHAREABLE)),this.isParentObjectExternal&&!t.has(te.EXTERNAL)&&(t.set(te.EXTERNAL,[(0,$e.generateSimpleDirective)(te.EXTERNAL)]),n.add(te.EXTERNAL)),t}extractDirectives(t,n){if(!t.directives)return n;for(let r of t.directives){let i=r.name.value;i===te.SHAREABLE?(0,$e.getValueOrDefault)(n,i,()=>[r]):(0,$e.getValueOrDefault)(n,i,()=>[]).push(r),(0,rr.isNodeKindObject)(t.kind)&&(this.isParentObjectExternal||(this.isParentObjectExternal=i===te.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=i===te.SHAREABLE))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===Z.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,p=c===te.AUTHENTICATED,f=c===te.OVERRIDE,y=c===te.REQUIRES_SCOPES;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,[])),p&&this.handleAuthenticatedDirective(t,l),a;let g=new Set,v=new Set,F=new Set,k=[];for(let ne of i.arguments){let z=ne.name.value;if(g.has(z)){v.add(z);continue}g.add(z);let Te=n.argumentTypeNodeByArgumentName.get(z);if(!Te){F.add(z);continue}if(!this.isArgumentValueValid(Te.typeNode,ne.value)){a.push((0,de.invalidArgumentValueErrorMessage)((0,Z.print)(ne.value),`@${c}`,z,(0,ma.printTypeNode)(Te.typeNode)));continue}if(f&&t.kind===Z.Kind.FIELD_DEFINITION){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:ne.value.value});continue}!y||z!==te.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:ne.value.values,requiredScopes:k})}v.size>0&&a.push((0,de.duplicateDirectiveArgumentDefinitionsErrorMessage)([...v])),F.size>0&&a.push((0,de.unexpectedDirectiveArgumentErrorMessage)(c,[...F]));let K=(0,$e.getEntriesNotInHashSet)(o,g);if(K.length>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,K)),a.length>0||!y)return a;let $=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rr.newAuthorizationData)(l));if(t.kind!==Z.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),$.requiredScopes.push(...k);else{let ne=(0,$e.getValueOrDefault)($.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));ne.inheritedData.requiredScopes.push(...k),ne.originalData.requiredScopes.push(...k)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,de.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,On.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,de.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),c.push((0,de.invalidRepeatedDirectiveErrorMessage)(i)))}let p=[...o.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,de.invalidDirectiveError)(i,n,(0,$e.numberToOrdinal)(f+1),y))}}switch(t.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByValueName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?Ga.ExtensionType.REAL:r||!n.has(te.EXTENDS)?Ga.ExtensionType.NONE:Ga.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Ga.ExtensionType.EXTENDS:case Ga.ExtensionType.NONE:{if(n===Ga.ExtensionType.REAL)return;this.errors.push((0,de.duplicateTypeDefinitionError)((0,$e.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case te.PROPAGATE:{if(o.value.kind!=Z.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case te.DESCRIPTION_OVERRIDE:{if(o.value.kind!=Z.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(te.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateImplementedInterfaceError)((0,rr.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(te.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(te.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,de.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByArgumentName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!te.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!DE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,de.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,de.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByArgumentName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let p=l.name.value;if(r.has(p)){c.add(p);continue}l.defaultValue&&i.add(p),(0,Nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(p),r.set(p,{name:p,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,de.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,de.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),Ht.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(Ht.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByArgumentName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByArgumentName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,de.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:p,isShareable:f}=(0,Nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,nr.getTypeNodeNamedTypeName)(n.type),g={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Nn.newExternalFieldData)(p)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(te.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,f]]),kind:Z.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Ht.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableFieldNode)(n,l,this.errors),originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,On.formatDescription)(n.description)};return Ht.BASE_SCALARS.has(g.namedTypeName)||this.referencedTypeNames.add(g.namedTypeName),this.extractConfigureDescriptionsData(g),t.set(o,g),g}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,p=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,de.incompatibleInputValueDefaultValueTypeError)((r?te.ARGUMENT:te.INPUT_FIELD)+` "${l}"`,p,(0,ma.printTypeNode)(i.type),(0,Z.print)(i.defaultValue)));let f=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,nr.getTypeNodeNamedTypeName)(i.type),g={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?Z.Kind.ARGUMENT:Z.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Ht.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableInputValueNode)(i,a,this.errors),originalCoords:p,originalParentTypeName:a,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,Nn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,On.formatDescription)(i.description)};this.extractConfigureDescriptionsData(g),n.set(l,g)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let p of t.fields)c.interfaceFieldNames.add(p.name.value);if(i){if(i.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(te.KEY),isInaccessible:a.has(te.INACCESSIBLE),kind:Z.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Z.OperationTypeNode.MUTATION:return te.MUTATION;case Z.OperationTypeNode.SUBSCRIPTION:return te.SUBSCRIPTION;default:return te.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(te.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(te.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let p={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(te.KEY),isInaccessible:a.has(te.INACCESSIBLE),isRootType:o,kind:Z.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(p),this.parentDefinitionDataByTypeName.set(r,p)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(te.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByValueName:new Map,isInaccessible:a.has(te.INACCESSIBLE),kind:Z.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,nr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(te.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(te.INACCESSIBLE),kind:Z.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==Z.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,nr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateUnionMemberDefinitionError)(r,a));continue}(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Ht.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Z.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:Z.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,nr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,de.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==te.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===te.RESOLVABLE){v.value.kind===Z.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==te.FIELDS){c=void 0;break}if(v.value.kind!==Z.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:p,documentNode:f}=(0,On.safeParse)("{"+c+"}");if(p||!f){this.errors.push((0,de.invalidDirectiveError)(te.KEY,r,(0,$e.numberToOrdinal)(i),[(0,de.unparsableFieldSetErrorMessage)(c,p)]));continue}let y=(0,ei.getNormalizedFieldSet)(f),g=n.get(y);g?g.isUnresolvable||(g.isUnresolvable=l):n.set(y,{documentNode:f,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,$e.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,nr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==Z.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,de.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,On.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,de.unparsableFieldSetErrorMessage)(n,o)]};let l=this,p=[t],f=(0,ei.getConditionalFieldSetDirectiveName)(i),y=[],g=`${a}.${r}`,v=(0,ei.getInitialFieldCoordsPath)(i,g),F=[r],k=new Set,K=[],$=-1,ne=!0,z=r,Te=!1;return(0,Z.visit)(c,{Argument:{enter(){return!1}},Field:{enter(pe){let Fe=p[$],Ve=Fe.name;if(Fe.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.invalidSelectionOnUnionErrorMessage)(n,v,Ve)),Z.BREAK;let et=pe.name.value,X=`${Ve}.${et}`;if(l.unvalidatedExternalFieldCoords.delete(X),ne)return K.push((0,de.invalidSelectionSetErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(Fe.kind))),Z.BREAK;v.push(X),F.push(et),z=et;let ve=Fe.fieldDataByName.get(et);if(!ve)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,Ve,et)),Z.BREAK;if(y[$].has(et))return K.push((0,de.duplicateFieldInFieldSetErrorMessage)(n,X)),Z.BREAK;y[$].add(et);let{isDefinedExternal:gt,isUnconditionallyProvided:zt}=(0,$e.getOrThrowError)(ve.externalFieldDataBySubgraphName,l.subgraphName,`${X}.externalFieldDataBySubgraphName`),Wt=gt&&!zt;zt||(Te=!0);let Dn=(0,nr.getTypeNodeNamedTypeName)(ve.node.type),Vt=l.parentDefinitionDataByTypeName.get(Dn);if(Ht.BASE_SCALARS.has(Dn)||(Vt==null?void 0:Vt.kind)===Z.Kind.SCALAR_TYPE_DEFINITION||(Vt==null?void 0:Vt.kind)===Z.Kind.ENUM_TYPE_DEFINITION){if(k.size<1&&!gt){if(l.isSubgraphVersionTwo){l.errors.push((0,de.nonExternalConditionalFieldError)(g,l.subgraphName,X,n,f));return}l.warnings.push((0,vs.nonExternalConditionalFieldWarning)(g,l.subgraphName,X,n,f));return}if(k.size<1&&zt){l.isSubgraphVersionTwo?K.push((0,de.fieldAlreadyProvidedErrorMessage)(X,l.subgraphName,f)):l.warnings.push((0,vs.fieldAlreadyProvidedWarning)(X,f,g,l.subgraphName));return}if(!Wt&&!i)return;let dn=(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,X,Nn.newConditionalFieldData),Ar=(0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]});i?dn.providedBy.push(Ar):dn.requiredBy.push(Ar);return}if(!Vt)return K.push((0,de.unknownTypeInFieldSetErrorMessage)(n,X,Dn)),Z.BREAK;if(gt&&(i&&(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,X,Nn.newConditionalFieldData).providedBy.push((0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...F]})),k.add(X)),Vt.kind===Z.Kind.OBJECT_TYPE_DEFINITION||Vt.kind===Z.Kind.INTERFACE_TYPE_DEFINITION||Vt.kind===Z.Kind.UNION_TYPE_DEFINITION){ne=!0,p.push(Vt);return}},leave(){k.delete(v.pop()||""),F.pop()}},InlineFragment:{enter(pe){let Fe=p[$],Ve=Fe.name,et=v.length<1?t.name:v[v.length-1];if(!pe.typeCondition)return K.push((0,de.inlineFragmentWithoutTypeConditionErrorMessage)(n,et)),Z.BREAK;let X=pe.typeCondition.name.value;if(X===Ve){p.push(Fe),ne=!0;return}if(!(0,On.isKindAbstract)(Fe.kind))return K.push((0,de.invalidInlineFragmentTypeErrorMessage)(n,v,X,Ve)),Z.BREAK;let ve=l.parentDefinitionDataByTypeName.get(X);if(!ve)return K.push((0,de.unknownInlineFragmentTypeConditionErrorMessage)(n,v,Ve,X)),Z.BREAK;switch(ne=!0,ve.kind){case Z.Kind.INTERFACE_TYPE_DEFINITION:{if(!ve.implementedInterfaceTypeNames.has(Ve))break;p.push(ve);return}case Z.Kind.OBJECT_TYPE_DEFINITION:{let gt=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!gt||!gt.has(X))break;p.push(ve);return}case Z.Kind.UNION_TYPE_DEFINITION:{p.push(ve);return}default:return K.push((0,de.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,Ve,X,(0,$e.kindToNodeType)(ve.kind))),Z.BREAK}return K.push((0,de.invalidInlineFragmentTypeConditionErrorMessage)(n,v,X,(0,$e.kindToNodeType)(Fe.kind),Ve)),Z.BREAK}},SelectionSet:{enter(){if(!ne){let pe=p[$];if(pe.kind===Z.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,z)),Z.BREAK;let Fe=pe.fieldDataByName.get(z);if(!Fe)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,pe.name,z)),Z.BREAK;let Ve=(0,nr.getTypeNodeNamedTypeName)(Fe.node.type),et=l.parentDefinitionDataByTypeName.get(Ve),X=et?et.kind:Z.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(X))),Z.BREAK}if($+=1,ne=!1,$<0||$>=p.length)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,z)),Z.BREAK;y.push(new Set)},leave(){if(ne){let pe=p[$+1];K.push((0,de.invalidSelectionSetErrorMessage)(n,v,pe.name,(0,$e.kindToNodeType)(pe.kind))),ne=!1}$-=1,p.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ei.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,Nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:p,errorString:f}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(f){i.push(f);continue}if(!p)continue;let{errorMessages:g,configuration:v}=this.validateConditionalFieldSet(p,l,c,r,o);if(g.length>0){i.push(` On field "${y}": + -`+g.join(te.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,de.invalidProvidesOrRequiresDirectivesError)((0,ei.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(te.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(Ht.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,$e.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[f,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let g=!1,v=t.fieldDataByName.get(f);if(!v){p=!0,l.unimplementedFields.push(f);continue}let F={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ma.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Nn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,g=!0,F.implementedResponseType=(0,ma.printTypeNode)(v.node.type));let k=new Set;for(let[K,$]of y.argumentDataByName){k.add(K);let ne=v.argumentDataByName.get(K);if(!ne){p=!0,g=!0,F.unimplementedArguments.add(K);continue}let z=(0,ma.printTypeNode)(ne.type),Te=(0,ma.printTypeNode)($.type);Te!==z&&(p=!0,g=!0,F.invalidImplementedArguments.push({actualType:z,argumentName:K,expectedType:Te}))}for(let[K,$]of v.argumentDataByName)k.has(K)||$.type.kind===Z.Kind.NON_NULL_TYPE&&(p=!0,g=!0,F.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(p=!0,g=!0,F.isInaccessible=!0),g&&l.invalidFieldImplementations.set(f,F)}p&&r.set(o,l)}i.size>0&&this.errors.push((0,de.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,de.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,de.invalidInterfaceImplementationError)(t.name,(0,$e.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,rr.newAuthorizationData)(n));if(t.kind===Z.Kind.FIELD_DEFINITION){let i=(0,$e.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,de.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,$e.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,$e.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Ht.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,rr.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=te.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case te.TOPIC:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(te.TOPIC));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case te.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:te.PROVIDER_TYPE_KAFKA,topics:a,type:te.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=te.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case te.TOPICS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(te.TOPICS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(te.TOPICS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case te.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:te.PROVIDER_TYPE_KAFKA,topics:a,type:te.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=te.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case te.SUBJECT:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push((0,de.invalidEventSubjectErrorMessage)(te.SUBJECT));continue}(0,ei.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case te.PROVIDER_ID:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push(de.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:te.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=te.DEFAULT_EDFS_PROVIDER_ID,c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",p="";for(let f of t.arguments||[])switch(f.name.value){case te.SUBJECTS:{if(f.value.kind!==Z.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(te.SUBJECTS));continue}for(let y of f.value.values){if(y.kind!==Z.Kind.STRING||y.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(te.SUBJECTS));break}(0,ei.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case te.PROVIDER_ID:{if(f.value.kind!==Z.Kind.STRING||f.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=f.value.value;break}case te.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==Z.Kind.OBJECT||f.value.fields.length<1){i.push(de.invalidNatsStreamInputErrorMessage);continue}let y=!0,g=new Set,v=new Set(DE.STREAM_CONFIGURATION_FIELD_NAMES),F=new Set([te.CONSUMER_NAME,te.STREAM_NAME]),k=new Set,K=new Set;for(let $ of f.value.fields){let ne=$.name.value;if(!DE.STREAM_CONFIGURATION_FIELD_NAMES.has(ne)){g.add(ne),y=!1;continue}if(v.has(ne))v.delete(ne);else{k.add(ne),y=!1;continue}switch(F.has(ne)&&F.delete(ne),ne){case te.CONSUMER_NAME:if($.value.kind!=Z.Kind.STRING||$.value.value.length<1){K.add(ne),y=!1;continue}l=$.value.value;break;case te.STREAM_NAME:if($.value.kind!=Z.Kind.STRING||$.value.value.length<1){K.add(ne),y=!1;continue}p=$.value.value;break;case te.CONSUMER_INACTIVE_THRESHOLD:if($.value.kind!=Z.Kind.INT){i.push((0,de.invalidArgumentValueErrorMessage)((0,Z.print)($.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",te.INT_SCALAR)),y=!1;continue}try{c=parseInt($.value.value,10)}catch(z){i.push((0,de.invalidArgumentValueErrorMessage)((0,Z.print)($.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",te.INT_SCALAR)),y=!1}break}}(!y||F.size>0)&&i.push((0,de.invalidNatsStreamInputFieldsErrorMessage)([...F],[...k],[...K],[...g]))}}if(!(i.length>0))return c<0?(c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>sle.MAX_INT32&&(c=0,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:te.PROVIDER_TYPE_NATS,subjects:a,type:te.SUBSCRIBE},l&&p?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:p}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=te.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case te.CHANNEL:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(te.CHANNEL));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case te.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:te.PROVIDER_TYPE_REDIS,channels:a,type:te.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=te.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case te.CHANNELS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(te.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(te.CHANNELS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case te.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:te.PROVIDER_TYPE_REDIS,channels:a,type:te.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Z.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===te.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,de.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case te.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case te.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case te.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(te.PUBLISH,a,n,r,o);break}case te.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(te.REQUEST,a,n,r,o);break}case te.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case te.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case te.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,de.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,$e.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Z.OperationTypeNode.MUTATION:return new Set([te.EDFS_KAFKA_PUBLISH,te.EDFS_NATS_PUBLISH,te.EDFS_NATS_REQUEST,te.EDFS_REDIS_PUBLISH]);case Z.OperationTypeNode.QUERY:return new Set([te.EDFS_NATS_REQUEST]);case Z.OperationTypeNode.SUBSCRIPTION:return new Set([te.EDFS_KAFKA_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case te.MUTATION:return Z.OperationTypeNode.MUTATION;case te.QUERY:return Z.OperationTypeNode.QUERY;case te.SUBSCRIPTION:return Z.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,de.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let p=`${l.originalParentTypeName}.${c}`,f=new Set;for(let K of DE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&f.add(K);let y=new Set;for(let K of f)o.has(K)||y.add(K);if((f.size<1||y.size>0)&&n.set(p,{definesDirectives:f.size>0,invalidDirectiveNames:[...y]}),a===Z.OperationTypeNode.MUTATION){let K=(0,ma.printTypeNode)(l.type);K!==te.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(p,K);continue}let g=(0,ma.printTypeNode)(l.type),v=l.namedTypeName+"!",F=!1,k=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of k)if(F||(F=this.entityDataByTypeName.has(K)),F)break;(!F||g!==v)&&r.set(p,g)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,$e.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(te.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Z.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==te.SUCCESS||(0,ma.printTypeNode)(r.type)!==te.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case te.CONSUMER_INACTIVE_THRESHOLD:{if((0,ma.printTypeNode)(r.type)!==te.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Z.Kind.INT||r.defaultValue.value!==`${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case te.CONSUMER_NAME:case te.STREAM_NAME:{if((0,ma.printTypeNode)(r.type)!==te.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,p=new Set,f=new Set;for(let[y,g]of this.parentDefinitionDataByTypeName){if(y===te.EDFS_PUBLISH_RESULT||y===te.EDFS_NATS_STREAM_CONFIGURATION||g.kind!==Z.Kind.OBJECT_TYPE_DEFINITION)continue;if(g.isRootType){this.validateEventDrivenRootType(g,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){f.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(g.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(de.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(te.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(te.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(de.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(te.EDFS_NATS_STREAM_CONFIGURATION),t.push(Ht.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}this.referencedDirectiveNames.has(te.LINK)&&(t.push(Ht.LINK_DEFINITION),t.push(Ht.LINK_IMPORT_DEFINITION),t.push(Ht.LINK_PURPOSE_DEFINITION)),r.size>0&&n.push((0,de.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,de.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,de.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,de.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,de.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,de.nonKeyFieldNamesEventDrivenErrorMessage)(l)),p.size>0&&n.push((0,de.nonEntityObjectExtensionsEventDrivenErrorMessage)([...p])),f.size>0&&n.push((0,de.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...f])),n.length>0&&this.errors.push((0,de.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,de.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,$e.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,de.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!0,i)),o=(0,ei.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&te.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(a)||(f.add(a),this.errors.push((0,de.invalidDirectiveError)(a,n,"1st",[(0,de.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==te.KEY){i.push(...o);continue}let l=[],p=new Set;for(let f=0;fnew Set).add(k)),(0,$e.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(F);let ne=(0,nr.getTypeNodeNamedTypeName)(K.node.type);if(Ht.BASE_SCALARS.has(ne))return;let z=a.parentDefinitionDataByTypeName.get(ne);if(!z)return Z.BREAK;if(z.kind===Z.Kind.OBJECT_TYPE_DEFINITION){f=!0,c.push(z);return}if((0,On.isKindAbstract)(z.kind))return Z.BREAK}},InlineFragment:{enter(){return Z.BREAK}},SelectionSet:{enter(){if(!f||(p+=1,f=!1,p<0||p>=c.length))return Z.BREAK},leave(){f&&(f=!1),p-=1,c.pop()}}}),!(l.size<1))for(let[y,g]of l)this.warnings.push((0,vs.externalEntityExtensionKeyFieldWarning)(i.name,y,[...g],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}normalize(t){var a;(0,Kq.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,Kq.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,te.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of Ht.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(Ht.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of Ht.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(Ht.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=Ht.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,de.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(te.SUBSCRIPTION_FILTER)&&(n.push(Ht.SUBSCRIPTION_FILTER_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(te.CONFIGURE_DESCRIPTION)&&n.push(Ht.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(te.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(Ht.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,de.configureDescriptionNoDescriptionError)((0,$e.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case Z.Kind.ENUM_TYPE_DEFINITION:if(c.enumValueDataByValueName.size<1){this.errors.push((0,de.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break;case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(c.inputValueDataByName.size<1){this.errors.push((0,de.noInputValueDefinitionsError)(o));break}for(let K of c.inputValueDataByName.values()){if(K.namedTypeKind!==Z.Kind.NULL)continue;let $=this.parentDefinitionDataByTypeName.get(K.namedTypeName);if($){if(!(0,Nn.isInputNodeKind)($.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:K,namedTypeData:$,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}K.namedTypeKind=$.kind}}n.push(this.getInputObjectNodeByData(c));break;case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:let l=this.entityDataByTypeName.has(o),p=this.operationTypeNodeByTypeName.get(o),f=c.kind===Z.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===Ga.ExtensionType.EXTENDS&&(c.extensionType=Ga.ExtensionType.NONE),p&&(c.fieldDataByName.delete(te.SERVICE_FIELD),c.fieldDataByName.delete(te.ENTITIES_FIELD));let y=[];for(let[K,$]of c.fieldDataByName){if(!f&&((a=$.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments($,c.kind),$.namedTypeKind!==Z.Kind.NULL)continue;let ne=this.parentDefinitionDataByTypeName.get($.namedTypeName);if(ne){if(!(0,Nn.isOutputNodeKind)(ne.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:$,namedTypeData:ne,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}$.namedTypeKind=this.entityInterfaceDataByTypeName.get(ne.name)?Z.Kind.INTERFACE_TYPE_DEFINITION:ne.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,de.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,vs.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let g=(0,Nn.getParentTypeName)(c),v=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,g,()=>(0,$p.newConfigurationData)(l,o)),F=this.entityInterfaceDataByTypeName.get(o);if(F){F.fieldDatas=(0,rr.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,$e.addIterableValuesToSet)(K,F.concreteTypeNames),v.isInterfaceObject=F.isInterfaceObject,v.entityInterfaceConcreteTypeNames=F.concreteTypeNames}let k=this.eventsConfigurations.get(g);k&&(v.events=k),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ei.isNodeQuery)(o,p)&&this.errors.push((0,de.noFieldDefinitionsError)((0,$e.kindToNodeType)(c.kind),o));break;case Z.Kind.SCALAR_TYPE_DEFINITION:if(c.extensionType===Ga.ExtensionType.REAL){this.errors.push((0,de.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break;case Z.Kind.UNION_TYPE_DEFINITION:n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break;default:throw(0,de.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(Z.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,$e.getOrThrowError)(On.operationTypeNodeToDefaultType,o,te.OPERATION_TO_DEFAULT),p=c?(0,nr.getTypeNodeNamedTypeName)(c.type):l;if(Ht.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,de.invalidRootTypeDefinitionError)(o,p,l));continue}let f=this.parentDefinitionDataByTypeName.get(p);if(c){if(!f)continue;this.operationTypeNodeByTypeName.set(p,o)}if(!f)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),f.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,de.operationDefinitionError)(p,o,f.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,de.undefinedTypeError)(o));continue}if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<0)&&this.warnings.push((0,vs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,On.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,de.invalidExternalDirectiveError)(o)):this.warnings.push((0,vs.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:Z.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Z.print)(i),schema:(0,ile.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Ec.NormalizationFactory=Qp;function ule(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,p=new Set,f=new Set,y=[],g=new Set,v=new Map,F=[],k=[];for(let ne of e)ne.name&&(0,ale.recordSubgraphName)(ne.name,p,f);let K=new HO.Graph;for(let ne=0;ne0&&F.push(...pe.warnings),!pe.success){k.push((0,de.subgraphValidationError)(Te,pe.errors));continue}if(!pe){k.push((0,de.subgraphValidationError)(Te,[de.subgraphValidationFailureError]));continue}l.set(Te,pe.parentDefinitionDataByTypeName);for(let Fe of pe.authorizationDataByParentTypeName.values())(0,rr.upsertAuthorizationData)(t,Fe,g);for(let[Fe,Ve]of pe.fieldCoordsByNamedTypeName)(0,$e.addIterableValuesToSet)(Ve,(0,$e.getValueOrDefault)(v,Fe,()=>new Set));for(let[Fe,Ve]of pe.concreteTypeNamesByAbstractTypeName){let et=n.get(Fe);if(!et){n.set(Fe,new Set(Ve));continue}(0,$e.addIterableValuesToSet)(Ve,et)}for(let[Fe,Ve]of pe.entityDataByTypeName){let et=Ve.keyFieldSetDatasBySubgraphName.get(Te);et&&(0,rr.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:et,typeName:Fe,subgraphName:Te})}if(z.name&&i.set(Te,{conditionalFieldDataByCoordinates:pe.conditionalFieldDataByCoordinates,configurationDataByTypeName:pe.configurationDataByTypeName,definitions:pe.subgraphAST,entityInterfaces:pe.entityInterfaces,isVersionTwo:pe.isVersionTwo,keyFieldNamesByParentTypeName:pe.keyFieldNamesByParentTypeName,name:Te,operationTypes:pe.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:pe.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:pe.persistedDirectiveDefinitionDataByDirectiveName,schema:pe.schema,url:z.url}),!(pe.overridesByTargetSubgraphName.size<1))for(let[Fe,Ve]of pe.overridesByTargetSubgraphName){let et=p.has(Fe);for(let[X,ve]of Ve){let gt=pe.originalTypeNameByRenamedTypeName.get(X)||X;if(!et)F.push((0,vs.invalidOverrideTargetSubgraphNameWarning)(Fe,gt,[...ve],z.name));else{let zt=(0,$e.getValueOrDefault)(a,Fe,()=>new Map),Wt=(0,$e.getValueOrDefault)(zt,X,()=>new Set(ve));(0,$e.addIterableValuesToSet)(ve,Wt)}for(let zt of ve){let Wt=`${gt}.${zt}`,Dn=o.get(Wt);if(!Dn){o.set(Wt,[Te]);continue}Dn.push(Te),c.add(Wt)}}}}let $=[];if(g.size>0&&$.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...g])),(y.length>0||f.size>0)&&$.push((0,de.invalidSubgraphNamesError)([...f],y)),c.size>0){let ne=[];for(let z of c){let Te=(0,$e.getOrThrowError)(o,z,"overrideSourceSubgraphNamesByFieldPath");ne.push((0,de.duplicateOverriddenFieldErrorMessage)(z,Te))}$.push((0,de.duplicateOverriddenFieldsError)(ne))}if($.push(...k),$.length>0)return{errors:$,success:!1,warnings:F};for(let[ne,z]of a){let Te=(0,$e.getOrThrowError)(i,ne,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=z;for(let[pe,Fe]of z){let Ve=Te.configurationDataByTypeName.get(pe);Ve&&((0,rr.subtractSet)(Fe,Ve.fieldNames),Ve.fieldNames.size<1&&Te.configurationDataByTypeName.delete(pe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:F}}});var AE=w(Ic=>{"use strict";m();T();N();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DivergentType=void 0;Ic.getLeastRestrictiveMergedTypeNode=lle;Ic.getMostRestrictiveMergedTypeNode=dle;Ic.renameNamedTypeName=ple;var hc=Ae(),Qq=ia(),cle=su(),$q=Yr(),Yq=ml(),yc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(yc||(Ic.DivergentType=yc={}));function Jq(e,t,n,r,i){t=(0,cle.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=yc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameRootTypes=Nle;var fle=Ae(),WO=Yr(),mle=AE(),Eu=ur(),gc=Jr();function Nle(e,t){let n,r=!1,i;(0,fle.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Eu.SERVICE_FIELD||o===Eu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,gc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),p=t.operationTypes.get(l.namedTypeName);if(p){let f=(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,p,Eu.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,mle.renameNamedTypeName)(l,f,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var Hq=w((Ql,Yp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",p=1,f=2,y=4,g=1,v=2,F=1,k=2,K=4,$=8,ne=16,z=32,Te=64,pe=128,Fe=256,Ve=512,et=30,X="...",ve=800,gt=16,zt=1,Wt=2,Dn=3,Vt=1/0,dn=9007199254740991,Ar=17976931348623157e292,Rr=NaN,Un=4294967295,$t=Un-1,bn=Un>>>1,oe=[["ary",pe],["bind",F],["bindKey",k],["curry",$],["curryRight",ne],["flip",Ve],["partial",z],["partialRight",Te],["rearg",Fe]],De="[object Arguments]",_e="[object Array]",Le="[object AsyncFunction]",_t="[object Boolean]",J="[object Date]",se="[object DOMException]",xe="[object Error]",Qe="[object Function]",Lt="[object GeneratorFunction]",tt="[object Map]",At="[object Number]",Ha="[object Null]",xr="[object Object]",za="[object Promise]",wc="[object Proxy]",ha="[object RegExp]",pr="[object Set]",ni="[object String]",xt="[object Symbol]",fr="[object Undefined]",gu="[object WeakMap]",ya="[object WeakSet]",_u="[object ArrayBuffer]",A="[object DataView]",h="[object Float32Array]",I="[object Float64Array]",C="[object Int8Array]",G="[object Int16Array]",re="[object Int32Array]",le="[object Uint8Array]",ft="[object Uint8ClampedArray]",pn="[object Uint16Array]",tn="[object Uint32Array]",hn=/\b__p \+= '';/g,Xt=/\b(__p \+=) '' \+/g,S1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,XD=/&(?:amp|lt|gt|quot|#39);/g,ZD=/[&<>"']/g,O1=RegExp(XD.source),D1=RegExp(ZD.source),b1=/<%-([\s\S]+?)%>/g,A1=/<%([\s\S]+?)%>/g,eb=/<%=([\s\S]+?)%>/g,R1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P1=/^\w*$/,F1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oh=/[\\^$.*+?()[\]{}|]/g,w1=RegExp(oh.source),uh=/^\s+/,L1=/\s/,C1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,B1=/\{\n\/\* \[wrapped with (.+)\] \*/,U1=/,? & /,k1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,M1=/[()=,{}\[\]\/\s]/,x1=/\\(\\)?/g,q1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tb=/\w*$/,V1=/^[-+]0x[0-9a-f]+$/i,j1=/^0b[01]+$/i,K1=/^\[object .+?Constructor\]$/,G1=/^0o[0-7]+$/i,$1=/^(?:0|[1-9]\d*)$/,Q1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ef=/($^)/,Y1=/['\n\r\u2028\u2029\\]/g,hf="\\ud800-\\udfff",J1="\\u0300-\\u036f",H1="\\ufe20-\\ufe2f",z1="\\u20d0-\\u20ff",nb=J1+H1+z1,rb="\\u2700-\\u27bf",ib="a-z\\xdf-\\xf6\\xf8-\\xff",W1="\\xac\\xb1\\xd7\\xf7",X1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z1="\\u2000-\\u206f",ej=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ab="A-Z\\xc0-\\xd6\\xd8-\\xde",sb="\\ufe0e\\ufe0f",ob=W1+X1+Z1+ej,ch="['\u2019]",tj="["+hf+"]",ub="["+ob+"]",yf="["+nb+"]",cb="\\d+",nj="["+rb+"]",lb="["+ib+"]",db="[^"+hf+ob+cb+rb+ib+ab+"]",lh="\\ud83c[\\udffb-\\udfff]",rj="(?:"+yf+"|"+lh+")",pb="[^"+hf+"]",dh="(?:\\ud83c[\\udde6-\\uddff]){2}",ph="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+ab+"]",fb="\\u200d",mb="(?:"+lb+"|"+db+")",ij="(?:"+Lc+"|"+db+")",Nb="(?:"+ch+"(?:d|ll|m|re|s|t|ve))?",Tb="(?:"+ch+"(?:D|LL|M|RE|S|T|VE))?",Eb=rj+"?",hb="["+sb+"]?",aj="(?:"+fb+"(?:"+[pb,dh,ph].join("|")+")"+hb+Eb+")*",sj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yb=hb+Eb+aj,uj="(?:"+[nj,dh,ph].join("|")+")"+yb,cj="(?:"+[pb+yf+"?",yf,dh,ph,tj].join("|")+")",lj=RegExp(ch,"g"),dj=RegExp(yf,"g"),fh=RegExp(lh+"(?="+lh+")|"+cj+yb,"g"),pj=RegExp([Lc+"?"+lb+"+"+Nb+"(?="+[ub,Lc,"$"].join("|")+")",ij+"+"+Tb+"(?="+[ub,Lc+mb,"$"].join("|")+")",Lc+"?"+mb+"+"+Nb,Lc+"+"+Tb,oj,sj,cb,uj].join("|"),"g"),fj=RegExp("["+fb+hf+nb+sb+"]"),mj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tj=-1,Tn={};Tn[h]=Tn[I]=Tn[C]=Tn[G]=Tn[re]=Tn[le]=Tn[ft]=Tn[pn]=Tn[tn]=!0,Tn[De]=Tn[_e]=Tn[_u]=Tn[_t]=Tn[A]=Tn[J]=Tn[xe]=Tn[Qe]=Tn[tt]=Tn[At]=Tn[xr]=Tn[ha]=Tn[pr]=Tn[ni]=Tn[gu]=!1;var fn={};fn[De]=fn[_e]=fn[_u]=fn[A]=fn[_t]=fn[J]=fn[h]=fn[I]=fn[C]=fn[G]=fn[re]=fn[tt]=fn[At]=fn[xr]=fn[ha]=fn[pr]=fn[ni]=fn[xt]=fn[le]=fn[ft]=fn[pn]=fn[tn]=!0,fn[xe]=fn[Qe]=fn[gu]=!1;var Ej={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},hj={"&":"&","<":"<",">":">",'"':""","'":"'"},yj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ij={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gj=parseFloat,_j=parseInt,Ib=typeof global=="object"&&global&&global.Object===Object&&global,vj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Ib||vj||Function("return this")(),mh=typeof Ql=="object"&&Ql&&!Ql.nodeType&&Ql,vu=mh&&typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,gb=vu&&vu.exports===mh,Nh=gb&&Ib.process,Ni=function(){try{var Q=vu&&vu.require&&vu.require("util").types;return Q||Nh&&Nh.binding&&Nh.binding("util")}catch(ce){}}(),_b=Ni&&Ni.isArrayBuffer,vb=Ni&&Ni.isDate,Sb=Ni&&Ni.isMap,Ob=Ni&&Ni.isRegExp,Db=Ni&&Ni.isSet,bb=Ni&&Ni.isTypedArray;function ri(Q,ce,ie){switch(ie.length){case 0:return Q.call(ce);case 1:return Q.call(ce,ie[0]);case 2:return Q.call(ce,ie[0],ie[1]);case 3:return Q.call(ce,ie[0],ie[1],ie[2])}return Q.apply(ce,ie)}function Sj(Q,ce,ie,Be){for(var ot=-1,jt=Q==null?0:Q.length;++ot-1}function Th(Q,ce,ie){for(var Be=-1,ot=Q==null?0:Q.length;++Be-1;);return ie}function Bb(Q,ce){for(var ie=Q.length;ie--&&Cc(ce,Q[ie],0)>-1;);return ie}function Lj(Q,ce){for(var ie=Q.length,Be=0;ie--;)Q[ie]===ce&&++Be;return Be}var Cj=Ih(Ej),Bj=Ih(hj);function Uj(Q){return"\\"+Ij[Q]}function kj(Q,ce){return Q==null?e:Q[ce]}function Bc(Q){return fj.test(Q)}function Mj(Q){return mj.test(Q)}function xj(Q){for(var ce,ie=[];!(ce=Q.next()).done;)ie.push(ce.value);return ie}function Sh(Q){var ce=-1,ie=Array(Q.size);return Q.forEach(function(Be,ot){ie[++ce]=[ot,Be]}),ie}function Ub(Q,ce){return function(ie){return Q(ce(ie))}}function xo(Q,ce){for(var ie=-1,Be=Q.length,ot=0,jt=[];++ie-1}function DK(s,u){var d=this.__data__,E=kf(d,s);return E<0?(++this.size,d.push([s,u])):d[E][1]=u,this}Wa.prototype.clear=_K,Wa.prototype.delete=vK,Wa.prototype.get=SK,Wa.prototype.has=OK,Wa.prototype.set=DK;function Xa(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function yi(s,u,d,E,S,L){var M,j=u&p,H=u&f,fe=u&y;if(d&&(M=S?d(s,E,S,L):d(s)),M!==e)return M;if(!_n(s))return s;var me=lt(s);if(me){if(M=PG(s),!j)return qr(s,M)}else{var Ee=Er(s),be=Ee==Qe||Ee==Lt;if(Qo(s))return h0(s,j);if(Ee==xr||Ee==De||be&&!S){if(M=H||be?{}:k0(s),!j)return H?yG(s,jK(M,s)):hG(s,Jb(M,s))}else{if(!fn[Ee])return S?s:{};M=FG(s,Ee,j)}}L||(L=new Qi);var je=L.get(s);if(je)return je;L.set(s,M),pA(s)?s.forEach(function(Ze){M.add(yi(Ze,u,d,Ze,s,L))}):lA(s)&&s.forEach(function(Ze,vt){M.set(vt,yi(Ze,u,d,vt,s,L))});var Xe=fe?H?zh:Hh:H?jr:ar,Et=me?e:Xe(s);return Ti(Et||s,function(Ze,vt){Et&&(vt=Ze,Ze=s[vt]),ld(M,vt,yi(Ze,u,d,vt,s,L))}),M}function KK(s){var u=ar(s);return function(d){return Hb(d,s,u)}}function Hb(s,u,d){var E=d.length;if(s==null)return!E;for(s=on(s);E--;){var S=d[E],L=u[S],M=s[S];if(M===e&&!(S in s)||!L(M))return!1}return!0}function zb(s,u,d){if(typeof s!="function")throw new Ei(i);return Ed(function(){s.apply(e,d)},u)}function dd(s,u,d,E){var S=-1,L=If,M=!0,j=s.length,H=[],fe=u.length;if(!j)return H;d&&(u=yn(u,ii(d))),E?(L=Th,M=!1):u.length>=n&&(L=id,M=!1,u=new Du(u));e:for(;++SS?0:S+d),E=E===e||E>S?S:Nt(E),E<0&&(E+=S),E=d>E?0:mA(E);d0&&d(j)?u>1?mr(j,u-1,d,E,S):Mo(S,j):E||(S[S.length]=j)}return S}var Fh=S0(),Zb=S0(!0);function Ia(s,u){return s&&Fh(s,u,ar)}function wh(s,u){return s&&Zb(s,u,ar)}function xf(s,u){return ko(u,function(d){return rs(s[d])})}function Au(s,u){u=Go(u,s);for(var d=0,E=u.length;s!=null&&du}function QK(s,u){return s!=null&&Zt.call(s,u)}function YK(s,u){return s!=null&&u in on(s)}function JK(s,u,d){return s>=Tr(u,d)&&s=120&&me.length>=120)?new Du(M&&me):e}me=s[0];var Ee=-1,be=j[0];e:for(;++Ee-1;)j!==s&&Pf.call(j,H,1),Pf.call(s,H,1);return s}function l0(s,u){for(var d=s?u.length:0,E=d-1;d--;){var S=u[d];if(d==E||S!==L){var L=S;ns(S)?Pf.call(s,S,1):jh(s,S)}}return s}function xh(s,u){return s+Lf(Gb()*(u-s+1))}function oG(s,u,d,E){for(var S=-1,L=Jn(wf((u-s)/(d||1)),0),M=ie(L);L--;)M[E?L:++S]=s,s+=d;return M}function qh(s,u){var d="";if(!s||u<1||u>dn)return d;do u%2&&(d+=s),u=Lf(u/2),u&&(s+=s);while(u);return d}function yt(s,u){return ry(q0(s,u,Kr),s+"")}function uG(s){return Yb($c(s))}function cG(s,u){var d=$c(s);return zf(d,bu(u,0,d.length))}function md(s,u,d,E){if(!_n(s))return s;u=Go(u,s);for(var S=-1,L=u.length,M=L-1,j=s;j!=null&&++SS?0:S+u),d=d>S?S:d,d<0&&(d+=S),S=u>d?0:d-u>>>0,u>>>=0;for(var L=ie(S);++E>>1,M=s[L];M!==null&&!si(M)&&(d?M<=u:M=n){var fe=u?null:vG(s);if(fe)return _f(fe);M=!1,S=id,H=new Du}else H=u?[]:j;e:for(;++E=E?s:Ii(s,u,d)}var E0=eK||function(s){return ir.clearTimeout(s)};function h0(s,u){if(u)return s.slice();var d=s.length,E=xb?xb(d):new s.constructor(d);return s.copy(E),E}function Qh(s){var u=new s.constructor(s.byteLength);return new Af(u).set(new Af(s)),u}function mG(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function NG(s){var u=new s.constructor(s.source,tb.exec(s));return u.lastIndex=s.lastIndex,u}function TG(s){return cd?on(cd.call(s)):{}}function y0(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function I0(s,u){if(s!==u){var d=s!==e,E=s===null,S=s===s,L=si(s),M=u!==e,j=u===null,H=u===u,fe=si(u);if(!j&&!fe&&!L&&s>u||L&&M&&H&&!j&&!fe||E&&M&&H||!d&&H||!S)return 1;if(!E&&!L&&!fe&&s=j)return H;var fe=d[E];return H*(fe=="desc"?-1:1)}}return s.index-u.index}function g0(s,u,d,E){for(var S=-1,L=s.length,M=d.length,j=-1,H=u.length,fe=Jn(L-M,0),me=ie(H+fe),Ee=!E;++j1?d[S-1]:e,M=S>2?d[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,M&&Fr(d[0],d[1],M)&&(L=S<3?e:L,S=1),u=on(u);++E-1?S[L?u[M]:M]:e}}function b0(s){return ts(function(u){var d=u.length,E=d,S=hi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Ei(i);if(S&&!M&&Jf(L)=="wrapper")var M=new hi([],!0)}for(E=M?E:d;++E1&&Rt.reverse(),me&&Hj))return!1;var fe=L.get(s),me=L.get(u);if(fe&&me)return fe==u&&me==s;var Ee=-1,be=!0,je=d&v?new Du:e;for(L.set(s,u),L.set(u,s);++Ee1?"& ":"")+u[E],u=u.join(d>2?", ":" "),s.replace(C1,`{ /* [wrapped with `+u+`] */ -`)}function LG(s){return lt(s)||Fu(s)||!!(jb&&s&&s[jb])}function ns(s,u){var d=typeof s;return u=u==null?dn:u,!!u&&(d=="number"||d!="symbol"&&$1.test(s))&&s>-1&&s%1==0&&s0){if(++u>=ve)return arguments[0]}else u=0;return s.apply(e,arguments)}}function zf(s,u){var d=-1,E=s.length,S=E-1;for(u=u===e?E:u;++d1?s[u-1]:e;return d=typeof d=="function"?(s.pop(),d):e,X0(s,d)});function Z0(s){var u=R(s);return u.__chain__=!0,u}function G$(s,u){return u(s),s}function Wf(s,u){return u(s)}var $$=ts(function(s){var u=s.length,d=u?s[0]:0,E=this.__wrapped__,S=function(L){return Ph(L,s)};return u>1||this.__actions__.length||!(E instanceof Ot)||!ns(d)?this.thru(S):(E=E.slice(d,+d+(u?1:0)),E.__actions__.push({func:Wf,args:[S],thisArg:e}),new hi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function Q$(){return Z0(this)}function Y$(){return new hi(this.value(),this.__chain__)}function J$(){this.__values__===e&&(this.__values__=fA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function H$(){return this}function z$(s){for(var u,d=this;d instanceof Uf;){var E=Q0(d);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;d=d.__wrapped__}return S.__wrapped__=s,u}function W$(){var s=this.__wrapped__;if(s instanceof Ot){var u=s;return this.__actions__.length&&(u=new Ot(this)),u=u.reverse(),u.__actions__.push({func:Wf,args:[iy],thisArg:e}),new hi(u,this.__chain__)}return this.thru(iy)}function X$(){return N0(this.__wrapped__,this.__actions__)}var Z$=Kf(function(s,u,d){Zt.call(s,d)?++s[d]:Za(s,d,1)});function eQ(s,u,d){var E=lt(s)?Ab:GK;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}function tQ(s,u){var d=lt(s)?ko:Xb;return d(s,ze(u,3))}var nQ=D0(Y0),rQ=D0(J0);function iQ(s,u){return mr(Xf(s,u),1)}function aQ(s,u){return mr(Xf(s,u),Vt)}function sQ(s,u,d){return d=d===e?1:Nt(d),mr(Xf(s,u),d)}function eA(s,u){var d=lt(s)?Ti:jo;return d(s,ze(u,3))}function tA(s,u){var d=lt(s)?Oj:Wb;return d(s,ze(u,3))}var oQ=Kf(function(s,u,d){Zt.call(s,d)?s[d].push(u):Za(s,d,[u])});function uQ(s,u,d,E){s=Vr(s)?s:$c(s),d=d&&!E?Nt(d):0;var S=s.length;return d<0&&(d=Jn(S+d,0)),rm(s)?d<=S&&s.indexOf(u,d)>-1:!!S&&Cc(s,u,d)>-1}var cQ=yt(function(s,u,d){var E=-1,S=typeof u=="function",L=Vr(s)?ie(s.length):[];return jo(s,function(M){L[++E]=S?ri(u,M,d):pd(M,u,d)}),L}),lQ=Kf(function(s,u,d){Za(s,d,u)});function Xf(s,u){var d=lt(s)?yn:i0;return d(s,ze(u,3))}function dQ(s,u,d,E){return s==null?[]:(lt(u)||(u=u==null?[]:[u]),d=E?e:d,lt(d)||(d=d==null?[]:[d]),u0(s,u,d))}var pQ=Kf(function(s,u,d){s[d?0:1].push(u)},function(){return[[],[]]});function fQ(s,u,d){var E=lt(s)?Eh:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,jo)}function mQ(s,u,d){var E=lt(s)?Dj:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,Wb)}function NQ(s,u){var d=lt(s)?ko:Xb;return d(s,tm(ze(u,3)))}function TQ(s){var u=lt(s)?Yb:uG;return u(s)}function EQ(s,u,d){(d?Fr(s,u,d):u===e)?u=1:u=Nt(u);var E=lt(s)?xK:cG;return E(s,u)}function hQ(s){var u=lt(s)?qK:dG;return u(s)}function yQ(s){if(s==null)return 0;if(Vr(s))return rm(s)?Uc(s):s.length;var u=Er(s);return u==et||u==pr?s.size:Uh(s).length}function IQ(s,u,d){var E=lt(s)?hh:pG;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}var gQ=yt(function(s,u){if(s==null)return[];var d=u.length;return d>1&&Fr(s,u[0],u[1])?u=[]:d>2&&Fr(u[0],u[1],u[2])&&(u=[u[0]]),u0(s,mr(u,1),[])}),Zf=tK||function(){return ir.Date.now()};function _Q(s,u){if(typeof u!="function")throw new Ei(i);return s=Nt(s),function(){if(--s<1)return u.apply(this,arguments)}}function nA(s,u,d){return u=d?e:u,u=s&&u==null?s.length:u,es(s,fe,e,e,e,e,u)}function rA(s,u){var d;if(typeof u!="function")throw new Ei(i);return s=Nt(s),function(){return--s>0&&(d=u.apply(this,arguments)),s<=1&&(u=e),d}}var sy=yt(function(s,u,d){var E=P;if(d.length){var S=xo(d,Kc(sy));E|=W}return es(s,E,u,d,S)}),iA=yt(function(s,u,d){var E=P|k;if(d.length){var S=xo(d,Kc(iA));E|=W}return es(u,E,s,d,S)});function aA(s,u,d){u=d?e:u;var E=es(s,G,e,e,e,e,e,u);return E.placeholder=aA.placeholder,E}function sA(s,u,d){u=d?e:u;var E=es(s,Z,e,e,e,e,e,u);return E.placeholder=sA.placeholder,E}function oA(s,u,d){var E,S,L,M,j,H,pe=0,me=!1,Ee=!1,be=!0;if(typeof s!="function")throw new Ei(i);u=_i(u)||0,_n(d)&&(me=!!d.leading,Ee="maxWait"in d,L=Ee?Jn(_i(d.maxWait)||0,u):L,be="trailing"in d?!!d.trailing:be);function je(Mn){var Ji=E,as=S;return E=S=e,pe=Mn,M=s.apply(as,Ji),M}function Xe(Mn){return pe=Mn,j=Ed(vt,u),me?je(Mn):M}function Et(Mn){var Ji=Mn-H,as=Mn-pe,DA=u-Ji;return Ee?Tr(DA,L-as):DA}function Ze(Mn){var Ji=Mn-H,as=Mn-pe;return H===e||Ji>=u||Ji<0||Ee&&as>=L}function vt(){var Mn=Zf();if(Ze(Mn))return Rt(Mn);j=Ed(vt,Et(Mn))}function Rt(Mn){return j=e,be&&E?je(Mn):(E=S=e,M)}function oi(){j!==e&&E0(j),pe=0,E=H=S=j=e}function wr(){return j===e?M:Rt(Zf())}function ui(){var Mn=Zf(),Ji=Ze(Mn);if(E=arguments,S=this,H=Mn,Ji){if(j===e)return Xe(H);if(Ee)return E0(j),j=Ed(vt,u),je(H)}return j===e&&(j=Ed(vt,u)),M}return ui.cancel=oi,ui.flush=wr,ui}var vQ=yt(function(s,u){return zb(s,1,u)}),SQ=yt(function(s,u,d){return zb(s,_i(u)||0,d)});function OQ(s){return es(s,Ve)}function em(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Ei(i);var d=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=d.cache;if(L.has(S))return L.get(S);var M=s.apply(this,E);return d.cache=L.set(S,M)||L,M};return d.cache=new(em.Cache||Xa),d}em.Cache=Xa;function tm(s){if(typeof s!="function")throw new Ei(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function DQ(s){return rA(2,s)}var bQ=fG(function(s,u){u=u.length==1&<(u[0])?yn(u[0],ii(ze())):yn(mr(u,1),ii(ze()));var d=u.length;return yt(function(E){for(var S=-1,L=Tr(E.length,d);++S=u}),Fu=t0(function(){return arguments}())?t0:function(s){return An(s)&&Zt.call(s,"callee")&&!Vb.call(s,"callee")},lt=ie.isArray,jQ=_b?ii(_b):zK;function Vr(s){return s!=null&&nm(s.length)&&!rs(s)}function kn(s){return An(s)&&Vr(s)}function KQ(s){return s===!0||s===!1||An(s)&&Pr(s)==_t}var Qo=rK||hy,GQ=vb?ii(vb):WK;function $Q(s){return An(s)&&s.nodeType===1&&!hd(s)}function QQ(s){if(s==null)return!0;if(Vr(s)&&(lt(s)||typeof s=="string"||typeof s.splice=="function"||Qo(s)||Gc(s)||Fu(s)))return!s.length;var u=Er(s);if(u==et||u==pr)return!s.size;if(Td(s))return!Uh(s).length;for(var d in s)if(Zt.call(s,d))return!1;return!0}function YQ(s,u){return fd(s,u)}function JQ(s,u,d){d=typeof d=="function"?d:e;var E=d?d(s,u):e;return E===e?fd(s,u,e,d):!!E}function uy(s){if(!An(s))return!1;var u=Pr(s);return u==xe||u==se||typeof s.message=="string"&&typeof s.name=="string"&&!hd(s)}function HQ(s){return typeof s=="number"&&Kb(s)}function rs(s){if(!_n(s))return!1;var u=Pr(s);return u==Qe||u==Lt||u==Le||u==wc}function cA(s){return typeof s=="number"&&s==Nt(s)}function nm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=dn}function _n(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function An(s){return s!=null&&typeof s=="object"}var lA=Sb?ii(Sb):ZK;function zQ(s,u){return s===u||Bh(s,u,Xh(u))}function WQ(s,u,d){return d=typeof d=="function"?d:e,Bh(s,u,Xh(u),d)}function XQ(s){return dA(s)&&s!=+s}function ZQ(s){if(UG(s))throw new ot(r);return n0(s)}function e2(s){return s===null}function t2(s){return s==null}function dA(s){return typeof s=="number"||An(s)&&Pr(s)==At}function hd(s){if(!An(s)||Pr(s)!=xr)return!1;var u=Rf(s);if(u===null)return!0;var d=Zt.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&Of.call(d)==Wj}var cy=Ob?ii(Ob):eG;function n2(s){return cA(s)&&s>=-dn&&s<=dn}var pA=Db?ii(Db):tG;function rm(s){return typeof s=="string"||!lt(s)&&An(s)&&Pr(s)==ni}function si(s){return typeof s=="symbol"||An(s)&&Pr(s)==xt}var Gc=bb?ii(bb):nG;function r2(s){return s===e}function i2(s){return An(s)&&Er(s)==gu}function a2(s){return An(s)&&Pr(s)==ya}var s2=Yf(kh),o2=Yf(function(s,u){return s<=u});function fA(s){if(!s)return[];if(Vr(s))return rm(s)?$i(s):qr(s);if(ad&&s[ad])return xj(s[ad]());var u=Er(s),d=u==et?Sh:u==pr?_f:$c;return d(s)}function is(s){if(!s)return s===0?s:0;if(s=_i(s),s===Vt||s===-Vt){var u=s<0?-1:1;return u*Ar}return s===s?s:0}function Nt(s){var u=is(s),d=u%1;return u===u?d?u-d:u:0}function mA(s){return s?bu(Nt(s),0,Un):0}function _i(s){if(typeof s=="number")return s;if(si(s))return Rr;if(_n(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=_n(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lb(s);var d=j1.test(s);return d||G1.test(s)?_j(s.slice(2),d?2:8):V1.test(s)?Rr:+s}function NA(s){return ga(s,jr(s))}function u2(s){return s?bu(Nt(s),-dn,dn):s===0?s:0}function Qt(s){return s==null?"":ai(s)}var c2=Vc(function(s,u){if(Td(u)||Vr(u)){ga(u,ar(u),s);return}for(var d in u)Zt.call(u,d)&&ld(s,d,u[d])}),TA=Vc(function(s,u){ga(u,jr(u),s)}),im=Vc(function(s,u,d,E){ga(u,jr(u),s,E)}),l2=Vc(function(s,u,d,E){ga(u,ar(u),s,E)}),d2=ts(Ph);function p2(s,u){var d=qc(s);return u==null?d:Jb(d,u)}var f2=yt(function(s,u){s=on(s);var d=-1,E=u.length,S=E>2?u[2]:e;for(S&&Fr(u[0],u[1],S)&&(E=1);++d1),L}),ga(s,zh(s),d),E&&(d=yi(d,p|f|y,SG));for(var S=u.length;S--;)jh(d,u[S]);return d});function F2(s,u){return hA(s,tm(ze(u)))}var w2=ts(function(s,u){return s==null?{}:aG(s,u)});function hA(s,u){if(s==null)return{};var d=yn(zh(s),function(E){return[E]});return u=ze(u),c0(s,d,function(E,S){return u(E,S[0])})}function L2(s,u,d){u=Go(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(d||s%1||u%1){var S=Gb();return Tr(s+S*(u-s+gj("1e-"+((S+"").length-1))),u)}return xh(s,u)}var G2=jc(function(s,u,d){return u=u.toLowerCase(),s+(d?gA(u):u)});function gA(s){return py(Qt(s).toLowerCase())}function _A(s){return s=Qt(s),s&&s.replace(Q1,Cj).replace(dj,"")}function $2(s,u,d){s=Qt(s),u=ai(u);var E=s.length;d=d===e?E:bu(Nt(d),0,E);var S=d;return d-=u.length,d>=0&&s.slice(d,S)==u}function Q2(s){return s=Qt(s),s&&D1.test(s)?s.replace(ZD,Bj):s}function Y2(s){return s=Qt(s),s&&w1.test(s)?s.replace(oh,"\\$&"):s}var J2=jc(function(s,u,d){return s+(d?"-":"")+u.toLowerCase()}),H2=jc(function(s,u,d){return s+(d?" ":"")+u.toLowerCase()}),z2=O0("toLowerCase");function W2(s,u,d){s=Qt(s),u=Nt(u);var E=u?Uc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Qf(Lf(S),d)+s+Qf(wf(S),d)}function X2(s,u,d){s=Qt(s),u=Nt(u);var E=u?Uc(s):0;return u&&E>>0,d?(s=Qt(s),s&&(typeof u=="string"||u!=null&&!cy(u))&&(u=ai(u),!u&&Bc(s))?$o($i(s),0,d):s.split(u,d)):[]}var aY=jc(function(s,u,d){return s+(d?" ":"")+py(u)});function sY(s,u,d){return s=Qt(s),d=d==null?0:bu(Nt(d),0,s.length),u=ai(u),s.slice(d,d+u.length)==u}function oY(s,u,d){var E=R.templateSettings;d&&Fr(s,u,d)&&(u=e),s=Qt(s),u=im({},u,E,w0);var S=im({},u.imports,E.imports,w0),L=ar(S),M=vh(S,L),j,H,pe=0,me=u.interpolate||Ef,Ee="__p += '",be=Oh((u.escape||Ef).source+"|"+me.source+"|"+(me===eb?q1:Ef).source+"|"+(u.evaluate||Ef).source+"|$","g"),je="//# sourceURL="+(Zt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tj+"]")+` -`;s.replace(be,function(Ze,vt,Rt,oi,wr,ui){return Rt||(Rt=oi),Ee+=s.slice(pe,ui).replace(Y1,Uj),vt&&(j=!0,Ee+=`' + +`)}function LG(s){return lt(s)||Fu(s)||!!(jb&&s&&s[jb])}function ns(s,u){var d=typeof s;return u=u==null?dn:u,!!u&&(d=="number"||d!="symbol"&&$1.test(s))&&s>-1&&s%1==0&&s0){if(++u>=ve)return arguments[0]}else u=0;return s.apply(e,arguments)}}function zf(s,u){var d=-1,E=s.length,S=E-1;for(u=u===e?E:u;++d1?s[u-1]:e;return d=typeof d=="function"?(s.pop(),d):e,X0(s,d)});function Z0(s){var u=R(s);return u.__chain__=!0,u}function G$(s,u){return u(s),s}function Wf(s,u){return u(s)}var $$=ts(function(s){var u=s.length,d=u?s[0]:0,E=this.__wrapped__,S=function(L){return Ph(L,s)};return u>1||this.__actions__.length||!(E instanceof Ot)||!ns(d)?this.thru(S):(E=E.slice(d,+d+(u?1:0)),E.__actions__.push({func:Wf,args:[S],thisArg:e}),new hi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function Q$(){return Z0(this)}function Y$(){return new hi(this.value(),this.__chain__)}function J$(){this.__values__===e&&(this.__values__=fA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function H$(){return this}function z$(s){for(var u,d=this;d instanceof Uf;){var E=Q0(d);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;d=d.__wrapped__}return S.__wrapped__=s,u}function W$(){var s=this.__wrapped__;if(s instanceof Ot){var u=s;return this.__actions__.length&&(u=new Ot(this)),u=u.reverse(),u.__actions__.push({func:Wf,args:[iy],thisArg:e}),new hi(u,this.__chain__)}return this.thru(iy)}function X$(){return N0(this.__wrapped__,this.__actions__)}var Z$=Kf(function(s,u,d){Zt.call(s,d)?++s[d]:Za(s,d,1)});function eQ(s,u,d){var E=lt(s)?Ab:GK;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}function tQ(s,u){var d=lt(s)?ko:Xb;return d(s,ze(u,3))}var nQ=D0(Y0),rQ=D0(J0);function iQ(s,u){return mr(Xf(s,u),1)}function aQ(s,u){return mr(Xf(s,u),Vt)}function sQ(s,u,d){return d=d===e?1:Nt(d),mr(Xf(s,u),d)}function eA(s,u){var d=lt(s)?Ti:jo;return d(s,ze(u,3))}function tA(s,u){var d=lt(s)?Oj:Wb;return d(s,ze(u,3))}var oQ=Kf(function(s,u,d){Zt.call(s,d)?s[d].push(u):Za(s,d,[u])});function uQ(s,u,d,E){s=Vr(s)?s:$c(s),d=d&&!E?Nt(d):0;var S=s.length;return d<0&&(d=Jn(S+d,0)),rm(s)?d<=S&&s.indexOf(u,d)>-1:!!S&&Cc(s,u,d)>-1}var cQ=yt(function(s,u,d){var E=-1,S=typeof u=="function",L=Vr(s)?ie(s.length):[];return jo(s,function(M){L[++E]=S?ri(u,M,d):pd(M,u,d)}),L}),lQ=Kf(function(s,u,d){Za(s,d,u)});function Xf(s,u){var d=lt(s)?yn:i0;return d(s,ze(u,3))}function dQ(s,u,d,E){return s==null?[]:(lt(u)||(u=u==null?[]:[u]),d=E?e:d,lt(d)||(d=d==null?[]:[d]),u0(s,u,d))}var pQ=Kf(function(s,u,d){s[d?0:1].push(u)},function(){return[[],[]]});function fQ(s,u,d){var E=lt(s)?Eh:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,jo)}function mQ(s,u,d){var E=lt(s)?Dj:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,Wb)}function NQ(s,u){var d=lt(s)?ko:Xb;return d(s,tm(ze(u,3)))}function TQ(s){var u=lt(s)?Yb:uG;return u(s)}function EQ(s,u,d){(d?Fr(s,u,d):u===e)?u=1:u=Nt(u);var E=lt(s)?xK:cG;return E(s,u)}function hQ(s){var u=lt(s)?qK:dG;return u(s)}function yQ(s){if(s==null)return 0;if(Vr(s))return rm(s)?Uc(s):s.length;var u=Er(s);return u==tt||u==pr?s.size:Uh(s).length}function IQ(s,u,d){var E=lt(s)?hh:pG;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}var gQ=yt(function(s,u){if(s==null)return[];var d=u.length;return d>1&&Fr(s,u[0],u[1])?u=[]:d>2&&Fr(u[0],u[1],u[2])&&(u=[u[0]]),u0(s,mr(u,1),[])}),Zf=tK||function(){return ir.Date.now()};function _Q(s,u){if(typeof u!="function")throw new Ei(i);return s=Nt(s),function(){if(--s<1)return u.apply(this,arguments)}}function nA(s,u,d){return u=d?e:u,u=s&&u==null?s.length:u,es(s,pe,e,e,e,e,u)}function rA(s,u){var d;if(typeof u!="function")throw new Ei(i);return s=Nt(s),function(){return--s>0&&(d=u.apply(this,arguments)),s<=1&&(u=e),d}}var sy=yt(function(s,u,d){var E=F;if(d.length){var S=xo(d,Kc(sy));E|=z}return es(s,E,u,d,S)}),iA=yt(function(s,u,d){var E=F|k;if(d.length){var S=xo(d,Kc(iA));E|=z}return es(u,E,s,d,S)});function aA(s,u,d){u=d?e:u;var E=es(s,$,e,e,e,e,e,u);return E.placeholder=aA.placeholder,E}function sA(s,u,d){u=d?e:u;var E=es(s,ne,e,e,e,e,e,u);return E.placeholder=sA.placeholder,E}function oA(s,u,d){var E,S,L,M,j,H,fe=0,me=!1,Ee=!1,be=!0;if(typeof s!="function")throw new Ei(i);u=_i(u)||0,_n(d)&&(me=!!d.leading,Ee="maxWait"in d,L=Ee?Jn(_i(d.maxWait)||0,u):L,be="trailing"in d?!!d.trailing:be);function je(Mn){var Ji=E,as=S;return E=S=e,fe=Mn,M=s.apply(as,Ji),M}function Xe(Mn){return fe=Mn,j=Ed(vt,u),me?je(Mn):M}function Et(Mn){var Ji=Mn-H,as=Mn-fe,DA=u-Ji;return Ee?Tr(DA,L-as):DA}function Ze(Mn){var Ji=Mn-H,as=Mn-fe;return H===e||Ji>=u||Ji<0||Ee&&as>=L}function vt(){var Mn=Zf();if(Ze(Mn))return Rt(Mn);j=Ed(vt,Et(Mn))}function Rt(Mn){return j=e,be&&E?je(Mn):(E=S=e,M)}function oi(){j!==e&&E0(j),fe=0,E=H=S=j=e}function wr(){return j===e?M:Rt(Zf())}function ui(){var Mn=Zf(),Ji=Ze(Mn);if(E=arguments,S=this,H=Mn,Ji){if(j===e)return Xe(H);if(Ee)return E0(j),j=Ed(vt,u),je(H)}return j===e&&(j=Ed(vt,u)),M}return ui.cancel=oi,ui.flush=wr,ui}var vQ=yt(function(s,u){return zb(s,1,u)}),SQ=yt(function(s,u,d){return zb(s,_i(u)||0,d)});function OQ(s){return es(s,Ve)}function em(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Ei(i);var d=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=d.cache;if(L.has(S))return L.get(S);var M=s.apply(this,E);return d.cache=L.set(S,M)||L,M};return d.cache=new(em.Cache||Xa),d}em.Cache=Xa;function tm(s){if(typeof s!="function")throw new Ei(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function DQ(s){return rA(2,s)}var bQ=fG(function(s,u){u=u.length==1&<(u[0])?yn(u[0],ii(ze())):yn(mr(u,1),ii(ze()));var d=u.length;return yt(function(E){for(var S=-1,L=Tr(E.length,d);++S=u}),Fu=t0(function(){return arguments}())?t0:function(s){return An(s)&&Zt.call(s,"callee")&&!Vb.call(s,"callee")},lt=ie.isArray,jQ=_b?ii(_b):zK;function Vr(s){return s!=null&&nm(s.length)&&!rs(s)}function kn(s){return An(s)&&Vr(s)}function KQ(s){return s===!0||s===!1||An(s)&&Pr(s)==_t}var Qo=rK||hy,GQ=vb?ii(vb):WK;function $Q(s){return An(s)&&s.nodeType===1&&!hd(s)}function QQ(s){if(s==null)return!0;if(Vr(s)&&(lt(s)||typeof s=="string"||typeof s.splice=="function"||Qo(s)||Gc(s)||Fu(s)))return!s.length;var u=Er(s);if(u==tt||u==pr)return!s.size;if(Td(s))return!Uh(s).length;for(var d in s)if(Zt.call(s,d))return!1;return!0}function YQ(s,u){return fd(s,u)}function JQ(s,u,d){d=typeof d=="function"?d:e;var E=d?d(s,u):e;return E===e?fd(s,u,e,d):!!E}function uy(s){if(!An(s))return!1;var u=Pr(s);return u==xe||u==se||typeof s.message=="string"&&typeof s.name=="string"&&!hd(s)}function HQ(s){return typeof s=="number"&&Kb(s)}function rs(s){if(!_n(s))return!1;var u=Pr(s);return u==Qe||u==Lt||u==Le||u==wc}function cA(s){return typeof s=="number"&&s==Nt(s)}function nm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=dn}function _n(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function An(s){return s!=null&&typeof s=="object"}var lA=Sb?ii(Sb):ZK;function zQ(s,u){return s===u||Bh(s,u,Xh(u))}function WQ(s,u,d){return d=typeof d=="function"?d:e,Bh(s,u,Xh(u),d)}function XQ(s){return dA(s)&&s!=+s}function ZQ(s){if(UG(s))throw new ot(r);return n0(s)}function e2(s){return s===null}function t2(s){return s==null}function dA(s){return typeof s=="number"||An(s)&&Pr(s)==At}function hd(s){if(!An(s)||Pr(s)!=xr)return!1;var u=Rf(s);if(u===null)return!0;var d=Zt.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&Of.call(d)==Wj}var cy=Ob?ii(Ob):eG;function n2(s){return cA(s)&&s>=-dn&&s<=dn}var pA=Db?ii(Db):tG;function rm(s){return typeof s=="string"||!lt(s)&&An(s)&&Pr(s)==ni}function si(s){return typeof s=="symbol"||An(s)&&Pr(s)==xt}var Gc=bb?ii(bb):nG;function r2(s){return s===e}function i2(s){return An(s)&&Er(s)==gu}function a2(s){return An(s)&&Pr(s)==ya}var s2=Yf(kh),o2=Yf(function(s,u){return s<=u});function fA(s){if(!s)return[];if(Vr(s))return rm(s)?$i(s):qr(s);if(ad&&s[ad])return xj(s[ad]());var u=Er(s),d=u==tt?Sh:u==pr?_f:$c;return d(s)}function is(s){if(!s)return s===0?s:0;if(s=_i(s),s===Vt||s===-Vt){var u=s<0?-1:1;return u*Ar}return s===s?s:0}function Nt(s){var u=is(s),d=u%1;return u===u?d?u-d:u:0}function mA(s){return s?bu(Nt(s),0,Un):0}function _i(s){if(typeof s=="number")return s;if(si(s))return Rr;if(_n(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=_n(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lb(s);var d=j1.test(s);return d||G1.test(s)?_j(s.slice(2),d?2:8):V1.test(s)?Rr:+s}function NA(s){return ga(s,jr(s))}function u2(s){return s?bu(Nt(s),-dn,dn):s===0?s:0}function Qt(s){return s==null?"":ai(s)}var c2=Vc(function(s,u){if(Td(u)||Vr(u)){ga(u,ar(u),s);return}for(var d in u)Zt.call(u,d)&&ld(s,d,u[d])}),TA=Vc(function(s,u){ga(u,jr(u),s)}),im=Vc(function(s,u,d,E){ga(u,jr(u),s,E)}),l2=Vc(function(s,u,d,E){ga(u,ar(u),s,E)}),d2=ts(Ph);function p2(s,u){var d=qc(s);return u==null?d:Jb(d,u)}var f2=yt(function(s,u){s=on(s);var d=-1,E=u.length,S=E>2?u[2]:e;for(S&&Fr(u[0],u[1],S)&&(E=1);++d1),L}),ga(s,zh(s),d),E&&(d=yi(d,p|f|y,SG));for(var S=u.length;S--;)jh(d,u[S]);return d});function F2(s,u){return hA(s,tm(ze(u)))}var w2=ts(function(s,u){return s==null?{}:aG(s,u)});function hA(s,u){if(s==null)return{};var d=yn(zh(s),function(E){return[E]});return u=ze(u),c0(s,d,function(E,S){return u(E,S[0])})}function L2(s,u,d){u=Go(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(d||s%1||u%1){var S=Gb();return Tr(s+S*(u-s+gj("1e-"+((S+"").length-1))),u)}return xh(s,u)}var G2=jc(function(s,u,d){return u=u.toLowerCase(),s+(d?gA(u):u)});function gA(s){return py(Qt(s).toLowerCase())}function _A(s){return s=Qt(s),s&&s.replace(Q1,Cj).replace(dj,"")}function $2(s,u,d){s=Qt(s),u=ai(u);var E=s.length;d=d===e?E:bu(Nt(d),0,E);var S=d;return d-=u.length,d>=0&&s.slice(d,S)==u}function Q2(s){return s=Qt(s),s&&D1.test(s)?s.replace(ZD,Bj):s}function Y2(s){return s=Qt(s),s&&w1.test(s)?s.replace(oh,"\\$&"):s}var J2=jc(function(s,u,d){return s+(d?"-":"")+u.toLowerCase()}),H2=jc(function(s,u,d){return s+(d?" ":"")+u.toLowerCase()}),z2=O0("toLowerCase");function W2(s,u,d){s=Qt(s),u=Nt(u);var E=u?Uc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Qf(Lf(S),d)+s+Qf(wf(S),d)}function X2(s,u,d){s=Qt(s),u=Nt(u);var E=u?Uc(s):0;return u&&E>>0,d?(s=Qt(s),s&&(typeof u=="string"||u!=null&&!cy(u))&&(u=ai(u),!u&&Bc(s))?$o($i(s),0,d):s.split(u,d)):[]}var aY=jc(function(s,u,d){return s+(d?" ":"")+py(u)});function sY(s,u,d){return s=Qt(s),d=d==null?0:bu(Nt(d),0,s.length),u=ai(u),s.slice(d,d+u.length)==u}function oY(s,u,d){var E=R.templateSettings;d&&Fr(s,u,d)&&(u=e),s=Qt(s),u=im({},u,E,w0);var S=im({},u.imports,E.imports,w0),L=ar(S),M=vh(S,L),j,H,fe=0,me=u.interpolate||Ef,Ee="__p += '",be=Oh((u.escape||Ef).source+"|"+me.source+"|"+(me===eb?q1:Ef).source+"|"+(u.evaluate||Ef).source+"|$","g"),je="//# sourceURL="+(Zt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Tj+"]")+` +`;s.replace(be,function(Ze,vt,Rt,oi,wr,ui){return Rt||(Rt=oi),Ee+=s.slice(fe,ui).replace(Y1,Uj),vt&&(j=!0,Ee+=`' + __e(`+vt+`) + '`),wr&&(H=!0,Ee+=`'; `+wr+`; __p += '`),Rt&&(Ee+=`' + ((__t = (`+Rt+`)) == null ? '' : __t) + -'`),pe=ui+Ze.length,Ze}),Ee+=`'; +'`),fe=ui+Ze.length,Ze}),Ee+=`'; `;var Xe=Zt.call(u,"variable")&&u.variable;if(!Xe)Ee=`with (obj) { `+Ee+` } @@ -464,10 +464,10 @@ __p += '`),Rt&&(Ee+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ee+`return __p -}`;var Et=SA(function(){return jt(L,je+"return "+Ee).apply(e,M)});if(Et.source=Ee,uy(Et))throw Et;return Et}function uY(s){return Qt(s).toLowerCase()}function cY(s){return Qt(s).toUpperCase()}function lY(s,u,d){if(s=Qt(s),s&&(d||u===e))return Lb(s);if(!s||!(u=ai(u)))return s;var E=$i(s),S=$i(u),L=Cb(E,S),M=Bb(E,S)+1;return $o(E,L,M).join("")}function dY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.slice(0,kb(s)+1);if(!s||!(u=ai(u)))return s;var E=$i(s),S=Bb(E,$i(u))+1;return $o(E,0,S).join("")}function pY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.replace(uh,"");if(!s||!(u=ai(u)))return s;var E=$i(s),S=Cb(E,$i(u));return $o(E,S).join("")}function fY(s,u){var d=it,E=ee;if(_n(u)){var S="separator"in u?u.separator:S;d="length"in u?Nt(u.length):d,E="omission"in u?ai(u.omission):E}s=Qt(s);var L=s.length;if(Bc(s)){var M=$i(s);L=M.length}if(d>=L)return s;var j=d-Uc(E);if(j<1)return E;var H=M?$o(M,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(M&&(j+=H.length-j),cy(S)){if(s.slice(j).search(S)){var pe,me=H;for(S.global||(S=Oh(S.source,Qt(tb.exec(S))+"g")),S.lastIndex=0;pe=S.exec(me);)var Ee=pe.index;H=H.slice(0,Ee===e?j:Ee)}}else if(s.indexOf(ai(S),j)!=j){var be=H.lastIndexOf(S);be>-1&&(H=H.slice(0,be))}return H+E}function mY(s){return s=Qt(s),s&&O1.test(s)?s.replace(XD,Kj):s}var NY=jc(function(s,u,d){return s+(d?" ":"")+u.toUpperCase()}),py=O0("toUpperCase");function vA(s,u,d){return s=Qt(s),u=d?e:u,u===e?Mj(s)?Qj(s):Rj(s):s.match(u)||[]}var SA=yt(function(s,u){try{return ri(s,e,u)}catch(d){return uy(d)?d:new ot(d)}}),TY=ts(function(s,u){return Ti(u,function(d){d=_a(d),Za(s,d,sy(s[d],s))}),s});function EY(s){var u=s==null?0:s.length,d=ze();return s=u?yn(s,function(E){if(typeof E[1]!="function")throw new Ei(i);return[d(E[0]),E[1]]}):[],yt(function(E){for(var S=-1;++Sdn)return[];var d=Un,E=Tr(s,Un);u=ze(u),s-=Un;for(var S=_h(E,u);++d0||u<0)?new Ot(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),u!==e&&(u=Nt(u),d=u<0?d.dropRight(-u):d.take(u-s)),d)},Ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ot.prototype.toArray=function(){return this.take(Un)},Ia(Ot.prototype,function(s,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=R[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(R.prototype[u]=function(){var M=this.__wrapped__,j=E?[1]:arguments,H=M instanceof Ot,pe=j[0],me=H||lt(M),Ee=function(vt){var Rt=S.apply(R,Mo([vt],j));return E&&be?Rt[0]:Rt};me&&d&&typeof pe=="function"&&pe.length!=1&&(H=me=!1);var be=this.__chain__,je=!!this.__actions__.length,Xe=L&&!be,Et=H&&!je;if(!L&&me){M=Et?M:new Ot(this);var Ze=s.apply(M,j);return Ze.__actions__.push({func:Wf,args:[Ee],thisArg:e}),new hi(Ze,be)}return Xe&&Et?s.apply(this,j):(Ze=this.thru(Ee),Xe?E?Ze.value()[0]:Ze.value():Ze)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var u=vf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(lt(L)?L:[],S)}return this[d](function(M){return u.apply(lt(M)?M:[],S)})}}),Ia(Ot.prototype,function(s,u){var d=R[u];if(d){var E=d.name+"";Zt.call(xc,E)||(xc[E]=[]),xc[E].push({name:u,func:d})}}),xc[Gf(e,k).name]=[{name:"wrapper",func:e}],Ot.prototype.clone=mK,Ot.prototype.reverse=NK,Ot.prototype.value=TK,R.prototype.at=$$,R.prototype.chain=Q$,R.prototype.commit=Y$,R.prototype.next=J$,R.prototype.plant=z$,R.prototype.reverse=W$,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=X$,R.prototype.first=R.prototype.head,ad&&(R.prototype[ad]=H$),R},qo=Yj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=qo,define(function(){return qo})):vu?((vu.exports=qo)._=qo,mh._=qo):ir._=qo}).call(Ql)});var eV=w(vc=>{"use strict";m();T();N();Object.defineProperty(vc,"__esModule",{value:!0});vc.FederationFactory=void 0;vc.federateSubgraphs=yle;vc.federateSubgraphsWithContracts=Ile;vc.federateSubgraphsContract=gle;var Re=Ae(),zq=su(),kr=Yr(),Fe=ia(),_c=CN(),Wq=Up(),ti=jp(),RE=WT(),jn=Es(),Tle=zO(),Ele=Kp(),Xq=Ep(),ge=El(),hle=ZO(),Zq=Hq(),Yl=AE(),Oe=ur(),PE=ml(),he=Jr(),FE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:p}){_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"clientDefinitions",[jn.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Oe.AUTHENTICATED,jn.AUTHENTICATED_DEFINITION],[Oe.DEPRECATED,jn.DEPRECATED_DEFINITION],[Oe.INACCESSIBLE,jn.INACCESSIBLE_DEFINITION],[Oe.REQUIRES_SCOPES,jn.REQUIRES_SCOPES_DEFINITION],[Oe.TAG,jn.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([Oe.AUTHENTICATED,Oe.DEPRECATED,Oe.INACCESSIBLE,Oe.TAG,Oe.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"routerDefinitions",[jn.DEPRECATED_DEFINITION,jn.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=p}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ge.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,kr.stringToNamedTypeNode)(c));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,c,Oe.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let p={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[y,g]of l.fieldDataByName){let v=!1,P=t.fieldDataByName.get(y);if(!P){f=!0,p.unimplementedFields.push(y);continue}let k={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,RE.printTypeNode)(g.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(g.node.type,P.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,v=!0,k.implementedResponseType=(0,RE.printTypeNode)(P.node.type));let K=new Set;for(let[G,Z]of g.argumentDataByName){let W=Z.node;K.add(G);let Te=(o=P.argumentDataByName.get(G))==null?void 0:o.node;if(!Te){f=!0,v=!0,k.unimplementedArguments.add(G);continue}let fe=(0,RE.printTypeNode)(Te.type),we=(0,RE.printTypeNode)(W.type);we!==fe&&(f=!0,v=!0,k.invalidImplementedArguments.push({actualType:fe,argumentName:G,expectedType:we}))}for(let[G,Z]of P.argumentDataByName){let W=Z.node;K.has(G)||W.type.kind===Re.Kind.NON_NULL_TYPE&&(f=!0,v=!0,k.invalidAdditionalArguments.add(G))}!r&&P.isInaccessible&&!g.isInaccessible&&(f=!0,v=!0,k.isInaccessible=!0),v&&p.invalidFieldImplementations.set(y,k)}f&&i.set(c,p)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=(0,he.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,g]of this.entityInterfaceFederationDataByTypeName){if(!((f=g.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let p=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)p.has(y.selectionSet)||(o.keys.push(y),p.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,he.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let p=new Set(c.keys.map(f=>f.selectionSet));for(let f of l)p.has(f.selectionSet)||(c.keys.push(f),p.add(f.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ge.MergeMethod.CONSISTENT:ge.MergeMethod.INTERSECTION:ge.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(".");if(r.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,_c.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1])),c=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,ge.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,ge.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,he.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,he.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,Yl.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,ge.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ge.isNodeDataInaccessible)(n)){if((0,ge.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(Oe.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,he.getSingleSetEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,zq.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=Yl.DivergentType.NONE,c=a;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,ge.isNodeDataInaccessible)(n));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),p=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(p.size<1)for(let f of a.subgraphNames)n.subgraphNames.has(f)||p.add(f);(0,he.addIterableValuesToSet)(n.subgraphNames,(0,he.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,he.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Re.Kind.INPUT_VALUE_DEFINITION,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByValueName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,ge.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,ge.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Re.Kind.ENUM_TYPE_DEFINITION:return Y(x({},n),{appearances:t.appearances,enumValueDataByValueName:this.copyEnumValueDataByValueName(t.enumValueDataByValueName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Y(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.renamedTypeName||t.name)},renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ge.isParentDataRootType)(r)&&(r.extensionType=Xq.ExtensionType.NONE),r}return(0,ge.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphs.has(n)&&(a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION),!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentKindMergeError)(a.name,(0,he.kindToNodeType)(a.kind),(0,he.kindToNodeType)(t.kind)));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,t),(0,ge.setParentDataExtensionType)(a,t),a.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(a.enumValueDataByValueName,l,o);return;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,he.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Re.Kind.UNION_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;(0,he.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ge.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,zq.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByArgumentName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,he.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let p=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of o.keys()){p=f;for(let[y,g]of o)if(f!==y&&!g.implementedInterfaceTypeNames.has(f)){p="";break}if(p)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(p,c)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=p,this.updateTypeNodeNamedType(a.type,p)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,hle.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let f of i.satisfiedFieldSets)c.satisfiedFieldSets.add(f),a.has(f)&&l.addTargetSubgraphByFieldSet(f,o);let p=r.fieldDatasBySubgraphName.get(o);for(let{name:f,namedTypeName:y}of p||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),f);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,ti.subtractSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Oe.PARENT_DEFINITION_DATA);if(r.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let a=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=a.configurationDataByTypeName,c=this.concreteTypeNamesByAbstractTypeName.get(t);if(!c)continue;let l=(0,he.getOrThrowError)(o,t,"configurationDataByTypeName"),p=l.keys;if(!p)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames,this.internalGraph.setSubgraphName(i);let f=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let y of c){let g=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y,Oe.PARENT_DEFINITION_DATA);if(!(0,ti.isObjectDefinitionData)(g))continue;let v=(0,he.getOrThrowError)(this.entityDataByTypeName,y,"entityDataByTypeName");v.subgraphNames.add(i);let P=o.get(y);if(P)if((0,he.addIterableValuesToSet)(l.fieldNames,P.fieldNames),!P.keys)P.keys=[...p];else e:for(let G of p){for(let{selectionSet:Z}of P.keys)if(G.selectionSet===Z)continue e;P.keys.push(G)}else o.set(y,{fieldNames:new Set(l.fieldNames),isRootNode:!0,keys:[...p],typeName:y});let k=new Set;for(let G of p.filter(Z=>!Z.disableEntityResolver))k.add(G.selectionSet);let K=this.authorizationDataByParentTypeName.get(t);for(let G of n.interfaceObjectFieldNames){let Z=`${y}.${G}`,W=(0,he.getOrThrowError)(r.fieldDataByName,G,`${t}.fieldDataByFieldName`);(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,W.namedTypeName,()=>new Set).add(Z);let Te=K==null?void 0:K.fieldAuthDataByFieldName.get(G);if(Te){let Ve=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,y,()=>(0,ti.newAuthorizationData)(y));(0,ti.upsertFieldAuthorizationData)(Ve.fieldAuthDataByFieldName,Te)||this.invalidORScopesCoords.add(Z)}if(g.fieldDataByName.get(G))continue;let we=r.isInaccessible||g.isInaccessible||W.isInaccessible;g.fieldDataByName.set(G,this.copyFieldData(W,we))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:a,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:f,resolvableKeyFieldSets:k,entityData:v})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,ti.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t,n){let r=[];for(let[i,a]of t){let o=this.persistedDirectiveDefinitionByDirectiveName.get(i);if(o){if(a.length<2){r.push(...a);continue}if(!o.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(i,n));continue}r.push(...a)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ge.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t.persistedDirectivesData.directivesByDirectiveName,t.name)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,_c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,ge.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.FIELD,a,i)):r.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Xq.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let Z of r.enumValueDataByValueName.values()){let W=(0,ge.getNodeForRouterSchemaByData)(Z,this.persistedDirectiveDefinitionByDirectiveName,this.errors),Te=(0,ge.isNodeDataInaccessible)(Z),fe=Y(x({},Z.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(Z)});switch(o){case ge.MergeMethod.CONSISTENT:!Te&&r.appearances>Z.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(W),Te||a.push(fe);break;case ge.MergeMethod.INTERSECTION:r.appearances===Z.appearances&&(i.push(W),Te||a.push(fe));break;default:i.push(W),Te||a.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.ENUM_VALUE));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:let c=[],l=[],p=[];for(let[Z,W]of r.inputValueDataByName)if(r.subgraphNames.size===W.subgraphNames.size){if(l.push(this.getNodeWithPersistedDirectivesByInputValueData(W)),(0,ge.isNodeDataInaccessible)(W))continue;p.push(Y(x({},W.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(W)}))}else(0,ge.isTypeRequired)(W.type)&&c.push({inputValueName:Z,missingSubgraphs:(0,he.getEntriesNotInHashSet)(r.subgraphNames,W.subgraphNames),requiredSubgraphs:[...W.requiredSubgraphNames]});if(c.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.INPUT_OBJECT,n,c,!1));break}if(r.node.fields=l,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(p.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,"input field"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:p}));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let f=[],y=[],g=new Map,v=(0,ge.newInvalidFieldNames)(),P=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,k=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,k);for(let[Z,W]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(W,k);let Te=this.getValidFieldArgumentNodes(W);P&&(0,ge.validateExternalAndShareable)(W,v),f.push(this.getNodeWithPersistedDirectivesByFieldData(W,Te)),!(0,ge.isNodeDataInaccessible)(W)&&(y.push((0,ge.getClientSchemaFieldNodeByFieldData)(W)),g.set(Z,this.fieldDataToGraphFieldData(W)))}if(P&&(v.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,v.byShareable)),v.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,v.subgraphNamesByExternalFieldName))),r.node.fields=f,this.internalGraph.initializeNode(n,g),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let K=(0,Ele.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(K){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let Z=K?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.FIELD);this.errors.push(Z);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:y}));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(jn.BASE_SCALARS.has(n))break;if((0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break;case Re.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,ti.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let G=this.getClientSchemaUnionMembers(r);if(G.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(Oe.UNION,n,"union member type"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:G}));break}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(Oe.PERIOD);switch(o.length){case 2:{let c=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,ti.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,ti.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>jn.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,ge.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,ge.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,kr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Y(x({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[jn.AUTHENTICATED_DEFINITION,jn.DEPRECATED_DEFINITION,jn.INACCESSIBLE_DEFINITION,jn.REQUIRES_SCOPES_DEFINITION,jn.TAG_DEFINITION,jn.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[jn.DEPRECATED_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Oe.LEFT_PARENTHESIS)[0].split(Oe.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Oe.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(Oe.PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let p=0;p0?`.${f}`:f,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(f);if(!y)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,c.renamedTypeName)),[];let g=`${c.renamedTypeName}.${f}`;if(!y.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g,i)),[];if(this.inaccessibleCoords.has(g))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g)),[];if(jn.BASE_SCALARS.has(y.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Oe.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,he.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,p=new Set([Oe.FIELD_PATH,Oe.VALUES]),f=new Set,y=new Set,g=[];for(let v of t.fields){let P=v.name.value,k=a+`.${P}`;switch(P){case Oe.FIELD_PATH:{if(p.has(Oe.FIELD_PATH))p.delete(Oe.FIELD_PATH);else{l=!0,f.add(Oe.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,Oe.STRING,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,k,o,g);if(K.length<1){l=!0;break}n.fieldPath=K;break}case Oe.VALUES:{if(p.has(Oe.VALUES))p.delete(Oe.VALUES);else{l=!0,f.add(Oe.VALUES);break}let K=v.value.kind;if(K==Re.Kind.NULL||K==Re.Kind.OBJECT){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,Oe.LIST,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let G=new Set,Z=[];for(let W=0;W0){g.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(k,Z));continue}if(G.size<1){l=!0,g.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(k));continue}n.values=[...G];break}default:l=!0,y.add(P)}}return l?(c.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...p],[...f],[...y],g)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],p=l.name.value;if(!Wq.SUBSCRIPTION_FILTER_INPUT_NAMES.has(p))return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,p)),!1;let f=a+`.${p}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(p){case Oe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case Oe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.LIST,Oe.OBJECT)),!1}case Re.Kind.LIST:{let y=[];switch(p){case Oe.AND_UPPER:{n.and=y;break}case Oe.OR_UPPER:{n.or=y;break}default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.OBJECT,Oe.LIST)),!1}let g=l.value.values.length;if(g<1||g>5)return c.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,g)),!1;let v=!0,P=[];for(let k=0;k0?(c.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,P)),!1):v}default:{let y=Wq.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(p)?Oe.LIST:Oe.OBJECT;return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,y,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Re.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Oe.CONDITION,Oe.OBJECT,(0,he.kindToNodeType)(c.value.kind))]));return}let l={},p=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,Oe.CONDITION,o,p)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,p)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ge.isNodeDataInaccessible)(r)||r.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(jn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(a.length>0)return{errors:a,success:!1,warnings:this.warnings}}let n={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,he.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,he.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,ge.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(jn.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Oe.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,c.childTagDataByChildName,t.tagNamesToExclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break;default:let p=l.fieldDataByName.size;for(let[f,y]of c.childTagDataByChildName){let g=(0,he.getOrThrowError)(l.fieldDataByName,f,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(g)){p-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,he.getValueOrDefault)(g.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(g.federatedCoords),p-=1;continue}for(let[v,P]of y.tagNamesByArgumentName){let k=(0,he.getOrThrowError)(g.argumentDataByName,v,`${f}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(k)||P.isDisjointFrom(P)||((0,he.getValueOrDefault)(k.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(k.federatedCoords))}}p<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,ge.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let p=c.fieldDataByName.size;for(let[f,y]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(y)){p-=1;continue}let g=l.childTagDataByChildName.get(f);(!g||t.tagNamesToInclude.isDisjointFrom(g.tagNames))&&((0,he.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),p-=1)}p<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};vc.FederationFactory=FE;function eD({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,Tle.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[o,c]of n.internalSubgraphBySubgraphName)for(let[l,p]of c.entityInterfaces){let f=r.get(l);if(!f){r.set(l,(0,ti.newEntityInterfaceFederationData)(p,o));continue}(0,ti.upsertEntityInterfaceFederationData)(f,p,o)}let a=[];for(let[o,c]of r){let l=c.concreteTypeNames.size;for(let[p,f]of c.subgraphDataByTypeName){if(!f.isInterfaceObject){f.resolvable&&f.concreteTypeNames.size!==l&&(0,he.getValueOrDefault)(i,o,()=>[]).push({subgraphName:p,concreteTypeNames:f.concreteTypeNames});continue}let{parentDefinitionDataByTypeName:y}=(0,he.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),g=[];for(let v of c.concreteTypeNames)y.has(v)&&g.push(v);g.length>0&&a.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(o,p,g))}}return i.size>0&&a.push((0,Fe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new FE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function yle({disableResolvabilityValidation:e,subgraphs:t}){let n=eD({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function Ile({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=eD({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,Zq.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[p,f]of t){l!==o&&i.push((0,Zq.cloneDeep)(i[l]));let y=i[l].buildFederationContractResult(f);c.set(p,y),l++}return Y(x({},a),{federationResultByContractName:c})}function gle({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=eD({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var wE=w(Ss=>{"use strict";m();T();N();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LATEST_ROUTER_COMPATIBILITY_VERSION=Ss.ROUTER_COMPATIBILITY_VERSIONS=Ss.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ss.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ss.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ss.ROUTER_COMPATIBILITY_VERSION_ONE]);Ss.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var tV=w(Jp=>{"use strict";m();T();N();Object.defineProperty(Jp,"__esModule",{value:!0});Jp.federateSubgraphs=_le;Jp.federateSubgraphsWithContracts=vle;Jp.federateSubgraphsContract=Sle;var tD=eV(),nD=wE();function _le({disableResolvabilityValidation:e,subgraphs:t,version:n=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,tD.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function vle({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,tD.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function Sle({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,tD.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var rV=w(nV=>{"use strict";m();T();N();Object.defineProperty(nV,"__esModule",{value:!0})});var iV=w(Hp=>{"use strict";m();T();N();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.normalizeSubgraphFromString=Ole;Hp.normalizeSubgraph=Dle;Hp.batchNormalize=ble;var rD=zO(),iD=wE();function Ole(e,t=!0,n=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,rD.normalizeSubgraphFromString)(e,t)}}function Dle(e,t,n,r=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,rD.normalizeSubgraph)(e,t,n)}}function ble(e,t=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,rD.batchNormalize)(e)}}});var sV=w(aV=>{"use strict";m();T();N();Object.defineProperty(aV,"__esModule",{value:!0})});var uV=w(oV=>{"use strict";m();T();N();Object.defineProperty(oV,"__esModule",{value:!0})});var lV=w(cV=>{"use strict";m();T();N();Object.defineProperty(cV,"__esModule",{value:!0})});var pV=w(dV=>{"use strict";m();T();N();Object.defineProperty(dV,"__esModule",{value:!0})});var fV=w(LE=>{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.COMPOSITION_VERSION=void 0;LE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var NV=w(mV=>{"use strict";m();T();N();Object.defineProperty(mV,"__esModule",{value:!0})});var EV=w(TV=>{"use strict";m();T();N();Object.defineProperty(TV,"__esModule",{value:!0})});var yV=w(hV=>{"use strict";m();T();N();Object.defineProperty(hV,"__esModule",{value:!0})});var CE=w(pt=>{"use strict";m();T();N();var Ale=pt&&pt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),St=pt&&pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ale(t,e,n)};Object.defineProperty(pt,"__esModule",{value:!0});St(Yr(),pt);St(lv(),pt);St(ia(),pt);St(Ak(),pt);St(tV(),pt);St(rV(),pt);St(iV(),pt);St(sV(),pt);St(YO(),pt);St(jO(),pt);St(GO(),pt);St(wE(),pt);St(uV(),pt);St(JO(),pt);St(su(),pt);St(Ep(),pt);St(El(),pt);St(lV(),pt);St(pV(),pt);St(fV(),pt);St(ur(),pt);St(NV(),pt);St(Jr(),pt);St(CO(),pt);St(CN(),pt);St(ZO(),pt);St(EV(),pt);St(RO(),pt);St(Kp(),pt);St(yV(),pt);St(kO(),pt);St(AE(),pt);St(wO(),pt);St(Es(),pt);St(jp(),pt);St(Up(),pt);St(IE(),pt)});var gde={};am(gde,{buildRouterConfiguration:()=>Ide,federateSubgraphs:()=>yde});m();T();N();var Pc=ss(CE());m();T();N();m();T();N();function aD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var IV={};m();T();N();function gV(e){return e!=null}m();T();N();m();T();N();var DV=ss(Ae(),1);m();T();N();var _V;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}_V=function(t,n){return new e(t,n)}}else _V=AggregateError;function vV(e){return"errors"in e&&Array.isArray(e.errors)}var bV=3;function AV(e){return BE(e,[])}function BE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Rle(e,t);default:return String(e)}}function SV(e){return e instanceof DV.GraphQLError?e.toString():`${e.name}: ${e.message}; +}`;var Et=SA(function(){return jt(L,je+"return "+Ee).apply(e,M)});if(Et.source=Ee,uy(Et))throw Et;return Et}function uY(s){return Qt(s).toLowerCase()}function cY(s){return Qt(s).toUpperCase()}function lY(s,u,d){if(s=Qt(s),s&&(d||u===e))return Lb(s);if(!s||!(u=ai(u)))return s;var E=$i(s),S=$i(u),L=Cb(E,S),M=Bb(E,S)+1;return $o(E,L,M).join("")}function dY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.slice(0,kb(s)+1);if(!s||!(u=ai(u)))return s;var E=$i(s),S=Bb(E,$i(u))+1;return $o(E,0,S).join("")}function pY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.replace(uh,"");if(!s||!(u=ai(u)))return s;var E=$i(s),S=Cb(E,$i(u));return $o(E,S).join("")}function fY(s,u){var d=et,E=X;if(_n(u)){var S="separator"in u?u.separator:S;d="length"in u?Nt(u.length):d,E="omission"in u?ai(u.omission):E}s=Qt(s);var L=s.length;if(Bc(s)){var M=$i(s);L=M.length}if(d>=L)return s;var j=d-Uc(E);if(j<1)return E;var H=M?$o(M,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(M&&(j+=H.length-j),cy(S)){if(s.slice(j).search(S)){var fe,me=H;for(S.global||(S=Oh(S.source,Qt(tb.exec(S))+"g")),S.lastIndex=0;fe=S.exec(me);)var Ee=fe.index;H=H.slice(0,Ee===e?j:Ee)}}else if(s.indexOf(ai(S),j)!=j){var be=H.lastIndexOf(S);be>-1&&(H=H.slice(0,be))}return H+E}function mY(s){return s=Qt(s),s&&O1.test(s)?s.replace(XD,Kj):s}var NY=jc(function(s,u,d){return s+(d?" ":"")+u.toUpperCase()}),py=O0("toUpperCase");function vA(s,u,d){return s=Qt(s),u=d?e:u,u===e?Mj(s)?Qj(s):Rj(s):s.match(u)||[]}var SA=yt(function(s,u){try{return ri(s,e,u)}catch(d){return uy(d)?d:new ot(d)}}),TY=ts(function(s,u){return Ti(u,function(d){d=_a(d),Za(s,d,sy(s[d],s))}),s});function EY(s){var u=s==null?0:s.length,d=ze();return s=u?yn(s,function(E){if(typeof E[1]!="function")throw new Ei(i);return[d(E[0]),E[1]]}):[],yt(function(E){for(var S=-1;++Sdn)return[];var d=Un,E=Tr(s,Un);u=ze(u),s-=Un;for(var S=_h(E,u);++d0||u<0)?new Ot(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),u!==e&&(u=Nt(u),d=u<0?d.dropRight(-u):d.take(u-s)),d)},Ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ot.prototype.toArray=function(){return this.take(Un)},Ia(Ot.prototype,function(s,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=R[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(R.prototype[u]=function(){var M=this.__wrapped__,j=E?[1]:arguments,H=M instanceof Ot,fe=j[0],me=H||lt(M),Ee=function(vt){var Rt=S.apply(R,Mo([vt],j));return E&&be?Rt[0]:Rt};me&&d&&typeof fe=="function"&&fe.length!=1&&(H=me=!1);var be=this.__chain__,je=!!this.__actions__.length,Xe=L&&!be,Et=H&&!je;if(!L&&me){M=Et?M:new Ot(this);var Ze=s.apply(M,j);return Ze.__actions__.push({func:Wf,args:[Ee],thisArg:e}),new hi(Ze,be)}return Xe&&Et?s.apply(this,j):(Ze=this.thru(Ee),Xe?E?Ze.value()[0]:Ze.value():Ze)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var u=vf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(lt(L)?L:[],S)}return this[d](function(M){return u.apply(lt(M)?M:[],S)})}}),Ia(Ot.prototype,function(s,u){var d=R[u];if(d){var E=d.name+"";Zt.call(xc,E)||(xc[E]=[]),xc[E].push({name:u,func:d})}}),xc[Gf(e,k).name]=[{name:"wrapper",func:e}],Ot.prototype.clone=mK,Ot.prototype.reverse=NK,Ot.prototype.value=TK,R.prototype.at=$$,R.prototype.chain=Q$,R.prototype.commit=Y$,R.prototype.next=J$,R.prototype.plant=z$,R.prototype.reverse=W$,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=X$,R.prototype.first=R.prototype.head,ad&&(R.prototype[ad]=H$),R},qo=Yj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=qo,define(function(){return qo})):vu?((vu.exports=qo)._=qo,mh._=qo):ir._=qo}).call(Ql)});var eV=w(vc=>{"use strict";m();T();N();Object.defineProperty(vc,"__esModule",{value:!0});vc.FederationFactory=void 0;vc.federateSubgraphs=yle;vc.federateSubgraphsWithContracts=Ile;vc.federateSubgraphsContract=gle;var Re=Ae(),zq=su(),kr=Yr(),we=ia(),_c=CN(),Wq=Up(),ti=jp(),RE=WT(),jn=Es(),Tle=zO(),Ele=Kp(),Xq=Ep(),ge=El(),hle=ZO(),Zq=Hq(),Yl=AE(),Oe=ur(),PE=ml(),he=Jr(),FE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:p}){_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"clientDefinitions",[jn.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Oe.AUTHENTICATED,jn.AUTHENTICATED_DEFINITION],[Oe.DEPRECATED,jn.DEPRECATED_DEFINITION],[Oe.INACCESSIBLE,jn.INACCESSIBLE_DEFINITION],[Oe.REQUIRES_SCOPES,jn.REQUIRES_SCOPES_DEFINITION],[Oe.TAG,jn.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([Oe.AUTHENTICATED,Oe.DEPRECATED,Oe.INACCESSIBLE,Oe.TAG,Oe.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"routerDefinitions",[jn.DEPRECATED_DEFINITION,jn.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=p}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ge.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,kr.stringToNamedTypeNode)(c));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,c,Oe.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let p={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[y,g]of l.fieldDataByName){let v=!1,F=t.fieldDataByName.get(y);if(!F){f=!0,p.unimplementedFields.push(y);continue}let k={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,RE.printTypeNode)(g.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(g.node.type,F.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,v=!0,k.implementedResponseType=(0,RE.printTypeNode)(F.node.type));let K=new Set;for(let[$,ne]of g.argumentDataByName){let z=ne.node;K.add($);let Te=(o=F.argumentDataByName.get($))==null?void 0:o.node;if(!Te){f=!0,v=!0,k.unimplementedArguments.add($);continue}let pe=(0,RE.printTypeNode)(Te.type),Fe=(0,RE.printTypeNode)(z.type);Fe!==pe&&(f=!0,v=!0,k.invalidImplementedArguments.push({actualType:pe,argumentName:$,expectedType:Fe}))}for(let[$,ne]of F.argumentDataByName){let z=ne.node;K.has($)||z.type.kind===Re.Kind.NON_NULL_TYPE&&(f=!0,v=!0,k.invalidAdditionalArguments.add($))}!r&&F.isInaccessible&&!g.isInaccessible&&(f=!0,v=!0,k.isInaccessible=!0),v&&p.invalidFieldImplementations.set(y,k)}f&&i.set(c,p)}return a.size>0&&this.errors.push((0,we.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,we.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)throw(0,we.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,g]of this.entityInterfaceFederationDataByTypeName){if(!((f=g.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let p=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)p.has(y.selectionSet)||(o.keys.push(y),p.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,we.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,he.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let p=new Set(c.keys.map(f=>f.selectionSet));for(let f of l)p.has(f.selectionSet)||(c.keys.push(f),p.add(f.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ge.MergeMethod.CONSISTENT:ge.MergeMethod.INTERSECTION:ge.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(".");if(r.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,_c.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1])),c=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,ge.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,ge.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,he.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,he.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,Yl.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,ge.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ge.isNodeDataInaccessible)(n)){if((0,ge.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,we.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(Oe.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,he.getSingleSetEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,we.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,zq.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=Yl.DivergentType.NONE,c=a;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,ge.isNodeDataInaccessible)(n));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),p=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(p.size<1)for(let f of a.subgraphNames)n.subgraphNames.has(f)||p.add(f);(0,he.addIterableValuesToSet)(n.subgraphNames,(0,he.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,he.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Re.Kind.INPUT_VALUE_DEFINITION,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByValueName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,ge.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,ge.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Re.Kind.ENUM_TYPE_DEFINITION:return Y(x({},n),{appearances:t.appearances,enumValueDataByValueName:this.copyEnumValueDataByValueName(t.enumValueDataByValueName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Y(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.renamedTypeName||t.name)},renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ge.isParentDataRootType)(r)&&(r.extensionType=Xq.ExtensionType.NONE),r}return(0,ge.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphs.has(n)&&(a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION),!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,we.incompatibleParentKindMergeError)(a.name,(0,he.kindToNodeType)(a.kind),(0,he.kindToNodeType)(t.kind)));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,t),(0,ge.setParentDataExtensionType)(a,t),a.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(a.enumValueDataByValueName,l,o);return;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,he.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Re.Kind.UNION_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;(0,he.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ge.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,zq.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByArgumentName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,he.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let p=l;if(o.size>0){if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of o.keys()){p=f;for(let[y,g]of o)if(f!==y&&!g.implementedInterfaceTypeNames.has(f)){p="";break}if(p)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(p,c)){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=p,this.updateTypeNodeNamedType(a.type,p)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,hle.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let f of i.satisfiedFieldSets)c.satisfiedFieldSets.add(f),a.has(f)&&l.addTargetSubgraphByFieldSet(f,o);let p=r.fieldDatasBySubgraphName.get(o);for(let{name:f,namedTypeName:y}of p||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),f);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,n,Oe.PARENT_DEFINITION_DATA);if(i.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphs){let o=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let p=(0,he.getOrThrowError)(c,n,"configurationDataByTypeName"),f=p.keys;if(!f)continue;p.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let y=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let g of l){let v=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,g,Oe.PARENT_DEFINITION_DATA);if(!(0,ti.isObjectDefinitionData)(v))continue;let F=(0,he.getOrThrowError)(this.entityDataByTypeName,g,"entityDataByTypeName");F.subgraphNames.add(a);let k=c.get(g);if(k)if((0,he.addIterableValuesToSet)(p.fieldNames,k.fieldNames),!k.keys)k.keys=[...f];else e:for(let z of f){for(let{selectionSet:Te}of k.keys)if(z.selectionSet===Te)continue e;k.keys.push(z)}else c.set(g,{fieldNames:new Set(p.fieldNames),isRootNode:!0,keys:[...f],typeName:g});let K=new Set;for(let z of f.filter(Te=>!Te.disableEntityResolver))K.add(z.selectionSet);let $=this.authorizationDataByParentTypeName.get(n),ne=(0,he.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,ti.isObjectDefinitionData)(ne)){for(let[z,Te]of ne.fieldDataByName){let pe=`${g}.${z}`;(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Te.namedTypeName,()=>new Set).add(pe);let Fe=$==null?void 0:$.fieldAuthDataByFieldName.get(z);if(Fe){let X=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,g,()=>(0,ti.newAuthorizationData)(g));(0,ti.upsertFieldAuthorizationData)(X.fieldAuthDataByFieldName,Fe)||this.invalidORScopesCoords.add(pe)}let Ve=v.fieldDataByName.get(z);if(Ve){let X=(t=Te.isShareableBySubgraphName.get(a))!=null?t:!1;Ve.isShareableBySubgraphName.set(a,X),Ve.subgraphNames.add(a);continue}let et=i.isInaccessible||v.isInaccessible||Te.isInaccessible;v.fieldDataByName.set(z,this.copyFieldData(Te,et))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:y,resolvableKeyFieldSets:K,entityData:F})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,ti.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t,n){let r=[];for(let[i,a]of t){let o=this.persistedDirectiveDefinitionByDirectiveName.get(i);if(o){if(a.length<2){r.push(...a);continue}if(!o.repeatable){this.errors.push((0,we.invalidRepeatedFederatedDirectiveErrorMessage)(i,n));continue}r.push(...a)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ge.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t.persistedDirectivesData.directivesByDirectiveName,t.name)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,_c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,we.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,ge.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,we.invalidRequiredInputValueError)(Oe.FIELD,a,i)):r.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Xq.ExtensionType.NONE&&this.errors.push((0,we.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let ne of r.enumValueDataByValueName.values()){let z=(0,ge.getNodeForRouterSchemaByData)(ne,this.persistedDirectiveDefinitionByDirectiveName,this.errors),Te=(0,ge.isNodeDataInaccessible)(ne),pe=Y(x({},ne.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(ne)});switch(o){case ge.MergeMethod.CONSISTENT:!Te&&r.appearances>ne.appearances&&this.errors.push((0,we.incompatibleSharedEnumError)(n)),i.push(z),Te||a.push(pe);break;case ge.MergeMethod.INTERSECTION:r.appearances===ne.appearances&&(i.push(z),Te||a.push(pe));break;default:i.push(z),Te||a.push(pe);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.ENUM_VALUE));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:let c=[],l=[],p=[];for(let[ne,z]of r.inputValueDataByName)if(r.subgraphNames.size===z.subgraphNames.size){if(l.push(this.getNodeWithPersistedDirectivesByInputValueData(z)),(0,ge.isNodeDataInaccessible)(z))continue;p.push(Y(x({},z.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(z)}))}else(0,ge.isTypeRequired)(z.type)&&c.push({inputValueName:ne,missingSubgraphs:(0,he.getEntriesNotInHashSet)(r.subgraphNames,z.subgraphNames),requiredSubgraphs:[...z.requiredSubgraphNames]});if(c.length>0){this.errors.push((0,we.invalidRequiredInputValueError)(Oe.INPUT_OBJECT,n,c,!1));break}if(r.node.fields=l,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(p.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,"input field"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:p}));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let f=[],y=[],g=new Map,v=(0,ge.newInvalidFieldNames)(),F=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,k=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,k);for(let[ne,z]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(z,k);let Te=this.getValidFieldArgumentNodes(z);F&&(0,ge.validateExternalAndShareable)(z,v),f.push(this.getNodeWithPersistedDirectivesByFieldData(z,Te)),!(0,ge.isNodeDataInaccessible)(z)&&(y.push((0,ge.getClientSchemaFieldNodeByFieldData)(z)),g.set(ne,this.fieldDataToGraphFieldData(z)))}if(F&&(v.byShareable.size>0&&this.errors.push((0,we.invalidFieldShareabilityError)(r,v.byShareable)),v.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,we.allExternalFieldInstancesError)(n,v.subgraphNamesByExternalFieldName))),r.node.fields=f,this.internalGraph.initializeNode(n,g),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let K=(0,Ele.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(K){this.errors.push(we.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let ne=K?(0,we.noQueryRootTypeError)(!1):(0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.FIELD);this.errors.push(ne);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:y}));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(jn.BASE_SCALARS.has(n))break;if((0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break;case Re.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,ti.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let $=this.getClientSchemaUnionMembers(r);if($.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)(Oe.UNION,n,"union member type"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:$}));break}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(Oe.PERIOD);switch(o.length){case 2:{let c=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,ti.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,ti.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>jn.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,ge.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,ge.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,kr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Y(x({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[jn.AUTHENTICATED_DEFINITION,jn.DEPRECATED_DEFINITION,jn.INACCESSIBLE_DEFINITION,jn.REQUIRES_SCOPES_DEFINITION,jn.TAG_DEFINITION,jn.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[jn.DEPRECATED_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Oe.LEFT_PARENTHESIS)[0].split(Oe.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,we.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Oe.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,we.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,we.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(Oe.PERIOD);if(o.length<1)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let p=0;p0?`.${f}`:f,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(f);if(!y)return a.push((0,we.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,c.renamedTypeName)),[];let g=`${c.renamedTypeName}.${f}`;if(!y.subgraphNames.has(i))return a.push((0,we.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g,i)),[];if(this.inaccessibleCoords.has(g))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g)),[];if(jn.BASE_SCALARS.has(y.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Oe.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,we.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,he.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,p=new Set([Oe.FIELD_PATH,Oe.VALUES]),f=new Set,y=new Set,g=[];for(let v of t.fields){let F=v.name.value,k=a+`.${F}`;switch(F){case Oe.FIELD_PATH:{if(p.has(Oe.FIELD_PATH))p.delete(Oe.FIELD_PATH);else{l=!0,f.add(Oe.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){g.push((0,we.invalidInputFieldTypeErrorMessage)(k,Oe.STRING,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,k,o,g);if(K.length<1){l=!0;break}n.fieldPath=K;break}case Oe.VALUES:{if(p.has(Oe.VALUES))p.delete(Oe.VALUES);else{l=!0,f.add(Oe.VALUES);break}let K=v.value.kind;if(K==Re.Kind.NULL||K==Re.Kind.OBJECT){g.push((0,we.invalidInputFieldTypeErrorMessage)(k,Oe.LIST,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let $=new Set,ne=[];for(let z=0;z0){g.push((0,we.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(k,ne));continue}if($.size<1){l=!0,g.push((0,we.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(k));continue}n.values=[...$];break}default:l=!0,y.add(F)}}return l?(c.push((0,we.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...p],[...f],[...y],g)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,we.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],p=l.name.value;if(!Wq.SUBSCRIPTION_FILTER_INPUT_NAMES.has(p))return c.push((0,we.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,p)),!1;let f=a+`.${p}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(p){case Oe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case Oe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.LIST,Oe.OBJECT)),!1}case Re.Kind.LIST:{let y=[];switch(p){case Oe.AND_UPPER:{n.and=y;break}case Oe.OR_UPPER:{n.or=y;break}default:return c.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.OBJECT,Oe.LIST)),!1}let g=l.value.values.length;if(g<1||g>5)return c.push((0,we.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,g)),!1;let v=!0,F=[];for(let k=0;k0?(c.push((0,we.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,F)),!1):v}default:{let y=Wq.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(p)?Oe.LIST:Oe.OBJECT;return c.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,y,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Re.Kind.OBJECT){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(r,[(0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Oe.CONDITION,Oe.OBJECT,(0,he.kindToNodeType)(c.value.kind))]));return}let l={},p=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,Oe.CONDITION,o,p)){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(r,p)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(t,[(0,we.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ge.isNodeDataInaccessible)(r)||r.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,we.orScopesLimitError)(jn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(a.length>0)return{errors:a,success:!1,warnings:this.warnings}}let n={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,he.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,he.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,ge.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(jn.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Oe.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,c.childTagDataByChildName,t.tagNamesToExclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break;default:let p=l.fieldDataByName.size;for(let[f,y]of c.childTagDataByChildName){let g=(0,he.getOrThrowError)(l.fieldDataByName,f,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(g)){p-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,he.getValueOrDefault)(g.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(g.federatedCoords),p-=1;continue}for(let[v,F]of y.tagNamesByArgumentName){let k=(0,he.getOrThrowError)(g.argumentDataByName,v,`${f}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(k)||F.isDisjointFrom(F)||((0,he.getValueOrDefault)(k.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(k.federatedCoords))}}p<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,ge.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let p=c.fieldDataByName.size;for(let[f,y]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(y)){p-=1;continue}let g=l.childTagDataByChildName.get(f);(!g||t.tagNamesToInclude.isDisjointFrom(g.tagNames))&&((0,he.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),p-=1)}p<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};vc.FederationFactory=FE;function eD({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[we.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,Tle.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[o,c]of n.internalSubgraphBySubgraphName)for(let[l,p]of c.entityInterfaces){let f=r.get(l);if(!f){r.set(l,(0,ti.newEntityInterfaceFederationData)(p,o));continue}(0,ti.upsertEntityInterfaceFederationData)(f,p,o)}let a=new Array;for(let[o,c]of r){let l=c.concreteTypeNames.size;for(let[p,f]of c.subgraphDataByTypeName){if(!f.isInterfaceObject){f.resolvable&&f.concreteTypeNames.size!==l&&(0,he.getValueOrDefault)(i,o,()=>[]).push({subgraphName:p,concreteTypeNames:f.concreteTypeNames});continue}let{parentDefinitionDataByTypeName:y}=(0,he.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),g=[];for(let v of c.concreteTypeNames)y.has(v)&&g.push(v);g.length>0&&a.push((0,we.invalidInterfaceObjectImplementationDefinitionsError)(o,p,g))}}return i.size>0&&a.push((0,we.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new FE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function yle({disableResolvabilityValidation:e,subgraphs:t}){let n=eD({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function Ile({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=eD({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,Zq.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[p,f]of t){l!==o&&i.push((0,Zq.cloneDeep)(i[l]));let y=i[l].buildFederationContractResult(f);c.set(p,y),l++}return Y(x({},a),{federationResultByContractName:c})}function gle({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=eD({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var wE=w(Ss=>{"use strict";m();T();N();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LATEST_ROUTER_COMPATIBILITY_VERSION=Ss.ROUTER_COMPATIBILITY_VERSIONS=Ss.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ss.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ss.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ss.ROUTER_COMPATIBILITY_VERSION_ONE]);Ss.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var tV=w(Jp=>{"use strict";m();T();N();Object.defineProperty(Jp,"__esModule",{value:!0});Jp.federateSubgraphs=_le;Jp.federateSubgraphsWithContracts=vle;Jp.federateSubgraphsContract=Sle;var tD=eV(),nD=wE();function _le({disableResolvabilityValidation:e,subgraphs:t,version:n=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,tD.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function vle({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,tD.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function Sle({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=nD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,tD.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var rV=w(nV=>{"use strict";m();T();N();Object.defineProperty(nV,"__esModule",{value:!0})});var iV=w(Hp=>{"use strict";m();T();N();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.normalizeSubgraphFromString=Ole;Hp.normalizeSubgraph=Dle;Hp.batchNormalize=ble;var rD=zO(),iD=wE();function Ole(e,t=!0,n=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,rD.normalizeSubgraphFromString)(e,t)}}function Dle(e,t,n,r=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,rD.normalizeSubgraph)(e,t,n)}}function ble(e,t=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,rD.batchNormalize)(e)}}});var sV=w(aV=>{"use strict";m();T();N();Object.defineProperty(aV,"__esModule",{value:!0})});var uV=w(oV=>{"use strict";m();T();N();Object.defineProperty(oV,"__esModule",{value:!0})});var lV=w(cV=>{"use strict";m();T();N();Object.defineProperty(cV,"__esModule",{value:!0})});var pV=w(dV=>{"use strict";m();T();N();Object.defineProperty(dV,"__esModule",{value:!0})});var fV=w(LE=>{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.COMPOSITION_VERSION=void 0;LE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var NV=w(mV=>{"use strict";m();T();N();Object.defineProperty(mV,"__esModule",{value:!0})});var EV=w(TV=>{"use strict";m();T();N();Object.defineProperty(TV,"__esModule",{value:!0})});var yV=w(hV=>{"use strict";m();T();N();Object.defineProperty(hV,"__esModule",{value:!0})});var CE=w(pt=>{"use strict";m();T();N();var Ale=pt&&pt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),St=pt&&pt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ale(t,e,n)};Object.defineProperty(pt,"__esModule",{value:!0});St(Yr(),pt);St(lv(),pt);St(ia(),pt);St(Ak(),pt);St(tV(),pt);St(rV(),pt);St(iV(),pt);St(sV(),pt);St(YO(),pt);St(jO(),pt);St(GO(),pt);St(wE(),pt);St(uV(),pt);St(JO(),pt);St(su(),pt);St(Ep(),pt);St(El(),pt);St(lV(),pt);St(pV(),pt);St(fV(),pt);St(ur(),pt);St(NV(),pt);St(Jr(),pt);St(CO(),pt);St(CN(),pt);St(ZO(),pt);St(EV(),pt);St(RO(),pt);St(Kp(),pt);St(yV(),pt);St(kO(),pt);St(AE(),pt);St(wO(),pt);St(Es(),pt);St(jp(),pt);St(Up(),pt);St(IE(),pt)});var gde={};am(gde,{buildRouterConfiguration:()=>Ide,federateSubgraphs:()=>yde});m();T();N();var Pc=ss(CE());m();T();N();m();T();N();function aD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var IV={};m();T();N();function gV(e){return e!=null}m();T();N();m();T();N();var DV=ss(Ae(),1);m();T();N();var _V;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}_V=function(t,n){return new e(t,n)}}else _V=AggregateError;function vV(e){return"errors"in e&&Array.isArray(e.errors)}var bV=3;function AV(e){return BE(e,[])}function BE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Rle(e,t);default:return String(e)}}function SV(e){return e instanceof DV.GraphQLError?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function Rle(e,t){if(e===null)return"null";if(e instanceof Error)return vV(e)?SV(e)+` `+OV(e.errors,t):SV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Ple(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:BE(r,n)}else if(Array.isArray(e))return OV(e,n);return Fle(e,n)}function Ple(e){return typeof e.toJSON=="function"}function Fle(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>bV?"["+wle(e)+"]":"{ "+n.map(([i,a])=>i+": "+BE(a,t)).join(", ")+" }"}function OV(e,t){if(e.length===0)return"[]";if(t.length>bV)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();N();var Pe=ss(Ae(),1);m();T();N();var $a=ss(Ae(),1);function Qa(e){if((0,$a.isNonNullType)(e)){let t=Qa(e.ofType);if(t.kind===$a.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${AV(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:$a.Kind.NON_NULL_TYPE,type:t}}else if((0,$a.isListType)(e))return{kind:$a.Kind.LIST_TYPE,type:Qa(e.ofType)};return{kind:$a.Kind.NAMED_TYPE,name:{kind:$a.Kind.NAME,value:e.name}}}m();T();N();var Ya=ss(Ae(),1);function kE(e){if(e===null)return{kind:Ya.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=kE(n);r!=null&&t.push(r)}return{kind:Ya.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=kE(r);i&&t.push({kind:Ya.Kind.OBJECT_FIELD,name:{kind:Ya.Kind.NAME,value:n},value:i})}return{kind:Ya.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ya.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Lle.test(t)?{kind:Ya.Kind.INT,value:t}:{kind:Ya.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ya.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Lle=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function ME(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}var ZUe=ME(function(t){let n=Cle(t);return new Set([...n].map(r=>r.name))}),Cle=ME(function(t){let n=sD(t);return new Set(n.values())}),sD=ME(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function Ble(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Ule(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Pe.isSpecifiedDirective)(c)||a.push(kle(c,e,n));for(let c in r){let l=r[c],p=(0,Pe.isSpecifiedScalarType)(l),f=(0,Pe.isIntrospectionType)(l);if(!(p||f))if((0,Pe.isObjectType)(l))a.push(Mle(l,e,n));else if((0,Pe.isInterfaceType)(l))a.push(xle(l,e,n));else if((0,Pe.isUnionType)(l))a.push(qle(l,e,n));else if((0,Pe.isInputObjectType)(l))a.push(Vle(l,e,n));else if((0,Pe.isEnumType)(l))a.push(jle(l,e,n));else if((0,Pe.isScalarType)(l))a.push(Kle(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Pe.Kind.DOCUMENT,definitions:a}}function RV(e,t={}){let n=Ble(e,t);return(0,Pe.print)(n)}function Ule(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),a=[];if(e.astNode!=null&&a.push(e.astNode),e.extensionASTNodes!=null)for(let f of e.extensionASTNodes)a.push(f);for(let f of a)if(f.operationTypes)for(let y of f.operationTypes)i.set(y.operation,y);let o=sD(e);for(let[f,y]of i){let g=o.get(f);if(g!=null){let v=Qa(g);y!=null?y.type=v:i.set(f,{kind:Pe.Kind.OPERATION_TYPE_DEFINITION,operation:f,type:v})}}let c=[...i.values()].filter(gV),l=Jl(e,e,t);if(!c.length&&!l.length)return null;let p={kind:c!=null?Pe.Kind.SCHEMA_DEFINITION:Pe.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return p.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,p}function kle(e,t,n){var r,i,a,o;return{kind:Pe.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>PV(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:Pe.Kind.NAME,value:c})))||[]}}function Jl(e,t,n){let r=UE(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=oD(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function qE(e,t,n){var r,i;let a=[],o=null,c=UE(e,n),l;return c!=null?l=oD(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(p=>p.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=Qle(e.deprecationReason)),o==null?a:[o].concat(a)}function PV(e,t,n){var r,i,a;return{kind:Pe.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},type:Qa(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,Pe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:qE(e,t,n)}}function Mle(e,t,n){var r,i;return{kind:Pe.Kind.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>FV(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>Qa(a)),directives:Jl(e,t,n)}}function xle(e,t,n){var r,i;let a={kind:Pe.Kind.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>FV(o,t,n)),directives:Jl(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>Qa(o))),a}function qle(e,t,n){var r,i;return{kind:Pe.Kind.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:Jl(e,t,n),types:e.getTypes().map(a=>Qa(a))}}function Vle(e,t,n){var r,i;return{kind:Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>Gle(a,t,n)),directives:Jl(e,t,n)}}function jle(e,t,n){var r,i;return{kind:Pe.Kind.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>$le(a,t,n)),directives:Jl(e,t,n)}}function Kle(e,t,n){var r,i,a;let o=UE(e,n),c=o?oD(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(p=>p.name.value==="specifiedBy")){let p={url:l};c.push(xE("specifiedBy",p))}return{kind:Pe.Kind.SCALAR_TYPE_DEFINITION,description:(a=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&a!==void 0?a:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:c}}function FV(e,t,n){var r,i;return{kind:Pe.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},arguments:e.args.map(a=>PV(a,t,n)),type:Qa(e.type),directives:qE(e,t,n)}}function Gle(e,t,n){var r,i,a;return{kind:Pe.Kind.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},type:Qa(e.type),directives:qE(e,t,n),defaultValue:(a=(0,Pe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function $le(e,t,n){var r,i;return{kind:Pe.Kind.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:qE(e,t,n)}}function Qle(e){return xE("deprecated",{reason:e},Pe.GraphQLDeprecatedDirective)}function xE(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Pe.astFromValue)(o,i.type);c&&r.push({kind:Pe.Kind.ARGUMENT,name:{kind:Pe.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=kE(a);o&&r.push({kind:Pe.Kind.ARGUMENT,name:{kind:Pe.Kind.NAME,value:i},value:o})}return{kind:Pe.Kind.DIRECTIVE,name:{kind:Pe.Kind.NAME,value:e},arguments:r}}function oD(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(xE(r,o,a));else n.push(xE(r,i,a))}return n}var rd=ss(CE(),1),g1=ss(Ae(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function sn(e,t){if(!e)throw new Error(t)}var Yle=34028234663852886e22,Jle=-34028234663852886e22,Hle=4294967295,zle=2147483647,Wle=-2147483648;function Hl(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>zle||eHle||e<0)throw new Error("invalid uint 32: "+e)}function VE(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Yle||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function cD(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=BV(o);a.push(c),r[o.name]=c,i[o.no]=c}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function CV(e,t,n){let r={};for(let i of t){let a=BV(i);r[a.localName]=a.no,r[a.no]=a.localName}return uD(r,e,t,n),r}function BV(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Ce=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),a=i.writerFactory();return r.writeMessage(this,a,i),a.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function UV(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(c){e.util.initFields(this),e.util.initPartial(c,this)}}[a];return Object.setPrototypeOf(o.prototype,new Ce),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(c,l){return new o().fromBinary(c,l)},fromJson(c,l){return new o().fromJson(c,l)},fromJsonString(c,l){return new o().fromJsonString(c,l)},equals(c,l){return e.util.equals(o,c,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function MV(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,c=!(!(o>>>7)&&t==0),l=(c?o|128:o)&255;if(n.push(l),!c)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,c=!!(o>>>7),l=(c?o|128:o)&255;if(n.push(l),!c)return}n.push(t>>>31&1)}}var jE=4294967296;function lD(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,c){let l=Number(e.slice(o,c));i*=n,r=r*n+l,r>=jE&&(i=i+(r/jE|0),r=r%jE)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?qV(r,i):pD(r,i)}function xV(e,t){let n=pD(e,t),r=n.hi&2147483648;r&&(n=qV(n.lo,n.hi));let i=dD(n.lo,n.hi);return r?"-"+i:i}function dD(e,t){if({lo:e,hi:t}=Xle(e,t),t<=2097151)return String(jE*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,c=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(c+=Math.floor(o/l),o%=l),c.toString()+kV(o)+kV(a)}function Xle(e,t){return{lo:e>>>0,hi:t>>>0}}function pD(e,t){return{lo:e|0,hi:t|0}}function qV(e,t){return t=~t,e?e=~e+1:t+=1,pD(e,t)}var kV=e=>{let t=String(e);return"0000000".slice(t.length)+t};function fD(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function VV(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function Zle(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),c=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let p=typeof l=="bigint"?l:BigInt(l);if(p>a||pc||psn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>sn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),lD(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),lD(i)},dec(i,a){return xV(i,a)},uDec(i,a){return dD(i,a)}}}var Kn=Zle();m();T();N();var Ne;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ne||(Ne={}));var Na;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Na||(Na={}));function Os(e,t,n){if(t===n)return!0;if(e==Ne.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(zp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Hl(t),fD(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){VE(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){zp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Hl(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Hl(t),t=(t<<1^t>>31)>>>0,fD(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Kn.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Kn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Kn.enc(t);return KE(n.lo,n.hi,this.buf),this}sint64(t){let n=Kn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return KE(i,a,this.buf),this}uint64(t){let n=Kn.uEnc(t);return KE(n.lo,n.hi,this.buf),this}},QE=class{constructor(t,n){this.varint64=MV,this.uint32=VV,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case Bn.Varint:for(;this.buf[this.pos++]&128;);break;case Bn.Bit64:this.pos+=4;case Bn.Bit32:this.pos+=4;break;case Bn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Bn.StartGroup:let i;for(;(i=this.tag()[1])!==Bn.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Kn.dec(...this.varint64())}uint64(){return Kn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Kn.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Kn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Kn.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function jV(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function YE(e){let t=e.field.localName,n=Object.create(null);return n[t]=ede(e),[n,()=>n[t]]}function ede(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return Ta(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function KV(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var Ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),JE=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=Ds[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ds[i|r>>6],t+=Ds[r&63],n=0;break}return n&&(t+=Ds[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function GV(e,t,n){QV(t,e);let r=t.runtime.bin.makeReadOptions(n),i=KV(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=YE(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function $V(e,t,n,r){QV(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(ND(e,t)){let p=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of p)e.getType().runtime.bin.onUnknownField(e,f.no,f.wireType,f.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function QV(e,t){sn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function HE(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!GE(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function TD(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Ta(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ea(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Ce.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function zE(e,t){return Ea(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var wMe={"google.protobuf.DoubleValue":Ne.DOUBLE,"google.protobuf.FloatValue":Ne.FLOAT,"google.protobuf.Int64Value":Ne.INT64,"google.protobuf.UInt64Value":Ne.UINT64,"google.protobuf.Int32Value":Ne.INT32,"google.protobuf.UInt32Value":Ne.UINT32,"google.protobuf.BoolValue":Ne.BOOL,"google.protobuf.StringValue":Ne.STRING,"google.protobuf.BytesValue":Ne.BYTES};var YV={ignoreUnknownFields:!1},JV={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function tde(e){return e?Object.assign(Object.assign({},YV),e):YV}function nde(e){return e?Object.assign(Object.assign({},JV),e):JV}var ZE=Symbol(),WE=Symbol();function WV(){return{makeReadOptions:tde,makeWriteOptions:nde,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Ja(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let p=i.get(l.oneof);if(p!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${p}", "${o}"`);i.set(l.oneof,o)}HV(r,c,l,n,e)}else{let p=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let f=a.findExtension(o.substring(1,o.length-1));if(f&&f.extendee.typeName==e.typeName){p=!0;let[y,g]=YE(f);HV(y,c,f.field,n,f),$V(r,f,g(),n)}}if(!p&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!HE(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!ide(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=zV(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&ND(e,c)){let l=GV(e,c,t),p=zV(c.field,l,t);p!==void 0&&(r[c.field.jsonName]=p)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return Wp(e,t,n!=null?n:Na.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||GE(e,t)))return XE(e,t)},debug:Ja}}function Ja(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function HV(e,t,n,r,i){let a=n.localName;if(n.repeated){if(sn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=ED(n.T,c,r.ignoreUnknownFields,!0);l!==WE&&o.push(l);break;case"scalar":try{o.push(Wp(n.T,c,n.L,!0))}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let p;try{p=rde(n.K,c)}catch(f){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw f instanceof Error&&f.message.length>0&&(y+=`: ${f.message}`),new Error(y)}switch(n.V.kind){case"message":o[p]=n.V.T.fromJson(l,r);break;case"enum":let f=ED(n.V.T,l,r.ignoreUnknownFields,!0);f!==WE&&(o[p]=f);break;case"scalar":try{o[p]=Wp(n.V.T,l,Na.BIGINT,!0)}catch(y){let g=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw y instanceof Error&&y.message.length>0&&(g+=`: ${y.message}`),new Error(g)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ea(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=ED(n.T,t,r.ignoreUnknownFields,!1);switch(l){case ZE:TD(n,e);break;case WE:break;default:e[a]=l;break}break;case"scalar":try{let p=Wp(n.T,t,n.L,!1);switch(p){case ZE:TD(n,e);break;default:e[a]=p;break}}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}function rde(e,t){if(e===Ne.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Wp(e,t,Na.BIGINT,!0).toString()}function Wp(e,t,n,r){if(t===null)return r?Ta(e,n):ZE;switch(e){case Ne.DOUBLE:case Ne.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ne.FLOAT&&VE(i),i;case Ne.INT32:case Ne.FIXED32:case Ne.SFIXED32:case Ne.SINT32:case Ne.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==Ne.UINT32||e==Ne.FIXED32?zp(a):Hl(a),a;case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Kn.parse(t);return n?o.toString():o;case Ne.FIXED64:case Ne.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Kn.uParse(t);return n?c.toString():c;case Ne.BOOL:if(typeof t!="boolean")break;return t;case Ne.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ne.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return mD.dec(t)}throw new Error}function ED(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:ZE;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return WE;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Ja(t)}`)}function ide(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function zV(e,t,n){if(e.kind=="map"){sn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=XE(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=hD(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){sn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return XE(e.T,t);case"enum":return hD(e.T,t,n.enumAsInteger);case"message":return zE(e.T,t).toJson(n)}}function hD(e,t,n){var r;if(sn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function XE(e,t){switch(e){case Ne.INT32:case Ne.SFIXED32:case Ne.SINT32:case Ne.FIXED32:case Ne.UINT32:return sn(typeof t=="number"),t;case Ne.FLOAT:case Ne.DOUBLE:return sn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ne.STRING:return sn(typeof t=="string"),t;case Ne.BOOL:return sn(typeof t=="boolean"),t;case Ne.UINT64:case Ne.FIXED64:case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:return sn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ne.BYTES:return sn(t instanceof Uint8Array),mD.enc(t)}}m();T();N();var zl=Symbol("@bufbuild/protobuf/unknown-fields"),XV={readUnknownFields:!0,readerFactory:e=>new QE(e)},ZV={writeUnknownFields:!0,writerFactory:()=>new $E};function ade(e){return e?Object.assign(Object.assign({},XV),e):XV}function sde(e){return e?Object.assign(Object.assign({},ZV),e):ZV}function r1(){return{makeReadOptions:ade,makeWriteOptions:sde,listUnknownFields(e){var t;return(t=e[zl])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[zl]},writeUnknownFields(e,t){let r=e[zl];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[zl])||(i[zl]=[]),i[zl].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=ude),a){let g=e[o];if(r==Bn.LengthDelimited&&c!=Ne.STRING&&c!=Ne.BYTES){let P=t.uint32()+t.pos;for(;t.posEa(g,y)?g:new y(g));else{let g=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=Zp(g):a[i]=g:a[i]=Ea(g,y)?g:new y(g)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Os(r.T,o,a[c]));case"enum":return i.every((o,c)=>Os(Ne.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Os(Ne.INT32,i,a);case"scalar":return Os(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Os(Ne.INT32,i.value,a.value);case"scalar":return Os(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(f=>l.equals(i[f],a[f]));case"enum":return c.every(f=>Os(Ne.INT32,i[f],a[f]));case"scalar":let p=r.V.T;return c.every(f=>Os(p,i[f],a[f]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(nh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=nh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:nh(a.value)}:{case:void 0}:o=nh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function nh(e){if(e===void 0)return e;if(Ea(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Zp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function s1(e,t,n){return{syntax:e,json:WV(),bin:r1(),util:Object.assign(Object.assign({},a1()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return UV(this,r,i,a)},makeEnum:CV,makeEnumType:cD,getEnumType:LV,makeExtension(r,i,a){return jV(this,r,i,a)}}}m();T();N();var rh=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function yD(e,t){let n=c1(e);return t?n:mde(fde(n))}function o1(e){return yD(e,!1)}var u1=c1;function c1(e){let t=!1,n=[];for(let r=0;r`${e}$`,fde=e=>pde.has(e)?l1(e):e,mde=e=>dde.has(e)?l1(e):e;var ih=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=o1(t)}addField(t){sn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew rh(e,t=>d1(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Ta(t.T,t.L);break;case"message":break}}});var Wl;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Wl||(Wl={}));B.util.setEnumType(Wl,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var bs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(bs||(bs={}));B.util.setEnumType(bs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var As;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(As||(As={}));B.util.setEnumType(As,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();N();var ID;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(ID||(ID={}));B.util.setEnumType(ID,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var Oc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Oc||(Oc={}));B.util.setEnumType(Oc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var hu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(hu||(hu={}));B.util.setEnumType(hu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var ef;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(ef||(ef={}));B.util.setEnumType(ef,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var Bo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Bo||(Bo={}));B.util.setEnumType(Bo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var yu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(yu||(yu={}));B.util.setEnumType(yu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Dc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Dc||(Dc={}));B.util.setEnumType(Dc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Rs=class Rs extends Ce{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Rs().fromBinary(n,r)}static fromJson(n,r){return new Rs().fromJson(n,r)}static fromJsonString(n,r){return new Rs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Rs,n,r)}};_(Rs,"runtime",B),_(Rs,"typeName","wg.cosmo.node.v1.Subgraph"),_(Rs,"fields",B.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var ah=Rs,Ps=class Ps extends Ce{constructor(n){super();_(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new Ps().fromBinary(n,r)}static fromJson(n,r){return new Ps().fromJson(n,r)}static fromJsonString(n,r){return new Ps().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ps,n,r)}};_(Ps,"runtime",B),_(Ps,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Ps,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:_D}}]));var gD=Ps,Fs=class Fs extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Fs().fromBinary(n,r)}static fromJson(n,r){return new Fs().fromJson(n,r)}static fromJsonString(n,r){return new Fs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fs,n,r)}};_(Fs,"runtime",B),_(Fs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Fs,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0}]));var _D=Fs,ws=class ws extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ws().fromBinary(n,r)}static fromJson(n,r){return new ws().fromJson(n,r)}static fromJsonString(n,r){return new ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ws,n,r)}};_(ws,"runtime",B),_(ws,"typeName","wg.cosmo.node.v1.RouterConfig"),_(ws,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:gD,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var tf=ws,Ls=class Ls extends Ce{constructor(n){super();_(this,"code",Wl.OK);_(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ls().fromBinary(n,r)}static fromJson(n,r){return new Ls().fromJson(n,r)}static fromJsonString(n,r){return new Ls().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ls,n,r)}};_(Ls,"runtime",B),_(Ls,"typeName","wg.cosmo.node.v1.Response"),_(Ls,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(Wl)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var vD=Ls,Cs=class Cs extends Ce{constructor(n){super();_(this,"code",0);_(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Cs().fromBinary(n,r)}static fromJson(n,r){return new Cs().fromJson(n,r)}static fromJsonString(n,r){return new Cs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cs,n,r)}};_(Cs,"runtime",B),_(Cs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Cs,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var p1=Cs,Bs=class Bs extends Ce{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bs().fromBinary(n,r)}static fromJson(n,r){return new Bs().fromJson(n,r)}static fromJsonString(n,r){return new Bs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bs,n,r)}};_(Bs,"runtime",B),_(Bs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Bs,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:OD},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var SD=Bs,Us=class Us extends Ce{constructor(n){super();_(this,"traceSamplingRate",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Us().fromBinary(n,r)}static fromJson(n,r){return new Us().fromJson(n,r)}static fromJsonString(n,r){return new Us().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Us,n,r)}};_(Us,"runtime",B),_(Us,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Us,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var OD=Us,ks=class ks extends Ce{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new ks().fromBinary(t,n)}static fromJson(t,n){return new ks().fromJson(t,n)}static fromJsonString(t,n){return new ks().fromJsonString(t,n)}static equals(t,n){return B.util.equals(ks,t,n)}};_(ks,"runtime",B),_(ks,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(ks,"fields",B.util.newFieldList(()=>[]));var f1=ks,Ms=class Ms extends Ce{constructor(n){super();_(this,"response");_(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ms().fromBinary(n,r)}static fromJson(n,r){return new Ms().fromJson(n,r)}static fromJsonString(n,r){return new Ms().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ms,n,r)}};_(Ms,"runtime",B),_(Ms,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Ms,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:vD},{no:2,name:"registrationInfo",kind:"message",T:SD,opt:!0}]));var m1=Ms,xs=class xs extends Ce{constructor(n){super();_(this,"defaultFlushInterval",Kn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new xs().fromBinary(n,r)}static fromJson(n,r){return new xs().fromJson(n,r)}static fromJsonString(n,r){return new xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xs,n,r)}};_(xs,"runtime",B),_(xs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(xs,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:nf,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:sf,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:DD,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Xl=xs,qs=class qs extends Ce{constructor(n){super();_(this,"kind",hu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Kn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qs,n,r)}};_(qs,"runtime",B),_(qs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(qs,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(hu)},{no:2,name:"root_nodes",kind:"message",T:Zl,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Zl,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:cf},{no:6,name:"custom_static",kind:"message",T:UD},{no:7,name:"directives",kind:"message",T:kD,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Sc,repeated:!0},{no:11,name:"provides",kind:"message",T:Sc,repeated:!0},{no:12,name:"requires",kind:"message",T:Sc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ac},{no:14,name:"entity_interfaces",kind:"message",T:ed,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:ed,repeated:!0}]));var nf=qs,Vs=class Vs extends Ce{constructor(n){super();_(this,"name","");_(this,"sourceType",Oc.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new Vs().fromBinary(n,r)}static fromJson(n,r){return new Vs().fromJson(n,r)}static fromJsonString(n,r){return new Vs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Vs,n,r)}};_(Vs,"runtime",B),_(Vs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Vs,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(Oc)}]));var rf=Vs,js=class js extends Ce{constructor(n){super();_(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};_(js,"runtime",B),_(js,"typeName","wg.cosmo.node.v1.Scopes"),_(js,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var bc=js,Ks=class Ks extends Ce{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ks,n,r)}};_(Ks,"runtime",B),_(Ks,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Ks,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:bc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:bc,repeated:!0}]));var af=Ks,Gs=class Gs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gs,n,r)}};_(Gs,"runtime",B),_(Gs,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(Gs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:rf,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:af},{no:5,name:"subscription_filter_condition",kind:"message",T:Iu,opt:!0}]));var sf=Gs,$s=class $s extends Ce{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return B.util.equals($s,n,r)}};_($s,"runtime",B),_($s,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_($s,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var DD=$s,Qs=class Qs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qs,n,r)}};_(Qs,"runtime",B),_(Qs,"typeName","wg.cosmo.node.v1.TypeField"),_(Qs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var Zl=Qs,Ys=class Ys extends Ce{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ys,n,r)}};_(Ys,"runtime",B),_(Ys,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(Ys,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var of=Ys,Js=class Js extends Ce{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Js,n,r)}};_(Js,"runtime",B),_(Js,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(Js,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:of,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var uf=Js,Hs=class Hs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hs,n,r)}};_(Hs,"runtime",B),_(Hs,"typeName","wg.cosmo.node.v1.RequiredField"),_(Hs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:uf,repeated:!0}]));var Sc=Hs,zs=class zs extends Ce{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(zs,n,r)}};_(zs,"runtime",B),_(zs,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(zs,"fields",B.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var ed=zs,Ws=class Ws extends Ce{constructor(n){super();_(this,"url");_(this,"method",Dc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ws,n,r)}};_(Ws,"runtime",B),_(Ws,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(Ws,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Mr},{no:2,name:"method",kind:"enum",T:B.getEnumType(Dc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:xD}},{no:4,name:"body",kind:"message",T:Mr},{no:5,name:"query",kind:"message",T:MD,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qD},{no:9,name:"base_url",kind:"message",T:Mr},{no:10,name:"path",kind:"message",T:Mr},{no:11,name:"http_proxy_url",kind:"message",T:Mr,opt:!0}]));var bD=Ws,Xs=class Xs extends Ce{constructor(n){super();_(this,"statusCode",Kn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xs,n,r)}};_(Xs,"runtime",B),_(Xs,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(Xs,"fields",B.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var N1=Xs,Zs=class Zs extends Ce{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zs,n,r)}};_(Zs,"runtime",B),_(Zs,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(Zs,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:bD},{no:2,name:"subscription",kind:"message",T:VD},{no:3,name:"federation",kind:"message",T:jD},{no:4,name:"upstream_schema",kind:"message",T:Nf},{no:6,name:"custom_scalar_type_fields",kind:"message",T:KD,repeated:!0},{no:7,name:"grpc",kind:"message",T:td}]));var cf=Zs,eo=class eo extends Ce{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eo,n,r)}};_(eo,"runtime",B),_(eo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(eo,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:AD},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:lf}]));var td=eo,to=class to extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return B.util.equals(to,n,r)}};_(to,"runtime",B),_(to,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(to,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var lf=to,no=class no extends Ce{constructor(n){super();_(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return B.util.equals(no,n,r)}};_(no,"runtime",B),_(no,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(no,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var T1=no,ro=class ro extends Ce{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ro,n,r)}};_(ro,"runtime",B),_(ro,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(ro,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:RD,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:PD,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:FD,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:CD,repeated:!0}]));var AD=ro,io=class io extends Ce{constructor(n){super();_(this,"type",ef.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(io,n,r)}};_(io,"runtime",B),_(io,"typeName","wg.cosmo.node.v1.OperationMapping"),_(io,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(ef)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var RD=io,ao=class ao extends Ce{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ao,n,r)}};_(ao,"runtime",B),_(ao,"typeName","wg.cosmo.node.v1.EntityMapping"),_(ao,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var PD=ao,so=class so extends Ce{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return B.util.equals(so,n,r)}};_(so,"runtime",B),_(so,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(so,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:wD,repeated:!0}]));var FD=so,oo=class oo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(oo,n,r)}};_(oo,"runtime",B),_(oo,"typeName","wg.cosmo.node.v1.FieldMapping"),_(oo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:LD,repeated:!0}]));var wD=oo,uo=class uo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(uo,n,r)}};_(uo,"runtime",B),_(uo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(uo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var LD=uo,co=class co extends Ce{constructor(n){super();_(this,"type","");_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(co,n,r)}};_(co,"runtime",B),_(co,"typeName","wg.cosmo.node.v1.EnumMapping"),_(co,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:BD,repeated:!0}]));var CD=co,lo=class lo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(lo,n,r)}};_(lo,"runtime",B),_(lo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(lo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var BD=lo,po=class po extends Ce{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(po,n,r)}};_(po,"runtime",B),_(po,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(po,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var df=po,fo=class fo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");B.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(fo,n,r)}};_(fo,"runtime",B),_(fo,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(fo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:df}]));var pf=fo,mo=class mo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(mo,n,r)}};_(mo,"runtime",B),_(mo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(mo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var ff=mo,No=class No extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return B.util.equals(No,n,r)}};_(No,"runtime",B),_(No,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(No,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var mf=No,To=class To extends Ce{constructor(n){super();_(this,"providerId","");_(this,"type",Bo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return B.util.equals(To,n,r)}};_(To,"runtime",B),_(To,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(To,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(Bo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Uo=To,Eo=class Eo extends Ce{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eo,n,r)}};_(Eo,"runtime",B),_(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Eo,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:pf,repeated:!0},{no:2,name:"kafka",kind:"message",T:ff,repeated:!0},{no:3,name:"redis",kind:"message",T:mf,repeated:!0}]));var Ac=Eo,ho=class ho extends Ce{constructor(n){super();_(this,"data");B.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ho,n,r)}};_(ho,"runtime",B),_(ho,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(ho,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Mr}]));var UD=ho,yo=class yo extends Ce{constructor(n){super();_(this,"kind",yu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(yo,n,r)}};_(yo,"runtime",B),_(yo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(yo,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(yu)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var Mr=yo,Io=class Io extends Ce{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Io,n,r)}};_(Io,"runtime",B),_(Io,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Io,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var kD=Io,go=class go extends Ce{constructor(n){super();_(this,"name","");_(this,"value","");B.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return B.util.equals(go,n,r)}};_(go,"runtime",B),_(go,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(go,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var MD=go,_o=class _o extends Ce{constructor(n){super();_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return B.util.equals(_o,n,r)}};_(_o,"runtime",B),_(_o,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(_o,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Mr,repeated:!0}]));var xD=_o,vo=class vo extends Ce{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(vo,n,r)}};_(vo,"runtime",B),_(vo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(vo,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Mr},{no:2,name:"cert",kind:"message",T:Mr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qD=vo,So=class So extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return B.util.equals(So,n,r)}};_(So,"runtime",B),_(So,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(So,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Mr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(bs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(As),opt:!0}]));var VD=So,Oo=class Oo extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Oo,n,r)}};_(Oo,"runtime",B),_(Oo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Oo,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var jD=Oo,Do=class Do extends Ce{constructor(n){super();_(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Do,n,r)}};_(Do,"runtime",B),_(Do,"typeName","wg.cosmo.node.v1.InternedString"),_(Do,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var Nf=Do,bo=class bo extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(bo,n,r)}};_(bo,"runtime",B),_(bo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(bo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var KD=bo,Ao=class Ao extends Ce{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ao,n,r)}};_(Ao,"runtime",B),_(Ao,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Ao,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Tf=Ao,Gi=class Gi extends Ce{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Gi().fromBinary(n,r)}static fromJson(n,r){return new Gi().fromJson(n,r)}static fromJsonString(n,r){return new Gi().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gi,n,r)}};_(Gi,"runtime",B),_(Gi,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(Gi,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Gi,repeated:!0},{no:2,name:"in",kind:"message",T:Tf,opt:!0},{no:3,name:"not",kind:"message",T:Gi,opt:!0},{no:4,name:"or",kind:"message",T:Gi,repeated:!0}]));var Iu=Gi,Ro=class Ro extends Ce{constructor(n){super();_(this,"operations",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ro,n,r)}};_(Ro,"runtime",B),_(Ro,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Ro,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:GD,repeated:!0}]));var E1=Ro,Po=class Po extends Ce{constructor(n){super();_(this,"request");_(this,"client");B.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Po,n,r)}};_(Po,"runtime",B),_(Po,"typeName","wg.cosmo.node.v1.Operation"),_(Po,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:$D},{no:2,name:"client",kind:"message",T:JD}]));var GD=Po,Fo=class Fo extends Ce{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");B.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fo,n,r)}};_(Fo,"runtime",B),_(Fo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Fo,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:QD}]));var $D=Fo,wo=class wo extends Ce{constructor(n){super();_(this,"persistedQuery");B.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(wo,n,r)}};_(wo,"runtime",B),_(wo,"typeName","wg.cosmo.node.v1.Extension"),_(wo,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:YD}]));var QD=wo,Lo=class Lo extends Ce{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Lo,n,r)}};_(Lo,"runtime",B),_(Lo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Lo,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var YD=Lo,Co=class Co extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Co,n,r)}};_(Co,"runtime",B),_(Co,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Co,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var JD=Co;m();T();N();var nd=ss(CE(),1);function Nde(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new of({fieldName:a[1],typeName:a[0]}))}t.push(new uf({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function HD(e,t,n){if(e)for(let r of e){let i=Nde(r);t.push(new Sc(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function zD(e){switch(e){case"publish":return Bo.PUBLISH;case"request":return Bo.REQUEST;case"subscribe":return Bo.SUBSCRIBE}}function h1(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ac({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Zl({typeName:i,fieldNames:a});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let f=new ed({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}HD(r.keys,t.keys,i),HD(r.provides,t.provides,i),HD(r.requires,t.requires,i);let c=[],l=[],p=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case nd.PROVIDER_TYPE_KAFKA:{l.push(new ff({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),topics:f.topics}));break}case nd.PROVIDER_TYPE_NATS:{c.push(new pf(x({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new df({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case nd.PROVIDER_TYPE_REDIS:{p.push(new mf({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),channels:f.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...p)}return t}function y1(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(f=>new rf({name:f,sourceType:Oc.FIELD_ARGUMENT})),o=new sf({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(f=>new bc({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new bc({requiredAndScopes:f})))||[],p=c.length>0;if((i.requiresAuthentication||p)&&(o.authorizationConfiguration=new af({requiresAuthentication:i.requiresAuthentication||p,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new Iu;sh(f,i.subscriptionFilterCondition),o.subscriptionFilterCondition=f}t.push(o)}return t}function sh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Iu;sh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Tf({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Iu,sh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Iu;sh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();N();function WD(e){return new Error(`Normalization failed to return a ${e}.`)}function I1(e){return new Error(`Invalid router compatibility version "${e}".`)}var Rc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Rc||(Rc={}));var Tde=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new Nf({key:n})},Ede=e=>{switch(e){case"ws":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},hde=e=>{switch(e){case"auto":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},_1=function(e){if(!rd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw I1(e.routerCompatibilityVersion);let t=new Xl({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw WD("ConfigurationDataByTypeName");if(!n.schema)throw WD("GraphQLSchema");let r={enabled:!0},i=Tde(t,RV((0,g1.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:p,provides:f,requires:y,rootNodes:g}=h1(n.configurationDataByTypeName),v;switch(n.kind){case Rc.Standard:{r.enabled=!0,r.protocol=Ede(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=hde(n.websocketSubprotocol||"auto"),r.url=new Mr({kind:yu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Rc.Plugin:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new lf({name:n.name,version:n.version})});break}case Rc.GRPC:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema});break}}let P,k,K;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){P=hu.PUBSUB,K=new Ac({kafka:c.kafka,nats:c.nats,redis:c.redis});let Z=fe=>rd.ROOT_TYPE_NAMES.has(fe.typeName),W=0,Te=0;for(;W({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${rd.COMPOSITION_VERSION}`})};m();T();N();var Fc=ss(Ae());function v1(e){let t;try{t=(0,Fc.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function yde(e){let t=(0,Pc.federateSubgraphs)({subgraphs:e.map(v1),version:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Fc.print)(t.federatedGraphAST)}}function Ide(e){let t=(0,Pc.federateSubgraphs)({subgraphs:e.map(v1),version:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return _1({federatedClientSDL:(0,Fc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Fc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,p;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Rc.Standard,id:`${i}`,name:r.name,url:aD(r.url),sdl:r.schema,subscriptionUrl:aD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(p=r.subscription_protocol)!=null?p:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return sm(gde);})(); +`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=a,i=1;break;case 1:n[r++]=o<<2|(a&48)>>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=Ds[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ds[i|r>>6],t+=Ds[r&63],n=0;break}return n&&(t+=Ds[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function GV(e,t,n){QV(t,e);let r=t.runtime.bin.makeReadOptions(n),i=KV(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=YE(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function $V(e,t,n,r){QV(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(ND(e,t)){let p=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of p)e.getType().runtime.bin.onUnknownField(e,f.no,f.wireType,f.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function QV(e,t){sn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function HE(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!GE(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function TD(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Ta(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ea(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Ce.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function zE(e,t){return Ea(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var wMe={"google.protobuf.DoubleValue":Ne.DOUBLE,"google.protobuf.FloatValue":Ne.FLOAT,"google.protobuf.Int64Value":Ne.INT64,"google.protobuf.UInt64Value":Ne.UINT64,"google.protobuf.Int32Value":Ne.INT32,"google.protobuf.UInt32Value":Ne.UINT32,"google.protobuf.BoolValue":Ne.BOOL,"google.protobuf.StringValue":Ne.STRING,"google.protobuf.BytesValue":Ne.BYTES};var YV={ignoreUnknownFields:!1},JV={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function tde(e){return e?Object.assign(Object.assign({},YV),e):YV}function nde(e){return e?Object.assign(Object.assign({},JV),e):JV}var ZE=Symbol(),WE=Symbol();function WV(){return{makeReadOptions:tde,makeWriteOptions:nde,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Ja(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let p=i.get(l.oneof);if(p!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${p}", "${o}"`);i.set(l.oneof,o)}HV(r,c,l,n,e)}else{let p=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let f=a.findExtension(o.substring(1,o.length-1));if(f&&f.extendee.typeName==e.typeName){p=!0;let[y,g]=YE(f);HV(y,c,f.field,n,f),$V(r,f,g(),n)}}if(!p&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!HE(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!ide(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=zV(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&ND(e,c)){let l=GV(e,c,t),p=zV(c.field,l,t);p!==void 0&&(r[c.field.jsonName]=p)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return Wp(e,t,n!=null?n:Na.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||GE(e,t)))return XE(e,t)},debug:Ja}}function Ja(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function HV(e,t,n,r,i){let a=n.localName;if(n.repeated){if(sn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=ED(n.T,c,r.ignoreUnknownFields,!0);l!==WE&&o.push(l);break;case"scalar":try{o.push(Wp(n.T,c,n.L,!0))}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let p;try{p=rde(n.K,c)}catch(f){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw f instanceof Error&&f.message.length>0&&(y+=`: ${f.message}`),new Error(y)}switch(n.V.kind){case"message":o[p]=n.V.T.fromJson(l,r);break;case"enum":let f=ED(n.V.T,l,r.ignoreUnknownFields,!0);f!==WE&&(o[p]=f);break;case"scalar":try{o[p]=Wp(n.V.T,l,Na.BIGINT,!0)}catch(y){let g=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw y instanceof Error&&y.message.length>0&&(g+=`: ${y.message}`),new Error(g)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ea(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=ED(n.T,t,r.ignoreUnknownFields,!1);switch(l){case ZE:TD(n,e);break;case WE:break;default:e[a]=l;break}break;case"scalar":try{let p=Wp(n.T,t,n.L,!1);switch(p){case ZE:TD(n,e);break;default:e[a]=p;break}}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}function rde(e,t){if(e===Ne.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Wp(e,t,Na.BIGINT,!0).toString()}function Wp(e,t,n,r){if(t===null)return r?Ta(e,n):ZE;switch(e){case Ne.DOUBLE:case Ne.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ne.FLOAT&&VE(i),i;case Ne.INT32:case Ne.FIXED32:case Ne.SFIXED32:case Ne.SINT32:case Ne.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==Ne.UINT32||e==Ne.FIXED32?zp(a):Hl(a),a;case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Kn.parse(t);return n?o.toString():o;case Ne.FIXED64:case Ne.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Kn.uParse(t);return n?c.toString():c;case Ne.BOOL:if(typeof t!="boolean")break;return t;case Ne.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ne.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return mD.dec(t)}throw new Error}function ED(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:ZE;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return WE;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Ja(t)}`)}function ide(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function zV(e,t,n){if(e.kind=="map"){sn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=XE(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=hD(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){sn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return XE(e.T,t);case"enum":return hD(e.T,t,n.enumAsInteger);case"message":return zE(e.T,t).toJson(n)}}function hD(e,t,n){var r;if(sn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function XE(e,t){switch(e){case Ne.INT32:case Ne.SFIXED32:case Ne.SINT32:case Ne.FIXED32:case Ne.UINT32:return sn(typeof t=="number"),t;case Ne.FLOAT:case Ne.DOUBLE:return sn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ne.STRING:return sn(typeof t=="string"),t;case Ne.BOOL:return sn(typeof t=="boolean"),t;case Ne.UINT64:case Ne.FIXED64:case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:return sn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ne.BYTES:return sn(t instanceof Uint8Array),mD.enc(t)}}m();T();N();var zl=Symbol("@bufbuild/protobuf/unknown-fields"),XV={readUnknownFields:!0,readerFactory:e=>new QE(e)},ZV={writeUnknownFields:!0,writerFactory:()=>new $E};function ade(e){return e?Object.assign(Object.assign({},XV),e):XV}function sde(e){return e?Object.assign(Object.assign({},ZV),e):ZV}function r1(){return{makeReadOptions:ade,makeWriteOptions:sde,listUnknownFields(e){var t;return(t=e[zl])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[zl]},writeUnknownFields(e,t){let r=e[zl];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[zl])||(i[zl]=[]),i[zl].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=ude),a){let g=e[o];if(r==Bn.LengthDelimited&&c!=Ne.STRING&&c!=Ne.BYTES){let F=t.uint32()+t.pos;for(;t.posEa(g,y)?g:new y(g));else{let g=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=Zp(g):a[i]=g:a[i]=Ea(g,y)?g:new y(g)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Os(r.T,o,a[c]));case"enum":return i.every((o,c)=>Os(Ne.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Os(Ne.INT32,i,a);case"scalar":return Os(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Os(Ne.INT32,i.value,a.value);case"scalar":return Os(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(f=>l.equals(i[f],a[f]));case"enum":return c.every(f=>Os(Ne.INT32,i[f],a[f]));case"scalar":let p=r.V.T;return c.every(f=>Os(p,i[f],a[f]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(nh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=nh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:nh(a.value)}:{case:void 0}:o=nh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function nh(e){if(e===void 0)return e;if(Ea(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Zp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function s1(e,t,n){return{syntax:e,json:WV(),bin:r1(),util:Object.assign(Object.assign({},a1()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return UV(this,r,i,a)},makeEnum:CV,makeEnumType:cD,getEnumType:LV,makeExtension(r,i,a){return jV(this,r,i,a)}}}m();T();N();var rh=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();N();m();T();N();m();T();N();function yD(e,t){let n=c1(e);return t?n:mde(fde(n))}function o1(e){return yD(e,!1)}var u1=c1;function c1(e){let t=!1,n=[];for(let r=0;r`${e}$`,fde=e=>pde.has(e)?l1(e):e,mde=e=>dde.has(e)?l1(e):e;var ih=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=o1(t)}addField(t){sn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew rh(e,t=>d1(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Ta(t.T,t.L);break;case"message":break}}});var Wl;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Wl||(Wl={}));B.util.setEnumType(Wl,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var bs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(bs||(bs={}));B.util.setEnumType(bs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var As;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(As||(As={}));B.util.setEnumType(As,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();N();var ID;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(ID||(ID={}));B.util.setEnumType(ID,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var Oc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Oc||(Oc={}));B.util.setEnumType(Oc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var hu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(hu||(hu={}));B.util.setEnumType(hu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var ef;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(ef||(ef={}));B.util.setEnumType(ef,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var Bo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Bo||(Bo={}));B.util.setEnumType(Bo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var yu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(yu||(yu={}));B.util.setEnumType(yu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Dc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Dc||(Dc={}));B.util.setEnumType(Dc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Rs=class Rs extends Ce{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Rs().fromBinary(n,r)}static fromJson(n,r){return new Rs().fromJson(n,r)}static fromJsonString(n,r){return new Rs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Rs,n,r)}};_(Rs,"runtime",B),_(Rs,"typeName","wg.cosmo.node.v1.Subgraph"),_(Rs,"fields",B.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var ah=Rs,Ps=class Ps extends Ce{constructor(n){super();_(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new Ps().fromBinary(n,r)}static fromJson(n,r){return new Ps().fromJson(n,r)}static fromJsonString(n,r){return new Ps().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ps,n,r)}};_(Ps,"runtime",B),_(Ps,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Ps,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:_D}}]));var gD=Ps,Fs=class Fs extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Fs().fromBinary(n,r)}static fromJson(n,r){return new Fs().fromJson(n,r)}static fromJsonString(n,r){return new Fs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fs,n,r)}};_(Fs,"runtime",B),_(Fs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Fs,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0}]));var _D=Fs,ws=class ws extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ws().fromBinary(n,r)}static fromJson(n,r){return new ws().fromJson(n,r)}static fromJsonString(n,r){return new ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ws,n,r)}};_(ws,"runtime",B),_(ws,"typeName","wg.cosmo.node.v1.RouterConfig"),_(ws,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:gD,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var tf=ws,Ls=class Ls extends Ce{constructor(n){super();_(this,"code",Wl.OK);_(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ls().fromBinary(n,r)}static fromJson(n,r){return new Ls().fromJson(n,r)}static fromJsonString(n,r){return new Ls().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ls,n,r)}};_(Ls,"runtime",B),_(Ls,"typeName","wg.cosmo.node.v1.Response"),_(Ls,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(Wl)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var vD=Ls,Cs=class Cs extends Ce{constructor(n){super();_(this,"code",0);_(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Cs().fromBinary(n,r)}static fromJson(n,r){return new Cs().fromJson(n,r)}static fromJsonString(n,r){return new Cs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cs,n,r)}};_(Cs,"runtime",B),_(Cs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Cs,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var p1=Cs,Bs=class Bs extends Ce{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bs().fromBinary(n,r)}static fromJson(n,r){return new Bs().fromJson(n,r)}static fromJsonString(n,r){return new Bs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bs,n,r)}};_(Bs,"runtime",B),_(Bs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Bs,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:OD},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var SD=Bs,Us=class Us extends Ce{constructor(n){super();_(this,"traceSamplingRate",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Us().fromBinary(n,r)}static fromJson(n,r){return new Us().fromJson(n,r)}static fromJsonString(n,r){return new Us().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Us,n,r)}};_(Us,"runtime",B),_(Us,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Us,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var OD=Us,ks=class ks extends Ce{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new ks().fromBinary(t,n)}static fromJson(t,n){return new ks().fromJson(t,n)}static fromJsonString(t,n){return new ks().fromJsonString(t,n)}static equals(t,n){return B.util.equals(ks,t,n)}};_(ks,"runtime",B),_(ks,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(ks,"fields",B.util.newFieldList(()=>[]));var f1=ks,Ms=class Ms extends Ce{constructor(n){super();_(this,"response");_(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ms().fromBinary(n,r)}static fromJson(n,r){return new Ms().fromJson(n,r)}static fromJsonString(n,r){return new Ms().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ms,n,r)}};_(Ms,"runtime",B),_(Ms,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Ms,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:vD},{no:2,name:"registrationInfo",kind:"message",T:SD,opt:!0}]));var m1=Ms,xs=class xs extends Ce{constructor(n){super();_(this,"defaultFlushInterval",Kn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new xs().fromBinary(n,r)}static fromJson(n,r){return new xs().fromJson(n,r)}static fromJsonString(n,r){return new xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xs,n,r)}};_(xs,"runtime",B),_(xs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(xs,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:nf,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:sf,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:DD,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Xl=xs,qs=class qs extends Ce{constructor(n){super();_(this,"kind",hu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Kn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qs,n,r)}};_(qs,"runtime",B),_(qs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(qs,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(hu)},{no:2,name:"root_nodes",kind:"message",T:Zl,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Zl,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:cf},{no:6,name:"custom_static",kind:"message",T:UD},{no:7,name:"directives",kind:"message",T:kD,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Sc,repeated:!0},{no:11,name:"provides",kind:"message",T:Sc,repeated:!0},{no:12,name:"requires",kind:"message",T:Sc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ac},{no:14,name:"entity_interfaces",kind:"message",T:ed,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:ed,repeated:!0}]));var nf=qs,Vs=class Vs extends Ce{constructor(n){super();_(this,"name","");_(this,"sourceType",Oc.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new Vs().fromBinary(n,r)}static fromJson(n,r){return new Vs().fromJson(n,r)}static fromJsonString(n,r){return new Vs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Vs,n,r)}};_(Vs,"runtime",B),_(Vs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Vs,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(Oc)}]));var rf=Vs,js=class js extends Ce{constructor(n){super();_(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};_(js,"runtime",B),_(js,"typeName","wg.cosmo.node.v1.Scopes"),_(js,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var bc=js,Ks=class Ks extends Ce{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ks,n,r)}};_(Ks,"runtime",B),_(Ks,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Ks,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:bc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:bc,repeated:!0}]));var af=Ks,Gs=class Gs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gs,n,r)}};_(Gs,"runtime",B),_(Gs,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(Gs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:rf,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:af},{no:5,name:"subscription_filter_condition",kind:"message",T:Iu,opt:!0}]));var sf=Gs,$s=class $s extends Ce{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return B.util.equals($s,n,r)}};_($s,"runtime",B),_($s,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_($s,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var DD=$s,Qs=class Qs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qs,n,r)}};_(Qs,"runtime",B),_(Qs,"typeName","wg.cosmo.node.v1.TypeField"),_(Qs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var Zl=Qs,Ys=class Ys extends Ce{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ys,n,r)}};_(Ys,"runtime",B),_(Ys,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(Ys,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var of=Ys,Js=class Js extends Ce{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Js,n,r)}};_(Js,"runtime",B),_(Js,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(Js,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:of,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var uf=Js,Hs=class Hs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hs,n,r)}};_(Hs,"runtime",B),_(Hs,"typeName","wg.cosmo.node.v1.RequiredField"),_(Hs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:uf,repeated:!0}]));var Sc=Hs,zs=class zs extends Ce{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(zs,n,r)}};_(zs,"runtime",B),_(zs,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(zs,"fields",B.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var ed=zs,Ws=class Ws extends Ce{constructor(n){super();_(this,"url");_(this,"method",Dc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ws,n,r)}};_(Ws,"runtime",B),_(Ws,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(Ws,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Mr},{no:2,name:"method",kind:"enum",T:B.getEnumType(Dc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:xD}},{no:4,name:"body",kind:"message",T:Mr},{no:5,name:"query",kind:"message",T:MD,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qD},{no:9,name:"base_url",kind:"message",T:Mr},{no:10,name:"path",kind:"message",T:Mr},{no:11,name:"http_proxy_url",kind:"message",T:Mr,opt:!0}]));var bD=Ws,Xs=class Xs extends Ce{constructor(n){super();_(this,"statusCode",Kn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xs,n,r)}};_(Xs,"runtime",B),_(Xs,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(Xs,"fields",B.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var N1=Xs,Zs=class Zs extends Ce{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zs,n,r)}};_(Zs,"runtime",B),_(Zs,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(Zs,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:bD},{no:2,name:"subscription",kind:"message",T:VD},{no:3,name:"federation",kind:"message",T:jD},{no:4,name:"upstream_schema",kind:"message",T:Nf},{no:6,name:"custom_scalar_type_fields",kind:"message",T:KD,repeated:!0},{no:7,name:"grpc",kind:"message",T:td}]));var cf=Zs,eo=class eo extends Ce{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eo,n,r)}};_(eo,"runtime",B),_(eo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(eo,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:AD},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:lf}]));var td=eo,to=class to extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return B.util.equals(to,n,r)}};_(to,"runtime",B),_(to,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(to,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var lf=to,no=class no extends Ce{constructor(n){super();_(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return B.util.equals(no,n,r)}};_(no,"runtime",B),_(no,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(no,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var T1=no,ro=class ro extends Ce{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ro,n,r)}};_(ro,"runtime",B),_(ro,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(ro,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:RD,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:PD,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:FD,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:CD,repeated:!0}]));var AD=ro,io=class io extends Ce{constructor(n){super();_(this,"type",ef.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(io,n,r)}};_(io,"runtime",B),_(io,"typeName","wg.cosmo.node.v1.OperationMapping"),_(io,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(ef)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var RD=io,ao=class ao extends Ce{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ao,n,r)}};_(ao,"runtime",B),_(ao,"typeName","wg.cosmo.node.v1.EntityMapping"),_(ao,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var PD=ao,so=class so extends Ce{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return B.util.equals(so,n,r)}};_(so,"runtime",B),_(so,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(so,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:wD,repeated:!0}]));var FD=so,oo=class oo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(oo,n,r)}};_(oo,"runtime",B),_(oo,"typeName","wg.cosmo.node.v1.FieldMapping"),_(oo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:LD,repeated:!0}]));var wD=oo,uo=class uo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(uo,n,r)}};_(uo,"runtime",B),_(uo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(uo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var LD=uo,co=class co extends Ce{constructor(n){super();_(this,"type","");_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(co,n,r)}};_(co,"runtime",B),_(co,"typeName","wg.cosmo.node.v1.EnumMapping"),_(co,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:BD,repeated:!0}]));var CD=co,lo=class lo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(lo,n,r)}};_(lo,"runtime",B),_(lo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(lo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var BD=lo,po=class po extends Ce{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(po,n,r)}};_(po,"runtime",B),_(po,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(po,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var df=po,fo=class fo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");B.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(fo,n,r)}};_(fo,"runtime",B),_(fo,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(fo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:df}]));var pf=fo,mo=class mo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(mo,n,r)}};_(mo,"runtime",B),_(mo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(mo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var ff=mo,No=class No extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return B.util.equals(No,n,r)}};_(No,"runtime",B),_(No,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(No,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var mf=No,To=class To extends Ce{constructor(n){super();_(this,"providerId","");_(this,"type",Bo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return B.util.equals(To,n,r)}};_(To,"runtime",B),_(To,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(To,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(Bo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Uo=To,Eo=class Eo extends Ce{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eo,n,r)}};_(Eo,"runtime",B),_(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Eo,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:pf,repeated:!0},{no:2,name:"kafka",kind:"message",T:ff,repeated:!0},{no:3,name:"redis",kind:"message",T:mf,repeated:!0}]));var Ac=Eo,ho=class ho extends Ce{constructor(n){super();_(this,"data");B.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ho,n,r)}};_(ho,"runtime",B),_(ho,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(ho,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Mr}]));var UD=ho,yo=class yo extends Ce{constructor(n){super();_(this,"kind",yu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(yo,n,r)}};_(yo,"runtime",B),_(yo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(yo,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(yu)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var Mr=yo,Io=class Io extends Ce{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Io,n,r)}};_(Io,"runtime",B),_(Io,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Io,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var kD=Io,go=class go extends Ce{constructor(n){super();_(this,"name","");_(this,"value","");B.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return B.util.equals(go,n,r)}};_(go,"runtime",B),_(go,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(go,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var MD=go,_o=class _o extends Ce{constructor(n){super();_(this,"values",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return B.util.equals(_o,n,r)}};_(_o,"runtime",B),_(_o,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(_o,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Mr,repeated:!0}]));var xD=_o,vo=class vo extends Ce{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(vo,n,r)}};_(vo,"runtime",B),_(vo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(vo,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Mr},{no:2,name:"cert",kind:"message",T:Mr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qD=vo,So=class So extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return B.util.equals(So,n,r)}};_(So,"runtime",B),_(So,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(So,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Mr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(bs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(As),opt:!0}]));var VD=So,Oo=class Oo extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Oo,n,r)}};_(Oo,"runtime",B),_(Oo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Oo,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var jD=Oo,Do=class Do extends Ce{constructor(n){super();_(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Do,n,r)}};_(Do,"runtime",B),_(Do,"typeName","wg.cosmo.node.v1.InternedString"),_(Do,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var Nf=Do,bo=class bo extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(bo,n,r)}};_(bo,"runtime",B),_(bo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(bo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var KD=bo,Ao=class Ao extends Ce{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ao,n,r)}};_(Ao,"runtime",B),_(Ao,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Ao,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Tf=Ao,Gi=class Gi extends Ce{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Gi().fromBinary(n,r)}static fromJson(n,r){return new Gi().fromJson(n,r)}static fromJsonString(n,r){return new Gi().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gi,n,r)}};_(Gi,"runtime",B),_(Gi,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(Gi,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Gi,repeated:!0},{no:2,name:"in",kind:"message",T:Tf,opt:!0},{no:3,name:"not",kind:"message",T:Gi,opt:!0},{no:4,name:"or",kind:"message",T:Gi,repeated:!0}]));var Iu=Gi,Ro=class Ro extends Ce{constructor(n){super();_(this,"operations",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ro,n,r)}};_(Ro,"runtime",B),_(Ro,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Ro,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:GD,repeated:!0}]));var E1=Ro,Po=class Po extends Ce{constructor(n){super();_(this,"request");_(this,"client");B.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Po,n,r)}};_(Po,"runtime",B),_(Po,"typeName","wg.cosmo.node.v1.Operation"),_(Po,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:$D},{no:2,name:"client",kind:"message",T:JD}]));var GD=Po,Fo=class Fo extends Ce{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");B.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fo,n,r)}};_(Fo,"runtime",B),_(Fo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Fo,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:QD}]));var $D=Fo,wo=class wo extends Ce{constructor(n){super();_(this,"persistedQuery");B.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(wo,n,r)}};_(wo,"runtime",B),_(wo,"typeName","wg.cosmo.node.v1.Extension"),_(wo,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:YD}]));var QD=wo,Lo=class Lo extends Ce{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);B.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Lo,n,r)}};_(Lo,"runtime",B),_(Lo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Lo,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var YD=Lo,Co=class Co extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Co,n,r)}};_(Co,"runtime",B),_(Co,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Co,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var JD=Co;m();T();N();var nd=ss(CE(),1);function Nde(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new of({fieldName:a[1],typeName:a[0]}))}t.push(new uf({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function HD(e,t,n){if(e)for(let r of e){let i=Nde(r);t.push(new Sc(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function zD(e){switch(e){case"publish":return Bo.PUBLISH;case"request":return Bo.REQUEST;case"subscribe":return Bo.SUBSCRIBE}}function h1(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ac({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Zl({typeName:i,fieldNames:a});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let f=new ed({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}HD(r.keys,t.keys,i),HD(r.provides,t.provides,i),HD(r.requires,t.requires,i);let c=[],l=[],p=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case nd.PROVIDER_TYPE_KAFKA:{l.push(new ff({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),topics:f.topics}));break}case nd.PROVIDER_TYPE_NATS:{c.push(new pf(x({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new df({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case nd.PROVIDER_TYPE_REDIS:{p.push(new mf({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),channels:f.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...p)}return t}function y1(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(f=>new rf({name:f,sourceType:Oc.FIELD_ARGUMENT})),o=new sf({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(f=>new bc({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new bc({requiredAndScopes:f})))||[],p=c.length>0;if((i.requiresAuthentication||p)&&(o.authorizationConfiguration=new af({requiresAuthentication:i.requiresAuthentication||p,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new Iu;sh(f,i.subscriptionFilterCondition),o.subscriptionFilterCondition=f}t.push(o)}return t}function sh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Iu;sh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Tf({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Iu,sh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Iu;sh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();N();function WD(e){return new Error(`Normalization failed to return a ${e}.`)}function I1(e){return new Error(`Invalid router compatibility version "${e}".`)}var Rc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Rc||(Rc={}));var Tde=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new Nf({key:n})},Ede=e=>{switch(e){case"ws":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},hde=e=>{switch(e){case"auto":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},_1=function(e){if(!rd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw I1(e.routerCompatibilityVersion);let t=new Xl({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw WD("ConfigurationDataByTypeName");if(!n.schema)throw WD("GraphQLSchema");let r={enabled:!0},i=Tde(t,RV((0,g1.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:p,provides:f,requires:y,rootNodes:g}=h1(n.configurationDataByTypeName),v;switch(n.kind){case Rc.Standard:{r.enabled=!0,r.protocol=Ede(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=hde(n.websocketSubprotocol||"auto"),r.url=new Mr({kind:yu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Rc.Plugin:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new lf({name:n.name,version:n.version})});break}case Rc.GRPC:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema});break}}let F,k,K;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){F=hu.PUBSUB,K=new Ac({kafka:c.kafka,nats:c.nats,redis:c.redis});let ne=pe=>rd.ROOT_TYPE_NAMES.has(pe.typeName),z=0,Te=0;for(;z({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${rd.COMPOSITION_VERSION}`})};m();T();N();var Fc=ss(Ae());function v1(e){let t;try{t=(0,Fc.parse)(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function yde(e){let t=(0,Pc.federateSubgraphs)({subgraphs:e.map(v1),version:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Fc.print)(t.federatedGraphAST)}}function Ide(e){let t=(0,Pc.federateSubgraphs)({subgraphs:e.map(v1),version:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return _1({federatedClientSDL:(0,Fc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Fc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,p;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Rc.Standard,id:`${i}`,name:r.name,url:aD(r.url),sdl:r.schema,subscriptionUrl:aD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(p=r.subscription_protocol)!=null?p:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return sm(gde);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/src/errors/errors.ts b/composition/src/errors/errors.ts index 1c9b5e75fb..26ab47d626 100644 --- a/composition/src/errors/errors.ts +++ b/composition/src/errors/errors.ts @@ -30,6 +30,7 @@ import { getEntriesNotInHashSet, getOrThrowError, kindToNodeType, numberToOrdina import { ImplementationErrors, InvalidEntityInterface, InvalidRequiredInputValueData } from '../utils/types'; import { isFieldData } from '../schema-building/utils'; import { printTypeNode } from '@graphql-tools/merge'; +import { NodeType, TypeName } from '../types/types'; export const minimumSubgraphRequirementError = new Error('At least one subgraph is required for federation.'); @@ -424,9 +425,9 @@ export function subgraphInvalidSyntaxError(error?: Error): Error { } export function invalidInterfaceImplementationError( - parentTypeName: string, - parentTypeString: string, - implementationErrorsByInterfaceTypeName: Map, + parentTypeName: TypeName, + parentNodeType: NodeType, + implementationErrorsByInterfaceTypeName: Map, ): Error { const messages: string[] = []; for (const [interfaceName, implementationErrors] of implementationErrorsByInterfaceTypeName) { @@ -486,7 +487,7 @@ export function invalidInterfaceImplementationError( messages.push(message); } return new Error( - `The ${parentTypeString} "${parentTypeName}" has the following Interface implementation errors:\n` + + `The ${parentNodeType} "${parentTypeName}" has the following Interface implementation errors:\n` + messages.join('\n'), ); } @@ -856,8 +857,8 @@ export function undefinedEntityInterfaceImplementationsError( ); const implementedConcreteTypeNames = entityInterfaceDatas.concreteTypeNames!; message += - ` Across all subgraphs, the entity interface "${typeName}" is implemented by the following entities` + - (implementedConcreteTypeNames.size > 1 ? `s` : ``) + + ` Across all subgraphs, the entity interface "${typeName}" is implemented by the following entit` + + (implementedConcreteTypeNames.size > 1 ? `ies` : `y`) + `:\n "` + Array.from(implementedConcreteTypeNames).join(QUOTATION_JOIN) + `"\n` + diff --git a/composition/src/schema-building/types.ts b/composition/src/schema-building/types.ts index f2d269d315..2e4e6f0c27 100644 --- a/composition/src/schema-building/types.ts +++ b/composition/src/schema-building/types.ts @@ -25,6 +25,7 @@ import { import { FieldSetConditionData } from '../router-configuration/types'; import { KeyFieldSetData } from '../v1/normalization/types'; import { InputNodeKind, OutputNodeKind } from '../utils/types'; +import { FieldName, SubgraphName } from '../types/types'; export type ArgumentData = { name: string; @@ -101,7 +102,7 @@ export type FieldData = { federatedCoords: string; inheritedDirectiveNames: Set; isInaccessible: boolean; - isShareableBySubgraphName: Map; + isShareableBySubgraphName: Map; kind: Kind.FIELD_DEFINITION; name: string; namedTypeKind: OutputNodeKind | Kind.NULL; @@ -110,7 +111,7 @@ export type FieldData = { originalParentTypeName: string; persistedDirectivesData: PersistedDirectivesData; renamedParentTypeName: string; - subgraphNames: Set; + subgraphNames: Set; type: MutableTypeNode; description?: StringValueNode; }; @@ -172,7 +173,7 @@ export type ObjectDefinitionData = { configureDescriptionDataBySubgraphName: Map; directivesByDirectiveName: Map>; extensionType: ExtensionType; - fieldDataByName: Map; + fieldDataByName: Map; implementedInterfaceTypeNames: Set; isEntity: boolean; isInaccessible: boolean; diff --git a/composition/src/schema-building/utils.ts b/composition/src/schema-building/utils.ts index 20ba09b50d..d6a0dfc51f 100644 --- a/composition/src/schema-building/utils.ts +++ b/composition/src/schema-building/utils.ts @@ -71,6 +71,7 @@ import { import { generateRequiresScopesDirective, generateSimpleDirective, getEntriesNotInHashSet } from '../utils/utils'; import { InputNodeKind, InvalidRequiredInputValueData, OutputNodeKind } from '../utils/types'; import { getDescriptionFromString } from '../v1/federation/utils'; +import { SubgraphName } from '../types/types'; export function newPersistedDirectivesData(): PersistedDirectivesData { return { @@ -572,7 +573,7 @@ export function newInvalidFieldNames() { export function validateExternalAndShareable(fieldData: FieldData, invalidFieldNames: InvalidFieldNames) { // fieldData.subgraphNames.size is not used due to overridden fields const instances = fieldData.isShareableBySubgraphName.size; - let externalFieldSubgraphNames: Array = []; + let externalFieldSubgraphNames = new Array(); let unshareableFields = 0; for (const [subgraphName, isShareable] of fieldData.isShareableBySubgraphName) { /* diff --git a/composition/src/types/types.ts b/composition/src/types/types.ts index fb6b0fe698..093251f97e 100644 --- a/composition/src/types/types.ts +++ b/composition/src/types/types.ts @@ -1 +1,11 @@ export type ContractName = string; + +export type FieldName = string; + +export type FieldCoords = string; + +export type SubgraphName = string; + +export type TypeName = string; + +export type NodeType = string; diff --git a/composition/src/v1/federation/federation-factory.ts b/composition/src/v1/federation/federation-factory.ts index 1dc0f02261..133606a698 100644 --- a/composition/src/v1/federation/federation-factory.ts +++ b/composition/src/v1/federation/federation-factory.ts @@ -92,7 +92,6 @@ import { newAuthorizationData, newEntityInterfaceFederationData, newFieldAuthorizationData, - subtractSet, upsertAuthorizationConfiguration, upsertEntityInterfaceFederationData, upsertFieldAuthorizationData, @@ -231,7 +230,7 @@ import { InvalidRequiredInputValueData, } from '../../utils/types'; import { FederateSubgraphsContractV1Params, FederateSubgraphsWithContractsV1Params, FederationParams } from './types'; -import { ContractName } from '../../types/types'; +import { ContractName, FieldCoords, TypeName } from '../../types/types'; export class FederationFactory { authorizationDataByParentTypeName: Map; @@ -245,7 +244,7 @@ export class FederationFactory { entityInterfaceFederationDataByTypeName: Map; errors: Error[] = []; fieldConfigurationByFieldCoords = new Map(); - fieldCoordsByNamedTypeName: Map>; + fieldCoordsByNamedTypeName: Map>; inaccessibleCoords = new Set(); inaccessibleRequiredInputValueErrorByCoords = new Map(); internalGraph: Graph; @@ -425,11 +424,11 @@ export class FederationFactory { objectData?.kind || Kind.NULL, ); } - const configurationData = getOrThrowError( - internalSubgraph.configurationDataByTypeName, - entityData.typeName, - 'internalSubgraph.configurationDataByTypeName', - ); + const configurationData = internalSubgraph.configurationDataByTypeName.get(entityData.typeName); + // If all fields are overridden, there will be no configuration data. + if (!configurationData) { + return; + } const implicitKeys: RequiredFieldConfiguration[] = []; const graphNode = this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${entityData.typeName}`); // Any errors in the field sets would be caught when evaluating the explicit entities, so they are ignored here @@ -1574,13 +1573,12 @@ export class FederationFactory { handleEntityInterfaces() { for (const [entityInterfaceTypeName, entityInterfaceData] of this.entityInterfaceFederationDataByTypeName) { - subtractSet(entityInterfaceData.interfaceFieldNames, entityInterfaceData.interfaceObjectFieldNames); - const entityInterface = getOrThrowError( + const entityInterfaceFederationData = getOrThrowError( this.parentDefinitionDataByTypeName, entityInterfaceTypeName, PARENT_DEFINITION_DATA, ); - if (entityInterface.kind !== Kind.INTERFACE_TYPE_DEFINITION) { + if (entityInterfaceFederationData.kind !== Kind.INTERFACE_TYPE_DEFINITION) { // TODO error continue; } @@ -1605,7 +1603,9 @@ export class FederationFactory { // TODO no keys error continue; } - interfaceObjectConfiguration.entityInterfaceConcreteTypeNames = entityInterfaceData.concreteTypeNames; + interfaceObjectConfiguration.entityInterfaceConcreteTypeNames = new Set( + entityInterfaceData.concreteTypeNames, + ); this.internalGraph.setSubgraphName(subgraphName); const interfaceObjectNode = this.internalGraph.addOrUpdateNode(entityInterfaceTypeName, { isAbstract: true }); for (const concreteTypeName of concreteTypeNames) { @@ -1648,17 +1648,20 @@ export class FederationFactory { resolvableKeyFieldSets.add(key.selectionSet); } const interfaceAuthData = this.authorizationDataByParentTypeName.get(entityInterfaceTypeName); - for (const fieldName of entityInterfaceData.interfaceObjectFieldNames) { + const entityInterfaceSubgraphData = getOrThrowError( + internalSubgraph.parentDefinitionDataByTypeName, + entityInterfaceTypeName, + 'internalSubgraph.parentDefinitionDataByTypeName', + ); + if (!isObjectDefinitionData(entityInterfaceSubgraphData)) { + continue; + } + for (const [fieldName, fieldData] of entityInterfaceSubgraphData.fieldDataByName) { const fieldCoords = `${concreteTypeName}.${fieldName}`; - const interfaceFieldData = getOrThrowError( - entityInterface.fieldDataByName, - fieldName, - `${entityInterfaceTypeName}.fieldDataByFieldName`, - ); getValueOrDefault( this.fieldCoordsByNamedTypeName, - interfaceFieldData.namedTypeName, - () => new Set(), + fieldData.namedTypeName, + () => new Set(), ).add(fieldCoords); const interfaceFieldAuthData = interfaceAuthData?.fieldAuthDataByFieldName.get(fieldName); if (interfaceFieldAuthData) { @@ -1671,12 +1674,16 @@ export class FederationFactory { } const existingFieldData = concreteTypeData.fieldDataByName.get(fieldName); if (existingFieldData) { - // TODO handle shareability + const isShareable = fieldData.isShareableBySubgraphName.get(subgraphName) ?? false; + existingFieldData.isShareableBySubgraphName.set(subgraphName, isShareable); + existingFieldData.subgraphNames.add(subgraphName); continue; } const isInaccessible = - entityInterface.isInaccessible || concreteTypeData.isInaccessible || interfaceFieldData.isInaccessible; - concreteTypeData.fieldDataByName.set(fieldName, this.copyFieldData(interfaceFieldData, isInaccessible)); + entityInterfaceFederationData.isInaccessible || + concreteTypeData.isInaccessible || + fieldData.isInaccessible; + concreteTypeData.fieldDataByName.set(fieldName, this.copyFieldData(fieldData, isInaccessible)); } this.handleInterfaceObjectForInternalGraph({ internalSubgraph, @@ -3053,7 +3060,7 @@ function initializeFederationFactory({ upsertEntityInterfaceFederationData(existingData, entityInterfaceData, subgraphName); } } - const entityInterfaceErrors: Array = []; + const entityInterfaceErrors = new Array(); for (const [typeName, entityInterfaceData] of entityInterfaceFederationDataByTypeName) { const implementations = entityInterfaceData.concreteTypeNames.size; for (const [subgraphName, subgraphData] of entityInterfaceData.subgraphDataByTypeName) { diff --git a/composition/src/v1/normalization/normalization-factory.ts b/composition/src/v1/normalization/normalization-factory.ts index a70d321b99..f144c3a61b 100644 --- a/composition/src/v1/normalization/normalization-factory.ts +++ b/composition/src/v1/normalization/normalization-factory.ts @@ -289,6 +289,7 @@ import { INHERITABLE_DIRECTIVE_NAMES, INPUT_FIELD, INT_SCALAR, + INTERFACE_OBJECT, KEY, LINK, LINK_IMPORT, @@ -1267,11 +1268,15 @@ export class NormalizationFactory { return; } this.updateCompositeOutputDataByNode(node, parentData, extensionType); - this.addConcreteTypeNamesForImplementedInterfaces(parentData.implementedInterfaceTypeNames, typeName); + if (!directivesByDirectiveName.has(INTERFACE_OBJECT)) { + this.addConcreteTypeNamesForImplementedInterfaces(parentData.implementedInterfaceTypeNames, typeName); + } return; } const implementedInterfaceTypeNames = this.extractImplementedInterfaceTypeNames(node, new Set()); - this.addConcreteTypeNamesForImplementedInterfaces(implementedInterfaceTypeNames, typeName); + if (!directivesByDirectiveName.has(INTERFACE_OBJECT)) { + this.addConcreteTypeNamesForImplementedInterfaces(implementedInterfaceTypeNames, typeName); + } const newParentData: ObjectDefinitionData = { configureDescriptionDataBySubgraphName: new Map(), directivesByDirectiveName, diff --git a/composition/tests/utils/utils.ts b/composition/tests/utils/utils.ts index 3968d05645..9a106d4c24 100644 --- a/composition/tests/utils/utils.ts +++ b/composition/tests/utils/utils.ts @@ -6,8 +6,8 @@ import { federateSubgraphsContract, federateSubgraphsWithContracts, FederationFailure, - FederationSuccess, FederationResultWithContractsSuccess, + FederationSuccess, NormalizationFailure, NormalizationSuccess, normalizeSubgraph, @@ -62,6 +62,11 @@ export function federateSubgraphsSuccess( disableResolvabilityValidation = false, ): FederationSuccess { const result = federateSubgraphs({ disableResolvabilityValidation, subgraphs, version }); + if (!result.success) { + for (const error of result.errors) { + console.dir(error, { depth: null }); + } + } expect(result.success, 'federateSubgraphs failed when expected to succeed').toBe(true); return result as FederationSuccess; } diff --git a/composition/tests/v1/directives/interface-object.test.ts b/composition/tests/v1/directives/interface-object.test.ts index a75d80efe8..0a6e6bc48e 100644 --- a/composition/tests/v1/directives/interface-object.test.ts +++ b/composition/tests/v1/directives/interface-object.test.ts @@ -1,9 +1,18 @@ import { describe, expect, test } from 'vitest'; import { ConfigurationData, + FieldData, + FieldName, + ImplementationErrors, + INTERFACE, + InvalidFieldImplementation, + invalidFieldShareabilityError, + invalidInterfaceImplementationError, invalidInterfaceObjectImplementationDefinitionsError, + ObjectDefinitionData, ROUTER_COMPATIBILITY_VERSION_ONE, Subgraph, + SubgraphName, } from '../../../src'; import { parse } from 'graphql'; import { @@ -521,6 +530,151 @@ describe('@interfaceObject tests', () => { ]), ); }); + + test('that an Interface Object can implement another entity Interface', () => { + const { federatedGraphSchema } = federateSubgraphsSuccess([fca, fcb], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + versionTwoRouterDefinitions + + ` + type EntityA implements EntityInterfaceA { + id: ID! + } + + type EntityB implements EntityInterfaceA & EntityInterfaceB { + id: ID! + newField: String! + } + + type EntityC implements EntityInterfaceA & EntityInterfaceB { + id: ID! + newField: String! + } + + interface EntityInterfaceA { + id: ID! + } + + interface EntityInterfaceB implements EntityInterfaceA { + id: ID! + newField: String! + } + + type Query { + dummy: String! + } + + scalar openfed__Scope + `, + ), + ); + }); + + test('that an Interface Object cannot propagate fields to other entity Interfaces', () => { + const { errors } = federateSubgraphsFailure([fca, fcb, fcc], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(1); + expect(errors[0]).toStrictEqual( + invalidInterfaceImplementationError( + 'EntityInterfaceB', + INTERFACE, + new Map([ + [ + 'EntityInterfaceA', + { + invalidFieldImplementations: new Map(), + unimplementedFields: ['name'], + }, + ], + ]), + ), + ); + }); + + test('that a propagating an Interface Object field through multiple Interface Objects causes @shareable errors', () => { + const { errors } = federateSubgraphsFailure([fca, fcc, fcd], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(errors).toHaveLength(2); + expect(errors[0]).toStrictEqual( + invalidFieldShareabilityError( + { + fieldDataByName: new Map([ + [ + 'name', + { + isShareableBySubgraphName: new Map([ + [fcc.name, false], + [fcd.name, false], + ]), + subgraphNames: new Set([fcc.name, fcd.name]), + } as FieldData, + ], + ]), + name: 'EntityB', + } as ObjectDefinitionData, + new Set(['name']), + ), + ); + expect(errors[1]).toStrictEqual( + invalidFieldShareabilityError( + { + fieldDataByName: new Map([ + [ + 'name', + { + isShareableBySubgraphName: new Map([ + [fcc.name, false], + [fcd.name, false], + ]), + subgraphNames: new Set([fcc.name, fcd.name]), + } as FieldData, + ], + ]), + name: 'EntityC', + } as ObjectDefinitionData, + new Set(['name']), + ), + ); + }); + + test('that @shareable Interface Object fields can be propagated through multiple Interface Objects', () => { + const { federatedGraphSchema } = federateSubgraphsSuccess([fca, fce, fcf], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + versionTwoRouterDefinitions + + ` + type EntityA implements EntityInterfaceA { + id: ID! + name: String! + } + + type EntityB implements EntityInterfaceA & EntityInterfaceB { + id: ID! + name: String! + } + + type EntityC implements EntityInterfaceA & EntityInterfaceB { + id: ID! + name: String! + } + + interface EntityInterfaceA { + id: ID! + name: String! + } + + interface EntityInterfaceB implements EntityInterfaceA { + id: ID! + name: String! + } + + type Query { + dummy: String! + } + + scalar openfed__Scope + `, + ), + ); + }); }); const faa: Subgraph = { @@ -651,3 +805,96 @@ const fbc: Subgraph = { } `), }; + +const fca: Subgraph = { + name: 'fca', + url: '', + definitions: parse(` + interface EntityInterfaceA @key(fields: "id") { + id: ID! + } + + interface EntityInterfaceB implements EntityInterfaceA @key(fields: "id") { + id: ID! + } + + type EntityA implements EntityInterfaceA @key(fields: "id") { + id: ID! + } + + type EntityB implements EntityInterfaceB & EntityInterfaceA @key(fields: "id") { + id: ID! + } + + type EntityC implements EntityInterfaceB & EntityInterfaceA @key(fields: "id") { + id: ID! + } + + type Query { + dummy: String! + } + `), +}; + +const fcb: Subgraph = { + name: 'fcb', + url: '', + definitions: parse(` + extend interface EntityInterfaceA @key(fields: "id", resolvable: false) { + id: ID! + } + + type EntityInterfaceB implements EntityInterfaceA @key(fields: "id") @interfaceObject{ + id: ID! + newField: String! + } + + type EntityA implements EntityInterfaceA @key(fields: "id") { + id: ID! + } + `), +}; + +const fcc: Subgraph = { + name: 'fcc', + url: '', + definitions: parse(` + type EntityInterfaceA @key(fields: "id") @interfaceObject { + id: ID! + name: String! + } + `), +}; + +const fcd: Subgraph = { + name: 'fcd', + url: '', + definitions: parse(` + type EntityInterfaceB @key(fields: "id") @interfaceObject{ + id: ID! + name: String! + } + `), +}; + +const fce: Subgraph = { + name: 'fce', + url: '', + definitions: parse(` + type EntityInterfaceA @key(fields: "id") @interfaceObject { + id: ID! + name: String! @shareable + } + `), +}; + +const fcf: Subgraph = { + name: 'fcf', + url: '', + definitions: parse(` + type EntityInterfaceB @key(fields: "id") @interfaceObject{ + id: ID! + name: String! @shareable + } + `), +}; diff --git a/composition/tests/v1/entity-interface.test.ts b/composition/tests/v1/entity-interface.test.ts index 6f3a5222a7..da6d3ea22f 100644 --- a/composition/tests/v1/entity-interface.test.ts +++ b/composition/tests/v1/entity-interface.test.ts @@ -363,8 +363,8 @@ const subgraphD: Subgraph = { definitions: parse(` type Interface @key(fields: "id") @interfaceObject { id: ID! - name: String! - age: Int! + name: String! @shareable + age: Int! @shareable } `), }; diff --git a/composition/tests/v1/resolvability.test.ts b/composition/tests/v1/resolvability.test.ts index 590d101a45..a35b9958d8 100644 --- a/composition/tests/v1/resolvability.test.ts +++ b/composition/tests/v1/resolvability.test.ts @@ -2176,7 +2176,7 @@ const subgraphAW: Subgraph = { type Interface @interfaceObject @key(fields: "id") { id: ID! - age: Int! + age: Int! @shareable } `), }; From 86b183957729486d1b485d7ced77a339c7c532ab Mon Sep 17 00:00:00 2001 From: Aenimus Date: Wed, 6 Aug 2025 22:14:33 +0100 Subject: [PATCH 2/2] chore: test name typo --- composition/tests/v1/directives/interface-object.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composition/tests/v1/directives/interface-object.test.ts b/composition/tests/v1/directives/interface-object.test.ts index 0a6e6bc48e..57081c926c 100644 --- a/composition/tests/v1/directives/interface-object.test.ts +++ b/composition/tests/v1/directives/interface-object.test.ts @@ -590,7 +590,7 @@ describe('@interfaceObject tests', () => { ); }); - test('that a propagating an Interface Object field through multiple Interface Objects causes @shareable errors', () => { + test('that propagating an Interface Object field through multiple Interface Objects causes @shareable errors', () => { const { errors } = federateSubgraphsFailure([fca, fcc, fcd], ROUTER_COMPATIBILITY_VERSION_ONE); expect(errors).toHaveLength(2); expect(errors[0]).toStrictEqual(