From 9bdf2fb0f17963b0d918d5f3b9d48db181016477 Mon Sep 17 00:00:00 2001 From: Aenimus Date: Mon, 16 Sep 2024 14:44:03 +0100 Subject: [PATCH 1/3] feat: foundations for @defer directive --- composition-go/index.global.js | 120 ++++++++--------- .../src/federation/federation-factory.ts | 7 +- composition/src/utils/constants.ts | 33 +++++ composition/src/utils/string-constants.ts | 3 + composition/tests/contracts.test.ts | 123 +++++++++--------- composition/tests/federation-factory.test.ts | 2 +- composition/tests/utils/utils.ts | 19 ++- controlplane/test/contracts.test.ts | 46 +++++-- .../composedFederatedV1Graph.graphql | 5 + .../composedFederatedV2Graph.graphql | 5 + controlplane/test/namespace.test.ts | 2 + .../__snapshots__/router.config.test.ts.snap | 10 +- 12 files changed, 233 insertions(+), 142 deletions(-) diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 0b5b82e98..2c80a3c78 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -11,17 +11,17 @@ class URL { } } } -"use strict";var shim=(()=>{var d6=Object.create;var Nf=Object.defineProperty,p6=Object.defineProperties,f6=Object.getOwnPropertyDescriptor,m6=Object.getOwnPropertyDescriptors,h6=Object.getOwnPropertyNames,eP=Object.getOwnPropertySymbols,T6=Object.getPrototypeOf,tP=Object.prototype.hasOwnProperty,y6=Object.prototype.propertyIsEnumerable;var Cn=Math.pow,Jv=(e,t,n)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))tP.call(t,n)&&Jv(e,n,t[n]);if(eP)for(var n of eP(t))y6.call(t,n)&&Jv(e,n,t[n]);return e},K=(e,t)=>p6(e,m6(t));var ue=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t)=>{for(var n in t)Nf(e,n,{get:t[n],enumerable:!0})},nP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of h6(t))!tP.call(e,i)&&i!==n&&Nf(e,i,{get:()=>t[i],enumerable:!(r=f6(t,i))||r.enumerable});return e};var zv=(e,t,n)=>(n=e!=null?d6(T6(e)):{},nP(t||!e||!e.__esModule?Nf(n,"default",{value:e,enumerable:!0}):n,e)),xe=e=>nP(Nf({},"__esModule",{value:!0}),e);var A=(e,t,n)=>(Jv(e,typeof t!="symbol"?t+"":t,n),n);var hr=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{u(n.next(l))}catch(d){i(d)}},o=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);u((n=n.apply(e,t)).next())});var m=ue(()=>{"use strict"});var O={};Ef(O,{_debugEnd:()=>KP,_debugProcess:()=>qP,_events:()=>ok,_eventsCount:()=>ak,_exiting:()=>bP,_fatalExceptions:()=>BP,_getActiveHandles:()=>AP,_getActiveRequests:()=>DP,_kill:()=>wP,_linkedBinding:()=>vP,_maxListeners:()=>sk,_preload_modules:()=>nk,_rawDebug:()=>gP,_startProfilerIdleNotifier:()=>GP,_stopProfilerIdleNotifier:()=>QP,_tickCallback:()=>$P,abort:()=>HP,addListener:()=>uk,allowedNodeEnvironmentFlags:()=>CP,arch:()=>aP,argv:()=>lP,argv0:()=>tk,assert:()=>UP,binding:()=>hP,chdir:()=>NP,config:()=>OP,cpuUsage:()=>Iy,cwd:()=>yP,debugPort:()=>ek,default:()=>yk,dlopen:()=>SP,domain:()=>_P,emit:()=>fk,emitWarning:()=>mP,env:()=>cP,execArgv:()=>dP,execPath:()=>ZP,exit:()=>kP,features:()=>MP,hasUncaughtExceptionCaptureCallback:()=>jP,hrtime:()=>gy,kill:()=>PP,listeners:()=>Tk,memoryUsage:()=>LP,moduleLoadList:()=>IP,nextTick:()=>iP,off:()=>lk,on:()=>ba,once:()=>ck,openStdin:()=>xP,pid:()=>WP,platform:()=>uP,ppid:()=>XP,prependListener:()=>mk,prependOnceListener:()=>hk,reallyExit:()=>RP,release:()=>EP,removeAllListeners:()=>pk,removeListener:()=>dk,resourceUsage:()=>FP,setSourceMapsEnabled:()=>rk,setUncaughtExceptionCaptureCallback:()=>VP,stderr:()=>JP,stdin:()=>zP,stdout:()=>YP,title:()=>oP,umask:()=>TP,uptime:()=>ik,version:()=>pP,versions:()=>fP});function Xv(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function N6(){!yd||!Gc||(yd=!1,Gc.length?_a=Gc.concat(_a):Ey=-1,_a.length&&rP())}function rP(){if(!yd){var e=setTimeout(N6,0);yd=!0;for(var t=_a.length;t;){for(Gc=_a,_a=[];++Ey1)for(var n=1;n{"use strict";m();T();h();_a=[],yd=!1,Ey=-1;sP.prototype.run=function(){this.fun.apply(null,this.array)};oP="browser",aP="x64",uP="browser",cP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},lP=["/usr/bin/node"],dP=[],pP="v16.8.0",fP={},mP=function(e,t){console.warn((t?t+": ":"")+e)},hP=function(e){Xv("binding")},TP=function(e){return 0},yP=function(){return"/"},NP=function(e){},EP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};gP=ti,IP=[];_P={},bP=!1,OP={};RP=ti,wP=ti,Iy=function(){return{}},FP=Iy,LP=Iy,PP=ti,kP=ti,xP=ti,CP={};MP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},BP=ti,VP=ti;$P=ti,qP=ti,KP=ti,GP=ti,QP=ti,YP=void 0,JP=void 0,zP=void 0,HP=ti,WP=2,XP=1,ZP="/bin/usr/node",ek=9229,tk="node",nk=[],rk=ti,ec={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};ec.now===void 0&&(Hv=Date.now(),ec.timing&&ec.timing.navigationStart&&(Hv=ec.timing.navigationStart),ec.now=()=>Date.now()-Hv);Wv=1e9;gy.bigint=function(e){var t=gy(e);return typeof BigInt=="undefined"?t[0]*Wv+t[1]:BigInt(t[0]*Wv)+BigInt(t[1])};sk=10,ok={},ak=0;uk=ba,ck=ba,lk=ba,dk=ba,pk=ba,fk=ti,mk=ba,hk=ba;yk={version:pP,versions:fP,arch:aP,platform:uP,release:EP,_rawDebug:gP,moduleLoadList:IP,binding:hP,_linkedBinding:vP,_events:ok,_eventsCount:ak,_maxListeners:sk,on:ba,addListener:uk,once:ck,off:lk,removeListener:dk,removeAllListeners:pk,emit:fk,prependListener:mk,prependOnceListener:hk,listeners:Tk,domain:_P,_exiting:bP,config:OP,dlopen:SP,uptime:ik,_getActiveRequests:DP,_getActiveHandles:AP,reallyExit:RP,_kill:wP,cpuUsage:Iy,resourceUsage:FP,memoryUsage:LP,kill:PP,exit:kP,openStdin:xP,allowedNodeEnvironmentFlags:CP,assert:UP,features:MP,_fatalExceptions:BP,setUncaughtExceptionCaptureCallback:VP,hasUncaughtExceptionCaptureCallback:jP,emitWarning:mP,nextTick:iP,_tickCallback:$P,_debugProcess:qP,_debugEnd:KP,_startProfilerIdleNotifier:GP,_stopProfilerIdleNotifier:QP,stdout:YP,stdin:zP,stderr:JP,abort:HP,umask:TP,chdir:NP,cwd:yP,env:cP,title:oP,argv:lP,execArgv:dP,pid:WP,ppid:XP,execPath:ZP,debugPort:ek,hrtime:gy,argv0:tk,_preload_modules:nk,setSourceMapsEnabled:rk}});var h=ue(()=>{"use strict";Nk()});function E6(){if(Ek)return gf;Ek=!0,gf.byteLength=u,gf.toByteArray=d,gf.fromByteArray=N;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=b);var j=C===b?0:4-C%4;return[C,j]}function u(I){var b=o(I),C=b[0],j=b[1];return(C+j)*3/4-j}function l(I,b,C){return(b+C)*3/4-C}function d(I){var b,C=o(I),j=C[0],Q=C[1],re=new n(l(I,j,Q)),se=0,pe=Q>0?j-4:j,ye;for(ye=0;ye>16&255,re[se++]=b>>8&255,re[se++]=b&255;return Q===2&&(b=t[I.charCodeAt(ye)]<<2|t[I.charCodeAt(ye+1)]>>4,re[se++]=b&255),Q===1&&(b=t[I.charCodeAt(ye)]<<10|t[I.charCodeAt(ye+1)]<<4|t[I.charCodeAt(ye+2)]>>2,re[se++]=b>>8&255,re[se++]=b&255),re}function p(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function y(I,b,C){for(var j,Q=[],re=b;repe?pe:se+re));return j===1?(b=I[C-1],Q.push(e[b>>2]+e[b<<4&63]+"==")):j===2&&(b=(I[C-2]<<8)+I[C-1],Q.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),Q.join("")}return gf}function g6(){if(gk)return vy;gk=!0;return vy.read=function(e,t,n,r,i){var s,o,u=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,N=n?-1:1,I=e[t+y];for(y+=N,s=I&(1<<-p)-1,I>>=-p,p+=u;p>0;s=s*256+e[t+y],y+=N,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=N,p-=8);if(s===0)s=1-d;else{if(s===l)return o?NaN:(I?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-d}return(I?-1:1)*o*Math.pow(2,s-r)},vy.write=function(e,t,n,r,i,s){var o,u,l,d=s*8-i-1,p=(1<>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:s-1,b=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=N/l:t+=N*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(u=0,o=p):o+y>=1?(u=(t*l-1)*Math.pow(2,i),o=o+y):(u=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+I]=u&255,I+=b,u/=256,i-=8);for(o=o<0;e[n+I]=o&255,I+=b,o/=256,d-=8);e[n+I-b]|=C*128},vy}function I6(){if(Ik)return Qc;Ik=!0;let e=E6(),t=g6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Qc.Buffer=o,Qc.SlowBuffer=Q,Qc.INSPECT_MAX_BYTES=50;let r=2147483647;Qc.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 w=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(w,g),w.foo()===42}catch(w){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 s(w){if(w>r)throw new RangeError('The value "'+w+'" is invalid for option "size"');let g=new Uint8Array(w);return Object.setPrototypeOf(g,o.prototype),g}function o(w,g,v){if(typeof w=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(w)}return u(w,g,v)}o.poolSize=8192;function u(w,g,v){if(typeof w=="string")return y(w,g);if(ArrayBuffer.isView(w))return I(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(cn(w,ArrayBuffer)||w&&cn(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(cn(w,SharedArrayBuffer)||w&&cn(w.buffer,SharedArrayBuffer)))return b(w,g,v);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let x=w.valueOf&&w.valueOf();if(x!=null&&x!==w)return o.from(x,g,v);let J=C(w);if(J)return J;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return o.from(w[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}o.from=function(w,g,v){return u(w,g,v)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function d(w,g,v){return l(w),w<=0?s(w):g!==void 0?typeof v=="string"?s(w).fill(g,v):s(w).fill(g):s(w)}o.alloc=function(w,g,v){return d(w,g,v)};function p(w){return l(w),s(w<0?0:j(w)|0)}o.allocUnsafe=function(w){return p(w)},o.allocUnsafeSlow=function(w){return p(w)};function y(w,g){if((typeof g!="string"||g==="")&&(g="utf8"),!o.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let v=re(w,g)|0,x=s(v),J=x.write(w,g);return J!==v&&(x=x.slice(0,J)),x}function N(w){let g=w.length<0?0:j(w.length)|0,v=s(g);for(let x=0;x=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return w|0}function Q(w){return+w!=w&&(w=0),o.alloc(+w)}o.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==o.prototype},o.compare=function(g,v){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),cn(v,Uint8Array)&&(v=o.from(v,v.offset,v.byteLength)),!o.isBuffer(g)||!o.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let x=g.length,J=v.length;for(let ie=0,fe=Math.min(x,J);ieJ.length?(o.isBuffer(fe)||(fe=o.from(fe)),fe.copy(J,ie)):Uint8Array.prototype.set.call(J,fe,ie);else if(o.isBuffer(fe))fe.copy(J,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=fe.length}return J};function re(w,g){if(o.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||cn(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);let v=w.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&v===0)return 0;let J=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return fa(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return Gr(w).length;default:if(J)return x?-1:fa(w).length;g=(""+g).toLowerCase(),J=!0}}o.byteLength=re;function se(w,g,v){let x=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(w||(w="utf8");;)switch(w){case"hex":return Xr(this,g,v);case"utf8":case"utf-8":return sn(this,g,v);case"ascii":return _n(this,g,v);case"latin1":case"binary":return mi(this,g,v);case"base64":return Ct(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pn(this,g,v);default:if(x)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),x=!0}}o.prototype._isBuffer=!0;function pe(w,g,v){let x=w[g];w[g]=w[v],w[v]=x}o.prototype.swap16=function(){let g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;vv&&(g+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(g,v,x,J,ie){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),x===void 0&&(x=g?g.length:0),J===void 0&&(J=0),ie===void 0&&(ie=this.length),v<0||x>g.length||J<0||ie>this.length)throw new RangeError("out of range index");if(J>=ie&&v>=x)return 0;if(J>=ie)return-1;if(v>=x)return 1;if(v>>>=0,x>>>=0,J>>>=0,ie>>>=0,this===g)return 0;let fe=ie-J,At=x-v,kn=Math.min(fe,At),Dn=this.slice(J,ie),qn=g.slice(v,x);for(let bn=0;bn2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,Qr(v)&&(v=J?0:w.length-1),v<0&&(v=w.length+v),v>=w.length){if(J)return-1;v=w.length-1}else if(v<0)if(J)v=0;else return-1;if(typeof g=="string"&&(g=o.from(g,x)),o.isBuffer(g))return g.length===0?-1:ke(w,g,v,x,J);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(w,g,v):Uint8Array.prototype.lastIndexOf.call(w,g,v):ke(w,[g],v,x,J);throw new TypeError("val must be string, number or Buffer")}function ke(w,g,v,x,J){let ie=1,fe=w.length,At=g.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(w.length<2||g.length<2)return-1;ie=2,fe/=2,At/=2,v/=2}function kn(qn,bn){return ie===1?qn[bn]:qn.readUInt16BE(bn*ie)}let Dn;if(J){let qn=-1;for(Dn=v;Dnfe&&(v=fe-At),Dn=v;Dn>=0;Dn--){let qn=!0;for(let bn=0;bnJ&&(x=J)):x=J;let ie=g.length;x>ie/2&&(x=ie/2);let fe;for(fe=0;fe>>0,isFinite(x)?(x=x>>>0,J===void 0&&(J="utf8")):(J=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ie=this.length-v;if((x===void 0||x>ie)&&(x=ie),g.length>0&&(x<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let fe=!1;for(;;)switch(J){case"hex":return ht(this,g,v,x);case"utf8":case"utf-8":return xt(this,g,v,x);case"ascii":case"latin1":case"binary":return B(this,g,v,x);case"base64":return he(this,g,v,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,g,v,x);default:if(fe)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),fe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(w,g,v){return g===0&&v===w.length?e.fromByteArray(w):e.fromByteArray(w.slice(g,v))}function sn(w,g,v){v=Math.min(w.length,v);let x=[],J=g;for(;J239?4:ie>223?3:ie>191?2:1;if(J+At<=v){let kn,Dn,qn,bn;switch(At){case 1:ie<128&&(fe=ie);break;case 2:kn=w[J+1],(kn&192)===128&&(bn=(ie&31)<<6|kn&63,bn>127&&(fe=bn));break;case 3:kn=w[J+1],Dn=w[J+2],(kn&192)===128&&(Dn&192)===128&&(bn=(ie&15)<<12|(kn&63)<<6|Dn&63,bn>2047&&(bn<55296||bn>57343)&&(fe=bn));break;case 4:kn=w[J+1],Dn=w[J+2],qn=w[J+3],(kn&192)===128&&(Dn&192)===128&&(qn&192)===128&&(bn=(ie&15)<<18|(kn&63)<<12|(Dn&63)<<6|qn&63,bn>65535&&bn<1114112&&(fe=bn))}}fe===null?(fe=65533,At=1):fe>65535&&(fe-=65536,x.push(fe>>>10&1023|55296),fe=56320|fe&1023),x.push(fe),J+=At}return vn(x)}let wn=4096;function vn(w){let g=w.length;if(g<=wn)return String.fromCharCode.apply(String,w);let v="",x=0;for(;xx)&&(v=x);let J="";for(let ie=g;iex&&(g=x),v<0?(v+=x,v<0&&(v=0)):v>x&&(v=x),vv)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let J=this[g],ie=1,fe=0;for(;++fe>>0,v=v>>>0,x||on(g,v,this.length);let J=this[g+--v],ie=1;for(;v>0&&(ie*=256);)J+=this[g+--v]*ie;return J},o.prototype.readUint8=o.prototype.readUInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]|this[g+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]<<8|this[g+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},o.prototype.readBigUInt64LE=Ao(function(g){g=g>>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let J=v+this[++g]*Cn(2,8)+this[++g]*Cn(2,16)+this[++g]*Cn(2,24),ie=this[++g]+this[++g]*Cn(2,8)+this[++g]*Cn(2,16)+x*Cn(2,24);return BigInt(J)+(BigInt(ie)<>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let J=v*Cn(2,24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+this[++g],ie=this[++g]*Cn(2,24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+x;return(BigInt(J)<>>0,v=v>>>0,x||on(g,v,this.length);let J=this[g],ie=1,fe=0;for(;++fe=ie&&(J-=Math.pow(2,8*v)),J},o.prototype.readIntBE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let J=v,ie=1,fe=this[g+--J];for(;J>0&&(ie*=256);)fe+=this[g+--J]*ie;return ie*=128,fe>=ie&&(fe-=Math.pow(2,8*v)),fe},o.prototype.readInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},o.prototype.readInt16LE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g]|this[g+1]<<8;return x&32768?x|4294901760:x},o.prototype.readInt16BE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g+1]|this[g]<<8;return x&32768?x|4294901760:x},o.prototype.readInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},o.prototype.readInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},o.prototype.readBigInt64LE=Ao(function(g){g=g>>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let J=this[g+4]+this[g+5]*Cn(2,8)+this[g+6]*Cn(2,16)+(x<<24);return(BigInt(J)<>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let J=(v<<24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+this[++g];return(BigInt(J)<>>0,v||on(g,4,this.length),t.read(this,g,!0,23,4)},o.prototype.readFloatBE=function(g,v){return g=g>>>0,v||on(g,4,this.length),t.read(this,g,!1,23,4)},o.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!0,52,8)},o.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!1,52,8)};function $n(w,g,v,x,J,ie){if(!o.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>J||gw.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(g,v,x,J){if(g=+g,v=v>>>0,x=x>>>0,!J){let At=Math.pow(2,8*x)-1;$n(this,g,v,x,At,0)}let ie=1,fe=0;for(this[v]=g&255;++fe>>0,x=x>>>0,!J){let At=Math.pow(2,8*x)-1;$n(this,g,v,x,At,0)}let ie=x-1,fe=1;for(this[v+ie]=g&255;--ie>=0&&(fe*=256);)this[v+ie]=g/fe&255;return v+x},o.prototype.writeUint8=o.prototype.writeUInt8=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,1,255,0),this[v]=g&255,v+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function U(w,g,v,x,J){jt(g,x,J,w,v,7);let ie=Number(g&BigInt(4294967295));w[v++]=ie,ie=ie>>8,w[v++]=ie,ie=ie>>8,w[v++]=ie,ie=ie>>8,w[v++]=ie;let fe=Number(g>>BigInt(32)&BigInt(4294967295));return w[v++]=fe,fe=fe>>8,w[v++]=fe,fe=fe>>8,w[v++]=fe,fe=fe>>8,w[v++]=fe,v}function ae(w,g,v,x,J){jt(g,x,J,w,v,7);let ie=Number(g&BigInt(4294967295));w[v+7]=ie,ie=ie>>8,w[v+6]=ie,ie=ie>>8,w[v+5]=ie,ie=ie>>8,w[v+4]=ie;let fe=Number(g>>BigInt(32)&BigInt(4294967295));return w[v+3]=fe,fe=fe>>8,w[v+2]=fe,fe=fe>>8,w[v+1]=fe,fe=fe>>8,w[v]=fe,v+8}o.prototype.writeBigUInt64LE=Ao(function(g,v=0){return U(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ao(function(g,v=0){return ae(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(g,v,x,J){if(g=+g,v=v>>>0,!J){let kn=Math.pow(2,8*x-1);$n(this,g,v,x,kn-1,-kn)}let ie=0,fe=1,At=0;for(this[v]=g&255;++ie>0)-At&255;return v+x},o.prototype.writeIntBE=function(g,v,x,J){if(g=+g,v=v>>>0,!J){let kn=Math.pow(2,8*x-1);$n(this,g,v,x,kn-1,-kn)}let ie=x-1,fe=1,At=0;for(this[v+ie]=g&255;--ie>=0&&(fe*=256);)g<0&&At===0&&this[v+ie+1]!==0&&(At=1),this[v+ie]=(g/fe>>0)-At&255;return v+x},o.prototype.writeInt8=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},o.prototype.writeInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},o.prototype.writeInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},o.prototype.writeBigInt64LE=Ao(function(g,v=0){return U(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ao(function(g,v=0){return ae(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(w,g,v,x,J,ie){if(v+x>w.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ce(w,g,v,x,J){return g=+g,v=v>>>0,J||te(w,g,v,4),t.write(w,g,v,x,23,4),v+4}o.prototype.writeFloatLE=function(g,v,x){return ce(this,g,v,!0,x)},o.prototype.writeFloatBE=function(g,v,x){return ce(this,g,v,!1,x)};function je(w,g,v,x,J){return g=+g,v=v>>>0,J||te(w,g,v,8),t.write(w,g,v,x,52,8),v+8}o.prototype.writeDoubleLE=function(g,v,x){return je(this,g,v,!0,x)},o.prototype.writeDoubleBE=function(g,v,x){return je(this,g,v,!1,x)},o.prototype.copy=function(g,v,x,J){if(!o.isBuffer(g))throw new TypeError("argument should be a Buffer");if(x||(x=0),!J&&J!==0&&(J=this.length),v>=g.length&&(v=g.length),v||(v=0),J>0&&J=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),g.length-v>>0,x=x===void 0?this.length:x>>>0,g||(g=0);let ie;if(typeof g=="number")for(ie=v;ieCn(2,32)?J=Fe(String(v)):typeof v=="bigint"&&(J=String(v),(v>Cn(BigInt(2),BigInt(32))||v<-Cn(BigInt(2),BigInt(32)))&&(J=Fe(J)),J+="n"),x+=` It must be ${g}. Received ${J}`,x},RangeError);function Fe(w){let g="",v=w.length,x=w[0]==="-"?1:0;for(;v>=x+4;v-=3)g=`_${w.slice(v-3,v)}${g}`;return`${w.slice(0,v)}${g}`}function He(w,g,v){Qe(g,"offset"),(w[g]===void 0||w[g+v]===void 0)&&Ht(g,w.length-(v+1))}function jt(w,g,v,x,J,ie){if(w>v||w3?g===0||g===BigInt(0)?At=`>= 0${fe} and < 2${fe} ** ${(ie+1)*8}${fe}`:At=`>= -(2${fe} ** ${(ie+1)*8-1}${fe}) and < 2 ** ${(ie+1)*8-1}${fe}`:At=`>= ${g}${fe} and <= ${v}${fe}`,new G.ERR_OUT_OF_RANGE("value",At,w)}He(x,J,ie)}function Qe(w,g){if(typeof w!="number")throw new G.ERR_INVALID_ARG_TYPE(g,"number",w)}function Ht(w,g,v){throw Math.floor(w)!==w?(Qe(w,v),new G.ERR_OUT_OF_RANGE(v||"offset","an integer",w)):g<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,w)}let pa=/[^+/0-9A-Za-z-_]/g;function Li(w){if(w=w.split("=")[0],w=w.trim().replace(pa,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function fa(w,g){g=g||1/0;let v,x=w.length,J=null,ie=[];for(let fe=0;fe55295&&v<57344){if(!J){if(v>56319){(g-=3)>-1&&ie.push(239,191,189);continue}else if(fe+1===x){(g-=3)>-1&&ie.push(239,191,189);continue}J=v;continue}if(v<56320){(g-=3)>-1&&ie.push(239,191,189),J=v;continue}v=(J-55296<<10|v-56320)+65536}else J&&(g-=3)>-1&&ie.push(239,191,189);if(J=null,v<128){if((g-=1)<0)break;ie.push(v)}else if(v<2048){if((g-=2)<0)break;ie.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;ie.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;ie.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return ie}function rd(w){let g=[];for(let v=0;v>8,J=v%256,ie.push(J),ie.push(x);return ie}function Gr(w){return e.toByteArray(Li(w))}function Wi(w,g,v,x){let J;for(J=0;J=g.length||J>=w.length);++J)g[J+v]=w[J];return J}function cn(w,g){return w instanceof g||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===g.name}function Qr(w){return w!==w}let kc=function(){let w="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){let x=v*16;for(let J=0;J<16;++J)g[x+J]=w[v]+w[J]}return g}();function Ao(w){return typeof BigInt=="undefined"?xc:w}function xc(){throw new Error("BigInt not supported")}return Qc}var gf,Ek,vy,gk,Qc,Ik,Yc,S,mpe,hpe,vk=ue(()=>{"use strict";m();T();h();gf={},Ek=!1;vy={},gk=!1;Qc={},Ik=!1;Yc=I6();Yc.Buffer;Yc.SlowBuffer;Yc.INSPECT_MAX_BYTES;Yc.kMaxLength;S=Yc.Buffer,mpe=Yc.INSPECT_MAX_BYTES,hpe=Yc.kMaxLength});var T=ue(()=>{"use strict";vk()});var _k,bk,Ok=ue(()=>{"use strict";m();T();h();_k="16.9.0",bk=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null})});function it(e,t){if(!!!e)throw new Error(t)}var Ni=ue(()=>{"use strict";m();T();h()});function ni(e){return typeof(e==null?void 0:e.then)=="function"}var _y=ue(()=>{"use strict";m();T();h()});function ir(e){return typeof e=="object"&&e!==null}var Lo=ue(()=>{"use strict";m();T();h()});function Gt(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var ri=ue(()=>{"use strict";m();T();h()});function tc(e,t){let n=0,r=1;for(let i of e.body.matchAll(v6)){if(typeof i.index=="number"||Gt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var v6,by=ue(()=>{"use strict";m();T();h();ri();v6=/\r\n|[\n\r]/g});function If(e){return Nd(e.source,tc(e.source,e.start))}function Nd(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} +"use strict";var shim=(()=>{var d6=Object.create;var Nf=Object.defineProperty,p6=Object.defineProperties,f6=Object.getOwnPropertyDescriptor,m6=Object.getOwnPropertyDescriptors,h6=Object.getOwnPropertyNames,eP=Object.getOwnPropertySymbols,T6=Object.getPrototypeOf,tP=Object.prototype.hasOwnProperty,y6=Object.prototype.propertyIsEnumerable;var Cn=Math.pow,Jv=(e,t,n)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))tP.call(t,n)&&Jv(e,n,t[n]);if(eP)for(var n of eP(t))y6.call(t,n)&&Jv(e,n,t[n]);return e},K=(e,t)=>p6(e,m6(t));var ue=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ef=(e,t)=>{for(var n in t)Nf(e,n,{get:t[n],enumerable:!0})},nP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of h6(t))!tP.call(e,i)&&i!==n&&Nf(e,i,{get:()=>t[i],enumerable:!(r=f6(t,i))||r.enumerable});return e};var zv=(e,t,n)=>(n=e!=null?d6(T6(e)):{},nP(t||!e||!e.__esModule?Nf(n,"default",{value:e,enumerable:!0}):n,e)),xe=e=>nP(Nf({},"__esModule",{value:!0}),e);var A=(e,t,n)=>(Jv(e,typeof t!="symbol"?t+"":t,n),n);var Tr=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{u(n.next(l))}catch(d){i(d)}},o=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);u((n=n.apply(e,t)).next())});var m=ue(()=>{"use strict"});var O={};Ef(O,{_debugEnd:()=>KP,_debugProcess:()=>qP,_events:()=>ok,_eventsCount:()=>ak,_exiting:()=>bP,_fatalExceptions:()=>BP,_getActiveHandles:()=>AP,_getActiveRequests:()=>DP,_kill:()=>FP,_linkedBinding:()=>vP,_maxListeners:()=>sk,_preload_modules:()=>nk,_rawDebug:()=>gP,_startProfilerIdleNotifier:()=>GP,_stopProfilerIdleNotifier:()=>QP,_tickCallback:()=>$P,abort:()=>HP,addListener:()=>uk,allowedNodeEnvironmentFlags:()=>CP,arch:()=>aP,argv:()=>lP,argv0:()=>tk,assert:()=>UP,binding:()=>hP,chdir:()=>NP,config:()=>OP,cpuUsage:()=>Iy,cwd:()=>yP,debugPort:()=>ek,default:()=>yk,dlopen:()=>SP,domain:()=>_P,emit:()=>fk,emitWarning:()=>mP,env:()=>cP,execArgv:()=>dP,execPath:()=>ZP,exit:()=>kP,features:()=>MP,hasUncaughtExceptionCaptureCallback:()=>jP,hrtime:()=>gy,kill:()=>PP,listeners:()=>Tk,memoryUsage:()=>LP,moduleLoadList:()=>IP,nextTick:()=>iP,off:()=>lk,on:()=>ba,once:()=>ck,openStdin:()=>xP,pid:()=>WP,platform:()=>uP,ppid:()=>XP,prependListener:()=>mk,prependOnceListener:()=>hk,reallyExit:()=>RP,release:()=>EP,removeAllListeners:()=>pk,removeListener:()=>dk,resourceUsage:()=>wP,setSourceMapsEnabled:()=>rk,setUncaughtExceptionCaptureCallback:()=>VP,stderr:()=>JP,stdin:()=>zP,stdout:()=>YP,title:()=>oP,umask:()=>TP,uptime:()=>ik,version:()=>pP,versions:()=>fP});function Xv(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function N6(){!yd||!Gc||(yd=!1,Gc.length?_a=Gc.concat(_a):Ey=-1,_a.length&&rP())}function rP(){if(!yd){var e=setTimeout(N6,0);yd=!0;for(var t=_a.length;t;){for(Gc=_a,_a=[];++Ey1)for(var n=1;n{"use strict";m();T();h();_a=[],yd=!1,Ey=-1;sP.prototype.run=function(){this.fun.apply(null,this.array)};oP="browser",aP="x64",uP="browser",cP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},lP=["/usr/bin/node"],dP=[],pP="v16.8.0",fP={},mP=function(e,t){console.warn((t?t+": ":"")+e)},hP=function(e){Xv("binding")},TP=function(e){return 0},yP=function(){return"/"},NP=function(e){},EP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};gP=ti,IP=[];_P={},bP=!1,OP={};RP=ti,FP=ti,Iy=function(){return{}},wP=Iy,LP=Iy,PP=ti,kP=ti,xP=ti,CP={};MP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},BP=ti,VP=ti;$P=ti,qP=ti,KP=ti,GP=ti,QP=ti,YP=void 0,JP=void 0,zP=void 0,HP=ti,WP=2,XP=1,ZP="/bin/usr/node",ek=9229,tk="node",nk=[],rk=ti,ec={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};ec.now===void 0&&(Hv=Date.now(),ec.timing&&ec.timing.navigationStart&&(Hv=ec.timing.navigationStart),ec.now=()=>Date.now()-Hv);Wv=1e9;gy.bigint=function(e){var t=gy(e);return typeof BigInt=="undefined"?t[0]*Wv+t[1]:BigInt(t[0]*Wv)+BigInt(t[1])};sk=10,ok={},ak=0;uk=ba,ck=ba,lk=ba,dk=ba,pk=ba,fk=ti,mk=ba,hk=ba;yk={version:pP,versions:fP,arch:aP,platform:uP,release:EP,_rawDebug:gP,moduleLoadList:IP,binding:hP,_linkedBinding:vP,_events:ok,_eventsCount:ak,_maxListeners:sk,on:ba,addListener:uk,once:ck,off:lk,removeListener:dk,removeAllListeners:pk,emit:fk,prependListener:mk,prependOnceListener:hk,listeners:Tk,domain:_P,_exiting:bP,config:OP,dlopen:SP,uptime:ik,_getActiveRequests:DP,_getActiveHandles:AP,reallyExit:RP,_kill:FP,cpuUsage:Iy,resourceUsage:wP,memoryUsage:LP,kill:PP,exit:kP,openStdin:xP,allowedNodeEnvironmentFlags:CP,assert:UP,features:MP,_fatalExceptions:BP,setUncaughtExceptionCaptureCallback:VP,hasUncaughtExceptionCaptureCallback:jP,emitWarning:mP,nextTick:iP,_tickCallback:$P,_debugProcess:qP,_debugEnd:KP,_startProfilerIdleNotifier:GP,_stopProfilerIdleNotifier:QP,stdout:YP,stdin:zP,stderr:JP,abort:HP,umask:TP,chdir:NP,cwd:yP,env:cP,title:oP,argv:lP,execArgv:dP,pid:WP,ppid:XP,execPath:ZP,debugPort:ek,hrtime:gy,argv0:tk,_preload_modules:nk,setSourceMapsEnabled:rk}});var h=ue(()=>{"use strict";Nk()});function E6(){if(Ek)return gf;Ek=!0,gf.byteLength=u,gf.toByteArray=d,gf.fromByteArray=N;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=b);var j=C===b?0:4-C%4;return[C,j]}function u(I){var b=o(I),C=b[0],j=b[1];return(C+j)*3/4-j}function l(I,b,C){return(b+C)*3/4-C}function d(I){var b,C=o(I),j=C[0],Q=C[1],re=new n(l(I,j,Q)),se=0,fe=Q>0?j-4:j,ye;for(ye=0;ye>16&255,re[se++]=b>>8&255,re[se++]=b&255;return Q===2&&(b=t[I.charCodeAt(ye)]<<2|t[I.charCodeAt(ye+1)]>>4,re[se++]=b&255),Q===1&&(b=t[I.charCodeAt(ye)]<<10|t[I.charCodeAt(ye+1)]<<4|t[I.charCodeAt(ye+2)]>>2,re[se++]=b>>8&255,re[se++]=b&255),re}function p(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function y(I,b,C){for(var j,Q=[],re=b;refe?fe:se+re));return j===1?(b=I[C-1],Q.push(e[b>>2]+e[b<<4&63]+"==")):j===2&&(b=(I[C-2]<<8)+I[C-1],Q.push(e[b>>10]+e[b>>4&63]+e[b<<2&63]+"=")),Q.join("")}return gf}function g6(){if(gk)return vy;gk=!0;return vy.read=function(e,t,n,r,i){var s,o,u=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,N=n?-1:1,I=e[t+y];for(y+=N,s=I&(1<<-p)-1,I>>=-p,p+=u;p>0;s=s*256+e[t+y],y+=N,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=N,p-=8);if(s===0)s=1-d;else{if(s===l)return o?NaN:(I?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-d}return(I?-1:1)*o*Math.pow(2,s-r)},vy.write=function(e,t,n,r,i,s){var o,u,l,d=s*8-i-1,p=(1<>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:s-1,b=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=N/l:t+=N*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(u=0,o=p):o+y>=1?(u=(t*l-1)*Math.pow(2,i),o=o+y):(u=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+I]=u&255,I+=b,u/=256,i-=8);for(o=o<0;e[n+I]=o&255,I+=b,o/=256,d-=8);e[n+I-b]|=C*128},vy}function I6(){if(Ik)return Qc;Ik=!0;let e=E6(),t=g6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Qc.Buffer=o,Qc.SlowBuffer=Q,Qc.INSPECT_MAX_BYTES=50;let r=2147483647;Qc.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 F=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(F,g),F.foo()===42}catch(F){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 s(F){if(F>r)throw new RangeError('The value "'+F+'" is invalid for option "size"');let g=new Uint8Array(F);return Object.setPrototypeOf(g,o.prototype),g}function o(F,g,v){if(typeof F=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(F)}return u(F,g,v)}o.poolSize=8192;function u(F,g,v){if(typeof F=="string")return y(F,g);if(ArrayBuffer.isView(F))return I(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(cn(F,ArrayBuffer)||F&&cn(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(cn(F,SharedArrayBuffer)||F&&cn(F.buffer,SharedArrayBuffer)))return b(F,g,v);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let x=F.valueOf&&F.valueOf();if(x!=null&&x!==F)return o.from(x,g,v);let z=C(F);if(z)return z;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return o.from(F[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}o.from=function(F,g,v){return u(F,g,v)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function d(F,g,v){return l(F),F<=0?s(F):g!==void 0?typeof v=="string"?s(F).fill(g,v):s(F).fill(g):s(F)}o.alloc=function(F,g,v){return d(F,g,v)};function p(F){return l(F),s(F<0?0:j(F)|0)}o.allocUnsafe=function(F){return p(F)},o.allocUnsafeSlow=function(F){return p(F)};function y(F,g){if((typeof g!="string"||g==="")&&(g="utf8"),!o.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let v=re(F,g)|0,x=s(v),z=x.write(F,g);return z!==v&&(x=x.slice(0,z)),x}function N(F){let g=F.length<0?0:j(F.length)|0,v=s(g);for(let x=0;x=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return F|0}function Q(F){return+F!=F&&(F=0),o.alloc(+F)}o.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==o.prototype},o.compare=function(g,v){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),cn(v,Uint8Array)&&(v=o.from(v,v.offset,v.byteLength)),!o.isBuffer(g)||!o.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let x=g.length,z=v.length;for(let ie=0,me=Math.min(x,z);iez.length?(o.isBuffer(me)||(me=o.from(me)),me.copy(z,ie)):Uint8Array.prototype.set.call(z,me,ie);else if(o.isBuffer(me))me.copy(z,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=me.length}return z};function re(F,g){if(o.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||cn(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);let v=F.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&v===0)return 0;let z=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return fa(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return Gr(F).length;default:if(z)return x?-1:fa(F).length;g=(""+g).toLowerCase(),z=!0}}o.byteLength=re;function se(F,g,v){let x=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(F||(F="utf8");;)switch(F){case"hex":return Xr(this,g,v);case"utf8":case"utf-8":return sn(this,g,v);case"ascii":return _n(this,g,v);case"latin1":case"binary":return mi(this,g,v);case"base64":return Ct(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pn(this,g,v);default:if(x)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),x=!0}}o.prototype._isBuffer=!0;function fe(F,g,v){let x=F[g];F[g]=F[v],F[v]=x}o.prototype.swap16=function(){let g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;vv&&(g+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(g,v,x,z,ie){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),x===void 0&&(x=g?g.length:0),z===void 0&&(z=0),ie===void 0&&(ie=this.length),v<0||x>g.length||z<0||ie>this.length)throw new RangeError("out of range index");if(z>=ie&&v>=x)return 0;if(z>=ie)return-1;if(v>=x)return 1;if(v>>>=0,x>>>=0,z>>>=0,ie>>>=0,this===g)return 0;let me=ie-z,At=x-v,kn=Math.min(me,At),Dn=this.slice(z,ie),Kn=g.slice(v,x);for(let bn=0;bn2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,Qr(v)&&(v=z?0:F.length-1),v<0&&(v=F.length+v),v>=F.length){if(z)return-1;v=F.length-1}else if(v<0)if(z)v=0;else return-1;if(typeof g=="string"&&(g=o.from(g,x)),o.isBuffer(g))return g.length===0?-1:ke(F,g,v,x,z);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(F,g,v):Uint8Array.prototype.lastIndexOf.call(F,g,v):ke(F,[g],v,x,z);throw new TypeError("val must be string, number or Buffer")}function ke(F,g,v,x,z){let ie=1,me=F.length,At=g.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(F.length<2||g.length<2)return-1;ie=2,me/=2,At/=2,v/=2}function kn(Kn,bn){return ie===1?Kn[bn]:Kn.readUInt16BE(bn*ie)}let Dn;if(z){let Kn=-1;for(Dn=v;Dnme&&(v=me-At),Dn=v;Dn>=0;Dn--){let Kn=!0;for(let bn=0;bnz&&(x=z)):x=z;let ie=g.length;x>ie/2&&(x=ie/2);let me;for(me=0;me>>0,isFinite(x)?(x=x>>>0,z===void 0&&(z="utf8")):(z=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ie=this.length-v;if((x===void 0||x>ie)&&(x=ie),g.length>0&&(x<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let me=!1;for(;;)switch(z){case"hex":return ht(this,g,v,x);case"utf8":case"utf-8":return xt(this,g,v,x);case"ascii":case"latin1":case"binary":return B(this,g,v,x);case"base64":return he(this,g,v,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,g,v,x);default:if(me)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),me=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(F,g,v){return g===0&&v===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(g,v))}function sn(F,g,v){v=Math.min(F.length,v);let x=[],z=g;for(;z239?4:ie>223?3:ie>191?2:1;if(z+At<=v){let kn,Dn,Kn,bn;switch(At){case 1:ie<128&&(me=ie);break;case 2:kn=F[z+1],(kn&192)===128&&(bn=(ie&31)<<6|kn&63,bn>127&&(me=bn));break;case 3:kn=F[z+1],Dn=F[z+2],(kn&192)===128&&(Dn&192)===128&&(bn=(ie&15)<<12|(kn&63)<<6|Dn&63,bn>2047&&(bn<55296||bn>57343)&&(me=bn));break;case 4:kn=F[z+1],Dn=F[z+2],Kn=F[z+3],(kn&192)===128&&(Dn&192)===128&&(Kn&192)===128&&(bn=(ie&15)<<18|(kn&63)<<12|(Dn&63)<<6|Kn&63,bn>65535&&bn<1114112&&(me=bn))}}me===null?(me=65533,At=1):me>65535&&(me-=65536,x.push(me>>>10&1023|55296),me=56320|me&1023),x.push(me),z+=At}return vn(x)}let Fn=4096;function vn(F){let g=F.length;if(g<=Fn)return String.fromCharCode.apply(String,F);let v="",x=0;for(;xx)&&(v=x);let z="";for(let ie=g;iex&&(g=x),v<0?(v+=x,v<0&&(v=0)):v>x&&(v=x),vv)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g],ie=1,me=0;for(;++me>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g+--v],ie=1;for(;v>0&&(ie*=256);)z+=this[g+--v]*ie;return z},o.prototype.readUint8=o.prototype.readUInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]|this[g+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]<<8|this[g+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},o.prototype.readBigUInt64LE=Ao(function(g){g=g>>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=v+this[++g]*Cn(2,8)+this[++g]*Cn(2,16)+this[++g]*Cn(2,24),ie=this[++g]+this[++g]*Cn(2,8)+this[++g]*Cn(2,16)+x*Cn(2,24);return BigInt(z)+(BigInt(ie)<>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=v*Cn(2,24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+this[++g],ie=this[++g]*Cn(2,24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+x;return(BigInt(z)<>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g],ie=1,me=0;for(;++me=ie&&(z-=Math.pow(2,8*v)),z},o.prototype.readIntBE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let z=v,ie=1,me=this[g+--z];for(;z>0&&(ie*=256);)me+=this[g+--z]*ie;return ie*=128,me>=ie&&(me-=Math.pow(2,8*v)),me},o.prototype.readInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},o.prototype.readInt16LE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g]|this[g+1]<<8;return x&32768?x|4294901760:x},o.prototype.readInt16BE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g+1]|this[g]<<8;return x&32768?x|4294901760:x},o.prototype.readInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},o.prototype.readInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},o.prototype.readBigInt64LE=Ao(function(g){g=g>>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=this[g+4]+this[g+5]*Cn(2,8)+this[g+6]*Cn(2,16)+(x<<24);return(BigInt(z)<>>0,Qe(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=(v<<24)+this[++g]*Cn(2,16)+this[++g]*Cn(2,8)+this[++g];return(BigInt(z)<>>0,v||on(g,4,this.length),t.read(this,g,!0,23,4)},o.prototype.readFloatBE=function(g,v){return g=g>>>0,v||on(g,4,this.length),t.read(this,g,!1,23,4)},o.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!0,52,8)},o.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!1,52,8)};function qn(F,g,v,x,z,ie){if(!o.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>z||gF.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(g,v,x,z){if(g=+g,v=v>>>0,x=x>>>0,!z){let At=Math.pow(2,8*x)-1;qn(this,g,v,x,At,0)}let ie=1,me=0;for(this[v]=g&255;++me>>0,x=x>>>0,!z){let At=Math.pow(2,8*x)-1;qn(this,g,v,x,At,0)}let ie=x-1,me=1;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)this[v+ie]=g/me&255;return v+x},o.prototype.writeUint8=o.prototype.writeUInt8=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,1,255,0),this[v]=g&255,v+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function U(F,g,v,x,z){jt(g,x,z,F,v,7);let ie=Number(g&BigInt(4294967295));F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,v}function ae(F,g,v,x,z){jt(g,x,z,F,v,7);let ie=Number(g&BigInt(4294967295));F[v+7]=ie,ie=ie>>8,F[v+6]=ie,ie=ie>>8,F[v+5]=ie,ie=ie>>8,F[v+4]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v+3]=me,me=me>>8,F[v+2]=me,me=me>>8,F[v+1]=me,me=me>>8,F[v]=me,v+8}o.prototype.writeBigUInt64LE=Ao(function(g,v=0){return U(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ao(function(g,v=0){return ae(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(g,v,x,z){if(g=+g,v=v>>>0,!z){let kn=Math.pow(2,8*x-1);qn(this,g,v,x,kn-1,-kn)}let ie=0,me=1,At=0;for(this[v]=g&255;++ie>0)-At&255;return v+x},o.prototype.writeIntBE=function(g,v,x,z){if(g=+g,v=v>>>0,!z){let kn=Math.pow(2,8*x-1);qn(this,g,v,x,kn-1,-kn)}let ie=x-1,me=1,At=0;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)g<0&&At===0&&this[v+ie+1]!==0&&(At=1),this[v+ie]=(g/me>>0)-At&255;return v+x},o.prototype.writeInt8=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},o.prototype.writeInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},o.prototype.writeInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||qn(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},o.prototype.writeBigInt64LE=Ao(function(g,v=0){return U(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ao(function(g,v=0){return ae(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(F,g,v,x,z,ie){if(v+x>F.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ce(F,g,v,x,z){return g=+g,v=v>>>0,z||te(F,g,v,4),t.write(F,g,v,x,23,4),v+4}o.prototype.writeFloatLE=function(g,v,x){return ce(this,g,v,!0,x)},o.prototype.writeFloatBE=function(g,v,x){return ce(this,g,v,!1,x)};function je(F,g,v,x,z){return g=+g,v=v>>>0,z||te(F,g,v,8),t.write(F,g,v,x,52,8),v+8}o.prototype.writeDoubleLE=function(g,v,x){return je(this,g,v,!0,x)},o.prototype.writeDoubleBE=function(g,v,x){return je(this,g,v,!1,x)},o.prototype.copy=function(g,v,x,z){if(!o.isBuffer(g))throw new TypeError("argument should be a Buffer");if(x||(x=0),!z&&z!==0&&(z=this.length),v>=g.length&&(v=g.length),v||(v=0),z>0&&z=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),g.length-v>>0,x=x===void 0?this.length:x>>>0,g||(g=0);let ie;if(typeof g=="number")for(ie=v;ieCn(2,32)?z=we(String(v)):typeof v=="bigint"&&(z=String(v),(v>Cn(BigInt(2),BigInt(32))||v<-Cn(BigInt(2),BigInt(32)))&&(z=we(z)),z+="n"),x+=` It must be ${g}. Received ${z}`,x},RangeError);function we(F){let g="",v=F.length,x=F[0]==="-"?1:0;for(;v>=x+4;v-=3)g=`_${F.slice(v-3,v)}${g}`;return`${F.slice(0,v)}${g}`}function He(F,g,v){Qe(g,"offset"),(F[g]===void 0||F[g+v]===void 0)&&Ht(g,F.length-(v+1))}function jt(F,g,v,x,z,ie){if(F>v||F3?g===0||g===BigInt(0)?At=`>= 0${me} and < 2${me} ** ${(ie+1)*8}${me}`:At=`>= -(2${me} ** ${(ie+1)*8-1}${me}) and < 2 ** ${(ie+1)*8-1}${me}`:At=`>= ${g}${me} and <= ${v}${me}`,new G.ERR_OUT_OF_RANGE("value",At,F)}He(x,z,ie)}function Qe(F,g){if(typeof F!="number")throw new G.ERR_INVALID_ARG_TYPE(g,"number",F)}function Ht(F,g,v){throw Math.floor(F)!==F?(Qe(F,v),new G.ERR_OUT_OF_RANGE(v||"offset","an integer",F)):g<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,F)}let pa=/[^+/0-9A-Za-z-_]/g;function Li(F){if(F=F.split("=")[0],F=F.trim().replace(pa,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function fa(F,g){g=g||1/0;let v,x=F.length,z=null,ie=[];for(let me=0;me55295&&v<57344){if(!z){if(v>56319){(g-=3)>-1&&ie.push(239,191,189);continue}else if(me+1===x){(g-=3)>-1&&ie.push(239,191,189);continue}z=v;continue}if(v<56320){(g-=3)>-1&&ie.push(239,191,189),z=v;continue}v=(z-55296<<10|v-56320)+65536}else z&&(g-=3)>-1&&ie.push(239,191,189);if(z=null,v<128){if((g-=1)<0)break;ie.push(v)}else if(v<2048){if((g-=2)<0)break;ie.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;ie.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;ie.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return ie}function rd(F){let g=[];for(let v=0;v>8,z=v%256,ie.push(z),ie.push(x);return ie}function Gr(F){return e.toByteArray(Li(F))}function Wi(F,g,v,x){let z;for(z=0;z=g.length||z>=F.length);++z)g[z+v]=F[z];return z}function cn(F,g){return F instanceof g||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===g.name}function Qr(F){return F!==F}let kc=function(){let F="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){let x=v*16;for(let z=0;z<16;++z)g[x+z]=F[v]+F[z]}return g}();function Ao(F){return typeof BigInt=="undefined"?xc:F}function xc(){throw new Error("BigInt not supported")}return Qc}var gf,Ek,vy,gk,Qc,Ik,Yc,S,mpe,hpe,vk=ue(()=>{"use strict";m();T();h();gf={},Ek=!1;vy={},gk=!1;Qc={},Ik=!1;Yc=I6();Yc.Buffer;Yc.SlowBuffer;Yc.INSPECT_MAX_BYTES;Yc.kMaxLength;S=Yc.Buffer,mpe=Yc.INSPECT_MAX_BYTES,hpe=Yc.kMaxLength});var T=ue(()=>{"use strict";vk()});var _k,bk,Ok=ue(()=>{"use strict";m();T();h();_k="16.9.0",bk=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null})});function it(e,t){if(!!!e)throw new Error(t)}var Ni=ue(()=>{"use strict";m();T();h()});function ni(e){return typeof(e==null?void 0:e.then)=="function"}var _y=ue(()=>{"use strict";m();T();h()});function sr(e){return typeof e=="object"&&e!==null}var Lo=ue(()=>{"use strict";m();T();h()});function Gt(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var ri=ue(()=>{"use strict";m();T();h()});function tc(e,t){let n=0,r=1;for(let i of e.body.matchAll(v6)){if(typeof i.index=="number"||Gt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var v6,by=ue(()=>{"use strict";m();T();h();ri();v6=/\r\n|[\n\r]/g});function If(e){return Nd(e.source,tc(e.source,e.start))}function Nd(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} `,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,b=[];for(let C=0;C["|",C]),["|","^".padStart(I)],["|",b[N+1]]])}return d+Sk([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function Sk(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 Zv=ue(()=>{"use strict";m();T();h();by()});function _6(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}function Dk(e){return e===void 0||e.length===0?void 0:e}function e_(e){return e.toString()}function t_(e){return e.toJSON()}var Y,st=ue(()=>{"use strict";m();T();h();Lo();by();Zv();Y=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=_6(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=Dk(Array.isArray(o)?o:o?[o]:void 0);let N=Dk((r=this.nodes)===null||r===void 0?void 0:r.map(b=>b.loc).filter(b=>b!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(b=>b.start),this.locations=l&&u?l.map(b=>tc(u,b)):N==null?void 0:N.map(b=>tc(b.source,b.start));let I=ir(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.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+=` +`)}var Zv=ue(()=>{"use strict";m();T();h();by()});function _6(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}function Dk(e){return e===void 0||e.length===0?void 0:e}function e_(e){return e.toString()}function t_(e){return e.toJSON()}var Y,ot=ue(()=>{"use strict";m();T();h();Lo();by();Zv();Y=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=_6(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=Dk(Array.isArray(o)?o:o?[o]:void 0);let N=Dk((r=this.nodes)===null||r===void 0?void 0:r.map(b=>b.loc).filter(b=>b!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(b=>b.start),this.locations=l&&u?l.map(b=>tc(u,b)):N==null?void 0:N.map(b=>tc(b.source,b.start));let I=sr(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.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+=` `+If(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+Nd(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function Xn(e,t,n){return new Y(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Oy=ue(()=>{"use strict";m();T();h();st()});function vf(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&b6.has(t)}var Jc,nc,n_,b6,Un,Po=ue(()=>{"use strict";m();T();h();Jc=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nc=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},n_={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},b6=new Set(Object.keys(n_));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Un||(Un={}))});var Je,Ed=ue(()=>{"use strict";m();T();h();(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"})(Je||(Je={}))});var R,Xt=ue(()=>{"use strict";m();T();h();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}))});function Sy(e){return e===9||e===32}function gd(e){return e>=48&&e<=57}function Ak(e){return e>=97&&e<=122||e>=65&&e<=90}function _f(e){return Ak(e)||e===95}function Dy(e){return Ak(e)||gd(e)||e===95}var Ay=ue(()=>{"use strict";m();T();h()});function Rk(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function O6(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||Sy(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&Sy(e.charCodeAt(0));return(p&&!N||s)&&(y+=` +`+Nd(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function Zn(e,t,n){return new Y(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Oy=ue(()=>{"use strict";m();T();h();ot()});function vf(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&b6.has(t)}var Jc,nc,n_,b6,Un,Po=ue(()=>{"use strict";m();T();h();Jc=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nc=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},n_={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},b6=new Set(Object.keys(n_));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Un||(Un={}))});var Je,Ed=ue(()=>{"use strict";m();T();h();(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"})(Je||(Je={}))});var R,Xt=ue(()=>{"use strict";m();T();h();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}))});function Sy(e){return e===9||e===32}function gd(e){return e>=48&&e<=57}function Ak(e){return e>=97&&e<=122||e>=65&&e<=90}function _f(e){return Ak(e)||e===95}function Dy(e){return Ak(e)||gd(e)||e===95}var Ay=ue(()=>{"use strict";m();T();h()});function Rk(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function O6(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||Sy(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&Sy(e.charCodeAt(0));return(p&&!N||s)&&(y+=` `),y+=n,(p||d)&&(y+=` -`),'"""'+y+'"""'}var bf=ue(()=>{"use strict";m();T();h();Ay()});var le,Of=ue(()=>{"use strict";m();T();h();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}))});function wy(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function Id(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Fy(e,t){return Lk(e.charCodeAt(t))&&Pk(e.charCodeAt(t+1))}function Lk(e){return e>=55296&&e<=56319}function Pk(e){return e>=56320&&e<=57343}function zc(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function vr(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new nc(t,n,r,s,o,i)}function S6(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L6(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Xn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function P6(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Oy();Po();bf();Ay();Of();Oa=class{constructor(t){let n=new nc(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{let n=S6(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}});function ne(e){return Py(e,[])}function Py(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return x6(e,t);default:return String(e)}}function x6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(C6(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Py(r,n)}else if(Array.isArray(e))return M6(e,n);return U6(e,n)}function C6(e){return typeof e.toJSON=="function"}function U6(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+B6(e)+"]":"{ "+n.map(([i,s])=>i+": "+Py(s,t)).join(", ")+" }"}function M6(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function B6(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Nn=ue(()=>{"use strict";m();T();h()});var V6,Ei,Df=ue(()=>{"use strict";m();T();h();Nn();V6=globalThis.process&&O.env.NODE_ENV==="production",Ei=V6?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=ne(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`),'"""'+y+'"""'}var bf=ue(()=>{"use strict";m();T();h();Ay()});var le,Of=ue(()=>{"use strict";m();T();h();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}))});function Fy(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function Id(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function wy(e,t){return Lk(e.charCodeAt(t))&&Pk(e.charCodeAt(t+1))}function Lk(e){return e>=55296&&e<=56319}function Pk(e){return e>=56320&&e<=57343}function zc(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function vr(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new nc(t,n,r,s,o,i)}function S6(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L6(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Zn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function P6(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Oy();Po();bf();Ay();Of();Oa=class{constructor(t){let n=new nc(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{let n=S6(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}});function ne(e){return Py(e,[])}function Py(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return x6(e,t);default:return String(e)}}function x6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(C6(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Py(r,n)}else if(Array.isArray(e))return M6(e,n);return U6(e,n)}function C6(e){return typeof e.toJSON=="function"}function U6(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+B6(e)+"]":"{ "+n.map(([i,s])=>i+": "+Py(s,t)).join(", ")+" }"}function M6(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function B6(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Nn=ue(()=>{"use strict";m();T();h()});var V6,Ei,Df=ue(()=>{"use strict";m();T();h();Nn();V6=globalThis.process&&O.env.NODE_ENV==="production",Ei=V6?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=ne(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -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}});function ky(e){return Ei(e,ko)}var ko,xy=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();ko=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||it(!1,`Body must be a string. Received: ${ne(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||it(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||it(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function ro(e,t){return new vd(e,t).parseDocument()}function Af(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(le.EOF),r}function i_(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseConstValueLiteral();return n.expectToken(le.EOF),r}function s_(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseTypeReference();return n.expectToken(le.EOF),r}function Cy(e){let t=e.value;return kk(e.kind)+(t!=null?` "${t}"`:"")}function kk(e){return wy(e)?`"${e}"`:e}var vd,_d=ue(()=>{"use strict";m();T();h();Oy();Po();Ed();Xt();Ly();xy();Of();vd=class{constructor(t,n={}){let r=ky(t)?t:new ko(t);this._lexer=new Oa(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(le.NAME);return this.node(t,{kind:R.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.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 Xn(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(le.BRACE_L))return this.node(t,{kind:R.OPERATION_DEFINITION,operation:Un.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:R.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(le.NAME);switch(t.value){case"query":return Un.QUERY;case"mutation":return Un.MUTATION;case"subscription":return Un.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(le.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:R.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(le.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:R.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:R.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:R.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 le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){let r=this._lexer.token.value;throw Xn(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:R.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(le.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:R.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.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(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:R.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);let r=this.parseNamedType();return this.node(t,{kind:R.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:R.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(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(le.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:R.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:R.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:R.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 Xn(this._lexer.source,this._lexer.token.start,`${Cy(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(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===le.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(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:R.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:R.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(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}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:R.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:R.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:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:R.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Je,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Jc(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 Xn(this._lexer.source,n.start,`Expected ${kk(t)}, found ${Cy(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Xn(this._lexer.source,n.start,`Expected "${t}", found ${Cy(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return Xn(this._lexer.source,n.start,`Unexpected ${Cy(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!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Xn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function ii(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}var rc=ue(()=>{"use strict";m();T();h()});function o_(e){return e}var xk=ue(()=>{"use strict";m();T();h()});function si(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var ic=ue(()=>{"use strict";m();T();h()});function Ss(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var Rf=ue(()=>{"use strict";m();T();h()});function io(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var a_=ue(()=>{"use strict";m();T();h()});function Sa(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-u_,s=t.charCodeAt(r);while(Uy(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}function Uy(e){return!isNaN(e)&&u_<=e&&e<=j6}var u_,j6,wf=ue(()=>{"use strict";m();T();h();u_=48,j6=57});function gi(e,t){let n=Object.create(null),r=new c_(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:Sa(s,o)})}function Ck(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();wf();c_=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Ck(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=Ck(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let b=1;b<=u;b++){let C=i[p-1]===s[b-1]?0:1,j=Math.min(y[b]+1,N[b-1]+1,y[b-1]+C);if(p>1&&b>1&&i[p-1]===s[b-2]&&i[p-2]===s[b-1]){let Q=l[(p-2)%3][b-2];j=Math.min(j,Q+1)}jn)return}let d=l[o%3][u];return d<=n?d:void 0}}});function Ii(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 My=ue(()=>{"use strict";m();T();h()});function Uk(e){return`"${e.replace($6,q6)}"`}function q6(e){return K6[e.charCodeAt(0)]}var $6,K6,Mk=ue(()=>{"use strict";m();T();h();$6=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;K6=["\\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"]});function Ds(e,t,n=n_){let r=new Map;for(let Q of Object.values(R))r.set(Q,Da(t,Q));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let Q=u===o.length,re=Q&&l.length!==0;if(Q){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let pe=0;for(let[ye,ke]of l){let ht=ye-pe;ke===null?(d.splice(ht,1),pe++):d[ht]=ke}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[pe,ye]of l)d[pe]=ye}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var b,C;vf(d)||it(!1,`Invalid AST Node: ${ne(d)}.`);let pe=Q?(b=r.get(d.kind))===null||b===void 0?void 0:b.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=pe==null?void 0:pe.call(t,d,p,y,N,I),se===oc)break;if(se===!1){if(!Q){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!Q))if(vf(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),Q)N.pop();else{var j;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(j=n[d.kind])!==null&&j!==void 0?j:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function bd(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(R)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Ni();Nn();Po();Xt();oc=Object.freeze({})});function Rt(e){return Ds(e,Q6)}function $e(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function so(e){return Qt(`{ +spurious results.`)}}return!1}});function ky(e){return Ei(e,ko)}var ko,xy=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();ko=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||it(!1,`Body must be a string. Received: ${ne(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||it(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||it(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function ro(e,t){return new vd(e,t).parseDocument()}function Af(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(le.EOF),r}function i_(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseConstValueLiteral();return n.expectToken(le.EOF),r}function s_(e,t){let n=new vd(e,t);n.expectToken(le.SOF);let r=n.parseTypeReference();return n.expectToken(le.EOF),r}function Cy(e){let t=e.value;return kk(e.kind)+(t!=null?` "${t}"`:"")}function kk(e){return Fy(e)?`"${e}"`:e}var vd,_d=ue(()=>{"use strict";m();T();h();Oy();Po();Ed();Xt();Ly();xy();Of();vd=class{constructor(t,n={}){let r=ky(t)?t:new ko(t);this._lexer=new Oa(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(le.NAME);return this.node(t,{kind:R.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.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 Zn(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(le.BRACE_L))return this.node(t,{kind:R.OPERATION_DEFINITION,operation:Un.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:R.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(le.NAME);switch(t.value){case"query":return Un.QUERY;case"mutation":return Un.MUTATION;case"subscription":return Un.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(le.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:R.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(le.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:R.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:R.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:R.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 le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){let r=this._lexer.token.value;throw Zn(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:R.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(le.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:R.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.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(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:R.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);let r=this.parseNamedType();return this.node(t,{kind:R.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:R.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(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(le.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:R.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:R.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:R.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 Zn(this._lexer.source,this._lexer.token.start,`${Cy(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(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===le.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(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:R.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:R.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(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}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:R.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:R.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:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:R.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Je,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Jc(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 Zn(this._lexer.source,n.start,`Expected ${kk(t)}, found ${Cy(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Zn(this._lexer.source,n.start,`Expected "${t}", found ${Cy(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return Zn(this._lexer.source,n.start,`Unexpected ${Cy(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!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Zn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function ii(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}var rc=ue(()=>{"use strict";m();T();h()});function o_(e){return e}var xk=ue(()=>{"use strict";m();T();h()});function si(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var ic=ue(()=>{"use strict";m();T();h()});function Ss(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var Rf=ue(()=>{"use strict";m();T();h()});function io(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var a_=ue(()=>{"use strict";m();T();h()});function Sa(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-u_,s=t.charCodeAt(r);while(Uy(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}function Uy(e){return!isNaN(e)&&u_<=e&&e<=j6}var u_,j6,Ff=ue(()=>{"use strict";m();T();h();u_=48,j6=57});function gi(e,t){let n=Object.create(null),r=new c_(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:Sa(s,o)})}function Ck(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Ff();c_=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Ck(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=Ck(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let b=1;b<=u;b++){let C=i[p-1]===s[b-1]?0:1,j=Math.min(y[b]+1,N[b-1]+1,y[b-1]+C);if(p>1&&b>1&&i[p-1]===s[b-2]&&i[p-2]===s[b-1]){let Q=l[(p-2)%3][b-2];j=Math.min(j,Q+1)}jn)return}let d=l[o%3][u];return d<=n?d:void 0}}});function Ii(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 My=ue(()=>{"use strict";m();T();h()});function Uk(e){return`"${e.replace($6,q6)}"`}function q6(e){return K6[e.charCodeAt(0)]}var $6,K6,Mk=ue(()=>{"use strict";m();T();h();$6=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;K6=["\\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"]});function Ds(e,t,n=n_){let r=new Map;for(let Q of Object.values(R))r.set(Q,Da(t,Q));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let Q=u===o.length,re=Q&&l.length!==0;if(Q){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[ye,ke]of l){let ht=ye-fe;ke===null?(d.splice(ht,1),fe++):d[ht]=ke}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,ye]of l)d[fe]=ye}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var b,C;vf(d)||it(!1,`Invalid AST Node: ${ne(d)}.`);let fe=Q?(b=r.get(d.kind))===null||b===void 0?void 0:b.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===oc)break;if(se===!1){if(!Q){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!Q))if(vf(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),Q)N.pop();else{var j;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(j=n[d.kind])!==null&&j!==void 0?j:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function bd(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(R)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Ni();Nn();Po();Xt();oc=Object.freeze({})});function Rt(e){return Ds(e,Q6)}function $e(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function so(e){return Qt(`{ `,By($e(e,` `)),` }`)}function Qt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function By(e){return Qt(" ",e.replace(/\n/g,` @@ -59,15 +59,15 @@ spurious results.`)}}return!1}});function ky(e){return Ei(e,ko)}var ko,xy=ue(()= `)+"directive @"+t+(Bk(n)?Qt(`( `,By($e(n,` `)),` -)`):Qt("(",$e(n,", "),")"))+(r?" repeatable":"")+" on "+$e(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$e(["extend schema",$e(e," "),so(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$e(["extend scalar",e,$e(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>$e(["extend type",e,Qt("implements ",$e(t," & ")),$e(n," "),so(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>$e(["extend interface",e,Qt("implements ",$e(t," & ")),$e(n," "),so(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>$e(["extend union",e,$e(t," "),Qt("= ",$e(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>$e(["extend enum",e,$e(t," "),so(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>$e(["extend input",e,$e(t," "),so(n)]," ")}}});function Wc(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map(n=>Wc(n,t));case R.OBJECT:return Ss(e.fields,n=>n.name.value,n=>Wc(n.value,t));case R.VARIABLE:return t==null?void 0:t[e.name.value]}}var d_=ue(()=>{"use strict";m();T();h();Rf();Xt()});function Mr(e){if(e!=null||it(!1,"Must provide name."),typeof e=="string"||it(!1,"Expected name to be a string."),e.length===0)throw new Y("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Ni();st();Ay()});function ac(e){return Zn(e)||ot(e)||Nt(e)||fn(e)||rn(e)||gt(e)||Pt(e)||qe(e)}function p_(e){if(!ac(e))throw new Error(`Expected ${ne(e)} to be a GraphQL type.`);return e}function Zn(e){return Ei(e,Jr)}function f_(e){if(!Zn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Scalar type.`);return e}function ot(e){return Ei(e,_r)}function Pf(e){if(!ot(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Object type.`);return e}function Nt(e){return Ei(e,ss)}function kf(e){if(!Nt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Interface type.`);return e}function fn(e){return Ei(e,os)}function m_(e){if(!fn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Union type.`);return e}function rn(e){return Ei(e,oi)}function h_(e){if(!rn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Enum type.`);return e}function gt(e){return Ei(e,as)}function T_(e){if(!gt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Input Object type.`);return e}function Pt(e){return Ei(e,Mn)}function y_(e){if(!Pt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL List type.`);return e}function qe(e){return Ei(e,pt)}function N_(e){if(!qe(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Non-Null type.`);return e}function Tr(e){return Zn(e)||rn(e)||gt(e)||Xc(e)&&Tr(e.ofType)}function E_(e){if(!Tr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL input type.`);return e}function us(e){return Zn(e)||ot(e)||Nt(e)||fn(e)||rn(e)||Xc(e)&&us(e.ofType)}function g_(e){if(!us(e))throw new Error(`Expected ${ne(e)} to be a GraphQL output type.`);return e}function Rr(e){return Zn(e)||rn(e)}function I_(e){if(!Rr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL leaf type.`);return e}function vi(e){return ot(e)||Nt(e)||fn(e)}function v_(e){if(!vi(e))throw new Error(`Expected ${ne(e)} to be a GraphQL composite type.`);return e}function zr(e){return Nt(e)||fn(e)}function __(e){if(!zr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL abstract type.`);return e}function Xc(e){return Pt(e)||qe(e)}function b_(e){if(!Xc(e))throw new Error(`Expected ${ne(e)} to be a GraphQL wrapping type.`);return e}function xf(e){return ac(e)&&!qe(e)}function Cf(e){if(!xf(e))throw new Error(`Expected ${ne(e)} to be a GraphQL nullable type.`);return e}function Zc(e){if(e)return qe(e)?e.ofType:e}function Aa(e){return Zn(e)||ot(e)||Nt(e)||fn(e)||rn(e)||gt(e)}function O_(e){if(!Aa(e))throw new Error(`Expected ${ne(e)} to be a GraphQL named type.`);return e}function Gn(e){if(e){let t=e;for(;Xc(t);)t=t.ofType;return t}}function Uf(e){return typeof e=="function"?e():e}function Mf(e){return typeof e=="function"?e():e}function jk(e){var t;let n=Uf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||it(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $k(e){let t=Mf(e.fields);return Od(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),io(t,(n,r)=>{var i;Od(n)||it(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||it(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Od(s)||it(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Mr(r),description:n.description,type:n.type,args:S_(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}})}function S_(e){return Object.entries(e).map(([t,n])=>({name:Mr(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Od(e){return ir(e)&&!Array.isArray(e)}function qk(e){return io(e,t=>({description:t.description,type:t.type,args:D_(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function D_(e){return Ss(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cs(e){return qe(e.type)&&e.defaultValue===void 0}function Y6(e){let t=Uf(e.types);return Array.isArray(t)||it(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Vy(e,t){let n=e.getValues().map(i=>i.name),r=gi(t,n);return ii("the enum value",r)}function Vk(e,t){return Od(t)||it(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Od(r)||it(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:Ff(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ii(r.extensions),astNode:r.astNode}))}function J6(e){let t=Mf(e.fields);return Od(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),io(t,(n,r)=>(!("resolve"in n)||it(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Mr(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Ra(e){return qe(e.type)&&e.defaultValue===void 0}var Mn,pt,Jr,_r,ss,os,oi,as,Zt=ue(()=>{"use strict";m();T();h();Ni();rc();xk();Nn();Df();Lo();ic();Rf();a_();sc();My();st();Xt();is();d_();Lf();Mn=class{constructor(t){ac(t)||it(!1,`Expected ${ne(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},pt=class{constructor(t){xf(t)||it(!1,`Expected ${ne(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Jr=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:o_;this.name=Mr(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:o_,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o(Wc(u,l)),this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||it(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||it(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||it(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},_r=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>$k(t),this._interfaces=()=>jk(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||it(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qk(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ss=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=$k.bind(void 0,t),this._interfaces=jk.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qk(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},os=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=Y6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};oi=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Vk(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Vk(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=si(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Y(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=ne(t);throw new Y(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Vy(this,r))}let n=this.getValue(t);if(n==null)throw new Y(`Value "${t}" does not exist in "${this.name}" enum.`+Vy(this,t));return n.value}parseLiteral(t,n){if(t.kind!==R.ENUM){let i=Rt(t);throw new Y(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Vy(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=Rt(t);throw new Y(`Value "${i}" does not exist in "${this.name}" enum.`+Vy(this,i),{nodes:t})}return r.value}toConfig(){let t=Ss(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};as=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=J6.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=io(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function el(e,t){return e===t?!0:qe(e)&&qe(t)||Pt(e)&&Pt(t)?el(e.ofType,t.ofType):!1}function oo(e,t,n){return t===n?!0:qe(n)?qe(t)?oo(e,t.ofType,n.ofType):!1:qe(t)?oo(e,t.ofType,n):Pt(n)?Pt(t)?oo(e,t.ofType,n.ofType):!1:Pt(t)?!1:zr(n)&&(Nt(t)||ot(t))&&e.isSubType(n,t)}function Sd(e,t,n){return t===n?!0:zr(t)?zr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):zr(n)?e.isSubType(n,t):!1}var Bf=ue(()=>{"use strict";m();T();h();Zt()});function ao(e){return xo.some(({name:t})=>e.name===t)}function Vf(e){if(ir(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!ir(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var Dd,Ad,jy,$y,Bn,Br,Rd,xo,Co=ue(()=>{"use strict";m();T();h();Nn();Lo();st();Xt();is();Zt();Dd=2147483647,Ad=-2147483648,jy=new Jr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Vf(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Y(`Int cannot represent non-integer value: ${ne(t)}`);if(n>Dd||nDd||eDd||tt===e.name)}var Vr,wd,Fd,Ld,Uo,Pd,kd,ai,Ui=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();Lo();My();Ed();Lf();Zt();Co();Vr=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ii(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||it(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};ir(i)&&!Array.isArray(i)||it(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=S_(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:D_(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},wd=new Vr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Je.FIELD,Je.FRAGMENT_SPREAD,Je.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Included when true."}}}),Fd=new Vr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Je.FIELD,Je.FRAGMENT_SPREAD,Je.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Skipped when true."}}}),Ld="No longer supported",Uo=new Vr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Je.FIELD_DEFINITION,Je.ARGUMENT_DEFINITION,Je.INPUT_FIELD_DEFINITION,Je.ENUM_VALUE],args:{reason:{type:Bn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Ld}}}),Pd=new Vr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Je.SCALAR],args:{url:{type:new pt(Bn),description:"The URL that specifies the behavior of this scalar."}}}),kd=new Vr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Je.INPUT_OBJECT],args:{}}),ai=Object.freeze([wd,Fd,Uo,Pd,kd])});function xd(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var qy=ue(()=>{"use strict";m();T();h()});function Hr(e,t){if(qe(t)){let n=Hr(e,t.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Pt(t)){let n=t.ofType;if(xd(e)){let r=[];for(let i of e){let s=Hr(i,n);s!=null&&r.push(s)}return{kind:R.LIST,values:r}}return Hr(e,n)}if(gt(t)){if(!ir(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Hr(e[r.name],r.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:r.name},value:i})}return{kind:R.OBJECT,fields:n}}if(Rr(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Kk.test(r)?{kind:R.INT,value:r}:{kind:R.FLOAT,value:r}}if(typeof n=="string")return rn(t)?{kind:R.ENUM,value:n}:t===Rd&&Kk.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ne(n)}.`)}Gt(!1,"Unexpected input type: "+ne(t))}var Kk,jf=ue(()=>{"use strict";m();T();h();Nn();ri();qy();Lo();Xt();Zt();Co();Kk=/^-?(?:0|[1-9][0-9]*)$/});function ui(e){return Mo.some(({name:t})=>e.name===t)}var tl,$f,qf,Mi,Kf,nl,Gf,mn,Qf,wa,Fa,La,Mo,As=ue(()=>{"use strict";m();T();h();Nn();ri();Ed();is();jf();Zt();Co();tl=new _r({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Bn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new pt(new Mn(new pt(Mi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new pt(Mi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Mi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Mi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new pt(new Mn(new pt($f))),resolve:e=>e.getDirectives()}})}),$f=new _r({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +)`):Qt("(",$e(n,", "),")"))+(r?" repeatable":"")+" on "+$e(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$e(["extend schema",$e(e," "),so(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$e(["extend scalar",e,$e(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>$e(["extend type",e,Qt("implements ",$e(t," & ")),$e(n," "),so(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>$e(["extend interface",e,Qt("implements ",$e(t," & ")),$e(n," "),so(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>$e(["extend union",e,$e(t," "),Qt("= ",$e(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>$e(["extend enum",e,$e(t," "),so(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>$e(["extend input",e,$e(t," "),so(n)]," ")}}});function Wc(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map(n=>Wc(n,t));case R.OBJECT:return Ss(e.fields,n=>n.name.value,n=>Wc(n.value,t));case R.VARIABLE:return t==null?void 0:t[e.name.value]}}var d_=ue(()=>{"use strict";m();T();h();Rf();Xt()});function Mr(e){if(e!=null||it(!1,"Must provide name."),typeof e=="string"||it(!1,"Expected name to be a string."),e.length===0)throw new Y("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Ni();ot();Ay()});function ac(e){return er(e)||at(e)||Nt(e)||fn(e)||rn(e)||gt(e)||Pt(e)||qe(e)}function p_(e){if(!ac(e))throw new Error(`Expected ${ne(e)} to be a GraphQL type.`);return e}function er(e){return Ei(e,Jr)}function f_(e){if(!er(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Scalar type.`);return e}function at(e){return Ei(e,_r)}function Pf(e){if(!at(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Object type.`);return e}function Nt(e){return Ei(e,ss)}function kf(e){if(!Nt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Interface type.`);return e}function fn(e){return Ei(e,os)}function m_(e){if(!fn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Union type.`);return e}function rn(e){return Ei(e,oi)}function h_(e){if(!rn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Enum type.`);return e}function gt(e){return Ei(e,as)}function T_(e){if(!gt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Input Object type.`);return e}function Pt(e){return Ei(e,Mn)}function y_(e){if(!Pt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL List type.`);return e}function qe(e){return Ei(e,pt)}function N_(e){if(!qe(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Non-Null type.`);return e}function yr(e){return er(e)||rn(e)||gt(e)||Xc(e)&&yr(e.ofType)}function E_(e){if(!yr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL input type.`);return e}function us(e){return er(e)||at(e)||Nt(e)||fn(e)||rn(e)||Xc(e)&&us(e.ofType)}function g_(e){if(!us(e))throw new Error(`Expected ${ne(e)} to be a GraphQL output type.`);return e}function Rr(e){return er(e)||rn(e)}function I_(e){if(!Rr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL leaf type.`);return e}function vi(e){return at(e)||Nt(e)||fn(e)}function v_(e){if(!vi(e))throw new Error(`Expected ${ne(e)} to be a GraphQL composite type.`);return e}function zr(e){return Nt(e)||fn(e)}function __(e){if(!zr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL abstract type.`);return e}function Xc(e){return Pt(e)||qe(e)}function b_(e){if(!Xc(e))throw new Error(`Expected ${ne(e)} to be a GraphQL wrapping type.`);return e}function xf(e){return ac(e)&&!qe(e)}function Cf(e){if(!xf(e))throw new Error(`Expected ${ne(e)} to be a GraphQL nullable type.`);return e}function Zc(e){if(e)return qe(e)?e.ofType:e}function Aa(e){return er(e)||at(e)||Nt(e)||fn(e)||rn(e)||gt(e)}function O_(e){if(!Aa(e))throw new Error(`Expected ${ne(e)} to be a GraphQL named type.`);return e}function Qn(e){if(e){let t=e;for(;Xc(t);)t=t.ofType;return t}}function Uf(e){return typeof e=="function"?e():e}function Mf(e){return typeof e=="function"?e():e}function jk(e){var t;let n=Uf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||it(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function $k(e){let t=Mf(e.fields);return Od(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),io(t,(n,r)=>{var i;Od(n)||it(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||it(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Od(s)||it(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Mr(r),description:n.description,type:n.type,args:S_(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}})}function S_(e){return Object.entries(e).map(([t,n])=>({name:Mr(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Od(e){return sr(e)&&!Array.isArray(e)}function qk(e){return io(e,t=>({description:t.description,type:t.type,args:D_(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function D_(e){return Ss(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cs(e){return qe(e.type)&&e.defaultValue===void 0}function Y6(e){let t=Uf(e.types);return Array.isArray(t)||it(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Vy(e,t){let n=e.getValues().map(i=>i.name),r=gi(t,n);return ii("the enum value",r)}function Vk(e,t){return Od(t)||it(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Od(r)||it(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:wf(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ii(r.extensions),astNode:r.astNode}))}function J6(e){let t=Mf(e.fields);return Od(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),io(t,(n,r)=>(!("resolve"in n)||it(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Mr(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Ra(e){return qe(e.type)&&e.defaultValue===void 0}var Mn,pt,Jr,_r,ss,os,oi,as,Zt=ue(()=>{"use strict";m();T();h();Ni();rc();xk();Nn();Df();Lo();ic();Rf();a_();sc();My();ot();Xt();is();d_();Lf();Mn=class{constructor(t){ac(t)||it(!1,`Expected ${ne(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},pt=class{constructor(t){xf(t)||it(!1,`Expected ${ne(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Jr=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:o_;this.name=Mr(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:o_,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o(Wc(u,l)),this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||it(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||it(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||it(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},_r=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>$k(t),this._interfaces=()=>jk(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||it(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qk(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ss=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=$k.bind(void 0,t),this._interfaces=jk.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:qk(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},os=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=Y6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};oi=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Vk(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Vk(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=si(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Y(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=ne(t);throw new Y(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Vy(this,r))}let n=this.getValue(t);if(n==null)throw new Y(`Value "${t}" does not exist in "${this.name}" enum.`+Vy(this,t));return n.value}parseLiteral(t,n){if(t.kind!==R.ENUM){let i=Rt(t);throw new Y(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Vy(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=Rt(t);throw new Y(`Value "${i}" does not exist in "${this.name}" enum.`+Vy(this,i),{nodes:t})}return r.value}toConfig(){let t=Ss(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};as=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=J6.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=io(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function el(e,t){return e===t?!0:qe(e)&&qe(t)||Pt(e)&&Pt(t)?el(e.ofType,t.ofType):!1}function oo(e,t,n){return t===n?!0:qe(n)?qe(t)?oo(e,t.ofType,n.ofType):!1:qe(t)?oo(e,t.ofType,n):Pt(n)?Pt(t)?oo(e,t.ofType,n.ofType):!1:Pt(t)?!1:zr(n)&&(Nt(t)||at(t))&&e.isSubType(n,t)}function Sd(e,t,n){return t===n?!0:zr(t)?zr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):zr(n)?e.isSubType(n,t):!1}var Bf=ue(()=>{"use strict";m();T();h();Zt()});function ao(e){return xo.some(({name:t})=>e.name===t)}function Vf(e){if(sr(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!sr(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var Dd,Ad,jy,$y,Bn,Br,Rd,xo,Co=ue(()=>{"use strict";m();T();h();Nn();Lo();ot();Xt();is();Zt();Dd=2147483647,Ad=-2147483648,jy=new Jr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Vf(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Y(`Int cannot represent non-integer value: ${ne(t)}`);if(n>Dd||nDd||eDd||tt===e.name)}var Vr,Fd,wd,Ld,Uo,Pd,kd,ai,Ui=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();Lo();My();Ed();Lf();Zt();Co();Vr=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ii(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||it(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};sr(i)&&!Array.isArray(i)||it(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=S_(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:D_(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},Fd=new Vr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Je.FIELD,Je.FRAGMENT_SPREAD,Je.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Included when true."}}}),wd=new Vr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Je.FIELD,Je.FRAGMENT_SPREAD,Je.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Skipped when true."}}}),Ld="No longer supported",Uo=new Vr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Je.FIELD_DEFINITION,Je.ARGUMENT_DEFINITION,Je.INPUT_FIELD_DEFINITION,Je.ENUM_VALUE],args:{reason:{type:Bn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Ld}}}),Pd=new Vr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Je.SCALAR],args:{url:{type:new pt(Bn),description:"The URL that specifies the behavior of this scalar."}}}),kd=new Vr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Je.INPUT_OBJECT],args:{}}),ai=Object.freeze([Fd,wd,Uo,Pd,kd])});function xd(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var qy=ue(()=>{"use strict";m();T();h()});function Hr(e,t){if(qe(t)){let n=Hr(e,t.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Pt(t)){let n=t.ofType;if(xd(e)){let r=[];for(let i of e){let s=Hr(i,n);s!=null&&r.push(s)}return{kind:R.LIST,values:r}}return Hr(e,n)}if(gt(t)){if(!sr(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Hr(e[r.name],r.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:r.name},value:i})}return{kind:R.OBJECT,fields:n}}if(Rr(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Kk.test(r)?{kind:R.INT,value:r}:{kind:R.FLOAT,value:r}}if(typeof n=="string")return rn(t)?{kind:R.ENUM,value:n}:t===Rd&&Kk.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ne(n)}.`)}Gt(!1,"Unexpected input type: "+ne(t))}var Kk,jf=ue(()=>{"use strict";m();T();h();Nn();ri();qy();Lo();Xt();Zt();Co();Kk=/^-?(?:0|[1-9][0-9]*)$/});function ui(e){return Mo.some(({name:t})=>e.name===t)}var tl,$f,qf,Mi,Kf,nl,Gf,mn,Qf,Fa,wa,La,Mo,As=ue(()=>{"use strict";m();T();h();Nn();ri();Ed();is();jf();Zt();Co();tl=new _r({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Bn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new pt(new Mn(new pt(Mi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new pt(Mi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Mi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Mi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new pt(new Mn(new pt($f))),resolve:e=>e.getDirectives()}})}),$f=new _r({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isRepeatable:{type:new pt(Br),resolve:e=>e.isRepeatable},locations:{type:new pt(new Mn(new pt(qf))),resolve:e=>e.locations},args:{type:new pt(new Mn(new pt(nl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),qf=new oi({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:Je.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Je.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Je.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Je.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Je.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Je.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Je.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Je.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Je.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Je.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Je.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Je.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Je.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Je.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Je.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Je.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Je.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Je.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Je.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Mi=new _r({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 pt(Qf),resolve(e){if(Zn(e))return mn.SCALAR;if(ot(e))return mn.OBJECT;if(Nt(e))return mn.INTERFACE;if(fn(e))return mn.UNION;if(rn(e))return mn.ENUM;if(gt(e))return mn.INPUT_OBJECT;if(Pt(e))return mn.LIST;if(qe(e))return mn.NON_NULL;Gt(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Bn,resolve:e=>"name"in e?e.name:void 0},description:{type:Bn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Bn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Mn(new pt(Kf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ot(e)||Nt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Mn(new pt(Mi)),resolve(e){if(ot(e)||Nt(e))return e.getInterfaces()}},possibleTypes:{type:new Mn(new pt(Mi)),resolve(e,t,n,{schema:r}){if(zr(e))return r.getPossibleTypes(e)}},enumValues:{type:new Mn(new pt(Gf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rn(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Mn(new pt(nl)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(gt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Mi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Br,resolve:e=>{if(gt(e))return e.isOneOf}}})}),Kf=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},args:{type:new pt(new Mn(new pt(nl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new pt(Mi),resolve:e=>e.type},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),nl=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},type:{type:new pt(Mi),resolve:e=>e.type},defaultValue:{type:Bn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Hr(n,t);return r?Rt(r):null}},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),Gf=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})});(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"})(mn||(mn={}));Qf=new oi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:mn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:mn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:mn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:mn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:mn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:mn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:mn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:mn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),wa={name:"__schema",type:new pt(tl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Fa={name:"__type",type:Mi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new pt(Bn),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},La={name:"__typename",type:new pt(Bn),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},Mo=Object.freeze([tl,$f,qf,Mi,Kf,nl,Gf,Qf])});function Ky(e){return Ei(e,Bi)}function rl(e){if(!Ky(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}function uo(e,t){let n=Gn(e);if(!t.has(n)){if(t.add(n),fn(n))for(let r of n.getTypes())uo(r,t);else if(ot(n)||Nt(n)){for(let r of n.getInterfaces())uo(r,t);for(let r of Object.values(n.getFields())){uo(r.type,t);for(let i of r.args)uo(i.type,t)}}else if(gt(n))for(let r of Object.values(n.getFields()))uo(r.type,t)}return t}var Bi,il=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();Lo();My();Po();Zt();Ui();As();Bi=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,ir(t)||it(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||it(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||it(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=Ii(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:ai;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),uo(s,i);this._queryType!=null&&uo(this._queryType,i),this._mutationType!=null&&uo(this._mutationType,i),this._subscriptionType!=null&&uo(this._subscriptionType,i);for(let s of this._directives)if(uc(s))for(let o of s.args)uo(o.type,i);uo(tl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||it(!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]=s,Nt(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if(ot(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Un.QUERY:return this.getQueryType();case Un.MUTATION:return this.getMutationType();case Un.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return fn(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),fn(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.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}}}});function Cd(e){if(rl(e),e.__validationErrors)return e.__validationErrors;let t=new w_(e);z6(t),H6(t),W6(t);let n=t.getErrors();return e.__validationErrors=n,n}function ol(e){let t=Cd(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isRepeatable:{type:new pt(Br),resolve:e=>e.isRepeatable},locations:{type:new pt(new Mn(new pt(qf))),resolve:e=>e.locations},args:{type:new pt(new Mn(new pt(nl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),qf=new oi({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:Je.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Je.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Je.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Je.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Je.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Je.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Je.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Je.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Je.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Je.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Je.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Je.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Je.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Je.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Je.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Je.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Je.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Je.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Je.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Mi=new _r({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 pt(Qf),resolve(e){if(er(e))return mn.SCALAR;if(at(e))return mn.OBJECT;if(Nt(e))return mn.INTERFACE;if(fn(e))return mn.UNION;if(rn(e))return mn.ENUM;if(gt(e))return mn.INPUT_OBJECT;if(Pt(e))return mn.LIST;if(qe(e))return mn.NON_NULL;Gt(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Bn,resolve:e=>"name"in e?e.name:void 0},description:{type:Bn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Bn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Mn(new pt(Kf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(at(e)||Nt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Mn(new pt(Mi)),resolve(e){if(at(e)||Nt(e))return e.getInterfaces()}},possibleTypes:{type:new Mn(new pt(Mi)),resolve(e,t,n,{schema:r}){if(zr(e))return r.getPossibleTypes(e)}},enumValues:{type:new Mn(new pt(Gf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rn(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Mn(new pt(nl)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(gt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Mi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Br,resolve:e=>{if(gt(e))return e.isOneOf}}})}),Kf=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},args:{type:new pt(new Mn(new pt(nl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new pt(Mi),resolve:e=>e.type},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),nl=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},type:{type:new pt(Mi),resolve:e=>e.type},defaultValue:{type:Bn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Hr(n,t);return r?Rt(r):null}},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),Gf=new _r({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 pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})});(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"})(mn||(mn={}));Qf=new oi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:mn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:mn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:mn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:mn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:mn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:mn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:mn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:mn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Fa={name:"__schema",type:new pt(tl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},wa={name:"__type",type:Mi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new pt(Bn),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},La={name:"__typename",type:new pt(Bn),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},Mo=Object.freeze([tl,$f,qf,Mi,Kf,nl,Gf,Qf])});function Ky(e){return Ei(e,Bi)}function rl(e){if(!Ky(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}function uo(e,t){let n=Qn(e);if(!t.has(n)){if(t.add(n),fn(n))for(let r of n.getTypes())uo(r,t);else if(at(n)||Nt(n)){for(let r of n.getInterfaces())uo(r,t);for(let r of Object.values(n.getFields())){uo(r.type,t);for(let i of r.args)uo(i.type,t)}}else if(gt(n))for(let r of Object.values(n.getFields()))uo(r.type,t)}return t}var Bi,il=ue(()=>{"use strict";m();T();h();Ni();Nn();Df();Lo();My();Po();Zt();Ui();As();Bi=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,sr(t)||it(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||it(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||it(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=Ii(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:ai;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),uo(s,i);this._queryType!=null&&uo(this._queryType,i),this._mutationType!=null&&uo(this._mutationType,i),this._subscriptionType!=null&&uo(this._subscriptionType,i);for(let s of this._directives)if(uc(s))for(let o of s.args)uo(o.type,i);uo(tl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||it(!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]=s,Nt(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if(at(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Un.QUERY:return this.getQueryType();case Un.MUTATION:return this.getMutationType();case Un.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return fn(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),fn(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.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}}}});function Cd(e){if(rl(e),e.__validationErrors)return e.__validationErrors;let t=new F_(e);z6(t),H6(t),W6(t);let n=t.getErrors();return e.__validationErrors=n,n}function ol(e){let t=Cd(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function z6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!ot(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=R_(t,Un.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!ot(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(s=R_(t,Un.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!ot(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(o)}.`,(u=R_(t,Un.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function R_(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 H6(e){for(let n of e.schema.getDirectives()){if(!uc(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n==null?void 0:n.astNode);continue}sl(e,n);for(let r of n.args)if(sl(e,r),Tr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),cs(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[F_(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function sl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function W6(e){let t=i4(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!Aa(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}ui(r)||sl(e,r),ot(r)||Nt(r)?(Gk(e,r),Qk(e,r)):fn(r)?e4(e,r):rn(r)?t4(e,r):gt(r)&&(n4(e,r),t(r))}}function Gk(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(sl(e,o),!us(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${ne(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(sl(e,u),!Tr(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${ne(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(cs(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[F_(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function Qk(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Nt(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,Yf(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Yf(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Yf(t,r));continue}n[r.name]=!0,Z6(e,t,r),X6(e,t,r)}}function X6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!oo(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${ne(l.type)} but ${t.name}.${d} is type ${ne(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(b=>b.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!el(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${ne(y.type)} but ${t.name}.${d}(${N}:) is type ${ne(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(b=>b.name===N)&&cs(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function Z6(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}.`,[...Yf(n,i),...Yf(t,n)])}function e4(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.`,Yk(t,i.name));continue}r[i.name]=!0,ot(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,Yk(t,String(i)))}}function t4(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)sl(e,r)}function n4(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 s of n){if(sl(e,s),!Tr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Ra(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[F_(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&r4(t,s,e)}}function r4(e,t,n){if(qe(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 i4(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if(qe(u.type)&>(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function Yf(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function Yk(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function F_(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Uo.name)}var w_,Jf=ue(()=>{"use strict";m();T();h();Nn();st();Po();Bf();Zt();Ui();As();il();w_=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Y(t,{nodes:r}))}getErrors(){return this._errors}}});function Qn(e,t){switch(t.kind){case R.LIST_TYPE:{let n=Qn(e,t.type);return n&&new Mn(n)}case R.NON_NULL_TYPE:{let n=Qn(e,t.type);return n&&new pt(n)}case R.NAMED_TYPE:return e.getType(t.name.value)}}var Bo=ue(()=>{"use strict";m();T();h();Xt();Zt()});function s4(e,t,n){let r=n.name.value;if(r===wa.name&&e.getQueryType()===t)return wa;if(r===Fa.name&&e.getQueryType()===t)return Fa;if(r===La.name&&vi(t))return La;if(ot(t)||Nt(t))return t.getFields()[r]}function al(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=Da(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),vf(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=Da(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}var Pa,Gy=ue(()=>{"use strict";m();T();h();Po();Xt();Hc();Zt();As();Bo();Pa=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:s4,n&&(Tr(n)&&this._inputTypeStack.push(n),vi(n)&&this._parentTypeStack.push(n),us(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 R.SELECTION_SET:{let i=Gn(this.getType());this._parentTypeStack.push(vi(i)?i:void 0);break}case R.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(us(o)?o:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case R.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(ot(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?Qn(n,i):Gn(this.getType());this._typeStack.push(us(s)?s:void 0);break}case R.VARIABLE_DEFINITION:{let i=Qn(n,t.type);this._inputTypeStack.push(Tr(i)?i:void 0);break}case R.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Tr(s)?s:void 0);break}case R.LIST:{let i=Zc(this.getInputType()),s=Pt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Tr(s)?s:void 0);break}case R.OBJECT_FIELD:{let i=Gn(this.getInputType()),s,o;gt(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(Tr(s)?s:void 0);break}case R.ENUM:{let i=Gn(this.getInputType()),s;rn(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break;default:}}}});function L_(e){return Ud(e)||Md(e)||Bd(e)}function Ud(e){return e.kind===R.OPERATION_DEFINITION||e.kind===R.FRAGMENT_DEFINITION}function P_(e){return e.kind===R.FIELD||e.kind===R.FRAGMENT_SPREAD||e.kind===R.INLINE_FRAGMENT}function Qy(e){return e.kind===R.VARIABLE||e.kind===R.INT||e.kind===R.FLOAT||e.kind===R.STRING||e.kind===R.BOOLEAN||e.kind===R.NULL||e.kind===R.ENUM||e.kind===R.LIST||e.kind===R.OBJECT}function zf(e){return Qy(e)&&(e.kind===R.LIST?e.values.some(zf):e.kind===R.OBJECT?e.fields.some(t=>zf(t.value)):e.kind!==R.VARIABLE)}function k_(e){return e.kind===R.NAMED_TYPE||e.kind===R.LIST_TYPE||e.kind===R.NON_NULL_TYPE}function Md(e){return e.kind===R.SCHEMA_DEFINITION||Rs(e)||e.kind===R.DIRECTIVE_DEFINITION}function Rs(e){return e.kind===R.SCALAR_TYPE_DEFINITION||e.kind===R.OBJECT_TYPE_DEFINITION||e.kind===R.INTERFACE_TYPE_DEFINITION||e.kind===R.UNION_TYPE_DEFINITION||e.kind===R.ENUM_TYPE_DEFINITION||e.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Bd(e){return e.kind===R.SCHEMA_EXTENSION||lc(e)}function lc(e){return e.kind===R.SCALAR_TYPE_EXTENSION||e.kind===R.OBJECT_TYPE_EXTENSION||e.kind===R.INTERFACE_TYPE_EXTENSION||e.kind===R.UNION_TYPE_EXTENSION||e.kind===R.ENUM_TYPE_EXTENSION||e.kind===R.INPUT_OBJECT_TYPE_EXTENSION}var ul=ue(()=>{"use strict";m();T();h();Xt()});function Hf(e){return{Document(t){for(let n of t.definitions)if(!Ud(n)){let r=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Y(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var x_=ue(()=>{"use strict";m();T();h();st();Xt();ul()});function Wf(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=ii("to use an inline fragment on",o4(i,n,s));o===""&&(o=ii(a4(n,s))),e.reportError(new Y(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function o4(e,t,n){if(!zr(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 u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:Nt(o)&&e.isSubType(o,u)?-1:Nt(u)&&e.isSubType(u,o)?1:Sa(o.name,u.name)}).map(o=>o.name)}function a4(e,t){if(ot(e)||Nt(e)){let n=Object.keys(e.getFields());return gi(t,n)}return[]}var C_=ue(()=>{"use strict";m();T();h();rc();wf();sc();st();Zt()});function Xf(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=Qn(e.getSchema(),n);if(r&&!vi(r)){let i=Rt(n);e.reportError(new Y(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Qn(e.getSchema(),t.typeCondition);if(n&&!vi(n)){let r=Rt(t.typeCondition);e.reportError(new Y(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var U_=ue(()=>{"use strict";m();T();h();st();is();Zt();Bo()});function Zf(e){return K(k({},M_(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=gi(s,o);e.reportError(new Y(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+ii(u),{nodes:t}))}}})}function M_(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===R.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=gi(p,l);e.reportError(new Y(`Unknown argument "${p}" on directive "@${u}".`+ii(y),{nodes:d}))}}return!1}}}var B_=ue(()=>{"use strict";m();T();h();rc();sc();st();Xt();Ui()});function Vd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===R.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new Y(`Unknown directive "@${p}".`,{nodes:s}));return}let N=u4(d);N&&!y.includes(N)&&e.reportError(new Y(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function u4(e){let t=e[e.length-1];switch("kind"in t||Gt(!1),t.kind){case R.OPERATION_DEFINITION:return c4(t.operation);case R.FIELD:return Je.FIELD;case R.FRAGMENT_SPREAD:return Je.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return Je.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return Je.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return Je.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return Je.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return Je.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return Je.OBJECT;case R.FIELD_DEFINITION:return Je.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return Je.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return Je.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return Je.ENUM;case R.ENUM_VALUE_DEFINITION:return Je.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return Je.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Gt(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?Je.INPUT_FIELD_DEFINITION:Je.ARGUMENT_DEFINITION}default:Gt(!1,"Unexpected kind: "+ne(t.kind))}}function c4(e){switch(e){case Un.QUERY:return Je.QUERY;case Un.MUTATION:return Je.MUTATION;case Un.SUBSCRIPTION:return Je.SUBSCRIPTION}}var V_=ue(()=>{"use strict";m();T();h();Nn();ri();st();Po();Ed();Xt();Ui()});function em(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new Y(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var j_=ue(()=>{"use strict";m();T();h();st()});function jd(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Rs(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&l4(N);if(I&&Jk.includes(p))return;let b=gi(p,I?Jk.concat(i):i);e.reportError(new Y(`Unknown type "${p}".`+ii(b),{nodes:s}))}}}}function l4(e){return"kind"in e&&(Md(e)||Bd(e))}var Jk,$_=ue(()=>{"use strict";m();T();h();rc();sc();st();ul();As();Co();Jk=[...xo,...Mo].map(e=>e.name)});function tm(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Y("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var q_=ue(()=>{"use strict";m();T();h();st();Xt()});function nm(e){var t,n,r;let i=e.getSchema(),s=(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(u){if(s){e.reportError(new Y("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new Y("Must provide only one schema definition.",{nodes:u})),++o}}}var K_=ue(()=>{"use strict";m();T();h();st()});function rm(e){function t(n,r=Object.create(null),i=0){if(n.kind===R.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===R.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=d4))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new Y("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var d4,G_=ue(()=>{"use strict";m();T();h();st();Xt();d4=3});function im(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new Y(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}var Q_=ue(()=>{"use strict";m();T();h();st()});function sm(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 s=i.name.value;t[s]!==!0&&e.reportError(new Y(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var Y_=ue(()=>{"use strict";m();T();h();st()});function om(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 s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new Y(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}var J_=ue(()=>{"use strict";m();T();h();st()});function am(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new Y(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}var z_=ue(()=>{"use strict";m();T();h();st()});function $d(e){switch(e.kind){case R.OBJECT:return K(k({},e),{fields:p4(e.fields)});case R.LIST:return K(k({},e),{values:e.values.map($d)});case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return e}}function p4(e){return e.map(t=>K(k({},t),{value:$d(t.value)})).sort((t,n)=>Sa(t.name.value,n.name.value))}var H_=ue(()=>{"use strict";m();T();h();wf();Xt()});function Hk(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Hk(n)).join(" and "):e}function um(e){let t=new Z_,n=new Map;return{SelectionSet(r){let i=f4(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=Hk(o);e.reportError(new Y(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function f4(e,t,n,r,i){let s=[],[o,u]=zy(e,t,r,i);if(h4(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:zk(o)===zk(u)})}function zk(e){return Rt($d(e))}function W_(e,t){return Pt(e)?Pt(t)?W_(e.ofType,t.ofType):!0:Pt(t)?!0:qe(e)?qe(t)?W_(e.ofType,t.ofType):!0:qe(t)?!0:Rr(e)||Rr(t)?e!==t:!1}function zy(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);Xk(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function X_(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=Qn(e.getSchema(),n.typeCondition);return zy(e,t,i,n.selectionSet)}function Xk(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case R.FIELD:{let o=s.name.value,u;(ot(t)||Nt(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case R.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case R.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?Qn(e.getSchema(),o):t;Xk(e,u,s.selectionSet,r,i);break}}}function y4(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 Z_,tb=ue(()=>{"use strict";m();T();h();Nn();st();Xt();is();Zt();H_();Bo();Z_=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Nn();st();Zt();Bf();Bo()});function lm(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Rs(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=E4[o.kind]:u&&(l=g4(u)),l){if(l!==i.kind){let d=I4(i.kind);e.reportError(new Y(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=gi(s,d);e.reportError(new Y(`Cannot extend type "${s}" because it is not defined.`+ii(p),{nodes:i.name}))}}}function g4(e){if(Zn(e))return R.SCALAR_TYPE_EXTENSION;if(ot(e))return R.OBJECT_TYPE_EXTENSION;if(Nt(e))return R.INTERFACE_TYPE_EXTENSION;if(fn(e))return R.UNION_TYPE_EXTENSION;if(rn(e))return R.ENUM_TYPE_EXTENSION;if(gt(e))return R.INPUT_OBJECT_TYPE_EXTENSION;Gt(!1,"Unexpected type: "+ne(e))}function I4(e){switch(e){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Gt(!1,"Unexpected kind: "+ne(e))}}var E4,rb=ue(()=>{"use strict";m();T();h();rc();Nn();ri();sc();st();Xt();ul();Zt();E4={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION}});function dm(e){return K(k({},ib(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(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&cs(s)){let o=ne(s.type);e.reportError(new Y(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function ib(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ai;for(let u of i)n[u.name]=si(u.args.filter(cs),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===R.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=si(l.filter(v4),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,b]of Object.entries(d))if(!N.has(I)){let C=ac(b.type)?ne(b.type):Rt(b.type);e.reportError(new Y(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function v4(e){return e.type.kind===R.NON_NULL_TYPE&&e.defaultValue==null}var sb=ue(()=>{"use strict";m();T();h();Nn();ic();st();Xt();is();Zt();Ui()});function pm(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(Rr(Gn(n))){if(r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var ob=ue(()=>{"use strict";m();T();h();Nn();st();Zt()});function Hy(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var ab=ue(()=>{"use strict";m();T();h()});function ka(e,t,n){return{prev:e,key:t,typename:n}}function br(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var fm=ue(()=>{"use strict";m();T();h()});function hm(e,t,n=_4){return mm(e,t,n,void 0)}function _4(e,t,n){let r="Invalid value "+ne(t);throw e.length>0&&(r+=` at "value${Hy(e)}"`),n.message=r+": "+n.message,n}function mm(e,t,n,r){if(qe(t)){if(e!=null)return mm(e,t.ofType,n,r);n(br(r),e,new Y(`Expected non-nullable type "${ne(t)}" not to be null.`));return}if(e==null)return null;if(Pt(t)){let i=t.ofType;return xd(e)?Array.from(e,(s,o)=>{let u=ka(r,o,void 0);return mm(s,i,n,u)}):[mm(e,i,n,r)]}if(gt(t)){if(!ir(e)){n(br(r),e,new Y(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(qe(o.type)){let l=ne(o.type);n(br(r),e,new Y(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=mm(u,o.type,n,ka(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=gi(o,Object.keys(t.getFields()));n(br(r),e,new Y(`Field "${o}" is not defined by type "${t.name}".`+ii(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n(br(r),e,new Y(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n(br(r).concat(u),l,new Y(`Field "${u}" must be non-null.`))}return i}if(Rr(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Y?n(br(r),e,s):n(br(r),e,new Y(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(br(r),e,new Y(`Expected type "${t.name}".`)),i}Gt(!1,"Unexpected input type: "+ne(t))}var ub=ue(()=>{"use strict";m();T();h();rc();Nn();ri();qy();Lo();fm();ab();sc();st();Zt()});function _i(e,t,n){if(e){if(e.kind===R.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&qe(t)?void 0:i}if(qe(t))return e.kind===R.NULL?void 0:_i(e,t.ofType,n);if(e.kind===R.NULL)return null;if(Pt(t)){let r=t.ofType;if(e.kind===R.LIST){let s=[];for(let o of e.values)if(Zk(o,n)){if(qe(r))return;s.push(null)}else{let u=_i(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=_i(e,r,n);return i===void 0?void 0:[i]}if(gt(t)){if(e.kind!==R.OBJECT)return;let r=Object.create(null),i=si(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||Zk(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(qe(s.type))return;continue}let u=_i(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Rr(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Gt(!1,"Unexpected input type: "+ne(t))}}function Zk(e,t){return e.kind===R.VARIABLE&&(t==null||t[e.name.value]===void 0)}var Tm=ue(()=>{"use strict";m();T();h();Nn();ri();ic();Xt();Zt()});function ym(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=b4(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Y("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function b4(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=Qn(e,s.type);if(!Tr(u)){let d=Rt(s.type);r(new Y(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!ex(n,o)){if(s.defaultValue)i[o]=_i(s.defaultValue,u);else if(qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=hm(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+ne(p);d.length>0&&(N+=` at "${o}${Hy(d)}"`),r(new Y(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function dc(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=si(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===R.NULL;if(y.kind===R.VARIABLE){let b=y.name.value;if(n==null||!ex(n,b)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:y});continue}N=n[b]==null}if(N&&qe(d))throw new Y(`Argument "${l}" of non-null type "${ne(d)}" must not be null.`,{nodes:y});let I=_i(y,d,n);if(I===void 0)throw new Y(`Argument "${l}" has invalid value ${Rt(y)}.`,{nodes:y});i[l]=I}return i}function Vo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return dc(e,i,n)}function ex(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var qd=ue(()=>{"use strict";m();T();h();Nn();ic();ab();st();Xt();is();Zt();ub();Bo();Tm()});function Kd(e,t,n,r,i){let s=new Map;return Wy(e,t,n,r,i,s,new Set),s}function nx(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&Wy(e,t,n,r,u.selectionSet,s,o);return s}function Wy(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case R.FIELD:{if(!cb(n,u))continue;let l=O4(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case R.INLINE_FRAGMENT:{if(!cb(n,u)||!tx(e,u,r))continue;Wy(e,t,n,r,u.selectionSet,s,o);break}case R.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!cb(n,u))continue;o.add(l);let d=t[l];if(!d||!tx(e,d,r))continue;Wy(e,t,n,r,d.selectionSet,s,o);break}}}function cb(e,t){let n=Vo(Fd,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=Vo(wd,t,e);return(r==null?void 0:r.if)!==!1}function tx(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Qn(e,r);return i===n?!0:zr(i)?e.isSubType(i,n):!1}function O4(e){return e.alias?e.alias.value:e.name.value}var Xy=ue(()=>{"use strict";m();T();h();Xt();Zt();Ui();Bo();qd()});function Nm(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,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===R.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=Kd(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Y(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Y(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}var lb=ue(()=>{"use strict";m();T();h();st();Xt();Xy()});function Gd(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}var Zy=ue(()=>{"use strict";m();T();h()});function Em(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=Gd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}var db=ue(()=>{"use strict";m();T();h();Zy();st()});function Qd(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Gd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}var pb=ue(()=>{"use strict";m();T();h();Zy();st()});function gm(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 Y(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Y(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var fb=ue(()=>{"use strict";m();T();h();st()});function Yd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===R.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===R.SCHEMA_DEFINITION||u.kind===R.SCHEMA_EXTENSION)l=s;else if(Rs(u)||lc(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new Y(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}var mb=ue(()=>{"use strict";m();T();h();st();Xt();ul();Ui()});function Im(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];rn(N)&&N.getValue(y)?e.reportError(new Y(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}var hb=ue(()=>{"use strict";m();T();h();st();Zt()});function vm(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(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;S4(n[u],y)?e.reportError(new Y(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function S4(e,t){return ot(e)||Nt(e)||gt(e)?e.getFields()[t]!=null:!1}var Tb=ue(()=>{"use strict";m();T();h();st();Zt()});function _m(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Y(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var yb=ue(()=>{"use strict";m();T();h();st()});function Jd(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Gt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new Y(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var Nb=ue(()=>{"use strict";m();T();h();ri();st()});function bm(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new Y(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var Eb=ue(()=>{"use strict";m();T();h();st()});function Om(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(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new Y(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new Y(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}var gb=ue(()=>{"use strict";m();T();h();st()});function Sm(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 s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new Y(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new Y(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}var Ib=ue(()=>{"use strict";m();T();h();st()});function Dm(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Gd(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new Y(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}var vb=ue(()=>{"use strict";m();T();h();Zy();st()});function Am(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=Zc(e.getParentInputType());if(!Pt(r))return cl(e,n),!1},ObjectValue(n){let r=Gn(e.getInputType());if(!gt(r))return cl(e,n),!1;let i=si(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&Ra(s)){let u=ne(s.type);e.reportError(new Y(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&D4(e,n,r,i,t)},ObjectField(n){let r=Gn(e.getParentInputType());if(!e.getInputType()&>(r)){let s=gi(n.name.value,Object.keys(r.getFields()));e.reportError(new Y(`Field "${n.name.value}" is not defined by type "${r.name}".`+ii(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();qe(r)&&e.reportError(new Y(`Expected value of type "${ne(r)}", found ${Rt(n)}.`,{nodes:n}))},EnumValue:n=>cl(e,n),IntValue:n=>cl(e,n),FloatValue:n=>cl(e,n),StringValue:n=>cl(e,n),BooleanValue:n=>cl(e,n)}}function cl(e,t){let n=e.getInputType();if(!n)return;let r=Gn(n);if(!Rr(r)){let i=ne(n);e.reportError(new Y(`Expected value of type "${i}", found ${Rt(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=ne(n);e.reportError(new Y(`Expected value of type "${s}", found ${Rt(t)}.`,{nodes:t}))}}catch(i){let s=ne(n);i instanceof Y?e.reportError(i):e.reportError(new Y(`Expected value of type "${s}", found ${Rt(t)}; `+i.message,{nodes:t,originalError:i}))}}function D4(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new Y(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===R.NULL,p=(l==null?void 0:l.kind)===R.VARIABLE;if(d){e.reportError(new Y(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==R.NON_NULL_TYPE&&e.reportError(new Y(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}var _b=ue(()=>{"use strict";m();T();h();rc();Nn();ic();sc();st();Xt();is();Zt()});function Rm(e){return{VariableDefinition(t){let n=Qn(e.getSchema(),t.type);if(n!==void 0&&!Tr(n)){let r=t.variable.name.value,i=Rt(t.type);e.reportError(new Y(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var bb=ue(()=>{"use strict";m();T();h();st();is();Zt();Bo()});function wm(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:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=Qn(d,l.type);if(p&&!A4(d,p,l.defaultValue,s,o)){let y=ne(p),N=ne(s);e.reportError(new Y(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function A4(e,t,n,r,i){if(qe(r)&&!qe(t)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return oo(e,t,u)}return oo(e,t,r)}var Ob=ue(()=>{"use strict";m();T();h();Nn();st();Xt();Zt();Bf();Bo()});var eN,Fm,rx,Sb=ue(()=>{"use strict";m();T();h();x_();C_();U_();B_();V_();j_();$_();q_();K_();G_();Q_();Y_();J_();z_();tb();nb();rb();sb();ob();lb();db();pb();fb();mb();hb();Tb();yb();Nb();Eb();gb();Ib();vb();_b();bb();Ob();eN=Object.freeze([rm]),Fm=Object.freeze([Hf,bm,tm,Nm,jd,Xf,Rm,pm,Wf,_m,em,om,cm,im,Dm,sm,am,Vd,Yd,Zf,Qd,Am,dm,wm,um,Jd,...eN]),rx=Object.freeze([nm,Om,Sm,Im,vm,Em,gm,jd,Vd,Yd,lm,M_,Qd,Jd,ib])});var tN,nN,ll,Db=ue(()=>{"use strict";m();T();h();Xt();Hc();Gy();tN=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===R.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 s of i.selections)s.kind===R.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.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],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},nN=class extends tN{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ll=class extends tN{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 Pa(this._schema);Ds(t,al(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,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()}}});function Lm(e,t,n=Fm,r,i=new Pa(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||it(!1,"Must provide document."),ol(e);let u=Object.freeze({}),l=[],d=new ll(e,t,i,y=>{if(l.length>=o)throw l.push(new Y("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=bd(n.map(y=>y(d)));try{Ds(t,al(i,p))}catch(y){if(y!==u)throw y}return l}function ix(e,t,n=rx){let r=[],i=new nN(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return Ds(e,bd(s)),r}function sx(e){let t=ix(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}function z6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!at(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=R_(t,Un.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!at(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(s=R_(t,Un.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!at(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(o)}.`,(u=R_(t,Un.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function R_(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 H6(e){for(let n of e.schema.getDirectives()){if(!uc(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n==null?void 0:n.astNode);continue}sl(e,n);for(let r of n.args)if(sl(e,r),yr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),cs(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[w_(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function sl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function W6(e){let t=i4(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!Aa(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}ui(r)||sl(e,r),at(r)||Nt(r)?(Gk(e,r),Qk(e,r)):fn(r)?e4(e,r):rn(r)?t4(e,r):gt(r)&&(n4(e,r),t(r))}}function Gk(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(sl(e,o),!us(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${ne(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(sl(e,u),!yr(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${ne(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(cs(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[w_(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function Qk(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Nt(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,Yf(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Yf(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Yf(t,r));continue}n[r.name]=!0,Z6(e,t,r),X6(e,t,r)}}function X6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!oo(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${ne(l.type)} but ${t.name}.${d} is type ${ne(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(b=>b.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!el(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${ne(y.type)} but ${t.name}.${d}(${N}:) is type ${ne(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(b=>b.name===N)&&cs(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function Z6(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}.`,[...Yf(n,i),...Yf(t,n)])}function e4(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.`,Yk(t,i.name));continue}r[i.name]=!0,at(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,Yk(t,String(i)))}}function t4(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)sl(e,r)}function n4(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 s of n){if(sl(e,s),!yr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Ra(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[w_(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&r4(t,s,e)}}function r4(e,t,n){if(qe(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 i4(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if(qe(u.type)&>(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function Yf(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function Yk(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function w_(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Uo.name)}var F_,Jf=ue(()=>{"use strict";m();T();h();Nn();ot();Po();Bf();Zt();Ui();As();il();F_=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Y(t,{nodes:r}))}getErrors(){return this._errors}}});function Yn(e,t){switch(t.kind){case R.LIST_TYPE:{let n=Yn(e,t.type);return n&&new Mn(n)}case R.NON_NULL_TYPE:{let n=Yn(e,t.type);return n&&new pt(n)}case R.NAMED_TYPE:return e.getType(t.name.value)}}var Bo=ue(()=>{"use strict";m();T();h();Xt();Zt()});function s4(e,t,n){let r=n.name.value;if(r===Fa.name&&e.getQueryType()===t)return Fa;if(r===wa.name&&e.getQueryType()===t)return wa;if(r===La.name&&vi(t))return La;if(at(t)||Nt(t))return t.getFields()[r]}function al(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=Da(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),vf(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=Da(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}var Pa,Gy=ue(()=>{"use strict";m();T();h();Po();Xt();Hc();Zt();As();Bo();Pa=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:s4,n&&(yr(n)&&this._inputTypeStack.push(n),vi(n)&&this._parentTypeStack.push(n),us(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 R.SELECTION_SET:{let i=Qn(this.getType());this._parentTypeStack.push(vi(i)?i:void 0);break}case R.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(us(o)?o:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case R.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(at(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?Yn(n,i):Qn(this.getType());this._typeStack.push(us(s)?s:void 0);break}case R.VARIABLE_DEFINITION:{let i=Yn(n,t.type);this._inputTypeStack.push(yr(i)?i:void 0);break}case R.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(yr(s)?s:void 0);break}case R.LIST:{let i=Zc(this.getInputType()),s=Pt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(yr(s)?s:void 0);break}case R.OBJECT_FIELD:{let i=Qn(this.getInputType()),s,o;gt(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(yr(s)?s:void 0);break}case R.ENUM:{let i=Qn(this.getInputType()),s;rn(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break;default:}}}});function L_(e){return Ud(e)||Md(e)||Bd(e)}function Ud(e){return e.kind===R.OPERATION_DEFINITION||e.kind===R.FRAGMENT_DEFINITION}function P_(e){return e.kind===R.FIELD||e.kind===R.FRAGMENT_SPREAD||e.kind===R.INLINE_FRAGMENT}function Qy(e){return e.kind===R.VARIABLE||e.kind===R.INT||e.kind===R.FLOAT||e.kind===R.STRING||e.kind===R.BOOLEAN||e.kind===R.NULL||e.kind===R.ENUM||e.kind===R.LIST||e.kind===R.OBJECT}function zf(e){return Qy(e)&&(e.kind===R.LIST?e.values.some(zf):e.kind===R.OBJECT?e.fields.some(t=>zf(t.value)):e.kind!==R.VARIABLE)}function k_(e){return e.kind===R.NAMED_TYPE||e.kind===R.LIST_TYPE||e.kind===R.NON_NULL_TYPE}function Md(e){return e.kind===R.SCHEMA_DEFINITION||Rs(e)||e.kind===R.DIRECTIVE_DEFINITION}function Rs(e){return e.kind===R.SCALAR_TYPE_DEFINITION||e.kind===R.OBJECT_TYPE_DEFINITION||e.kind===R.INTERFACE_TYPE_DEFINITION||e.kind===R.UNION_TYPE_DEFINITION||e.kind===R.ENUM_TYPE_DEFINITION||e.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Bd(e){return e.kind===R.SCHEMA_EXTENSION||lc(e)}function lc(e){return e.kind===R.SCALAR_TYPE_EXTENSION||e.kind===R.OBJECT_TYPE_EXTENSION||e.kind===R.INTERFACE_TYPE_EXTENSION||e.kind===R.UNION_TYPE_EXTENSION||e.kind===R.ENUM_TYPE_EXTENSION||e.kind===R.INPUT_OBJECT_TYPE_EXTENSION}var ul=ue(()=>{"use strict";m();T();h();Xt()});function Hf(e){return{Document(t){for(let n of t.definitions)if(!Ud(n)){let r=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Y(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var x_=ue(()=>{"use strict";m();T();h();ot();Xt();ul()});function Wf(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=ii("to use an inline fragment on",o4(i,n,s));o===""&&(o=ii(a4(n,s))),e.reportError(new Y(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function o4(e,t,n){if(!zr(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 u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:Nt(o)&&e.isSubType(o,u)?-1:Nt(u)&&e.isSubType(u,o)?1:Sa(o.name,u.name)}).map(o=>o.name)}function a4(e,t){if(at(e)||Nt(e)){let n=Object.keys(e.getFields());return gi(t,n)}return[]}var C_=ue(()=>{"use strict";m();T();h();rc();Ff();sc();ot();Zt()});function Xf(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=Yn(e.getSchema(),n);if(r&&!vi(r)){let i=Rt(n);e.reportError(new Y(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Yn(e.getSchema(),t.typeCondition);if(n&&!vi(n)){let r=Rt(t.typeCondition);e.reportError(new Y(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var U_=ue(()=>{"use strict";m();T();h();ot();is();Zt();Bo()});function Zf(e){return K(k({},M_(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=gi(s,o);e.reportError(new Y(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+ii(u),{nodes:t}))}}})}function M_(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===R.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=gi(p,l);e.reportError(new Y(`Unknown argument "${p}" on directive "@${u}".`+ii(y),{nodes:d}))}}return!1}}}var B_=ue(()=>{"use strict";m();T();h();rc();sc();ot();Xt();Ui()});function Vd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===R.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new Y(`Unknown directive "@${p}".`,{nodes:s}));return}let N=u4(d);N&&!y.includes(N)&&e.reportError(new Y(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function u4(e){let t=e[e.length-1];switch("kind"in t||Gt(!1),t.kind){case R.OPERATION_DEFINITION:return c4(t.operation);case R.FIELD:return Je.FIELD;case R.FRAGMENT_SPREAD:return Je.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return Je.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return Je.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return Je.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return Je.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return Je.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return Je.OBJECT;case R.FIELD_DEFINITION:return Je.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return Je.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return Je.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return Je.ENUM;case R.ENUM_VALUE_DEFINITION:return Je.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return Je.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Gt(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?Je.INPUT_FIELD_DEFINITION:Je.ARGUMENT_DEFINITION}default:Gt(!1,"Unexpected kind: "+ne(t.kind))}}function c4(e){switch(e){case Un.QUERY:return Je.QUERY;case Un.MUTATION:return Je.MUTATION;case Un.SUBSCRIPTION:return Je.SUBSCRIPTION}}var V_=ue(()=>{"use strict";m();T();h();Nn();ri();ot();Po();Ed();Xt();Ui()});function em(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new Y(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var j_=ue(()=>{"use strict";m();T();h();ot()});function jd(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Rs(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&l4(N);if(I&&Jk.includes(p))return;let b=gi(p,I?Jk.concat(i):i);e.reportError(new Y(`Unknown type "${p}".`+ii(b),{nodes:s}))}}}}function l4(e){return"kind"in e&&(Md(e)||Bd(e))}var Jk,$_=ue(()=>{"use strict";m();T();h();rc();sc();ot();ul();As();Co();Jk=[...xo,...Mo].map(e=>e.name)});function tm(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Y("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var q_=ue(()=>{"use strict";m();T();h();ot();Xt()});function nm(e){var t,n,r;let i=e.getSchema(),s=(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(u){if(s){e.reportError(new Y("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new Y("Must provide only one schema definition.",{nodes:u})),++o}}}var K_=ue(()=>{"use strict";m();T();h();ot()});function rm(e){function t(n,r=Object.create(null),i=0){if(n.kind===R.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===R.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=d4))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new Y("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var d4,G_=ue(()=>{"use strict";m();T();h();ot();Xt();d4=3});function im(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new Y(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}var Q_=ue(()=>{"use strict";m();T();h();ot()});function sm(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 s=i.name.value;t[s]!==!0&&e.reportError(new Y(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var Y_=ue(()=>{"use strict";m();T();h();ot()});function om(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 s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new Y(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}var J_=ue(()=>{"use strict";m();T();h();ot()});function am(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new Y(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}var z_=ue(()=>{"use strict";m();T();h();ot()});function $d(e){switch(e.kind){case R.OBJECT:return K(k({},e),{fields:p4(e.fields)});case R.LIST:return K(k({},e),{values:e.values.map($d)});case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return e}}function p4(e){return e.map(t=>K(k({},t),{value:$d(t.value)})).sort((t,n)=>Sa(t.name.value,n.name.value))}var H_=ue(()=>{"use strict";m();T();h();Ff();Xt()});function Hk(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Hk(n)).join(" and "):e}function um(e){let t=new Z_,n=new Map;return{SelectionSet(r){let i=f4(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=Hk(o);e.reportError(new Y(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function f4(e,t,n,r,i){let s=[],[o,u]=zy(e,t,r,i);if(h4(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:zk(o)===zk(u)})}function zk(e){return Rt($d(e))}function W_(e,t){return Pt(e)?Pt(t)?W_(e.ofType,t.ofType):!0:Pt(t)?!0:qe(e)?qe(t)?W_(e.ofType,t.ofType):!0:qe(t)?!0:Rr(e)||Rr(t)?e!==t:!1}function zy(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);Xk(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function X_(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=Yn(e.getSchema(),n.typeCondition);return zy(e,t,i,n.selectionSet)}function Xk(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case R.FIELD:{let o=s.name.value,u;(at(t)||Nt(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case R.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case R.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?Yn(e.getSchema(),o):t;Xk(e,u,s.selectionSet,r,i);break}}}function y4(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 Z_,tb=ue(()=>{"use strict";m();T();h();Nn();ot();Xt();is();Zt();H_();Bo();Z_=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Nn();ot();Zt();Bf();Bo()});function lm(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Rs(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=E4[o.kind]:u&&(l=g4(u)),l){if(l!==i.kind){let d=I4(i.kind);e.reportError(new Y(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=gi(s,d);e.reportError(new Y(`Cannot extend type "${s}" because it is not defined.`+ii(p),{nodes:i.name}))}}}function g4(e){if(er(e))return R.SCALAR_TYPE_EXTENSION;if(at(e))return R.OBJECT_TYPE_EXTENSION;if(Nt(e))return R.INTERFACE_TYPE_EXTENSION;if(fn(e))return R.UNION_TYPE_EXTENSION;if(rn(e))return R.ENUM_TYPE_EXTENSION;if(gt(e))return R.INPUT_OBJECT_TYPE_EXTENSION;Gt(!1,"Unexpected type: "+ne(e))}function I4(e){switch(e){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Gt(!1,"Unexpected kind: "+ne(e))}}var E4,rb=ue(()=>{"use strict";m();T();h();rc();Nn();ri();sc();ot();Xt();ul();Zt();E4={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION}});function dm(e){return K(k({},ib(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(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&cs(s)){let o=ne(s.type);e.reportError(new Y(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function ib(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ai;for(let u of i)n[u.name]=si(u.args.filter(cs),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===R.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=si(l.filter(v4),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,b]of Object.entries(d))if(!N.has(I)){let C=ac(b.type)?ne(b.type):Rt(b.type);e.reportError(new Y(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function v4(e){return e.type.kind===R.NON_NULL_TYPE&&e.defaultValue==null}var sb=ue(()=>{"use strict";m();T();h();Nn();ic();ot();Xt();is();Zt();Ui()});function pm(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(Rr(Qn(n))){if(r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var ob=ue(()=>{"use strict";m();T();h();Nn();ot();Zt()});function Hy(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var ab=ue(()=>{"use strict";m();T();h()});function ka(e,t,n){return{prev:e,key:t,typename:n}}function br(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var fm=ue(()=>{"use strict";m();T();h()});function hm(e,t,n=_4){return mm(e,t,n,void 0)}function _4(e,t,n){let r="Invalid value "+ne(t);throw e.length>0&&(r+=` at "value${Hy(e)}"`),n.message=r+": "+n.message,n}function mm(e,t,n,r){if(qe(t)){if(e!=null)return mm(e,t.ofType,n,r);n(br(r),e,new Y(`Expected non-nullable type "${ne(t)}" not to be null.`));return}if(e==null)return null;if(Pt(t)){let i=t.ofType;return xd(e)?Array.from(e,(s,o)=>{let u=ka(r,o,void 0);return mm(s,i,n,u)}):[mm(e,i,n,r)]}if(gt(t)){if(!sr(e)){n(br(r),e,new Y(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(qe(o.type)){let l=ne(o.type);n(br(r),e,new Y(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=mm(u,o.type,n,ka(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=gi(o,Object.keys(t.getFields()));n(br(r),e,new Y(`Field "${o}" is not defined by type "${t.name}".`+ii(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n(br(r),e,new Y(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n(br(r).concat(u),l,new Y(`Field "${u}" must be non-null.`))}return i}if(Rr(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Y?n(br(r),e,s):n(br(r),e,new Y(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(br(r),e,new Y(`Expected type "${t.name}".`)),i}Gt(!1,"Unexpected input type: "+ne(t))}var ub=ue(()=>{"use strict";m();T();h();rc();Nn();ri();qy();Lo();fm();ab();sc();ot();Zt()});function _i(e,t,n){if(e){if(e.kind===R.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&qe(t)?void 0:i}if(qe(t))return e.kind===R.NULL?void 0:_i(e,t.ofType,n);if(e.kind===R.NULL)return null;if(Pt(t)){let r=t.ofType;if(e.kind===R.LIST){let s=[];for(let o of e.values)if(Zk(o,n)){if(qe(r))return;s.push(null)}else{let u=_i(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=_i(e,r,n);return i===void 0?void 0:[i]}if(gt(t)){if(e.kind!==R.OBJECT)return;let r=Object.create(null),i=si(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||Zk(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(qe(s.type))return;continue}let u=_i(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Rr(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Gt(!1,"Unexpected input type: "+ne(t))}}function Zk(e,t){return e.kind===R.VARIABLE&&(t==null||t[e.name.value]===void 0)}var Tm=ue(()=>{"use strict";m();T();h();Nn();ri();ic();Xt();Zt()});function ym(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=b4(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Y("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function b4(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=Yn(e,s.type);if(!yr(u)){let d=Rt(s.type);r(new Y(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!ex(n,o)){if(s.defaultValue)i[o]=_i(s.defaultValue,u);else if(qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=hm(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+ne(p);d.length>0&&(N+=` at "${o}${Hy(d)}"`),r(new Y(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function dc(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=si(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===R.NULL;if(y.kind===R.VARIABLE){let b=y.name.value;if(n==null||!ex(n,b)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:y});continue}N=n[b]==null}if(N&&qe(d))throw new Y(`Argument "${l}" of non-null type "${ne(d)}" must not be null.`,{nodes:y});let I=_i(y,d,n);if(I===void 0)throw new Y(`Argument "${l}" has invalid value ${Rt(y)}.`,{nodes:y});i[l]=I}return i}function Vo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return dc(e,i,n)}function ex(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var qd=ue(()=>{"use strict";m();T();h();Nn();ic();ab();ot();Xt();is();Zt();ub();Bo();Tm()});function Kd(e,t,n,r,i){let s=new Map;return Wy(e,t,n,r,i,s,new Set),s}function nx(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&Wy(e,t,n,r,u.selectionSet,s,o);return s}function Wy(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case R.FIELD:{if(!cb(n,u))continue;let l=O4(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case R.INLINE_FRAGMENT:{if(!cb(n,u)||!tx(e,u,r))continue;Wy(e,t,n,r,u.selectionSet,s,o);break}case R.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!cb(n,u))continue;o.add(l);let d=t[l];if(!d||!tx(e,d,r))continue;Wy(e,t,n,r,d.selectionSet,s,o);break}}}function cb(e,t){let n=Vo(wd,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=Vo(Fd,t,e);return(r==null?void 0:r.if)!==!1}function tx(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Yn(e,r);return i===n?!0:zr(i)?e.isSubType(i,n):!1}function O4(e){return e.alias?e.alias.value:e.name.value}var Xy=ue(()=>{"use strict";m();T();h();Xt();Zt();Ui();Bo();qd()});function Nm(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,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===R.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=Kd(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Y(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Y(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}var lb=ue(()=>{"use strict";m();T();h();ot();Xt();Xy()});function Gd(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}var Zy=ue(()=>{"use strict";m();T();h()});function Em(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=Gd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}var db=ue(()=>{"use strict";m();T();h();Zy();ot()});function Qd(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Gd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}var pb=ue(()=>{"use strict";m();T();h();Zy();ot()});function gm(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 Y(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Y(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var fb=ue(()=>{"use strict";m();T();h();ot()});function Yd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===R.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===R.SCHEMA_DEFINITION||u.kind===R.SCHEMA_EXTENSION)l=s;else if(Rs(u)||lc(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new Y(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}var mb=ue(()=>{"use strict";m();T();h();ot();Xt();ul();Ui()});function Im(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];rn(N)&&N.getValue(y)?e.reportError(new Y(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}var hb=ue(()=>{"use strict";m();T();h();ot();Zt()});function vm(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(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;S4(n[u],y)?e.reportError(new Y(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function S4(e,t){return at(e)||Nt(e)||gt(e)?e.getFields()[t]!=null:!1}var Tb=ue(()=>{"use strict";m();T();h();ot();Zt()});function _m(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Y(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var yb=ue(()=>{"use strict";m();T();h();ot()});function Jd(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Gt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new Y(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var Nb=ue(()=>{"use strict";m();T();h();ri();ot()});function bm(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new Y(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var Eb=ue(()=>{"use strict";m();T();h();ot()});function Om(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(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new Y(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new Y(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}var gb=ue(()=>{"use strict";m();T();h();ot()});function Sm(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 s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new Y(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new Y(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}var Ib=ue(()=>{"use strict";m();T();h();ot()});function Dm(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Gd(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new Y(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}var vb=ue(()=>{"use strict";m();T();h();Zy();ot()});function Am(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=Zc(e.getParentInputType());if(!Pt(r))return cl(e,n),!1},ObjectValue(n){let r=Qn(e.getInputType());if(!gt(r))return cl(e,n),!1;let i=si(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&Ra(s)){let u=ne(s.type);e.reportError(new Y(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&D4(e,n,r,i,t)},ObjectField(n){let r=Qn(e.getParentInputType());if(!e.getInputType()&>(r)){let s=gi(n.name.value,Object.keys(r.getFields()));e.reportError(new Y(`Field "${n.name.value}" is not defined by type "${r.name}".`+ii(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();qe(r)&&e.reportError(new Y(`Expected value of type "${ne(r)}", found ${Rt(n)}.`,{nodes:n}))},EnumValue:n=>cl(e,n),IntValue:n=>cl(e,n),FloatValue:n=>cl(e,n),StringValue:n=>cl(e,n),BooleanValue:n=>cl(e,n)}}function cl(e,t){let n=e.getInputType();if(!n)return;let r=Qn(n);if(!Rr(r)){let i=ne(n);e.reportError(new Y(`Expected value of type "${i}", found ${Rt(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=ne(n);e.reportError(new Y(`Expected value of type "${s}", found ${Rt(t)}.`,{nodes:t}))}}catch(i){let s=ne(n);i instanceof Y?e.reportError(i):e.reportError(new Y(`Expected value of type "${s}", found ${Rt(t)}; `+i.message,{nodes:t,originalError:i}))}}function D4(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new Y(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===R.NULL,p=(l==null?void 0:l.kind)===R.VARIABLE;if(d){e.reportError(new Y(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==R.NON_NULL_TYPE&&e.reportError(new Y(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}var _b=ue(()=>{"use strict";m();T();h();rc();Nn();ic();sc();ot();Xt();is();Zt()});function Rm(e){return{VariableDefinition(t){let n=Yn(e.getSchema(),t.type);if(n!==void 0&&!yr(n)){let r=t.variable.name.value,i=Rt(t.type);e.reportError(new Y(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var bb=ue(()=>{"use strict";m();T();h();ot();is();Zt();Bo()});function Fm(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:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=Yn(d,l.type);if(p&&!A4(d,p,l.defaultValue,s,o)){let y=ne(p),N=ne(s);e.reportError(new Y(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function A4(e,t,n,r,i){if(qe(r)&&!qe(t)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return oo(e,t,u)}return oo(e,t,r)}var Ob=ue(()=>{"use strict";m();T();h();Nn();ot();Xt();Zt();Bf();Bo()});var eN,wm,rx,Sb=ue(()=>{"use strict";m();T();h();x_();C_();U_();B_();V_();j_();$_();q_();K_();G_();Q_();Y_();J_();z_();tb();nb();rb();sb();ob();lb();db();pb();fb();mb();hb();Tb();yb();Nb();Eb();gb();Ib();vb();_b();bb();Ob();eN=Object.freeze([rm]),wm=Object.freeze([Hf,bm,tm,Nm,jd,Xf,Rm,pm,Wf,_m,em,om,cm,im,Dm,sm,am,Vd,Yd,Zf,Qd,Am,dm,Fm,um,Jd,...eN]),rx=Object.freeze([nm,Om,Sm,Im,vm,Em,gm,jd,Vd,Yd,lm,M_,Qd,Jd,ib])});var tN,nN,ll,Db=ue(()=>{"use strict";m();T();h();Xt();Hc();Gy();tN=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===R.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 s of i.selections)s.kind===R.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.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],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},nN=class extends tN{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ll=class extends tN{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 Pa(this._schema);Ds(t,al(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,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()}}});function Lm(e,t,n=wm,r,i=new Pa(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||it(!1,"Must provide document."),ol(e);let u=Object.freeze({}),l=[],d=new ll(e,t,i,y=>{if(l.length>=o)throw l.push(new Y("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=bd(n.map(y=>y(d)));try{Ds(t,al(i,p))}catch(y){if(y!==u)throw y}return l}function ix(e,t,n=rx){let r=[],i=new nN(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return Ds(e,bd(s)),r}function sx(e){let t=ix(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function ox(e,t){let n=ix(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}var Pm=ue(()=>{"use strict";m();T();h();Ni();st();Hc();Jf();Gy();Sb();Db()});function ax(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}var ux=ue(()=>{"use strict";m();T();h()});function Ab(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 cx=ue(()=>{"use strict";m();T();h()});function lx(e,t,n){let r=n;for(let i of e)r=ni(r)?r.then(s=>t(s,i)):t(r,i);return r}var dx=ue(()=>{"use strict";m();T();h();_y()});function px(e){return e instanceof Error?e:new Rb(e)}var Rb,fx=ue(()=>{"use strict";m();T();h();Nn();Rb=class extends Error{constructor(t){super("Unexpected error value: "+ne(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function jo(e,t,n){var r;let i=px(e);return R4(i)?i:new Y(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function R4(e){return Array.isArray(e.path)}var rN=ue(()=>{"use strict";m();T();h();fx();st()});function pc(e){arguments.length<2||it(!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;Fb(t,n,r);let s=Lb(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=F4(s,o,i);return ni(u)?u.then(l=>iN(l,s.errors),l=>(s.errors.push(l),iN(null,s.errors))):iN(u,s.errors)}catch(o){return s.errors.push(o),iN(null,s.errors)}}function Cm(e){let t=pc(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function iN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Fb(e,t,n){t||it(!1,"Must provide document."),ol(e),n==null||ir(n)||it(!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 Lb(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let j of i.definitions)switch(j.kind){case R.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Y("Must provide operation name if query contains multiple operations.")];N=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(N=j);break;case R.FRAGMENT_DEFINITION:I[j.name.value]=j;break;default:}if(!N)return l!=null?[new Y(`Unknown operation named "${l}".`)]:[new Y("Must provide an operation.")];let b=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=ym(r,b,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:xm,typeResolver:p!=null?p:aN,subscribeFieldResolver:y!=null?y:xm,errors:[]}}function F4(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Y(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=Kd(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case Un.QUERY:return sN(e,r,n,s,i);case Un.MUTATION:return L4(e,r,n,s,i);case Un.SUBSCRIPTION:return sN(e,r,n,s,i)}}function L4(e,t,n,r,i){return lx(i.entries(),(s,[o,u])=>{let l=ka(r,o,t.name),d=Tx(e,t,n,u,l);return d===void 0?s:ni(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function sN(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=ka(r,u,t.name),p=Tx(e,t,n,l,d);p!==void 0&&(s[u]=p,ni(p)&&(o=!0))}}catch(u){if(o)return Ab(s).finally(()=>{throw u});throw u}return o?Ab(s):s}function Tx(e,t,n,r,i){var s;let o=kb(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=Pb(e,o,r,t,i);try{let p=dc(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return ni(N)?I=N.then(b=>km(e,u,r,d,i,b)):I=km(e,u,r,d,i,N),ni(I)?I.then(void 0,b=>{let C=jo(b,r,br(i));return oN(C,u,e)}):I}catch(p){let y=jo(p,r,br(i));return oN(y,u,e)}}function Pb(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 oN(e,t,n){if(qe(t))throw e;return n.errors.push(e),null}function km(e,t,n,r,i,s){if(s instanceof Error)throw s;if(qe(t)){let o=km(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(Pt(t))return P4(e,t,n,r,i,s);if(Rr(t))return k4(t,s);if(zr(t))return x4(e,t,n,r,i,s);if(ot(t))return wb(e,t,n,r,i,s);Gt(!1,"Cannot complete value of unexpected output type: "+ne(t))}function P4(e,t,n,r,i,s){if(!xd(s))throw new Y(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=ka(i,p,void 0);try{let N;return ni(d)?N=d.then(I=>km(e,o,n,r,y,I)):N=km(e,o,n,r,y,d),ni(N)?(u=!0,N.then(void 0,I=>{let b=jo(I,n,br(y));return oN(b,o,e)})):N}catch(N){let I=jo(N,n,br(y));return oN(I,o,e)}});return u?Promise.all(l):l}function k4(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${ne(e)}.serialize(${ne(t)})\` to return non-nullable value, returned: ${ne(n)}`);return n}function x4(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return ni(d)?d.then(p=>wb(e,mx(p,e,t,n,r,s),n,r,i,s)):wb(e,mx(d,e,t,n,r,s),n,r,i,s)}function mx(e,t,n,r,i,s){if(e==null)throw new Y(`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(ot(e))throw new Y("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 Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ne(s)}, received "${ne(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Y(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ot(o))throw new Y(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Y(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function wb(e,t,n,r,i,s){let o=w4(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if(ni(u))return u.then(l=>{if(!l)throw hx(t,s,n);return sN(e,t,s,i,o)});if(!u)throw hx(t,s,n)}return sN(e,t,s,i,o)}function hx(e,t,n){return new Y(`Expected value of type "${e.name}" but got: ${ne(t)}.`,{nodes:n})}function kb(e,t,n){let r=n.name.value;return r===wa.name&&e.getQueryType()===t?wa:r===Fa.name&&e.getQueryType()===t?Fa:r===La.name?La:t.getFields()[r]}var w4,aN,xm,Um=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();qy();Lo();_y();ux();fm();cx();dx();st();rN();Po();Xt();Zt();As();Jf();Xy();qd();w4=ax((e,t,n)=>nx(e.schema,e.fragments,e.variableValues,t,n));aN=function(e,t,n,r){if(ir(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;ut(Ex(e)))}function Nx(e){let t=Ex(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ex(e){arguments.length<2||it(!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:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=Cd(t);if(d.length>0)return{errors:d};let p;try{p=ro(n)}catch(N){return{errors:[N]}}let y=Lm(t,p);return y.length>0?{errors:y}:pc({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}var gx=ue(()=>{"use strict";m();T();h();Ni();_y();_d();Jf();Pm();Um()});var Ix=ue(()=>{"use strict";m();T();h();il();Zt();Ui();Co();As();Jf();Lf()});var vx=ue(()=>{"use strict";m();T();h();xy();by();Zv();Xt();Of();Ly();_d();is();Hc();Po();ul();Ed()});function xb(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var _x=ue(()=>{"use strict";m();T();h()});function bx(e,t){let n=e[Symbol.asyncIterator]();function r(s){return hr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return hr(this,null,function*(){return r(yield n.next())})},return(){return hr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return hr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}var Ox=ue(()=>{"use strict";m();T();h()});function Cb(t){return hr(this,arguments,function*(e){arguments.length<2||it(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield uN(e);return xb(n)?bx(n,i=>pc(K(k({},e),{rootValue:i}))):n})}function C4(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 uN(...e){return hr(this,null,function*(){let t=C4(e),{schema:n,document:r,variableValues:i}=t;Fb(n,r,i);let s=Lb(t);if(!("schema"in s))return{errors:s};try{let o=yield U4(s);if(!xb(o))throw new Error(`Subscription field must return Async Iterable. Received: ${ne(o)}.`);return o}catch(o){if(o instanceof Y)return{errors:[o]};throw o}})}function U4(e){return hr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new Y("Schema is not configured to execute subscription operation.",{nodes:r});let u=Kd(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=kb(t,o,d[0]);if(!p){let b=d[0].name.value;throw new Y(`The subscription field "${b}" is not defined.`,{nodes:d})}let y=ka(void 0,l,o.name),N=Pb(e,p,d,o,y);try{var I;let b=dc(p,d[0],i),C=e.contextValue,Q=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,b,C,N);if(Q instanceof Error)throw Q;return Q}catch(b){throw jo(b,d,br(y))}})}var Sx=ue(()=>{"use strict";m();T();h();Ni();Nn();_x();fm();st();rN();Xy();Um();Ox();qd()});var Dx=ue(()=>{"use strict";m();T();h();fm();Um();Sx();qd()});function Ub(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||Gt(!1),e.reportError(new Y(`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 Y(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||Gt(!1),e.reportError(new Y(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Gn(e.getParentInputType());if(gt(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Y(`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=Gn(e.getInputType());i!=null||Gt(!1),e.reportError(new Y(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var Ax=ue(()=>{"use strict";m();T();h();ri();st();Zt()});function Mb(e){return{Field(t){let n=Gn(e.getType());n&&ui(n)&&e.reportError(new Y(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var Rx=ue(()=>{"use strict";m();T();h();st();Zt();As()});var wx=ue(()=>{"use strict";m();T();h();Pm();Db();Sb();x_();C_();U_();B_();V_();j_();$_();q_();Q_();Y_();J_();z_();tb();nb();sb();ob();lb();pb();mb();yb();Nb();Eb();vb();_b();bb();Ob();G_();K_();gb();Ib();hb();Tb();db();fb();rb();Ax();Rx()});var Fx=ue(()=>{"use strict";m();T();h();st();Oy();rN()});function Mm(e){let t=k({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":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` +`))}var Pm=ue(()=>{"use strict";m();T();h();Ni();ot();Hc();Jf();Gy();Sb();Db()});function ax(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}var ux=ue(()=>{"use strict";m();T();h()});function Ab(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 cx=ue(()=>{"use strict";m();T();h()});function lx(e,t,n){let r=n;for(let i of e)r=ni(r)?r.then(s=>t(s,i)):t(r,i);return r}var dx=ue(()=>{"use strict";m();T();h();_y()});function px(e){return e instanceof Error?e:new Rb(e)}var Rb,fx=ue(()=>{"use strict";m();T();h();Nn();Rb=class extends Error{constructor(t){super("Unexpected error value: "+ne(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function jo(e,t,n){var r;let i=px(e);return R4(i)?i:new Y(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function R4(e){return Array.isArray(e.path)}var rN=ue(()=>{"use strict";m();T();h();fx();ot()});function pc(e){arguments.length<2||it(!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;wb(t,n,r);let s=Lb(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=w4(s,o,i);return ni(u)?u.then(l=>iN(l,s.errors),l=>(s.errors.push(l),iN(null,s.errors))):iN(u,s.errors)}catch(o){return s.errors.push(o),iN(null,s.errors)}}function Cm(e){let t=pc(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function iN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function wb(e,t,n){t||it(!1,"Must provide document."),ol(e),n==null||sr(n)||it(!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 Lb(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let j of i.definitions)switch(j.kind){case R.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Y("Must provide operation name if query contains multiple operations.")];N=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(N=j);break;case R.FRAGMENT_DEFINITION:I[j.name.value]=j;break;default:}if(!N)return l!=null?[new Y(`Unknown operation named "${l}".`)]:[new Y("Must provide an operation.")];let b=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=ym(r,b,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:xm,typeResolver:p!=null?p:aN,subscribeFieldResolver:y!=null?y:xm,errors:[]}}function w4(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Y(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=Kd(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case Un.QUERY:return sN(e,r,n,s,i);case Un.MUTATION:return L4(e,r,n,s,i);case Un.SUBSCRIPTION:return sN(e,r,n,s,i)}}function L4(e,t,n,r,i){return lx(i.entries(),(s,[o,u])=>{let l=ka(r,o,t.name),d=Tx(e,t,n,u,l);return d===void 0?s:ni(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function sN(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=ka(r,u,t.name),p=Tx(e,t,n,l,d);p!==void 0&&(s[u]=p,ni(p)&&(o=!0))}}catch(u){if(o)return Ab(s).finally(()=>{throw u});throw u}return o?Ab(s):s}function Tx(e,t,n,r,i){var s;let o=kb(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=Pb(e,o,r,t,i);try{let p=dc(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return ni(N)?I=N.then(b=>km(e,u,r,d,i,b)):I=km(e,u,r,d,i,N),ni(I)?I.then(void 0,b=>{let C=jo(b,r,br(i));return oN(C,u,e)}):I}catch(p){let y=jo(p,r,br(i));return oN(y,u,e)}}function Pb(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 oN(e,t,n){if(qe(t))throw e;return n.errors.push(e),null}function km(e,t,n,r,i,s){if(s instanceof Error)throw s;if(qe(t)){let o=km(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(Pt(t))return P4(e,t,n,r,i,s);if(Rr(t))return k4(t,s);if(zr(t))return x4(e,t,n,r,i,s);if(at(t))return Fb(e,t,n,r,i,s);Gt(!1,"Cannot complete value of unexpected output type: "+ne(t))}function P4(e,t,n,r,i,s){if(!xd(s))throw new Y(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=ka(i,p,void 0);try{let N;return ni(d)?N=d.then(I=>km(e,o,n,r,y,I)):N=km(e,o,n,r,y,d),ni(N)?(u=!0,N.then(void 0,I=>{let b=jo(I,n,br(y));return oN(b,o,e)})):N}catch(N){let I=jo(N,n,br(y));return oN(I,o,e)}});return u?Promise.all(l):l}function k4(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${ne(e)}.serialize(${ne(t)})\` to return non-nullable value, returned: ${ne(n)}`);return n}function x4(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return ni(d)?d.then(p=>Fb(e,mx(p,e,t,n,r,s),n,r,i,s)):Fb(e,mx(d,e,t,n,r,s),n,r,i,s)}function mx(e,t,n,r,i,s){if(e==null)throw new Y(`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(at(e))throw new Y("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 Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ne(s)}, received "${ne(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Y(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!at(o))throw new Y(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Y(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function Fb(e,t,n,r,i,s){let o=F4(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if(ni(u))return u.then(l=>{if(!l)throw hx(t,s,n);return sN(e,t,s,i,o)});if(!u)throw hx(t,s,n)}return sN(e,t,s,i,o)}function hx(e,t,n){return new Y(`Expected value of type "${e.name}" but got: ${ne(t)}.`,{nodes:n})}function kb(e,t,n){let r=n.name.value;return r===Fa.name&&e.getQueryType()===t?Fa:r===wa.name&&e.getQueryType()===t?wa:r===La.name?La:t.getFields()[r]}var F4,aN,xm,Um=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();qy();Lo();_y();ux();fm();cx();dx();ot();rN();Po();Xt();Zt();As();Jf();Xy();qd();F4=ax((e,t,n)=>nx(e.schema,e.fragments,e.variableValues,t,n));aN=function(e,t,n,r){if(sr(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;ut(Ex(e)))}function Nx(e){let t=Ex(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ex(e){arguments.length<2||it(!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:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=Cd(t);if(d.length>0)return{errors:d};let p;try{p=ro(n)}catch(N){return{errors:[N]}}let y=Lm(t,p);return y.length>0?{errors:y}:pc({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}var gx=ue(()=>{"use strict";m();T();h();Ni();_y();_d();Jf();Pm();Um()});var Ix=ue(()=>{"use strict";m();T();h();il();Zt();Ui();Co();As();Jf();Lf()});var vx=ue(()=>{"use strict";m();T();h();xy();by();Zv();Xt();Of();Ly();_d();is();Hc();Po();ul();Ed()});function xb(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var _x=ue(()=>{"use strict";m();T();h()});function bx(e,t){let n=e[Symbol.asyncIterator]();function r(s){return Tr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return Tr(this,null,function*(){return r(yield n.next())})},return(){return Tr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return Tr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}var Ox=ue(()=>{"use strict";m();T();h()});function Cb(t){return Tr(this,arguments,function*(e){arguments.length<2||it(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield uN(e);return xb(n)?bx(n,i=>pc(K(k({},e),{rootValue:i}))):n})}function C4(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 uN(...e){return Tr(this,null,function*(){let t=C4(e),{schema:n,document:r,variableValues:i}=t;wb(n,r,i);let s=Lb(t);if(!("schema"in s))return{errors:s};try{let o=yield U4(s);if(!xb(o))throw new Error(`Subscription field must return Async Iterable. Received: ${ne(o)}.`);return o}catch(o){if(o instanceof Y)return{errors:[o]};throw o}})}function U4(e){return Tr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new Y("Schema is not configured to execute subscription operation.",{nodes:r});let u=Kd(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=kb(t,o,d[0]);if(!p){let b=d[0].name.value;throw new Y(`The subscription field "${b}" is not defined.`,{nodes:d})}let y=ka(void 0,l,o.name),N=Pb(e,p,d,o,y);try{var I;let b=dc(p,d[0],i),C=e.contextValue,Q=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,b,C,N);if(Q instanceof Error)throw Q;return Q}catch(b){throw jo(b,d,br(y))}})}var Sx=ue(()=>{"use strict";m();T();h();Ni();Nn();_x();fm();ot();rN();Xy();Um();Ox();qd()});var Dx=ue(()=>{"use strict";m();T();h();fm();Um();Sx();qd()});function Ub(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||Gt(!1),e.reportError(new Y(`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 Y(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||Gt(!1),e.reportError(new Y(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Qn(e.getParentInputType());if(gt(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Y(`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=Qn(e.getInputType());i!=null||Gt(!1),e.reportError(new Y(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var Ax=ue(()=>{"use strict";m();T();h();ri();ot();Zt()});function Mb(e){return{Field(t){let n=Qn(e.getType());n&&ui(n)&&e.reportError(new Y(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var Rx=ue(()=>{"use strict";m();T();h();ot();Zt();As()});var Fx=ue(()=>{"use strict";m();T();h();Pm();Db();Sb();x_();C_();U_();B_();V_();j_();$_();q_();Q_();Y_();J_();z_();tb();nb();sb();ob();lb();pb();mb();yb();Nb();Eb();vb();_b();bb();Ob();G_();K_();gb();Ib();hb();Tb();db();fb();rb();Ax();Rx()});var wx=ue(()=>{"use strict";m();T();h();ot();Oy();rN()});function Mm(e){let t=k({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":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${s} @@ -173,24 +173,24 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}var Bb=ue(()=>{"use strict";m();T();h()});function Vb(e,t){let n=null;for(let i of e.definitions)if(i.kind===R.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 Lx=ue(()=>{"use strict";m();T();h();Xt()});function jb(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new Y("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 Y("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new Y("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Y("Can only have query, mutation and subscription operations.",{nodes:t})}var Px=ue(()=>{"use strict";m();T();h();st()});function $b(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=ro(Mm(n)),i=Cm({schema:e,document:r});return!i.errors&&i.data||Gt(!1),i.data}var kx=ue(()=>{"use strict";m();T();h();ri();_d();Um();Bb()});function qb(e,t){ir(e)&&ir(e.__schema)||it(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);let n=e.__schema,r=Ss(n.types,B=>B.name,B=>N(B));for(let B of[...xo,...Mo])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new Bi({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===mn.LIST){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");return new Mn(l(he))}if(B.kind===mn.NON_NULL){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");let rt=l(he);return new pt(Cf(rt))}return d(B)}function d(B){let he=B.name;if(!he)throw new Error(`Unknown type reference: ${ne(B)}.`);let rt=r[he];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${he}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return Pf(d(B))}function y(B){return kf(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case mn.SCALAR:return I(B);case mn.OBJECT:return C(B);case mn.INTERFACE:return j(B);case mn.UNION:return Q(B);case mn.ENUM:return re(B);case mn.INPUT_OBJECT:return se(B)}let he=ne(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${he}.`)}function I(B){return new Jr({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function b(B){if(B.interfaces===null&&B.kind===mn.INTERFACE)return[];if(!B.interfaces){let he=ne(B);throw new Error(`Introspection result missing interfaces: ${he}.`)}return B.interfaces.map(y)}function C(B){return new _r({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>pe(B)})}function j(B){return new ss({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>pe(B)})}function Q(B){if(!B.possibleTypes){let he=ne(B);throw new Error(`Introspection result missing possibleTypes: ${he}.`)}return new os({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let he=ne(B);throw new Error(`Introspection result missing enumValues: ${he}.`)}return new oi({name:B.name,description:B.description,values:Ss(B.enumValues,he=>he.name,he=>({description:he.description,deprecationReason:he.deprecationReason}))})}function se(B){if(!B.inputFields){let he=ne(B);throw new Error(`Introspection result missing inputFields: ${he}.`)}return new as({name:B.name,description:B.description,fields:()=>ke(B.inputFields),isOneOf:B.isOneOf})}function pe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${ne(B)}.`);return Ss(B.fields,he=>he.name,ye)}function ye(B){let he=l(B.type);if(!us(he)){let rt=ne(he);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=ne(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:he,args:ke(B.args)}}function ke(B){return Ss(B,he=>he.name,ht)}function ht(B){let he=l(B.type);if(!Tr(he)){let Ct=ne(he);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?_i(Af(B.defaultValue),he):void 0;return{description:B.description,type:he,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let he=ne(B);throw new Error(`Introspection result missing directive args: ${he}.`)}if(!B.locations){let he=ne(B);throw new Error(`Introspection result missing directive locations: ${he}.`)}return new Vr({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:ke(B.args)})}}var xx=ue(()=>{"use strict";m();T();h();Ni();Nn();Lo();Rf();_d();Zt();Ui();As();Co();il();Tm()});function Kb(e,t,n){rl(e),t!=null&&t.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&ox(t,e);let r=e.toConfig(),i=Gb(r,t,n);return r===i?e:new Bi(i)}function Gb(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===R.SCHEMA_DEFINITION)p=U;else if(U.kind===R.SCHEMA_EXTENSION)y.push(U);else if(Rs(U))u.push(U);else if(lc(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===R.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=Cx[ae])!==null&&I!==void 0?I:$n(U)}let b=k(k({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&rt([p])),rt(y));return K(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},b),{types:Object.values(N),directives:[...e.directives.map(Q),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return Pt(U)?new Mn(C(U.ofType)):qe(U)?new pt(C(U.ofType)):j(U)}function j(U){return N[U.name]}function Q(U){let ae=U.toConfig();return new Vr(K(k({},ae),{args:io(ae.args,he)}))}function re(U){if(ui(U)||ao(U))return U;if(Zn(U))return ye(U);if(ot(U))return ke(U);if(Nt(U))return ht(U);if(fn(U))return xt(U);if(rn(U))return pe(U);if(gt(U))return se(U);Gt(!1,"Unexpected type: "+ne(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new as(K(k({},te),{fields:()=>k(k({},io(te.fields,je=>K(k({},je),{type:C(je.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function pe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new oi(K(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ye(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],je=te.specifiedByURL;for(let ee of ce){var G;je=(G=Ux(ee))!==null&&G!==void 0?G:je}return new Jr(K(k({},te),{specifiedByURL:je,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ke(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new _r(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},io(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new ss(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},io(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new os(K(k({},te),{types:()=>[...U.getTypes().map(j),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return K(k({},U),{type:C(U.type),args:U.args&&io(U.args,he)})}function he(U){return K(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let je=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let G of je)ae[G.operation]=Ct(G.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=Cx[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function sn(U){return U.kind===R.LIST_TYPE?new Mn(sn(U.type)):U.kind===R.NON_NULL_TYPE?new pt(sn(U.type)):Ct(U)}function wn(U){var ae;return new Vr({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={type:sn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:cN(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let je of ae){var ce;let G=sn(je.type);te[je.name.value]={type:G,description:(ce=je.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(je.defaultValue,G),deprecationReason:cN(je),astNode:je}}return te}function mi(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;let Fe=sn(ee.type);ae[ee.name.value]={type:Fe,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(ee.defaultValue,Fe),deprecationReason:cN(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.values)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:cN(ee),astNode:ee}}}return ae}function Pn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case R.OBJECT_TYPE_DEFINITION:{var je;let Qe=[U,...ce];return new _r({name:te,description:(je=U.description)===null||je===void 0?void 0:je.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case R.INTERFACE_TYPE_DEFINITION:{var G;let Qe=[U,...ce];return new ss({name:te,description:(G=U.description)===null||G===void 0?void 0:G.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case R.ENUM_TYPE_DEFINITION:{var ee;let Qe=[U,...ce];return new oi({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Qe),astNode:U,extensionASTNodes:ce})}case R.UNION_TYPE_DEFINITION:{var Fe;let Qe=[U,...ce];return new os({name:te,description:(Fe=U.description)===null||Fe===void 0?void 0:Fe.value,types:()=>on(Qe),astNode:U,extensionASTNodes:ce})}case R.SCALAR_TYPE_DEFINITION:{var He;return new Jr({name:te,description:(He=U.description)===null||He===void 0?void 0:He.value,specifiedByURL:Ux(U),astNode:U,extensionASTNodes:ce})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var jt;let Qe=[U,...ce];return new as({name:te,description:(jt=U.description)===null||jt===void 0?void 0:jt.value,fields:()=>mi(Qe),astNode:U,extensionASTNodes:ce,isOneOf:M4(U)})}}}}function cN(e){let t=Vo(Uo,e);return t==null?void 0:t.reason}function Ux(e){let t=Vo(Pd,e);return t==null?void 0:t.url}function M4(e){return!!Vo(kd,e)}var Cx,Qb=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();ic();a_();Xt();ul();Zt();Ui();As();Co();il();Pm();qd();Tm();Cx=si([...xo,...Mo],e=>e.name)});function lN(e,t){e!=null&&e.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&sx(e);let r=Gb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ai.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Bi(K(k({},r),{directives:i}))}function Yb(e,t){let n=ro(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return lN(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var Mx=ue(()=>{"use strict";m();T();h();Ni();Xt();_d();Ui();il();Pm();Qb()});function Bm(e){let t=e.toConfig(),n=Ss(Jb(t.types),N=>N.name,y);return new Bi(K(k({},t),{types:Object.values(n),directives:Jb(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return Pt(N)?new Mn(r(N.ofType)):qe(N)?new pt(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Vr(K(k({},I),{locations:Bx(I.locations,b=>b),args:u(I.args)}))}function u(N){return dN(N,I=>K(k({},I),{type:r(I.type)}))}function l(N){return dN(N,I=>K(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return dN(N,I=>K(k({},I),{type:r(I.type)}))}function p(N){return Jb(N).map(i)}function y(N){if(Zn(N)||ui(N))return N;if(ot(N)){let I=N.toConfig();return new _r(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(Nt(N)){let I=N.toConfig();return new ss(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(fn(N)){let I=N.toConfig();return new os(K(k({},I),{types:()=>p(I.types)}))}if(rn(N)){let I=N.toConfig();return new oi(K(k({},I),{values:dN(I.values,b=>b)}))}if(gt(N)){let I=N.toConfig();return new as(K(k({},I),{fields:()=>d(I.fields)}))}Gt(!1,"Unexpected type: "+ne(N))}}function dN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(Sa))n[r]=t(e[r]);return n}function Jb(e){return Bx(e,t=>t.name)}function Bx(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return Sa(i,s)})}var Vx=ue(()=>{"use strict";m();T();h();Nn();ri();Rf();wf();Zt();Ui();As();il()});function zd(e){return jx(e,t=>!cc(t),B4)}function Hb(e){return jx(e,cc,ui)}function B4(e){return!ao(e)&&!ui(e)}function jx(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[V4(e),...r.map(s=>J4(s)),...i.map(s=>pN(s))].filter(Boolean).join(` + `}var Bb=ue(()=>{"use strict";m();T();h()});function Vb(e,t){let n=null;for(let i of e.definitions)if(i.kind===R.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 Lx=ue(()=>{"use strict";m();T();h();Xt()});function jb(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new Y("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 Y("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new Y("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Y("Can only have query, mutation and subscription operations.",{nodes:t})}var Px=ue(()=>{"use strict";m();T();h();ot()});function $b(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=ro(Mm(n)),i=Cm({schema:e,document:r});return!i.errors&&i.data||Gt(!1),i.data}var kx=ue(()=>{"use strict";m();T();h();ri();_d();Um();Bb()});function qb(e,t){sr(e)&&sr(e.__schema)||it(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);let n=e.__schema,r=Ss(n.types,B=>B.name,B=>N(B));for(let B of[...xo,...Mo])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new Bi({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===mn.LIST){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");return new Mn(l(he))}if(B.kind===mn.NON_NULL){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");let rt=l(he);return new pt(Cf(rt))}return d(B)}function d(B){let he=B.name;if(!he)throw new Error(`Unknown type reference: ${ne(B)}.`);let rt=r[he];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${he}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return Pf(d(B))}function y(B){return kf(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case mn.SCALAR:return I(B);case mn.OBJECT:return C(B);case mn.INTERFACE:return j(B);case mn.UNION:return Q(B);case mn.ENUM:return re(B);case mn.INPUT_OBJECT:return se(B)}let he=ne(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${he}.`)}function I(B){return new Jr({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function b(B){if(B.interfaces===null&&B.kind===mn.INTERFACE)return[];if(!B.interfaces){let he=ne(B);throw new Error(`Introspection result missing interfaces: ${he}.`)}return B.interfaces.map(y)}function C(B){return new _r({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>fe(B)})}function j(B){return new ss({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>fe(B)})}function Q(B){if(!B.possibleTypes){let he=ne(B);throw new Error(`Introspection result missing possibleTypes: ${he}.`)}return new os({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let he=ne(B);throw new Error(`Introspection result missing enumValues: ${he}.`)}return new oi({name:B.name,description:B.description,values:Ss(B.enumValues,he=>he.name,he=>({description:he.description,deprecationReason:he.deprecationReason}))})}function se(B){if(!B.inputFields){let he=ne(B);throw new Error(`Introspection result missing inputFields: ${he}.`)}return new as({name:B.name,description:B.description,fields:()=>ke(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${ne(B)}.`);return Ss(B.fields,he=>he.name,ye)}function ye(B){let he=l(B.type);if(!us(he)){let rt=ne(he);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=ne(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:he,args:ke(B.args)}}function ke(B){return Ss(B,he=>he.name,ht)}function ht(B){let he=l(B.type);if(!yr(he)){let Ct=ne(he);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?_i(Af(B.defaultValue),he):void 0;return{description:B.description,type:he,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let he=ne(B);throw new Error(`Introspection result missing directive args: ${he}.`)}if(!B.locations){let he=ne(B);throw new Error(`Introspection result missing directive locations: ${he}.`)}return new Vr({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:ke(B.args)})}}var xx=ue(()=>{"use strict";m();T();h();Ni();Nn();Lo();Rf();_d();Zt();Ui();As();Co();il();Tm()});function Kb(e,t,n){rl(e),t!=null&&t.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&ox(t,e);let r=e.toConfig(),i=Gb(r,t,n);return r===i?e:new Bi(i)}function Gb(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===R.SCHEMA_DEFINITION)p=U;else if(U.kind===R.SCHEMA_EXTENSION)y.push(U);else if(Rs(U))u.push(U);else if(lc(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===R.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=Cx[ae])!==null&&I!==void 0?I:qn(U)}let b=k(k({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&rt([p])),rt(y));return K(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},b),{types:Object.values(N),directives:[...e.directives.map(Q),...d.map(Fn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return Pt(U)?new Mn(C(U.ofType)):qe(U)?new pt(C(U.ofType)):j(U)}function j(U){return N[U.name]}function Q(U){let ae=U.toConfig();return new Vr(K(k({},ae),{args:io(ae.args,he)}))}function re(U){if(ui(U)||ao(U))return U;if(er(U))return ye(U);if(at(U))return ke(U);if(Nt(U))return ht(U);if(fn(U))return xt(U);if(rn(U))return fe(U);if(gt(U))return se(U);Gt(!1,"Unexpected type: "+ne(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new as(K(k({},te),{fields:()=>k(k({},io(te.fields,je=>K(k({},je),{type:C(je.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new oi(K(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ye(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],je=te.specifiedByURL;for(let ee of ce){var G;je=(G=Ux(ee))!==null&&G!==void 0?G:je}return new Jr(K(k({},te),{specifiedByURL:je,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ke(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new _r(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},io(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new ss(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},io(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new os(K(k({},te),{types:()=>[...U.getTypes().map(j),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return K(k({},U),{type:C(U.type),args:U.args&&io(U.args,he)})}function he(U){return K(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let je=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let G of je)ae[G.operation]=Ct(G.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=Cx[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function sn(U){return U.kind===R.LIST_TYPE?new Mn(sn(U.type)):U.kind===R.NON_NULL_TYPE?new pt(sn(U.type)):Ct(U)}function Fn(U){var ae;return new Vr({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={type:sn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:cN(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let je of ae){var ce;let G=sn(je.type);te[je.name.value]={type:G,description:(ce=je.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(je.defaultValue,G),deprecationReason:cN(je),astNode:je}}return te}function mi(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;let we=sn(ee.type);ae[ee.name.value]={type:we,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(ee.defaultValue,we),deprecationReason:cN(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.values)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:cN(ee),astNode:ee}}}return ae}function Pn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function qn(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case R.OBJECT_TYPE_DEFINITION:{var je;let Qe=[U,...ce];return new _r({name:te,description:(je=U.description)===null||je===void 0?void 0:je.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case R.INTERFACE_TYPE_DEFINITION:{var G;let Qe=[U,...ce];return new ss({name:te,description:(G=U.description)===null||G===void 0?void 0:G.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case R.ENUM_TYPE_DEFINITION:{var ee;let Qe=[U,...ce];return new oi({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Qe),astNode:U,extensionASTNodes:ce})}case R.UNION_TYPE_DEFINITION:{var we;let Qe=[U,...ce];return new os({name:te,description:(we=U.description)===null||we===void 0?void 0:we.value,types:()=>on(Qe),astNode:U,extensionASTNodes:ce})}case R.SCALAR_TYPE_DEFINITION:{var He;return new Jr({name:te,description:(He=U.description)===null||He===void 0?void 0:He.value,specifiedByURL:Ux(U),astNode:U,extensionASTNodes:ce})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var jt;let Qe=[U,...ce];return new as({name:te,description:(jt=U.description)===null||jt===void 0?void 0:jt.value,fields:()=>mi(Qe),astNode:U,extensionASTNodes:ce,isOneOf:M4(U)})}}}}function cN(e){let t=Vo(Uo,e);return t==null?void 0:t.reason}function Ux(e){let t=Vo(Pd,e);return t==null?void 0:t.url}function M4(e){return!!Vo(kd,e)}var Cx,Qb=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();ic();a_();Xt();ul();Zt();Ui();As();Co();il();Pm();qd();Tm();Cx=si([...xo,...Mo],e=>e.name)});function lN(e,t){e!=null&&e.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&sx(e);let r=Gb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ai.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Bi(K(k({},r),{directives:i}))}function Yb(e,t){let n=ro(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return lN(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var Mx=ue(()=>{"use strict";m();T();h();Ni();Xt();_d();Ui();il();Pm();Qb()});function Bm(e){let t=e.toConfig(),n=Ss(Jb(t.types),N=>N.name,y);return new Bi(K(k({},t),{types:Object.values(n),directives:Jb(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return Pt(N)?new Mn(r(N.ofType)):qe(N)?new pt(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Vr(K(k({},I),{locations:Bx(I.locations,b=>b),args:u(I.args)}))}function u(N){return dN(N,I=>K(k({},I),{type:r(I.type)}))}function l(N){return dN(N,I=>K(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return dN(N,I=>K(k({},I),{type:r(I.type)}))}function p(N){return Jb(N).map(i)}function y(N){if(er(N)||ui(N))return N;if(at(N)){let I=N.toConfig();return new _r(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(Nt(N)){let I=N.toConfig();return new ss(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(fn(N)){let I=N.toConfig();return new os(K(k({},I),{types:()=>p(I.types)}))}if(rn(N)){let I=N.toConfig();return new oi(K(k({},I),{values:dN(I.values,b=>b)}))}if(gt(N)){let I=N.toConfig();return new as(K(k({},I),{fields:()=>d(I.fields)}))}Gt(!1,"Unexpected type: "+ne(N))}}function dN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(Sa))n[r]=t(e[r]);return n}function Jb(e){return Bx(e,t=>t.name)}function Bx(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return Sa(i,s)})}var Vx=ue(()=>{"use strict";m();T();h();Nn();ri();Rf();Ff();Zt();Ui();As();il()});function zd(e){return jx(e,t=>!cc(t),B4)}function Hb(e){return jx(e,cc,ui)}function B4(e){return!ao(e)&&!ui(e)}function jx(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[V4(e),...r.map(s=>J4(s)),...i.map(s=>pN(s))].filter(Boolean).join(` -`)}function V4(e){if(e.description==null&&j4(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}`),ws(e)+`schema { +`)}function V4(e){if(e.description==null&&j4(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}`),Fs(e)+`schema { ${t.join(` `)} -}`}function j4(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function pN(e){if(Zn(e))return $4(e);if(ot(e))return q4(e);if(Nt(e))return K4(e);if(fn(e))return G4(e);if(rn(e))return Q4(e);if(gt(e))return Y4(e);Gt(!1,"Unexpected type: "+ne(e))}function $4(e){return ws(e)+`scalar ${e.name}`+z4(e)}function $x(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function q4(e){return ws(e)+`type ${e.name}`+$x(e)+qx(e)}function K4(e){return ws(e)+`interface ${e.name}`+$x(e)+qx(e)}function G4(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ws(e)+"union "+e.name+n}function Q4(e){let t=e.getValues().map((n,r)=>ws(n," ",!r)+" "+n.name+Xb(n.deprecationReason));return ws(e)+`enum ${e.name}`+Wb(t)}function Y4(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+zb(n));return ws(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Wb(t)}function qx(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+n.name+Kx(n.args," ")+": "+String(n.type)+Xb(n.deprecationReason));return Wb(t)}function Wb(e){return e.length!==0?` { +}`}function j4(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function pN(e){if(er(e))return $4(e);if(at(e))return q4(e);if(Nt(e))return K4(e);if(fn(e))return G4(e);if(rn(e))return Q4(e);if(gt(e))return Y4(e);Gt(!1,"Unexpected type: "+ne(e))}function $4(e){return Fs(e)+`scalar ${e.name}`+z4(e)}function $x(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function q4(e){return Fs(e)+`type ${e.name}`+$x(e)+qx(e)}function K4(e){return Fs(e)+`interface ${e.name}`+$x(e)+qx(e)}function G4(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Fs(e)+"union "+e.name+n}function Q4(e){let t=e.getValues().map((n,r)=>Fs(n," ",!r)+" "+n.name+Xb(n.deprecationReason));return Fs(e)+`enum ${e.name}`+Wb(t)}function Y4(e){let t=Object.values(e.getFields()).map((n,r)=>Fs(n," ",!r)+" "+zb(n));return Fs(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Wb(t)}function qx(e){let t=Object.values(e.getFields()).map((n,r)=>Fs(n," ",!r)+" "+n.name+Kx(n.args," ")+": "+String(n.type)+Xb(n.deprecationReason));return Wb(t)}function Wb(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function Kx(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(zb).join(", ")+")":`( -`+e.map((n,r)=>ws(n," "+t,!r)+" "+t+zb(n)).join(` +`+e.map((n,r)=>Fs(n," "+t,!r)+" "+t+zb(n)).join(` `)+` -`+t+")"}function zb(e){let t=Hr(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${Rt(t)}`),n+Xb(e.deprecationReason)}function J4(e){return ws(e)+"directive @"+e.name+Kx(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Xb(e){return e==null?"":e!==Ld?` @deprecated(reason: ${Rt({kind:R.STRING,value:e})})`:" @deprecated"}function z4(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Rt({kind:R.STRING,value:e.specifiedByURL})})`}function ws(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=Rt({kind:R.STRING,value:r,block:wk(r)});return(t&&!n?` +`+t+")"}function zb(e){let t=Hr(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${Rt(t)}`),n+Xb(e.deprecationReason)}function J4(e){return Fs(e)+"directive @"+e.name+Kx(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Xb(e){return e==null?"":e!==Ld?` @deprecated(reason: ${Rt({kind:R.STRING,value:e})})`:" @deprecated"}function z4(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Rt({kind:R.STRING,value:e.specifiedByURL})})`}function Fs(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=Rt({kind:R.STRING,value:r,block:Fk(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}var Gx=ue(()=>{"use strict";m();T();h();Nn();ri();bf();Xt();is();Zt();Ui();As();Co();jf()});function Zb(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:R.DOCUMENT,definitions:t}}var Qx=ue(()=>{"use strict";m();T();h();Xt()});function eO(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case R.OPERATION_DEFINITION:t.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=Yx(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of Yx(i.selectionSet))Jx(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:R.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===R.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function Jx(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)Jx(e,t,i)}}function Yx(e){let t=[];return Ds(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var zx=ue(()=>{"use strict";m();T();h();Xt();Hc()});function tO(e){let t=ky(e)?e:new ko(e),n=t.body,r=new Oa(t),i="",s=!1;for(;r.advance().kind!==le.EOF;){let o=r.token,u=o.kind,l=!wy(o.kind);s&&(l||o.kind===le.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===le.BLOCK_STRING?i+=Ry(o.value,{minimize:!0}):i+=d,s=l}return i}var Hx=ue(()=>{"use strict";m();T();h();bf();Ly();xy();Of()});function nO(e){let t=fN(e);if(t)throw t;return e}function fN(e){if(typeof e=="string"||it(!1,"Expected name to be a string."),e.startsWith("__"))return new Y(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Mr(e)}catch(t){return t}}var Wx=ue(()=>{"use strict";m();T();h();Ni();st();Lf()});function rO(e,t){return nC(e,t).filter(n=>n.type in Yn)}function iO(e,t){return nC(e,t).filter(n=>n.type in ls)}function nC(e,t){return[...W4(e,t),...H4(e,t)]}function H4(e,t){let n=[],r=xa(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Yn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=xa(i.args,s.args);for(let u of o.added)cs(u)&&n.push({type:Yn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:Yn.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Yn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:Yn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function W4(e,t){let n=[],r=xa(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED,description:ao(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)rn(i)&&rn(s)?n.push(...eH(i,s)):fn(i)&&fn(s)?n.push(...Z4(i,s)):gt(i)&>(s)?n.push(...X4(i,s)):ot(i)&&ot(s)?n.push(...Zx(i,s),...Xx(i,s)):Nt(i)&&Nt(s)?n.push(...Zx(i,s),...Xx(i,s)):i.constructor!==s.constructor&&n.push({type:Yn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${eC(i)} to ${eC(s)}.`});return n}function X4(e,t){let n=[],r=xa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)Ra(i)?n.push({type:Yn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ls.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:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)jm(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Z4(e,t){let n=[],r=xa(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ls.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function eH(e,t){let n=[],r=xa(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ls.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function Xx(e,t){let n=[],r=xa(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ls.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Yn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Zx(e,t){let n=[],r=xa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...tH(e,i,s)),Vm(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function tH(e,t,n){let r=[],i=xa(t.args,n.args);for(let s of i.removed)r.push({type:Yn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!jm(s.type,o.type))r.push({type:Yn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=tC(s.defaultValue,s.type),d=tC(o.defaultValue,o.type);l!==d&&r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)cs(s)?r.push({type:Yn.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:ls.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Vm(e,t){return Pt(e)?Pt(t)&&Vm(e.ofType,t.ofType)||qe(t)&&Vm(e,t.ofType):qe(e)?qe(t)&&Vm(e.ofType,t.ofType):Aa(t)&&e.name===t.name||qe(t)&&Vm(e,t.ofType)}function jm(e,t){return Pt(e)?Pt(t)&&jm(e.ofType,t.ofType):qe(e)?qe(t)&&jm(e.ofType,t.ofType)||!qe(t)&&jm(e.ofType,t):Aa(t)&&e.name===t.name}function eC(e){if(Zn(e))return"a Scalar type";if(ot(e))return"an Object type";if(Nt(e))return"an Interface type";if(fn(e))return"a Union type";if(rn(e))return"an Enum type";if(gt(e))return"an Input type";Gt(!1,"Unexpected type: "+ne(e))}function tC(e,t){let n=Hr(e,t);return n!=null||Gt(!1),Rt($d(n))}function xa(e,t){let n=[],r=[],i=[],s=si(e,({name:u})=>u),o=si(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}var Yn,ls,rC=ue(()=>{"use strict";m();T();h();Nn();ri();ic();is();Zt();Co();jf();H_();(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"})(Yn||(Yn={}));(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"})(ls||(ls={}))});var iC=ue(()=>{"use strict";m();T();h();Bb();Lx();Px();kx();xx();Mx();Qb();Vx();Gx();Bo();Tm();d_();jf();Gy();ub();Qx();zx();Hx();Bf();Wx();rC()});var Me={};Ef(Me,{BREAK:()=>oc,BreakingChangeType:()=>Yn,DEFAULT_DEPRECATION_REASON:()=>Ld,DangerousChangeType:()=>ls,DirectiveLocation:()=>Je,ExecutableDefinitionsRule:()=>Hf,FieldsOnCorrectTypeRule:()=>Wf,FragmentsOnCompositeTypesRule:()=>Xf,GRAPHQL_MAX_INT:()=>Dd,GRAPHQL_MIN_INT:()=>Ad,GraphQLBoolean:()=>Br,GraphQLDeprecatedDirective:()=>Uo,GraphQLDirective:()=>Vr,GraphQLEnumType:()=>oi,GraphQLError:()=>Y,GraphQLFloat:()=>$y,GraphQLID:()=>Rd,GraphQLIncludeDirective:()=>wd,GraphQLInputObjectType:()=>as,GraphQLInt:()=>jy,GraphQLInterfaceType:()=>ss,GraphQLList:()=>Mn,GraphQLNonNull:()=>pt,GraphQLObjectType:()=>_r,GraphQLOneOfDirective:()=>kd,GraphQLScalarType:()=>Jr,GraphQLSchema:()=>Bi,GraphQLSkipDirective:()=>Fd,GraphQLSpecifiedByDirective:()=>Pd,GraphQLString:()=>Bn,GraphQLUnionType:()=>os,Kind:()=>R,KnownArgumentNamesRule:()=>Zf,KnownDirectivesRule:()=>Vd,KnownFragmentNamesRule:()=>em,KnownTypeNamesRule:()=>jd,Lexer:()=>Oa,Location:()=>Jc,LoneAnonymousOperationRule:()=>tm,LoneSchemaDefinitionRule:()=>nm,MaxIntrospectionDepthRule:()=>rm,NoDeprecatedCustomRule:()=>Ub,NoFragmentCyclesRule:()=>im,NoSchemaIntrospectionCustomRule:()=>Mb,NoUndefinedVariablesRule:()=>sm,NoUnusedFragmentsRule:()=>om,NoUnusedVariablesRule:()=>am,OperationTypeNode:()=>Un,OverlappingFieldsCanBeMergedRule:()=>um,PossibleFragmentSpreadsRule:()=>cm,PossibleTypeExtensionsRule:()=>lm,ProvidedRequiredArgumentsRule:()=>dm,ScalarLeafsRule:()=>pm,SchemaMetaFieldDef:()=>wa,SingleFieldSubscriptionsRule:()=>Nm,Source:()=>ko,Token:()=>nc,TokenKind:()=>le,TypeInfo:()=>Pa,TypeKind:()=>mn,TypeMetaFieldDef:()=>Fa,TypeNameMetaFieldDef:()=>La,UniqueArgumentDefinitionNamesRule:()=>Em,UniqueArgumentNamesRule:()=>Qd,UniqueDirectiveNamesRule:()=>gm,UniqueDirectivesPerLocationRule:()=>Yd,UniqueEnumValueNamesRule:()=>Im,UniqueFieldDefinitionNamesRule:()=>vm,UniqueFragmentNamesRule:()=>_m,UniqueInputFieldNamesRule:()=>Jd,UniqueOperationNamesRule:()=>bm,UniqueOperationTypesRule:()=>Om,UniqueTypeNamesRule:()=>Sm,UniqueVariableNamesRule:()=>Dm,ValidationContext:()=>ll,ValuesOfCorrectTypeRule:()=>Am,VariablesAreInputTypesRule:()=>Rm,VariablesInAllowedPositionRule:()=>wm,__Directive:()=>$f,__DirectiveLocation:()=>qf,__EnumValue:()=>Gf,__Field:()=>Kf,__InputValue:()=>nl,__Schema:()=>tl,__Type:()=>Mi,__TypeKind:()=>Qf,assertAbstractType:()=>__,assertCompositeType:()=>v_,assertDirective:()=>A_,assertEnumType:()=>h_,assertEnumValueName:()=>Ff,assertInputObjectType:()=>T_,assertInputType:()=>E_,assertInterfaceType:()=>kf,assertLeafType:()=>I_,assertListType:()=>y_,assertName:()=>Mr,assertNamedType:()=>O_,assertNonNullType:()=>N_,assertNullableType:()=>Cf,assertObjectType:()=>Pf,assertOutputType:()=>g_,assertScalarType:()=>f_,assertSchema:()=>rl,assertType:()=>p_,assertUnionType:()=>m_,assertValidName:()=>nO,assertValidSchema:()=>ol,assertWrappingType:()=>b_,astFromValue:()=>Hr,buildASTSchema:()=>lN,buildClientSchema:()=>qb,buildSchema:()=>Yb,coerceInputValue:()=>hm,concatAST:()=>Zb,createSourceEventStream:()=>uN,defaultFieldResolver:()=>xm,defaultTypeResolver:()=>aN,doTypesOverlap:()=>Sd,execute:()=>pc,executeSync:()=>Cm,extendSchema:()=>Kb,findBreakingChanges:()=>rO,findDangerousChanges:()=>iO,formatError:()=>t_,getArgumentValues:()=>dc,getDirectiveValues:()=>Vo,getEnterLeaveForKind:()=>Da,getIntrospectionQuery:()=>Mm,getLocation:()=>tc,getNamedType:()=>Gn,getNullableType:()=>Zc,getOperationAST:()=>Vb,getOperationRootType:()=>jb,getVariableValues:()=>ym,getVisitFn:()=>l_,graphql:()=>yx,graphqlSync:()=>Nx,introspectionFromSchema:()=>$b,introspectionTypes:()=>Mo,isAbstractType:()=>zr,isCompositeType:()=>vi,isConstValueNode:()=>zf,isDefinitionNode:()=>L_,isDirective:()=>uc,isEnumType:()=>rn,isEqualType:()=>el,isExecutableDefinitionNode:()=>Ud,isInputObjectType:()=>gt,isInputType:()=>Tr,isInterfaceType:()=>Nt,isIntrospectionType:()=>ui,isLeafType:()=>Rr,isListType:()=>Pt,isNamedType:()=>Aa,isNonNullType:()=>qe,isNullableType:()=>xf,isObjectType:()=>ot,isOutputType:()=>us,isRequiredArgument:()=>cs,isRequiredInputField:()=>Ra,isScalarType:()=>Zn,isSchema:()=>Ky,isSelectionNode:()=>P_,isSpecifiedDirective:()=>cc,isSpecifiedScalarType:()=>ao,isType:()=>ac,isTypeDefinitionNode:()=>Rs,isTypeExtensionNode:()=>lc,isTypeNode:()=>k_,isTypeSubTypeOf:()=>oo,isTypeSystemDefinitionNode:()=>Md,isTypeSystemExtensionNode:()=>Bd,isUnionType:()=>fn,isValidNameError:()=>fN,isValueNode:()=>Qy,isWrappingType:()=>Xc,lexicographicSortSchema:()=>Bm,locatedError:()=>jo,parse:()=>ro,parseConstValue:()=>i_,parseType:()=>s_,parseValue:()=>Af,print:()=>Rt,printError:()=>e_,printIntrospectionSchema:()=>Hb,printLocation:()=>If,printSchema:()=>zd,printSourceLocation:()=>Nd,printType:()=>pN,recommendedRules:()=>eN,resolveObjMapThunk:()=>Mf,resolveReadonlyArrayThunk:()=>Uf,responsePathAsArray:()=>br,separateOperations:()=>eO,specifiedDirectives:()=>ai,specifiedRules:()=>Fm,specifiedScalarTypes:()=>xo,stripIgnoredCharacters:()=>tO,subscribe:()=>Cb,syntaxError:()=>Xn,typeFromAST:()=>Qn,validate:()=>Lm,validateSchema:()=>Cd,valueFromAST:()=>_i,valueFromASTUntyped:()=>Wc,version:()=>_k,versionInfo:()=>bk,visit:()=>Ds,visitInParallel:()=>bd,visitWithTypeInfo:()=>al});var we=ue(()=>{"use strict";m();T();h();Ok();gx();Ix();vx();Dx();wx();Fx();iC()});var bi=V(P=>{"use strict";m();T();h();Object.defineProperty(P,"__esModule",{value:!0});P.INPUT_FIELD=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.IN_UPPER=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=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.ENUM_VALUE_UPPER=P.ENUM_VALUE=P.ENUM_UPPER=P.ENUM=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=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.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.CONDITION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.BOOLEAN=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=P.AND_UPPER=void 0;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=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_BOOLEAN=P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=P.NAME=P.N_A=P.PROVIDER_TYPE_NATS=P.PROVIDER_TYPE_KAFKA=P.MUTATION_UPPER=P.MUTATION=P.NUMBER=P.LITERAL_NEW_LINE=P.LITERAL_SPACE=P.LIST=P.LINK=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=void 0;P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=P.SUBSCRIPTION_FILTER_INPUT_NAMES=P.PERSISTED_CLIENT_DIRECTIVES=P.STREAM_CONFIGURATION_FIELD_NAMES=P.EVENT_DIRECTIVE_NAMES=P.ROOT_TYPE_NAMES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=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.STREAM_CONFIGURATION=P.SPECIFIED_BY=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=void 0;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.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.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.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.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.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.IN_UPPER="IN";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";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.LINK="link";P.LIST="list";P.LITERAL_SPACE=" ";P.LITERAL_NEW_LINE=` -`;P.NUMBER="number";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.PROVIDER_TYPE_KAFKA="kafka";P.PROVIDER_TYPE_NATS="nats";P.N_A="N/A";P.NAME="name";P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";P.NON_NULLABLE_BOOLEAN="Boolean!";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.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SPECIFIED_BY="specifiedBy";P.STREAM_CONFIGURATION="streamConfiguration";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.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.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.REQUIRES_SCOPES]);P.ROOT_TYPE_NAMES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION]);P.EVENT_DIRECTIVE_NAMES=new Set([P.EDFS_KAFKA_PUBLISH,P.EDFS_KAFKA_SUBSCRIBE,P.EDFS_NATS_PUBLISH,P.EDFS_NATS_REQUEST,P.EDFS_NATS_SUBSCRIBE]);P.STREAM_CONFIGURATION_FIELD_NAMES=new Set([P.CONSUMER_NAME,P.STREAM_NAME]);P.PERSISTED_CLIENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.DEPRECATED,P.REQUIRES_SCOPES]);P.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([P.AND_UPPER,P.IN_UPPER,P.NOT_UPPER,P.OR_UPPER]);P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([P.AND_UPPER,P.OR_UPPER])});var Vi=V(sr=>{"use strict";m();T();h();Object.defineProperty(sr,"__esModule",{value:!0});sr.operationTypeNodeToDefaultType=void 0;sr.isObjectLikeNodeEntity=nH;sr.isNodeInterfaceObject=rH;sr.isNodeExtension=iH;sr.areBaseAndExtensionKindsCompatible=sH;sr.stringToNameNode=mN;sr.stringArrayToNameNodeArray=oH;sr.setToNameNodeArray=aH;sr.stringToNamedTypeNode=sC;sr.setToNamedTypeNodeArray=uH;sr.nodeKindToDirectiveLocation=cH;sr.isKindAbstract=lH;sr.extractExecutableDirectiveLocations=dH;sr.formatDescription=pH;sr.lexicographicallySortArgumentNodes=oC;sr.lexicographicallySortSelectionSetNode=sO;sr.lexicographicallySortDocumentNode=fH;sr.parse=aC;sr.safeParse=mH;var wt=(we(),xe(Me)),yr=bi();function nH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===yr.KEY)return!0;return!1}function rH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===yr.INTERFACE_OBJECT)return!0;return!1}function iH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===yr.EXTENDS)return!0;return!1}function sH(e,t,n){switch(e){case wt.Kind.ENUM_TYPE_DEFINITION:return t===wt.Kind.ENUM_TYPE_EXTENSION;case wt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===wt.Kind.INPUT_OBJECT_TYPE_EXTENSION;case wt.Kind.INTERFACE_TYPE_DEFINITION:return t===wt.Kind.INTERFACE_TYPE_EXTENSION;case wt.Kind.OBJECT_TYPE_DEFINITION:return t===wt.Kind.OBJECT_TYPE_EXTENSION;case wt.Kind.SCALAR_TYPE_DEFINITION:return t===wt.Kind.SCALAR_TYPE_EXTENSION;case wt.Kind.UNION_TYPE_DEFINITION:return t===wt.Kind.UNION_TYPE_EXTENSION;default:return!1}}function mN(e){return{kind:wt.Kind.NAME,value:e}}function oH(e){let t=[];for(let n of e)t.push(mN(n));return t}function aH(e){let t=[];for(let n of e)t.push(mN(n));return t}function sC(e){return{kind:wt.Kind.NAMED_TYPE,name:mN(e)}}function uH(e){let t=[];for(let n of e)t.push(sC(n));return t}function cH(e){switch(e){case wt.Kind.ARGUMENT:return yr.ARGUMENT_DEFINITION_UPPER;case wt.Kind.ENUM_TYPE_DEFINITION:case wt.Kind.ENUM_TYPE_EXTENSION:return yr.ENUM_UPPER;case wt.Kind.ENUM_VALUE_DEFINITION:return yr.ENUM_VALUE_UPPER;case wt.Kind.FIELD_DEFINITION:return yr.FIELD_DEFINITION_UPPER;case wt.Kind.FRAGMENT_DEFINITION:return yr.FRAGMENT_DEFINITION_UPPER;case wt.Kind.FRAGMENT_SPREAD:return yr.FRAGMENT_SPREAD_UPPER;case wt.Kind.INLINE_FRAGMENT:return yr.INLINE_FRAGMENT_UPPER;case wt.Kind.INPUT_VALUE_DEFINITION:return yr.INPUT_FIELD_DEFINITION_UPPER;case wt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case wt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return yr.INPUT_OBJECT_UPPER;case wt.Kind.INTERFACE_TYPE_DEFINITION:case wt.Kind.INTERFACE_TYPE_EXTENSION:return yr.INTERFACE_UPPER;case wt.Kind.OBJECT_TYPE_DEFINITION:case wt.Kind.OBJECT_TYPE_EXTENSION:return yr.OBJECT_UPPER;case wt.Kind.SCALAR_TYPE_DEFINITION:case wt.Kind.SCALAR_TYPE_EXTENSION:return yr.SCALAR_UPPER;case wt.Kind.SCHEMA_DEFINITION:case wt.Kind.SCHEMA_EXTENSION:return yr.SCHEMA_UPPER;case wt.Kind.UNION_TYPE_DEFINITION:case wt.Kind.UNION_TYPE_EXTENSION:return yr.UNION_UPPER;default:return e}}sr.operationTypeNodeToDefaultType=new Map([[wt.OperationTypeNode.MUTATION,yr.MUTATION],[wt.OperationTypeNode.QUERY,yr.QUERY],[wt.OperationTypeNode.SUBSCRIPTION,yr.SUBSCRIPTION]]);function lH(e){return e===wt.Kind.INTERFACE_TYPE_DEFINITION||e===wt.Kind.UNION_TYPE_DEFINITION}function dH(e,t){for(let n of e){let r=n.value;yr.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function pH(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` +`}var Gx=ue(()=>{"use strict";m();T();h();Nn();ri();bf();Xt();is();Zt();Ui();As();Co();jf()});function Zb(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:R.DOCUMENT,definitions:t}}var Qx=ue(()=>{"use strict";m();T();h();Xt()});function eO(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case R.OPERATION_DEFINITION:t.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=Yx(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of Yx(i.selectionSet))Jx(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:R.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===R.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function Jx(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)Jx(e,t,i)}}function Yx(e){let t=[];return Ds(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var zx=ue(()=>{"use strict";m();T();h();Xt();Hc()});function tO(e){let t=ky(e)?e:new ko(e),n=t.body,r=new Oa(t),i="",s=!1;for(;r.advance().kind!==le.EOF;){let o=r.token,u=o.kind,l=!Fy(o.kind);s&&(l||o.kind===le.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===le.BLOCK_STRING?i+=Ry(o.value,{minimize:!0}):i+=d,s=l}return i}var Hx=ue(()=>{"use strict";m();T();h();bf();Ly();xy();Of()});function nO(e){let t=fN(e);if(t)throw t;return e}function fN(e){if(typeof e=="string"||it(!1,"Expected name to be a string."),e.startsWith("__"))return new Y(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Mr(e)}catch(t){return t}}var Wx=ue(()=>{"use strict";m();T();h();Ni();ot();Lf()});function rO(e,t){return nC(e,t).filter(n=>n.type in Jn)}function iO(e,t){return nC(e,t).filter(n=>n.type in ls)}function nC(e,t){return[...W4(e,t),...H4(e,t)]}function H4(e,t){let n=[],r=xa(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Jn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=xa(i.args,s.args);for(let u of o.added)cs(u)&&n.push({type:Jn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:Jn.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Jn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:Jn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function W4(e,t){let n=[],r=xa(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Jn.TYPE_REMOVED,description:ao(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)rn(i)&&rn(s)?n.push(...eH(i,s)):fn(i)&&fn(s)?n.push(...Z4(i,s)):gt(i)&>(s)?n.push(...X4(i,s)):at(i)&&at(s)?n.push(...Zx(i,s),...Xx(i,s)):Nt(i)&&Nt(s)?n.push(...Zx(i,s),...Xx(i,s)):i.constructor!==s.constructor&&n.push({type:Jn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${eC(i)} to ${eC(s)}.`});return n}function X4(e,t){let n=[],r=xa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)Ra(i)?n.push({type:Jn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ls.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:Jn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)jm(i.type,s.type)||n.push({type:Jn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Z4(e,t){let n=[],r=xa(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ls.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Jn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function eH(e,t){let n=[],r=xa(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ls.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Jn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function Xx(e,t){let n=[],r=xa(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ls.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Jn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Zx(e,t){let n=[],r=xa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Jn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...tH(e,i,s)),Vm(i.type,s.type)||n.push({type:Jn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function tH(e,t,n){let r=[],i=xa(t.args,n.args);for(let s of i.removed)r.push({type:Jn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!jm(s.type,o.type))r.push({type:Jn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=tC(s.defaultValue,s.type),d=tC(o.defaultValue,o.type);l!==d&&r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)cs(s)?r.push({type:Jn.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:ls.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Vm(e,t){return Pt(e)?Pt(t)&&Vm(e.ofType,t.ofType)||qe(t)&&Vm(e,t.ofType):qe(e)?qe(t)&&Vm(e.ofType,t.ofType):Aa(t)&&e.name===t.name||qe(t)&&Vm(e,t.ofType)}function jm(e,t){return Pt(e)?Pt(t)&&jm(e.ofType,t.ofType):qe(e)?qe(t)&&jm(e.ofType,t.ofType)||!qe(t)&&jm(e.ofType,t):Aa(t)&&e.name===t.name}function eC(e){if(er(e))return"a Scalar type";if(at(e))return"an Object type";if(Nt(e))return"an Interface type";if(fn(e))return"a Union type";if(rn(e))return"an Enum type";if(gt(e))return"an Input type";Gt(!1,"Unexpected type: "+ne(e))}function tC(e,t){let n=Hr(e,t);return n!=null||Gt(!1),Rt($d(n))}function xa(e,t){let n=[],r=[],i=[],s=si(e,({name:u})=>u),o=si(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}var Jn,ls,rC=ue(()=>{"use strict";m();T();h();Nn();ri();ic();is();Zt();Co();jf();H_();(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"})(Jn||(Jn={}));(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"})(ls||(ls={}))});var iC=ue(()=>{"use strict";m();T();h();Bb();Lx();Px();kx();xx();Mx();Qb();Vx();Gx();Bo();Tm();d_();jf();Gy();ub();Qx();zx();Hx();Bf();Wx();rC()});var Me={};Ef(Me,{BREAK:()=>oc,BreakingChangeType:()=>Jn,DEFAULT_DEPRECATION_REASON:()=>Ld,DangerousChangeType:()=>ls,DirectiveLocation:()=>Je,ExecutableDefinitionsRule:()=>Hf,FieldsOnCorrectTypeRule:()=>Wf,FragmentsOnCompositeTypesRule:()=>Xf,GRAPHQL_MAX_INT:()=>Dd,GRAPHQL_MIN_INT:()=>Ad,GraphQLBoolean:()=>Br,GraphQLDeprecatedDirective:()=>Uo,GraphQLDirective:()=>Vr,GraphQLEnumType:()=>oi,GraphQLError:()=>Y,GraphQLFloat:()=>$y,GraphQLID:()=>Rd,GraphQLIncludeDirective:()=>Fd,GraphQLInputObjectType:()=>as,GraphQLInt:()=>jy,GraphQLInterfaceType:()=>ss,GraphQLList:()=>Mn,GraphQLNonNull:()=>pt,GraphQLObjectType:()=>_r,GraphQLOneOfDirective:()=>kd,GraphQLScalarType:()=>Jr,GraphQLSchema:()=>Bi,GraphQLSkipDirective:()=>wd,GraphQLSpecifiedByDirective:()=>Pd,GraphQLString:()=>Bn,GraphQLUnionType:()=>os,Kind:()=>R,KnownArgumentNamesRule:()=>Zf,KnownDirectivesRule:()=>Vd,KnownFragmentNamesRule:()=>em,KnownTypeNamesRule:()=>jd,Lexer:()=>Oa,Location:()=>Jc,LoneAnonymousOperationRule:()=>tm,LoneSchemaDefinitionRule:()=>nm,MaxIntrospectionDepthRule:()=>rm,NoDeprecatedCustomRule:()=>Ub,NoFragmentCyclesRule:()=>im,NoSchemaIntrospectionCustomRule:()=>Mb,NoUndefinedVariablesRule:()=>sm,NoUnusedFragmentsRule:()=>om,NoUnusedVariablesRule:()=>am,OperationTypeNode:()=>Un,OverlappingFieldsCanBeMergedRule:()=>um,PossibleFragmentSpreadsRule:()=>cm,PossibleTypeExtensionsRule:()=>lm,ProvidedRequiredArgumentsRule:()=>dm,ScalarLeafsRule:()=>pm,SchemaMetaFieldDef:()=>Fa,SingleFieldSubscriptionsRule:()=>Nm,Source:()=>ko,Token:()=>nc,TokenKind:()=>le,TypeInfo:()=>Pa,TypeKind:()=>mn,TypeMetaFieldDef:()=>wa,TypeNameMetaFieldDef:()=>La,UniqueArgumentDefinitionNamesRule:()=>Em,UniqueArgumentNamesRule:()=>Qd,UniqueDirectiveNamesRule:()=>gm,UniqueDirectivesPerLocationRule:()=>Yd,UniqueEnumValueNamesRule:()=>Im,UniqueFieldDefinitionNamesRule:()=>vm,UniqueFragmentNamesRule:()=>_m,UniqueInputFieldNamesRule:()=>Jd,UniqueOperationNamesRule:()=>bm,UniqueOperationTypesRule:()=>Om,UniqueTypeNamesRule:()=>Sm,UniqueVariableNamesRule:()=>Dm,ValidationContext:()=>ll,ValuesOfCorrectTypeRule:()=>Am,VariablesAreInputTypesRule:()=>Rm,VariablesInAllowedPositionRule:()=>Fm,__Directive:()=>$f,__DirectiveLocation:()=>qf,__EnumValue:()=>Gf,__Field:()=>Kf,__InputValue:()=>nl,__Schema:()=>tl,__Type:()=>Mi,__TypeKind:()=>Qf,assertAbstractType:()=>__,assertCompositeType:()=>v_,assertDirective:()=>A_,assertEnumType:()=>h_,assertEnumValueName:()=>wf,assertInputObjectType:()=>T_,assertInputType:()=>E_,assertInterfaceType:()=>kf,assertLeafType:()=>I_,assertListType:()=>y_,assertName:()=>Mr,assertNamedType:()=>O_,assertNonNullType:()=>N_,assertNullableType:()=>Cf,assertObjectType:()=>Pf,assertOutputType:()=>g_,assertScalarType:()=>f_,assertSchema:()=>rl,assertType:()=>p_,assertUnionType:()=>m_,assertValidName:()=>nO,assertValidSchema:()=>ol,assertWrappingType:()=>b_,astFromValue:()=>Hr,buildASTSchema:()=>lN,buildClientSchema:()=>qb,buildSchema:()=>Yb,coerceInputValue:()=>hm,concatAST:()=>Zb,createSourceEventStream:()=>uN,defaultFieldResolver:()=>xm,defaultTypeResolver:()=>aN,doTypesOverlap:()=>Sd,execute:()=>pc,executeSync:()=>Cm,extendSchema:()=>Kb,findBreakingChanges:()=>rO,findDangerousChanges:()=>iO,formatError:()=>t_,getArgumentValues:()=>dc,getDirectiveValues:()=>Vo,getEnterLeaveForKind:()=>Da,getIntrospectionQuery:()=>Mm,getLocation:()=>tc,getNamedType:()=>Qn,getNullableType:()=>Zc,getOperationAST:()=>Vb,getOperationRootType:()=>jb,getVariableValues:()=>ym,getVisitFn:()=>l_,graphql:()=>yx,graphqlSync:()=>Nx,introspectionFromSchema:()=>$b,introspectionTypes:()=>Mo,isAbstractType:()=>zr,isCompositeType:()=>vi,isConstValueNode:()=>zf,isDefinitionNode:()=>L_,isDirective:()=>uc,isEnumType:()=>rn,isEqualType:()=>el,isExecutableDefinitionNode:()=>Ud,isInputObjectType:()=>gt,isInputType:()=>yr,isInterfaceType:()=>Nt,isIntrospectionType:()=>ui,isLeafType:()=>Rr,isListType:()=>Pt,isNamedType:()=>Aa,isNonNullType:()=>qe,isNullableType:()=>xf,isObjectType:()=>at,isOutputType:()=>us,isRequiredArgument:()=>cs,isRequiredInputField:()=>Ra,isScalarType:()=>er,isSchema:()=>Ky,isSelectionNode:()=>P_,isSpecifiedDirective:()=>cc,isSpecifiedScalarType:()=>ao,isType:()=>ac,isTypeDefinitionNode:()=>Rs,isTypeExtensionNode:()=>lc,isTypeNode:()=>k_,isTypeSubTypeOf:()=>oo,isTypeSystemDefinitionNode:()=>Md,isTypeSystemExtensionNode:()=>Bd,isUnionType:()=>fn,isValidNameError:()=>fN,isValueNode:()=>Qy,isWrappingType:()=>Xc,lexicographicSortSchema:()=>Bm,locatedError:()=>jo,parse:()=>ro,parseConstValue:()=>i_,parseType:()=>s_,parseValue:()=>Af,print:()=>Rt,printError:()=>e_,printIntrospectionSchema:()=>Hb,printLocation:()=>If,printSchema:()=>zd,printSourceLocation:()=>Nd,printType:()=>pN,recommendedRules:()=>eN,resolveObjMapThunk:()=>Mf,resolveReadonlyArrayThunk:()=>Uf,responsePathAsArray:()=>br,separateOperations:()=>eO,specifiedDirectives:()=>ai,specifiedRules:()=>wm,specifiedScalarTypes:()=>xo,stripIgnoredCharacters:()=>tO,subscribe:()=>Cb,syntaxError:()=>Zn,typeFromAST:()=>Yn,validate:()=>Lm,validateSchema:()=>Cd,valueFromAST:()=>_i,valueFromASTUntyped:()=>Wc,version:()=>_k,versionInfo:()=>bk,visit:()=>Ds,visitInParallel:()=>bd,visitWithTypeInfo:()=>al});var Fe=ue(()=>{"use strict";m();T();h();Ok();gx();Ix();vx();Dx();Fx();wx();iC()});var bi=V(P=>{"use strict";m();T();h();Object.defineProperty(P,"__esModule",{value:!0});P.INLINE_FRAGMENT=P.INACCESSIBLE=P.IN_UPPER=P.IF=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=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.ENUM_VALUE_UPPER=P.ENUM_VALUE=P.ENUM_UPPER=P.ENUM=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=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.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFER=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.DEFAULT_EDFS_PROVIDER_ID=P.DEFAULT=P.CONSUMER_NAME=P.CONDITION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.BOOLEAN=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=P.AND_UPPER=void 0;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=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_BOOLEAN=P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=P.NAME=P.N_A=P.PROVIDER_TYPE_NATS=P.PROVIDER_TYPE_KAFKA=P.MUTATION_UPPER=P.MUTATION=P.NUMBER=P.LITERAL_NEW_LINE=P.LITERAL_SPACE=P.LIST=P.LINK=P.LABEL=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.INLINE_FRAGMENT_UPPER=void 0;P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=P.SUBSCRIPTION_FILTER_INPUT_NAMES=P.PERSISTED_CLIENT_DIRECTIVES=P.STREAM_CONFIGURATION_FIELD_NAMES=P.EVENT_DIRECTIVE_NAMES=P.ROOT_TYPE_NAMES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=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.STREAM_CONFIGURATION=P.SPECIFIED_BY=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=P.SCHEMA=void 0;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.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.DEFER="defer";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";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.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.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.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.IF="if";P.IN_UPPER="IN";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";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.LABEL="label";P.LINK="link";P.LIST="list";P.LITERAL_SPACE=" ";P.LITERAL_NEW_LINE=` +`;P.NUMBER="number";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.PROVIDER_TYPE_KAFKA="kafka";P.PROVIDER_TYPE_NATS="nats";P.N_A="N/A";P.NAME="name";P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";P.NON_NULLABLE_BOOLEAN="Boolean!";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.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SPECIFIED_BY="specifiedBy";P.STREAM_CONFIGURATION="streamConfiguration";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.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.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.REQUIRES_SCOPES]);P.ROOT_TYPE_NAMES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION]);P.EVENT_DIRECTIVE_NAMES=new Set([P.EDFS_KAFKA_PUBLISH,P.EDFS_KAFKA_SUBSCRIBE,P.EDFS_NATS_PUBLISH,P.EDFS_NATS_REQUEST,P.EDFS_NATS_SUBSCRIBE]);P.STREAM_CONFIGURATION_FIELD_NAMES=new Set([P.CONSUMER_NAME,P.STREAM_NAME]);P.PERSISTED_CLIENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.DEPRECATED,P.REQUIRES_SCOPES]);P.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([P.AND_UPPER,P.IN_UPPER,P.NOT_UPPER,P.OR_UPPER]);P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([P.AND_UPPER,P.OR_UPPER])});var Vi=V(or=>{"use strict";m();T();h();Object.defineProperty(or,"__esModule",{value:!0});or.operationTypeNodeToDefaultType=void 0;or.isObjectLikeNodeEntity=nH;or.isNodeInterfaceObject=rH;or.isNodeExtension=iH;or.areBaseAndExtensionKindsCompatible=sH;or.stringToNameNode=mN;or.stringArrayToNameNodeArray=oH;or.setToNameNodeArray=aH;or.stringToNamedTypeNode=sC;or.setToNamedTypeNodeArray=uH;or.nodeKindToDirectiveLocation=cH;or.isKindAbstract=lH;or.extractExecutableDirectiveLocations=dH;or.formatDescription=pH;or.lexicographicallySortArgumentNodes=oC;or.lexicographicallySortSelectionSetNode=sO;or.lexicographicallySortDocumentNode=fH;or.parse=aC;or.safeParse=mH;var Ft=(Fe(),xe(Me)),Nr=bi();function nH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Nr.KEY)return!0;return!1}function rH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Nr.INTERFACE_OBJECT)return!0;return!1}function iH(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Nr.EXTENDS)return!0;return!1}function sH(e,t,n){switch(e){case Ft.Kind.ENUM_TYPE_DEFINITION:return t===Ft.Kind.ENUM_TYPE_EXTENSION;case Ft.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===Ft.Kind.INPUT_OBJECT_TYPE_EXTENSION;case Ft.Kind.INTERFACE_TYPE_DEFINITION:return t===Ft.Kind.INTERFACE_TYPE_EXTENSION;case Ft.Kind.OBJECT_TYPE_DEFINITION:return t===Ft.Kind.OBJECT_TYPE_EXTENSION;case Ft.Kind.SCALAR_TYPE_DEFINITION:return t===Ft.Kind.SCALAR_TYPE_EXTENSION;case Ft.Kind.UNION_TYPE_DEFINITION:return t===Ft.Kind.UNION_TYPE_EXTENSION;default:return!1}}function mN(e){return{kind:Ft.Kind.NAME,value:e}}function oH(e){let t=[];for(let n of e)t.push(mN(n));return t}function aH(e){let t=[];for(let n of e)t.push(mN(n));return t}function sC(e){return{kind:Ft.Kind.NAMED_TYPE,name:mN(e)}}function uH(e){let t=[];for(let n of e)t.push(sC(n));return t}function cH(e){switch(e){case Ft.Kind.ARGUMENT:return Nr.ARGUMENT_DEFINITION_UPPER;case Ft.Kind.ENUM_TYPE_DEFINITION:case Ft.Kind.ENUM_TYPE_EXTENSION:return Nr.ENUM_UPPER;case Ft.Kind.ENUM_VALUE_DEFINITION:return Nr.ENUM_VALUE_UPPER;case Ft.Kind.FIELD_DEFINITION:return Nr.FIELD_DEFINITION_UPPER;case Ft.Kind.FRAGMENT_DEFINITION:return Nr.FRAGMENT_DEFINITION_UPPER;case Ft.Kind.FRAGMENT_SPREAD:return Nr.FRAGMENT_SPREAD_UPPER;case Ft.Kind.INLINE_FRAGMENT:return Nr.INLINE_FRAGMENT_UPPER;case Ft.Kind.INPUT_VALUE_DEFINITION:return Nr.INPUT_FIELD_DEFINITION_UPPER;case Ft.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ft.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Nr.INPUT_OBJECT_UPPER;case Ft.Kind.INTERFACE_TYPE_DEFINITION:case Ft.Kind.INTERFACE_TYPE_EXTENSION:return Nr.INTERFACE_UPPER;case Ft.Kind.OBJECT_TYPE_DEFINITION:case Ft.Kind.OBJECT_TYPE_EXTENSION:return Nr.OBJECT_UPPER;case Ft.Kind.SCALAR_TYPE_DEFINITION:case Ft.Kind.SCALAR_TYPE_EXTENSION:return Nr.SCALAR_UPPER;case Ft.Kind.SCHEMA_DEFINITION:case Ft.Kind.SCHEMA_EXTENSION:return Nr.SCHEMA_UPPER;case Ft.Kind.UNION_TYPE_DEFINITION:case Ft.Kind.UNION_TYPE_EXTENSION:return Nr.UNION_UPPER;default:return e}}or.operationTypeNodeToDefaultType=new Map([[Ft.OperationTypeNode.MUTATION,Nr.MUTATION],[Ft.OperationTypeNode.QUERY,Nr.QUERY],[Ft.OperationTypeNode.SUBSCRIPTION,Nr.SUBSCRIPTION]]);function lH(e){return e===Ft.Kind.INTERFACE_TYPE_DEFINITION||e===Ft.Kind.UNION_TYPE_DEFINITION}function dH(e,t){for(let n of e){let r=n.value;Nr.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function pH(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 K(k({},e),{value:t,block:!0})}function oC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function sO(e){let t=e.selections;return K(k({},e),{selections:t.sort((n,r)=>n.name.value.localeCompare(r.name.value)).map(n=>K(k({},n),{arguments:oC(n),selectionSet:n.selectionSet?sO(n.selectionSet):n.selectionSet}))})}function fH(e){return K(k({},e),{definitions:e.definitions.map(t=>t.kind!==wt.Kind.OPERATION_DEFINITION?t:K(k({},t),{selectionSet:sO(t.selectionSet)}))})}function aC(e){return(0,wt.parse)(e,{noLocation:!0})}function mH(e){try{return{documentNode:aC(e)}}catch(t){return{error:t}}}});var ds=V(St=>{"use strict";m();T();h();Object.defineProperty(St,"__esModule",{value:!0});St.maxOrScopes=void 0;St.areSetsEqual=TH;St.getAllMutualEntries=yH;St.getOrThrowError=NH;St.getAllSetDisparities=EH;St.getEntriesNotInHashSet=gH;St.doSetsIntersect=IH;St.subtractSourceSetFromTargetSet=vH;St.mapToArrayOfValues=_H;St.numberToOrdinal=bH;St.addIterableValuesToSet=dl;St.addSetsAndReturnMutationBoolean=uC;St.kindToTypeString=OH;St.kindToConvertedTypeString=SH;St.fieldDatasToSimpleFieldDatas=DH;St.isNodeLeaf=AH;St.newEntityInterfaceFederationData=RH;St.upsertEntityInterfaceFederationData=wH;St.getValueOrDefault=cC;St.newEntityData=lC;St.upsertEntityDataProperties=FH;St.upsertEntityData=LH;St.newFieldAuthorizationData=aO;St.resetAuthorizationData=PH;St.getAuthorizationDataToUpdate=kH;St.newAuthorizationData=xH;St.mergeAuthorizationDataByAND=pC;St.upsertFieldAuthorizationData=fC;St.upsertAuthorizationData=CH;St.upsertAuthorizationConfiguration=UH;St.setAndGetValue=MH;St.generateSimpleDirective=BH;St.generateRequiresScopesDirective=VH;St.isNodeKindInterface=jH;St.addMapEntries=$H;St.getSingleSetEntry=qH;St.add=KH;var Ze=(we(),xe(Me)),En=bi(),hH=co(),oO=Vi();function TH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function yH(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}function NH(e,t,n){let r=e.get(t);if(r===void 0)throw(0,hH.invalidKeyFatalError)(t,n);return r}function EH(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}function gH(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function IH(e,t){for(let n of e)if(t.has(n))return!0;return!1}function vH(e,t){for(let n of e)t.delete(n)}function _H(e){let t=[];for(let n of e.values())t.push(n);return t}function bH(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 dl(e,t){for(let n of e)t.add(n)}function uC(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}function OH(e){switch(e){case Ze.Kind.BOOLEAN:return En.BOOLEAN_SCALAR;case Ze.Kind.ENUM:case Ze.Kind.ENUM_TYPE_DEFINITION:return En.ENUM;case Ze.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Ze.Kind.ENUM_VALUE_DEFINITION:return En.ENUM_VALUE;case Ze.Kind.FIELD_DEFINITION:return En.FIELD;case Ze.Kind.FLOAT:return En.FLOAT_SCALAR;case Ze.Kind.INPUT_OBJECT_TYPE_DEFINITION:return En.INPUT_OBJECT;case Ze.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Ze.Kind.INPUT_VALUE_DEFINITION:return En.INPUT_VALUE;case Ze.Kind.INT:return En.INT_SCALAR;case Ze.Kind.INTERFACE_TYPE_DEFINITION:return En.INTERFACE;case Ze.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Ze.Kind.NULL:return En.NULL;case Ze.Kind.OBJECT:case Ze.Kind.OBJECT_TYPE_DEFINITION:return En.OBJECT;case Ze.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Ze.Kind.STRING:return En.STRING_SCALAR;case Ze.Kind.SCALAR_TYPE_DEFINITION:return En.SCALAR;case Ze.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Ze.Kind.UNION_TYPE_DEFINITION:return En.UNION;case Ze.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function SH(e){switch(e){case Ze.Kind.BOOLEAN:return En.BOOLEAN_SCALAR;case Ze.Kind.ENUM:case Ze.Kind.ENUM_TYPE_DEFINITION:case Ze.Kind.ENUM_TYPE_EXTENSION:return En.ENUM;case Ze.Kind.ENUM_VALUE_DEFINITION:return En.ENUM_VALUE;case Ze.Kind.FIELD_DEFINITION:return En.FIELD;case Ze.Kind.FLOAT:return En.FLOAT_SCALAR;case Ze.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ze.Kind.INPUT_OBJECT_TYPE_EXTENSION:return En.INPUT_OBJECT;case Ze.Kind.INPUT_VALUE_DEFINITION:return En.INPUT_VALUE;case Ze.Kind.INT:return En.INT_SCALAR;case Ze.Kind.INTERFACE_TYPE_DEFINITION:case Ze.Kind.INTERFACE_TYPE_EXTENSION:return En.INTERFACE;case Ze.Kind.NULL:return En.NULL;case Ze.Kind.OBJECT:case Ze.Kind.OBJECT_TYPE_DEFINITION:case Ze.Kind.OBJECT_TYPE_EXTENSION:return En.OBJECT;case Ze.Kind.STRING:return En.STRING_SCALAR;case Ze.Kind.SCALAR_TYPE_DEFINITION:case Ze.Kind.SCALAR_TYPE_EXTENSION:return En.SCALAR;case Ze.Kind.UNION_TYPE_DEFINITION:case Ze.Kind.UNION_TYPE_EXTENSION:return En.UNION;default:return e}}function DH(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function AH(e){if(!e)return!0;switch(e){case Ze.Kind.OBJECT_TYPE_DEFINITION:case Ze.Kind.INTERFACE_TYPE_DEFINITION:case Ze.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function RH(e,t){return k({fieldDatasBySubgraphName:new Map().set(t,e.fieldDatas),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}function wH(e,t,n){return e.fieldDatasBySubgraphName.set(n,t.fieldDatas),dl(t.interfaceFieldNames,e.interfaceFieldNames),dl(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?uC(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}function cC(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function lC(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}function dC(e,t){dl(e.fieldNames||[],t.fieldNames),dl(e.keyFieldSets||[],t.keyFieldSets),dl(e.subgraphNames||[],t.subgraphNames)}function FH(e,t){let n=e.get(t.typeName);n?dC(t,n):e.set(t.typeName,lC(t))}function LH(e,t){let n=e.get(t.typeName);n?dC(t,n):e.set(t.typeName,t)}function aO(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}function PH(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}function kH(e,t,n){return t.kind===Ze.Kind.FIELD_DEFINITION?cC(e.fieldAuthorizationDataByFieldName,n,()=>aO(n)):(e.hasParentLevelAuthorization=!0,e)}function xH(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}St.maxOrScopes=16;function pC(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>St.maxOrScopes)return!1;for(let s of e.requiredScopes)t.requiredScopes.push(new Set(s));return!0}if(n*r>St.maxOrScopes)return!1;let i=[];for(let s of t.requiredScopes)for(let o of e.requiredScopes){let u=new Set(s);dl(o,u),i.push(u)}return t.requiredScopes=i,!0}function fC(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>St.maxOrScopes)return!1;let i=aO(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let s of t.requiredScopes)i.requiredScopes.push(new Set(s));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),pC(t,r)}function CH(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,s]of t.fieldAuthorizationDataByFieldName)fC(r.fieldAuthorizationDataByFieldName,s)||n.add(`${t.typeName}.${i}`)}function UH(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let s=`${n}.${r}`,o=e.get(s);o?(o.requiresAuthentication=i.requiresAuthentication,o.requiredScopes=i.requiredScopes.map(u=>[...u])):e.set(s,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(u=>[...u])})}}function MH(e,t,n){return e.set(t,n),n}function BH(e){return{kind:Ze.Kind.DIRECTIVE,name:(0,oO.stringToNameNode)(e)}}function VH(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Ze.Kind.STRING,value:i});t.push({kind:Ze.Kind.LIST,values:r})}return{kind:Ze.Kind.DIRECTIVE,name:(0,oO.stringToNameNode)(En.REQUIRES_SCOPES),arguments:[{kind:Ze.Kind.ARGUMENT,name:(0,oO.stringToNameNode)(En.SCOPES),value:{kind:Ze.Kind.LIST,values:t}}]}}function jH(e){return e===Ze.Kind.INTERFACE_TYPE_DEFINITION||e===Ze.Kind.INTERFACE_TYPE_EXTENSION}function $H(e,t){for(let[n,r]of e)t.set(n,r)}function qH(e){for(let t of e)return t}function KH(e,t){return e.has(t)?!1:(e.add(t),!0)}});var $m=V(Hd=>{"use strict";m();T();h();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.MAX_SUBSCRIPTION_FILTER_DEPTH=Hd.MAXIMUM_TYPE_NESTING=void 0;Hd.MAXIMUM_TYPE_NESTING=30;Hd.MAX_SUBSCRIPTION_FILTER_DEPTH=5});var co=V(Z=>{"use strict";m();T();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.invalidEventProviderIdErrorMessage=Z.invalidNatsStreamConfigurationDefinitionErrorMessage=Z.undefinedNatsStreamConfigurationInputErrorMessage=Z.invalidEdfsPublishResultObjectErrorMessage=Z.invalidNatsStreamInputErrorMessage=Z.inlineFragmentInFieldSetErrorMessage=Z.inaccessibleQueryRootTypeError=Z.noQueryRootTypeError=Z.federationFactoryInitializationFatalError=Z.subgraphValidationFailureError=Z.minimumSubgraphRequirementError=void 0;Z.multipleNamedTypeDefinitionError=YH;Z.incompatibleExtensionError=JH;Z.incompatibleArgumentTypesError=zH;Z.incompatibleInputValueDefaultValueTypeError=HH;Z.incompatibleChildTypesError=WH;Z.incompatibleInputValueDefaultValuesError=XH;Z.incompatibleSharedEnumError=ZH;Z.incompatibleExtensionKindsError=e8;Z.invalidSubgraphNamesError=t8;Z.duplicateDirectiveDefinitionError=n8;Z.duplicateEnumValueDefinitionError=r8;Z.duplicateFieldDefinitionError=i8;Z.duplicateInputFieldDefinitionError=s8;Z.duplicateImplementedInterfaceError=o8;Z.duplicateUnionMemberDefinitionError=a8;Z.duplicateTypeDefinitionError=u8;Z.duplicateOperationTypeDefinitionError=c8;Z.noBaseDefinitionForExtensionError=l8;Z.noBaseScalarDefinitionError=d8;Z.noDefinedUnionMembersError=p8;Z.noDefinedEnumValuesError=f8;Z.operationDefinitionError=m8;Z.invalidFieldShareabilityError=h8;Z.undefinedDirectiveErrorMessage=T8;Z.undefinedTypeError=y8;Z.invalidRepeatedDirectiveErrorMessage=N8;Z.invalidRepeatedFederatedDirectiveErrorMessage=E8;Z.invalidDirectiveError=g8;Z.invalidDirectiveLocationErrorMessage=I8;Z.unexpectedDirectiveArgumentsErrorMessage=v8;Z.undefinedRequiredArgumentsErrorMessage=_8;Z.unexpectedDirectiveArgumentErrorMessage=b8;Z.duplicateDirectiveArgumentDefinitionsErrorMessage=O8;Z.invalidDirectiveArgumentTypeErrorMessage=S8;Z.invalidKeyDirectiveArgumentErrorMessage=D8;Z.invalidKeyDirectivesError=A8;Z.maximumTypeNestingExceededError=R8;Z.unexpectedKindFatalError=w8;Z.incompatibleParentKindFatalError=F8;Z.unexpectedEdgeFatalError=L8;Z.incompatibleParentKindMergeError=P8;Z.fieldTypeMergeFatalError=k8;Z.unexpectedDirectiveLocationError=x8;Z.unexpectedTypeNodeKindFatalError=C8;Z.invalidKeyFatalError=U8;Z.invalidConfigurationResultFatalError=M8;Z.unexpectedParentKindErrorMessage=B8;Z.unexpectedParentKindForChildError=V8;Z.subgraphValidationError=j8;Z.invalidSubgraphNameErrorMessage=$8;Z.invalidOperationTypeDefinitionError=q8;Z.invalidRootTypeDefinitionError=K8;Z.subgraphInvalidSyntaxError=G8;Z.invalidInterfaceImplementationError=Q8;Z.invalidRequiredInputValueError=Y8;Z.duplicateArgumentsError=J8;Z.invalidArgumentsError=z8;Z.expectedEntityError=H8;Z.abstractTypeInKeyFieldSetErrorMessage=W8;Z.unknownTypeInFieldSetErrorMessage=X8;Z.invalidSelectionSetErrorMessage=Z8;Z.invalidSelectionSetDefinitionErrorMessage=eW;Z.undefinedFieldInFieldSetErrorMessage=tW;Z.unparsableFieldSetErrorMessage=nW;Z.unparsableFieldSetSelectionErrorMessage=rW;Z.undefinedObjectLikeParentError=iW;Z.unexpectedArgumentErrorMessage=sW;Z.argumentsInKeyFieldSetErrorMessage=oW;Z.invalidProvidesOrRequiresDirectivesError=aW;Z.duplicateFieldInFieldSetErrorMessage=uW;Z.invalidConfigurationDataErrorMessage=cW;Z.unknownProvidedObjectErrorMessage=lW;Z.invalidInlineFragmentTypeErrorMessage=dW;Z.inlineFragmentWithoutTypeConditionErrorMessage=pW;Z.unknownInlineFragmentTypeConditionErrorMessage=fW;Z.invalidInlineFragmentTypeConditionTypeErrorMessage=mW;Z.invalidInlineFragmentTypeConditionErrorMessage=hW;Z.invalidSelectionOnUnionErrorMessage=TW;Z.duplicateOverriddenFieldErrorMessage=yW;Z.duplicateOverriddenFieldsError=NW;Z.noFieldDefinitionsError=EW;Z.noInputValueDefinitionsError=gW;Z.allChildDefinitionsAreInaccessibleError=IW;Z.equivalentSourceAndTargetOverrideErrorMessage=vW;Z.undefinedEntityInterfaceImplementationsError=_W;Z.orScopesLimitError=bW;Z.invalidEventDrivenGraphError=OW;Z.invalidRootTypeFieldEventsDirectivesErrorMessage=SW;Z.invalidEventDrivenMutationResponseTypeErrorMessage=DW;Z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=AW;Z.invalidNatsStreamInputFieldsErrorMessage=RW;Z.invalidKeyFieldSetsEventDrivenErrorMessage=wW;Z.nonExternalKeyFieldNamesEventDrivenErrorMessage=FW;Z.nonKeyFieldNamesEventDrivenErrorMessage=LW;Z.nonEntityObjectExtensionsEventDrivenErrorMessage=PW;Z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=kW;Z.invalidEdfsDirectiveName=xW;Z.invalidImplementedTypeError=CW;Z.selfImplementationError=UW;Z.invalidEventSubjectErrorMessage=MW;Z.invalidEventSubjectsErrorMessage=BW;Z.invalidEventSubjectsItemErrorMessage=VW;Z.invalidEventDirectiveError=jW;Z.invalidReferencesOfInaccessibleTypeError=$W;Z.inaccessibleRequiredArgumentError=qW;Z.invalidUnionMemberTypeError=KW;Z.invalidRootTypeError=GW;Z.invalidSubscriptionFilterLocationError=QW;Z.invalidSubscriptionFilterDirectiveError=YW;Z.subscriptionFilterNamedTypeErrorMessage=JW;Z.subscriptionFilterConditionDepthExceededErrorMessage=zW;Z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=HW;Z.subscriptionFilterConditionInvalidInputFieldErrorMessage=WW;Z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=XW;Z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=ZW;Z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=eX;Z.invalidInputFieldTypeErrorMessage=tX;Z.subscriptionFieldConditionInvalidInputFieldErrorMessage=nX;Z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=rX;Z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=iX;Z.unknownFieldSubgraphNameError=sX;Z.invalidSubscriptionFieldConditionFieldPathErrorMessage=oX;Z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=aX;Z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=uX;Z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=cX;Z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=lX;Z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=dX;Z.unresolvablePathError=pX;Z.allExternalFieldInstancesError=fX;Z.externalInterfaceFieldsError=mX;Z.nonExternalConditionalFieldError=hX;var GH=Vi(),QH=(we(),xe(Me)),qm=ds(),It=bi(),mC=$m();Z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function YH(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". +`))}return K(k({},e),{value:t,block:!0})}function oC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function sO(e){let t=e.selections;return K(k({},e),{selections:t.sort((n,r)=>n.name.value.localeCompare(r.name.value)).map(n=>K(k({},n),{arguments:oC(n),selectionSet:n.selectionSet?sO(n.selectionSet):n.selectionSet}))})}function fH(e){return K(k({},e),{definitions:e.definitions.map(t=>t.kind!==Ft.Kind.OPERATION_DEFINITION?t:K(k({},t),{selectionSet:sO(t.selectionSet)}))})}function aC(e){return(0,Ft.parse)(e,{noLocation:!0})}function mH(e){try{return{documentNode:aC(e)}}catch(t){return{error:t}}}});var ds=V(St=>{"use strict";m();T();h();Object.defineProperty(St,"__esModule",{value:!0});St.maxOrScopes=void 0;St.areSetsEqual=TH;St.getAllMutualEntries=yH;St.getOrThrowError=NH;St.getAllSetDisparities=EH;St.getEntriesNotInHashSet=gH;St.doSetsIntersect=IH;St.subtractSourceSetFromTargetSet=vH;St.mapToArrayOfValues=_H;St.numberToOrdinal=bH;St.addIterableValuesToSet=dl;St.addSetsAndReturnMutationBoolean=uC;St.kindToTypeString=OH;St.kindToConvertedTypeString=SH;St.fieldDatasToSimpleFieldDatas=DH;St.isNodeLeaf=AH;St.newEntityInterfaceFederationData=RH;St.upsertEntityInterfaceFederationData=FH;St.getValueOrDefault=cC;St.newEntityData=lC;St.upsertEntityDataProperties=wH;St.upsertEntityData=LH;St.newFieldAuthorizationData=aO;St.resetAuthorizationData=PH;St.getAuthorizationDataToUpdate=kH;St.newAuthorizationData=xH;St.mergeAuthorizationDataByAND=pC;St.upsertFieldAuthorizationData=fC;St.upsertAuthorizationData=CH;St.upsertAuthorizationConfiguration=UH;St.setAndGetValue=MH;St.generateSimpleDirective=BH;St.generateRequiresScopesDirective=VH;St.isNodeKindInterface=jH;St.addMapEntries=$H;St.getSingleSetEntry=qH;St.add=KH;var Ze=(Fe(),xe(Me)),En=bi(),hH=co(),oO=Vi();function TH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function yH(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}function NH(e,t,n){let r=e.get(t);if(r===void 0)throw(0,hH.invalidKeyFatalError)(t,n);return r}function EH(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}function gH(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function IH(e,t){for(let n of e)if(t.has(n))return!0;return!1}function vH(e,t){for(let n of e)t.delete(n)}function _H(e){let t=[];for(let n of e.values())t.push(n);return t}function bH(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 dl(e,t){for(let n of e)t.add(n)}function uC(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}function OH(e){switch(e){case Ze.Kind.BOOLEAN:return En.BOOLEAN_SCALAR;case Ze.Kind.ENUM:case Ze.Kind.ENUM_TYPE_DEFINITION:return En.ENUM;case Ze.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Ze.Kind.ENUM_VALUE_DEFINITION:return En.ENUM_VALUE;case Ze.Kind.FIELD_DEFINITION:return En.FIELD;case Ze.Kind.FLOAT:return En.FLOAT_SCALAR;case Ze.Kind.INPUT_OBJECT_TYPE_DEFINITION:return En.INPUT_OBJECT;case Ze.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Ze.Kind.INPUT_VALUE_DEFINITION:return En.INPUT_VALUE;case Ze.Kind.INT:return En.INT_SCALAR;case Ze.Kind.INTERFACE_TYPE_DEFINITION:return En.INTERFACE;case Ze.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Ze.Kind.NULL:return En.NULL;case Ze.Kind.OBJECT:case Ze.Kind.OBJECT_TYPE_DEFINITION:return En.OBJECT;case Ze.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Ze.Kind.STRING:return En.STRING_SCALAR;case Ze.Kind.SCALAR_TYPE_DEFINITION:return En.SCALAR;case Ze.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Ze.Kind.UNION_TYPE_DEFINITION:return En.UNION;case Ze.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function SH(e){switch(e){case Ze.Kind.BOOLEAN:return En.BOOLEAN_SCALAR;case Ze.Kind.ENUM:case Ze.Kind.ENUM_TYPE_DEFINITION:case Ze.Kind.ENUM_TYPE_EXTENSION:return En.ENUM;case Ze.Kind.ENUM_VALUE_DEFINITION:return En.ENUM_VALUE;case Ze.Kind.FIELD_DEFINITION:return En.FIELD;case Ze.Kind.FLOAT:return En.FLOAT_SCALAR;case Ze.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ze.Kind.INPUT_OBJECT_TYPE_EXTENSION:return En.INPUT_OBJECT;case Ze.Kind.INPUT_VALUE_DEFINITION:return En.INPUT_VALUE;case Ze.Kind.INT:return En.INT_SCALAR;case Ze.Kind.INTERFACE_TYPE_DEFINITION:case Ze.Kind.INTERFACE_TYPE_EXTENSION:return En.INTERFACE;case Ze.Kind.NULL:return En.NULL;case Ze.Kind.OBJECT:case Ze.Kind.OBJECT_TYPE_DEFINITION:case Ze.Kind.OBJECT_TYPE_EXTENSION:return En.OBJECT;case Ze.Kind.STRING:return En.STRING_SCALAR;case Ze.Kind.SCALAR_TYPE_DEFINITION:case Ze.Kind.SCALAR_TYPE_EXTENSION:return En.SCALAR;case Ze.Kind.UNION_TYPE_DEFINITION:case Ze.Kind.UNION_TYPE_EXTENSION:return En.UNION;default:return e}}function DH(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function AH(e){if(!e)return!0;switch(e){case Ze.Kind.OBJECT_TYPE_DEFINITION:case Ze.Kind.INTERFACE_TYPE_DEFINITION:case Ze.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function RH(e,t){return k({fieldDatasBySubgraphName:new Map().set(t,e.fieldDatas),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}function FH(e,t,n){return e.fieldDatasBySubgraphName.set(n,t.fieldDatas),dl(t.interfaceFieldNames,e.interfaceFieldNames),dl(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?uC(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}function cC(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function lC(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}function dC(e,t){dl(e.fieldNames||[],t.fieldNames),dl(e.keyFieldSets||[],t.keyFieldSets),dl(e.subgraphNames||[],t.subgraphNames)}function wH(e,t){let n=e.get(t.typeName);n?dC(t,n):e.set(t.typeName,lC(t))}function LH(e,t){let n=e.get(t.typeName);n?dC(t,n):e.set(t.typeName,t)}function aO(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}function PH(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}function kH(e,t,n){return t.kind===Ze.Kind.FIELD_DEFINITION?cC(e.fieldAuthorizationDataByFieldName,n,()=>aO(n)):(e.hasParentLevelAuthorization=!0,e)}function xH(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}St.maxOrScopes=16;function pC(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>St.maxOrScopes)return!1;for(let s of e.requiredScopes)t.requiredScopes.push(new Set(s));return!0}if(n*r>St.maxOrScopes)return!1;let i=[];for(let s of t.requiredScopes)for(let o of e.requiredScopes){let u=new Set(s);dl(o,u),i.push(u)}return t.requiredScopes=i,!0}function fC(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>St.maxOrScopes)return!1;let i=aO(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let s of t.requiredScopes)i.requiredScopes.push(new Set(s));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),pC(t,r)}function CH(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,s]of t.fieldAuthorizationDataByFieldName)fC(r.fieldAuthorizationDataByFieldName,s)||n.add(`${t.typeName}.${i}`)}function UH(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let s=`${n}.${r}`,o=e.get(s);o?(o.requiresAuthentication=i.requiresAuthentication,o.requiredScopes=i.requiredScopes.map(u=>[...u])):e.set(s,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(u=>[...u])})}}function MH(e,t,n){return e.set(t,n),n}function BH(e){return{kind:Ze.Kind.DIRECTIVE,name:(0,oO.stringToNameNode)(e)}}function VH(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Ze.Kind.STRING,value:i});t.push({kind:Ze.Kind.LIST,values:r})}return{kind:Ze.Kind.DIRECTIVE,name:(0,oO.stringToNameNode)(En.REQUIRES_SCOPES),arguments:[{kind:Ze.Kind.ARGUMENT,name:(0,oO.stringToNameNode)(En.SCOPES),value:{kind:Ze.Kind.LIST,values:t}}]}}function jH(e){return e===Ze.Kind.INTERFACE_TYPE_DEFINITION||e===Ze.Kind.INTERFACE_TYPE_EXTENSION}function $H(e,t){for(let[n,r]of e)t.set(n,r)}function qH(e){for(let t of e)return t}function KH(e,t){return e.has(t)?!1:(e.add(t),!0)}});var $m=V(Hd=>{"use strict";m();T();h();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.MAX_SUBSCRIPTION_FILTER_DEPTH=Hd.MAXIMUM_TYPE_NESTING=void 0;Hd.MAXIMUM_TYPE_NESTING=30;Hd.MAX_SUBSCRIPTION_FILTER_DEPTH=5});var co=V(Z=>{"use strict";m();T();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.invalidEventProviderIdErrorMessage=Z.invalidNatsStreamConfigurationDefinitionErrorMessage=Z.undefinedNatsStreamConfigurationInputErrorMessage=Z.invalidEdfsPublishResultObjectErrorMessage=Z.invalidNatsStreamInputErrorMessage=Z.inlineFragmentInFieldSetErrorMessage=Z.inaccessibleQueryRootTypeError=Z.noQueryRootTypeError=Z.federationFactoryInitializationFatalError=Z.subgraphValidationFailureError=Z.minimumSubgraphRequirementError=void 0;Z.multipleNamedTypeDefinitionError=YH;Z.incompatibleExtensionError=JH;Z.incompatibleArgumentTypesError=zH;Z.incompatibleInputValueDefaultValueTypeError=HH;Z.incompatibleChildTypesError=WH;Z.incompatibleInputValueDefaultValuesError=XH;Z.incompatibleSharedEnumError=ZH;Z.incompatibleExtensionKindsError=e8;Z.invalidSubgraphNamesError=t8;Z.duplicateDirectiveDefinitionError=n8;Z.duplicateEnumValueDefinitionError=r8;Z.duplicateFieldDefinitionError=i8;Z.duplicateInputFieldDefinitionError=s8;Z.duplicateImplementedInterfaceError=o8;Z.duplicateUnionMemberDefinitionError=a8;Z.duplicateTypeDefinitionError=u8;Z.duplicateOperationTypeDefinitionError=c8;Z.noBaseDefinitionForExtensionError=l8;Z.noBaseScalarDefinitionError=d8;Z.noDefinedUnionMembersError=p8;Z.noDefinedEnumValuesError=f8;Z.operationDefinitionError=m8;Z.invalidFieldShareabilityError=h8;Z.undefinedDirectiveErrorMessage=T8;Z.undefinedTypeError=y8;Z.invalidRepeatedDirectiveErrorMessage=N8;Z.invalidRepeatedFederatedDirectiveErrorMessage=E8;Z.invalidDirectiveError=g8;Z.invalidDirectiveLocationErrorMessage=I8;Z.unexpectedDirectiveArgumentsErrorMessage=v8;Z.undefinedRequiredArgumentsErrorMessage=_8;Z.unexpectedDirectiveArgumentErrorMessage=b8;Z.duplicateDirectiveArgumentDefinitionsErrorMessage=O8;Z.invalidDirectiveArgumentTypeErrorMessage=S8;Z.invalidKeyDirectiveArgumentErrorMessage=D8;Z.invalidKeyDirectivesError=A8;Z.maximumTypeNestingExceededError=R8;Z.unexpectedKindFatalError=F8;Z.incompatibleParentKindFatalError=w8;Z.unexpectedEdgeFatalError=L8;Z.incompatibleParentKindMergeError=P8;Z.fieldTypeMergeFatalError=k8;Z.unexpectedDirectiveLocationError=x8;Z.unexpectedTypeNodeKindFatalError=C8;Z.invalidKeyFatalError=U8;Z.invalidConfigurationResultFatalError=M8;Z.unexpectedParentKindErrorMessage=B8;Z.unexpectedParentKindForChildError=V8;Z.subgraphValidationError=j8;Z.invalidSubgraphNameErrorMessage=$8;Z.invalidOperationTypeDefinitionError=q8;Z.invalidRootTypeDefinitionError=K8;Z.subgraphInvalidSyntaxError=G8;Z.invalidInterfaceImplementationError=Q8;Z.invalidRequiredInputValueError=Y8;Z.duplicateArgumentsError=J8;Z.invalidArgumentsError=z8;Z.expectedEntityError=H8;Z.abstractTypeInKeyFieldSetErrorMessage=W8;Z.unknownTypeInFieldSetErrorMessage=X8;Z.invalidSelectionSetErrorMessage=Z8;Z.invalidSelectionSetDefinitionErrorMessage=eW;Z.undefinedFieldInFieldSetErrorMessage=tW;Z.unparsableFieldSetErrorMessage=nW;Z.unparsableFieldSetSelectionErrorMessage=rW;Z.undefinedObjectLikeParentError=iW;Z.unexpectedArgumentErrorMessage=sW;Z.argumentsInKeyFieldSetErrorMessage=oW;Z.invalidProvidesOrRequiresDirectivesError=aW;Z.duplicateFieldInFieldSetErrorMessage=uW;Z.invalidConfigurationDataErrorMessage=cW;Z.unknownProvidedObjectErrorMessage=lW;Z.invalidInlineFragmentTypeErrorMessage=dW;Z.inlineFragmentWithoutTypeConditionErrorMessage=pW;Z.unknownInlineFragmentTypeConditionErrorMessage=fW;Z.invalidInlineFragmentTypeConditionTypeErrorMessage=mW;Z.invalidInlineFragmentTypeConditionErrorMessage=hW;Z.invalidSelectionOnUnionErrorMessage=TW;Z.duplicateOverriddenFieldErrorMessage=yW;Z.duplicateOverriddenFieldsError=NW;Z.noFieldDefinitionsError=EW;Z.noInputValueDefinitionsError=gW;Z.allChildDefinitionsAreInaccessibleError=IW;Z.equivalentSourceAndTargetOverrideErrorMessage=vW;Z.undefinedEntityInterfaceImplementationsError=_W;Z.orScopesLimitError=bW;Z.invalidEventDrivenGraphError=OW;Z.invalidRootTypeFieldEventsDirectivesErrorMessage=SW;Z.invalidEventDrivenMutationResponseTypeErrorMessage=DW;Z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=AW;Z.invalidNatsStreamInputFieldsErrorMessage=RW;Z.invalidKeyFieldSetsEventDrivenErrorMessage=FW;Z.nonExternalKeyFieldNamesEventDrivenErrorMessage=wW;Z.nonKeyFieldNamesEventDrivenErrorMessage=LW;Z.nonEntityObjectExtensionsEventDrivenErrorMessage=PW;Z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=kW;Z.invalidEdfsDirectiveName=xW;Z.invalidImplementedTypeError=CW;Z.selfImplementationError=UW;Z.invalidEventSubjectErrorMessage=MW;Z.invalidEventSubjectsErrorMessage=BW;Z.invalidEventSubjectsItemErrorMessage=VW;Z.invalidEventDirectiveError=jW;Z.invalidReferencesOfInaccessibleTypeError=$W;Z.inaccessibleRequiredArgumentError=qW;Z.invalidUnionMemberTypeError=KW;Z.invalidRootTypeError=GW;Z.invalidSubscriptionFilterLocationError=QW;Z.invalidSubscriptionFilterDirectiveError=YW;Z.subscriptionFilterNamedTypeErrorMessage=JW;Z.subscriptionFilterConditionDepthExceededErrorMessage=zW;Z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=HW;Z.subscriptionFilterConditionInvalidInputFieldErrorMessage=WW;Z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=XW;Z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=ZW;Z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=eX;Z.invalidInputFieldTypeErrorMessage=tX;Z.subscriptionFieldConditionInvalidInputFieldErrorMessage=nX;Z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=rX;Z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=iX;Z.unknownFieldSubgraphNameError=sX;Z.invalidSubscriptionFieldConditionFieldPathErrorMessage=oX;Z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=aX;Z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=uX;Z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=cX;Z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=lX;Z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=dX;Z.unresolvablePathError=pX;Z.allExternalFieldInstancesError=fX;Z.externalInterfaceFieldsError=mX;Z.nonExternalConditionalFieldError=hX;var GH=Vi(),QH=(Fe(),xe(Me)),qm=ds(),It=bi(),mC=$m();Z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function YH(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 JH(e,t,n){return new Error(`Extension error: Incompatible types: "${e}" is type "${t}", but an extension of the same name is type "${n}.`)}function zH(e,t,n,r){return new Error(`Incompatible types when merging two instances of argument "${e}" on path "${t}": Expected type "${n}" but received "${r}"`)}function HH(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 WH(e,t,n){return new Error(`Incompatible types when merging two instances of "${e}": @@ -212,7 +212,7 @@ If an instance defines a default value, that default value must be consistently However, the same directive declared on "${t}" defines ${r} argument`+(r>1?"s.":".")}function _8(e,t,n,r=[]){let i=` The definition for the directive "${e}" defines the following `+n.length+" required argument"+(n.length>1?"s: ":": ")+'"'+n.join('", "')+`". However, the same directive that is declared on "${t}" does not define`;return r.length<1?i+" any arguments.":i+" the following required argument"+(r.length>1?"s":"")+': "'+r.join(It.QUOTATION_JOIN)+'".'}function b8(e,t){return` The definition for the directive "${e}" does not define the following provided argument`+(t.length>1?"s":"")+': "'+t.join(It.QUOTATION_JOIN)+'".'}function O8(e,t,n){return` The directive "${e}" that is declared on "${t}" defines the following argument`+(n.length>1?"s":"")+' more than once: "'+n.join(It.QUOTATION_JOIN)+'"'}function S8(e,t,n,r){return` The ${e?"required ":""}argument "${t} must be type "${n}" and not type "${r}".`}function D8(e){return` The required argument named "fields" must be type "String" and not type "${e}".`}function A8(e,t){return new Error(`The entity "${e}" defines the following invalid "key" directive`+(t.length>1?"s":"")+`: `+t.join(` -`))}function R8(e){return new Error(` The type defined at path "${e}" has more than ${mC.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function w8(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function F8(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,qm.kindToTypeString)(t)} but received "${(0,qm.kindToTypeString)(n)}".`)}function L8(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: +`))}function R8(e){return new Error(` The type defined at path "${e}" has more than ${mC.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function F8(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function w8(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,qm.kindToTypeString)(t)} but received "${(0,qm.kindToTypeString)(n)}".`)}function L8(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: " ${t.join(It.QUOTATION_JOIN)}".`)}function P8(e,t,n){return new Error(` When merging types, expected "${e}" to be type "${t}" but received "${n}".`)}function k8(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}function x8(e){return new Error(`Fatal: Unknown directive location "${e}".`)}function C8(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 U8(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}function M8(e){return new Error(`Fatal: Expected either errors or configurations for the path ${e}" but received neither".`)}Z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");Z.federationFactoryInitializationFatalError=new Error("Fatal: FederationFactory was unsuccessfully initialized.");function B8(e,t,n){return` Expected "${e}" to be type ${t} but received "${n}".`}function V8(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 j8(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 $8(e,t){return`The ${(0,qm.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function q8(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. @@ -323,9 +323,9 @@ Moreover, only fields that compose part of an entity's (composite) key and are d }`;function RW(e,t,n,r){let i=Z.invalidNatsStreamInputErrorMessage,s=[];return e.length>0&&s.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(It.QUOTATION_JOIN)+'".'),t.length>0&&s.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(It.QUOTATION_JOIN)+'".'),n.length>0&&s.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(It.QUOTATION_JOIN)+'".'),r.length>0&&s.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(It.QUOTATION_JOIN)+'".'),i+=` However, the provided input was invalid for the following reason`+(s.length>1?"s":"")+`: `+s.join(` - `),i}function wW(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: + `),i}function FW(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: "`+r.join(It.QUOTATION_JOIN)+`" -`;return t}function FW(e){let t=" The following field"+(e.size>1?"s":"")+` compose part of an entity's primary key but are not declared "@external": +`;return t}function wW(e){let t=" The following field"+(e.size>1?"s":"")+` compose part of an entity's primary key but are not declared "@external": `;for(let[n,r]of e)t+=` field "${r}" defined on path "${n}" `;return t}function LW(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: `;for(let[n,r]of e)t+=` Field "${r}" defined on path "${n}" @@ -386,15 +386,15 @@ This is because: Interface fields should not be declared @external. This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function hX(e,t,n,r,i){return new Error(`The field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}});var EC=V(NC=>{"use strict";m();T();h();Object.defineProperty(NC,"__esModule",{value:!0})});var Ca=V(Si=>{"use strict";m();T();h();Object.defineProperty(Si,"__esModule",{value:!0});Si.getMutableDirectiveDefinitionNode=yX;Si.getMutableEnumNode=NX;Si.getMutableEnumValueNode=EX;Si.getMutableFieldNode=gX;Si.getMutableInputObjectNode=IX;Si.getMutableInputValueNode=vX;Si.getMutableInterfaceNode=_X;Si.getMutableObjectNode=bX;Si.getMutableObjectExtensionNode=OX;Si.getMutableScalarNode=SX;Si.getMutableTypeNode=cO;Si.getMutableUnionNode=DX;Si.getTypeNodeNamedTypeName=lO;var Oi=(we(),xe(Me)),Wd=Vi(),gC=co(),TX=$m();function yX(e){return{arguments:[],kind:e.kind,locations:[],name:k({},e.name),repeatable:e.repeatable,description:(0,Wd.formatDescription)(e.description)}}function NX(e){return{kind:Oi.Kind.ENUM_TYPE_DEFINITION,name:k({},e)}}function EX(e){return{directives:[],kind:e.kind,name:k({},e.name),description:(0,Wd.formatDescription)(e.description)}}function gX(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:k({},e.name),type:cO(e.type,t,n),description:(0,Wd.formatDescription)(e.description)}}function IX(e){return{kind:Oi.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:k({},e)}}function vX(e,t,n){return{directives:[],kind:e.kind,name:k({},e.name),type:cO(e.type,t,n),defaultValue:e.defaultValue,description:(0,Wd.formatDescription)(e.description)}}function _X(e){return{kind:Oi.Kind.INTERFACE_TYPE_DEFINITION,name:k({},e)}}function bX(e){return{kind:Oi.Kind.OBJECT_TYPE_DEFINITION,name:k({},e)}}function OX(e){let t=e.kind===Oi.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Oi.Kind.OBJECT_TYPE_EXTENSION,name:k({},e.name),description:(0,Wd.formatDescription)(t)}}function SX(e){return{kind:Oi.Kind.SCALAR_TYPE_DEFINITION,name:k({},e)}}function cO(e,t,n){let r={kind:e.kind},i=r;for(let s=0;s{"use strict";m();T();h();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.versionInfo=Xd.version=void 0;var AX="16.9.0";Xd.version=AX;var RX=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Xd.versionInfo=RX});var Di=V(dO=>{"use strict";m();T();h();Object.defineProperty(dO,"__esModule",{value:!0});dO.devAssert=wX;function wX(e,t){if(!!!e)throw new Error(t)}});var TN=V(pO=>{"use strict";m();T();h();Object.defineProperty(pO,"__esModule",{value:!0});pO.isPromise=FX;function FX(e){return typeof(e==null?void 0:e.then)=="function"}});var $o=V(fO=>{"use strict";m();T();h();Object.defineProperty(fO,"__esModule",{value:!0});fO.isObjectLike=LX;function LX(e){return typeof e=="object"&&e!==null}});var ci=V(mO=>{"use strict";m();T();h();Object.defineProperty(mO,"__esModule",{value:!0});mO.invariant=PX;function PX(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var yN=V(hO=>{"use strict";m();T();h();Object.defineProperty(hO,"__esModule",{value:!0});hO.getLocation=CX;var kX=ci(),xX=/\r\n|[\n\r]/g;function CX(e,t){let n=0,r=1;for(let i of e.body.matchAll(xX)){if(typeof i.index=="number"||(0,kX.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var TO=V(NN=>{"use strict";m();T();h();Object.defineProperty(NN,"__esModule",{value:!0});NN.printLocation=MX;NN.printSourceLocation=_C;var UX=yN();function MX(e){return _C(e.source,(0,UX.getLocation)(e.source,e.start))}function _C(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}});var EC=V(NC=>{"use strict";m();T();h();Object.defineProperty(NC,"__esModule",{value:!0})});var Ca=V(Si=>{"use strict";m();T();h();Object.defineProperty(Si,"__esModule",{value:!0});Si.getMutableDirectiveDefinitionNode=yX;Si.getMutableEnumNode=NX;Si.getMutableEnumValueNode=EX;Si.getMutableFieldNode=gX;Si.getMutableInputObjectNode=IX;Si.getMutableInputValueNode=vX;Si.getMutableInterfaceNode=_X;Si.getMutableObjectNode=bX;Si.getMutableObjectExtensionNode=OX;Si.getMutableScalarNode=SX;Si.getMutableTypeNode=cO;Si.getMutableUnionNode=DX;Si.getTypeNodeNamedTypeName=lO;var Oi=(Fe(),xe(Me)),Wd=Vi(),gC=co(),TX=$m();function yX(e){return{arguments:[],kind:e.kind,locations:[],name:k({},e.name),repeatable:e.repeatable,description:(0,Wd.formatDescription)(e.description)}}function NX(e){return{kind:Oi.Kind.ENUM_TYPE_DEFINITION,name:k({},e)}}function EX(e){return{directives:[],kind:e.kind,name:k({},e.name),description:(0,Wd.formatDescription)(e.description)}}function gX(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:k({},e.name),type:cO(e.type,t,n),description:(0,Wd.formatDescription)(e.description)}}function IX(e){return{kind:Oi.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:k({},e)}}function vX(e,t,n){return{directives:[],kind:e.kind,name:k({},e.name),type:cO(e.type,t,n),defaultValue:e.defaultValue,description:(0,Wd.formatDescription)(e.description)}}function _X(e){return{kind:Oi.Kind.INTERFACE_TYPE_DEFINITION,name:k({},e)}}function bX(e){return{kind:Oi.Kind.OBJECT_TYPE_DEFINITION,name:k({},e)}}function OX(e){let t=e.kind===Oi.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Oi.Kind.OBJECT_TYPE_EXTENSION,name:k({},e.name),description:(0,Wd.formatDescription)(t)}}function SX(e){return{kind:Oi.Kind.SCALAR_TYPE_DEFINITION,name:k({},e)}}function cO(e,t,n){let r={kind:e.kind},i=r;for(let s=0;s{"use strict";m();T();h();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.versionInfo=Xd.version=void 0;var AX="16.9.0";Xd.version=AX;var RX=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Xd.versionInfo=RX});var Di=V(dO=>{"use strict";m();T();h();Object.defineProperty(dO,"__esModule",{value:!0});dO.devAssert=FX;function FX(e,t){if(!!!e)throw new Error(t)}});var TN=V(pO=>{"use strict";m();T();h();Object.defineProperty(pO,"__esModule",{value:!0});pO.isPromise=wX;function wX(e){return typeof(e==null?void 0:e.then)=="function"}});var $o=V(fO=>{"use strict";m();T();h();Object.defineProperty(fO,"__esModule",{value:!0});fO.isObjectLike=LX;function LX(e){return typeof e=="object"&&e!==null}});var ci=V(mO=>{"use strict";m();T();h();Object.defineProperty(mO,"__esModule",{value:!0});mO.invariant=PX;function PX(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var yN=V(hO=>{"use strict";m();T();h();Object.defineProperty(hO,"__esModule",{value:!0});hO.getLocation=CX;var kX=ci(),xX=/\r\n|[\n\r]/g;function CX(e,t){let n=0,r=1;for(let i of e.body.matchAll(xX)){if(typeof i.index=="number"||(0,kX.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var TO=V(NN=>{"use strict";m();T();h();Object.defineProperty(NN,"__esModule",{value:!0});NN.printLocation=MX;NN.printSourceLocation=_C;var UX=yN();function MX(e){return _C(e.source,(0,UX.getLocation)(e.source,e.start))}function _C(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} `,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,b=[];for(let C=0;C["|",C]),["|","^".padStart(I)],["|",b[N+1]]])}return d+vC([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function vC(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 at=V(Zd=>{"use strict";m();T();h();Object.defineProperty(Zd,"__esModule",{value:!0});Zd.GraphQLError=void 0;Zd.formatError=$X;Zd.printError=jX;var BX=$o(),bC=yN(),OC=TO();function VX(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 yO=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=VX(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=SC(Array.isArray(o)?o:o?[o]:void 0);let N=SC((r=this.nodes)===null||r===void 0?void 0:r.map(b=>b.loc).filter(b=>b!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(b=>b.start),this.locations=l&&u?l.map(b=>(0,bC.getLocation)(u,b)):N==null?void 0:N.map(b=>(0,bC.getLocation)(b.source,b.start));let I=(0,BX.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.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+=` +`)}});var ut=V(Zd=>{"use strict";m();T();h();Object.defineProperty(Zd,"__esModule",{value:!0});Zd.GraphQLError=void 0;Zd.formatError=$X;Zd.printError=jX;var BX=$o(),bC=yN(),OC=TO();function VX(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 yO=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=VX(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=SC(Array.isArray(o)?o:o?[o]:void 0);let N=SC((r=this.nodes)===null||r===void 0?void 0:r.map(b=>b.loc).filter(b=>b!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(b=>b.start),this.locations=l&&u?l.map(b=>(0,bC.getLocation)(u,b)):N==null?void 0:N.map(b=>(0,bC.getLocation)(b.source,b.start));let I=(0,BX.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.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,OC.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,OC.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};Zd.GraphQLError=yO;function SC(e){return e===void 0||e.length===0?void 0:e}function jX(e){return e.toString()}function $X(e){return e.toJSON()}});var EN=V(NO=>{"use strict";m();T();h();Object.defineProperty(NO,"__esModule",{value:!0});NO.syntaxError=KX;var qX=at();function KX(e,t,n){return new qX.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var qo=V(Fs=>{"use strict";m();T();h();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.Token=Fs.QueryDocumentKeys=Fs.OperationTypeNode=Fs.Location=void 0;Fs.isNode=QX;var EO=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Fs.Location=EO;var gO=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Fs.Token=gO;var DC={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Fs.QueryDocumentKeys=DC;var GX=new Set(Object.keys(DC));function QX(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&GX.has(t)}var IO;Fs.OperationTypeNode=IO;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(IO||(Fs.OperationTypeNode=IO={}))});var ep=V(Km=>{"use strict";m();T();h();Object.defineProperty(Km,"__esModule",{value:!0});Km.DirectiveLocation=void 0;var vO;Km.DirectiveLocation=vO;(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"})(vO||(Km.DirectiveLocation=vO={}))});var en=V(Gm=>{"use strict";m();T();h();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.Kind=void 0;var _O;Gm.Kind=_O;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(_O||(Gm.Kind=_O={}))});var gN=V(pl=>{"use strict";m();T();h();Object.defineProperty(pl,"__esModule",{value:!0});pl.isDigit=AC;pl.isLetter=bO;pl.isNameContinue=zX;pl.isNameStart=JX;pl.isWhiteSpace=YX;function YX(e){return e===9||e===32}function AC(e){return e>=48&&e<=57}function bO(e){return e>=97&&e<=122||e>=65&&e<=90}function JX(e){return bO(e)||e===95}function zX(e){return bO(e)||AC(e)||e===95}});var Ym=V(Qm=>{"use strict";m();T();h();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.dedentBlockStringLines=HX;Qm.isPrintableAsBlockString=XX;Qm.printBlockString=ZX;var OO=gN();function HX(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function WX(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||(0,OO.isWhiteSpace)(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&(0,OO.isWhiteSpace)(e.charCodeAt(0));return(p&&!N||s)&&(y+=` +`+(0,OC.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};Zd.GraphQLError=yO;function SC(e){return e===void 0||e.length===0?void 0:e}function jX(e){return e.toString()}function $X(e){return e.toJSON()}});var EN=V(NO=>{"use strict";m();T();h();Object.defineProperty(NO,"__esModule",{value:!0});NO.syntaxError=KX;var qX=ut();function KX(e,t,n){return new qX.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var qo=V(ws=>{"use strict";m();T();h();Object.defineProperty(ws,"__esModule",{value:!0});ws.Token=ws.QueryDocumentKeys=ws.OperationTypeNode=ws.Location=void 0;ws.isNode=QX;var EO=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};ws.Location=EO;var gO=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};ws.Token=gO;var DC={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};ws.QueryDocumentKeys=DC;var GX=new Set(Object.keys(DC));function QX(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&GX.has(t)}var IO;ws.OperationTypeNode=IO;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(IO||(ws.OperationTypeNode=IO={}))});var ep=V(Km=>{"use strict";m();T();h();Object.defineProperty(Km,"__esModule",{value:!0});Km.DirectiveLocation=void 0;var vO;Km.DirectiveLocation=vO;(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"})(vO||(Km.DirectiveLocation=vO={}))});var en=V(Gm=>{"use strict";m();T();h();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.Kind=void 0;var _O;Gm.Kind=_O;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(_O||(Gm.Kind=_O={}))});var gN=V(pl=>{"use strict";m();T();h();Object.defineProperty(pl,"__esModule",{value:!0});pl.isDigit=AC;pl.isLetter=bO;pl.isNameContinue=zX;pl.isNameStart=JX;pl.isWhiteSpace=YX;function YX(e){return e===9||e===32}function AC(e){return e>=48&&e<=57}function bO(e){return e>=97&&e<=122||e>=65&&e<=90}function JX(e){return bO(e)||e===95}function zX(e){return bO(e)||AC(e)||e===95}});var Ym=V(Qm=>{"use strict";m();T();h();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.dedentBlockStringLines=HX;Qm.isPrintableAsBlockString=XX;Qm.printBlockString=ZX;var OO=gN();function HX(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function WX(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||(0,OO.isWhiteSpace)(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&(0,OO.isWhiteSpace)(e.charCodeAt(0));return(p&&!N||s)&&(y+=` `),y+=n,(p||d)&&(y+=` -`),'"""'+y+'"""'}});var zm=V(Jm=>{"use strict";m();T();h();Object.defineProperty(Jm,"__esModule",{value:!0});Jm.TokenKind=void 0;var SO;Jm.TokenKind=SO;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(SO||(Jm.TokenKind=SO={}))});var vN=V(Wm=>{"use strict";m();T();h();Object.defineProperty(Wm,"__esModule",{value:!0});Wm.Lexer=void 0;Wm.isPunctuatorTokenKind=t5;var lo=EN(),wC=qo(),e5=Ym(),fl=gN(),Vt=zm(),AO=class{constructor(t){let n=new wC.Token(Vt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Vt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=n5(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Vt.TokenKind.COMMENT);return t}};Wm.Lexer=AO;function t5(e){return e===Vt.TokenKind.BANG||e===Vt.TokenKind.DOLLAR||e===Vt.TokenKind.AMP||e===Vt.TokenKind.PAREN_L||e===Vt.TokenKind.PAREN_R||e===Vt.TokenKind.SPREAD||e===Vt.TokenKind.COLON||e===Vt.TokenKind.EQUALS||e===Vt.TokenKind.AT||e===Vt.TokenKind.BRACKET_L||e===Vt.TokenKind.BRACKET_R||e===Vt.TokenKind.BRACE_L||e===Vt.TokenKind.PIPE||e===Vt.TokenKind.BRACE_R}function tp(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function IN(e,t){return FC(e.charCodeAt(t))&&LC(e.charCodeAt(t+1))}function FC(e){return e>=55296&&e<=56319}function LC(e){return e>=56320&&e<=57343}function ml(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return Vt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Or(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new wC.Token(t,n,r,s,o,i)}function n5(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function u5(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`),'"""'+y+'"""'}});var zm=V(Jm=>{"use strict";m();T();h();Object.defineProperty(Jm,"__esModule",{value:!0});Jm.TokenKind=void 0;var SO;Jm.TokenKind=SO;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(SO||(Jm.TokenKind=SO={}))});var vN=V(Wm=>{"use strict";m();T();h();Object.defineProperty(Wm,"__esModule",{value:!0});Wm.Lexer=void 0;Wm.isPunctuatorTokenKind=t5;var lo=EN(),FC=qo(),e5=Ym(),fl=gN(),Vt=zm(),AO=class{constructor(t){let n=new FC.Token(Vt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Vt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=n5(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Vt.TokenKind.COMMENT);return t}};Wm.Lexer=AO;function t5(e){return e===Vt.TokenKind.BANG||e===Vt.TokenKind.DOLLAR||e===Vt.TokenKind.AMP||e===Vt.TokenKind.PAREN_L||e===Vt.TokenKind.PAREN_R||e===Vt.TokenKind.SPREAD||e===Vt.TokenKind.COLON||e===Vt.TokenKind.EQUALS||e===Vt.TokenKind.AT||e===Vt.TokenKind.BRACKET_L||e===Vt.TokenKind.BRACKET_R||e===Vt.TokenKind.BRACE_L||e===Vt.TokenKind.PIPE||e===Vt.TokenKind.BRACE_R}function tp(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function IN(e,t){return wC(e.charCodeAt(t))&&LC(e.charCodeAt(t+1))}function wC(e){return e>=55296&&e<=56319}function LC(e){return e>=56320&&e<=57343}function ml(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return Vt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Or(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new FC.Token(t,n,r,s,o,i)}function n5(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function u5(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,lo.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function c5(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Object.defineProperty(RO,"__esModule",{value:!0});RO.inspect=p5;var d5=10,PC=2;function p5(e){return _N(e,[])}function _N(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return f5(e,t);default:return String(e)}}function f5(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(m5(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:_N(r,n)}else if(Array.isArray(e))return T5(e,n);return h5(e,n)}function m5(e){return typeof e.toJSON=="function"}function h5(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>PC?"["+y5(e)+"]":"{ "+n.map(([i,s])=>i+": "+_N(s,t)).join(", ")+" }"}function T5(e,t){if(e.length===0)return"[]";if(t.length>PC)return"[Array]";let n=Math.min(d5,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function y5(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Xm=V(bN=>{"use strict";m();T();h();Object.defineProperty(bN,"__esModule",{value:!0});bN.instanceOf=void 0;var N5=gn(),E5=globalThis.process&&O.env.NODE_ENV==="production",g5=E5?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=(0,N5.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. @@ -407,17 +407,17 @@ 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};bN.instanceOf=g5});var SN=V(Zm=>{"use strict";m();T();h();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.Source=void 0;Zm.isSource=_5;var wO=Di(),I5=gn(),v5=Xm(),ON=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,wO.devAssert)(!1,`Body must be a string. Received: ${(0,I5.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,wO.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,wO.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Zm.Source=ON;function _5(e){return(0,v5.instanceOf)(e,ON)}});var np=V(fc=>{"use strict";m();T();h();Object.defineProperty(fc,"__esModule",{value:!0});fc.Parser=void 0;fc.parse=O5;fc.parseConstValue=D5;fc.parseType=A5;fc.parseValue=S5;var hl=EN(),eh=qo(),b5=ep(),Et=en(),xC=vN(),kC=SN(),Se=zm();function O5(e,t){return new Tl(e,t).parseDocument()}function S5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function D5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function A5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var Tl=class{constructor(t,n={}){let r=(0,kC.isSource)(t)?t:new kC.Source(t);this._lexer=new xC.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:Et.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Et.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,hl.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:Et.Kind.OPERATION_DEFINITION,operation:eh.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:Et.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 eh.OperationTypeNode.QUERY;case"mutation":return eh.OperationTypeNode.MUTATION;case"subscription":return eh.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:Et.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:Et.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Et.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:Et.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:Et.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:Et.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Et.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:Et.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:Et.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:Et.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:Et.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:Et.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Et.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Et.Kind.NULL});default:return this.node(n,{kind:Et.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,hl.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:Et.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Et.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:Et.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:Et.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:Et.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(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:Et.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,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 s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:Et.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,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(),s;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:Et.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:Et.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}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(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:Et.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}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:Et.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,hl.syntaxError)(this._lexer.source,this._lexer.token.start,`${DN(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(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:Et.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}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:Et.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:Et.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(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Et.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Et.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}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:Et.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:Et.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:Et.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(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:Et.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,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(b5.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new eh.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,hl.syntaxError)(this._lexer.source,n.start,`Expected ${CC(t)}, found ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Unexpected ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};fc.Parser=Tl;function DN(e){let t=e.value;return CC(e.kind)+(t!=null?` "${t}"`:"")}function CC(e){return(0,xC.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var mc=V(FO=>{"use strict";m();T();h();Object.defineProperty(FO,"__esModule",{value:!0});FO.didYouMean=w5;var R5=5;function w5(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,R5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var UC=V(LO=>{"use strict";m();T();h();Object.defineProperty(LO,"__esModule",{value:!0});LO.identityFunc=F5;function F5(e){return e}});var hc=V(PO=>{"use strict";m();T();h();Object.defineProperty(PO,"__esModule",{value:!0});PO.keyMap=L5;function L5(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var th=V(kO=>{"use strict";m();T();h();Object.defineProperty(kO,"__esModule",{value:!0});kO.keyValMap=P5;function P5(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var CO=V(xO=>{"use strict";m();T();h();Object.defineProperty(xO,"__esModule",{value:!0});xO.mapValue=k5;function k5(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var nh=V(MO=>{"use strict";m();T();h();Object.defineProperty(MO,"__esModule",{value:!0});MO.naturalCompare=x5;function x5(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-UO,s=t.charCodeAt(r);while(AN(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}var UO=48,C5=57;function AN(e){return!isNaN(e)&&UO<=e&&e<=C5}});var Tc=V(VO=>{"use strict";m();T();h();Object.defineProperty(VO,"__esModule",{value:!0});VO.suggestionList=M5;var U5=nh();function M5(e,t){let n=Object.create(null),r=new BO(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:(0,U5.naturalCompare)(s,o)})}var BO=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=MC(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=MC(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let b=1;b<=u;b++){let C=i[p-1]===s[b-1]?0:1,j=Math.min(y[b]+1,N[b-1]+1,y[b-1]+C);if(p>1&&b>1&&i[p-1]===s[b-2]&&i[p-2]===s[b-1]){let Q=l[(p-2)%3][b-2];j=Math.min(j,Q+1)}jn)return}let d=l[o%3][u];return d<=n?d:void 0}};function MC(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Object.defineProperty(jO,"__esModule",{value:!0});jO.toObjMap=B5;function B5(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 BC=V($O=>{"use strict";m();T();h();Object.defineProperty($O,"__esModule",{value:!0});$O.printString=V5;function V5(e){return`"${e.replace(j5,$5)}"`}var j5=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function $5(e){return q5[e.charCodeAt(0)]}var q5=["\\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 yl=V(yc=>{"use strict";m();T();h();Object.defineProperty(yc,"__esModule",{value:!0});yc.BREAK=void 0;yc.getEnterLeaveForKind=wN;yc.getVisitFn=J5;yc.visit=Q5;yc.visitInParallel=Y5;var K5=Di(),G5=gn(),qO=qo(),VC=en(),rp=Object.freeze({});yc.BREAK=rp;function Q5(e,t,n=qO.QueryDocumentKeys){let r=new Map;for(let Q of Object.values(VC.Kind))r.set(Q,wN(t,Q));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let Q=u===o.length,re=Q&&l.length!==0;if(Q){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let pe=0;for(let[ye,ke]of l){let ht=ye-pe;ke===null?(d.splice(ht,1),pe++):d[ht]=ke}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[pe,ye]of l)d[pe]=ye}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var b,C;(0,qO.isNode)(d)||(0,K5.devAssert)(!1,`Invalid AST Node: ${(0,G5.inspect)(d)}.`);let pe=Q?(b=r.get(d.kind))===null||b===void 0?void 0:b.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=pe==null?void 0:pe.call(t,d,p,y,N,I),se===rp)break;if(se===!1){if(!Q){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!Q))if((0,qO.isNode)(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),Q)N.pop();else{var j;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(j=n[d.kind])!==null&&j!==void 0?j:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Y5(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(VC.Kind)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Object.defineProperty(KO,"__esModule",{value:!0});KO.print=X5;var z5=Ym(),H5=BC(),W5=yl();function X5(e){return(0,W5.visit)(e,e9)}var Z5=80,e9={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ke(e.definitions,` +spurious results.`)}}return!1};bN.instanceOf=g5});var SN=V(Zm=>{"use strict";m();T();h();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.Source=void 0;Zm.isSource=_5;var FO=Di(),I5=gn(),v5=Xm(),ON=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,FO.devAssert)(!1,`Body must be a string. Received: ${(0,I5.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,FO.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,FO.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Zm.Source=ON;function _5(e){return(0,v5.instanceOf)(e,ON)}});var np=V(fc=>{"use strict";m();T();h();Object.defineProperty(fc,"__esModule",{value:!0});fc.Parser=void 0;fc.parse=O5;fc.parseConstValue=D5;fc.parseType=A5;fc.parseValue=S5;var hl=EN(),eh=qo(),b5=ep(),Et=en(),xC=vN(),kC=SN(),Se=zm();function O5(e,t){return new Tl(e,t).parseDocument()}function S5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function D5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function A5(e,t){let n=new Tl(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var Tl=class{constructor(t,n={}){let r=(0,kC.isSource)(t)?t:new kC.Source(t);this._lexer=new xC.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:Et.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Et.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,hl.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:Et.Kind.OPERATION_DEFINITION,operation:eh.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:Et.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 eh.OperationTypeNode.QUERY;case"mutation":return eh.OperationTypeNode.MUTATION;case"subscription":return eh.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:Et.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:Et.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Et.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:Et.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:Et.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:Et.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Et.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:Et.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:Et.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:Et.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:Et.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:Et.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Et.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Et.Kind.NULL});default:return this.node(n,{kind:Et.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,hl.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:Et.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Et.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:Et.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:Et.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:Et.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(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:Et.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,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 s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:Et.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,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(),s;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:Et.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:Et.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}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(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:Et.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}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:Et.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,hl.syntaxError)(this._lexer.source,this._lexer.token.start,`${DN(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(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:Et.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}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:Et.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:Et.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(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Et.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Et.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}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:Et.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:Et.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:Et.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(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:Et.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,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(b5.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new eh.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,hl.syntaxError)(this._lexer.source,n.start,`Expected ${CC(t)}, found ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Unexpected ${DN(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,hl.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};fc.Parser=Tl;function DN(e){let t=e.value;return CC(e.kind)+(t!=null?` "${t}"`:"")}function CC(e){return(0,xC.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var mc=V(wO=>{"use strict";m();T();h();Object.defineProperty(wO,"__esModule",{value:!0});wO.didYouMean=F5;var R5=5;function F5(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,R5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var UC=V(LO=>{"use strict";m();T();h();Object.defineProperty(LO,"__esModule",{value:!0});LO.identityFunc=w5;function w5(e){return e}});var hc=V(PO=>{"use strict";m();T();h();Object.defineProperty(PO,"__esModule",{value:!0});PO.keyMap=L5;function L5(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var th=V(kO=>{"use strict";m();T();h();Object.defineProperty(kO,"__esModule",{value:!0});kO.keyValMap=P5;function P5(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var CO=V(xO=>{"use strict";m();T();h();Object.defineProperty(xO,"__esModule",{value:!0});xO.mapValue=k5;function k5(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var nh=V(MO=>{"use strict";m();T();h();Object.defineProperty(MO,"__esModule",{value:!0});MO.naturalCompare=x5;function x5(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-UO,s=t.charCodeAt(r);while(AN(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}var UO=48,C5=57;function AN(e){return!isNaN(e)&&UO<=e&&e<=C5}});var Tc=V(VO=>{"use strict";m();T();h();Object.defineProperty(VO,"__esModule",{value:!0});VO.suggestionList=M5;var U5=nh();function M5(e,t){let n=Object.create(null),r=new BO(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:(0,U5.naturalCompare)(s,o)})}var BO=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=MC(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=MC(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let b=1;b<=u;b++){let C=i[p-1]===s[b-1]?0:1,j=Math.min(y[b]+1,N[b-1]+1,y[b-1]+C);if(p>1&&b>1&&i[p-1]===s[b-2]&&i[p-2]===s[b-1]){let Q=l[(p-2)%3][b-2];j=Math.min(j,Q+1)}jn)return}let d=l[o%3][u];return d<=n?d:void 0}};function MC(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Object.defineProperty(jO,"__esModule",{value:!0});jO.toObjMap=B5;function B5(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 BC=V($O=>{"use strict";m();T();h();Object.defineProperty($O,"__esModule",{value:!0});$O.printString=V5;function V5(e){return`"${e.replace(j5,$5)}"`}var j5=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function $5(e){return q5[e.charCodeAt(0)]}var q5=["\\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 yl=V(yc=>{"use strict";m();T();h();Object.defineProperty(yc,"__esModule",{value:!0});yc.BREAK=void 0;yc.getEnterLeaveForKind=FN;yc.getVisitFn=J5;yc.visit=Q5;yc.visitInParallel=Y5;var K5=Di(),G5=gn(),qO=qo(),VC=en(),rp=Object.freeze({});yc.BREAK=rp;function Q5(e,t,n=qO.QueryDocumentKeys){let r=new Map;for(let Q of Object.values(VC.Kind))r.set(Q,FN(t,Q));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let Q=u===o.length,re=Q&&l.length!==0;if(Q){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[ye,ke]of l){let ht=ye-fe;ke===null?(d.splice(ht,1),fe++):d[ht]=ke}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,ye]of l)d[fe]=ye}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var b,C;(0,qO.isNode)(d)||(0,K5.devAssert)(!1,`Invalid AST Node: ${(0,G5.inspect)(d)}.`);let fe=Q?(b=r.get(d.kind))===null||b===void 0?void 0:b.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===rp)break;if(se===!1){if(!Q){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!Q))if((0,qO.isNode)(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),Q)N.pop();else{var j;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(j=n[d.kind])!==null&&j!==void 0?j:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Y5(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(VC.Kind)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Object.defineProperty(KO,"__esModule",{value:!0});KO.print=X5;var z5=Ym(),H5=BC(),W5=yl();function X5(e){return(0,W5.visit)(e,e9)}var Z5=80,e9={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ke(e.definitions,` `)},OperationDefinition:{leave(e){let t=Yt("(",Ke(e.variableDefinitions,", "),")"),n=Ke([e.operation,Ke([e.name,t]),Ke(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Yt(" = ",n)+Yt(" ",Ke(r," "))},SelectionSet:{leave:({selections:e})=>po(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Yt("",e,": ")+t,o=s+Yt("(",Ke(n,", "),")");return o.length>Z5&&(o=s+Yt(`( -`,FN(Ke(n,` +`,wN(Ke(n,` `)),` )`)),Ke([o,Ke(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Yt(" ",Ke(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ke(["...",Yt("on ",e),Ke(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Yt("(",Ke(n,", "),")")} on ${t} ${Yt("",Ke(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,z5.printBlockString)(e):(0,H5.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ke(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ke(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Yt("(",Ke(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Yt("",e,` `)+Ke(["schema",Ke(t," "),po(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Yt("",e,` `)+Ke(["scalar",t,Ke(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Yt("",e,` `)+Ke(["type",t,Yt("implements ",Ke(n," & ")),Ke(r," "),po(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Yt("",e,` `)+t+(jC(n)?Yt(`( -`,FN(Ke(n,` +`,wN(Ke(n,` `)),` )`):Yt("(",Ke(n,", "),")"))+": "+r+Yt(" ",Ke(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Yt("",e,` `)+Ke([t+": "+n,Yt("= ",r),Ke(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Yt("",e,` @@ -427,22 +427,22 @@ spurious results.`)}}return!1};bN.instanceOf=g5});var SN=V(Zm=>{"use strict";m() `)+Ke([t,Ke(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Yt("",e,` `)+Ke(["input",t,Ke(n," "),po(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Yt("",e,` `)+"directive @"+t+(jC(n)?Yt(`( -`,FN(Ke(n,` +`,wN(Ke(n,` `)),` )`):Yt("(",Ke(n,", "),")"))+(r?" repeatable":"")+" on "+Ke(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ke(["extend schema",Ke(e," "),po(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ke(["extend scalar",e,Ke(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend type",e,Yt("implements ",Ke(t," & ")),Ke(n," "),po(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ke(["extend interface",e,Yt("implements ",Ke(t," & ")),Ke(n," "),po(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ke(["extend union",e,Ke(t," "),Yt("= ",Ke(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ke(["extend enum",e,Ke(t," "),po(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ke(["extend input",e,Ke(t," "),po(n)]," ")}};function Ke(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function po(e){return Yt(`{ -`,FN(Ke(e,` +`,wN(Ke(e,` `)),` -}`)}function Yt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function FN(e){return Yt(" ",e.replace(/\n/g,` +}`)}function Yt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function wN(e){return Yt(" ",e.replace(/\n/g,` `))}function jC(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var YO=V(QO=>{"use strict";m();T();h();Object.defineProperty(QO,"__esModule",{value:!0});QO.valueFromASTUntyped=GO;var t9=th(),Ua=en();function GO(e,t){switch(e.kind){case Ua.Kind.NULL:return null;case Ua.Kind.INT:return parseInt(e.value,10);case Ua.Kind.FLOAT:return parseFloat(e.value);case Ua.Kind.STRING:case Ua.Kind.ENUM:case Ua.Kind.BOOLEAN:return e.value;case Ua.Kind.LIST:return e.values.map(n=>GO(n,t));case Ua.Kind.OBJECT:return(0,t9.keyValMap)(e.fields,n=>n.name.value,n=>GO(n.value,t));case Ua.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var rh=V(PN=>{"use strict";m();T();h();Object.defineProperty(PN,"__esModule",{value:!0});PN.assertEnumValueName=n9;PN.assertName=KC;var $C=Di(),LN=at(),qC=gN();function KC(e){if(e!=null||(0,$C.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,$C.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new LN.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Object.defineProperty(ze,"__esModule",{value:!0});ze.GraphQLUnionType=ze.GraphQLScalarType=ze.GraphQLObjectType=ze.GraphQLNonNull=ze.GraphQLList=ze.GraphQLInterfaceType=ze.GraphQLInputObjectType=ze.GraphQLEnumType=void 0;ze.argsToArgsConfig=rU;ze.assertAbstractType=v9;ze.assertCompositeType=I9;ze.assertEnumType=m9;ze.assertInputObjectType=h9;ze.assertInputType=N9;ze.assertInterfaceType=p9;ze.assertLeafType=g9;ze.assertListType=T9;ze.assertNamedType=S9;ze.assertNonNullType=y9;ze.assertNullableType=b9;ze.assertObjectType=d9;ze.assertOutputType=E9;ze.assertScalarType=l9;ze.assertType=c9;ze.assertUnionType=f9;ze.assertWrappingType=_9;ze.defineArguments=tU;ze.getNamedType=D9;ze.getNullableType=O9;ze.isAbstractType=WC;ze.isCompositeType=HC;ze.isEnumType=Il;ze.isInputObjectType=sh;ze.isInputType=JO;ze.isInterfaceType=El;ze.isLeafType=zC;ze.isListType=GN;ze.isNamedType=XC;ze.isNonNullType=Ec;ze.isNullableType=HO;ze.isObjectType=sp;ze.isOutputType=zO;ze.isRequiredArgument=A9;ze.isRequiredInputField=F9;ze.isScalarType=Nl;ze.isType=KN;ze.isUnionType=gl;ze.isWrappingType=oh;ze.resolveObjMapThunk=XO;ze.resolveReadonlyArrayThunk=WO;var jr=Di(),r9=mc(),GC=UC(),Ln=gn(),Nc=Xm(),i9=$o(),s9=hc(),JC=th(),qN=CO(),o9=Tc(),Ko=RN(),ih=at(),a9=en(),QC=ps(),u9=YO(),Go=rh();function KN(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||sh(e)||GN(e)||Ec(e)}function c9(e){if(!KN(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL type.`);return e}function Nl(e){return(0,Nc.instanceOf)(e,UN)}function l9(e){if(!Nl(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Scalar type.`);return e}function sp(e){return(0,Nc.instanceOf)(e,MN)}function d9(e){if(!sp(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Object type.`);return e}function El(e){return(0,Nc.instanceOf)(e,BN)}function p9(e){if(!El(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Interface type.`);return e}function gl(e){return(0,Nc.instanceOf)(e,VN)}function f9(e){if(!gl(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Union type.`);return e}function Il(e){return(0,Nc.instanceOf)(e,jN)}function m9(e){if(!Il(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Enum type.`);return e}function sh(e){return(0,Nc.instanceOf)(e,$N)}function h9(e){if(!sh(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Input Object type.`);return e}function GN(e){return(0,Nc.instanceOf)(e,xN)}function T9(e){if(!GN(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL List type.`);return e}function Ec(e){return(0,Nc.instanceOf)(e,CN)}function y9(e){if(!Ec(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function JO(e){return Nl(e)||Il(e)||sh(e)||oh(e)&&JO(e.ofType)}function N9(e){if(!JO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL input type.`);return e}function zO(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||oh(e)&&zO(e.ofType)}function E9(e){if(!zO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL output type.`);return e}function zC(e){return Nl(e)||Il(e)}function g9(e){if(!zC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL leaf type.`);return e}function HC(e){return sp(e)||El(e)||gl(e)}function I9(e){if(!HC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL composite type.`);return e}function WC(e){return El(e)||gl(e)}function v9(e){if(!WC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL abstract type.`);return e}var xN=class{constructor(t){KN(t)||(0,jr.devAssert)(!1,`Expected ${(0,Ln.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};ze.GraphQLList=xN;var CN=class{constructor(t){HO(t)||(0,jr.devAssert)(!1,`Expected ${(0,Ln.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};ze.GraphQLNonNull=CN;function oh(e){return GN(e)||Ec(e)}function _9(e){if(!oh(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL wrapping type.`);return e}function HO(e){return KN(e)&&!Ec(e)}function b9(e){if(!HO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL nullable type.`);return e}function O9(e){if(e)return Ec(e)?e.ofType:e}function XC(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||sh(e)}function S9(e){if(!XC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL named type.`);return e}function D9(e){if(e){let t=e;for(;oh(t);)t=t.ofType;return t}}function WO(e){return typeof e=="function"?e():e}function XO(e){return typeof e=="function"?e():e}var UN=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:GC.identityFunc;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:GC.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,u9.valueFromASTUntyped)(u,l)),this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,jr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Ln.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,jr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLScalarType=UN;var MN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>eU(t),this._interfaces=()=>ZC(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Ln.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nU(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLObjectType=MN;function ZC(e){var t;let n=WO((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,jr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eU(e){let t=XO(e.fields);return ip(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,qN.mapValue)(t,(n,r)=>{var i;ip(n)||(0,jr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,jr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Ln.inspect)(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return ip(s)||(0,jr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Go.assertName)(r),description:n.description,type:n.type,args:tU(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}})}function tU(e){return Object.entries(e).map(([t,n])=>({name:(0,Go.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}))}function ip(e){return(0,i9.isObjectLike)(e)&&!Array.isArray(e)}function nU(e){return(0,qN.mapValue)(e,t=>({description:t.description,type:t.type,args:rU(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function rU(e){return(0,JC.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function A9(e){return Ec(e.type)&&e.defaultValue===void 0}var BN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=eU.bind(void 0,t),this._interfaces=ZC.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Ln.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nU(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLInterfaceType=BN;var VN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=R9.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Ln.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLUnionType=VN;function R9(e){let t=WO(e.types);return Array.isArray(t)||(0,jr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var jN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:YC(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=YC(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,s9.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new ih.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Ln.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Ln.inspect)(t);throw new ih.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+kN(this,r))}let n=this.getValue(t);if(n==null)throw new ih.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+kN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==a9.Kind.ENUM){let i=(0,QC.print)(t);throw new ih.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+kN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,QC.print)(t);throw new ih.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+kN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,JC.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLEnumType=jN;function kN(e,t){let n=e.getValues().map(i=>i.name),r=(0,o9.suggestionList)(t,n);return(0,r9.didYouMean)("the enum value",r)}function YC(e,t){return ip(t)||(0,jr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(ip(r)||(0,jr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Ln.inspect)(r)}.`),{name:(0,Go.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Ko.toObjMap)(r.extensions),astNode:r.astNode}))}var $N=class{constructor(t){var n,r;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=w9.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,qN.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLInputObjectType=$N;function w9(e){let t=XO(e.fields);return ip(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,qN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,jr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Go.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}))}function F9(e){return Ec(e.type)&&e.defaultValue===void 0}});var uh=V(ah=>{"use strict";m();T();h();Object.defineProperty(ah,"__esModule",{value:!0});ah.doTypesOverlap=L9;ah.isEqualType=ZO;ah.isTypeSubTypeOf=QN;var li=tn();function ZO(e,t){return e===t?!0:(0,li.isNonNullType)(e)&&(0,li.isNonNullType)(t)||(0,li.isListType)(e)&&(0,li.isListType)(t)?ZO(e.ofType,t.ofType):!1}function QN(e,t,n){return t===n?!0:(0,li.isNonNullType)(n)?(0,li.isNonNullType)(t)?QN(e,t.ofType,n.ofType):!1:(0,li.isNonNullType)(t)?QN(e,t.ofType,n):(0,li.isListType)(n)?(0,li.isListType)(t)?QN(e,t.ofType,n.ofType):!1:(0,li.isListType)(t)?!1:(0,li.isAbstractType)(n)&&((0,li.isInterfaceType)(t)||(0,li.isObjectType)(t))&&e.isSubType(n,t)}function L9(e,t,n){return t===n?!0:(0,li.isAbstractType)(t)?(0,li.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,li.isAbstractType)(n)?e.isSubType(n,t):!1}});var Qo=V(wr=>{"use strict";m();T();h();Object.defineProperty(wr,"__esModule",{value:!0});wr.GraphQLString=wr.GraphQLInt=wr.GraphQLID=wr.GraphQLFloat=wr.GraphQLBoolean=wr.GRAPHQL_MIN_INT=wr.GRAPHQL_MAX_INT=void 0;wr.isSpecifiedScalarType=P9;wr.specifiedScalarTypes=void 0;var fo=gn(),iU=$o(),$r=at(),vl=en(),ch=ps(),lh=tn(),YN=2147483647;wr.GRAPHQL_MAX_INT=YN;var JN=-2147483648;wr.GRAPHQL_MIN_INT=JN;var sU=new lh.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=dh(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new $r.GraphQLError(`Int cannot represent non-integer value: ${(0,fo.inspect)(t)}`);if(n>YN||nYN||eYN||te.name===t)}function dh(e){if((0,iU.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,iU.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var ji=V(Nr=>{"use strict";m();T();h();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.GraphQLSpecifiedByDirective=Nr.GraphQLSkipDirective=Nr.GraphQLOneOfDirective=Nr.GraphQLIncludeDirective=Nr.GraphQLDirective=Nr.GraphQLDeprecatedDirective=Nr.DEFAULT_DEPRECATION_REASON=void 0;Nr.assertDirective=B9;Nr.isDirective=pU;Nr.isSpecifiedDirective=V9;Nr.specifiedDirectives=void 0;var dU=Di(),k9=gn(),x9=Xm(),C9=$o(),U9=RN(),Ls=ep(),M9=rh(),ph=tn(),zN=Qo();function pU(e){return(0,x9.instanceOf)(e,Ma)}function B9(e){if(!pU(e))throw new Error(`Expected ${(0,k9.inspect)(e)} to be a GraphQL directive.`);return e}var Ma=class{constructor(t){var n,r;this.name=(0,M9.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,U9.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,dU.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,C9.isObjectLike)(i)&&!Array.isArray(i)||(0,dU.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,ph.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,ph.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Nr.GraphQLDirective=Ma;var fU=new Ma({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ls.DirectiveLocation.FIELD,Ls.DirectiveLocation.FRAGMENT_SPREAD,Ls.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ph.GraphQLNonNull(zN.GraphQLBoolean),description:"Included when true."}}});Nr.GraphQLIncludeDirective=fU;var mU=new Ma({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ls.DirectiveLocation.FIELD,Ls.DirectiveLocation.FRAGMENT_SPREAD,Ls.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ph.GraphQLNonNull(zN.GraphQLBoolean),description:"Skipped when true."}}});Nr.GraphQLSkipDirective=mU;var hU="No longer supported";Nr.DEFAULT_DEPRECATION_REASON=hU;var TU=new Ma({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ls.DirectiveLocation.FIELD_DEFINITION,Ls.DirectiveLocation.ARGUMENT_DEFINITION,Ls.DirectiveLocation.INPUT_FIELD_DEFINITION,Ls.DirectiveLocation.ENUM_VALUE],args:{reason:{type:zN.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:hU}}});Nr.GraphQLDeprecatedDirective=TU;var yU=new Ma({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ls.DirectiveLocation.SCALAR],args:{url:{type:new ph.GraphQLNonNull(zN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Nr.GraphQLSpecifiedByDirective=yU;var NU=new Ma({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ls.DirectiveLocation.INPUT_OBJECT],args:{}});Nr.GraphQLOneOfDirective=NU;var EU=Object.freeze([fU,mU,TU,yU,NU]);Nr.specifiedDirectives=EU;function V9(e){return EU.some(({name:t})=>t===e.name)}});var HN=V(eS=>{"use strict";m();T();h();Object.defineProperty(eS,"__esModule",{value:!0});eS.isIterableObject=j9;function j9(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var hh=V(tS=>{"use strict";m();T();h();Object.defineProperty(tS,"__esModule",{value:!0});tS.astFromValue=mh;var gU=gn(),$9=ci(),q9=HN(),K9=$o(),Ps=en(),fh=tn(),G9=Qo();function mh(e,t){if((0,fh.isNonNullType)(t)){let n=mh(e,t.ofType);return(n==null?void 0:n.kind)===Ps.Kind.NULL?null:n}if(e===null)return{kind:Ps.Kind.NULL};if(e===void 0)return null;if((0,fh.isListType)(t)){let n=t.ofType;if((0,q9.isIterableObject)(e)){let r=[];for(let i of e){let s=mh(i,n);s!=null&&r.push(s)}return{kind:Ps.Kind.LIST,values:r}}return mh(e,n)}if((0,fh.isInputObjectType)(t)){if(!(0,K9.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=mh(e[r.name],r.type);i&&n.push({kind:Ps.Kind.OBJECT_FIELD,name:{kind:Ps.Kind.NAME,value:r.name},value:i})}return{kind:Ps.Kind.OBJECT,fields:n}}if((0,fh.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Ps.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return IU.test(r)?{kind:Ps.Kind.INT,value:r}:{kind:Ps.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,fh.isEnumType)(t)?{kind:Ps.Kind.ENUM,value:n}:t===G9.GraphQLID&&IU.test(n)?{kind:Ps.Kind.INT,value:n}:{kind:Ps.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,gU.inspect)(n)}.`)}(0,$9.invariant)(!1,"Unexpected input type: "+(0,gU.inspect)(t))}var IU=/^-?(?:0|[1-9][0-9]*)$/});var xs=V(In=>{"use strict";m();T();h();Object.defineProperty(In,"__esModule",{value:!0});In.introspectionTypes=In.__TypeKind=In.__Type=In.__Schema=In.__InputValue=In.__Field=In.__EnumValue=In.__DirectiveLocation=In.__Directive=In.TypeNameMetaFieldDef=In.TypeMetaFieldDef=In.TypeKind=In.SchemaMetaFieldDef=void 0;In.isIntrospectionType=Z9;var Q9=gn(),Y9=ci(),Fr=ep(),J9=ps(),z9=hh(),Be=tn(),An=Qo(),nS=new Be.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:An.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(ks))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Be.GraphQLNonNull(ks),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ks,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ks,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(rS))),resolve:e=>e.getDirectives()}})});In.__Schema=nS;var rS=new Be.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +`)))!==null&&t!==void 0?t:!1}});var YO=V(QO=>{"use strict";m();T();h();Object.defineProperty(QO,"__esModule",{value:!0});QO.valueFromASTUntyped=GO;var t9=th(),Ua=en();function GO(e,t){switch(e.kind){case Ua.Kind.NULL:return null;case Ua.Kind.INT:return parseInt(e.value,10);case Ua.Kind.FLOAT:return parseFloat(e.value);case Ua.Kind.STRING:case Ua.Kind.ENUM:case Ua.Kind.BOOLEAN:return e.value;case Ua.Kind.LIST:return e.values.map(n=>GO(n,t));case Ua.Kind.OBJECT:return(0,t9.keyValMap)(e.fields,n=>n.name.value,n=>GO(n.value,t));case Ua.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var rh=V(PN=>{"use strict";m();T();h();Object.defineProperty(PN,"__esModule",{value:!0});PN.assertEnumValueName=n9;PN.assertName=KC;var $C=Di(),LN=ut(),qC=gN();function KC(e){if(e!=null||(0,$C.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,$C.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new LN.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Object.defineProperty(ze,"__esModule",{value:!0});ze.GraphQLUnionType=ze.GraphQLScalarType=ze.GraphQLObjectType=ze.GraphQLNonNull=ze.GraphQLList=ze.GraphQLInterfaceType=ze.GraphQLInputObjectType=ze.GraphQLEnumType=void 0;ze.argsToArgsConfig=rU;ze.assertAbstractType=v9;ze.assertCompositeType=I9;ze.assertEnumType=m9;ze.assertInputObjectType=h9;ze.assertInputType=N9;ze.assertInterfaceType=p9;ze.assertLeafType=g9;ze.assertListType=T9;ze.assertNamedType=S9;ze.assertNonNullType=y9;ze.assertNullableType=b9;ze.assertObjectType=d9;ze.assertOutputType=E9;ze.assertScalarType=l9;ze.assertType=c9;ze.assertUnionType=f9;ze.assertWrappingType=_9;ze.defineArguments=tU;ze.getNamedType=D9;ze.getNullableType=O9;ze.isAbstractType=WC;ze.isCompositeType=HC;ze.isEnumType=Il;ze.isInputObjectType=sh;ze.isInputType=JO;ze.isInterfaceType=El;ze.isLeafType=zC;ze.isListType=GN;ze.isNamedType=XC;ze.isNonNullType=Ec;ze.isNullableType=HO;ze.isObjectType=sp;ze.isOutputType=zO;ze.isRequiredArgument=A9;ze.isRequiredInputField=w9;ze.isScalarType=Nl;ze.isType=KN;ze.isUnionType=gl;ze.isWrappingType=oh;ze.resolveObjMapThunk=XO;ze.resolveReadonlyArrayThunk=WO;var jr=Di(),r9=mc(),GC=UC(),Ln=gn(),Nc=Xm(),i9=$o(),s9=hc(),JC=th(),qN=CO(),o9=Tc(),Ko=RN(),ih=ut(),a9=en(),QC=ps(),u9=YO(),Go=rh();function KN(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||sh(e)||GN(e)||Ec(e)}function c9(e){if(!KN(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL type.`);return e}function Nl(e){return(0,Nc.instanceOf)(e,UN)}function l9(e){if(!Nl(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Scalar type.`);return e}function sp(e){return(0,Nc.instanceOf)(e,MN)}function d9(e){if(!sp(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Object type.`);return e}function El(e){return(0,Nc.instanceOf)(e,BN)}function p9(e){if(!El(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Interface type.`);return e}function gl(e){return(0,Nc.instanceOf)(e,VN)}function f9(e){if(!gl(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Union type.`);return e}function Il(e){return(0,Nc.instanceOf)(e,jN)}function m9(e){if(!Il(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Enum type.`);return e}function sh(e){return(0,Nc.instanceOf)(e,$N)}function h9(e){if(!sh(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Input Object type.`);return e}function GN(e){return(0,Nc.instanceOf)(e,xN)}function T9(e){if(!GN(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL List type.`);return e}function Ec(e){return(0,Nc.instanceOf)(e,CN)}function y9(e){if(!Ec(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function JO(e){return Nl(e)||Il(e)||sh(e)||oh(e)&&JO(e.ofType)}function N9(e){if(!JO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL input type.`);return e}function zO(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||oh(e)&&zO(e.ofType)}function E9(e){if(!zO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL output type.`);return e}function zC(e){return Nl(e)||Il(e)}function g9(e){if(!zC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL leaf type.`);return e}function HC(e){return sp(e)||El(e)||gl(e)}function I9(e){if(!HC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL composite type.`);return e}function WC(e){return El(e)||gl(e)}function v9(e){if(!WC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL abstract type.`);return e}var xN=class{constructor(t){KN(t)||(0,jr.devAssert)(!1,`Expected ${(0,Ln.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};ze.GraphQLList=xN;var CN=class{constructor(t){HO(t)||(0,jr.devAssert)(!1,`Expected ${(0,Ln.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};ze.GraphQLNonNull=CN;function oh(e){return GN(e)||Ec(e)}function _9(e){if(!oh(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL wrapping type.`);return e}function HO(e){return KN(e)&&!Ec(e)}function b9(e){if(!HO(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL nullable type.`);return e}function O9(e){if(e)return Ec(e)?e.ofType:e}function XC(e){return Nl(e)||sp(e)||El(e)||gl(e)||Il(e)||sh(e)}function S9(e){if(!XC(e))throw new Error(`Expected ${(0,Ln.inspect)(e)} to be a GraphQL named type.`);return e}function D9(e){if(e){let t=e;for(;oh(t);)t=t.ofType;return t}}function WO(e){return typeof e=="function"?e():e}function XO(e){return typeof e=="function"?e():e}var UN=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:GC.identityFunc;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:GC.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,u9.valueFromASTUntyped)(u,l)),this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,jr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Ln.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,jr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLScalarType=UN;var MN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>eU(t),this._interfaces=()=>ZC(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Ln.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nU(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLObjectType=MN;function ZC(e){var t;let n=WO((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,jr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eU(e){let t=XO(e.fields);return ip(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,qN.mapValue)(t,(n,r)=>{var i;ip(n)||(0,jr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,jr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Ln.inspect)(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return ip(s)||(0,jr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Go.assertName)(r),description:n.description,type:n.type,args:tU(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}})}function tU(e){return Object.entries(e).map(([t,n])=>({name:(0,Go.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}))}function ip(e){return(0,i9.isObjectLike)(e)&&!Array.isArray(e)}function nU(e){return(0,qN.mapValue)(e,t=>({description:t.description,type:t.type,args:rU(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function rU(e){return(0,JC.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function A9(e){return Ec(e.type)&&e.defaultValue===void 0}var BN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=eU.bind(void 0,t),this._interfaces=ZC.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Ln.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:nU(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLInterfaceType=BN;var VN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=R9.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Ln.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLUnionType=VN;function R9(e){let t=WO(e.types);return Array.isArray(t)||(0,jr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var jN=class{constructor(t){var n;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:YC(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=YC(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,s9.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new ih.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Ln.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Ln.inspect)(t);throw new ih.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+kN(this,r))}let n=this.getValue(t);if(n==null)throw new ih.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+kN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==a9.Kind.ENUM){let i=(0,QC.print)(t);throw new ih.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+kN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,QC.print)(t);throw new ih.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+kN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,JC.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLEnumType=jN;function kN(e,t){let n=e.getValues().map(i=>i.name),r=(0,o9.suggestionList)(t,n);return(0,r9.didYouMean)("the enum value",r)}function YC(e,t){return ip(t)||(0,jr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(ip(r)||(0,jr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Ln.inspect)(r)}.`),{name:(0,Go.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Ko.toObjMap)(r.extensions),astNode:r.astNode}))}var $N=class{constructor(t){var n,r;this.name=(0,Go.assertName)(t.name),this.description=t.description,this.extensions=(0,Ko.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=F9.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,qN.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};ze.GraphQLInputObjectType=$N;function F9(e){let t=XO(e.fields);return ip(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,qN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,jr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Go.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Ko.toObjMap)(n.extensions),astNode:n.astNode}))}function w9(e){return Ec(e.type)&&e.defaultValue===void 0}});var uh=V(ah=>{"use strict";m();T();h();Object.defineProperty(ah,"__esModule",{value:!0});ah.doTypesOverlap=L9;ah.isEqualType=ZO;ah.isTypeSubTypeOf=QN;var li=tn();function ZO(e,t){return e===t?!0:(0,li.isNonNullType)(e)&&(0,li.isNonNullType)(t)||(0,li.isListType)(e)&&(0,li.isListType)(t)?ZO(e.ofType,t.ofType):!1}function QN(e,t,n){return t===n?!0:(0,li.isNonNullType)(n)?(0,li.isNonNullType)(t)?QN(e,t.ofType,n.ofType):!1:(0,li.isNonNullType)(t)?QN(e,t.ofType,n):(0,li.isListType)(n)?(0,li.isListType)(t)?QN(e,t.ofType,n.ofType):!1:(0,li.isListType)(t)?!1:(0,li.isAbstractType)(n)&&((0,li.isInterfaceType)(t)||(0,li.isObjectType)(t))&&e.isSubType(n,t)}function L9(e,t,n){return t===n?!0:(0,li.isAbstractType)(t)?(0,li.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,li.isAbstractType)(n)?e.isSubType(n,t):!1}});var Qo=V(Fr=>{"use strict";m();T();h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.GraphQLString=Fr.GraphQLInt=Fr.GraphQLID=Fr.GraphQLFloat=Fr.GraphQLBoolean=Fr.GRAPHQL_MIN_INT=Fr.GRAPHQL_MAX_INT=void 0;Fr.isSpecifiedScalarType=P9;Fr.specifiedScalarTypes=void 0;var fo=gn(),iU=$o(),$r=ut(),vl=en(),ch=ps(),lh=tn(),YN=2147483647;Fr.GRAPHQL_MAX_INT=YN;var JN=-2147483648;Fr.GRAPHQL_MIN_INT=JN;var sU=new lh.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=dh(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new $r.GraphQLError(`Int cannot represent non-integer value: ${(0,fo.inspect)(t)}`);if(n>YN||nYN||eYN||te.name===t)}function dh(e){if((0,iU.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,iU.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var ji=V(Er=>{"use strict";m();T();h();Object.defineProperty(Er,"__esModule",{value:!0});Er.GraphQLSpecifiedByDirective=Er.GraphQLSkipDirective=Er.GraphQLOneOfDirective=Er.GraphQLIncludeDirective=Er.GraphQLDirective=Er.GraphQLDeprecatedDirective=Er.DEFAULT_DEPRECATION_REASON=void 0;Er.assertDirective=B9;Er.isDirective=pU;Er.isSpecifiedDirective=V9;Er.specifiedDirectives=void 0;var dU=Di(),k9=gn(),x9=Xm(),C9=$o(),U9=RN(),Ls=ep(),M9=rh(),ph=tn(),zN=Qo();function pU(e){return(0,x9.instanceOf)(e,Ma)}function B9(e){if(!pU(e))throw new Error(`Expected ${(0,k9.inspect)(e)} to be a GraphQL directive.`);return e}var Ma=class{constructor(t){var n,r;this.name=(0,M9.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,U9.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,dU.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,C9.isObjectLike)(i)&&!Array.isArray(i)||(0,dU.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,ph.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,ph.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Er.GraphQLDirective=Ma;var fU=new Ma({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ls.DirectiveLocation.FIELD,Ls.DirectiveLocation.FRAGMENT_SPREAD,Ls.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ph.GraphQLNonNull(zN.GraphQLBoolean),description:"Included when true."}}});Er.GraphQLIncludeDirective=fU;var mU=new Ma({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ls.DirectiveLocation.FIELD,Ls.DirectiveLocation.FRAGMENT_SPREAD,Ls.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ph.GraphQLNonNull(zN.GraphQLBoolean),description:"Skipped when true."}}});Er.GraphQLSkipDirective=mU;var hU="No longer supported";Er.DEFAULT_DEPRECATION_REASON=hU;var TU=new Ma({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ls.DirectiveLocation.FIELD_DEFINITION,Ls.DirectiveLocation.ARGUMENT_DEFINITION,Ls.DirectiveLocation.INPUT_FIELD_DEFINITION,Ls.DirectiveLocation.ENUM_VALUE],args:{reason:{type:zN.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:hU}}});Er.GraphQLDeprecatedDirective=TU;var yU=new Ma({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ls.DirectiveLocation.SCALAR],args:{url:{type:new ph.GraphQLNonNull(zN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Er.GraphQLSpecifiedByDirective=yU;var NU=new Ma({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ls.DirectiveLocation.INPUT_OBJECT],args:{}});Er.GraphQLOneOfDirective=NU;var EU=Object.freeze([fU,mU,TU,yU,NU]);Er.specifiedDirectives=EU;function V9(e){return EU.some(({name:t})=>t===e.name)}});var HN=V(eS=>{"use strict";m();T();h();Object.defineProperty(eS,"__esModule",{value:!0});eS.isIterableObject=j9;function j9(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var hh=V(tS=>{"use strict";m();T();h();Object.defineProperty(tS,"__esModule",{value:!0});tS.astFromValue=mh;var gU=gn(),$9=ci(),q9=HN(),K9=$o(),Ps=en(),fh=tn(),G9=Qo();function mh(e,t){if((0,fh.isNonNullType)(t)){let n=mh(e,t.ofType);return(n==null?void 0:n.kind)===Ps.Kind.NULL?null:n}if(e===null)return{kind:Ps.Kind.NULL};if(e===void 0)return null;if((0,fh.isListType)(t)){let n=t.ofType;if((0,q9.isIterableObject)(e)){let r=[];for(let i of e){let s=mh(i,n);s!=null&&r.push(s)}return{kind:Ps.Kind.LIST,values:r}}return mh(e,n)}if((0,fh.isInputObjectType)(t)){if(!(0,K9.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=mh(e[r.name],r.type);i&&n.push({kind:Ps.Kind.OBJECT_FIELD,name:{kind:Ps.Kind.NAME,value:r.name},value:i})}return{kind:Ps.Kind.OBJECT,fields:n}}if((0,fh.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Ps.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return IU.test(r)?{kind:Ps.Kind.INT,value:r}:{kind:Ps.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,fh.isEnumType)(t)?{kind:Ps.Kind.ENUM,value:n}:t===G9.GraphQLID&&IU.test(n)?{kind:Ps.Kind.INT,value:n}:{kind:Ps.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,gU.inspect)(n)}.`)}(0,$9.invariant)(!1,"Unexpected input type: "+(0,gU.inspect)(t))}var IU=/^-?(?:0|[1-9][0-9]*)$/});var xs=V(In=>{"use strict";m();T();h();Object.defineProperty(In,"__esModule",{value:!0});In.introspectionTypes=In.__TypeKind=In.__Type=In.__Schema=In.__InputValue=In.__Field=In.__EnumValue=In.__DirectiveLocation=In.__Directive=In.TypeNameMetaFieldDef=In.TypeMetaFieldDef=In.TypeKind=In.SchemaMetaFieldDef=void 0;In.isIntrospectionType=Z9;var Q9=gn(),Y9=ci(),wr=ep(),J9=ps(),z9=hh(),Be=tn(),An=Qo(),nS=new Be.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:An.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(ks))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Be.GraphQLNonNull(ks),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:ks,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:ks,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(rS))),resolve:e=>e.getDirectives()}})});In.__Schema=nS;var rS=new Be.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(iS))),resolve:e=>e.locations},args:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(Th))),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});In.__Directive=rS;var iS=new Be.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:Fr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Fr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Fr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Fr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Fr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Fr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Fr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Fr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Fr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Fr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Fr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Fr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Fr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Fr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Fr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Fr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Fr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Fr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Fr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});In.__DirectiveLocation=iS;var ks=new Be.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 Be.GraphQLNonNull(aS),resolve(e){if((0,Be.isScalarType)(e))return Lr.SCALAR;if((0,Be.isObjectType)(e))return Lr.OBJECT;if((0,Be.isInterfaceType)(e))return Lr.INTERFACE;if((0,Be.isUnionType)(e))return Lr.UNION;if((0,Be.isEnumType)(e))return Lr.ENUM;if((0,Be.isInputObjectType)(e))return Lr.INPUT_OBJECT;if((0,Be.isListType)(e))return Lr.LIST;if((0,Be.isNonNullType)(e))return Lr.NON_NULL;(0,Y9.invariant)(!1,`Unexpected type: "${(0,Q9.inspect)(e)}".`)}},name:{type:An.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:An.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:An.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Be.GraphQLList(new Be.GraphQLNonNull(sS)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isObjectType)(e)||(0,Be.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Be.GraphQLList(new Be.GraphQLNonNull(ks)),resolve(e){if((0,Be.isObjectType)(e)||(0,Be.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Be.GraphQLList(new Be.GraphQLNonNull(ks)),resolve(e,t,n,{schema:r}){if((0,Be.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new Be.GraphQLList(new Be.GraphQLNonNull(oS)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Be.GraphQLList(new Be.GraphQLNonNull(Th)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:ks,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:An.GraphQLBoolean,resolve:e=>{if((0,Be.isInputObjectType)(e))return e.isOneOf}}})});In.__Type=ks;var sS=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},args:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(Th))),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Be.GraphQLNonNull(ks),resolve:e=>e.type},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__Field=sS;var Th=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},type:{type:new Be.GraphQLNonNull(ks),resolve:e=>e.type},defaultValue:{type:An.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,z9.astFromValue)(n,t);return r?(0,J9.print)(r):null}},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__InputValue=Th;var oS=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__EnumValue=oS;var Lr;In.TypeKind=Lr;(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"})(Lr||(In.TypeKind=Lr={}));var aS=new Be.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Lr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Lr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Lr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Lr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Lr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Lr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Lr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Lr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});In.__TypeKind=aS;var H9={name:"__schema",type:new Be.GraphQLNonNull(nS),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};In.SchemaMetaFieldDef=H9;var W9={name:"__type",type:ks,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Be.GraphQLNonNull(An.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};In.TypeMetaFieldDef=W9;var X9={name:"__typename",type:new Be.GraphQLNonNull(An.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};In.TypeNameMetaFieldDef=X9;var vU=Object.freeze([nS,rS,iS,ks,sS,Th,oS,aS]);In.introspectionTypes=vU;function Z9(e){return vU.some(({name:t})=>e.name===t)}});var _l=V(op=>{"use strict";m();T();h();Object.defineProperty(op,"__esModule",{value:!0});op.GraphQLSchema=void 0;op.assertSchema=i7;op.isSchema=bU;var WN=Di(),cS=gn(),e7=Xm(),t7=$o(),n7=RN(),uS=qo(),mo=tn(),_U=ji(),r7=xs();function bU(e){return(0,e7.instanceOf)(e,XN)}function i7(e){if(!bU(e))throw new Error(`Expected ${(0,cS.inspect)(e)} to be a GraphQL schema.`);return e}var XN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,t7.isObjectLike)(t)||(0,WN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,WN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,cS.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,WN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,cS.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,n7.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:_U.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),ho(s,i);this._queryType!=null&&ho(this._queryType,i),this._mutationType!=null&&ho(this._mutationType,i),this._subscriptionType!=null&&ho(this._subscriptionType,i);for(let s of this._directives)if((0,_U.isDirective)(s))for(let o of s.args)ho(o.type,i);ho(r7.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||(0,WN.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]=s,(0,mo.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,mo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if((0,mo.isObjectType)(s)){for(let u of s.getInterfaces())if((0,mo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case uS.OperationTypeNode.QUERY:return this.getQueryType();case uS.OperationTypeNode.MUTATION:return this.getMutationType();case uS.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,mo.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,mo.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.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}}};op.GraphQLSchema=XN;function ho(e,t){let n=(0,mo.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,mo.isUnionType)(n))for(let r of n.getTypes())ho(r,t);else if((0,mo.isObjectType)(n)||(0,mo.isInterfaceType)(n)){for(let r of n.getInterfaces())ho(r,t);for(let r of Object.values(n.getFields())){ho(r.type,t);for(let i of r.args)ho(i.type,t)}}else if((0,mo.isInputObjectType)(n))for(let r of Object.values(n.getFields()))ho(r.type,t)}return t}});var Nh=V(ZN=>{"use strict";m();T();h();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.assertValidSchema=u7;ZN.validateSchema=wU;var di=gn(),s7=at(),lS=qo(),OU=uh(),or=tn(),RU=ji(),o7=xs(),a7=_l();function wU(e){if((0,a7.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new pS(e);c7(t),l7(t),d7(t);let n=t.getErrors();return e.__validationErrors=n,n}function u7(e){let t=wU(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(iS))),resolve:e=>e.locations},args:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(Th))),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});In.__Directive=rS;var iS=new Be.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:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});In.__DirectiveLocation=iS;var ks=new Be.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 Be.GraphQLNonNull(aS),resolve(e){if((0,Be.isScalarType)(e))return Lr.SCALAR;if((0,Be.isObjectType)(e))return Lr.OBJECT;if((0,Be.isInterfaceType)(e))return Lr.INTERFACE;if((0,Be.isUnionType)(e))return Lr.UNION;if((0,Be.isEnumType)(e))return Lr.ENUM;if((0,Be.isInputObjectType)(e))return Lr.INPUT_OBJECT;if((0,Be.isListType)(e))return Lr.LIST;if((0,Be.isNonNullType)(e))return Lr.NON_NULL;(0,Y9.invariant)(!1,`Unexpected type: "${(0,Q9.inspect)(e)}".`)}},name:{type:An.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:An.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:An.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Be.GraphQLList(new Be.GraphQLNonNull(sS)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isObjectType)(e)||(0,Be.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Be.GraphQLList(new Be.GraphQLNonNull(ks)),resolve(e){if((0,Be.isObjectType)(e)||(0,Be.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Be.GraphQLList(new Be.GraphQLNonNull(ks)),resolve(e,t,n,{schema:r}){if((0,Be.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new Be.GraphQLList(new Be.GraphQLNonNull(oS)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Be.GraphQLList(new Be.GraphQLNonNull(Th)),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Be.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:ks,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:An.GraphQLBoolean,resolve:e=>{if((0,Be.isInputObjectType)(e))return e.isOneOf}}})});In.__Type=ks;var sS=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},args:{type:new Be.GraphQLNonNull(new Be.GraphQLList(new Be.GraphQLNonNull(Th))),args:{includeDeprecated:{type:An.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Be.GraphQLNonNull(ks),resolve:e=>e.type},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__Field=sS;var Th=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},type:{type:new Be.GraphQLNonNull(ks),resolve:e=>e.type},defaultValue:{type:An.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,z9.astFromValue)(n,t);return r?(0,J9.print)(r):null}},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__InputValue=Th;var oS=new Be.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 Be.GraphQLNonNull(An.GraphQLString),resolve:e=>e.name},description:{type:An.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Be.GraphQLNonNull(An.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:An.GraphQLString,resolve:e=>e.deprecationReason}})});In.__EnumValue=oS;var Lr;In.TypeKind=Lr;(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"})(Lr||(In.TypeKind=Lr={}));var aS=new Be.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Lr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Lr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Lr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Lr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Lr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Lr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Lr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Lr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});In.__TypeKind=aS;var H9={name:"__schema",type:new Be.GraphQLNonNull(nS),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};In.SchemaMetaFieldDef=H9;var W9={name:"__type",type:ks,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Be.GraphQLNonNull(An.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};In.TypeMetaFieldDef=W9;var X9={name:"__typename",type:new Be.GraphQLNonNull(An.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};In.TypeNameMetaFieldDef=X9;var vU=Object.freeze([nS,rS,iS,ks,sS,Th,oS,aS]);In.introspectionTypes=vU;function Z9(e){return vU.some(({name:t})=>e.name===t)}});var _l=V(op=>{"use strict";m();T();h();Object.defineProperty(op,"__esModule",{value:!0});op.GraphQLSchema=void 0;op.assertSchema=i7;op.isSchema=bU;var WN=Di(),cS=gn(),e7=Xm(),t7=$o(),n7=RN(),uS=qo(),mo=tn(),_U=ji(),r7=xs();function bU(e){return(0,e7.instanceOf)(e,XN)}function i7(e){if(!bU(e))throw new Error(`Expected ${(0,cS.inspect)(e)} to be a GraphQL schema.`);return e}var XN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,t7.isObjectLike)(t)||(0,WN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,WN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,cS.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,WN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,cS.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,n7.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:_U.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),ho(s,i);this._queryType!=null&&ho(this._queryType,i),this._mutationType!=null&&ho(this._mutationType,i),this._subscriptionType!=null&&ho(this._subscriptionType,i);for(let s of this._directives)if((0,_U.isDirective)(s))for(let o of s.args)ho(o.type,i);ho(r7.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||(0,WN.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]=s,(0,mo.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,mo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if((0,mo.isObjectType)(s)){for(let u of s.getInterfaces())if((0,mo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case uS.OperationTypeNode.QUERY:return this.getQueryType();case uS.OperationTypeNode.MUTATION:return this.getMutationType();case uS.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,mo.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,mo.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.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}}};op.GraphQLSchema=XN;function ho(e,t){let n=(0,mo.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,mo.isUnionType)(n))for(let r of n.getTypes())ho(r,t);else if((0,mo.isObjectType)(n)||(0,mo.isInterfaceType)(n)){for(let r of n.getInterfaces())ho(r,t);for(let r of Object.values(n.getFields())){ho(r.type,t);for(let i of r.args)ho(i.type,t)}}else if((0,mo.isInputObjectType)(n))for(let r of Object.values(n.getFields()))ho(r.type,t)}return t}});var Nh=V(ZN=>{"use strict";m();T();h();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.assertValidSchema=u7;ZN.validateSchema=FU;var di=gn(),s7=ut(),lS=qo(),OU=uh(),ar=tn(),RU=ji(),o7=xs(),a7=_l();function FU(e){if((0,a7.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new pS(e);c7(t),l7(t),d7(t);let n=t.getErrors();return e.__validationErrors=n,n}function u7(e){let t=FU(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var pS=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new s7.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function c7(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,or.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,di.inspect)(n)}.`,(r=dS(t,lS.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,or.isObjectType)(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,di.inspect)(i)}.`,(s=dS(t,lS.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,or.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,di.inspect)(o)}.`,(u=dS(t,lS.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function dS(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 l7(e){for(let n of e.schema.getDirectives()){if(!(0,RU.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,di.inspect)(n)}.`,n==null?void 0:n.astNode);continue}bl(e,n);for(let r of n.args)if(bl(e,r),(0,or.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,di.inspect)(r.type)}.`,r.astNode),(0,or.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[fS(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function bl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function d7(e){let t=N7(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,or.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,di.inspect)(r)}.`,r.astNode);continue}(0,o7.isIntrospectionType)(r)||bl(e,r),(0,or.isObjectType)(r)||(0,or.isInterfaceType)(r)?(SU(e,r),DU(e,r)):(0,or.isUnionType)(r)?m7(e,r):(0,or.isEnumType)(r)?h7(e,r):(0,or.isInputObjectType)(r)&&(T7(e,r),t(r))}}function SU(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(bl(e,o),!(0,or.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,di.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(bl(e,u),!(0,or.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,di.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,or.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[fS(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function DU(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,or.isInterfaceType)(r)){e.reportError(`Type ${(0,di.inspect)(t)} must only implement Interface types, it cannot implement ${(0,di.inspect)(r)}.`,yh(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,yh(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,yh(t,r));continue}n[r.name]=!0,f7(e,t,r),p7(e,t,r)}}function p7(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,OU.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,di.inspect)(l.type)} but ${t.name}.${d} is type ${(0,di.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(b=>b.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,OU.isEqualType)(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${(0,di.inspect)(y.type)} but ${t.name}.${d}(${N}:) is type ${(0,di.inspect)(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(b=>b.name===N)&&(0,or.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function f7(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}.`,[...yh(n,i),...yh(t,n)])}function m7(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.`,AU(t,i.name));continue}r[i.name]=!0,(0,or.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,di.inspect)(i)}.`,AU(t,String(i)))}}function h7(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)bl(e,r)}function T7(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 s of n){if(bl(e,s),!(0,or.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,di.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,or.isRequiredInputField)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[fS(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&y7(t,s,e)}}function y7(e,t,n){if((0,or.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 N7(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if((0,or.isNonNullType)(u.type)&&(0,or.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function yh(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function AU(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function fS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===RU.GraphQLDeprecatedDirective.name)}});var Yo=V(TS=>{"use strict";m();T();h();Object.defineProperty(TS,"__esModule",{value:!0});TS.typeFromAST=hS;var mS=en(),FU=tn();function hS(e,t){switch(t.kind){case mS.Kind.LIST_TYPE:{let n=hS(e,t.type);return n&&new FU.GraphQLList(n)}case mS.Kind.NON_NULL_TYPE:{let n=hS(e,t.type);return n&&new FU.GraphQLNonNull(n)}case mS.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var eE=V(Eh=>{"use strict";m();T();h();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.TypeInfo=void 0;Eh.visitWithTypeInfo=I7;var E7=qo(),ar=en(),LU=yl(),ur=tn(),ap=xs(),PU=Yo(),yS=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:g7,n&&((0,ur.isInputType)(n)&&this._inputTypeStack.push(n),(0,ur.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,ur.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 ar.Kind.SELECTION_SET:{let i=(0,ur.getNamedType)(this.getType());this._parentTypeStack.push((0,ur.isCompositeType)(i)?i:void 0);break}case ar.Kind.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,ur.isOutputType)(o)?o:void 0);break}case ar.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case ar.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,ur.isObjectType)(i)?i:void 0);break}case ar.Kind.INLINE_FRAGMENT:case ar.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?(0,PU.typeFromAST)(n,i):(0,ur.getNamedType)(this.getType());this._typeStack.push((0,ur.isOutputType)(s)?s:void 0);break}case ar.Kind.VARIABLE_DEFINITION:{let i=(0,PU.typeFromAST)(n,t.type);this._inputTypeStack.push((0,ur.isInputType)(i)?i:void 0);break}case ar.Kind.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,ur.isInputType)(s)?s:void 0);break}case ar.Kind.LIST:{let i=(0,ur.getNullableType)(this.getInputType()),s=(0,ur.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,ur.isInputType)(s)?s:void 0);break}case ar.Kind.OBJECT_FIELD:{let i=(0,ur.getNamedType)(this.getInputType()),s,o;(0,ur.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,ur.isInputType)(s)?s:void 0);break}case ar.Kind.ENUM:{let i=(0,ur.getNamedType)(this.getInputType()),s;(0,ur.isEnumType)(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case ar.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ar.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ar.Kind.DIRECTIVE:this._directive=null;break;case ar.Kind.OPERATION_DEFINITION:case ar.Kind.INLINE_FRAGMENT:case ar.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ar.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ar.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ar.Kind.LIST:case ar.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ar.Kind.ENUM:this._enumValue=null;break;default:}}};Eh.TypeInfo=yS;function g7(e,t,n){let r=n.name.value;if(r===ap.SchemaMetaFieldDef.name&&e.getQueryType()===t)return ap.SchemaMetaFieldDef;if(r===ap.TypeMetaFieldDef.name&&e.getQueryType()===t)return ap.TypeMetaFieldDef;if(r===ap.TypeNameMetaFieldDef.name&&(0,ur.isCompositeType)(t))return ap.TypeNameMetaFieldDef;if((0,ur.isObjectType)(t)||(0,ur.isInterfaceType)(t))return t.getFields()[r]}function I7(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,LU.getEnterLeaveForKind)(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),(0,E7.isNode)(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=(0,LU.getEnterLeaveForKind)(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}});var Ol=V(Cs=>{"use strict";m();T();h();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.isConstValueNode=NS;Cs.isDefinitionNode=v7;Cs.isExecutableDefinitionNode=kU;Cs.isSelectionNode=_7;Cs.isTypeDefinitionNode=UU;Cs.isTypeExtensionNode=BU;Cs.isTypeNode=b7;Cs.isTypeSystemDefinitionNode=CU;Cs.isTypeSystemExtensionNode=MU;Cs.isValueNode=xU;var nn=en();function v7(e){return kU(e)||CU(e)||MU(e)}function kU(e){return e.kind===nn.Kind.OPERATION_DEFINITION||e.kind===nn.Kind.FRAGMENT_DEFINITION}function _7(e){return e.kind===nn.Kind.FIELD||e.kind===nn.Kind.FRAGMENT_SPREAD||e.kind===nn.Kind.INLINE_FRAGMENT}function xU(e){return e.kind===nn.Kind.VARIABLE||e.kind===nn.Kind.INT||e.kind===nn.Kind.FLOAT||e.kind===nn.Kind.STRING||e.kind===nn.Kind.BOOLEAN||e.kind===nn.Kind.NULL||e.kind===nn.Kind.ENUM||e.kind===nn.Kind.LIST||e.kind===nn.Kind.OBJECT}function NS(e){return xU(e)&&(e.kind===nn.Kind.LIST?e.values.some(NS):e.kind===nn.Kind.OBJECT?e.fields.some(t=>NS(t.value)):e.kind!==nn.Kind.VARIABLE)}function b7(e){return e.kind===nn.Kind.NAMED_TYPE||e.kind===nn.Kind.LIST_TYPE||e.kind===nn.Kind.NON_NULL_TYPE}function CU(e){return e.kind===nn.Kind.SCHEMA_DEFINITION||UU(e)||e.kind===nn.Kind.DIRECTIVE_DEFINITION}function UU(e){return e.kind===nn.Kind.SCALAR_TYPE_DEFINITION||e.kind===nn.Kind.OBJECT_TYPE_DEFINITION||e.kind===nn.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nn.Kind.UNION_TYPE_DEFINITION||e.kind===nn.Kind.ENUM_TYPE_DEFINITION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_DEFINITION}function MU(e){return e.kind===nn.Kind.SCHEMA_EXTENSION||BU(e)}function BU(e){return e.kind===nn.Kind.SCALAR_TYPE_EXTENSION||e.kind===nn.Kind.OBJECT_TYPE_EXTENSION||e.kind===nn.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nn.Kind.UNION_TYPE_EXTENSION||e.kind===nn.Kind.ENUM_TYPE_EXTENSION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var gS=V(ES=>{"use strict";m();T();h();Object.defineProperty(ES,"__esModule",{value:!0});ES.ExecutableDefinitionsRule=D7;var O7=at(),VU=en(),S7=Ol();function D7(e){return{Document(t){for(let n of t.definitions)if(!(0,S7.isExecutableDefinitionNode)(n)){let r=n.kind===VU.Kind.SCHEMA_DEFINITION||n.kind===VU.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new O7.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var vS=V(IS=>{"use strict";m();T();h();Object.defineProperty(IS,"__esModule",{value:!0});IS.FieldsOnCorrectTypeRule=F7;var jU=mc(),A7=nh(),R7=Tc(),w7=at(),gh=tn();function F7(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=(0,jU.didYouMean)("to use an inline fragment on",L7(i,n,s));o===""&&(o=(0,jU.didYouMean)(P7(n,s))),e.reportError(new w7.GraphQLError(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function L7(e,t,n){if(!(0,gh.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 u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,gh.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,gh.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,A7.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function P7(e,t){if((0,gh.isObjectType)(e)||(0,gh.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,R7.suggestionList)(t,n)}return[]}});var bS=V(_S=>{"use strict";m();T();h();Object.defineProperty(_S,"__esModule",{value:!0});_S.FragmentsOnCompositeTypesRule=k7;var $U=at(),qU=ps(),KU=tn(),GU=Yo();function k7(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,GU.typeFromAST)(e.getSchema(),n);if(r&&!(0,KU.isCompositeType)(r)){let i=(0,qU.print)(n);e.reportError(new $U.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,GU.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,KU.isCompositeType)(n)){let r=(0,qU.print)(t.typeCondition);e.reportError(new $U.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var OS=V(tE=>{"use strict";m();T();h();Object.defineProperty(tE,"__esModule",{value:!0});tE.KnownArgumentNamesOnDirectivesRule=zU;tE.KnownArgumentNamesRule=U7;var QU=mc(),YU=Tc(),JU=at(),x7=en(),C7=ji();function U7(e){return K(k({},zU(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=(0,YU.suggestionList)(s,o);e.reportError(new JU.GraphQLError(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+(0,QU.didYouMean)(u),{nodes:t}))}}})}function zU(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():C7.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===x7.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,YU.suggestionList)(p,l);e.reportError(new JU.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,QU.didYouMean)(y),{nodes:d}))}}return!1}}}});var RS=V(AS=>{"use strict";m();T();h();Object.defineProperty(AS,"__esModule",{value:!0});AS.KnownDirectivesRule=V7;var M7=gn(),SS=ci(),HU=at(),DS=qo(),Pr=ep(),jn=en(),B7=ji();function V7(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():B7.specifiedDirectives;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===jn.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new HU.GraphQLError(`Unknown directive "@${p}".`,{nodes:s}));return}let N=j7(d);N&&!y.includes(N)&&e.reportError(new HU.GraphQLError(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function j7(e){let t=e[e.length-1];switch("kind"in t||(0,SS.invariant)(!1),t.kind){case jn.Kind.OPERATION_DEFINITION:return $7(t.operation);case jn.Kind.FIELD:return Pr.DirectiveLocation.FIELD;case jn.Kind.FRAGMENT_SPREAD:return Pr.DirectiveLocation.FRAGMENT_SPREAD;case jn.Kind.INLINE_FRAGMENT:return Pr.DirectiveLocation.INLINE_FRAGMENT;case jn.Kind.FRAGMENT_DEFINITION:return Pr.DirectiveLocation.FRAGMENT_DEFINITION;case jn.Kind.VARIABLE_DEFINITION:return Pr.DirectiveLocation.VARIABLE_DEFINITION;case jn.Kind.SCHEMA_DEFINITION:case jn.Kind.SCHEMA_EXTENSION:return Pr.DirectiveLocation.SCHEMA;case jn.Kind.SCALAR_TYPE_DEFINITION:case jn.Kind.SCALAR_TYPE_EXTENSION:return Pr.DirectiveLocation.SCALAR;case jn.Kind.OBJECT_TYPE_DEFINITION:case jn.Kind.OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.OBJECT;case jn.Kind.FIELD_DEFINITION:return Pr.DirectiveLocation.FIELD_DEFINITION;case jn.Kind.INTERFACE_TYPE_DEFINITION:case jn.Kind.INTERFACE_TYPE_EXTENSION:return Pr.DirectiveLocation.INTERFACE;case jn.Kind.UNION_TYPE_DEFINITION:case jn.Kind.UNION_TYPE_EXTENSION:return Pr.DirectiveLocation.UNION;case jn.Kind.ENUM_TYPE_DEFINITION:case jn.Kind.ENUM_TYPE_EXTENSION:return Pr.DirectiveLocation.ENUM;case jn.Kind.ENUM_VALUE_DEFINITION:return Pr.DirectiveLocation.ENUM_VALUE;case jn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.INPUT_OBJECT;case jn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,SS.invariant)(!1),n.kind===jn.Kind.INPUT_OBJECT_TYPE_DEFINITION?Pr.DirectiveLocation.INPUT_FIELD_DEFINITION:Pr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,SS.invariant)(!1,"Unexpected kind: "+(0,M7.inspect)(t.kind))}}function $7(e){switch(e){case DS.OperationTypeNode.QUERY:return Pr.DirectiveLocation.QUERY;case DS.OperationTypeNode.MUTATION:return Pr.DirectiveLocation.MUTATION;case DS.OperationTypeNode.SUBSCRIPTION:return Pr.DirectiveLocation.SUBSCRIPTION}}});var FS=V(wS=>{"use strict";m();T();h();Object.defineProperty(wS,"__esModule",{value:!0});wS.KnownFragmentNamesRule=K7;var q7=at();function K7(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new q7.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var kS=V(PS=>{"use strict";m();T();h();Object.defineProperty(PS,"__esModule",{value:!0});PS.KnownTypeNamesRule=H7;var G7=mc(),Q7=Tc(),Y7=at(),LS=Ol(),J7=xs(),z7=Qo();function H7(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)(0,LS.isTypeDefinitionNode)(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&W7(N);if(I&&WU.includes(p))return;let b=(0,Q7.suggestionList)(p,I?WU.concat(i):i);e.reportError(new Y7.GraphQLError(`Unknown type "${p}".`+(0,G7.didYouMean)(b),{nodes:s}))}}}}var WU=[...z7.specifiedScalarTypes,...J7.introspectionTypes].map(e=>e.name);function W7(e){return"kind"in e&&((0,LS.isTypeSystemDefinitionNode)(e)||(0,LS.isTypeSystemExtensionNode)(e))}});var CS=V(xS=>{"use strict";m();T();h();Object.defineProperty(xS,"__esModule",{value:!0});xS.LoneAnonymousOperationRule=eZ;var X7=at(),Z7=en();function eZ(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===Z7.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new X7.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var MS=V(US=>{"use strict";m();T();h();Object.defineProperty(US,"__esModule",{value:!0});US.LoneSchemaDefinitionRule=tZ;var XU=at();function tZ(e){var t,n,r;let i=e.getSchema(),s=(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(u){if(s){e.reportError(new XU.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new XU.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var VS=V(BS=>{"use strict";m();T();h();Object.defineProperty(BS,"__esModule",{value:!0});BS.MaxIntrospectionDepthRule=iZ;var nZ=at(),ZU=en(),rZ=3;function iZ(e){function t(n,r=Object.create(null),i=0){if(n.kind===ZU.Kind.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===ZU.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=rZ))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new nZ.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var $S=V(jS=>{"use strict";m();T();h();Object.defineProperty(jS,"__esModule",{value:!0});jS.NoFragmentCyclesRule=oZ;var sZ=at();function oZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new sZ.GraphQLError(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var KS=V(qS=>{"use strict";m();T();h();Object.defineProperty(qS,"__esModule",{value:!0});qS.NoUndefinedVariablesRule=uZ;var aZ=at();function uZ(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 s=i.name.value;t[s]!==!0&&e.reportError(new aZ.GraphQLError(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var QS=V(GS=>{"use strict";m();T();h();Object.defineProperty(GS,"__esModule",{value:!0});GS.NoUnusedFragmentsRule=lZ;var cZ=at();function lZ(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 s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new cZ.GraphQLError(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}});var JS=V(YS=>{"use strict";m();T();h();Object.defineProperty(YS,"__esModule",{value:!0});YS.NoUnusedVariablesRule=pZ;var dZ=at();function pZ(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new dZ.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}});var WS=V(HS=>{"use strict";m();T();h();Object.defineProperty(HS,"__esModule",{value:!0});HS.sortValueNode=zS;var fZ=nh(),Ba=en();function zS(e){switch(e.kind){case Ba.Kind.OBJECT:return K(k({},e),{fields:mZ(e.fields)});case Ba.Kind.LIST:return K(k({},e),{values:e.values.map(zS)});case Ba.Kind.INT:case Ba.Kind.FLOAT:case Ba.Kind.STRING:case Ba.Kind.BOOLEAN:case Ba.Kind.NULL:case Ba.Kind.ENUM:case Ba.Kind.VARIABLE:return e}}function mZ(e){return e.map(t=>K(k({},t),{value:zS(t.value)})).sort((t,n)=>(0,fZ.naturalCompare)(t.name.value,n.name.value))}});var i0=V(r0=>{"use strict";m();T();h();Object.defineProperty(r0,"__esModule",{value:!0});r0.OverlappingFieldsCanBeMergedRule=NZ;var eM=gn(),hZ=at(),XS=en(),TZ=ps(),$i=tn(),yZ=WS(),nM=Yo();function rM(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+rM(n)).join(" and "):e}function NZ(e){let t=new t0,n=new Map;return{SelectionSet(r){let i=EZ(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=rM(o);e.reportError(new hZ.GraphQLError(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function EZ(e,t,n,r,i){let s=[],[o,u]=iE(e,t,r,i);if(IZ(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:tM(o)===tM(u)})}function tM(e){return(0,TZ.print)((0,yZ.sortValueNode)(e))}function ZS(e,t){return(0,$i.isListType)(e)?(0,$i.isListType)(t)?ZS(e.ofType,t.ofType):!0:(0,$i.isListType)(t)?!0:(0,$i.isNonNullType)(e)?(0,$i.isNonNullType)(t)?ZS(e.ofType,t.ofType):!0:(0,$i.isNonNullType)(t)?!0:(0,$i.isLeafType)(e)||(0,$i.isLeafType)(t)?e!==t:!1}function iE(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);sM(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function e0(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,nM.typeFromAST)(e.getSchema(),n.typeCondition);return iE(e,t,i,n.selectionSet)}function sM(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case XS.Kind.FIELD:{let o=s.name.value,u;((0,$i.isObjectType)(t)||(0,$i.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case XS.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case XS.Kind.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?(0,nM.typeFromAST)(e.getSchema(),o):t;sM(e,u,s.selectionSet,r,i);break}}}function _Z(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 t0=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Object.defineProperty(o0,"__esModule",{value:!0});o0.PossibleFragmentSpreadsRule=OZ;var sE=gn(),oM=at(),s0=tn(),aM=uh(),bZ=Yo();function OZ(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,s0.isCompositeType)(n)&&(0,s0.isCompositeType)(r)&&!(0,aM.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,sE.inspect)(r),s=(0,sE.inspect)(n);e.reportError(new oM.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=SZ(e,n),i=e.getParentType();if(r&&i&&!(0,aM.doTypesOverlap)(e.getSchema(),r,i)){let s=(0,sE.inspect)(i),o=(0,sE.inspect)(r);e.reportError(new oM.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function SZ(e,t){let n=e.getFragment(t);if(n){let r=(0,bZ.typeFromAST)(e.getSchema(),n.typeCondition);if((0,s0.isCompositeType)(r))return r}}});var c0=V(u0=>{"use strict";m();T();h();Object.defineProperty(u0,"__esModule",{value:!0});u0.PossibleTypeExtensionsRule=wZ;var DZ=mc(),cM=gn(),lM=ci(),AZ=Tc(),uM=at(),Jn=en(),RZ=Ol(),up=tn();function wZ(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,RZ.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=FZ[o.kind]:u&&(l=LZ(u)),l){if(l!==i.kind){let d=PZ(i.kind);e.reportError(new uM.GraphQLError(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=(0,AZ.suggestionList)(s,d);e.reportError(new uM.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,DZ.didYouMean)(p),{nodes:i.name}))}}}var FZ={[Jn.Kind.SCALAR_TYPE_DEFINITION]:Jn.Kind.SCALAR_TYPE_EXTENSION,[Jn.Kind.OBJECT_TYPE_DEFINITION]:Jn.Kind.OBJECT_TYPE_EXTENSION,[Jn.Kind.INTERFACE_TYPE_DEFINITION]:Jn.Kind.INTERFACE_TYPE_EXTENSION,[Jn.Kind.UNION_TYPE_DEFINITION]:Jn.Kind.UNION_TYPE_EXTENSION,[Jn.Kind.ENUM_TYPE_DEFINITION]:Jn.Kind.ENUM_TYPE_EXTENSION,[Jn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Jn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function LZ(e){if((0,up.isScalarType)(e))return Jn.Kind.SCALAR_TYPE_EXTENSION;if((0,up.isObjectType)(e))return Jn.Kind.OBJECT_TYPE_EXTENSION;if((0,up.isInterfaceType)(e))return Jn.Kind.INTERFACE_TYPE_EXTENSION;if((0,up.isUnionType)(e))return Jn.Kind.UNION_TYPE_EXTENSION;if((0,up.isEnumType)(e))return Jn.Kind.ENUM_TYPE_EXTENSION;if((0,up.isInputObjectType)(e))return Jn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,lM.invariant)(!1,"Unexpected type: "+(0,cM.inspect)(e))}function PZ(e){switch(e){case Jn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Jn.Kind.OBJECT_TYPE_EXTENSION:return"object";case Jn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Jn.Kind.UNION_TYPE_EXTENSION:return"union";case Jn.Kind.ENUM_TYPE_EXTENSION:return"enum";case Jn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,lM.invariant)(!1,"Unexpected kind: "+(0,cM.inspect)(e))}}});var d0=V(oE=>{"use strict";m();T();h();Object.defineProperty(oE,"__esModule",{value:!0});oE.ProvidedRequiredArgumentsOnDirectivesRule=hM;oE.ProvidedRequiredArgumentsRule=CZ;var pM=gn(),dM=hc(),fM=at(),mM=en(),kZ=ps(),l0=tn(),xZ=ji();function CZ(e){return K(k({},hM(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(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&(0,l0.isRequiredArgument)(s)){let o=(0,pM.inspect)(s.type);e.reportError(new fM.GraphQLError(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function hM(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:xZ.specifiedDirectives;for(let u of i)n[u.name]=(0,dM.keyMap)(u.args.filter(l0.isRequiredArgument),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===mM.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=(0,dM.keyMap)(l.filter(UZ),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,b]of Object.entries(d))if(!N.has(I)){let C=(0,l0.isType)(b.type)?(0,pM.inspect)(b.type):(0,kZ.print)(b.type);e.reportError(new fM.GraphQLError(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function UZ(e){return e.type.kind===mM.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var f0=V(p0=>{"use strict";m();T();h();Object.defineProperty(p0,"__esModule",{value:!0});p0.ScalarLeafsRule=MZ;var TM=gn(),yM=at(),NM=tn();function MZ(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,NM.isLeafType)((0,NM.getNamedType)(n))){if(r){let i=t.name.value,s=(0,TM.inspect)(n);e.reportError(new yM.GraphQLError(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=(0,TM.inspect)(n);e.reportError(new yM.GraphQLError(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var h0=V(m0=>{"use strict";m();T();h();Object.defineProperty(m0,"__esModule",{value:!0});m0.printPathArray=BZ;function BZ(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Ih=V(aE=>{"use strict";m();T();h();Object.defineProperty(aE,"__esModule",{value:!0});aE.addPath=VZ;aE.pathToArray=jZ;function VZ(e,t,n){return{prev:e,key:t,typename:n}}function jZ(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var y0=V(T0=>{"use strict";m();T();h();Object.defineProperty(T0,"__esModule",{value:!0});T0.coerceInputValue=JZ;var $Z=mc(),uE=gn(),qZ=ci(),KZ=HN(),GZ=$o(),To=Ih(),QZ=h0(),YZ=Tc(),Va=at(),vh=tn();function JZ(e,t,n=zZ){return _h(e,t,n,void 0)}function zZ(e,t,n){let r="Invalid value "+(0,uE.inspect)(t);throw e.length>0&&(r+=` at "value${(0,QZ.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function _h(e,t,n,r){if((0,vh.isNonNullType)(t)){if(e!=null)return _h(e,t.ofType,n,r);n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected non-nullable type "${(0,uE.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,vh.isListType)(t)){let i=t.ofType;return(0,KZ.isIterableObject)(e)?Array.from(e,(s,o)=>{let u=(0,To.addPath)(r,o,void 0);return _h(s,i,n,u)}):[_h(e,i,n,r)]}if((0,vh.isInputObjectType)(t)){if(!(0,GZ.isObjectLike)(e)){n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,vh.isNonNullType)(o.type)){let l=(0,uE.inspect)(o.type);n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=_h(u,o.type,n,(0,To.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=(0,YZ.suggestionList)(o,Object.keys(t.getFields()));n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,$Z.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n((0,To.pathToArray)(r).concat(u),l,new Va.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,vh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Va.GraphQLError?n((0,To.pathToArray)(r),e,s):n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}".`)),i}(0,qZ.invariant)(!1,"Unexpected input type: "+(0,uE.inspect)(t))}});var Oh=V(N0=>{"use strict";m();T();h();Object.defineProperty(N0,"__esModule",{value:!0});N0.valueFromAST=bh;var HZ=gn(),WZ=ci(),XZ=hc(),cp=en(),Sl=tn();function bh(e,t,n){if(e){if(e.kind===cp.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,Sl.isNonNullType)(t)?void 0:i}if((0,Sl.isNonNullType)(t))return e.kind===cp.Kind.NULL?void 0:bh(e,t.ofType,n);if(e.kind===cp.Kind.NULL)return null;if((0,Sl.isListType)(t)){let r=t.ofType;if(e.kind===cp.Kind.LIST){let s=[];for(let o of e.values)if(EM(o,n)){if((0,Sl.isNonNullType)(r))return;s.push(null)}else{let u=bh(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=bh(e,r,n);return i===void 0?void 0:[i]}if((0,Sl.isInputObjectType)(t)){if(e.kind!==cp.Kind.OBJECT)return;let r=Object.create(null),i=(0,XZ.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||EM(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if((0,Sl.isNonNullType)(s.type))return;continue}let u=bh(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if((0,Sl.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,WZ.invariant)(!1,"Unexpected input type: "+(0,HZ.inspect)(t))}}function EM(e,t){return e.kind===cp.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var pp=V(Sh=>{"use strict";m();T();h();Object.defineProperty(Sh,"__esModule",{value:!0});Sh.getArgumentValues=_M;Sh.getDirectiveValues=see;Sh.getVariableValues=ree;var lp=gn(),ZZ=hc(),eee=h0(),ja=at(),gM=en(),IM=ps(),dp=tn(),tee=y0(),nee=Yo(),vM=Oh();function ree(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=iee(e,t,n,u=>{if(s!=null&&i.length>=s)throw new ja.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function iee(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=(0,nee.typeFromAST)(e,s.type);if(!(0,dp.isInputType)(u)){let d=(0,IM.print)(s.type);r(new ja.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!bM(n,o)){if(s.defaultValue)i[o]=(0,vM.valueFromAST)(s.defaultValue,u);else if((0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new ja.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&(0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new ja.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=(0,tee.coerceInputValue)(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+(0,lp.inspect)(p);d.length>0&&(N+=` at "${o}${(0,eee.printPathArray)(d)}"`),r(new ja.GraphQLError(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function _M(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,ZZ.keyMap)(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===gM.Kind.NULL;if(y.kind===gM.Kind.VARIABLE){let b=y.name.value;if(n==null||!bM(n,b)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:y});continue}N=n[b]==null}if(N&&(0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of non-null type "${(0,lp.inspect)(d)}" must not be null.`,{nodes:y});let I=(0,vM.valueFromAST)(y,d,n);if(I===void 0)throw new ja.GraphQLError(`Argument "${l}" has invalid value ${(0,IM.print)(y)}.`,{nodes:y});i[l]=I}return i}function see(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return _M(e,i,n)}function bM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var dE=V(lE=>{"use strict";m();T();h();Object.defineProperty(lE,"__esModule",{value:!0});lE.collectFields=uee;lE.collectSubfields=cee;var E0=en(),oee=tn(),OM=ji(),aee=Yo(),SM=pp();function uee(e,t,n,r,i){let s=new Map;return cE(e,t,n,r,i,s,new Set),s}function cee(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&cE(e,t,n,r,u.selectionSet,s,o);return s}function cE(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case E0.Kind.FIELD:{if(!g0(n,u))continue;let l=lee(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case E0.Kind.INLINE_FRAGMENT:{if(!g0(n,u)||!DM(e,u,r))continue;cE(e,t,n,r,u.selectionSet,s,o);break}case E0.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!g0(n,u))continue;o.add(l);let d=t[l];if(!d||!DM(e,d,r))continue;cE(e,t,n,r,d.selectionSet,s,o);break}}}function g0(e,t){let n=(0,SM.getDirectiveValues)(OM.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,SM.getDirectiveValues)(OM.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function DM(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,aee.typeFromAST)(e,r);return i===n?!0:(0,oee.isAbstractType)(i)?e.isSubType(i,n):!1}function lee(e){return e.alias?e.alias.value:e.name.value}});var v0=V(I0=>{"use strict";m();T();h();Object.defineProperty(I0,"__esModule",{value:!0});I0.SingleFieldSubscriptionsRule=fee;var AM=at(),dee=en(),pee=dE();function fee(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,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===dee.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,pee.collectFields)(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new AM.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 d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new AM.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var pE=V(_0=>{"use strict";m();T();h();Object.defineProperty(_0,"__esModule",{value:!0});_0.groupBy=mee;function mee(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}});var O0=V(b0=>{"use strict";m();T();h();Object.defineProperty(b0,"__esModule",{value:!0});b0.UniqueArgumentDefinitionNamesRule=yee;var hee=pE(),Tee=at();function yee(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=(0,hee.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Tee.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var D0=V(S0=>{"use strict";m();T();h();Object.defineProperty(S0,"__esModule",{value:!0});S0.UniqueArgumentNamesRule=gee;var Nee=pE(),Eee=at();function gee(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=(0,Nee.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Eee.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var R0=V(A0=>{"use strict";m();T();h();Object.defineProperty(A0,"__esModule",{value:!0});A0.UniqueDirectiveNamesRule=Iee;var RM=at();function Iee(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 RM.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new RM.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var L0=V(F0=>{"use strict";m();T();h();Object.defineProperty(F0,"__esModule",{value:!0});F0.UniqueDirectivesPerLocationRule=bee;var vee=at(),w0=en(),wM=Ol(),_ee=ji();function bee(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():_ee.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===w0.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===w0.Kind.SCHEMA_DEFINITION||u.kind===w0.Kind.SCHEMA_EXTENSION)l=s;else if((0,wM.isTypeDefinitionNode)(u)||(0,wM.isTypeExtensionNode)(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new vee.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var k0=V(P0=>{"use strict";m();T();h();Object.defineProperty(P0,"__esModule",{value:!0});P0.UniqueEnumValueNamesRule=See;var FM=at(),Oee=tn();function See(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];(0,Oee.isEnumType)(N)&&N.getValue(y)?e.reportError(new FM.GraphQLError(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new FM.GraphQLError(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var U0=V(C0=>{"use strict";m();T();h();Object.defineProperty(C0,"__esModule",{value:!0});C0.UniqueFieldDefinitionNamesRule=Dee;var LM=at(),x0=tn();function Dee(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(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;Aee(n[u],y)?e.reportError(new LM.GraphQLError(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new LM.GraphQLError(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function Aee(e,t){return(0,x0.isObjectType)(e)||(0,x0.isInterfaceType)(e)||(0,x0.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var B0=V(M0=>{"use strict";m();T();h();Object.defineProperty(M0,"__esModule",{value:!0});M0.UniqueFragmentNamesRule=wee;var Ree=at();function wee(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Ree.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var j0=V(V0=>{"use strict";m();T();h();Object.defineProperty(V0,"__esModule",{value:!0});V0.UniqueInputFieldNamesRule=Pee;var Fee=ci(),Lee=at();function Pee(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,Fee.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new Lee.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var q0=V($0=>{"use strict";m();T();h();Object.defineProperty($0,"__esModule",{value:!0});$0.UniqueOperationNamesRule=xee;var kee=at();function xee(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new kee.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var G0=V(K0=>{"use strict";m();T();h();Object.defineProperty(K0,"__esModule",{value:!0});K0.UniqueOperationTypesRule=Cee;var PM=at();function Cee(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(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new PM.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new PM.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var Y0=V(Q0=>{"use strict";m();T();h();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.UniqueTypeNamesRule=Uee;var kM=at();function Uee(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 s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new kM.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new kM.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}});var z0=V(J0=>{"use strict";m();T();h();Object.defineProperty(J0,"__esModule",{value:!0});J0.UniqueVariableNamesRule=Vee;var Mee=pE(),Bee=at();function Vee(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,Mee.groupBy)(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new Bee.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var X0=V(W0=>{"use strict";m();T();h();Object.defineProperty(W0,"__esModule",{value:!0});W0.ValuesOfCorrectTypeRule=Kee;var jee=mc(),Dh=gn(),$ee=hc(),qee=Tc(),zo=at(),H0=en(),fE=ps(),Jo=tn();function Kee(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Jo.getNullableType)(e.getParentInputType());if(!(0,Jo.isListType)(r))return Dl(e,n),!1},ObjectValue(n){let r=(0,Jo.getNamedType)(e.getInputType());if(!(0,Jo.isInputObjectType)(r))return Dl(e,n),!1;let i=(0,$ee.keyMap)(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&(0,Jo.isRequiredInputField)(s)){let u=(0,Dh.inspect)(s.type);e.reportError(new zo.GraphQLError(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&Gee(e,n,r,i,t)},ObjectField(n){let r=(0,Jo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Jo.isInputObjectType)(r)){let s=(0,qee.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new zo.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,jee.didYouMean)(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Jo.isNonNullType)(r)&&e.reportError(new zo.GraphQLError(`Expected value of type "${(0,Dh.inspect)(r)}", found ${(0,fE.print)(n)}.`,{nodes:n}))},EnumValue:n=>Dl(e,n),IntValue:n=>Dl(e,n),FloatValue:n=>Dl(e,n),StringValue:n=>Dl(e,n),BooleanValue:n=>Dl(e,n)}}function Dl(e,t){let n=e.getInputType();if(!n)return;let r=(0,Jo.getNamedType)(n);if(!(0,Jo.isLeafType)(r)){let i=(0,Dh.inspect)(n);e.reportError(new zo.GraphQLError(`Expected value of type "${i}", found ${(0,fE.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=(0,Dh.inspect)(n);e.reportError(new zo.GraphQLError(`Expected value of type "${s}", found ${(0,fE.print)(t)}.`,{nodes:t}))}}catch(i){let s=(0,Dh.inspect)(n);i instanceof zo.GraphQLError?e.reportError(i):e.reportError(new zo.GraphQLError(`Expected value of type "${s}", found ${(0,fE.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function Gee(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new zo.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===H0.Kind.NULL,p=(l==null?void 0:l.kind)===H0.Kind.VARIABLE;if(d){e.reportError(new zo.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==H0.Kind.NON_NULL_TYPE&&e.reportError(new zo.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var eD=V(Z0=>{"use strict";m();T();h();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.VariablesAreInputTypesRule=Hee;var Qee=at(),Yee=ps(),Jee=tn(),zee=Yo();function Hee(e){return{VariableDefinition(t){let n=(0,zee.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,Jee.isInputType)(n)){let r=t.variable.name.value,i=(0,Yee.print)(t.type);e.reportError(new Qee.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var nD=V(tD=>{"use strict";m();T();h();Object.defineProperty(tD,"__esModule",{value:!0});tD.VariablesInAllowedPositionRule=ete;var xM=gn(),Wee=at(),Xee=en(),CM=tn(),UM=uh(),Zee=Yo();function ete(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:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=(0,Zee.typeFromAST)(d,l.type);if(p&&!tte(d,p,l.defaultValue,s,o)){let y=(0,xM.inspect)(p),N=(0,xM.inspect)(s);e.reportError(new Wee.GraphQLError(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function tte(e,t,n,r,i){if((0,CM.isNonNullType)(r)&&!(0,CM.isNonNullType)(t)){if(!(n!=null&&n.kind!==Xee.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,UM.isTypeSubTypeOf)(e,t,u)}return(0,UM.isTypeSubTypeOf)(e,t,r)}});var rD=V(gc=>{"use strict";m();T();h();Object.defineProperty(gc,"__esModule",{value:!0});gc.specifiedSDLRules=gc.specifiedRules=gc.recommendedRules=void 0;var nte=gS(),rte=vS(),ite=bS(),MM=OS(),BM=RS(),ste=FS(),VM=kS(),ote=CS(),ate=MS(),ute=VS(),cte=$S(),lte=KS(),dte=QS(),pte=JS(),fte=i0(),mte=a0(),hte=c0(),jM=d0(),Tte=f0(),yte=v0(),Nte=O0(),$M=D0(),Ete=R0(),qM=L0(),gte=k0(),Ite=U0(),vte=B0(),KM=j0(),_te=q0(),bte=G0(),Ote=Y0(),Ste=z0(),Dte=X0(),Ate=eD(),Rte=nD(),GM=Object.freeze([ute.MaxIntrospectionDepthRule]);gc.recommendedRules=GM;var wte=Object.freeze([nte.ExecutableDefinitionsRule,_te.UniqueOperationNamesRule,ote.LoneAnonymousOperationRule,yte.SingleFieldSubscriptionsRule,VM.KnownTypeNamesRule,ite.FragmentsOnCompositeTypesRule,Ate.VariablesAreInputTypesRule,Tte.ScalarLeafsRule,rte.FieldsOnCorrectTypeRule,vte.UniqueFragmentNamesRule,ste.KnownFragmentNamesRule,dte.NoUnusedFragmentsRule,mte.PossibleFragmentSpreadsRule,cte.NoFragmentCyclesRule,Ste.UniqueVariableNamesRule,lte.NoUndefinedVariablesRule,pte.NoUnusedVariablesRule,BM.KnownDirectivesRule,qM.UniqueDirectivesPerLocationRule,MM.KnownArgumentNamesRule,$M.UniqueArgumentNamesRule,Dte.ValuesOfCorrectTypeRule,jM.ProvidedRequiredArgumentsRule,Rte.VariablesInAllowedPositionRule,fte.OverlappingFieldsCanBeMergedRule,KM.UniqueInputFieldNamesRule,...GM]);gc.specifiedRules=wte;var Fte=Object.freeze([ate.LoneSchemaDefinitionRule,bte.UniqueOperationTypesRule,Ote.UniqueTypeNamesRule,gte.UniqueEnumValueNamesRule,Ite.UniqueFieldDefinitionNamesRule,Nte.UniqueArgumentDefinitionNamesRule,Ete.UniqueDirectiveNamesRule,VM.KnownTypeNamesRule,BM.KnownDirectivesRule,qM.UniqueDirectivesPerLocationRule,hte.PossibleTypeExtensionsRule,MM.KnownArgumentNamesOnDirectivesRule,$M.UniqueArgumentNamesRule,KM.UniqueInputFieldNamesRule,jM.ProvidedRequiredArgumentsOnDirectivesRule]);gc.specifiedSDLRules=Fte});var oD=V(Ic=>{"use strict";m();T();h();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.ValidationContext=Ic.SDLValidationContext=Ic.ASTValidationContext=void 0;var QM=en(),Lte=yl(),YM=eE(),Ah=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===QM.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 s of i.selections)s.kind===QM.Kind.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.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],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Ic.ASTValidationContext=Ah;var iD=class extends Ah{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Ic.SDLValidationContext=iD;var sD=class extends Ah{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 YM.TypeInfo(this._schema);(0,Lte.visit)(t,(0,YM.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,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()}};Ic.ValidationContext=sD});var mp=V(fp=>{"use strict";m();T();h();Object.defineProperty(fp,"__esModule",{value:!0});fp.assertValidSDL=Ute;fp.assertValidSDLExtension=Mte;fp.validate=Cte;fp.validateSDL=aD;var Pte=Di(),kte=at(),mE=yl(),xte=Nh(),JM=eE(),zM=rD(),HM=oD();function Cte(e,t,n=zM.specifiedRules,r,i=new JM.TypeInfo(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||(0,Pte.devAssert)(!1,"Must provide document."),(0,xte.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new HM.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new kte.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=(0,mE.visitInParallel)(n.map(y=>y(d)));try{(0,mE.visit)(t,(0,JM.visitWithTypeInfo)(i,p))}catch(y){if(y!==u)throw y}return l}function aD(e,t,n=zM.specifiedSDLRules){let r=[],i=new HM.SDLValidationContext(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return(0,mE.visit)(e,(0,mE.visitInParallel)(s)),r}function Ute(e){let t=aD(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var pS=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new s7.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function c7(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,ar.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,di.inspect)(n)}.`,(r=dS(t,lS.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,ar.isObjectType)(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,di.inspect)(i)}.`,(s=dS(t,lS.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,ar.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,di.inspect)(o)}.`,(u=dS(t,lS.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function dS(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 l7(e){for(let n of e.schema.getDirectives()){if(!(0,RU.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,di.inspect)(n)}.`,n==null?void 0:n.astNode);continue}bl(e,n);for(let r of n.args)if(bl(e,r),(0,ar.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,di.inspect)(r.type)}.`,r.astNode),(0,ar.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[fS(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function bl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function d7(e){let t=N7(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,ar.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,di.inspect)(r)}.`,r.astNode);continue}(0,o7.isIntrospectionType)(r)||bl(e,r),(0,ar.isObjectType)(r)||(0,ar.isInterfaceType)(r)?(SU(e,r),DU(e,r)):(0,ar.isUnionType)(r)?m7(e,r):(0,ar.isEnumType)(r)?h7(e,r):(0,ar.isInputObjectType)(r)&&(T7(e,r),t(r))}}function SU(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(bl(e,o),!(0,ar.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,di.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(bl(e,u),!(0,ar.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,di.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,ar.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[fS(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function DU(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,ar.isInterfaceType)(r)){e.reportError(`Type ${(0,di.inspect)(t)} must only implement Interface types, it cannot implement ${(0,di.inspect)(r)}.`,yh(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,yh(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,yh(t,r));continue}n[r.name]=!0,f7(e,t,r),p7(e,t,r)}}function p7(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,OU.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,di.inspect)(l.type)} but ${t.name}.${d} is type ${(0,di.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(b=>b.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,OU.isEqualType)(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${(0,di.inspect)(y.type)} but ${t.name}.${d}(${N}:) is type ${(0,di.inspect)(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(b=>b.name===N)&&(0,ar.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function f7(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}.`,[...yh(n,i),...yh(t,n)])}function m7(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.`,AU(t,i.name));continue}r[i.name]=!0,(0,ar.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,di.inspect)(i)}.`,AU(t,String(i)))}}function h7(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)bl(e,r)}function T7(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 s of n){if(bl(e,s),!(0,ar.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,di.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,ar.isRequiredInputField)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[fS(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&y7(t,s,e)}}function y7(e,t,n){if((0,ar.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 N7(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if((0,ar.isNonNullType)(u.type)&&(0,ar.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function yh(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function AU(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function fS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===RU.GraphQLDeprecatedDirective.name)}});var Yo=V(TS=>{"use strict";m();T();h();Object.defineProperty(TS,"__esModule",{value:!0});TS.typeFromAST=hS;var mS=en(),wU=tn();function hS(e,t){switch(t.kind){case mS.Kind.LIST_TYPE:{let n=hS(e,t.type);return n&&new wU.GraphQLList(n)}case mS.Kind.NON_NULL_TYPE:{let n=hS(e,t.type);return n&&new wU.GraphQLNonNull(n)}case mS.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var eE=V(Eh=>{"use strict";m();T();h();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.TypeInfo=void 0;Eh.visitWithTypeInfo=I7;var E7=qo(),ur=en(),LU=yl(),cr=tn(),ap=xs(),PU=Yo(),yS=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:g7,n&&((0,cr.isInputType)(n)&&this._inputTypeStack.push(n),(0,cr.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,cr.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 ur.Kind.SELECTION_SET:{let i=(0,cr.getNamedType)(this.getType());this._parentTypeStack.push((0,cr.isCompositeType)(i)?i:void 0);break}case ur.Kind.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,cr.isOutputType)(o)?o:void 0);break}case ur.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case ur.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,cr.isObjectType)(i)?i:void 0);break}case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?(0,PU.typeFromAST)(n,i):(0,cr.getNamedType)(this.getType());this._typeStack.push((0,cr.isOutputType)(s)?s:void 0);break}case ur.Kind.VARIABLE_DEFINITION:{let i=(0,PU.typeFromAST)(n,t.type);this._inputTypeStack.push((0,cr.isInputType)(i)?i:void 0);break}case ur.Kind.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,cr.isInputType)(s)?s:void 0);break}case ur.Kind.LIST:{let i=(0,cr.getNullableType)(this.getInputType()),s=(0,cr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,cr.isInputType)(s)?s:void 0);break}case ur.Kind.OBJECT_FIELD:{let i=(0,cr.getNamedType)(this.getInputType()),s,o;(0,cr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,cr.isInputType)(s)?s:void 0);break}case ur.Kind.ENUM:{let i=(0,cr.getNamedType)(this.getInputType()),s;(0,cr.isEnumType)(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case ur.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ur.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ur.Kind.DIRECTIVE:this._directive=null;break;case ur.Kind.OPERATION_DEFINITION:case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ur.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ur.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.LIST:case ur.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.ENUM:this._enumValue=null;break;default:}}};Eh.TypeInfo=yS;function g7(e,t,n){let r=n.name.value;if(r===ap.SchemaMetaFieldDef.name&&e.getQueryType()===t)return ap.SchemaMetaFieldDef;if(r===ap.TypeMetaFieldDef.name&&e.getQueryType()===t)return ap.TypeMetaFieldDef;if(r===ap.TypeNameMetaFieldDef.name&&(0,cr.isCompositeType)(t))return ap.TypeNameMetaFieldDef;if((0,cr.isObjectType)(t)||(0,cr.isInterfaceType)(t))return t.getFields()[r]}function I7(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,LU.getEnterLeaveForKind)(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),(0,E7.isNode)(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=(0,LU.getEnterLeaveForKind)(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}});var Ol=V(Cs=>{"use strict";m();T();h();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.isConstValueNode=NS;Cs.isDefinitionNode=v7;Cs.isExecutableDefinitionNode=kU;Cs.isSelectionNode=_7;Cs.isTypeDefinitionNode=UU;Cs.isTypeExtensionNode=BU;Cs.isTypeNode=b7;Cs.isTypeSystemDefinitionNode=CU;Cs.isTypeSystemExtensionNode=MU;Cs.isValueNode=xU;var nn=en();function v7(e){return kU(e)||CU(e)||MU(e)}function kU(e){return e.kind===nn.Kind.OPERATION_DEFINITION||e.kind===nn.Kind.FRAGMENT_DEFINITION}function _7(e){return e.kind===nn.Kind.FIELD||e.kind===nn.Kind.FRAGMENT_SPREAD||e.kind===nn.Kind.INLINE_FRAGMENT}function xU(e){return e.kind===nn.Kind.VARIABLE||e.kind===nn.Kind.INT||e.kind===nn.Kind.FLOAT||e.kind===nn.Kind.STRING||e.kind===nn.Kind.BOOLEAN||e.kind===nn.Kind.NULL||e.kind===nn.Kind.ENUM||e.kind===nn.Kind.LIST||e.kind===nn.Kind.OBJECT}function NS(e){return xU(e)&&(e.kind===nn.Kind.LIST?e.values.some(NS):e.kind===nn.Kind.OBJECT?e.fields.some(t=>NS(t.value)):e.kind!==nn.Kind.VARIABLE)}function b7(e){return e.kind===nn.Kind.NAMED_TYPE||e.kind===nn.Kind.LIST_TYPE||e.kind===nn.Kind.NON_NULL_TYPE}function CU(e){return e.kind===nn.Kind.SCHEMA_DEFINITION||UU(e)||e.kind===nn.Kind.DIRECTIVE_DEFINITION}function UU(e){return e.kind===nn.Kind.SCALAR_TYPE_DEFINITION||e.kind===nn.Kind.OBJECT_TYPE_DEFINITION||e.kind===nn.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nn.Kind.UNION_TYPE_DEFINITION||e.kind===nn.Kind.ENUM_TYPE_DEFINITION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_DEFINITION}function MU(e){return e.kind===nn.Kind.SCHEMA_EXTENSION||BU(e)}function BU(e){return e.kind===nn.Kind.SCALAR_TYPE_EXTENSION||e.kind===nn.Kind.OBJECT_TYPE_EXTENSION||e.kind===nn.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nn.Kind.UNION_TYPE_EXTENSION||e.kind===nn.Kind.ENUM_TYPE_EXTENSION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var gS=V(ES=>{"use strict";m();T();h();Object.defineProperty(ES,"__esModule",{value:!0});ES.ExecutableDefinitionsRule=D7;var O7=ut(),VU=en(),S7=Ol();function D7(e){return{Document(t){for(let n of t.definitions)if(!(0,S7.isExecutableDefinitionNode)(n)){let r=n.kind===VU.Kind.SCHEMA_DEFINITION||n.kind===VU.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new O7.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var vS=V(IS=>{"use strict";m();T();h();Object.defineProperty(IS,"__esModule",{value:!0});IS.FieldsOnCorrectTypeRule=w7;var jU=mc(),A7=nh(),R7=Tc(),F7=ut(),gh=tn();function w7(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=(0,jU.didYouMean)("to use an inline fragment on",L7(i,n,s));o===""&&(o=(0,jU.didYouMean)(P7(n,s))),e.reportError(new F7.GraphQLError(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function L7(e,t,n){if(!(0,gh.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 u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,gh.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,gh.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,A7.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function P7(e,t){if((0,gh.isObjectType)(e)||(0,gh.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,R7.suggestionList)(t,n)}return[]}});var bS=V(_S=>{"use strict";m();T();h();Object.defineProperty(_S,"__esModule",{value:!0});_S.FragmentsOnCompositeTypesRule=k7;var $U=ut(),qU=ps(),KU=tn(),GU=Yo();function k7(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,GU.typeFromAST)(e.getSchema(),n);if(r&&!(0,KU.isCompositeType)(r)){let i=(0,qU.print)(n);e.reportError(new $U.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,GU.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,KU.isCompositeType)(n)){let r=(0,qU.print)(t.typeCondition);e.reportError(new $U.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var OS=V(tE=>{"use strict";m();T();h();Object.defineProperty(tE,"__esModule",{value:!0});tE.KnownArgumentNamesOnDirectivesRule=zU;tE.KnownArgumentNamesRule=U7;var QU=mc(),YU=Tc(),JU=ut(),x7=en(),C7=ji();function U7(e){return K(k({},zU(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=(0,YU.suggestionList)(s,o);e.reportError(new JU.GraphQLError(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+(0,QU.didYouMean)(u),{nodes:t}))}}})}function zU(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():C7.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===x7.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,YU.suggestionList)(p,l);e.reportError(new JU.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,QU.didYouMean)(y),{nodes:d}))}}return!1}}}});var RS=V(AS=>{"use strict";m();T();h();Object.defineProperty(AS,"__esModule",{value:!0});AS.KnownDirectivesRule=V7;var M7=gn(),SS=ci(),HU=ut(),DS=qo(),Pr=ep(),jn=en(),B7=ji();function V7(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():B7.specifiedDirectives;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===jn.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new HU.GraphQLError(`Unknown directive "@${p}".`,{nodes:s}));return}let N=j7(d);N&&!y.includes(N)&&e.reportError(new HU.GraphQLError(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function j7(e){let t=e[e.length-1];switch("kind"in t||(0,SS.invariant)(!1),t.kind){case jn.Kind.OPERATION_DEFINITION:return $7(t.operation);case jn.Kind.FIELD:return Pr.DirectiveLocation.FIELD;case jn.Kind.FRAGMENT_SPREAD:return Pr.DirectiveLocation.FRAGMENT_SPREAD;case jn.Kind.INLINE_FRAGMENT:return Pr.DirectiveLocation.INLINE_FRAGMENT;case jn.Kind.FRAGMENT_DEFINITION:return Pr.DirectiveLocation.FRAGMENT_DEFINITION;case jn.Kind.VARIABLE_DEFINITION:return Pr.DirectiveLocation.VARIABLE_DEFINITION;case jn.Kind.SCHEMA_DEFINITION:case jn.Kind.SCHEMA_EXTENSION:return Pr.DirectiveLocation.SCHEMA;case jn.Kind.SCALAR_TYPE_DEFINITION:case jn.Kind.SCALAR_TYPE_EXTENSION:return Pr.DirectiveLocation.SCALAR;case jn.Kind.OBJECT_TYPE_DEFINITION:case jn.Kind.OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.OBJECT;case jn.Kind.FIELD_DEFINITION:return Pr.DirectiveLocation.FIELD_DEFINITION;case jn.Kind.INTERFACE_TYPE_DEFINITION:case jn.Kind.INTERFACE_TYPE_EXTENSION:return Pr.DirectiveLocation.INTERFACE;case jn.Kind.UNION_TYPE_DEFINITION:case jn.Kind.UNION_TYPE_EXTENSION:return Pr.DirectiveLocation.UNION;case jn.Kind.ENUM_TYPE_DEFINITION:case jn.Kind.ENUM_TYPE_EXTENSION:return Pr.DirectiveLocation.ENUM;case jn.Kind.ENUM_VALUE_DEFINITION:return Pr.DirectiveLocation.ENUM_VALUE;case jn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.INPUT_OBJECT;case jn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,SS.invariant)(!1),n.kind===jn.Kind.INPUT_OBJECT_TYPE_DEFINITION?Pr.DirectiveLocation.INPUT_FIELD_DEFINITION:Pr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,SS.invariant)(!1,"Unexpected kind: "+(0,M7.inspect)(t.kind))}}function $7(e){switch(e){case DS.OperationTypeNode.QUERY:return Pr.DirectiveLocation.QUERY;case DS.OperationTypeNode.MUTATION:return Pr.DirectiveLocation.MUTATION;case DS.OperationTypeNode.SUBSCRIPTION:return Pr.DirectiveLocation.SUBSCRIPTION}}});var wS=V(FS=>{"use strict";m();T();h();Object.defineProperty(FS,"__esModule",{value:!0});FS.KnownFragmentNamesRule=K7;var q7=ut();function K7(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new q7.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var kS=V(PS=>{"use strict";m();T();h();Object.defineProperty(PS,"__esModule",{value:!0});PS.KnownTypeNamesRule=H7;var G7=mc(),Q7=Tc(),Y7=ut(),LS=Ol(),J7=xs(),z7=Qo();function H7(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)(0,LS.isTypeDefinitionNode)(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&W7(N);if(I&&WU.includes(p))return;let b=(0,Q7.suggestionList)(p,I?WU.concat(i):i);e.reportError(new Y7.GraphQLError(`Unknown type "${p}".`+(0,G7.didYouMean)(b),{nodes:s}))}}}}var WU=[...z7.specifiedScalarTypes,...J7.introspectionTypes].map(e=>e.name);function W7(e){return"kind"in e&&((0,LS.isTypeSystemDefinitionNode)(e)||(0,LS.isTypeSystemExtensionNode)(e))}});var CS=V(xS=>{"use strict";m();T();h();Object.defineProperty(xS,"__esModule",{value:!0});xS.LoneAnonymousOperationRule=eZ;var X7=ut(),Z7=en();function eZ(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===Z7.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new X7.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var MS=V(US=>{"use strict";m();T();h();Object.defineProperty(US,"__esModule",{value:!0});US.LoneSchemaDefinitionRule=tZ;var XU=ut();function tZ(e){var t,n,r;let i=e.getSchema(),s=(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(u){if(s){e.reportError(new XU.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new XU.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var VS=V(BS=>{"use strict";m();T();h();Object.defineProperty(BS,"__esModule",{value:!0});BS.MaxIntrospectionDepthRule=iZ;var nZ=ut(),ZU=en(),rZ=3;function iZ(e){function t(n,r=Object.create(null),i=0){if(n.kind===ZU.Kind.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===ZU.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=rZ))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new nZ.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var $S=V(jS=>{"use strict";m();T();h();Object.defineProperty(jS,"__esModule",{value:!0});jS.NoFragmentCyclesRule=oZ;var sZ=ut();function oZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new sZ.GraphQLError(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var KS=V(qS=>{"use strict";m();T();h();Object.defineProperty(qS,"__esModule",{value:!0});qS.NoUndefinedVariablesRule=uZ;var aZ=ut();function uZ(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 s=i.name.value;t[s]!==!0&&e.reportError(new aZ.GraphQLError(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var QS=V(GS=>{"use strict";m();T();h();Object.defineProperty(GS,"__esModule",{value:!0});GS.NoUnusedFragmentsRule=lZ;var cZ=ut();function lZ(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 s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new cZ.GraphQLError(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}});var JS=V(YS=>{"use strict";m();T();h();Object.defineProperty(YS,"__esModule",{value:!0});YS.NoUnusedVariablesRule=pZ;var dZ=ut();function pZ(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new dZ.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}});var WS=V(HS=>{"use strict";m();T();h();Object.defineProperty(HS,"__esModule",{value:!0});HS.sortValueNode=zS;var fZ=nh(),Ba=en();function zS(e){switch(e.kind){case Ba.Kind.OBJECT:return K(k({},e),{fields:mZ(e.fields)});case Ba.Kind.LIST:return K(k({},e),{values:e.values.map(zS)});case Ba.Kind.INT:case Ba.Kind.FLOAT:case Ba.Kind.STRING:case Ba.Kind.BOOLEAN:case Ba.Kind.NULL:case Ba.Kind.ENUM:case Ba.Kind.VARIABLE:return e}}function mZ(e){return e.map(t=>K(k({},t),{value:zS(t.value)})).sort((t,n)=>(0,fZ.naturalCompare)(t.name.value,n.name.value))}});var i0=V(r0=>{"use strict";m();T();h();Object.defineProperty(r0,"__esModule",{value:!0});r0.OverlappingFieldsCanBeMergedRule=NZ;var eM=gn(),hZ=ut(),XS=en(),TZ=ps(),$i=tn(),yZ=WS(),nM=Yo();function rM(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+rM(n)).join(" and "):e}function NZ(e){let t=new t0,n=new Map;return{SelectionSet(r){let i=EZ(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=rM(o);e.reportError(new hZ.GraphQLError(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function EZ(e,t,n,r,i){let s=[],[o,u]=iE(e,t,r,i);if(IZ(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:tM(o)===tM(u)})}function tM(e){return(0,TZ.print)((0,yZ.sortValueNode)(e))}function ZS(e,t){return(0,$i.isListType)(e)?(0,$i.isListType)(t)?ZS(e.ofType,t.ofType):!0:(0,$i.isListType)(t)?!0:(0,$i.isNonNullType)(e)?(0,$i.isNonNullType)(t)?ZS(e.ofType,t.ofType):!0:(0,$i.isNonNullType)(t)?!0:(0,$i.isLeafType)(e)||(0,$i.isLeafType)(t)?e!==t:!1}function iE(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);sM(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function e0(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,nM.typeFromAST)(e.getSchema(),n.typeCondition);return iE(e,t,i,n.selectionSet)}function sM(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case XS.Kind.FIELD:{let o=s.name.value,u;((0,$i.isObjectType)(t)||(0,$i.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case XS.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case XS.Kind.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?(0,nM.typeFromAST)(e.getSchema(),o):t;sM(e,u,s.selectionSet,r,i);break}}}function _Z(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 t0=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Object.defineProperty(o0,"__esModule",{value:!0});o0.PossibleFragmentSpreadsRule=OZ;var sE=gn(),oM=ut(),s0=tn(),aM=uh(),bZ=Yo();function OZ(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,s0.isCompositeType)(n)&&(0,s0.isCompositeType)(r)&&!(0,aM.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,sE.inspect)(r),s=(0,sE.inspect)(n);e.reportError(new oM.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=SZ(e,n),i=e.getParentType();if(r&&i&&!(0,aM.doTypesOverlap)(e.getSchema(),r,i)){let s=(0,sE.inspect)(i),o=(0,sE.inspect)(r);e.reportError(new oM.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function SZ(e,t){let n=e.getFragment(t);if(n){let r=(0,bZ.typeFromAST)(e.getSchema(),n.typeCondition);if((0,s0.isCompositeType)(r))return r}}});var c0=V(u0=>{"use strict";m();T();h();Object.defineProperty(u0,"__esModule",{value:!0});u0.PossibleTypeExtensionsRule=FZ;var DZ=mc(),cM=gn(),lM=ci(),AZ=Tc(),uM=ut(),zn=en(),RZ=Ol(),up=tn();function FZ(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,RZ.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=wZ[o.kind]:u&&(l=LZ(u)),l){if(l!==i.kind){let d=PZ(i.kind);e.reportError(new uM.GraphQLError(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=(0,AZ.suggestionList)(s,d);e.reportError(new uM.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,DZ.didYouMean)(p),{nodes:i.name}))}}}var wZ={[zn.Kind.SCALAR_TYPE_DEFINITION]:zn.Kind.SCALAR_TYPE_EXTENSION,[zn.Kind.OBJECT_TYPE_DEFINITION]:zn.Kind.OBJECT_TYPE_EXTENSION,[zn.Kind.INTERFACE_TYPE_DEFINITION]:zn.Kind.INTERFACE_TYPE_EXTENSION,[zn.Kind.UNION_TYPE_DEFINITION]:zn.Kind.UNION_TYPE_EXTENSION,[zn.Kind.ENUM_TYPE_DEFINITION]:zn.Kind.ENUM_TYPE_EXTENSION,[zn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function LZ(e){if((0,up.isScalarType)(e))return zn.Kind.SCALAR_TYPE_EXTENSION;if((0,up.isObjectType)(e))return zn.Kind.OBJECT_TYPE_EXTENSION;if((0,up.isInterfaceType)(e))return zn.Kind.INTERFACE_TYPE_EXTENSION;if((0,up.isUnionType)(e))return zn.Kind.UNION_TYPE_EXTENSION;if((0,up.isEnumType)(e))return zn.Kind.ENUM_TYPE_EXTENSION;if((0,up.isInputObjectType)(e))return zn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,lM.invariant)(!1,"Unexpected type: "+(0,cM.inspect)(e))}function PZ(e){switch(e){case zn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zn.Kind.OBJECT_TYPE_EXTENSION:return"object";case zn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zn.Kind.UNION_TYPE_EXTENSION:return"union";case zn.Kind.ENUM_TYPE_EXTENSION:return"enum";case zn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,lM.invariant)(!1,"Unexpected kind: "+(0,cM.inspect)(e))}}});var d0=V(oE=>{"use strict";m();T();h();Object.defineProperty(oE,"__esModule",{value:!0});oE.ProvidedRequiredArgumentsOnDirectivesRule=hM;oE.ProvidedRequiredArgumentsRule=CZ;var pM=gn(),dM=hc(),fM=ut(),mM=en(),kZ=ps(),l0=tn(),xZ=ji();function CZ(e){return K(k({},hM(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(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&(0,l0.isRequiredArgument)(s)){let o=(0,pM.inspect)(s.type);e.reportError(new fM.GraphQLError(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function hM(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:xZ.specifiedDirectives;for(let u of i)n[u.name]=(0,dM.keyMap)(u.args.filter(l0.isRequiredArgument),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===mM.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=(0,dM.keyMap)(l.filter(UZ),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,b]of Object.entries(d))if(!N.has(I)){let C=(0,l0.isType)(b.type)?(0,pM.inspect)(b.type):(0,kZ.print)(b.type);e.reportError(new fM.GraphQLError(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function UZ(e){return e.type.kind===mM.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var f0=V(p0=>{"use strict";m();T();h();Object.defineProperty(p0,"__esModule",{value:!0});p0.ScalarLeafsRule=MZ;var TM=gn(),yM=ut(),NM=tn();function MZ(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,NM.isLeafType)((0,NM.getNamedType)(n))){if(r){let i=t.name.value,s=(0,TM.inspect)(n);e.reportError(new yM.GraphQLError(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=(0,TM.inspect)(n);e.reportError(new yM.GraphQLError(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var h0=V(m0=>{"use strict";m();T();h();Object.defineProperty(m0,"__esModule",{value:!0});m0.printPathArray=BZ;function BZ(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Ih=V(aE=>{"use strict";m();T();h();Object.defineProperty(aE,"__esModule",{value:!0});aE.addPath=VZ;aE.pathToArray=jZ;function VZ(e,t,n){return{prev:e,key:t,typename:n}}function jZ(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var y0=V(T0=>{"use strict";m();T();h();Object.defineProperty(T0,"__esModule",{value:!0});T0.coerceInputValue=JZ;var $Z=mc(),uE=gn(),qZ=ci(),KZ=HN(),GZ=$o(),To=Ih(),QZ=h0(),YZ=Tc(),Va=ut(),vh=tn();function JZ(e,t,n=zZ){return _h(e,t,n,void 0)}function zZ(e,t,n){let r="Invalid value "+(0,uE.inspect)(t);throw e.length>0&&(r+=` at "value${(0,QZ.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function _h(e,t,n,r){if((0,vh.isNonNullType)(t)){if(e!=null)return _h(e,t.ofType,n,r);n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected non-nullable type "${(0,uE.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,vh.isListType)(t)){let i=t.ofType;return(0,KZ.isIterableObject)(e)?Array.from(e,(s,o)=>{let u=(0,To.addPath)(r,o,void 0);return _h(s,i,n,u)}):[_h(e,i,n,r)]}if((0,vh.isInputObjectType)(t)){if(!(0,GZ.isObjectLike)(e)){n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,vh.isNonNullType)(o.type)){let l=(0,uE.inspect)(o.type);n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=_h(u,o.type,n,(0,To.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=(0,YZ.suggestionList)(o,Object.keys(t.getFields()));n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,$Z.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n((0,To.pathToArray)(r).concat(u),l,new Va.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,vh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Va.GraphQLError?n((0,To.pathToArray)(r),e,s):n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n((0,To.pathToArray)(r),e,new Va.GraphQLError(`Expected type "${t.name}".`)),i}(0,qZ.invariant)(!1,"Unexpected input type: "+(0,uE.inspect)(t))}});var Oh=V(N0=>{"use strict";m();T();h();Object.defineProperty(N0,"__esModule",{value:!0});N0.valueFromAST=bh;var HZ=gn(),WZ=ci(),XZ=hc(),cp=en(),Sl=tn();function bh(e,t,n){if(e){if(e.kind===cp.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,Sl.isNonNullType)(t)?void 0:i}if((0,Sl.isNonNullType)(t))return e.kind===cp.Kind.NULL?void 0:bh(e,t.ofType,n);if(e.kind===cp.Kind.NULL)return null;if((0,Sl.isListType)(t)){let r=t.ofType;if(e.kind===cp.Kind.LIST){let s=[];for(let o of e.values)if(EM(o,n)){if((0,Sl.isNonNullType)(r))return;s.push(null)}else{let u=bh(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=bh(e,r,n);return i===void 0?void 0:[i]}if((0,Sl.isInputObjectType)(t)){if(e.kind!==cp.Kind.OBJECT)return;let r=Object.create(null),i=(0,XZ.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||EM(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if((0,Sl.isNonNullType)(s.type))return;continue}let u=bh(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if((0,Sl.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,WZ.invariant)(!1,"Unexpected input type: "+(0,HZ.inspect)(t))}}function EM(e,t){return e.kind===cp.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var pp=V(Sh=>{"use strict";m();T();h();Object.defineProperty(Sh,"__esModule",{value:!0});Sh.getArgumentValues=_M;Sh.getDirectiveValues=see;Sh.getVariableValues=ree;var lp=gn(),ZZ=hc(),eee=h0(),ja=ut(),gM=en(),IM=ps(),dp=tn(),tee=y0(),nee=Yo(),vM=Oh();function ree(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=iee(e,t,n,u=>{if(s!=null&&i.length>=s)throw new ja.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function iee(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=(0,nee.typeFromAST)(e,s.type);if(!(0,dp.isInputType)(u)){let d=(0,IM.print)(s.type);r(new ja.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!bM(n,o)){if(s.defaultValue)i[o]=(0,vM.valueFromAST)(s.defaultValue,u);else if((0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new ja.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&(0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new ja.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=(0,tee.coerceInputValue)(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+(0,lp.inspect)(p);d.length>0&&(N+=` at "${o}${(0,eee.printPathArray)(d)}"`),r(new ja.GraphQLError(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function _M(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,ZZ.keyMap)(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===gM.Kind.NULL;if(y.kind===gM.Kind.VARIABLE){let b=y.name.value;if(n==null||!bM(n,b)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:y});continue}N=n[b]==null}if(N&&(0,dp.isNonNullType)(d))throw new ja.GraphQLError(`Argument "${l}" of non-null type "${(0,lp.inspect)(d)}" must not be null.`,{nodes:y});let I=(0,vM.valueFromAST)(y,d,n);if(I===void 0)throw new ja.GraphQLError(`Argument "${l}" has invalid value ${(0,IM.print)(y)}.`,{nodes:y});i[l]=I}return i}function see(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return _M(e,i,n)}function bM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var dE=V(lE=>{"use strict";m();T();h();Object.defineProperty(lE,"__esModule",{value:!0});lE.collectFields=uee;lE.collectSubfields=cee;var E0=en(),oee=tn(),OM=ji(),aee=Yo(),SM=pp();function uee(e,t,n,r,i){let s=new Map;return cE(e,t,n,r,i,s,new Set),s}function cee(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&cE(e,t,n,r,u.selectionSet,s,o);return s}function cE(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case E0.Kind.FIELD:{if(!g0(n,u))continue;let l=lee(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case E0.Kind.INLINE_FRAGMENT:{if(!g0(n,u)||!DM(e,u,r))continue;cE(e,t,n,r,u.selectionSet,s,o);break}case E0.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!g0(n,u))continue;o.add(l);let d=t[l];if(!d||!DM(e,d,r))continue;cE(e,t,n,r,d.selectionSet,s,o);break}}}function g0(e,t){let n=(0,SM.getDirectiveValues)(OM.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,SM.getDirectiveValues)(OM.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function DM(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,aee.typeFromAST)(e,r);return i===n?!0:(0,oee.isAbstractType)(i)?e.isSubType(i,n):!1}function lee(e){return e.alias?e.alias.value:e.name.value}});var v0=V(I0=>{"use strict";m();T();h();Object.defineProperty(I0,"__esModule",{value:!0});I0.SingleFieldSubscriptionsRule=fee;var AM=ut(),dee=en(),pee=dE();function fee(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,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===dee.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,pee.collectFields)(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new AM.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 d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new AM.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var pE=V(_0=>{"use strict";m();T();h();Object.defineProperty(_0,"__esModule",{value:!0});_0.groupBy=mee;function mee(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}});var O0=V(b0=>{"use strict";m();T();h();Object.defineProperty(b0,"__esModule",{value:!0});b0.UniqueArgumentDefinitionNamesRule=yee;var hee=pE(),Tee=ut();function yee(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=(0,hee.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Tee.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var D0=V(S0=>{"use strict";m();T();h();Object.defineProperty(S0,"__esModule",{value:!0});S0.UniqueArgumentNamesRule=gee;var Nee=pE(),Eee=ut();function gee(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=(0,Nee.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Eee.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var R0=V(A0=>{"use strict";m();T();h();Object.defineProperty(A0,"__esModule",{value:!0});A0.UniqueDirectiveNamesRule=Iee;var RM=ut();function Iee(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 RM.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new RM.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var L0=V(w0=>{"use strict";m();T();h();Object.defineProperty(w0,"__esModule",{value:!0});w0.UniqueDirectivesPerLocationRule=bee;var vee=ut(),F0=en(),FM=Ol(),_ee=ji();function bee(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():_ee.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===F0.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===F0.Kind.SCHEMA_DEFINITION||u.kind===F0.Kind.SCHEMA_EXTENSION)l=s;else if((0,FM.isTypeDefinitionNode)(u)||(0,FM.isTypeExtensionNode)(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new vee.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var k0=V(P0=>{"use strict";m();T();h();Object.defineProperty(P0,"__esModule",{value:!0});P0.UniqueEnumValueNamesRule=See;var wM=ut(),Oee=tn();function See(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];(0,Oee.isEnumType)(N)&&N.getValue(y)?e.reportError(new wM.GraphQLError(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new wM.GraphQLError(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var U0=V(C0=>{"use strict";m();T();h();Object.defineProperty(C0,"__esModule",{value:!0});C0.UniqueFieldDefinitionNamesRule=Dee;var LM=ut(),x0=tn();function Dee(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(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;Aee(n[u],y)?e.reportError(new LM.GraphQLError(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new LM.GraphQLError(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function Aee(e,t){return(0,x0.isObjectType)(e)||(0,x0.isInterfaceType)(e)||(0,x0.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var B0=V(M0=>{"use strict";m();T();h();Object.defineProperty(M0,"__esModule",{value:!0});M0.UniqueFragmentNamesRule=Fee;var Ree=ut();function Fee(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Ree.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var j0=V(V0=>{"use strict";m();T();h();Object.defineProperty(V0,"__esModule",{value:!0});V0.UniqueInputFieldNamesRule=Pee;var wee=ci(),Lee=ut();function Pee(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,wee.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new Lee.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var q0=V($0=>{"use strict";m();T();h();Object.defineProperty($0,"__esModule",{value:!0});$0.UniqueOperationNamesRule=xee;var kee=ut();function xee(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new kee.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var G0=V(K0=>{"use strict";m();T();h();Object.defineProperty(K0,"__esModule",{value:!0});K0.UniqueOperationTypesRule=Cee;var PM=ut();function Cee(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(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new PM.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new PM.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var Y0=V(Q0=>{"use strict";m();T();h();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.UniqueTypeNamesRule=Uee;var kM=ut();function Uee(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 s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new kM.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new kM.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}});var z0=V(J0=>{"use strict";m();T();h();Object.defineProperty(J0,"__esModule",{value:!0});J0.UniqueVariableNamesRule=Vee;var Mee=pE(),Bee=ut();function Vee(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,Mee.groupBy)(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new Bee.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var X0=V(W0=>{"use strict";m();T();h();Object.defineProperty(W0,"__esModule",{value:!0});W0.ValuesOfCorrectTypeRule=Kee;var jee=mc(),Dh=gn(),$ee=hc(),qee=Tc(),zo=ut(),H0=en(),fE=ps(),Jo=tn();function Kee(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Jo.getNullableType)(e.getParentInputType());if(!(0,Jo.isListType)(r))return Dl(e,n),!1},ObjectValue(n){let r=(0,Jo.getNamedType)(e.getInputType());if(!(0,Jo.isInputObjectType)(r))return Dl(e,n),!1;let i=(0,$ee.keyMap)(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&(0,Jo.isRequiredInputField)(s)){let u=(0,Dh.inspect)(s.type);e.reportError(new zo.GraphQLError(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&Gee(e,n,r,i,t)},ObjectField(n){let r=(0,Jo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Jo.isInputObjectType)(r)){let s=(0,qee.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new zo.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,jee.didYouMean)(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Jo.isNonNullType)(r)&&e.reportError(new zo.GraphQLError(`Expected value of type "${(0,Dh.inspect)(r)}", found ${(0,fE.print)(n)}.`,{nodes:n}))},EnumValue:n=>Dl(e,n),IntValue:n=>Dl(e,n),FloatValue:n=>Dl(e,n),StringValue:n=>Dl(e,n),BooleanValue:n=>Dl(e,n)}}function Dl(e,t){let n=e.getInputType();if(!n)return;let r=(0,Jo.getNamedType)(n);if(!(0,Jo.isLeafType)(r)){let i=(0,Dh.inspect)(n);e.reportError(new zo.GraphQLError(`Expected value of type "${i}", found ${(0,fE.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=(0,Dh.inspect)(n);e.reportError(new zo.GraphQLError(`Expected value of type "${s}", found ${(0,fE.print)(t)}.`,{nodes:t}))}}catch(i){let s=(0,Dh.inspect)(n);i instanceof zo.GraphQLError?e.reportError(i):e.reportError(new zo.GraphQLError(`Expected value of type "${s}", found ${(0,fE.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function Gee(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new zo.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===H0.Kind.NULL,p=(l==null?void 0:l.kind)===H0.Kind.VARIABLE;if(d){e.reportError(new zo.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==H0.Kind.NON_NULL_TYPE&&e.reportError(new zo.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var eD=V(Z0=>{"use strict";m();T();h();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.VariablesAreInputTypesRule=Hee;var Qee=ut(),Yee=ps(),Jee=tn(),zee=Yo();function Hee(e){return{VariableDefinition(t){let n=(0,zee.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,Jee.isInputType)(n)){let r=t.variable.name.value,i=(0,Yee.print)(t.type);e.reportError(new Qee.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var nD=V(tD=>{"use strict";m();T();h();Object.defineProperty(tD,"__esModule",{value:!0});tD.VariablesInAllowedPositionRule=ete;var xM=gn(),Wee=ut(),Xee=en(),CM=tn(),UM=uh(),Zee=Yo();function ete(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:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=(0,Zee.typeFromAST)(d,l.type);if(p&&!tte(d,p,l.defaultValue,s,o)){let y=(0,xM.inspect)(p),N=(0,xM.inspect)(s);e.reportError(new Wee.GraphQLError(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function tte(e,t,n,r,i){if((0,CM.isNonNullType)(r)&&!(0,CM.isNonNullType)(t)){if(!(n!=null&&n.kind!==Xee.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,UM.isTypeSubTypeOf)(e,t,u)}return(0,UM.isTypeSubTypeOf)(e,t,r)}});var rD=V(gc=>{"use strict";m();T();h();Object.defineProperty(gc,"__esModule",{value:!0});gc.specifiedSDLRules=gc.specifiedRules=gc.recommendedRules=void 0;var nte=gS(),rte=vS(),ite=bS(),MM=OS(),BM=RS(),ste=wS(),VM=kS(),ote=CS(),ate=MS(),ute=VS(),cte=$S(),lte=KS(),dte=QS(),pte=JS(),fte=i0(),mte=a0(),hte=c0(),jM=d0(),Tte=f0(),yte=v0(),Nte=O0(),$M=D0(),Ete=R0(),qM=L0(),gte=k0(),Ite=U0(),vte=B0(),KM=j0(),_te=q0(),bte=G0(),Ote=Y0(),Ste=z0(),Dte=X0(),Ate=eD(),Rte=nD(),GM=Object.freeze([ute.MaxIntrospectionDepthRule]);gc.recommendedRules=GM;var Fte=Object.freeze([nte.ExecutableDefinitionsRule,_te.UniqueOperationNamesRule,ote.LoneAnonymousOperationRule,yte.SingleFieldSubscriptionsRule,VM.KnownTypeNamesRule,ite.FragmentsOnCompositeTypesRule,Ate.VariablesAreInputTypesRule,Tte.ScalarLeafsRule,rte.FieldsOnCorrectTypeRule,vte.UniqueFragmentNamesRule,ste.KnownFragmentNamesRule,dte.NoUnusedFragmentsRule,mte.PossibleFragmentSpreadsRule,cte.NoFragmentCyclesRule,Ste.UniqueVariableNamesRule,lte.NoUndefinedVariablesRule,pte.NoUnusedVariablesRule,BM.KnownDirectivesRule,qM.UniqueDirectivesPerLocationRule,MM.KnownArgumentNamesRule,$M.UniqueArgumentNamesRule,Dte.ValuesOfCorrectTypeRule,jM.ProvidedRequiredArgumentsRule,Rte.VariablesInAllowedPositionRule,fte.OverlappingFieldsCanBeMergedRule,KM.UniqueInputFieldNamesRule,...GM]);gc.specifiedRules=Fte;var wte=Object.freeze([ate.LoneSchemaDefinitionRule,bte.UniqueOperationTypesRule,Ote.UniqueTypeNamesRule,gte.UniqueEnumValueNamesRule,Ite.UniqueFieldDefinitionNamesRule,Nte.UniqueArgumentDefinitionNamesRule,Ete.UniqueDirectiveNamesRule,VM.KnownTypeNamesRule,BM.KnownDirectivesRule,qM.UniqueDirectivesPerLocationRule,hte.PossibleTypeExtensionsRule,MM.KnownArgumentNamesOnDirectivesRule,$M.UniqueArgumentNamesRule,KM.UniqueInputFieldNamesRule,jM.ProvidedRequiredArgumentsOnDirectivesRule]);gc.specifiedSDLRules=wte});var oD=V(Ic=>{"use strict";m();T();h();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.ValidationContext=Ic.SDLValidationContext=Ic.ASTValidationContext=void 0;var QM=en(),Lte=yl(),YM=eE(),Ah=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===QM.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 s of i.selections)s.kind===QM.Kind.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.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],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Ic.ASTValidationContext=Ah;var iD=class extends Ah{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Ic.SDLValidationContext=iD;var sD=class extends Ah{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 YM.TypeInfo(this._schema);(0,Lte.visit)(t,(0,YM.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,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()}};Ic.ValidationContext=sD});var mp=V(fp=>{"use strict";m();T();h();Object.defineProperty(fp,"__esModule",{value:!0});fp.assertValidSDL=Ute;fp.assertValidSDLExtension=Mte;fp.validate=Cte;fp.validateSDL=aD;var Pte=Di(),kte=ut(),mE=yl(),xte=Nh(),JM=eE(),zM=rD(),HM=oD();function Cte(e,t,n=zM.specifiedRules,r,i=new JM.TypeInfo(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||(0,Pte.devAssert)(!1,"Must provide document."),(0,xte.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new HM.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new kte.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=(0,mE.visitInParallel)(n.map(y=>y(d)));try{(0,mE.visit)(t,(0,JM.visitWithTypeInfo)(i,p))}catch(y){if(y!==u)throw y}return l}function aD(e,t,n=zM.specifiedSDLRules){let r=[],i=new HM.SDLValidationContext(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return(0,mE.visit)(e,(0,mE.visitInParallel)(s)),r}function Ute(e){let t=aD(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function Mte(e,t){let n=aD(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var WM=V(uD=>{"use strict";m();T();h();Object.defineProperty(uD,"__esModule",{value:!0});uD.memoize3=Bte;function Bte(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}});var XM=V(cD=>{"use strict";m();T();h();Object.defineProperty(cD,"__esModule",{value:!0});cD.promiseForObject=Vte;function Vte(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 ZM=V(lD=>{"use strict";m();T();h();Object.defineProperty(lD,"__esModule",{value:!0});lD.promiseReduce=$te;var jte=TN();function $te(e,t,n){let r=n;for(let i of e)r=(0,jte.isPromise)(r)?r.then(s=>t(s,i)):t(r,i);return r}});var eB=V(pD=>{"use strict";m();T();h();Object.defineProperty(pD,"__esModule",{value:!0});pD.toError=Kte;var qte=gn();function Kte(e){return e instanceof Error?e:new dD(e)}var dD=class extends Error{constructor(t){super("Unexpected error value: "+(0,qte.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var hE=V(fD=>{"use strict";m();T();h();Object.defineProperty(fD,"__esModule",{value:!0});fD.locatedError=Yte;var Gte=eB(),Qte=at();function Yte(e,t,n){var r;let i=(0,Gte.toError)(e);return Jte(i)?i:new Qte.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function Jte(e){return Array.isArray(e.path)}});var wh=V(Ms=>{"use strict";m();T();h();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.assertValidExecutionArguments=uB;Ms.buildExecutionContext=cB;Ms.buildResolveInfo=dB;Ms.defaultTypeResolver=Ms.defaultFieldResolver=void 0;Ms.execute=aB;Ms.executeSync=tne;Ms.getFieldDef=fB;var hD=Di(),Al=gn(),zte=ci(),Hte=HN(),ND=$o(),yo=TN(),Wte=WM(),Rl=Ih(),tB=XM(),Xte=ZM(),Us=at(),yE=hE(),mD=qo(),nB=en(),vc=tn(),hp=xs(),Zte=Nh(),sB=dE(),oB=pp(),ene=(0,Wte.memoize3)((e,t,n)=>(0,sB.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function aB(e){arguments.length<2||(0,hD.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;uB(t,n,r);let s=cB(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=nne(s,o,i);return(0,yo.isPromise)(u)?u.then(l=>TE(l,s.errors),l=>(s.errors.push(l),TE(null,s.errors))):TE(u,s.errors)}catch(o){return s.errors.push(o),TE(null,s.errors)}}function tne(e){let t=aB(e);if((0,yo.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function TE(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function uB(e,t,n){t||(0,hD.devAssert)(!1,"Must provide document."),(0,Zte.assertValidSchema)(e),n==null||(0,ND.isObjectLike)(n)||(0,hD.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 cB(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let j of i.definitions)switch(j.kind){case nB.Kind.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Us.GraphQLError("Must provide operation name if query contains multiple operations.")];N=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(N=j);break;case nB.Kind.FRAGMENT_DEFINITION:I[j.name.value]=j;break;default:}if(!N)return l!=null?[new Us.GraphQLError(`Unknown operation named "${l}".`)]:[new Us.GraphQLError("Must provide an operation.")];let b=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,oB.getVariableValues)(r,b,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:yD,typeResolver:p!=null?p:pB,subscribeFieldResolver:y!=null?y:yD,errors:[]}}function nne(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Us.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,sB.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case mD.OperationTypeNode.QUERY:return NE(e,r,n,s,i);case mD.OperationTypeNode.MUTATION:return rne(e,r,n,s,i);case mD.OperationTypeNode.SUBSCRIPTION:return NE(e,r,n,s,i)}}function rne(e,t,n,r,i){return(0,Xte.promiseReduce)(i.entries(),(s,[o,u])=>{let l=(0,Rl.addPath)(r,o,t.name),d=lB(e,t,n,u,l);return d===void 0?s:(0,yo.isPromise)(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function NE(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=(0,Rl.addPath)(r,u,t.name),p=lB(e,t,n,l,d);p!==void 0&&(s[u]=p,(0,yo.isPromise)(p)&&(o=!0))}}catch(u){if(o)return(0,tB.promiseForObject)(s).finally(()=>{throw u});throw u}return o?(0,tB.promiseForObject)(s):s}function lB(e,t,n,r,i){var s;let o=fB(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=dB(e,o,r,t,i);try{let p=(0,oB.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return(0,yo.isPromise)(N)?I=N.then(b=>Rh(e,u,r,d,i,b)):I=Rh(e,u,r,d,i,N),(0,yo.isPromise)(I)?I.then(void 0,b=>{let C=(0,yE.locatedError)(b,r,(0,Rl.pathToArray)(i));return EE(C,u,e)}):I}catch(p){let y=(0,yE.locatedError)(p,r,(0,Rl.pathToArray)(i));return EE(y,u,e)}}function dB(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 EE(e,t,n){if((0,vc.isNonNullType)(t))throw e;return n.errors.push(e),null}function Rh(e,t,n,r,i,s){if(s instanceof Error)throw s;if((0,vc.isNonNullType)(t)){let o=Rh(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if((0,vc.isListType)(t))return ine(e,t,n,r,i,s);if((0,vc.isLeafType)(t))return sne(t,s);if((0,vc.isAbstractType)(t))return one(e,t,n,r,i,s);if((0,vc.isObjectType)(t))return TD(e,t,n,r,i,s);(0,zte.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Al.inspect)(t))}function ine(e,t,n,r,i,s){if(!(0,Hte.isIterableObject)(s))throw new Us.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=(0,Rl.addPath)(i,p,void 0);try{let N;return(0,yo.isPromise)(d)?N=d.then(I=>Rh(e,o,n,r,y,I)):N=Rh(e,o,n,r,y,d),(0,yo.isPromise)(N)?(u=!0,N.then(void 0,I=>{let b=(0,yE.locatedError)(I,n,(0,Rl.pathToArray)(y));return EE(b,o,e)})):N}catch(N){let I=(0,yE.locatedError)(N,n,(0,Rl.pathToArray)(y));return EE(I,o,e)}});return u?Promise.all(l):l}function sne(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Al.inspect)(e)}.serialize(${(0,Al.inspect)(t)})\` to return non-nullable value, returned: ${(0,Al.inspect)(n)}`);return n}function one(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return(0,yo.isPromise)(d)?d.then(p=>TD(e,rB(p,e,t,n,r,s),n,r,i,s)):TD(e,rB(d,e,t,n,r,s),n,r,i,s)}function rB(e,t,n,r,i,s){if(e==null)throw new Us.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,vc.isObjectType)(e))throw new Us.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 Us.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Al.inspect)(s)}, received "${(0,Al.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Us.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,vc.isObjectType)(o))throw new Us.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Us.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function TD(e,t,n,r,i,s){let o=ene(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if((0,yo.isPromise)(u))return u.then(l=>{if(!l)throw iB(t,s,n);return NE(e,t,s,i,o)});if(!u)throw iB(t,s,n)}return NE(e,t,s,i,o)}function iB(e,t,n){return new Us.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Al.inspect)(t)}.`,{nodes:n})}var pB=function(e,t,n,r){if((0,ND.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;u{"use strict";m();T();h();Object.defineProperty(gE,"__esModule",{value:!0});gE.graphql=fne;gE.graphqlSync=mne;var ane=Di(),une=TN(),cne=np(),lne=Nh(),dne=mp(),pne=wh();function fne(e){return new Promise(t=>t(mB(e)))}function mne(e){let t=mB(e);if((0,une.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function mB(e){arguments.length<2||(0,ane.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:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=(0,lne.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,cne.parse)(n)}catch(N){return{errors:[N]}}let y=(0,dne.validate)(t,p);return y.length>0?{errors:y}:(0,pne.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}});var NB=V(_e=>{"use strict";m();T();h();Object.defineProperty(_e,"__esModule",{value:!0});Object.defineProperty(_e,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return No.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(_e,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return $a.GRAPHQL_MAX_INT}});Object.defineProperty(_e,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return $a.GRAPHQL_MIN_INT}});Object.defineProperty(_e,"GraphQLBoolean",{enumerable:!0,get:function(){return $a.GraphQLBoolean}});Object.defineProperty(_e,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return No.GraphQLDeprecatedDirective}});Object.defineProperty(_e,"GraphQLDirective",{enumerable:!0,get:function(){return No.GraphQLDirective}});Object.defineProperty(_e,"GraphQLEnumType",{enumerable:!0,get:function(){return Tt.GraphQLEnumType}});Object.defineProperty(_e,"GraphQLFloat",{enumerable:!0,get:function(){return $a.GraphQLFloat}});Object.defineProperty(_e,"GraphQLID",{enumerable:!0,get:function(){return $a.GraphQLID}});Object.defineProperty(_e,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return No.GraphQLIncludeDirective}});Object.defineProperty(_e,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Tt.GraphQLInputObjectType}});Object.defineProperty(_e,"GraphQLInt",{enumerable:!0,get:function(){return $a.GraphQLInt}});Object.defineProperty(_e,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Tt.GraphQLInterfaceType}});Object.defineProperty(_e,"GraphQLList",{enumerable:!0,get:function(){return Tt.GraphQLList}});Object.defineProperty(_e,"GraphQLNonNull",{enumerable:!0,get:function(){return Tt.GraphQLNonNull}});Object.defineProperty(_e,"GraphQLObjectType",{enumerable:!0,get:function(){return Tt.GraphQLObjectType}});Object.defineProperty(_e,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return No.GraphQLOneOfDirective}});Object.defineProperty(_e,"GraphQLScalarType",{enumerable:!0,get:function(){return Tt.GraphQLScalarType}});Object.defineProperty(_e,"GraphQLSchema",{enumerable:!0,get:function(){return ED.GraphQLSchema}});Object.defineProperty(_e,"GraphQLSkipDirective",{enumerable:!0,get:function(){return No.GraphQLSkipDirective}});Object.defineProperty(_e,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return No.GraphQLSpecifiedByDirective}});Object.defineProperty(_e,"GraphQLString",{enumerable:!0,get:function(){return $a.GraphQLString}});Object.defineProperty(_e,"GraphQLUnionType",{enumerable:!0,get:function(){return Tt.GraphQLUnionType}});Object.defineProperty(_e,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return qi.SchemaMetaFieldDef}});Object.defineProperty(_e,"TypeKind",{enumerable:!0,get:function(){return qi.TypeKind}});Object.defineProperty(_e,"TypeMetaFieldDef",{enumerable:!0,get:function(){return qi.TypeMetaFieldDef}});Object.defineProperty(_e,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return qi.TypeNameMetaFieldDef}});Object.defineProperty(_e,"__Directive",{enumerable:!0,get:function(){return qi.__Directive}});Object.defineProperty(_e,"__DirectiveLocation",{enumerable:!0,get:function(){return qi.__DirectiveLocation}});Object.defineProperty(_e,"__EnumValue",{enumerable:!0,get:function(){return qi.__EnumValue}});Object.defineProperty(_e,"__Field",{enumerable:!0,get:function(){return qi.__Field}});Object.defineProperty(_e,"__InputValue",{enumerable:!0,get:function(){return qi.__InputValue}});Object.defineProperty(_e,"__Schema",{enumerable:!0,get:function(){return qi.__Schema}});Object.defineProperty(_e,"__Type",{enumerable:!0,get:function(){return qi.__Type}});Object.defineProperty(_e,"__TypeKind",{enumerable:!0,get:function(){return qi.__TypeKind}});Object.defineProperty(_e,"assertAbstractType",{enumerable:!0,get:function(){return Tt.assertAbstractType}});Object.defineProperty(_e,"assertCompositeType",{enumerable:!0,get:function(){return Tt.assertCompositeType}});Object.defineProperty(_e,"assertDirective",{enumerable:!0,get:function(){return No.assertDirective}});Object.defineProperty(_e,"assertEnumType",{enumerable:!0,get:function(){return Tt.assertEnumType}});Object.defineProperty(_e,"assertEnumValueName",{enumerable:!0,get:function(){return yB.assertEnumValueName}});Object.defineProperty(_e,"assertInputObjectType",{enumerable:!0,get:function(){return Tt.assertInputObjectType}});Object.defineProperty(_e,"assertInputType",{enumerable:!0,get:function(){return Tt.assertInputType}});Object.defineProperty(_e,"assertInterfaceType",{enumerable:!0,get:function(){return Tt.assertInterfaceType}});Object.defineProperty(_e,"assertLeafType",{enumerable:!0,get:function(){return Tt.assertLeafType}});Object.defineProperty(_e,"assertListType",{enumerable:!0,get:function(){return Tt.assertListType}});Object.defineProperty(_e,"assertName",{enumerable:!0,get:function(){return yB.assertName}});Object.defineProperty(_e,"assertNamedType",{enumerable:!0,get:function(){return Tt.assertNamedType}});Object.defineProperty(_e,"assertNonNullType",{enumerable:!0,get:function(){return Tt.assertNonNullType}});Object.defineProperty(_e,"assertNullableType",{enumerable:!0,get:function(){return Tt.assertNullableType}});Object.defineProperty(_e,"assertObjectType",{enumerable:!0,get:function(){return Tt.assertObjectType}});Object.defineProperty(_e,"assertOutputType",{enumerable:!0,get:function(){return Tt.assertOutputType}});Object.defineProperty(_e,"assertScalarType",{enumerable:!0,get:function(){return Tt.assertScalarType}});Object.defineProperty(_e,"assertSchema",{enumerable:!0,get:function(){return ED.assertSchema}});Object.defineProperty(_e,"assertType",{enumerable:!0,get:function(){return Tt.assertType}});Object.defineProperty(_e,"assertUnionType",{enumerable:!0,get:function(){return Tt.assertUnionType}});Object.defineProperty(_e,"assertValidSchema",{enumerable:!0,get:function(){return TB.assertValidSchema}});Object.defineProperty(_e,"assertWrappingType",{enumerable:!0,get:function(){return Tt.assertWrappingType}});Object.defineProperty(_e,"getNamedType",{enumerable:!0,get:function(){return Tt.getNamedType}});Object.defineProperty(_e,"getNullableType",{enumerable:!0,get:function(){return Tt.getNullableType}});Object.defineProperty(_e,"introspectionTypes",{enumerable:!0,get:function(){return qi.introspectionTypes}});Object.defineProperty(_e,"isAbstractType",{enumerable:!0,get:function(){return Tt.isAbstractType}});Object.defineProperty(_e,"isCompositeType",{enumerable:!0,get:function(){return Tt.isCompositeType}});Object.defineProperty(_e,"isDirective",{enumerable:!0,get:function(){return No.isDirective}});Object.defineProperty(_e,"isEnumType",{enumerable:!0,get:function(){return Tt.isEnumType}});Object.defineProperty(_e,"isInputObjectType",{enumerable:!0,get:function(){return Tt.isInputObjectType}});Object.defineProperty(_e,"isInputType",{enumerable:!0,get:function(){return Tt.isInputType}});Object.defineProperty(_e,"isInterfaceType",{enumerable:!0,get:function(){return Tt.isInterfaceType}});Object.defineProperty(_e,"isIntrospectionType",{enumerable:!0,get:function(){return qi.isIntrospectionType}});Object.defineProperty(_e,"isLeafType",{enumerable:!0,get:function(){return Tt.isLeafType}});Object.defineProperty(_e,"isListType",{enumerable:!0,get:function(){return Tt.isListType}});Object.defineProperty(_e,"isNamedType",{enumerable:!0,get:function(){return Tt.isNamedType}});Object.defineProperty(_e,"isNonNullType",{enumerable:!0,get:function(){return Tt.isNonNullType}});Object.defineProperty(_e,"isNullableType",{enumerable:!0,get:function(){return Tt.isNullableType}});Object.defineProperty(_e,"isObjectType",{enumerable:!0,get:function(){return Tt.isObjectType}});Object.defineProperty(_e,"isOutputType",{enumerable:!0,get:function(){return Tt.isOutputType}});Object.defineProperty(_e,"isRequiredArgument",{enumerable:!0,get:function(){return Tt.isRequiredArgument}});Object.defineProperty(_e,"isRequiredInputField",{enumerable:!0,get:function(){return Tt.isRequiredInputField}});Object.defineProperty(_e,"isScalarType",{enumerable:!0,get:function(){return Tt.isScalarType}});Object.defineProperty(_e,"isSchema",{enumerable:!0,get:function(){return ED.isSchema}});Object.defineProperty(_e,"isSpecifiedDirective",{enumerable:!0,get:function(){return No.isSpecifiedDirective}});Object.defineProperty(_e,"isSpecifiedScalarType",{enumerable:!0,get:function(){return $a.isSpecifiedScalarType}});Object.defineProperty(_e,"isType",{enumerable:!0,get:function(){return Tt.isType}});Object.defineProperty(_e,"isUnionType",{enumerable:!0,get:function(){return Tt.isUnionType}});Object.defineProperty(_e,"isWrappingType",{enumerable:!0,get:function(){return Tt.isWrappingType}});Object.defineProperty(_e,"resolveObjMapThunk",{enumerable:!0,get:function(){return Tt.resolveObjMapThunk}});Object.defineProperty(_e,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Tt.resolveReadonlyArrayThunk}});Object.defineProperty(_e,"specifiedDirectives",{enumerable:!0,get:function(){return No.specifiedDirectives}});Object.defineProperty(_e,"specifiedScalarTypes",{enumerable:!0,get:function(){return $a.specifiedScalarTypes}});Object.defineProperty(_e,"validateSchema",{enumerable:!0,get:function(){return TB.validateSchema}});var ED=_l(),Tt=tn(),No=ji(),$a=Qo(),qi=xs(),TB=Nh(),yB=rh()});var gB=V(an=>{"use strict";m();T();h();Object.defineProperty(an,"__esModule",{value:!0});Object.defineProperty(an,"BREAK",{enumerable:!0,get:function(){return Fh.BREAK}});Object.defineProperty(an,"DirectiveLocation",{enumerable:!0,get:function(){return Ine.DirectiveLocation}});Object.defineProperty(an,"Kind",{enumerable:!0,get:function(){return yne.Kind}});Object.defineProperty(an,"Lexer",{enumerable:!0,get:function(){return Ene.Lexer}});Object.defineProperty(an,"Location",{enumerable:!0,get:function(){return gD.Location}});Object.defineProperty(an,"OperationTypeNode",{enumerable:!0,get:function(){return gD.OperationTypeNode}});Object.defineProperty(an,"Source",{enumerable:!0,get:function(){return hne.Source}});Object.defineProperty(an,"Token",{enumerable:!0,get:function(){return gD.Token}});Object.defineProperty(an,"TokenKind",{enumerable:!0,get:function(){return Nne.TokenKind}});Object.defineProperty(an,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Fh.getEnterLeaveForKind}});Object.defineProperty(an,"getLocation",{enumerable:!0,get:function(){return Tne.getLocation}});Object.defineProperty(an,"getVisitFn",{enumerable:!0,get:function(){return Fh.getVisitFn}});Object.defineProperty(an,"isConstValueNode",{enumerable:!0,get:function(){return Ho.isConstValueNode}});Object.defineProperty(an,"isDefinitionNode",{enumerable:!0,get:function(){return Ho.isDefinitionNode}});Object.defineProperty(an,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ho.isExecutableDefinitionNode}});Object.defineProperty(an,"isSelectionNode",{enumerable:!0,get:function(){return Ho.isSelectionNode}});Object.defineProperty(an,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ho.isTypeDefinitionNode}});Object.defineProperty(an,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ho.isTypeExtensionNode}});Object.defineProperty(an,"isTypeNode",{enumerable:!0,get:function(){return Ho.isTypeNode}});Object.defineProperty(an,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ho.isTypeSystemDefinitionNode}});Object.defineProperty(an,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ho.isTypeSystemExtensionNode}});Object.defineProperty(an,"isValueNode",{enumerable:!0,get:function(){return Ho.isValueNode}});Object.defineProperty(an,"parse",{enumerable:!0,get:function(){return IE.parse}});Object.defineProperty(an,"parseConstValue",{enumerable:!0,get:function(){return IE.parseConstValue}});Object.defineProperty(an,"parseType",{enumerable:!0,get:function(){return IE.parseType}});Object.defineProperty(an,"parseValue",{enumerable:!0,get:function(){return IE.parseValue}});Object.defineProperty(an,"print",{enumerable:!0,get:function(){return gne.print}});Object.defineProperty(an,"printLocation",{enumerable:!0,get:function(){return EB.printLocation}});Object.defineProperty(an,"printSourceLocation",{enumerable:!0,get:function(){return EB.printSourceLocation}});Object.defineProperty(an,"visit",{enumerable:!0,get:function(){return Fh.visit}});Object.defineProperty(an,"visitInParallel",{enumerable:!0,get:function(){return Fh.visitInParallel}});var hne=SN(),Tne=yN(),EB=TO(),yne=en(),Nne=zm(),Ene=vN(),IE=np(),gne=ps(),Fh=yl(),gD=qo(),Ho=Ol(),Ine=ep()});var IB=V(ID=>{"use strict";m();T();h();Object.defineProperty(ID,"__esModule",{value:!0});ID.isAsyncIterable=vne;function vne(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var vB=V(vD=>{"use strict";m();T();h();Object.defineProperty(vD,"__esModule",{value:!0});vD.mapAsyncIterator=_ne;function _ne(e,t){let n=e[Symbol.asyncIterator]();function r(s){return hr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return hr(this,null,function*(){return r(yield n.next())})},return(){return hr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return hr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}});var SB=V(vE=>{"use strict";m();T();h();Object.defineProperty(vE,"__esModule",{value:!0});vE.createSourceEventStream=OB;vE.subscribe=wne;var bne=Di(),One=gn(),bB=IB(),_B=Ih(),_D=at(),Sne=hE(),Dne=dE(),Lh=wh(),Ane=vB(),Rne=pp();function wne(t){return hr(this,arguments,function*(e){arguments.length<2||(0,bne.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield OB(e);if(!(0,bB.isAsyncIterable)(n))return n;let r=i=>(0,Lh.execute)(K(k({},e),{rootValue:i}));return(0,Ane.mapAsyncIterator)(n,r)})}function Fne(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 OB(...e){return hr(this,null,function*(){let t=Fne(e),{schema:n,document:r,variableValues:i}=t;(0,Lh.assertValidExecutionArguments)(n,r,i);let s=(0,Lh.buildExecutionContext)(t);if(!("schema"in s))return{errors:s};try{let o=yield Lne(s);if(!(0,bB.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,One.inspect)(o)}.`);return o}catch(o){if(o instanceof _D.GraphQLError)return{errors:[o]};throw o}})}function Lne(e){return hr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new _D.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let u=(0,Dne.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=(0,Lh.getFieldDef)(t,o,d[0]);if(!p){let b=d[0].name.value;throw new _D.GraphQLError(`The subscription field "${b}" is not defined.`,{nodes:d})}let y=(0,_B.addPath)(void 0,l,o.name),N=(0,Lh.buildResolveInfo)(e,p,d,o,y);try{var I;let b=(0,Rne.getArgumentValues)(p,d[0],i),C=e.contextValue,Q=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,b,C,N);if(Q instanceof Error)throw Q;return Q}catch(b){throw(0,Sne.locatedError)(b,d,(0,_B.pathToArray)(y))}})}});var AB=V(Bs=>{"use strict";m();T();h();Object.defineProperty(Bs,"__esModule",{value:!0});Object.defineProperty(Bs,"createSourceEventStream",{enumerable:!0,get:function(){return DB.createSourceEventStream}});Object.defineProperty(Bs,"defaultFieldResolver",{enumerable:!0,get:function(){return _E.defaultFieldResolver}});Object.defineProperty(Bs,"defaultTypeResolver",{enumerable:!0,get:function(){return _E.defaultTypeResolver}});Object.defineProperty(Bs,"execute",{enumerable:!0,get:function(){return _E.execute}});Object.defineProperty(Bs,"executeSync",{enumerable:!0,get:function(){return _E.executeSync}});Object.defineProperty(Bs,"getArgumentValues",{enumerable:!0,get:function(){return bD.getArgumentValues}});Object.defineProperty(Bs,"getDirectiveValues",{enumerable:!0,get:function(){return bD.getDirectiveValues}});Object.defineProperty(Bs,"getVariableValues",{enumerable:!0,get:function(){return bD.getVariableValues}});Object.defineProperty(Bs,"responsePathAsArray",{enumerable:!0,get:function(){return Pne.pathToArray}});Object.defineProperty(Bs,"subscribe",{enumerable:!0,get:function(){return DB.subscribe}});var Pne=Ih(),_E=wh(),DB=SB(),bD=pp()});var RB=V(DD=>{"use strict";m();T();h();Object.defineProperty(DD,"__esModule",{value:!0});DD.NoDeprecatedCustomRule=kne;var OD=ci(),Ph=at(),SD=tn();function kne(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,OD.invariant)(!1),e.reportError(new Ph.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 Ph.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||(0,OD.invariant)(!1),e.reportError(new Ph.GraphQLError(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,SD.getNamedType)(e.getParentInputType());if((0,SD.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Ph.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,SD.getNamedType)(e.getInputType());i!=null||(0,OD.invariant)(!1),e.reportError(new Ph.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var wB=V(AD=>{"use strict";m();T();h();Object.defineProperty(AD,"__esModule",{value:!0});AD.NoSchemaIntrospectionCustomRule=Mne;var xne=at(),Cne=tn(),Une=xs();function Mne(e){return{Field(t){let n=(0,Cne.getNamedType)(e.getType());n&&(0,Une.isIntrospectionType)(n)&&e.reportError(new xne.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var LB=V(Dt=>{"use strict";m();T();h();Object.defineProperty(Dt,"__esModule",{value:!0});Object.defineProperty(Dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return jne.ExecutableDefinitionsRule}});Object.defineProperty(Dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return $ne.FieldsOnCorrectTypeRule}});Object.defineProperty(Dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return qne.FragmentsOnCompositeTypesRule}});Object.defineProperty(Dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Kne.KnownArgumentNamesRule}});Object.defineProperty(Dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return Gne.KnownDirectivesRule}});Object.defineProperty(Dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Qne.KnownFragmentNamesRule}});Object.defineProperty(Dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Yne.KnownTypeNamesRule}});Object.defineProperty(Dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Jne.LoneAnonymousOperationRule}});Object.defineProperty(Dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return mre.LoneSchemaDefinitionRule}});Object.defineProperty(Dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return fre.MaxIntrospectionDepthRule}});Object.defineProperty(Dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return vre.NoDeprecatedCustomRule}});Object.defineProperty(Dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return zne.NoFragmentCyclesRule}});Object.defineProperty(Dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return _re.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Hne.NoUndefinedVariablesRule}});Object.defineProperty(Dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Wne.NoUnusedFragmentsRule}});Object.defineProperty(Dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Xne.NoUnusedVariablesRule}});Object.defineProperty(Dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Zne.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ere.PossibleFragmentSpreadsRule}});Object.defineProperty(Dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Ire.PossibleTypeExtensionsRule}});Object.defineProperty(Dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return tre.ProvidedRequiredArgumentsRule}});Object.defineProperty(Dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return nre.ScalarLeafsRule}});Object.defineProperty(Dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return rre.SingleFieldSubscriptionsRule}});Object.defineProperty(Dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Ere.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ire.UniqueArgumentNamesRule}});Object.defineProperty(Dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return gre.UniqueDirectiveNamesRule}});Object.defineProperty(Dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return sre.UniqueDirectivesPerLocationRule}});Object.defineProperty(Dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return yre.UniqueEnumValueNamesRule}});Object.defineProperty(Dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Nre.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ore.UniqueFragmentNamesRule}});Object.defineProperty(Dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return are.UniqueInputFieldNamesRule}});Object.defineProperty(Dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ure.UniqueOperationNamesRule}});Object.defineProperty(Dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return hre.UniqueOperationTypesRule}});Object.defineProperty(Dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Tre.UniqueTypeNamesRule}});Object.defineProperty(Dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return cre.UniqueVariableNamesRule}});Object.defineProperty(Dt,"ValidationContext",{enumerable:!0,get:function(){return Vne.ValidationContext}});Object.defineProperty(Dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return lre.ValuesOfCorrectTypeRule}});Object.defineProperty(Dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return dre.VariablesAreInputTypesRule}});Object.defineProperty(Dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return pre.VariablesInAllowedPositionRule}});Object.defineProperty(Dt,"recommendedRules",{enumerable:!0,get:function(){return FB.recommendedRules}});Object.defineProperty(Dt,"specifiedRules",{enumerable:!0,get:function(){return FB.specifiedRules}});Object.defineProperty(Dt,"validate",{enumerable:!0,get:function(){return Bne.validate}});var Bne=mp(),Vne=oD(),FB=rD(),jne=gS(),$ne=vS(),qne=bS(),Kne=OS(),Gne=RS(),Qne=FS(),Yne=kS(),Jne=CS(),zne=$S(),Hne=KS(),Wne=QS(),Xne=JS(),Zne=i0(),ere=a0(),tre=d0(),nre=f0(),rre=v0(),ire=D0(),sre=L0(),ore=B0(),are=j0(),ure=q0(),cre=z0(),lre=X0(),dre=eD(),pre=nD(),fre=VS(),mre=MS(),hre=G0(),Tre=Y0(),yre=k0(),Nre=U0(),Ere=O0(),gre=R0(),Ire=c0(),vre=RB(),_re=wB()});var PB=V(wl=>{"use strict";m();T();h();Object.defineProperty(wl,"__esModule",{value:!0});Object.defineProperty(wl,"GraphQLError",{enumerable:!0,get:function(){return RD.GraphQLError}});Object.defineProperty(wl,"formatError",{enumerable:!0,get:function(){return RD.formatError}});Object.defineProperty(wl,"locatedError",{enumerable:!0,get:function(){return Ore.locatedError}});Object.defineProperty(wl,"printError",{enumerable:!0,get:function(){return RD.printError}});Object.defineProperty(wl,"syntaxError",{enumerable:!0,get:function(){return bre.syntaxError}});var RD=at(),bre=EN(),Ore=hE()});var FD=V(wD=>{"use strict";m();T();h();Object.defineProperty(wD,"__esModule",{value:!0});wD.getIntrospectionQuery=Sre;function Sre(e){let t=k({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":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` +`))}});var WM=V(uD=>{"use strict";m();T();h();Object.defineProperty(uD,"__esModule",{value:!0});uD.memoize3=Bte;function Bte(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}});var XM=V(cD=>{"use strict";m();T();h();Object.defineProperty(cD,"__esModule",{value:!0});cD.promiseForObject=Vte;function Vte(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 ZM=V(lD=>{"use strict";m();T();h();Object.defineProperty(lD,"__esModule",{value:!0});lD.promiseReduce=$te;var jte=TN();function $te(e,t,n){let r=n;for(let i of e)r=(0,jte.isPromise)(r)?r.then(s=>t(s,i)):t(r,i);return r}});var eB=V(pD=>{"use strict";m();T();h();Object.defineProperty(pD,"__esModule",{value:!0});pD.toError=Kte;var qte=gn();function Kte(e){return e instanceof Error?e:new dD(e)}var dD=class extends Error{constructor(t){super("Unexpected error value: "+(0,qte.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var hE=V(fD=>{"use strict";m();T();h();Object.defineProperty(fD,"__esModule",{value:!0});fD.locatedError=Yte;var Gte=eB(),Qte=ut();function Yte(e,t,n){var r;let i=(0,Gte.toError)(e);return Jte(i)?i:new Qte.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function Jte(e){return Array.isArray(e.path)}});var Fh=V(Ms=>{"use strict";m();T();h();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.assertValidExecutionArguments=uB;Ms.buildExecutionContext=cB;Ms.buildResolveInfo=dB;Ms.defaultTypeResolver=Ms.defaultFieldResolver=void 0;Ms.execute=aB;Ms.executeSync=tne;Ms.getFieldDef=fB;var hD=Di(),Al=gn(),zte=ci(),Hte=HN(),ND=$o(),yo=TN(),Wte=WM(),Rl=Ih(),tB=XM(),Xte=ZM(),Us=ut(),yE=hE(),mD=qo(),nB=en(),vc=tn(),hp=xs(),Zte=Nh(),sB=dE(),oB=pp(),ene=(0,Wte.memoize3)((e,t,n)=>(0,sB.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function aB(e){arguments.length<2||(0,hD.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;uB(t,n,r);let s=cB(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=nne(s,o,i);return(0,yo.isPromise)(u)?u.then(l=>TE(l,s.errors),l=>(s.errors.push(l),TE(null,s.errors))):TE(u,s.errors)}catch(o){return s.errors.push(o),TE(null,s.errors)}}function tne(e){let t=aB(e);if((0,yo.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function TE(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function uB(e,t,n){t||(0,hD.devAssert)(!1,"Must provide document."),(0,Zte.assertValidSchema)(e),n==null||(0,ND.isObjectLike)(n)||(0,hD.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 cB(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let j of i.definitions)switch(j.kind){case nB.Kind.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Us.GraphQLError("Must provide operation name if query contains multiple operations.")];N=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(N=j);break;case nB.Kind.FRAGMENT_DEFINITION:I[j.name.value]=j;break;default:}if(!N)return l!=null?[new Us.GraphQLError(`Unknown operation named "${l}".`)]:[new Us.GraphQLError("Must provide an operation.")];let b=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,oB.getVariableValues)(r,b,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:yD,typeResolver:p!=null?p:pB,subscribeFieldResolver:y!=null?y:yD,errors:[]}}function nne(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Us.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,sB.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case mD.OperationTypeNode.QUERY:return NE(e,r,n,s,i);case mD.OperationTypeNode.MUTATION:return rne(e,r,n,s,i);case mD.OperationTypeNode.SUBSCRIPTION:return NE(e,r,n,s,i)}}function rne(e,t,n,r,i){return(0,Xte.promiseReduce)(i.entries(),(s,[o,u])=>{let l=(0,Rl.addPath)(r,o,t.name),d=lB(e,t,n,u,l);return d===void 0?s:(0,yo.isPromise)(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function NE(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=(0,Rl.addPath)(r,u,t.name),p=lB(e,t,n,l,d);p!==void 0&&(s[u]=p,(0,yo.isPromise)(p)&&(o=!0))}}catch(u){if(o)return(0,tB.promiseForObject)(s).finally(()=>{throw u});throw u}return o?(0,tB.promiseForObject)(s):s}function lB(e,t,n,r,i){var s;let o=fB(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=dB(e,o,r,t,i);try{let p=(0,oB.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return(0,yo.isPromise)(N)?I=N.then(b=>Rh(e,u,r,d,i,b)):I=Rh(e,u,r,d,i,N),(0,yo.isPromise)(I)?I.then(void 0,b=>{let C=(0,yE.locatedError)(b,r,(0,Rl.pathToArray)(i));return EE(C,u,e)}):I}catch(p){let y=(0,yE.locatedError)(p,r,(0,Rl.pathToArray)(i));return EE(y,u,e)}}function dB(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 EE(e,t,n){if((0,vc.isNonNullType)(t))throw e;return n.errors.push(e),null}function Rh(e,t,n,r,i,s){if(s instanceof Error)throw s;if((0,vc.isNonNullType)(t)){let o=Rh(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if((0,vc.isListType)(t))return ine(e,t,n,r,i,s);if((0,vc.isLeafType)(t))return sne(t,s);if((0,vc.isAbstractType)(t))return one(e,t,n,r,i,s);if((0,vc.isObjectType)(t))return TD(e,t,n,r,i,s);(0,zte.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Al.inspect)(t))}function ine(e,t,n,r,i,s){if(!(0,Hte.isIterableObject)(s))throw new Us.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=(0,Rl.addPath)(i,p,void 0);try{let N;return(0,yo.isPromise)(d)?N=d.then(I=>Rh(e,o,n,r,y,I)):N=Rh(e,o,n,r,y,d),(0,yo.isPromise)(N)?(u=!0,N.then(void 0,I=>{let b=(0,yE.locatedError)(I,n,(0,Rl.pathToArray)(y));return EE(b,o,e)})):N}catch(N){let I=(0,yE.locatedError)(N,n,(0,Rl.pathToArray)(y));return EE(I,o,e)}});return u?Promise.all(l):l}function sne(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Al.inspect)(e)}.serialize(${(0,Al.inspect)(t)})\` to return non-nullable value, returned: ${(0,Al.inspect)(n)}`);return n}function one(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return(0,yo.isPromise)(d)?d.then(p=>TD(e,rB(p,e,t,n,r,s),n,r,i,s)):TD(e,rB(d,e,t,n,r,s),n,r,i,s)}function rB(e,t,n,r,i,s){if(e==null)throw new Us.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,vc.isObjectType)(e))throw new Us.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 Us.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Al.inspect)(s)}, received "${(0,Al.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Us.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,vc.isObjectType)(o))throw new Us.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Us.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function TD(e,t,n,r,i,s){let o=ene(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if((0,yo.isPromise)(u))return u.then(l=>{if(!l)throw iB(t,s,n);return NE(e,t,s,i,o)});if(!u)throw iB(t,s,n)}return NE(e,t,s,i,o)}function iB(e,t,n){return new Us.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Al.inspect)(t)}.`,{nodes:n})}var pB=function(e,t,n,r){if((0,ND.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;u{"use strict";m();T();h();Object.defineProperty(gE,"__esModule",{value:!0});gE.graphql=fne;gE.graphqlSync=mne;var ane=Di(),une=TN(),cne=np(),lne=Nh(),dne=mp(),pne=Fh();function fne(e){return new Promise(t=>t(mB(e)))}function mne(e){let t=mB(e);if((0,une.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function mB(e){arguments.length<2||(0,ane.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:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=(0,lne.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,cne.parse)(n)}catch(N){return{errors:[N]}}let y=(0,dne.validate)(t,p);return y.length>0?{errors:y}:(0,pne.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}});var NB=V(_e=>{"use strict";m();T();h();Object.defineProperty(_e,"__esModule",{value:!0});Object.defineProperty(_e,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return No.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(_e,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return $a.GRAPHQL_MAX_INT}});Object.defineProperty(_e,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return $a.GRAPHQL_MIN_INT}});Object.defineProperty(_e,"GraphQLBoolean",{enumerable:!0,get:function(){return $a.GraphQLBoolean}});Object.defineProperty(_e,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return No.GraphQLDeprecatedDirective}});Object.defineProperty(_e,"GraphQLDirective",{enumerable:!0,get:function(){return No.GraphQLDirective}});Object.defineProperty(_e,"GraphQLEnumType",{enumerable:!0,get:function(){return Tt.GraphQLEnumType}});Object.defineProperty(_e,"GraphQLFloat",{enumerable:!0,get:function(){return $a.GraphQLFloat}});Object.defineProperty(_e,"GraphQLID",{enumerable:!0,get:function(){return $a.GraphQLID}});Object.defineProperty(_e,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return No.GraphQLIncludeDirective}});Object.defineProperty(_e,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Tt.GraphQLInputObjectType}});Object.defineProperty(_e,"GraphQLInt",{enumerable:!0,get:function(){return $a.GraphQLInt}});Object.defineProperty(_e,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Tt.GraphQLInterfaceType}});Object.defineProperty(_e,"GraphQLList",{enumerable:!0,get:function(){return Tt.GraphQLList}});Object.defineProperty(_e,"GraphQLNonNull",{enumerable:!0,get:function(){return Tt.GraphQLNonNull}});Object.defineProperty(_e,"GraphQLObjectType",{enumerable:!0,get:function(){return Tt.GraphQLObjectType}});Object.defineProperty(_e,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return No.GraphQLOneOfDirective}});Object.defineProperty(_e,"GraphQLScalarType",{enumerable:!0,get:function(){return Tt.GraphQLScalarType}});Object.defineProperty(_e,"GraphQLSchema",{enumerable:!0,get:function(){return ED.GraphQLSchema}});Object.defineProperty(_e,"GraphQLSkipDirective",{enumerable:!0,get:function(){return No.GraphQLSkipDirective}});Object.defineProperty(_e,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return No.GraphQLSpecifiedByDirective}});Object.defineProperty(_e,"GraphQLString",{enumerable:!0,get:function(){return $a.GraphQLString}});Object.defineProperty(_e,"GraphQLUnionType",{enumerable:!0,get:function(){return Tt.GraphQLUnionType}});Object.defineProperty(_e,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return qi.SchemaMetaFieldDef}});Object.defineProperty(_e,"TypeKind",{enumerable:!0,get:function(){return qi.TypeKind}});Object.defineProperty(_e,"TypeMetaFieldDef",{enumerable:!0,get:function(){return qi.TypeMetaFieldDef}});Object.defineProperty(_e,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return qi.TypeNameMetaFieldDef}});Object.defineProperty(_e,"__Directive",{enumerable:!0,get:function(){return qi.__Directive}});Object.defineProperty(_e,"__DirectiveLocation",{enumerable:!0,get:function(){return qi.__DirectiveLocation}});Object.defineProperty(_e,"__EnumValue",{enumerable:!0,get:function(){return qi.__EnumValue}});Object.defineProperty(_e,"__Field",{enumerable:!0,get:function(){return qi.__Field}});Object.defineProperty(_e,"__InputValue",{enumerable:!0,get:function(){return qi.__InputValue}});Object.defineProperty(_e,"__Schema",{enumerable:!0,get:function(){return qi.__Schema}});Object.defineProperty(_e,"__Type",{enumerable:!0,get:function(){return qi.__Type}});Object.defineProperty(_e,"__TypeKind",{enumerable:!0,get:function(){return qi.__TypeKind}});Object.defineProperty(_e,"assertAbstractType",{enumerable:!0,get:function(){return Tt.assertAbstractType}});Object.defineProperty(_e,"assertCompositeType",{enumerable:!0,get:function(){return Tt.assertCompositeType}});Object.defineProperty(_e,"assertDirective",{enumerable:!0,get:function(){return No.assertDirective}});Object.defineProperty(_e,"assertEnumType",{enumerable:!0,get:function(){return Tt.assertEnumType}});Object.defineProperty(_e,"assertEnumValueName",{enumerable:!0,get:function(){return yB.assertEnumValueName}});Object.defineProperty(_e,"assertInputObjectType",{enumerable:!0,get:function(){return Tt.assertInputObjectType}});Object.defineProperty(_e,"assertInputType",{enumerable:!0,get:function(){return Tt.assertInputType}});Object.defineProperty(_e,"assertInterfaceType",{enumerable:!0,get:function(){return Tt.assertInterfaceType}});Object.defineProperty(_e,"assertLeafType",{enumerable:!0,get:function(){return Tt.assertLeafType}});Object.defineProperty(_e,"assertListType",{enumerable:!0,get:function(){return Tt.assertListType}});Object.defineProperty(_e,"assertName",{enumerable:!0,get:function(){return yB.assertName}});Object.defineProperty(_e,"assertNamedType",{enumerable:!0,get:function(){return Tt.assertNamedType}});Object.defineProperty(_e,"assertNonNullType",{enumerable:!0,get:function(){return Tt.assertNonNullType}});Object.defineProperty(_e,"assertNullableType",{enumerable:!0,get:function(){return Tt.assertNullableType}});Object.defineProperty(_e,"assertObjectType",{enumerable:!0,get:function(){return Tt.assertObjectType}});Object.defineProperty(_e,"assertOutputType",{enumerable:!0,get:function(){return Tt.assertOutputType}});Object.defineProperty(_e,"assertScalarType",{enumerable:!0,get:function(){return Tt.assertScalarType}});Object.defineProperty(_e,"assertSchema",{enumerable:!0,get:function(){return ED.assertSchema}});Object.defineProperty(_e,"assertType",{enumerable:!0,get:function(){return Tt.assertType}});Object.defineProperty(_e,"assertUnionType",{enumerable:!0,get:function(){return Tt.assertUnionType}});Object.defineProperty(_e,"assertValidSchema",{enumerable:!0,get:function(){return TB.assertValidSchema}});Object.defineProperty(_e,"assertWrappingType",{enumerable:!0,get:function(){return Tt.assertWrappingType}});Object.defineProperty(_e,"getNamedType",{enumerable:!0,get:function(){return Tt.getNamedType}});Object.defineProperty(_e,"getNullableType",{enumerable:!0,get:function(){return Tt.getNullableType}});Object.defineProperty(_e,"introspectionTypes",{enumerable:!0,get:function(){return qi.introspectionTypes}});Object.defineProperty(_e,"isAbstractType",{enumerable:!0,get:function(){return Tt.isAbstractType}});Object.defineProperty(_e,"isCompositeType",{enumerable:!0,get:function(){return Tt.isCompositeType}});Object.defineProperty(_e,"isDirective",{enumerable:!0,get:function(){return No.isDirective}});Object.defineProperty(_e,"isEnumType",{enumerable:!0,get:function(){return Tt.isEnumType}});Object.defineProperty(_e,"isInputObjectType",{enumerable:!0,get:function(){return Tt.isInputObjectType}});Object.defineProperty(_e,"isInputType",{enumerable:!0,get:function(){return Tt.isInputType}});Object.defineProperty(_e,"isInterfaceType",{enumerable:!0,get:function(){return Tt.isInterfaceType}});Object.defineProperty(_e,"isIntrospectionType",{enumerable:!0,get:function(){return qi.isIntrospectionType}});Object.defineProperty(_e,"isLeafType",{enumerable:!0,get:function(){return Tt.isLeafType}});Object.defineProperty(_e,"isListType",{enumerable:!0,get:function(){return Tt.isListType}});Object.defineProperty(_e,"isNamedType",{enumerable:!0,get:function(){return Tt.isNamedType}});Object.defineProperty(_e,"isNonNullType",{enumerable:!0,get:function(){return Tt.isNonNullType}});Object.defineProperty(_e,"isNullableType",{enumerable:!0,get:function(){return Tt.isNullableType}});Object.defineProperty(_e,"isObjectType",{enumerable:!0,get:function(){return Tt.isObjectType}});Object.defineProperty(_e,"isOutputType",{enumerable:!0,get:function(){return Tt.isOutputType}});Object.defineProperty(_e,"isRequiredArgument",{enumerable:!0,get:function(){return Tt.isRequiredArgument}});Object.defineProperty(_e,"isRequiredInputField",{enumerable:!0,get:function(){return Tt.isRequiredInputField}});Object.defineProperty(_e,"isScalarType",{enumerable:!0,get:function(){return Tt.isScalarType}});Object.defineProperty(_e,"isSchema",{enumerable:!0,get:function(){return ED.isSchema}});Object.defineProperty(_e,"isSpecifiedDirective",{enumerable:!0,get:function(){return No.isSpecifiedDirective}});Object.defineProperty(_e,"isSpecifiedScalarType",{enumerable:!0,get:function(){return $a.isSpecifiedScalarType}});Object.defineProperty(_e,"isType",{enumerable:!0,get:function(){return Tt.isType}});Object.defineProperty(_e,"isUnionType",{enumerable:!0,get:function(){return Tt.isUnionType}});Object.defineProperty(_e,"isWrappingType",{enumerable:!0,get:function(){return Tt.isWrappingType}});Object.defineProperty(_e,"resolveObjMapThunk",{enumerable:!0,get:function(){return Tt.resolveObjMapThunk}});Object.defineProperty(_e,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Tt.resolveReadonlyArrayThunk}});Object.defineProperty(_e,"specifiedDirectives",{enumerable:!0,get:function(){return No.specifiedDirectives}});Object.defineProperty(_e,"specifiedScalarTypes",{enumerable:!0,get:function(){return $a.specifiedScalarTypes}});Object.defineProperty(_e,"validateSchema",{enumerable:!0,get:function(){return TB.validateSchema}});var ED=_l(),Tt=tn(),No=ji(),$a=Qo(),qi=xs(),TB=Nh(),yB=rh()});var gB=V(an=>{"use strict";m();T();h();Object.defineProperty(an,"__esModule",{value:!0});Object.defineProperty(an,"BREAK",{enumerable:!0,get:function(){return wh.BREAK}});Object.defineProperty(an,"DirectiveLocation",{enumerable:!0,get:function(){return Ine.DirectiveLocation}});Object.defineProperty(an,"Kind",{enumerable:!0,get:function(){return yne.Kind}});Object.defineProperty(an,"Lexer",{enumerable:!0,get:function(){return Ene.Lexer}});Object.defineProperty(an,"Location",{enumerable:!0,get:function(){return gD.Location}});Object.defineProperty(an,"OperationTypeNode",{enumerable:!0,get:function(){return gD.OperationTypeNode}});Object.defineProperty(an,"Source",{enumerable:!0,get:function(){return hne.Source}});Object.defineProperty(an,"Token",{enumerable:!0,get:function(){return gD.Token}});Object.defineProperty(an,"TokenKind",{enumerable:!0,get:function(){return Nne.TokenKind}});Object.defineProperty(an,"getEnterLeaveForKind",{enumerable:!0,get:function(){return wh.getEnterLeaveForKind}});Object.defineProperty(an,"getLocation",{enumerable:!0,get:function(){return Tne.getLocation}});Object.defineProperty(an,"getVisitFn",{enumerable:!0,get:function(){return wh.getVisitFn}});Object.defineProperty(an,"isConstValueNode",{enumerable:!0,get:function(){return Ho.isConstValueNode}});Object.defineProperty(an,"isDefinitionNode",{enumerable:!0,get:function(){return Ho.isDefinitionNode}});Object.defineProperty(an,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ho.isExecutableDefinitionNode}});Object.defineProperty(an,"isSelectionNode",{enumerable:!0,get:function(){return Ho.isSelectionNode}});Object.defineProperty(an,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ho.isTypeDefinitionNode}});Object.defineProperty(an,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ho.isTypeExtensionNode}});Object.defineProperty(an,"isTypeNode",{enumerable:!0,get:function(){return Ho.isTypeNode}});Object.defineProperty(an,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ho.isTypeSystemDefinitionNode}});Object.defineProperty(an,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ho.isTypeSystemExtensionNode}});Object.defineProperty(an,"isValueNode",{enumerable:!0,get:function(){return Ho.isValueNode}});Object.defineProperty(an,"parse",{enumerable:!0,get:function(){return IE.parse}});Object.defineProperty(an,"parseConstValue",{enumerable:!0,get:function(){return IE.parseConstValue}});Object.defineProperty(an,"parseType",{enumerable:!0,get:function(){return IE.parseType}});Object.defineProperty(an,"parseValue",{enumerable:!0,get:function(){return IE.parseValue}});Object.defineProperty(an,"print",{enumerable:!0,get:function(){return gne.print}});Object.defineProperty(an,"printLocation",{enumerable:!0,get:function(){return EB.printLocation}});Object.defineProperty(an,"printSourceLocation",{enumerable:!0,get:function(){return EB.printSourceLocation}});Object.defineProperty(an,"visit",{enumerable:!0,get:function(){return wh.visit}});Object.defineProperty(an,"visitInParallel",{enumerable:!0,get:function(){return wh.visitInParallel}});var hne=SN(),Tne=yN(),EB=TO(),yne=en(),Nne=zm(),Ene=vN(),IE=np(),gne=ps(),wh=yl(),gD=qo(),Ho=Ol(),Ine=ep()});var IB=V(ID=>{"use strict";m();T();h();Object.defineProperty(ID,"__esModule",{value:!0});ID.isAsyncIterable=vne;function vne(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var vB=V(vD=>{"use strict";m();T();h();Object.defineProperty(vD,"__esModule",{value:!0});vD.mapAsyncIterator=_ne;function _ne(e,t){let n=e[Symbol.asyncIterator]();function r(s){return Tr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return Tr(this,null,function*(){return r(yield n.next())})},return(){return Tr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return Tr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}});var SB=V(vE=>{"use strict";m();T();h();Object.defineProperty(vE,"__esModule",{value:!0});vE.createSourceEventStream=OB;vE.subscribe=Fne;var bne=Di(),One=gn(),bB=IB(),_B=Ih(),_D=ut(),Sne=hE(),Dne=dE(),Lh=Fh(),Ane=vB(),Rne=pp();function Fne(t){return Tr(this,arguments,function*(e){arguments.length<2||(0,bne.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield OB(e);if(!(0,bB.isAsyncIterable)(n))return n;let r=i=>(0,Lh.execute)(K(k({},e),{rootValue:i}));return(0,Ane.mapAsyncIterator)(n,r)})}function wne(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 OB(...e){return Tr(this,null,function*(){let t=wne(e),{schema:n,document:r,variableValues:i}=t;(0,Lh.assertValidExecutionArguments)(n,r,i);let s=(0,Lh.buildExecutionContext)(t);if(!("schema"in s))return{errors:s};try{let o=yield Lne(s);if(!(0,bB.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,One.inspect)(o)}.`);return o}catch(o){if(o instanceof _D.GraphQLError)return{errors:[o]};throw o}})}function Lne(e){return Tr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new _D.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let u=(0,Dne.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=(0,Lh.getFieldDef)(t,o,d[0]);if(!p){let b=d[0].name.value;throw new _D.GraphQLError(`The subscription field "${b}" is not defined.`,{nodes:d})}let y=(0,_B.addPath)(void 0,l,o.name),N=(0,Lh.buildResolveInfo)(e,p,d,o,y);try{var I;let b=(0,Rne.getArgumentValues)(p,d[0],i),C=e.contextValue,Q=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,b,C,N);if(Q instanceof Error)throw Q;return Q}catch(b){throw(0,Sne.locatedError)(b,d,(0,_B.pathToArray)(y))}})}});var AB=V(Bs=>{"use strict";m();T();h();Object.defineProperty(Bs,"__esModule",{value:!0});Object.defineProperty(Bs,"createSourceEventStream",{enumerable:!0,get:function(){return DB.createSourceEventStream}});Object.defineProperty(Bs,"defaultFieldResolver",{enumerable:!0,get:function(){return _E.defaultFieldResolver}});Object.defineProperty(Bs,"defaultTypeResolver",{enumerable:!0,get:function(){return _E.defaultTypeResolver}});Object.defineProperty(Bs,"execute",{enumerable:!0,get:function(){return _E.execute}});Object.defineProperty(Bs,"executeSync",{enumerable:!0,get:function(){return _E.executeSync}});Object.defineProperty(Bs,"getArgumentValues",{enumerable:!0,get:function(){return bD.getArgumentValues}});Object.defineProperty(Bs,"getDirectiveValues",{enumerable:!0,get:function(){return bD.getDirectiveValues}});Object.defineProperty(Bs,"getVariableValues",{enumerable:!0,get:function(){return bD.getVariableValues}});Object.defineProperty(Bs,"responsePathAsArray",{enumerable:!0,get:function(){return Pne.pathToArray}});Object.defineProperty(Bs,"subscribe",{enumerable:!0,get:function(){return DB.subscribe}});var Pne=Ih(),_E=Fh(),DB=SB(),bD=pp()});var RB=V(DD=>{"use strict";m();T();h();Object.defineProperty(DD,"__esModule",{value:!0});DD.NoDeprecatedCustomRule=kne;var OD=ci(),Ph=ut(),SD=tn();function kne(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,OD.invariant)(!1),e.reportError(new Ph.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 Ph.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||(0,OD.invariant)(!1),e.reportError(new Ph.GraphQLError(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,SD.getNamedType)(e.getParentInputType());if((0,SD.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Ph.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,SD.getNamedType)(e.getInputType());i!=null||(0,OD.invariant)(!1),e.reportError(new Ph.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var FB=V(AD=>{"use strict";m();T();h();Object.defineProperty(AD,"__esModule",{value:!0});AD.NoSchemaIntrospectionCustomRule=Mne;var xne=ut(),Cne=tn(),Une=xs();function Mne(e){return{Field(t){let n=(0,Cne.getNamedType)(e.getType());n&&(0,Une.isIntrospectionType)(n)&&e.reportError(new xne.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var LB=V(Dt=>{"use strict";m();T();h();Object.defineProperty(Dt,"__esModule",{value:!0});Object.defineProperty(Dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return jne.ExecutableDefinitionsRule}});Object.defineProperty(Dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return $ne.FieldsOnCorrectTypeRule}});Object.defineProperty(Dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return qne.FragmentsOnCompositeTypesRule}});Object.defineProperty(Dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Kne.KnownArgumentNamesRule}});Object.defineProperty(Dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return Gne.KnownDirectivesRule}});Object.defineProperty(Dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Qne.KnownFragmentNamesRule}});Object.defineProperty(Dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Yne.KnownTypeNamesRule}});Object.defineProperty(Dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Jne.LoneAnonymousOperationRule}});Object.defineProperty(Dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return mre.LoneSchemaDefinitionRule}});Object.defineProperty(Dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return fre.MaxIntrospectionDepthRule}});Object.defineProperty(Dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return vre.NoDeprecatedCustomRule}});Object.defineProperty(Dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return zne.NoFragmentCyclesRule}});Object.defineProperty(Dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return _re.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Hne.NoUndefinedVariablesRule}});Object.defineProperty(Dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Wne.NoUnusedFragmentsRule}});Object.defineProperty(Dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Xne.NoUnusedVariablesRule}});Object.defineProperty(Dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Zne.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ere.PossibleFragmentSpreadsRule}});Object.defineProperty(Dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Ire.PossibleTypeExtensionsRule}});Object.defineProperty(Dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return tre.ProvidedRequiredArgumentsRule}});Object.defineProperty(Dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return nre.ScalarLeafsRule}});Object.defineProperty(Dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return rre.SingleFieldSubscriptionsRule}});Object.defineProperty(Dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Ere.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ire.UniqueArgumentNamesRule}});Object.defineProperty(Dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return gre.UniqueDirectiveNamesRule}});Object.defineProperty(Dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return sre.UniqueDirectivesPerLocationRule}});Object.defineProperty(Dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return yre.UniqueEnumValueNamesRule}});Object.defineProperty(Dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Nre.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ore.UniqueFragmentNamesRule}});Object.defineProperty(Dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return are.UniqueInputFieldNamesRule}});Object.defineProperty(Dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ure.UniqueOperationNamesRule}});Object.defineProperty(Dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return hre.UniqueOperationTypesRule}});Object.defineProperty(Dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Tre.UniqueTypeNamesRule}});Object.defineProperty(Dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return cre.UniqueVariableNamesRule}});Object.defineProperty(Dt,"ValidationContext",{enumerable:!0,get:function(){return Vne.ValidationContext}});Object.defineProperty(Dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return lre.ValuesOfCorrectTypeRule}});Object.defineProperty(Dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return dre.VariablesAreInputTypesRule}});Object.defineProperty(Dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return pre.VariablesInAllowedPositionRule}});Object.defineProperty(Dt,"recommendedRules",{enumerable:!0,get:function(){return wB.recommendedRules}});Object.defineProperty(Dt,"specifiedRules",{enumerable:!0,get:function(){return wB.specifiedRules}});Object.defineProperty(Dt,"validate",{enumerable:!0,get:function(){return Bne.validate}});var Bne=mp(),Vne=oD(),wB=rD(),jne=gS(),$ne=vS(),qne=bS(),Kne=OS(),Gne=RS(),Qne=wS(),Yne=kS(),Jne=CS(),zne=$S(),Hne=KS(),Wne=QS(),Xne=JS(),Zne=i0(),ere=a0(),tre=d0(),nre=f0(),rre=v0(),ire=D0(),sre=L0(),ore=B0(),are=j0(),ure=q0(),cre=z0(),lre=X0(),dre=eD(),pre=nD(),fre=VS(),mre=MS(),hre=G0(),Tre=Y0(),yre=k0(),Nre=U0(),Ere=O0(),gre=R0(),Ire=c0(),vre=RB(),_re=FB()});var PB=V(Fl=>{"use strict";m();T();h();Object.defineProperty(Fl,"__esModule",{value:!0});Object.defineProperty(Fl,"GraphQLError",{enumerable:!0,get:function(){return RD.GraphQLError}});Object.defineProperty(Fl,"formatError",{enumerable:!0,get:function(){return RD.formatError}});Object.defineProperty(Fl,"locatedError",{enumerable:!0,get:function(){return Ore.locatedError}});Object.defineProperty(Fl,"printError",{enumerable:!0,get:function(){return RD.printError}});Object.defineProperty(Fl,"syntaxError",{enumerable:!0,get:function(){return bre.syntaxError}});var RD=ut(),bre=EN(),Ore=hE()});var wD=V(FD=>{"use strict";m();T();h();Object.defineProperty(FD,"__esModule",{value:!0});FD.getIntrospectionQuery=Sre;function Sre(e){let t=k({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":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${s} @@ -548,7 +548,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var kB=V(LD=>{"use strict";m();T();h();Object.defineProperty(LD,"__esModule",{value:!0});LD.getOperationAST=Are;var Dre=en();function Are(e,t){let n=null;for(let i of e.definitions)if(i.kind===Dre.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 xB=V(PD=>{"use strict";m();T();h();Object.defineProperty(PD,"__esModule",{value:!0});PD.getOperationRootType=Rre;var bE=at();function Rre(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new bE.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 bE.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new bE.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new bE.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var CB=V(kD=>{"use strict";m();T();h();Object.defineProperty(kD,"__esModule",{value:!0});kD.introspectionFromSchema=kre;var wre=ci(),Fre=np(),Lre=wh(),Pre=FD();function kre(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,Fre.parse)((0,Pre.getIntrospectionQuery)(n)),i=(0,Lre.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,wre.invariant)(!1),i.data}});var MB=V(xD=>{"use strict";m();T();h();Object.defineProperty(xD,"__esModule",{value:!0});xD.buildClientSchema=jre;var xre=Di(),fs=gn(),UB=$o(),OE=th(),Cre=np(),ms=tn(),Ure=ji(),Wo=xs(),Mre=Qo(),Bre=_l(),Vre=Oh();function jre(e,t){(0,UB.isObjectLike)(e)&&(0,UB.isObjectLike)(e.__schema)||(0,xre.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,fs.inspect)(e)}.`);let n=e.__schema,r=(0,OE.keyValMap)(n.types,B=>B.name,B=>N(B));for(let B of[...Mre.specifiedScalarTypes,...Wo.introspectionTypes])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new Bre.GraphQLSchema({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===Wo.TypeKind.LIST){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");return new ms.GraphQLList(l(he))}if(B.kind===Wo.TypeKind.NON_NULL){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");let rt=l(he);return new ms.GraphQLNonNull((0,ms.assertNullableType)(rt))}return d(B)}function d(B){let he=B.name;if(!he)throw new Error(`Unknown type reference: ${(0,fs.inspect)(B)}.`);let rt=r[he];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${he}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return(0,ms.assertObjectType)(d(B))}function y(B){return(0,ms.assertInterfaceType)(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case Wo.TypeKind.SCALAR:return I(B);case Wo.TypeKind.OBJECT:return C(B);case Wo.TypeKind.INTERFACE:return j(B);case Wo.TypeKind.UNION:return Q(B);case Wo.TypeKind.ENUM:return re(B);case Wo.TypeKind.INPUT_OBJECT:return se(B)}let he=(0,fs.inspect)(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${he}.`)}function I(B){return new ms.GraphQLScalarType({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function b(B){if(B.interfaces===null&&B.kind===Wo.TypeKind.INTERFACE)return[];if(!B.interfaces){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing interfaces: ${he}.`)}return B.interfaces.map(y)}function C(B){return new ms.GraphQLObjectType({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>pe(B)})}function j(B){return new ms.GraphQLInterfaceType({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>pe(B)})}function Q(B){if(!B.possibleTypes){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing possibleTypes: ${he}.`)}return new ms.GraphQLUnionType({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing enumValues: ${he}.`)}return new ms.GraphQLEnumType({name:B.name,description:B.description,values:(0,OE.keyValMap)(B.enumValues,he=>he.name,he=>({description:he.description,deprecationReason:he.deprecationReason}))})}function se(B){if(!B.inputFields){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing inputFields: ${he}.`)}return new ms.GraphQLInputObjectType({name:B.name,description:B.description,fields:()=>ke(B.inputFields),isOneOf:B.isOneOf})}function pe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${(0,fs.inspect)(B)}.`);return(0,OE.keyValMap)(B.fields,he=>he.name,ye)}function ye(B){let he=l(B.type);if(!(0,ms.isOutputType)(he)){let rt=(0,fs.inspect)(he);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=(0,fs.inspect)(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:he,args:ke(B.args)}}function ke(B){return(0,OE.keyValMap)(B,he=>he.name,ht)}function ht(B){let he=l(B.type);if(!(0,ms.isInputType)(he)){let Ct=(0,fs.inspect)(he);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?(0,Vre.valueFromAST)((0,Cre.parseValue)(B.defaultValue),he):void 0;return{description:B.description,type:he,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive args: ${he}.`)}if(!B.locations){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive locations: ${he}.`)}return new Ure.GraphQLDirective({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:ke(B.args)})}}});var UD=V(DE=>{"use strict";m();T();h();Object.defineProperty(DE,"__esModule",{value:!0});DE.extendSchema=Yre;DE.extendSchemaImpl=QB;var $re=Di(),qre=gn(),Kre=ci(),Gre=hc(),kh=CO(),Vs=en(),BB=Ol(),zn=tn(),xh=ji(),KB=xs(),GB=Qo(),VB=_l(),Qre=mp(),CD=pp(),jB=Oh();function Yre(e,t,n){(0,VB.assertSchema)(e),t!=null&&t.kind===Vs.Kind.DOCUMENT||(0,$re.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,Qre.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=QB(r,t,n);return r===i?e:new VB.GraphQLSchema(i)}function QB(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===Vs.Kind.SCHEMA_DEFINITION)p=U;else if(U.kind===Vs.Kind.SCHEMA_EXTENSION)y.push(U);else if((0,BB.isTypeDefinitionNode)(U))u.push(U);else if((0,BB.isTypeExtensionNode)(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===Vs.Kind.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=$B[ae])!==null&&I!==void 0?I:$n(U)}let b=k(k({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&rt([p])),rt(y));return K(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},b),{types:Object.values(N),directives:[...e.directives.map(Q),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return(0,zn.isListType)(U)?new zn.GraphQLList(C(U.ofType)):(0,zn.isNonNullType)(U)?new zn.GraphQLNonNull(C(U.ofType)):j(U)}function j(U){return N[U.name]}function Q(U){let ae=U.toConfig();return new xh.GraphQLDirective(K(k({},ae),{args:(0,kh.mapValue)(ae.args,he)}))}function re(U){if((0,KB.isIntrospectionType)(U)||(0,GB.isSpecifiedScalarType)(U))return U;if((0,zn.isScalarType)(U))return ye(U);if((0,zn.isObjectType)(U))return ke(U);if((0,zn.isInterfaceType)(U))return ht(U);if((0,zn.isUnionType)(U))return xt(U);if((0,zn.isEnumType)(U))return pe(U);if((0,zn.isInputObjectType)(U))return se(U);(0,Kre.invariant)(!1,"Unexpected type: "+(0,qre.inspect)(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new zn.GraphQLInputObjectType(K(k({},te),{fields:()=>k(k({},(0,kh.mapValue)(te.fields,je=>K(k({},je),{type:C(je.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function pe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new zn.GraphQLEnumType(K(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ye(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],je=te.specifiedByURL;for(let ee of ce){var G;je=(G=qB(ee))!==null&&G!==void 0?G:je}return new zn.GraphQLScalarType(K(k({},te),{specifiedByURL:je,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ke(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new zn.GraphQLObjectType(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},(0,kh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new zn.GraphQLInterfaceType(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},(0,kh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new zn.GraphQLUnionType(K(k({},te),{types:()=>[...U.getTypes().map(j),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return K(k({},U),{type:C(U.type),args:U.args&&(0,kh.mapValue)(U.args,he)})}function he(U){return K(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let je=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let G of je)ae[G.operation]=Ct(G.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=$B[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function sn(U){return U.kind===Vs.Kind.LIST_TYPE?new zn.GraphQLList(sn(U.type)):U.kind===Vs.Kind.NON_NULL_TYPE?new zn.GraphQLNonNull(sn(U.type)):Ct(U)}function wn(U){var ae;return new xh.GraphQLDirective({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={type:sn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:SE(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let je of ae){var ce;let G=sn(je.type);te[je.name.value]={type:G,description:(ce=je.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,jB.valueFromAST)(je.defaultValue,G),deprecationReason:SE(je),astNode:je}}return te}function mi(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;let Fe=sn(ee.type);ae[ee.name.value]={type:Fe,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,jB.valueFromAST)(ee.defaultValue,Fe),deprecationReason:SE(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.values)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:SE(ee),astNode:ee}}}return ae}function Pn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case Vs.Kind.OBJECT_TYPE_DEFINITION:{var je;let Qe=[U,...ce];return new zn.GraphQLObjectType({name:te,description:(je=U.description)===null||je===void 0?void 0:je.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.INTERFACE_TYPE_DEFINITION:{var G;let Qe=[U,...ce];return new zn.GraphQLInterfaceType({name:te,description:(G=U.description)===null||G===void 0?void 0:G.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.ENUM_TYPE_DEFINITION:{var ee;let Qe=[U,...ce];return new zn.GraphQLEnumType({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.UNION_TYPE_DEFINITION:{var Fe;let Qe=[U,...ce];return new zn.GraphQLUnionType({name:te,description:(Fe=U.description)===null||Fe===void 0?void 0:Fe.value,types:()=>on(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.SCALAR_TYPE_DEFINITION:{var He;return new zn.GraphQLScalarType({name:te,description:(He=U.description)===null||He===void 0?void 0:He.value,specifiedByURL:qB(U),astNode:U,extensionASTNodes:ce})}case Vs.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var jt;let Qe=[U,...ce];return new zn.GraphQLInputObjectType({name:te,description:(jt=U.description)===null||jt===void 0?void 0:jt.value,fields:()=>mi(Qe),astNode:U,extensionASTNodes:ce,isOneOf:Jre(U)})}}}}var $B=(0,Gre.keyMap)([...GB.specifiedScalarTypes,...KB.introspectionTypes],e=>e.name);function SE(e){let t=(0,CD.getDirectiveValues)(xh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function qB(e){let t=(0,CD.getDirectiveValues)(xh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function Jre(e){return!!(0,CD.getDirectiveValues)(xh.GraphQLOneOfDirective,e)}});var JB=V(AE=>{"use strict";m();T();h();Object.defineProperty(AE,"__esModule",{value:!0});AE.buildASTSchema=YB;AE.buildSchema=nie;var zre=Di(),Hre=en(),Wre=np(),Xre=ji(),Zre=_l(),eie=mp(),tie=UD();function YB(e,t){e!=null&&e.kind===Hre.Kind.DOCUMENT||(0,zre.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,eie.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,tie.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...Xre.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Zre.GraphQLSchema(K(k({},r),{directives:i}))}function nie(e,t){let n=(0,Wre.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return YB(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var WB=V(BD=>{"use strict";m();T();h();Object.defineProperty(BD,"__esModule",{value:!0});BD.lexicographicSortSchema=cie;var rie=gn(),iie=ci(),sie=th(),zB=nh(),Ai=tn(),oie=ji(),aie=xs(),uie=_l();function cie(e){let t=e.toConfig(),n=(0,sie.keyValMap)(MD(t.types),N=>N.name,y);return new uie.GraphQLSchema(K(k({},t),{types:Object.values(n),directives:MD(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return(0,Ai.isListType)(N)?new Ai.GraphQLList(r(N.ofType)):(0,Ai.isNonNullType)(N)?new Ai.GraphQLNonNull(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new oie.GraphQLDirective(K(k({},I),{locations:HB(I.locations,b=>b),args:u(I.args)}))}function u(N){return RE(N,I=>K(k({},I),{type:r(I.type)}))}function l(N){return RE(N,I=>K(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return RE(N,I=>K(k({},I),{type:r(I.type)}))}function p(N){return MD(N).map(i)}function y(N){if((0,Ai.isScalarType)(N)||(0,aie.isIntrospectionType)(N))return N;if((0,Ai.isObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLObjectType(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isInterfaceType)(N)){let I=N.toConfig();return new Ai.GraphQLInterfaceType(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isUnionType)(N)){let I=N.toConfig();return new Ai.GraphQLUnionType(K(k({},I),{types:()=>p(I.types)}))}if((0,Ai.isEnumType)(N)){let I=N.toConfig();return new Ai.GraphQLEnumType(K(k({},I),{values:RE(I.values,b=>b)}))}if((0,Ai.isInputObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLInputObjectType(K(k({},I),{fields:()=>d(I.fields)}))}(0,iie.invariant)(!1,"Unexpected type: "+(0,rie.inspect)(N))}}function RE(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(zB.naturalCompare))n[r]=t(e[r]);return n}function MD(e){return HB(e,t=>t.name)}function HB(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return(0,zB.naturalCompare)(i,s)})}});var iV=V(Ch=>{"use strict";m();T();h();Object.defineProperty(Ch,"__esModule",{value:!0});Ch.printIntrospectionSchema=Tie;Ch.printSchema=hie;Ch.printType=eV;var lie=gn(),die=ci(),pie=Ym(),jD=en(),wE=ps(),Tp=tn(),$D=ji(),XB=xs(),fie=Qo(),mie=hh();function hie(e){return ZB(e,t=>!(0,$D.isSpecifiedDirective)(t),yie)}function Tie(e){return ZB(e,$D.isSpecifiedDirective,XB.isIntrospectionType)}function yie(e){return!(0,fie.isSpecifiedScalarType)(e)&&!(0,XB.isIntrospectionType)(e)}function ZB(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Nie(e),...r.map(s=>Sie(s)),...i.map(s=>eV(s))].filter(Boolean).join(` + `}});var kB=V(LD=>{"use strict";m();T();h();Object.defineProperty(LD,"__esModule",{value:!0});LD.getOperationAST=Are;var Dre=en();function Are(e,t){let n=null;for(let i of e.definitions)if(i.kind===Dre.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 xB=V(PD=>{"use strict";m();T();h();Object.defineProperty(PD,"__esModule",{value:!0});PD.getOperationRootType=Rre;var bE=ut();function Rre(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new bE.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 bE.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new bE.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new bE.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var CB=V(kD=>{"use strict";m();T();h();Object.defineProperty(kD,"__esModule",{value:!0});kD.introspectionFromSchema=kre;var Fre=ci(),wre=np(),Lre=Fh(),Pre=wD();function kre(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,wre.parse)((0,Pre.getIntrospectionQuery)(n)),i=(0,Lre.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,Fre.invariant)(!1),i.data}});var MB=V(xD=>{"use strict";m();T();h();Object.defineProperty(xD,"__esModule",{value:!0});xD.buildClientSchema=jre;var xre=Di(),fs=gn(),UB=$o(),OE=th(),Cre=np(),ms=tn(),Ure=ji(),Wo=xs(),Mre=Qo(),Bre=_l(),Vre=Oh();function jre(e,t){(0,UB.isObjectLike)(e)&&(0,UB.isObjectLike)(e.__schema)||(0,xre.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,fs.inspect)(e)}.`);let n=e.__schema,r=(0,OE.keyValMap)(n.types,B=>B.name,B=>N(B));for(let B of[...Mre.specifiedScalarTypes,...Wo.introspectionTypes])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new Bre.GraphQLSchema({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===Wo.TypeKind.LIST){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");return new ms.GraphQLList(l(he))}if(B.kind===Wo.TypeKind.NON_NULL){let he=B.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");let rt=l(he);return new ms.GraphQLNonNull((0,ms.assertNullableType)(rt))}return d(B)}function d(B){let he=B.name;if(!he)throw new Error(`Unknown type reference: ${(0,fs.inspect)(B)}.`);let rt=r[he];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${he}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return(0,ms.assertObjectType)(d(B))}function y(B){return(0,ms.assertInterfaceType)(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case Wo.TypeKind.SCALAR:return I(B);case Wo.TypeKind.OBJECT:return C(B);case Wo.TypeKind.INTERFACE:return j(B);case Wo.TypeKind.UNION:return Q(B);case Wo.TypeKind.ENUM:return re(B);case Wo.TypeKind.INPUT_OBJECT:return se(B)}let he=(0,fs.inspect)(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${he}.`)}function I(B){return new ms.GraphQLScalarType({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function b(B){if(B.interfaces===null&&B.kind===Wo.TypeKind.INTERFACE)return[];if(!B.interfaces){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing interfaces: ${he}.`)}return B.interfaces.map(y)}function C(B){return new ms.GraphQLObjectType({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>fe(B)})}function j(B){return new ms.GraphQLInterfaceType({name:B.name,description:B.description,interfaces:()=>b(B),fields:()=>fe(B)})}function Q(B){if(!B.possibleTypes){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing possibleTypes: ${he}.`)}return new ms.GraphQLUnionType({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing enumValues: ${he}.`)}return new ms.GraphQLEnumType({name:B.name,description:B.description,values:(0,OE.keyValMap)(B.enumValues,he=>he.name,he=>({description:he.description,deprecationReason:he.deprecationReason}))})}function se(B){if(!B.inputFields){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing inputFields: ${he}.`)}return new ms.GraphQLInputObjectType({name:B.name,description:B.description,fields:()=>ke(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${(0,fs.inspect)(B)}.`);return(0,OE.keyValMap)(B.fields,he=>he.name,ye)}function ye(B){let he=l(B.type);if(!(0,ms.isOutputType)(he)){let rt=(0,fs.inspect)(he);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=(0,fs.inspect)(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:he,args:ke(B.args)}}function ke(B){return(0,OE.keyValMap)(B,he=>he.name,ht)}function ht(B){let he=l(B.type);if(!(0,ms.isInputType)(he)){let Ct=(0,fs.inspect)(he);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?(0,Vre.valueFromAST)((0,Cre.parseValue)(B.defaultValue),he):void 0;return{description:B.description,type:he,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive args: ${he}.`)}if(!B.locations){let he=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive locations: ${he}.`)}return new Ure.GraphQLDirective({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:ke(B.args)})}}});var UD=V(DE=>{"use strict";m();T();h();Object.defineProperty(DE,"__esModule",{value:!0});DE.extendSchema=Yre;DE.extendSchemaImpl=QB;var $re=Di(),qre=gn(),Kre=ci(),Gre=hc(),kh=CO(),Vs=en(),BB=Ol(),Hn=tn(),xh=ji(),KB=xs(),GB=Qo(),VB=_l(),Qre=mp(),CD=pp(),jB=Oh();function Yre(e,t,n){(0,VB.assertSchema)(e),t!=null&&t.kind===Vs.Kind.DOCUMENT||(0,$re.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,Qre.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=QB(r,t,n);return r===i?e:new VB.GraphQLSchema(i)}function QB(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===Vs.Kind.SCHEMA_DEFINITION)p=U;else if(U.kind===Vs.Kind.SCHEMA_EXTENSION)y.push(U);else if((0,BB.isTypeDefinitionNode)(U))u.push(U);else if((0,BB.isTypeExtensionNode)(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===Vs.Kind.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=$B[ae])!==null&&I!==void 0?I:qn(U)}let b=k(k({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&rt([p])),rt(y));return K(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},b),{types:Object.values(N),directives:[...e.directives.map(Q),...d.map(Fn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return(0,Hn.isListType)(U)?new Hn.GraphQLList(C(U.ofType)):(0,Hn.isNonNullType)(U)?new Hn.GraphQLNonNull(C(U.ofType)):j(U)}function j(U){return N[U.name]}function Q(U){let ae=U.toConfig();return new xh.GraphQLDirective(K(k({},ae),{args:(0,kh.mapValue)(ae.args,he)}))}function re(U){if((0,KB.isIntrospectionType)(U)||(0,GB.isSpecifiedScalarType)(U))return U;if((0,Hn.isScalarType)(U))return ye(U);if((0,Hn.isObjectType)(U))return ke(U);if((0,Hn.isInterfaceType)(U))return ht(U);if((0,Hn.isUnionType)(U))return xt(U);if((0,Hn.isEnumType)(U))return fe(U);if((0,Hn.isInputObjectType)(U))return se(U);(0,Kre.invariant)(!1,"Unexpected type: "+(0,qre.inspect)(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInputObjectType(K(k({},te),{fields:()=>k(k({},(0,kh.mapValue)(te.fields,je=>K(k({},je),{type:C(je.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLEnumType(K(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ye(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],je=te.specifiedByURL;for(let ee of ce){var G;je=(G=qB(ee))!==null&&G!==void 0?G:je}return new Hn.GraphQLScalarType(K(k({},te),{specifiedByURL:je,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ke(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLObjectType(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},(0,kh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInterfaceType(K(k({},te),{interfaces:()=>[...U.getInterfaces().map(j),...Pn(ce)],fields:()=>k(k({},(0,kh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLUnionType(K(k({},te),{types:()=>[...U.getTypes().map(j),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return K(k({},U),{type:C(U.type),args:U.args&&(0,kh.mapValue)(U.args,he)})}function he(U){return K(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let je=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let G of je)ae[G.operation]=Ct(G.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=$B[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function sn(U){return U.kind===Vs.Kind.LIST_TYPE?new Hn.GraphQLList(sn(U.type)):U.kind===Vs.Kind.NON_NULL_TYPE?new Hn.GraphQLNonNull(sn(U.type)):Ct(U)}function Fn(U){var ae;return new xh.GraphQLDirective({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={type:sn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:SE(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let je of ae){var ce;let G=sn(je.type);te[je.name.value]={type:G,description:(ce=je.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,jB.valueFromAST)(je.defaultValue,G),deprecationReason:SE(je),astNode:je}}return te}function mi(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.fields)!==null&&te!==void 0?te:[];for(let ee of G){var ce;let we=sn(ee.type);ae[ee.name.value]={type:we,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,jB.valueFromAST)(ee.defaultValue,we),deprecationReason:SE(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let je of U){var te;let G=(te=je.values)!==null&&te!==void 0?te:[];for(let ee of G){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:SE(ee),astNode:ee}}}return ae}function Pn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function qn(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case Vs.Kind.OBJECT_TYPE_DEFINITION:{var je;let Qe=[U,...ce];return new Hn.GraphQLObjectType({name:te,description:(je=U.description)===null||je===void 0?void 0:je.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.INTERFACE_TYPE_DEFINITION:{var G;let Qe=[U,...ce];return new Hn.GraphQLInterfaceType({name:te,description:(G=U.description)===null||G===void 0?void 0:G.value,interfaces:()=>Pn(Qe),fields:()=>vn(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.ENUM_TYPE_DEFINITION:{var ee;let Qe=[U,...ce];return new Hn.GraphQLEnumType({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.UNION_TYPE_DEFINITION:{var we;let Qe=[U,...ce];return new Hn.GraphQLUnionType({name:te,description:(we=U.description)===null||we===void 0?void 0:we.value,types:()=>on(Qe),astNode:U,extensionASTNodes:ce})}case Vs.Kind.SCALAR_TYPE_DEFINITION:{var He;return new Hn.GraphQLScalarType({name:te,description:(He=U.description)===null||He===void 0?void 0:He.value,specifiedByURL:qB(U),astNode:U,extensionASTNodes:ce})}case Vs.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var jt;let Qe=[U,...ce];return new Hn.GraphQLInputObjectType({name:te,description:(jt=U.description)===null||jt===void 0?void 0:jt.value,fields:()=>mi(Qe),astNode:U,extensionASTNodes:ce,isOneOf:Jre(U)})}}}}var $B=(0,Gre.keyMap)([...GB.specifiedScalarTypes,...KB.introspectionTypes],e=>e.name);function SE(e){let t=(0,CD.getDirectiveValues)(xh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function qB(e){let t=(0,CD.getDirectiveValues)(xh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function Jre(e){return!!(0,CD.getDirectiveValues)(xh.GraphQLOneOfDirective,e)}});var JB=V(AE=>{"use strict";m();T();h();Object.defineProperty(AE,"__esModule",{value:!0});AE.buildASTSchema=YB;AE.buildSchema=nie;var zre=Di(),Hre=en(),Wre=np(),Xre=ji(),Zre=_l(),eie=mp(),tie=UD();function YB(e,t){e!=null&&e.kind===Hre.Kind.DOCUMENT||(0,zre.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,eie.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,tie.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...Xre.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Zre.GraphQLSchema(K(k({},r),{directives:i}))}function nie(e,t){let n=(0,Wre.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return YB(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var WB=V(BD=>{"use strict";m();T();h();Object.defineProperty(BD,"__esModule",{value:!0});BD.lexicographicSortSchema=cie;var rie=gn(),iie=ci(),sie=th(),zB=nh(),Ai=tn(),oie=ji(),aie=xs(),uie=_l();function cie(e){let t=e.toConfig(),n=(0,sie.keyValMap)(MD(t.types),N=>N.name,y);return new uie.GraphQLSchema(K(k({},t),{types:Object.values(n),directives:MD(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return(0,Ai.isListType)(N)?new Ai.GraphQLList(r(N.ofType)):(0,Ai.isNonNullType)(N)?new Ai.GraphQLNonNull(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new oie.GraphQLDirective(K(k({},I),{locations:HB(I.locations,b=>b),args:u(I.args)}))}function u(N){return RE(N,I=>K(k({},I),{type:r(I.type)}))}function l(N){return RE(N,I=>K(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return RE(N,I=>K(k({},I),{type:r(I.type)}))}function p(N){return MD(N).map(i)}function y(N){if((0,Ai.isScalarType)(N)||(0,aie.isIntrospectionType)(N))return N;if((0,Ai.isObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLObjectType(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isInterfaceType)(N)){let I=N.toConfig();return new Ai.GraphQLInterfaceType(K(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isUnionType)(N)){let I=N.toConfig();return new Ai.GraphQLUnionType(K(k({},I),{types:()=>p(I.types)}))}if((0,Ai.isEnumType)(N)){let I=N.toConfig();return new Ai.GraphQLEnumType(K(k({},I),{values:RE(I.values,b=>b)}))}if((0,Ai.isInputObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLInputObjectType(K(k({},I),{fields:()=>d(I.fields)}))}(0,iie.invariant)(!1,"Unexpected type: "+(0,rie.inspect)(N))}}function RE(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(zB.naturalCompare))n[r]=t(e[r]);return n}function MD(e){return HB(e,t=>t.name)}function HB(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return(0,zB.naturalCompare)(i,s)})}});var iV=V(Ch=>{"use strict";m();T();h();Object.defineProperty(Ch,"__esModule",{value:!0});Ch.printIntrospectionSchema=Tie;Ch.printSchema=hie;Ch.printType=eV;var lie=gn(),die=ci(),pie=Ym(),jD=en(),FE=ps(),Tp=tn(),$D=ji(),XB=xs(),fie=Qo(),mie=hh();function hie(e){return ZB(e,t=>!(0,$D.isSpecifiedDirective)(t),yie)}function Tie(e){return ZB(e,$D.isSpecifiedDirective,XB.isIntrospectionType)}function yie(e){return!(0,fie.isSpecifiedScalarType)(e)&&!(0,XB.isIntrospectionType)(e)}function ZB(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Nie(e),...r.map(s=>Sie(s)),...i.map(s=>eV(s))].filter(Boolean).join(` `)}function Nie(e){if(e.description==null&&Eie(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}`),js(e)+`schema { ${t.join(` @@ -559,10 +559,10 @@ ${t.join(` }`:""}function rV(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(VD).join(", ")+")":`( `+e.map((n,r)=>js(n," "+t,!r)+" "+t+VD(n)).join(` `)+` -`+t+")"}function VD(e){let t=(0,mie.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,wE.print)(t)}`),n+KD(e.deprecationReason)}function Sie(e){return js(e)+"directive @"+e.name+rV(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function KD(e){return e==null?"":e!==$D.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,wE.print)({kind:jD.Kind.STRING,value:e})})`:" @deprecated"}function Die(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,wE.print)({kind:jD.Kind.STRING,value:e.specifiedByURL})})`}function js(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,wE.print)({kind:jD.Kind.STRING,value:r,block:(0,pie.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function VD(e){let t=(0,mie.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,FE.print)(t)}`),n+KD(e.deprecationReason)}function Sie(e){return js(e)+"directive @"+e.name+rV(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function KD(e){return e==null?"":e!==$D.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,FE.print)({kind:jD.Kind.STRING,value:e})})`:" @deprecated"}function Die(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,FE.print)({kind:jD.Kind.STRING,value:e.specifiedByURL})})`}function js(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,FE.print)({kind:jD.Kind.STRING,value:r,block:(0,pie.isPrintableAsBlockString)(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var sV=V(GD=>{"use strict";m();T();h();Object.defineProperty(GD,"__esModule",{value:!0});GD.concatAST=Rie;var Aie=en();function Rie(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:Aie.Kind.DOCUMENT,definitions:t}}});var uV=V(QD=>{"use strict";m();T();h();Object.defineProperty(QD,"__esModule",{value:!0});QD.separateOperations=Fie;var FE=en(),wie=yl();function Fie(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case FE.Kind.OPERATION_DEFINITION:t.push(i);break;case FE.Kind.FRAGMENT_DEFINITION:n[i.name.value]=oV(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of oV(i.selectionSet))aV(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:FE.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===FE.Kind.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function aV(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)aV(e,t,i)}}function oV(e){let t=[];return(0,wie.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var dV=V(JD=>{"use strict";m();T();h();Object.defineProperty(JD,"__esModule",{value:!0});JD.stripIgnoredCharacters=Pie;var Lie=Ym(),cV=vN(),lV=SN(),YD=zm();function Pie(e){let t=(0,lV.isSource)(e)?e:new lV.Source(e),n=t.body,r=new cV.Lexer(t),i="",s=!1;for(;r.advance().kind!==YD.TokenKind.EOF;){let o=r.token,u=o.kind,l=!(0,cV.isPunctuatorTokenKind)(o.kind);s&&(l||o.kind===YD.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===YD.TokenKind.BLOCK_STRING?i+=(0,Lie.printBlockString)(o.value,{minimize:!0}):i+=d,s=l}return i}});var fV=V(LE=>{"use strict";m();T();h();Object.defineProperty(LE,"__esModule",{value:!0});LE.assertValidName=Uie;LE.isValidNameError=pV;var kie=Di(),xie=at(),Cie=rh();function Uie(e){let t=pV(e);if(t)throw t;return e}function pV(e){if(typeof e=="string"||(0,kie.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new xie.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,Cie.assertName)(e)}catch(t){return t}}});var IV=V(Xo=>{"use strict";m();T();h();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DangerousChangeType=Xo.BreakingChangeType=void 0;Xo.findBreakingChanges=qie;Xo.findDangerousChanges=Kie;var Mie=gn(),EV=ci(),mV=hc(),Bie=ps(),ln=tn(),Vie=Qo(),jie=hh(),$ie=WS(),cr;Xo.BreakingChangeType=cr;(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"})(cr||(Xo.BreakingChangeType=cr={}));var Eo;Xo.DangerousChangeType=Eo;(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"})(Eo||(Xo.DangerousChangeType=Eo={}));function qie(e,t){return gV(e,t).filter(n=>n.type in cr)}function Kie(e,t){return gV(e,t).filter(n=>n.type in Eo)}function gV(e,t){return[...Qie(e,t),...Gie(e,t)]}function Gie(e,t){let n=[],r=qa(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:cr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=qa(i.args,s.args);for(let u of o.added)(0,ln.isRequiredArgument)(u)&&n.push({type:cr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:cr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:cr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:cr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function Qie(e,t){let n=[],r=qa(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:cr.TYPE_REMOVED,description:(0,Vie.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)(0,ln.isEnumType)(i)&&(0,ln.isEnumType)(s)?n.push(...zie(i,s)):(0,ln.isUnionType)(i)&&(0,ln.isUnionType)(s)?n.push(...Jie(i,s)):(0,ln.isInputObjectType)(i)&&(0,ln.isInputObjectType)(s)?n.push(...Yie(i,s)):(0,ln.isObjectType)(i)&&(0,ln.isObjectType)(s)?n.push(...TV(i,s),...hV(i,s)):(0,ln.isInterfaceType)(i)&&(0,ln.isInterfaceType)(s)?n.push(...TV(i,s),...hV(i,s)):i.constructor!==s.constructor&&n.push({type:cr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${yV(i)} to ${yV(s)}.`});return n}function Yie(e,t){let n=[],r=qa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,ln.isRequiredInputField)(i)?n.push({type:cr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Eo.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:cr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)Mh(i.type,s.type)||n.push({type:cr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Jie(e,t){let n=[],r=qa(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Eo.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:cr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function zie(e,t){let n=[],r=qa(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Eo.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:cr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function hV(e,t){let n=[],r=qa(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Eo.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:cr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function TV(e,t){let n=[],r=qa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:cr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...Hie(e,i,s)),Uh(i.type,s.type)||n.push({type:cr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Hie(e,t,n){let r=[],i=qa(t.args,n.args);for(let s of i.removed)r.push({type:cr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!Mh(s.type,o.type))r.push({type:cr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:Eo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=NV(s.defaultValue,s.type),d=NV(o.defaultValue,o.type);l!==d&&r.push({type:Eo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)(0,ln.isRequiredArgument)(s)?r.push({type:cr.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:Eo.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Uh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&Uh(e.ofType,t.ofType)||(0,ln.isNonNullType)(t)&&Uh(e,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&Uh(e.ofType,t.ofType):(0,ln.isNamedType)(t)&&e.name===t.name||(0,ln.isNonNullType)(t)&&Uh(e,t.ofType)}function Mh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&Mh(e.ofType,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&Mh(e.ofType,t.ofType)||!(0,ln.isNonNullType)(t)&&Mh(e.ofType,t):(0,ln.isNamedType)(t)&&e.name===t.name}function yV(e){if((0,ln.isScalarType)(e))return"a Scalar type";if((0,ln.isObjectType)(e))return"an Object type";if((0,ln.isInterfaceType)(e))return"an Interface type";if((0,ln.isUnionType)(e))return"a Union type";if((0,ln.isEnumType)(e))return"an Enum type";if((0,ln.isInputObjectType)(e))return"an Input type";(0,EV.invariant)(!1,"Unexpected type: "+(0,Mie.inspect)(e))}function NV(e,t){let n=(0,jie.astFromValue)(e,t);return n!=null||(0,EV.invariant)(!1),(0,Bie.print)((0,$ie.sortValueNode)(n))}function qa(e,t){let n=[],r=[],i=[],s=(0,mV.keyMap)(e,({name:u})=>u),o=(0,mV.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}});var OV=V(un=>{"use strict";m();T();h();Object.defineProperty(un,"__esModule",{value:!0});Object.defineProperty(un,"BreakingChangeType",{enumerable:!0,get:function(){return PE.BreakingChangeType}});Object.defineProperty(un,"DangerousChangeType",{enumerable:!0,get:function(){return PE.DangerousChangeType}});Object.defineProperty(un,"TypeInfo",{enumerable:!0,get:function(){return _V.TypeInfo}});Object.defineProperty(un,"assertValidName",{enumerable:!0,get:function(){return bV.assertValidName}});Object.defineProperty(un,"astFromValue",{enumerable:!0,get:function(){return ase.astFromValue}});Object.defineProperty(un,"buildASTSchema",{enumerable:!0,get:function(){return vV.buildASTSchema}});Object.defineProperty(un,"buildClientSchema",{enumerable:!0,get:function(){return tse.buildClientSchema}});Object.defineProperty(un,"buildSchema",{enumerable:!0,get:function(){return vV.buildSchema}});Object.defineProperty(un,"coerceInputValue",{enumerable:!0,get:function(){return use.coerceInputValue}});Object.defineProperty(un,"concatAST",{enumerable:!0,get:function(){return cse.concatAST}});Object.defineProperty(un,"doTypesOverlap",{enumerable:!0,get:function(){return HD.doTypesOverlap}});Object.defineProperty(un,"extendSchema",{enumerable:!0,get:function(){return nse.extendSchema}});Object.defineProperty(un,"findBreakingChanges",{enumerable:!0,get:function(){return PE.findBreakingChanges}});Object.defineProperty(un,"findDangerousChanges",{enumerable:!0,get:function(){return PE.findDangerousChanges}});Object.defineProperty(un,"getIntrospectionQuery",{enumerable:!0,get:function(){return Wie.getIntrospectionQuery}});Object.defineProperty(un,"getOperationAST",{enumerable:!0,get:function(){return Xie.getOperationAST}});Object.defineProperty(un,"getOperationRootType",{enumerable:!0,get:function(){return Zie.getOperationRootType}});Object.defineProperty(un,"introspectionFromSchema",{enumerable:!0,get:function(){return ese.introspectionFromSchema}});Object.defineProperty(un,"isEqualType",{enumerable:!0,get:function(){return HD.isEqualType}});Object.defineProperty(un,"isTypeSubTypeOf",{enumerable:!0,get:function(){return HD.isTypeSubTypeOf}});Object.defineProperty(un,"isValidNameError",{enumerable:!0,get:function(){return bV.isValidNameError}});Object.defineProperty(un,"lexicographicSortSchema",{enumerable:!0,get:function(){return rse.lexicographicSortSchema}});Object.defineProperty(un,"printIntrospectionSchema",{enumerable:!0,get:function(){return zD.printIntrospectionSchema}});Object.defineProperty(un,"printSchema",{enumerable:!0,get:function(){return zD.printSchema}});Object.defineProperty(un,"printType",{enumerable:!0,get:function(){return zD.printType}});Object.defineProperty(un,"separateOperations",{enumerable:!0,get:function(){return lse.separateOperations}});Object.defineProperty(un,"stripIgnoredCharacters",{enumerable:!0,get:function(){return dse.stripIgnoredCharacters}});Object.defineProperty(un,"typeFromAST",{enumerable:!0,get:function(){return ise.typeFromAST}});Object.defineProperty(un,"valueFromAST",{enumerable:!0,get:function(){return sse.valueFromAST}});Object.defineProperty(un,"valueFromASTUntyped",{enumerable:!0,get:function(){return ose.valueFromASTUntyped}});Object.defineProperty(un,"visitWithTypeInfo",{enumerable:!0,get:function(){return _V.visitWithTypeInfo}});var Wie=FD(),Xie=kB(),Zie=xB(),ese=CB(),tse=MB(),vV=JB(),nse=UD(),rse=WB(),zD=iV(),ise=Yo(),sse=Oh(),ose=YO(),ase=hh(),_V=eE(),use=y0(),cse=sV(),lse=uV(),dse=dV(),HD=uh(),bV=fV(),PE=IV()});var AV=V($=>{"use strict";m();T();h();Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return hn.BREAK}});Object.defineProperty($,"BreakingChangeType",{enumerable:!0,get:function(){return Tn.BreakingChangeType}});Object.defineProperty($,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return be.DEFAULT_DEPRECATION_REASON}});Object.defineProperty($,"DangerousChangeType",{enumerable:!0,get:function(){return Tn.DangerousChangeType}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return hn.DirectiveLocation}});Object.defineProperty($,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return kt.ExecutableDefinitionsRule}});Object.defineProperty($,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kt.FieldsOnCorrectTypeRule}});Object.defineProperty($,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return kt.FragmentsOnCompositeTypesRule}});Object.defineProperty($,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return be.GRAPHQL_MAX_INT}});Object.defineProperty($,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return be.GRAPHQL_MIN_INT}});Object.defineProperty($,"GraphQLBoolean",{enumerable:!0,get:function(){return be.GraphQLBoolean}});Object.defineProperty($,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return be.GraphQLDeprecatedDirective}});Object.defineProperty($,"GraphQLDirective",{enumerable:!0,get:function(){return be.GraphQLDirective}});Object.defineProperty($,"GraphQLEnumType",{enumerable:!0,get:function(){return be.GraphQLEnumType}});Object.defineProperty($,"GraphQLError",{enumerable:!0,get:function(){return Bh.GraphQLError}});Object.defineProperty($,"GraphQLFloat",{enumerable:!0,get:function(){return be.GraphQLFloat}});Object.defineProperty($,"GraphQLID",{enumerable:!0,get:function(){return be.GraphQLID}});Object.defineProperty($,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return be.GraphQLIncludeDirective}});Object.defineProperty($,"GraphQLInputObjectType",{enumerable:!0,get:function(){return be.GraphQLInputObjectType}});Object.defineProperty($,"GraphQLInt",{enumerable:!0,get:function(){return be.GraphQLInt}});Object.defineProperty($,"GraphQLInterfaceType",{enumerable:!0,get:function(){return be.GraphQLInterfaceType}});Object.defineProperty($,"GraphQLList",{enumerable:!0,get:function(){return be.GraphQLList}});Object.defineProperty($,"GraphQLNonNull",{enumerable:!0,get:function(){return be.GraphQLNonNull}});Object.defineProperty($,"GraphQLObjectType",{enumerable:!0,get:function(){return be.GraphQLObjectType}});Object.defineProperty($,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return be.GraphQLOneOfDirective}});Object.defineProperty($,"GraphQLScalarType",{enumerable:!0,get:function(){return be.GraphQLScalarType}});Object.defineProperty($,"GraphQLSchema",{enumerable:!0,get:function(){return be.GraphQLSchema}});Object.defineProperty($,"GraphQLSkipDirective",{enumerable:!0,get:function(){return be.GraphQLSkipDirective}});Object.defineProperty($,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return be.GraphQLSpecifiedByDirective}});Object.defineProperty($,"GraphQLString",{enumerable:!0,get:function(){return be.GraphQLString}});Object.defineProperty($,"GraphQLUnionType",{enumerable:!0,get:function(){return be.GraphQLUnionType}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return hn.Kind}});Object.defineProperty($,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return kt.KnownArgumentNamesRule}});Object.defineProperty($,"KnownDirectivesRule",{enumerable:!0,get:function(){return kt.KnownDirectivesRule}});Object.defineProperty($,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return kt.KnownFragmentNamesRule}});Object.defineProperty($,"KnownTypeNamesRule",{enumerable:!0,get:function(){return kt.KnownTypeNamesRule}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return hn.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return hn.Location}});Object.defineProperty($,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return kt.LoneAnonymousOperationRule}});Object.defineProperty($,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return kt.LoneSchemaDefinitionRule}});Object.defineProperty($,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return kt.MaxIntrospectionDepthRule}});Object.defineProperty($,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return kt.NoDeprecatedCustomRule}});Object.defineProperty($,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return kt.NoFragmentCyclesRule}});Object.defineProperty($,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return kt.NoSchemaIntrospectionCustomRule}});Object.defineProperty($,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return kt.NoUndefinedVariablesRule}});Object.defineProperty($,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return kt.NoUnusedFragmentsRule}});Object.defineProperty($,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return kt.NoUnusedVariablesRule}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return hn.OperationTypeNode}});Object.defineProperty($,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return kt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty($,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return kt.PossibleFragmentSpreadsRule}});Object.defineProperty($,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return kt.PossibleTypeExtensionsRule}});Object.defineProperty($,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return kt.ProvidedRequiredArgumentsRule}});Object.defineProperty($,"ScalarLeafsRule",{enumerable:!0,get:function(){return kt.ScalarLeafsRule}});Object.defineProperty($,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return be.SchemaMetaFieldDef}});Object.defineProperty($,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return kt.SingleFieldSubscriptionsRule}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return hn.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return hn.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return hn.TokenKind}});Object.defineProperty($,"TypeInfo",{enumerable:!0,get:function(){return Tn.TypeInfo}});Object.defineProperty($,"TypeKind",{enumerable:!0,get:function(){return be.TypeKind}});Object.defineProperty($,"TypeMetaFieldDef",{enumerable:!0,get:function(){return be.TypeMetaFieldDef}});Object.defineProperty($,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return be.TypeNameMetaFieldDef}});Object.defineProperty($,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty($,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentNamesRule}});Object.defineProperty($,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return kt.UniqueDirectiveNamesRule}});Object.defineProperty($,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return kt.UniqueDirectivesPerLocationRule}});Object.defineProperty($,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return kt.UniqueEnumValueNamesRule}});Object.defineProperty($,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueFieldDefinitionNamesRule}});Object.defineProperty($,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return kt.UniqueFragmentNamesRule}});Object.defineProperty($,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return kt.UniqueInputFieldNamesRule}});Object.defineProperty($,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return kt.UniqueOperationNamesRule}});Object.defineProperty($,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kt.UniqueOperationTypesRule}});Object.defineProperty($,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return kt.UniqueTypeNamesRule}});Object.defineProperty($,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return kt.UniqueVariableNamesRule}});Object.defineProperty($,"ValidationContext",{enumerable:!0,get:function(){return kt.ValidationContext}});Object.defineProperty($,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return kt.ValuesOfCorrectTypeRule}});Object.defineProperty($,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return kt.VariablesAreInputTypesRule}});Object.defineProperty($,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return kt.VariablesInAllowedPositionRule}});Object.defineProperty($,"__Directive",{enumerable:!0,get:function(){return be.__Directive}});Object.defineProperty($,"__DirectiveLocation",{enumerable:!0,get:function(){return be.__DirectiveLocation}});Object.defineProperty($,"__EnumValue",{enumerable:!0,get:function(){return be.__EnumValue}});Object.defineProperty($,"__Field",{enumerable:!0,get:function(){return be.__Field}});Object.defineProperty($,"__InputValue",{enumerable:!0,get:function(){return be.__InputValue}});Object.defineProperty($,"__Schema",{enumerable:!0,get:function(){return be.__Schema}});Object.defineProperty($,"__Type",{enumerable:!0,get:function(){return be.__Type}});Object.defineProperty($,"__TypeKind",{enumerable:!0,get:function(){return be.__TypeKind}});Object.defineProperty($,"assertAbstractType",{enumerable:!0,get:function(){return be.assertAbstractType}});Object.defineProperty($,"assertCompositeType",{enumerable:!0,get:function(){return be.assertCompositeType}});Object.defineProperty($,"assertDirective",{enumerable:!0,get:function(){return be.assertDirective}});Object.defineProperty($,"assertEnumType",{enumerable:!0,get:function(){return be.assertEnumType}});Object.defineProperty($,"assertEnumValueName",{enumerable:!0,get:function(){return be.assertEnumValueName}});Object.defineProperty($,"assertInputObjectType",{enumerable:!0,get:function(){return be.assertInputObjectType}});Object.defineProperty($,"assertInputType",{enumerable:!0,get:function(){return be.assertInputType}});Object.defineProperty($,"assertInterfaceType",{enumerable:!0,get:function(){return be.assertInterfaceType}});Object.defineProperty($,"assertLeafType",{enumerable:!0,get:function(){return be.assertLeafType}});Object.defineProperty($,"assertListType",{enumerable:!0,get:function(){return be.assertListType}});Object.defineProperty($,"assertName",{enumerable:!0,get:function(){return be.assertName}});Object.defineProperty($,"assertNamedType",{enumerable:!0,get:function(){return be.assertNamedType}});Object.defineProperty($,"assertNonNullType",{enumerable:!0,get:function(){return be.assertNonNullType}});Object.defineProperty($,"assertNullableType",{enumerable:!0,get:function(){return be.assertNullableType}});Object.defineProperty($,"assertObjectType",{enumerable:!0,get:function(){return be.assertObjectType}});Object.defineProperty($,"assertOutputType",{enumerable:!0,get:function(){return be.assertOutputType}});Object.defineProperty($,"assertScalarType",{enumerable:!0,get:function(){return be.assertScalarType}});Object.defineProperty($,"assertSchema",{enumerable:!0,get:function(){return be.assertSchema}});Object.defineProperty($,"assertType",{enumerable:!0,get:function(){return be.assertType}});Object.defineProperty($,"assertUnionType",{enumerable:!0,get:function(){return be.assertUnionType}});Object.defineProperty($,"assertValidName",{enumerable:!0,get:function(){return Tn.assertValidName}});Object.defineProperty($,"assertValidSchema",{enumerable:!0,get:function(){return be.assertValidSchema}});Object.defineProperty($,"assertWrappingType",{enumerable:!0,get:function(){return be.assertWrappingType}});Object.defineProperty($,"astFromValue",{enumerable:!0,get:function(){return Tn.astFromValue}});Object.defineProperty($,"buildASTSchema",{enumerable:!0,get:function(){return Tn.buildASTSchema}});Object.defineProperty($,"buildClientSchema",{enumerable:!0,get:function(){return Tn.buildClientSchema}});Object.defineProperty($,"buildSchema",{enumerable:!0,get:function(){return Tn.buildSchema}});Object.defineProperty($,"coerceInputValue",{enumerable:!0,get:function(){return Tn.coerceInputValue}});Object.defineProperty($,"concatAST",{enumerable:!0,get:function(){return Tn.concatAST}});Object.defineProperty($,"createSourceEventStream",{enumerable:!0,get:function(){return Zo.createSourceEventStream}});Object.defineProperty($,"defaultFieldResolver",{enumerable:!0,get:function(){return Zo.defaultFieldResolver}});Object.defineProperty($,"defaultTypeResolver",{enumerable:!0,get:function(){return Zo.defaultTypeResolver}});Object.defineProperty($,"doTypesOverlap",{enumerable:!0,get:function(){return Tn.doTypesOverlap}});Object.defineProperty($,"execute",{enumerable:!0,get:function(){return Zo.execute}});Object.defineProperty($,"executeSync",{enumerable:!0,get:function(){return Zo.executeSync}});Object.defineProperty($,"extendSchema",{enumerable:!0,get:function(){return Tn.extendSchema}});Object.defineProperty($,"findBreakingChanges",{enumerable:!0,get:function(){return Tn.findBreakingChanges}});Object.defineProperty($,"findDangerousChanges",{enumerable:!0,get:function(){return Tn.findDangerousChanges}});Object.defineProperty($,"formatError",{enumerable:!0,get:function(){return Bh.formatError}});Object.defineProperty($,"getArgumentValues",{enumerable:!0,get:function(){return Zo.getArgumentValues}});Object.defineProperty($,"getDirectiveValues",{enumerable:!0,get:function(){return Zo.getDirectiveValues}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return hn.getEnterLeaveForKind}});Object.defineProperty($,"getIntrospectionQuery",{enumerable:!0,get:function(){return Tn.getIntrospectionQuery}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return hn.getLocation}});Object.defineProperty($,"getNamedType",{enumerable:!0,get:function(){return be.getNamedType}});Object.defineProperty($,"getNullableType",{enumerable:!0,get:function(){return be.getNullableType}});Object.defineProperty($,"getOperationAST",{enumerable:!0,get:function(){return Tn.getOperationAST}});Object.defineProperty($,"getOperationRootType",{enumerable:!0,get:function(){return Tn.getOperationRootType}});Object.defineProperty($,"getVariableValues",{enumerable:!0,get:function(){return Zo.getVariableValues}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return hn.getVisitFn}});Object.defineProperty($,"graphql",{enumerable:!0,get:function(){return DV.graphql}});Object.defineProperty($,"graphqlSync",{enumerable:!0,get:function(){return DV.graphqlSync}});Object.defineProperty($,"introspectionFromSchema",{enumerable:!0,get:function(){return Tn.introspectionFromSchema}});Object.defineProperty($,"introspectionTypes",{enumerable:!0,get:function(){return be.introspectionTypes}});Object.defineProperty($,"isAbstractType",{enumerable:!0,get:function(){return be.isAbstractType}});Object.defineProperty($,"isCompositeType",{enumerable:!0,get:function(){return be.isCompositeType}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return hn.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return hn.isDefinitionNode}});Object.defineProperty($,"isDirective",{enumerable:!0,get:function(){return be.isDirective}});Object.defineProperty($,"isEnumType",{enumerable:!0,get:function(){return be.isEnumType}});Object.defineProperty($,"isEqualType",{enumerable:!0,get:function(){return Tn.isEqualType}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return hn.isExecutableDefinitionNode}});Object.defineProperty($,"isInputObjectType",{enumerable:!0,get:function(){return be.isInputObjectType}});Object.defineProperty($,"isInputType",{enumerable:!0,get:function(){return be.isInputType}});Object.defineProperty($,"isInterfaceType",{enumerable:!0,get:function(){return be.isInterfaceType}});Object.defineProperty($,"isIntrospectionType",{enumerable:!0,get:function(){return be.isIntrospectionType}});Object.defineProperty($,"isLeafType",{enumerable:!0,get:function(){return be.isLeafType}});Object.defineProperty($,"isListType",{enumerable:!0,get:function(){return be.isListType}});Object.defineProperty($,"isNamedType",{enumerable:!0,get:function(){return be.isNamedType}});Object.defineProperty($,"isNonNullType",{enumerable:!0,get:function(){return be.isNonNullType}});Object.defineProperty($,"isNullableType",{enumerable:!0,get:function(){return be.isNullableType}});Object.defineProperty($,"isObjectType",{enumerable:!0,get:function(){return be.isObjectType}});Object.defineProperty($,"isOutputType",{enumerable:!0,get:function(){return be.isOutputType}});Object.defineProperty($,"isRequiredArgument",{enumerable:!0,get:function(){return be.isRequiredArgument}});Object.defineProperty($,"isRequiredInputField",{enumerable:!0,get:function(){return be.isRequiredInputField}});Object.defineProperty($,"isScalarType",{enumerable:!0,get:function(){return be.isScalarType}});Object.defineProperty($,"isSchema",{enumerable:!0,get:function(){return be.isSchema}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return hn.isSelectionNode}});Object.defineProperty($,"isSpecifiedDirective",{enumerable:!0,get:function(){return be.isSpecifiedDirective}});Object.defineProperty($,"isSpecifiedScalarType",{enumerable:!0,get:function(){return be.isSpecifiedScalarType}});Object.defineProperty($,"isType",{enumerable:!0,get:function(){return be.isType}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return hn.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return hn.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return hn.isTypeNode}});Object.defineProperty($,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Tn.isTypeSubTypeOf}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return hn.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return hn.isTypeSystemExtensionNode}});Object.defineProperty($,"isUnionType",{enumerable:!0,get:function(){return be.isUnionType}});Object.defineProperty($,"isValidNameError",{enumerable:!0,get:function(){return Tn.isValidNameError}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return hn.isValueNode}});Object.defineProperty($,"isWrappingType",{enumerable:!0,get:function(){return be.isWrappingType}});Object.defineProperty($,"lexicographicSortSchema",{enumerable:!0,get:function(){return Tn.lexicographicSortSchema}});Object.defineProperty($,"locatedError",{enumerable:!0,get:function(){return Bh.locatedError}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return hn.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return hn.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return hn.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return hn.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return hn.print}});Object.defineProperty($,"printError",{enumerable:!0,get:function(){return Bh.printError}});Object.defineProperty($,"printIntrospectionSchema",{enumerable:!0,get:function(){return Tn.printIntrospectionSchema}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return hn.printLocation}});Object.defineProperty($,"printSchema",{enumerable:!0,get:function(){return Tn.printSchema}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return hn.printSourceLocation}});Object.defineProperty($,"printType",{enumerable:!0,get:function(){return Tn.printType}});Object.defineProperty($,"recommendedRules",{enumerable:!0,get:function(){return kt.recommendedRules}});Object.defineProperty($,"resolveObjMapThunk",{enumerable:!0,get:function(){return be.resolveObjMapThunk}});Object.defineProperty($,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return be.resolveReadonlyArrayThunk}});Object.defineProperty($,"responsePathAsArray",{enumerable:!0,get:function(){return Zo.responsePathAsArray}});Object.defineProperty($,"separateOperations",{enumerable:!0,get:function(){return Tn.separateOperations}});Object.defineProperty($,"specifiedDirectives",{enumerable:!0,get:function(){return be.specifiedDirectives}});Object.defineProperty($,"specifiedRules",{enumerable:!0,get:function(){return kt.specifiedRules}});Object.defineProperty($,"specifiedScalarTypes",{enumerable:!0,get:function(){return be.specifiedScalarTypes}});Object.defineProperty($,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Tn.stripIgnoredCharacters}});Object.defineProperty($,"subscribe",{enumerable:!0,get:function(){return Zo.subscribe}});Object.defineProperty($,"syntaxError",{enumerable:!0,get:function(){return Bh.syntaxError}});Object.defineProperty($,"typeFromAST",{enumerable:!0,get:function(){return Tn.typeFromAST}});Object.defineProperty($,"validate",{enumerable:!0,get:function(){return kt.validate}});Object.defineProperty($,"validateSchema",{enumerable:!0,get:function(){return be.validateSchema}});Object.defineProperty($,"valueFromAST",{enumerable:!0,get:function(){return Tn.valueFromAST}});Object.defineProperty($,"valueFromASTUntyped",{enumerable:!0,get:function(){return Tn.valueFromASTUntyped}});Object.defineProperty($,"version",{enumerable:!0,get:function(){return SV.version}});Object.defineProperty($,"versionInfo",{enumerable:!0,get:function(){return SV.versionInfo}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return hn.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return hn.visitInParallel}});Object.defineProperty($,"visitWithTypeInfo",{enumerable:!0,get:function(){return Tn.visitWithTypeInfo}});var SV=IC(),DV=hB(),be=NB(),hn=gB(),Zo=AB(),kt=LB(),Bh=PB(),Tn=OV()});var _c=V(ut=>{"use strict";m();T();h();Object.defineProperty(ut,"__esModule",{value:!0});ut.baseDirectives=ut.INHERITABLE_DIRECTIVE_NAMES=ut.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=ut.SCOPE_SCALAR_DEFINITION=ut.FIELD_SET_SCALAR_DEFINITION=ut.VERSION_TWO_DIRECTIVE_DEFINITIONS=ut.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=ut.BASE_DIRECTIVE_DEFINITIONS=ut.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=ut.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=ut.SUBSCRIPTION_FILTER_VALUE_DEFINITION=ut.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=ut.SUBSCRIPTION_FILTER_DEFINITION=ut.REQUIRES_SCOPES_DEFINITION=ut.INACCESSIBLE_DEFINITION=ut.AUTHENTICATED_DEFINITION=ut.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=ut.TAG_DEFINITION=ut.DEPRECATED_DEFINITION=ut.BASE_SCALARS=void 0;var ge=(we(),xe(Me)),me=Vi(),W=bi();ut.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",W.FIELD_SET_SCALAR,W.SCOPE_SCALAR,W.STRING_SCALAR]);ut.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.REASON),type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR),defaultValue:{kind:ge.Kind.STRING,value:ge.DEFAULT_DEPRECATION_REASON}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.ARGUMENT_DEFINITION_UPPER,W.ENUM_VALUE_UPPER,W.FIELD_DEFINITION_UPPER,W.INPUT_FIELD_DEFINITION_UPPER]),name:(0,me.stringToNameNode)(W.DEPRECATED),repeatable:!1};var RV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.INTERFACE_UPPER,W.OBJECT_UPPER]),name:(0,me.stringToNameNode)(W.EXTENDS),repeatable:!1},wV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.FIELD_DEFINITION_UPPER,W.OBJECT_UPPER]),name:(0,me.stringToNameNode)(W.EXTERNAL),repeatable:!1},FV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.TOPIC),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:W.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.EDFS_KAFKA_PUBLISH),repeatable:!1},LV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.TOPICS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:W.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.EDFS_KAFKA_PUBLISH),repeatable:!1},PV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:W.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.EDFS_NATS_PUBLISH),repeatable:!1},kV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:W.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.EDFS_NATS_REQUEST),repeatable:!1},xV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBJECTS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:W.DEFAULT_EDFS_PROVIDER_ID}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)("streamConfiguration"),type:(0,me.stringToNamedTypeNode)(W.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.EDFS_NATS_SUBSCRIBE),repeatable:!1},CV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.FIELD_SET_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.RESOLVABLE),type:(0,me.stringToNamedTypeNode)(W.BOOLEAN_SCALAR),defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.INTERFACE_UPPER,W.OBJECT_UPPER]),name:(0,me.stringToNameNode)(W.KEY),repeatable:!0},UV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.PROVIDES),repeatable:!1},MV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,me.stringToNameNode)(W.FIELD_DEFINITION_UPPER)],name:(0,me.stringToNameNode)(W.REQUIRES),repeatable:!1},BV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.SCALAR_UPPER]),name:(0,me.stringToNameNode)(W.SPECIFIED_BY),repeatable:!1};ut.TAG_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.ARGUMENT_DEFINITION_UPPER,W.ENUM_UPPER,W.ENUM_VALUE_UPPER,W.FIELD_DEFINITION_UPPER,W.INPUT_FIELD_DEFINITION_UPPER,W.INPUT_OBJECT_UPPER,W.INTERFACE_UPPER,W.OBJECT_UPPER,W.SCALAR_UPPER,W.UNION_UPPER]),name:(0,me.stringToNameNode)(W.TAG),repeatable:!0};ut.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[W.DEPRECATED,ut.DEPRECATED_DEFINITION],[W.EXTENDS,RV],[W.EXTERNAL,wV],[W.EDFS_KAFKA_PUBLISH,FV],[W.EDFS_KAFKA_SUBSCRIBE,LV],[W.EDFS_NATS_PUBLISH,PV],[W.EDFS_NATS_REQUEST,kV],[W.EDFS_NATS_SUBSCRIBE,xV],[W.KEY,CV],[W.PROVIDES,UV],[W.REQUIRES,MV],[W.SPECIFIED_BY,BV],[W.TAG,ut.TAG_DEFINITION]]);ut.AUTHENTICATED_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.ENUM_UPPER,W.FIELD_DEFINITION_UPPER,W.INTERFACE_UPPER,W.OBJECT_UPPER,W.SCALAR_UPPER]),name:(0,me.stringToNameNode)(W.AUTHENTICATED),repeatable:!1};var VV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.SCHEMA_UPPER]),name:(0,me.stringToNameNode)(W.COMPOSE_DIRECTIVE),repeatable:!0};ut.INACCESSIBLE_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.ARGUMENT_DEFINITION_UPPER,W.ENUM_UPPER,W.ENUM_VALUE_UPPER,W.FIELD_DEFINITION_UPPER,W.INPUT_FIELD_DEFINITION_UPPER,W.INPUT_OBJECT_UPPER,W.INTERFACE_UPPER,W.OBJECT_UPPER,W.SCALAR_UPPER,W.UNION_UPPER]),name:(0,me.stringToNameNode)(W.INACCESSIBLE),repeatable:!1};var jV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.OBJECT_UPPER]),name:(0,me.stringToNameNode)(W.INTERFACE_OBJECT),repeatable:!1},$V={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)("as"),type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)("for"),type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)("import"),type:{kind:ge.Kind.LIST_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.SCHEMA_UPPER]),name:(0,me.stringToNameNode)(W.LINK),repeatable:!0},qV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.FROM),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.FIELD_DEFINITION_UPPER]),name:(0,me.stringToNameNode)(W.OVERRIDE),repeatable:!1};ut.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.SCOPES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.SCOPE_SCALAR)}}}}}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.ENUM_UPPER,W.FIELD_DEFINITION_UPPER,W.INTERFACE_UPPER,W.OBJECT_UPPER,W.SCALAR_UPPER]),name:(0,me.stringToNameNode)(W.REQUIRES_SCOPES),repeatable:!1};var KV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.FIELD_DEFINITION_UPPER,W.OBJECT_UPPER]),name:(0,me.stringToNameNode)(W.SHAREABLE),repeatable:!1};ut.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.CONDITION),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,me.stringArrayToNameNodeArray)([W.FIELD_DEFINITION_UPPER]),name:(0,me.stringToNameNode)(W.SUBSCRIPTION_FILTER),repeatable:!1};ut.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.AND_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.IN_UPPER),type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FIELD_CONDITION)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.OR_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.NOT_UPPER),type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FILTER_CONDITION)}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBSCRIPTION_FILTER_CONDITION)};ut.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBSCRIPTION_FILTER_VALUE)};ut.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.FIELD_PATH),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.VALUES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:(0,me.stringToNamedTypeNode)(W.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.SUBSCRIPTION_FIELD_CONDITION)};ut.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[W.AUTHENTICATED,ut.AUTHENTICATED_DEFINITION],[W.COMPOSE_DIRECTIVE,VV],[W.INACCESSIBLE,ut.INACCESSIBLE_DEFINITION],[W.INTERFACE_OBJECT,jV],[W.LINK,$V],[W.OVERRIDE,qV],[W.REQUIRES_SCOPES,ut.REQUIRES_SCOPES_DEFINITION],[W.SHAREABLE,KV]]);ut.BASE_DIRECTIVE_DEFINITIONS=[ut.DEPRECATED_DEFINITION,RV,wV,CV,UV,MV,BV,ut.TAG_DEFINITION];ut.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[W.EDFS_KAFKA_PUBLISH,FV],[W.EDFS_KAFKA_SUBSCRIBE,LV],[W.EDFS_NATS_PUBLISH,PV],[W.EDFS_NATS_REQUEST,kV],[W.EDFS_NATS_SUBSCRIBE,xV]]);ut.VERSION_TWO_DIRECTIVE_DEFINITIONS=[ut.AUTHENTICATED_DEFINITION,VV,ut.INACCESSIBLE_DEFINITION,jV,$V,qV,ut.REQUIRES_SCOPES_DEFINITION,KV];ut.FIELD_SET_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.FIELD_SET_SCALAR)};ut.SCOPE_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.SCOPE_SCALAR)};ut.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,me.stringToNameNode)(W.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.CONSUMER_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,me.stringToNameNode)(W.STREAM_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,me.stringToNamedTypeNode)(W.STRING_SCALAR)}}]};ut.INHERITABLE_DIRECTIVE_NAMES=[W.EXTERNAL,W.SHAREABLE];ut.baseDirectives=` +`}});var sV=V(GD=>{"use strict";m();T();h();Object.defineProperty(GD,"__esModule",{value:!0});GD.concatAST=Rie;var Aie=en();function Rie(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:Aie.Kind.DOCUMENT,definitions:t}}});var uV=V(QD=>{"use strict";m();T();h();Object.defineProperty(QD,"__esModule",{value:!0});QD.separateOperations=wie;var wE=en(),Fie=yl();function wie(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case wE.Kind.OPERATION_DEFINITION:t.push(i);break;case wE.Kind.FRAGMENT_DEFINITION:n[i.name.value]=oV(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of oV(i.selectionSet))aV(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:wE.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===wE.Kind.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function aV(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)aV(e,t,i)}}function oV(e){let t=[];return(0,Fie.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var dV=V(JD=>{"use strict";m();T();h();Object.defineProperty(JD,"__esModule",{value:!0});JD.stripIgnoredCharacters=Pie;var Lie=Ym(),cV=vN(),lV=SN(),YD=zm();function Pie(e){let t=(0,lV.isSource)(e)?e:new lV.Source(e),n=t.body,r=new cV.Lexer(t),i="",s=!1;for(;r.advance().kind!==YD.TokenKind.EOF;){let o=r.token,u=o.kind,l=!(0,cV.isPunctuatorTokenKind)(o.kind);s&&(l||o.kind===YD.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===YD.TokenKind.BLOCK_STRING?i+=(0,Lie.printBlockString)(o.value,{minimize:!0}):i+=d,s=l}return i}});var fV=V(LE=>{"use strict";m();T();h();Object.defineProperty(LE,"__esModule",{value:!0});LE.assertValidName=Uie;LE.isValidNameError=pV;var kie=Di(),xie=ut(),Cie=rh();function Uie(e){let t=pV(e);if(t)throw t;return e}function pV(e){if(typeof e=="string"||(0,kie.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new xie.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,Cie.assertName)(e)}catch(t){return t}}});var IV=V(Xo=>{"use strict";m();T();h();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.DangerousChangeType=Xo.BreakingChangeType=void 0;Xo.findBreakingChanges=qie;Xo.findDangerousChanges=Kie;var Mie=gn(),EV=ci(),mV=hc(),Bie=ps(),ln=tn(),Vie=Qo(),jie=hh(),$ie=WS(),lr;Xo.BreakingChangeType=lr;(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"})(lr||(Xo.BreakingChangeType=lr={}));var Eo;Xo.DangerousChangeType=Eo;(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"})(Eo||(Xo.DangerousChangeType=Eo={}));function qie(e,t){return gV(e,t).filter(n=>n.type in lr)}function Kie(e,t){return gV(e,t).filter(n=>n.type in Eo)}function gV(e,t){return[...Qie(e,t),...Gie(e,t)]}function Gie(e,t){let n=[],r=qa(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:lr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=qa(i.args,s.args);for(let u of o.added)(0,ln.isRequiredArgument)(u)&&n.push({type:lr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:lr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:lr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:lr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function Qie(e,t){let n=[],r=qa(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:lr.TYPE_REMOVED,description:(0,Vie.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)(0,ln.isEnumType)(i)&&(0,ln.isEnumType)(s)?n.push(...zie(i,s)):(0,ln.isUnionType)(i)&&(0,ln.isUnionType)(s)?n.push(...Jie(i,s)):(0,ln.isInputObjectType)(i)&&(0,ln.isInputObjectType)(s)?n.push(...Yie(i,s)):(0,ln.isObjectType)(i)&&(0,ln.isObjectType)(s)?n.push(...TV(i,s),...hV(i,s)):(0,ln.isInterfaceType)(i)&&(0,ln.isInterfaceType)(s)?n.push(...TV(i,s),...hV(i,s)):i.constructor!==s.constructor&&n.push({type:lr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${yV(i)} to ${yV(s)}.`});return n}function Yie(e,t){let n=[],r=qa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,ln.isRequiredInputField)(i)?n.push({type:lr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Eo.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:lr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)Mh(i.type,s.type)||n.push({type:lr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Jie(e,t){let n=[],r=qa(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Eo.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:lr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function zie(e,t){let n=[],r=qa(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Eo.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:lr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function hV(e,t){let n=[],r=qa(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Eo.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:lr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function TV(e,t){let n=[],r=qa(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:lr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...Hie(e,i,s)),Uh(i.type,s.type)||n.push({type:lr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Hie(e,t,n){let r=[],i=qa(t.args,n.args);for(let s of i.removed)r.push({type:lr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!Mh(s.type,o.type))r.push({type:lr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:Eo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=NV(s.defaultValue,s.type),d=NV(o.defaultValue,o.type);l!==d&&r.push({type:Eo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)(0,ln.isRequiredArgument)(s)?r.push({type:lr.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:Eo.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Uh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&Uh(e.ofType,t.ofType)||(0,ln.isNonNullType)(t)&&Uh(e,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&Uh(e.ofType,t.ofType):(0,ln.isNamedType)(t)&&e.name===t.name||(0,ln.isNonNullType)(t)&&Uh(e,t.ofType)}function Mh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&Mh(e.ofType,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&Mh(e.ofType,t.ofType)||!(0,ln.isNonNullType)(t)&&Mh(e.ofType,t):(0,ln.isNamedType)(t)&&e.name===t.name}function yV(e){if((0,ln.isScalarType)(e))return"a Scalar type";if((0,ln.isObjectType)(e))return"an Object type";if((0,ln.isInterfaceType)(e))return"an Interface type";if((0,ln.isUnionType)(e))return"a Union type";if((0,ln.isEnumType)(e))return"an Enum type";if((0,ln.isInputObjectType)(e))return"an Input type";(0,EV.invariant)(!1,"Unexpected type: "+(0,Mie.inspect)(e))}function NV(e,t){let n=(0,jie.astFromValue)(e,t);return n!=null||(0,EV.invariant)(!1),(0,Bie.print)((0,$ie.sortValueNode)(n))}function qa(e,t){let n=[],r=[],i=[],s=(0,mV.keyMap)(e,({name:u})=>u),o=(0,mV.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}});var OV=V(un=>{"use strict";m();T();h();Object.defineProperty(un,"__esModule",{value:!0});Object.defineProperty(un,"BreakingChangeType",{enumerable:!0,get:function(){return PE.BreakingChangeType}});Object.defineProperty(un,"DangerousChangeType",{enumerable:!0,get:function(){return PE.DangerousChangeType}});Object.defineProperty(un,"TypeInfo",{enumerable:!0,get:function(){return _V.TypeInfo}});Object.defineProperty(un,"assertValidName",{enumerable:!0,get:function(){return bV.assertValidName}});Object.defineProperty(un,"astFromValue",{enumerable:!0,get:function(){return ase.astFromValue}});Object.defineProperty(un,"buildASTSchema",{enumerable:!0,get:function(){return vV.buildASTSchema}});Object.defineProperty(un,"buildClientSchema",{enumerable:!0,get:function(){return tse.buildClientSchema}});Object.defineProperty(un,"buildSchema",{enumerable:!0,get:function(){return vV.buildSchema}});Object.defineProperty(un,"coerceInputValue",{enumerable:!0,get:function(){return use.coerceInputValue}});Object.defineProperty(un,"concatAST",{enumerable:!0,get:function(){return cse.concatAST}});Object.defineProperty(un,"doTypesOverlap",{enumerable:!0,get:function(){return HD.doTypesOverlap}});Object.defineProperty(un,"extendSchema",{enumerable:!0,get:function(){return nse.extendSchema}});Object.defineProperty(un,"findBreakingChanges",{enumerable:!0,get:function(){return PE.findBreakingChanges}});Object.defineProperty(un,"findDangerousChanges",{enumerable:!0,get:function(){return PE.findDangerousChanges}});Object.defineProperty(un,"getIntrospectionQuery",{enumerable:!0,get:function(){return Wie.getIntrospectionQuery}});Object.defineProperty(un,"getOperationAST",{enumerable:!0,get:function(){return Xie.getOperationAST}});Object.defineProperty(un,"getOperationRootType",{enumerable:!0,get:function(){return Zie.getOperationRootType}});Object.defineProperty(un,"introspectionFromSchema",{enumerable:!0,get:function(){return ese.introspectionFromSchema}});Object.defineProperty(un,"isEqualType",{enumerable:!0,get:function(){return HD.isEqualType}});Object.defineProperty(un,"isTypeSubTypeOf",{enumerable:!0,get:function(){return HD.isTypeSubTypeOf}});Object.defineProperty(un,"isValidNameError",{enumerable:!0,get:function(){return bV.isValidNameError}});Object.defineProperty(un,"lexicographicSortSchema",{enumerable:!0,get:function(){return rse.lexicographicSortSchema}});Object.defineProperty(un,"printIntrospectionSchema",{enumerable:!0,get:function(){return zD.printIntrospectionSchema}});Object.defineProperty(un,"printSchema",{enumerable:!0,get:function(){return zD.printSchema}});Object.defineProperty(un,"printType",{enumerable:!0,get:function(){return zD.printType}});Object.defineProperty(un,"separateOperations",{enumerable:!0,get:function(){return lse.separateOperations}});Object.defineProperty(un,"stripIgnoredCharacters",{enumerable:!0,get:function(){return dse.stripIgnoredCharacters}});Object.defineProperty(un,"typeFromAST",{enumerable:!0,get:function(){return ise.typeFromAST}});Object.defineProperty(un,"valueFromAST",{enumerable:!0,get:function(){return sse.valueFromAST}});Object.defineProperty(un,"valueFromASTUntyped",{enumerable:!0,get:function(){return ose.valueFromASTUntyped}});Object.defineProperty(un,"visitWithTypeInfo",{enumerable:!0,get:function(){return _V.visitWithTypeInfo}});var Wie=wD(),Xie=kB(),Zie=xB(),ese=CB(),tse=MB(),vV=JB(),nse=UD(),rse=WB(),zD=iV(),ise=Yo(),sse=Oh(),ose=YO(),ase=hh(),_V=eE(),use=y0(),cse=sV(),lse=uV(),dse=dV(),HD=uh(),bV=fV(),PE=IV()});var AV=V($=>{"use strict";m();T();h();Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return hn.BREAK}});Object.defineProperty($,"BreakingChangeType",{enumerable:!0,get:function(){return Tn.BreakingChangeType}});Object.defineProperty($,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return be.DEFAULT_DEPRECATION_REASON}});Object.defineProperty($,"DangerousChangeType",{enumerable:!0,get:function(){return Tn.DangerousChangeType}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return hn.DirectiveLocation}});Object.defineProperty($,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return kt.ExecutableDefinitionsRule}});Object.defineProperty($,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kt.FieldsOnCorrectTypeRule}});Object.defineProperty($,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return kt.FragmentsOnCompositeTypesRule}});Object.defineProperty($,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return be.GRAPHQL_MAX_INT}});Object.defineProperty($,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return be.GRAPHQL_MIN_INT}});Object.defineProperty($,"GraphQLBoolean",{enumerable:!0,get:function(){return be.GraphQLBoolean}});Object.defineProperty($,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return be.GraphQLDeprecatedDirective}});Object.defineProperty($,"GraphQLDirective",{enumerable:!0,get:function(){return be.GraphQLDirective}});Object.defineProperty($,"GraphQLEnumType",{enumerable:!0,get:function(){return be.GraphQLEnumType}});Object.defineProperty($,"GraphQLError",{enumerable:!0,get:function(){return Bh.GraphQLError}});Object.defineProperty($,"GraphQLFloat",{enumerable:!0,get:function(){return be.GraphQLFloat}});Object.defineProperty($,"GraphQLID",{enumerable:!0,get:function(){return be.GraphQLID}});Object.defineProperty($,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return be.GraphQLIncludeDirective}});Object.defineProperty($,"GraphQLInputObjectType",{enumerable:!0,get:function(){return be.GraphQLInputObjectType}});Object.defineProperty($,"GraphQLInt",{enumerable:!0,get:function(){return be.GraphQLInt}});Object.defineProperty($,"GraphQLInterfaceType",{enumerable:!0,get:function(){return be.GraphQLInterfaceType}});Object.defineProperty($,"GraphQLList",{enumerable:!0,get:function(){return be.GraphQLList}});Object.defineProperty($,"GraphQLNonNull",{enumerable:!0,get:function(){return be.GraphQLNonNull}});Object.defineProperty($,"GraphQLObjectType",{enumerable:!0,get:function(){return be.GraphQLObjectType}});Object.defineProperty($,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return be.GraphQLOneOfDirective}});Object.defineProperty($,"GraphQLScalarType",{enumerable:!0,get:function(){return be.GraphQLScalarType}});Object.defineProperty($,"GraphQLSchema",{enumerable:!0,get:function(){return be.GraphQLSchema}});Object.defineProperty($,"GraphQLSkipDirective",{enumerable:!0,get:function(){return be.GraphQLSkipDirective}});Object.defineProperty($,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return be.GraphQLSpecifiedByDirective}});Object.defineProperty($,"GraphQLString",{enumerable:!0,get:function(){return be.GraphQLString}});Object.defineProperty($,"GraphQLUnionType",{enumerable:!0,get:function(){return be.GraphQLUnionType}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return hn.Kind}});Object.defineProperty($,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return kt.KnownArgumentNamesRule}});Object.defineProperty($,"KnownDirectivesRule",{enumerable:!0,get:function(){return kt.KnownDirectivesRule}});Object.defineProperty($,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return kt.KnownFragmentNamesRule}});Object.defineProperty($,"KnownTypeNamesRule",{enumerable:!0,get:function(){return kt.KnownTypeNamesRule}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return hn.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return hn.Location}});Object.defineProperty($,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return kt.LoneAnonymousOperationRule}});Object.defineProperty($,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return kt.LoneSchemaDefinitionRule}});Object.defineProperty($,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return kt.MaxIntrospectionDepthRule}});Object.defineProperty($,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return kt.NoDeprecatedCustomRule}});Object.defineProperty($,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return kt.NoFragmentCyclesRule}});Object.defineProperty($,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return kt.NoSchemaIntrospectionCustomRule}});Object.defineProperty($,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return kt.NoUndefinedVariablesRule}});Object.defineProperty($,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return kt.NoUnusedFragmentsRule}});Object.defineProperty($,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return kt.NoUnusedVariablesRule}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return hn.OperationTypeNode}});Object.defineProperty($,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return kt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty($,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return kt.PossibleFragmentSpreadsRule}});Object.defineProperty($,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return kt.PossibleTypeExtensionsRule}});Object.defineProperty($,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return kt.ProvidedRequiredArgumentsRule}});Object.defineProperty($,"ScalarLeafsRule",{enumerable:!0,get:function(){return kt.ScalarLeafsRule}});Object.defineProperty($,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return be.SchemaMetaFieldDef}});Object.defineProperty($,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return kt.SingleFieldSubscriptionsRule}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return hn.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return hn.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return hn.TokenKind}});Object.defineProperty($,"TypeInfo",{enumerable:!0,get:function(){return Tn.TypeInfo}});Object.defineProperty($,"TypeKind",{enumerable:!0,get:function(){return be.TypeKind}});Object.defineProperty($,"TypeMetaFieldDef",{enumerable:!0,get:function(){return be.TypeMetaFieldDef}});Object.defineProperty($,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return be.TypeNameMetaFieldDef}});Object.defineProperty($,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty($,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentNamesRule}});Object.defineProperty($,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return kt.UniqueDirectiveNamesRule}});Object.defineProperty($,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return kt.UniqueDirectivesPerLocationRule}});Object.defineProperty($,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return kt.UniqueEnumValueNamesRule}});Object.defineProperty($,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueFieldDefinitionNamesRule}});Object.defineProperty($,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return kt.UniqueFragmentNamesRule}});Object.defineProperty($,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return kt.UniqueInputFieldNamesRule}});Object.defineProperty($,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return kt.UniqueOperationNamesRule}});Object.defineProperty($,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kt.UniqueOperationTypesRule}});Object.defineProperty($,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return kt.UniqueTypeNamesRule}});Object.defineProperty($,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return kt.UniqueVariableNamesRule}});Object.defineProperty($,"ValidationContext",{enumerable:!0,get:function(){return kt.ValidationContext}});Object.defineProperty($,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return kt.ValuesOfCorrectTypeRule}});Object.defineProperty($,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return kt.VariablesAreInputTypesRule}});Object.defineProperty($,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return kt.VariablesInAllowedPositionRule}});Object.defineProperty($,"__Directive",{enumerable:!0,get:function(){return be.__Directive}});Object.defineProperty($,"__DirectiveLocation",{enumerable:!0,get:function(){return be.__DirectiveLocation}});Object.defineProperty($,"__EnumValue",{enumerable:!0,get:function(){return be.__EnumValue}});Object.defineProperty($,"__Field",{enumerable:!0,get:function(){return be.__Field}});Object.defineProperty($,"__InputValue",{enumerable:!0,get:function(){return be.__InputValue}});Object.defineProperty($,"__Schema",{enumerable:!0,get:function(){return be.__Schema}});Object.defineProperty($,"__Type",{enumerable:!0,get:function(){return be.__Type}});Object.defineProperty($,"__TypeKind",{enumerable:!0,get:function(){return be.__TypeKind}});Object.defineProperty($,"assertAbstractType",{enumerable:!0,get:function(){return be.assertAbstractType}});Object.defineProperty($,"assertCompositeType",{enumerable:!0,get:function(){return be.assertCompositeType}});Object.defineProperty($,"assertDirective",{enumerable:!0,get:function(){return be.assertDirective}});Object.defineProperty($,"assertEnumType",{enumerable:!0,get:function(){return be.assertEnumType}});Object.defineProperty($,"assertEnumValueName",{enumerable:!0,get:function(){return be.assertEnumValueName}});Object.defineProperty($,"assertInputObjectType",{enumerable:!0,get:function(){return be.assertInputObjectType}});Object.defineProperty($,"assertInputType",{enumerable:!0,get:function(){return be.assertInputType}});Object.defineProperty($,"assertInterfaceType",{enumerable:!0,get:function(){return be.assertInterfaceType}});Object.defineProperty($,"assertLeafType",{enumerable:!0,get:function(){return be.assertLeafType}});Object.defineProperty($,"assertListType",{enumerable:!0,get:function(){return be.assertListType}});Object.defineProperty($,"assertName",{enumerable:!0,get:function(){return be.assertName}});Object.defineProperty($,"assertNamedType",{enumerable:!0,get:function(){return be.assertNamedType}});Object.defineProperty($,"assertNonNullType",{enumerable:!0,get:function(){return be.assertNonNullType}});Object.defineProperty($,"assertNullableType",{enumerable:!0,get:function(){return be.assertNullableType}});Object.defineProperty($,"assertObjectType",{enumerable:!0,get:function(){return be.assertObjectType}});Object.defineProperty($,"assertOutputType",{enumerable:!0,get:function(){return be.assertOutputType}});Object.defineProperty($,"assertScalarType",{enumerable:!0,get:function(){return be.assertScalarType}});Object.defineProperty($,"assertSchema",{enumerable:!0,get:function(){return be.assertSchema}});Object.defineProperty($,"assertType",{enumerable:!0,get:function(){return be.assertType}});Object.defineProperty($,"assertUnionType",{enumerable:!0,get:function(){return be.assertUnionType}});Object.defineProperty($,"assertValidName",{enumerable:!0,get:function(){return Tn.assertValidName}});Object.defineProperty($,"assertValidSchema",{enumerable:!0,get:function(){return be.assertValidSchema}});Object.defineProperty($,"assertWrappingType",{enumerable:!0,get:function(){return be.assertWrappingType}});Object.defineProperty($,"astFromValue",{enumerable:!0,get:function(){return Tn.astFromValue}});Object.defineProperty($,"buildASTSchema",{enumerable:!0,get:function(){return Tn.buildASTSchema}});Object.defineProperty($,"buildClientSchema",{enumerable:!0,get:function(){return Tn.buildClientSchema}});Object.defineProperty($,"buildSchema",{enumerable:!0,get:function(){return Tn.buildSchema}});Object.defineProperty($,"coerceInputValue",{enumerable:!0,get:function(){return Tn.coerceInputValue}});Object.defineProperty($,"concatAST",{enumerable:!0,get:function(){return Tn.concatAST}});Object.defineProperty($,"createSourceEventStream",{enumerable:!0,get:function(){return Zo.createSourceEventStream}});Object.defineProperty($,"defaultFieldResolver",{enumerable:!0,get:function(){return Zo.defaultFieldResolver}});Object.defineProperty($,"defaultTypeResolver",{enumerable:!0,get:function(){return Zo.defaultTypeResolver}});Object.defineProperty($,"doTypesOverlap",{enumerable:!0,get:function(){return Tn.doTypesOverlap}});Object.defineProperty($,"execute",{enumerable:!0,get:function(){return Zo.execute}});Object.defineProperty($,"executeSync",{enumerable:!0,get:function(){return Zo.executeSync}});Object.defineProperty($,"extendSchema",{enumerable:!0,get:function(){return Tn.extendSchema}});Object.defineProperty($,"findBreakingChanges",{enumerable:!0,get:function(){return Tn.findBreakingChanges}});Object.defineProperty($,"findDangerousChanges",{enumerable:!0,get:function(){return Tn.findDangerousChanges}});Object.defineProperty($,"formatError",{enumerable:!0,get:function(){return Bh.formatError}});Object.defineProperty($,"getArgumentValues",{enumerable:!0,get:function(){return Zo.getArgumentValues}});Object.defineProperty($,"getDirectiveValues",{enumerable:!0,get:function(){return Zo.getDirectiveValues}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return hn.getEnterLeaveForKind}});Object.defineProperty($,"getIntrospectionQuery",{enumerable:!0,get:function(){return Tn.getIntrospectionQuery}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return hn.getLocation}});Object.defineProperty($,"getNamedType",{enumerable:!0,get:function(){return be.getNamedType}});Object.defineProperty($,"getNullableType",{enumerable:!0,get:function(){return be.getNullableType}});Object.defineProperty($,"getOperationAST",{enumerable:!0,get:function(){return Tn.getOperationAST}});Object.defineProperty($,"getOperationRootType",{enumerable:!0,get:function(){return Tn.getOperationRootType}});Object.defineProperty($,"getVariableValues",{enumerable:!0,get:function(){return Zo.getVariableValues}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return hn.getVisitFn}});Object.defineProperty($,"graphql",{enumerable:!0,get:function(){return DV.graphql}});Object.defineProperty($,"graphqlSync",{enumerable:!0,get:function(){return DV.graphqlSync}});Object.defineProperty($,"introspectionFromSchema",{enumerable:!0,get:function(){return Tn.introspectionFromSchema}});Object.defineProperty($,"introspectionTypes",{enumerable:!0,get:function(){return be.introspectionTypes}});Object.defineProperty($,"isAbstractType",{enumerable:!0,get:function(){return be.isAbstractType}});Object.defineProperty($,"isCompositeType",{enumerable:!0,get:function(){return be.isCompositeType}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return hn.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return hn.isDefinitionNode}});Object.defineProperty($,"isDirective",{enumerable:!0,get:function(){return be.isDirective}});Object.defineProperty($,"isEnumType",{enumerable:!0,get:function(){return be.isEnumType}});Object.defineProperty($,"isEqualType",{enumerable:!0,get:function(){return Tn.isEqualType}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return hn.isExecutableDefinitionNode}});Object.defineProperty($,"isInputObjectType",{enumerable:!0,get:function(){return be.isInputObjectType}});Object.defineProperty($,"isInputType",{enumerable:!0,get:function(){return be.isInputType}});Object.defineProperty($,"isInterfaceType",{enumerable:!0,get:function(){return be.isInterfaceType}});Object.defineProperty($,"isIntrospectionType",{enumerable:!0,get:function(){return be.isIntrospectionType}});Object.defineProperty($,"isLeafType",{enumerable:!0,get:function(){return be.isLeafType}});Object.defineProperty($,"isListType",{enumerable:!0,get:function(){return be.isListType}});Object.defineProperty($,"isNamedType",{enumerable:!0,get:function(){return be.isNamedType}});Object.defineProperty($,"isNonNullType",{enumerable:!0,get:function(){return be.isNonNullType}});Object.defineProperty($,"isNullableType",{enumerable:!0,get:function(){return be.isNullableType}});Object.defineProperty($,"isObjectType",{enumerable:!0,get:function(){return be.isObjectType}});Object.defineProperty($,"isOutputType",{enumerable:!0,get:function(){return be.isOutputType}});Object.defineProperty($,"isRequiredArgument",{enumerable:!0,get:function(){return be.isRequiredArgument}});Object.defineProperty($,"isRequiredInputField",{enumerable:!0,get:function(){return be.isRequiredInputField}});Object.defineProperty($,"isScalarType",{enumerable:!0,get:function(){return be.isScalarType}});Object.defineProperty($,"isSchema",{enumerable:!0,get:function(){return be.isSchema}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return hn.isSelectionNode}});Object.defineProperty($,"isSpecifiedDirective",{enumerable:!0,get:function(){return be.isSpecifiedDirective}});Object.defineProperty($,"isSpecifiedScalarType",{enumerable:!0,get:function(){return be.isSpecifiedScalarType}});Object.defineProperty($,"isType",{enumerable:!0,get:function(){return be.isType}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return hn.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return hn.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return hn.isTypeNode}});Object.defineProperty($,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Tn.isTypeSubTypeOf}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return hn.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return hn.isTypeSystemExtensionNode}});Object.defineProperty($,"isUnionType",{enumerable:!0,get:function(){return be.isUnionType}});Object.defineProperty($,"isValidNameError",{enumerable:!0,get:function(){return Tn.isValidNameError}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return hn.isValueNode}});Object.defineProperty($,"isWrappingType",{enumerable:!0,get:function(){return be.isWrappingType}});Object.defineProperty($,"lexicographicSortSchema",{enumerable:!0,get:function(){return Tn.lexicographicSortSchema}});Object.defineProperty($,"locatedError",{enumerable:!0,get:function(){return Bh.locatedError}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return hn.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return hn.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return hn.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return hn.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return hn.print}});Object.defineProperty($,"printError",{enumerable:!0,get:function(){return Bh.printError}});Object.defineProperty($,"printIntrospectionSchema",{enumerable:!0,get:function(){return Tn.printIntrospectionSchema}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return hn.printLocation}});Object.defineProperty($,"printSchema",{enumerable:!0,get:function(){return Tn.printSchema}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return hn.printSourceLocation}});Object.defineProperty($,"printType",{enumerable:!0,get:function(){return Tn.printType}});Object.defineProperty($,"recommendedRules",{enumerable:!0,get:function(){return kt.recommendedRules}});Object.defineProperty($,"resolveObjMapThunk",{enumerable:!0,get:function(){return be.resolveObjMapThunk}});Object.defineProperty($,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return be.resolveReadonlyArrayThunk}});Object.defineProperty($,"responsePathAsArray",{enumerable:!0,get:function(){return Zo.responsePathAsArray}});Object.defineProperty($,"separateOperations",{enumerable:!0,get:function(){return Tn.separateOperations}});Object.defineProperty($,"specifiedDirectives",{enumerable:!0,get:function(){return be.specifiedDirectives}});Object.defineProperty($,"specifiedRules",{enumerable:!0,get:function(){return kt.specifiedRules}});Object.defineProperty($,"specifiedScalarTypes",{enumerable:!0,get:function(){return be.specifiedScalarTypes}});Object.defineProperty($,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Tn.stripIgnoredCharacters}});Object.defineProperty($,"subscribe",{enumerable:!0,get:function(){return Zo.subscribe}});Object.defineProperty($,"syntaxError",{enumerable:!0,get:function(){return Bh.syntaxError}});Object.defineProperty($,"typeFromAST",{enumerable:!0,get:function(){return Tn.typeFromAST}});Object.defineProperty($,"validate",{enumerable:!0,get:function(){return kt.validate}});Object.defineProperty($,"validateSchema",{enumerable:!0,get:function(){return be.validateSchema}});Object.defineProperty($,"valueFromAST",{enumerable:!0,get:function(){return Tn.valueFromAST}});Object.defineProperty($,"valueFromASTUntyped",{enumerable:!0,get:function(){return Tn.valueFromASTUntyped}});Object.defineProperty($,"version",{enumerable:!0,get:function(){return SV.version}});Object.defineProperty($,"versionInfo",{enumerable:!0,get:function(){return SV.versionInfo}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return hn.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return hn.visitInParallel}});Object.defineProperty($,"visitWithTypeInfo",{enumerable:!0,get:function(){return Tn.visitWithTypeInfo}});var SV=IC(),DV=hB(),be=NB(),hn=gB(),Zo=AB(),kt=LB(),Bh=PB(),Tn=OV()});var _c=V(st=>{"use strict";m();T();h();Object.defineProperty(st,"__esModule",{value:!0});st.baseDirectives=st.INHERITABLE_DIRECTIVE_NAMES=st.DEFER_DEFINITION=st.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=st.SCOPE_SCALAR_DEFINITION=st.FIELD_SET_SCALAR_DEFINITION=st.VERSION_TWO_DIRECTIVE_DEFINITIONS=st.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=st.BASE_DIRECTIVE_DEFINITIONS=st.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=st.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=st.SUBSCRIPTION_FILTER_VALUE_DEFINITION=st.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=st.SUBSCRIPTION_FILTER_DEFINITION=st.REQUIRES_SCOPES_DEFINITION=st.INACCESSIBLE_DEFINITION=st.AUTHENTICATED_DEFINITION=st.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=st.TAG_DEFINITION=st.DEPRECATED_DEFINITION=st.BASE_SCALARS=void 0;var ge=(Fe(),xe(Me)),pe=Vi(),J=bi();st.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",J.FIELD_SET_SCALAR,J.SCOPE_SCALAR,J.STRING_SCALAR]);st.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.REASON),type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR),defaultValue:{kind:ge.Kind.STRING,value:ge.DEFAULT_DEPRECATION_REASON}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.ARGUMENT_DEFINITION_UPPER,J.ENUM_VALUE_UPPER,J.FIELD_DEFINITION_UPPER,J.INPUT_FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(J.DEPRECATED),repeatable:!1};var RV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.INTERFACE_UPPER,J.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(J.EXTENDS),repeatable:!1},FV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.FIELD_DEFINITION_UPPER,J.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(J.EXTERNAL),repeatable:!1},wV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.TOPIC),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:J.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.EDFS_KAFKA_PUBLISH),repeatable:!1},LV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.TOPICS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:J.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.EDFS_KAFKA_PUBLISH),repeatable:!1},PV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:J.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.EDFS_NATS_PUBLISH),repeatable:!1},kV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:J.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.EDFS_NATS_REQUEST),repeatable:!1},xV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBJECTS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:J.DEFAULT_EDFS_PROVIDER_ID}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("streamConfiguration"),type:(0,pe.stringToNamedTypeNode)(J.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.EDFS_NATS_SUBSCRIBE),repeatable:!1},CV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.FIELD_SET_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.RESOLVABLE),type:(0,pe.stringToNamedTypeNode)(J.BOOLEAN_SCALAR),defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.INTERFACE_UPPER,J.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(J.KEY),repeatable:!0},UV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.PROVIDES),repeatable:!1},MV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(J.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(J.REQUIRES),repeatable:!1},BV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(J.SPECIFIED_BY),repeatable:!1};st.TAG_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.ARGUMENT_DEFINITION_UPPER,J.ENUM_UPPER,J.ENUM_VALUE_UPPER,J.FIELD_DEFINITION_UPPER,J.INPUT_FIELD_DEFINITION_UPPER,J.INPUT_OBJECT_UPPER,J.INTERFACE_UPPER,J.OBJECT_UPPER,J.SCALAR_UPPER,J.UNION_UPPER]),name:(0,pe.stringToNameNode)(J.TAG),repeatable:!0};st.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[J.DEPRECATED,st.DEPRECATED_DEFINITION],[J.EXTENDS,RV],[J.EXTERNAL,FV],[J.EDFS_KAFKA_PUBLISH,wV],[J.EDFS_KAFKA_SUBSCRIBE,LV],[J.EDFS_NATS_PUBLISH,PV],[J.EDFS_NATS_REQUEST,kV],[J.EDFS_NATS_SUBSCRIBE,xV],[J.KEY,CV],[J.PROVIDES,UV],[J.REQUIRES,MV],[J.SPECIFIED_BY,BV],[J.TAG,st.TAG_DEFINITION]]);st.AUTHENTICATED_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.ENUM_UPPER,J.FIELD_DEFINITION_UPPER,J.INTERFACE_UPPER,J.OBJECT_UPPER,J.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(J.AUTHENTICATED),repeatable:!1};var VV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(J.COMPOSE_DIRECTIVE),repeatable:!0};st.INACCESSIBLE_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.ARGUMENT_DEFINITION_UPPER,J.ENUM_UPPER,J.ENUM_VALUE_UPPER,J.FIELD_DEFINITION_UPPER,J.INPUT_FIELD_DEFINITION_UPPER,J.INPUT_OBJECT_UPPER,J.INTERFACE_UPPER,J.OBJECT_UPPER,J.SCALAR_UPPER,J.UNION_UPPER]),name:(0,pe.stringToNameNode)(J.INACCESSIBLE),repeatable:!1};var jV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(J.INTERFACE_OBJECT),repeatable:!1},$V={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("as"),type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("for"),type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("import"),type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(J.LINK),repeatable:!0},qV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.FROM),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(J.OVERRIDE),repeatable:!1};st.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.SCOPES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.SCOPE_SCALAR)}}}}}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.ENUM_UPPER,J.FIELD_DEFINITION_UPPER,J.INTERFACE_UPPER,J.OBJECT_UPPER,J.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(J.REQUIRES_SCOPES),repeatable:!1};var KV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.FIELD_DEFINITION_UPPER,J.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(J.SHAREABLE),repeatable:!1};st.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.CONDITION),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(J.SUBSCRIPTION_FILTER),repeatable:!1};st.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.AND_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.IN_UPPER),type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FIELD_CONDITION)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.OR_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.NOT_UPPER),type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FILTER_CONDITION)}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBSCRIPTION_FILTER_CONDITION)};st.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBSCRIPTION_FILTER_VALUE)};st.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.FIELD_PATH),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.VALUES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(J.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.SUBSCRIPTION_FIELD_CONDITION)};st.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[J.AUTHENTICATED,st.AUTHENTICATED_DEFINITION],[J.COMPOSE_DIRECTIVE,VV],[J.INACCESSIBLE,st.INACCESSIBLE_DEFINITION],[J.INTERFACE_OBJECT,jV],[J.LINK,$V],[J.OVERRIDE,qV],[J.REQUIRES_SCOPES,st.REQUIRES_SCOPES_DEFINITION],[J.SHAREABLE,KV]]);st.BASE_DIRECTIVE_DEFINITIONS=[st.DEPRECATED_DEFINITION,RV,FV,CV,UV,MV,BV,st.TAG_DEFINITION];st.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[J.EDFS_KAFKA_PUBLISH,wV],[J.EDFS_KAFKA_SUBSCRIBE,LV],[J.EDFS_NATS_PUBLISH,PV],[J.EDFS_NATS_REQUEST,kV],[J.EDFS_NATS_SUBSCRIBE,xV]]);st.VERSION_TWO_DIRECTIVE_DEFINITIONS=[st.AUTHENTICATED_DEFINITION,VV,st.INACCESSIBLE_DEFINITION,jV,$V,qV,st.REQUIRES_SCOPES_DEFINITION,KV];st.FIELD_SET_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.FIELD_SET_SCALAR)};st.SCOPE_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.SCOPE_SCALAR)};st.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(J.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.CONSUMER_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.STREAM_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}}]};st.DEFER_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.IF),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(J.BOOLEAN_SCALAR)},defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}},{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(J.LABEL),type:(0,pe.stringToNamedTypeNode)(J.STRING_SCALAR)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([J.FRAGMENT_SPREAD_UPPER,J.INLINE_FRAGMENT_UPPER]),name:(0,pe.stringToNameNode)(J.DEFER),repeatable:!1};st.INHERITABLE_DIRECTIVE_NAMES=[J.EXTERNAL,J.SHAREABLE];st.baseDirectives=` directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @extends on INTERFACE | OBJECT directive @external on FIELD_DEFINITION | OBJECT @@ -590,43 +590,43 @@ ${t.join(` consumerName: String! streamName: String! } -`});var XD=V(WD=>{"use strict";m();T();h();Object.defineProperty(WD,"__esModule",{value:!0});WD.newFieldSetConditionData=pse;function pse({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}});var Vh=V(kE=>{"use strict";m();T();h();Object.defineProperty(kE,"__esModule",{value:!0});kE.ExtensionType=void 0;var GV;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(GV||(kE.ExtensionType=GV={}))});var tA={};Ef(tA,{__addDisposableResource:()=>pj,__assign:()=>xE,__asyncDelegator:()=>ij,__asyncGenerator:()=>rj,__asyncValues:()=>sj,__await:()=>yp,__awaiter:()=>WV,__classPrivateFieldGet:()=>cj,__classPrivateFieldIn:()=>dj,__classPrivateFieldSet:()=>lj,__createBinding:()=>UE,__decorate:()=>JV,__disposeResources:()=>fj,__esDecorate:()=>fse,__exportStar:()=>ZV,__extends:()=>QV,__generator:()=>XV,__importDefault:()=>uj,__importStar:()=>aj,__makeTemplateObject:()=>oj,__metadata:()=>HV,__param:()=>zV,__propKey:()=>hse,__read:()=>eA,__rest:()=>YV,__runInitializers:()=>mse,__setFunctionName:()=>Tse,__spread:()=>ej,__spreadArray:()=>nj,__spreadArrays:()=>tj,__values:()=>CE,default:()=>Ese});function QV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZD(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function YV(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;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function zV(e,t){return function(n,r){t(n,r,e)}}function fse(e,t,n,r,i,s){function o(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var b={};for(var C in r)b[C]=C==="access"?{}:r[C];for(var C in r.access)b.access[C]=r.access[C];b.addInitializer=function(Q){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(Q||null))};var j=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],b);if(u==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(p.get=y),(y=o(j.set))&&(p.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function mse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[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 eA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function ej(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(b){y(s[0][3],b)}}function l(N){N.value instanceof yp?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function ij(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,s){t[i]=e[i]?function(o){return(n=!n)?{value:yp(e[i](o)),done:!1}:s?s(o):o}:s}}function sj(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 CE=="function"?CE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function oj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function aj(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)&&UE(t,e,n);return yse(t,e),t}function uj(e){return e&&e.__esModule?e:{default:e}}function cj(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 lj(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 dj(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 pj(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 fj(e){function t(r){e.error=e.hasError?new Nse(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(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var ZD,xE,UE,yse,Nse,Ese,nA=ue(()=>{"use strict";m();T();h();ZD=function(e,t){return ZD=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])},ZD(e,t)};xE=function(){return xE=Object.assign||function(t){for(var n,r=1,i=arguments.length;rkj,__assign:()=>ME,__asyncDelegator:()=>Sj,__asyncGenerator:()=>Oj,__asyncValues:()=>Dj,__await:()=>Np,__awaiter:()=>Ej,__classPrivateFieldGet:()=>Fj,__classPrivateFieldIn:()=>Pj,__classPrivateFieldSet:()=>Lj,__createBinding:()=>VE,__decorate:()=>Tj,__disposeResources:()=>xj,__esDecorate:()=>gse,__exportStar:()=>Ij,__extends:()=>mj,__generator:()=>gj,__importDefault:()=>wj,__importStar:()=>Rj,__makeTemplateObject:()=>Aj,__metadata:()=>Nj,__param:()=>yj,__propKey:()=>vse,__read:()=>iA,__rest:()=>hj,__runInitializers:()=>Ise,__setFunctionName:()=>_se,__spread:()=>vj,__spreadArray:()=>bj,__spreadArrays:()=>_j,__values:()=>BE,default:()=>Sse});function mj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hj(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;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function yj(e,t){return function(n,r){t(n,r,e)}}function gse(e,t,n,r,i,s){function o(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var b={};for(var C in r)b[C]=C==="access"?{}:r[C];for(var C in r.access)b.access[C]=r.access[C];b.addInitializer=function(Q){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(Q||null))};var j=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],b);if(u==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(p.get=y),(y=o(j.set))&&(p.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function Ise(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[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 iA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function vj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(b){y(s[0][3],b)}}function l(N){N.value instanceof Np?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Sj(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,s){t[i]=e[i]?function(o){return(n=!n)?{value:Np(e[i](o)),done:!1}:s?s(o):o}:s}}function Dj(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 BE=="function"?BE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function Aj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Rj(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)&&VE(t,e,n);return bse(t,e),t}function wj(e){return e&&e.__esModule?e:{default:e}}function Fj(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 Lj(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 Pj(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 kj(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 xj(e){function t(r){e.error=e.hasError?new Ose(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(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var rA,ME,VE,bse,Ose,Sse,Uj=ue(()=>{"use strict";m();T();h();rA=function(e,t){return rA=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])},rA(e,t)};ME=function(){return ME=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();h()});var jh=V(qr=>{"use strict";m();T();h();Object.defineProperty(qr,"__esModule",{value:!0});qr.assertSome=qr.isSome=qr.compareNodes=qr.nodeToString=qr.compareStrings=qr.isValidPath=qr.isDocumentString=qr.asArray=void 0;var Dse=(we(),xe(Me)),Ase=e=>Array.isArray(e)?e:e?[e]:[];qr.asArray=Ase;var Rse=/\.[a-z0-9]+$/i;function wse(e){if(typeof e!="string"||Rse.test(e))return!1;try{return(0,Dse.parse)(e),!0}catch(t){}return!1}qr.isDocumentString=wse;var Fse=/[‘“!%^<>`]/;function Lse(e){return typeof e=="string"&&!Fse.test(e)}qr.isValidPath=Lse;function Bj(e,t){return String(e)String(t)?1:0}qr.compareStrings=Bj;function sA(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}qr.nodeToString=sA;function Pse(e,t,n){let r=sA(e),i=sA(t);return typeof n=="function"?n(r,i):Bj(r,i)}qr.compareNodes=Pse;function kse(e){return e!=null}qr.isSome=kse;function xse(e,t="Value should be something"){if(e==null)throw new Error(t)}qr.assertSome=xse});var $h=V($E=>{"use strict";m();T();h();Object.defineProperty($E,"__esModule",{value:!0});$E.inspect=void 0;var $j=3;function Cse(e){return jE(e,[])}$E.inspect=Cse;function jE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Use(e,t);default:return String(e)}}function Vj(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`});var XD=V(WD=>{"use strict";m();T();h();Object.defineProperty(WD,"__esModule",{value:!0});WD.newFieldSetConditionData=pse;function pse({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}});var Vh=V(kE=>{"use strict";m();T();h();Object.defineProperty(kE,"__esModule",{value:!0});kE.ExtensionType=void 0;var GV;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(GV||(kE.ExtensionType=GV={}))});var tA={};Ef(tA,{__addDisposableResource:()=>pj,__assign:()=>xE,__asyncDelegator:()=>ij,__asyncGenerator:()=>rj,__asyncValues:()=>sj,__await:()=>yp,__awaiter:()=>WV,__classPrivateFieldGet:()=>cj,__classPrivateFieldIn:()=>dj,__classPrivateFieldSet:()=>lj,__createBinding:()=>UE,__decorate:()=>JV,__disposeResources:()=>fj,__esDecorate:()=>fse,__exportStar:()=>ZV,__extends:()=>QV,__generator:()=>XV,__importDefault:()=>uj,__importStar:()=>aj,__makeTemplateObject:()=>oj,__metadata:()=>HV,__param:()=>zV,__propKey:()=>hse,__read:()=>eA,__rest:()=>YV,__runInitializers:()=>mse,__setFunctionName:()=>Tse,__spread:()=>ej,__spreadArray:()=>nj,__spreadArrays:()=>tj,__values:()=>CE,default:()=>Ese});function QV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZD(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function YV(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;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function zV(e,t){return function(n,r){t(n,r,e)}}function fse(e,t,n,r,i,s){function o(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var b={};for(var C in r)b[C]=C==="access"?{}:r[C];for(var C in r.access)b.access[C]=r.access[C];b.addInitializer=function(Q){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(Q||null))};var j=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],b);if(u==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(p.get=y),(y=o(j.set))&&(p.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function mse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[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 eA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function ej(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(b){y(s[0][3],b)}}function l(N){N.value instanceof yp?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function ij(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,s){t[i]=e[i]?function(o){return(n=!n)?{value:yp(e[i](o)),done:!1}:s?s(o):o}:s}}function sj(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 CE=="function"?CE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function oj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function aj(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)&&UE(t,e,n);return yse(t,e),t}function uj(e){return e&&e.__esModule?e:{default:e}}function cj(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 lj(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 dj(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 pj(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 fj(e){function t(r){e.error=e.hasError?new Nse(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(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var ZD,xE,UE,yse,Nse,Ese,nA=ue(()=>{"use strict";m();T();h();ZD=function(e,t){return ZD=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])},ZD(e,t)};xE=function(){return xE=Object.assign||function(t){for(var n,r=1,i=arguments.length;rkj,__assign:()=>ME,__asyncDelegator:()=>Sj,__asyncGenerator:()=>Oj,__asyncValues:()=>Dj,__await:()=>Np,__awaiter:()=>Ej,__classPrivateFieldGet:()=>wj,__classPrivateFieldIn:()=>Pj,__classPrivateFieldSet:()=>Lj,__createBinding:()=>VE,__decorate:()=>Tj,__disposeResources:()=>xj,__esDecorate:()=>gse,__exportStar:()=>Ij,__extends:()=>mj,__generator:()=>gj,__importDefault:()=>Fj,__importStar:()=>Rj,__makeTemplateObject:()=>Aj,__metadata:()=>Nj,__param:()=>yj,__propKey:()=>vse,__read:()=>iA,__rest:()=>hj,__runInitializers:()=>Ise,__setFunctionName:()=>_se,__spread:()=>vj,__spreadArray:()=>bj,__spreadArrays:()=>_j,__values:()=>BE,default:()=>Sse});function mj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hj(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;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function yj(e,t){return function(n,r){t(n,r,e)}}function gse(e,t,n,r,i,s){function o(Q){if(Q!==void 0&&typeof Q!="function")throw new TypeError("Function expected");return Q}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var b={};for(var C in r)b[C]=C==="access"?{}:r[C];for(var C in r.access)b.access[C]=r.access[C];b.addInitializer=function(Q){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(Q||null))};var j=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],b);if(u==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(p.get=y),(y=o(j.set))&&(p.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function Ise(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[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 iA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function vj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(b){y(s[0][3],b)}}function l(N){N.value instanceof Np?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Sj(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,s){t[i]=e[i]?function(o){return(n=!n)?{value:Np(e[i](o)),done:!1}:s?s(o):o}:s}}function Dj(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 BE=="function"?BE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function Aj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Rj(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)&&VE(t,e,n);return bse(t,e),t}function Fj(e){return e&&e.__esModule?e:{default:e}}function wj(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 Lj(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 Pj(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 kj(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 xj(e){function t(r){e.error=e.hasError?new Ose(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(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var rA,ME,VE,bse,Ose,Sse,Uj=ue(()=>{"use strict";m();T();h();rA=function(e,t){return rA=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])},rA(e,t)};ME=function(){return ME=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();h()});var jh=V(qr=>{"use strict";m();T();h();Object.defineProperty(qr,"__esModule",{value:!0});qr.assertSome=qr.isSome=qr.compareNodes=qr.nodeToString=qr.compareStrings=qr.isValidPath=qr.isDocumentString=qr.asArray=void 0;var Dse=(Fe(),xe(Me)),Ase=e=>Array.isArray(e)?e:e?[e]:[];qr.asArray=Ase;var Rse=/\.[a-z0-9]+$/i;function Fse(e){if(typeof e!="string"||Rse.test(e))return!1;try{return(0,Dse.parse)(e),!0}catch(t){}return!1}qr.isDocumentString=Fse;var wse=/[‘“!%^<>`]/;function Lse(e){return typeof e=="string"&&!wse.test(e)}qr.isValidPath=Lse;function Bj(e,t){return String(e)String(t)?1:0}qr.compareStrings=Bj;function sA(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}qr.nodeToString=sA;function Pse(e,t,n){let r=sA(e),i=sA(t);return typeof n=="function"?n(r,i):Bj(r,i)}qr.compareNodes=Pse;function kse(e){return e!=null}qr.isSome=kse;function xse(e,t="Value should be something"){if(e==null)throw new Error(t)}qr.assertSome=xse});var $h=V($E=>{"use strict";m();T();h();Object.defineProperty($E,"__esModule",{value:!0});$E.inspect=void 0;var $j=3;function Cse(e){return jE(e,[])}$E.inspect=Cse;function jE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Use(e,t);default:return String(e)}}function Vj(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function Use(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?Vj(e)+` -`+jj(e.errors,t):Vj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Mse(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jE(r,n)}else if(Array.isArray(e))return jj(e,n);return Bse(e,n)}function Mse(e){return typeof e.toJSON=="function"}function Bse(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>$j?"["+Vse(e)+"]":"{ "+n.map(([i,s])=>i+": "+jE(s,t)).join(", ")+" }"}function jj(e,t){if(e.length===0)return"[]";if(t.length>$j)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();h();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.relocatedError=Ep.createGraphQLError=void 0;var oA=(we(),xe(Me)),jse=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function $se(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>jse.includes(t))}function aA(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&$se(t.originalError)&&(t.originalError=aA(t.originalError.message,t.originalError)),oA.versionInfo.major>=17?new oA.GraphQLError(e,t):new oA.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)}Ep.createGraphQLError=aA;function qse(e,t){return aA(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Ep.relocatedError=qse});var qh=V($s=>{"use strict";m();T();h();Object.defineProperty($s,"__esModule",{value:!0});$s.hasOwnProperty=$s.promiseReduce=$s.isPromise=$s.isObjectLike=$s.isIterableObject=void 0;function Kse(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}$s.isIterableObject=Kse;function Gse(e){return typeof e=="object"&&e!==null}$s.isObjectLike=Gse;function qj(e){return(e==null?void 0:e.then)!=null}$s.isPromise=qj;function Qse(e,t,n){let r=n;for(let i of e)r=qj(r)?r.then(s=>t(s,i)):t(r,i);return r}$s.promiseReduce=Qse;function Yse(e,t){return Object.prototype.hasOwnProperty.call(e,t)}$s.hasOwnProperty=Yse});var cA=V(GE=>{"use strict";m();T();h();Object.defineProperty(GE,"__esModule",{value:!0});GE.getArgumentValues=void 0;var uA=$h(),Fl=(we(),xe(Me)),KE=qE(),Jse=qh();function zse(e,t,n={}){var o;let r={},s=((o=t.arguments)!=null?o:[]).reduce((u,l)=>K(k({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=s[u];if(!p){if(d!==void 0)r[u]=d;else if((0,Fl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of required type "${(0,uA.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,N=y.kind===Fl.Kind.NULL;if(y.kind===Fl.Kind.VARIABLE){let b=y.name.value;if(n==null||!(0,Jse.hasOwnProperty)(n,b)){if(d!==void 0)r[u]=d;else if((0,Fl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of required type "${(0,uA.inspect)(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:[y]});continue}N=n[b]==null}if(N&&(0,Fl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of non-null type "${(0,uA.inspect)(l)}" must not be null.`,{nodes:[y]});let I=(0,Fl.valueFromAST)(y,l,n);if(I===void 0)throw(0,KE.createGraphQLError)(`Argument "${u}" has invalid value ${(0,Fl.print)(y)}.`,{nodes:[y]});r[u]=I}return r}GE.getArgumentValues=zse});var lA=V(ea=>{"use strict";m();T();h();Object.defineProperty(ea,"__esModule",{value:!0});ea.getDirective=ea.getDirectives=ea.getDirectiveInExtensions=ea.getDirectivesInExtensions=void 0;var Gj=cA();function Qj(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}ea.getDirectivesInExtensions=Qj;function Kj(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 Yj(e,t,n=["directives"]){let r=n.reduce((s,o)=>s==null?s:s[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return Kj(r,t);let i=[];for(let[s,o]of Object.entries(r))if(Array.isArray(o))for(let u of o)i.push({name:s,args:u});else i.push({name:s,args:o});return Kj(i,t)}ea.getDirectiveInExtensions=Yj;function Hse(e,t,n=["directives"]){let r=Qj(t,n);if(r!=null&&r.length>0)return r;let s=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=s[d.name.value];p&&u.push({name:d.name.value,args:(0,Gj.getArgumentValues)(p,d)})}return u}ea.getDirectives=Hse;function Wse(e,t,n,r=["directives"]){let i=Yj(t,n,r);if(i!=null)return i;let s=e&&e.getDirective?e.getDirective(n):void 0;if(s==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&u.push((0,Gj.getArgumentValues)(s,d));if(u.length)return u}ea.getDirective=Wse});var dA=V(QE=>{"use strict";m();T();h();Object.defineProperty(QE,"__esModule",{value:!0});QE.getFieldsWithDirectives=void 0;var Xse=(we(),xe(Me));function Zse(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(s=>r.includes(s.kind));for(let s of i){let o=s.name.value;if(s.fields!=null){for(let u of s.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${o}.${l}`,p=u.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((N,I)=>K(k({},N),{[I.name.value]:(0,Xse.valueFromASTUntyped)(I.value)}),{})}));n[d]=p}}}return n}QE.getFieldsWithDirectives=Zse});var Jj=V(YE=>{"use strict";m();T();h();Object.defineProperty(YE,"__esModule",{value:!0});YE.getArgumentsWithDirectives=void 0;var pA=(we(),xe(Me));function eoe(e){return e.kind===pA.Kind.OBJECT_TYPE_DEFINITION||e.kind===pA.Kind.OBJECT_TYPE_EXTENSION}function toe(e){var r;let t={},n=e.definitions.filter(eoe);for(let i of n)if(i.fields!=null)for(let s of i.fields){let o=(r=s.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${s.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,N)=>K(k({},y),{[N.name.value]:(0,pA.valueFromASTUntyped)(N.value)}),{})}));u[l.name.value]=d}}return t}YE.getArgumentsWithDirectives=toe});var fA=V(JE=>{"use strict";m();T();h();Object.defineProperty(JE,"__esModule",{value:!0});JE.getImplementingTypes=void 0;var noe=(we(),xe(Me));function roe(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let s=n[i];(0,noe.isObjectType)(s)&&s.getInterfaces().find(u=>u.name===e)&&r.push(s.name)}return r}JE.getImplementingTypes=roe});var hA=V(zE=>{"use strict";m();T();h();Object.defineProperty(zE,"__esModule",{value:!0});zE.astFromType=void 0;var ioe=$h(),Ll=(we(),xe(Me));function mA(e){if((0,Ll.isNonNullType)(e)){let t=mA(e.ofType);if(t.kind===Ll.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,ioe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ll.Kind.NON_NULL_TYPE,type:t}}else if((0,Ll.isListType)(e))return{kind:Ll.Kind.LIST_TYPE,type:mA(e.ofType)};return{kind:Ll.Kind.NAMED_TYPE,name:{kind:Ll.Kind.NAME,value:e.name}}}zE.astFromType=mA});var WE=V(HE=>{"use strict";m();T();h();Object.defineProperty(HE,"__esModule",{value:!0});HE.astFromValueUntyped=void 0;var ta=(we(),xe(Me));function TA(e){if(e===null)return{kind:ta.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=TA(n);r!=null&&t.push(r)}return{kind:ta.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=TA(r);i&&t.push({kind:ta.Kind.OBJECT_FIELD,name:{kind:ta.Kind.NAME,value:n},value:i})}return{kind:ta.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ta.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ta.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return soe.test(t)?{kind:ta.Kind.INT,value:t}:{kind:ta.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ta.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}HE.astFromValueUntyped=TA;var soe=/^-?(?:0|[1-9][0-9]*)$/});var Hj=V(XE=>{"use strict";m();T();h();Object.defineProperty(XE,"__esModule",{value:!0});XE.astFromValue=void 0;var ooe=$h(),hs=(we(),xe(Me)),aoe=WE(),zj=qh();function Kh(e,t){if((0,hs.isNonNullType)(t)){let n=Kh(e,t.ofType);return(n==null?void 0:n.kind)===hs.Kind.NULL?null:n}if(e===null)return{kind:hs.Kind.NULL};if(e===void 0)return null;if((0,hs.isListType)(t)){let n=t.ofType;if((0,zj.isIterableObject)(e)){let r=[];for(let i of e){let s=Kh(i,n);s!=null&&r.push(s)}return{kind:hs.Kind.LIST,values:r}}return Kh(e,n)}if((0,hs.isInputObjectType)(t)){if(!(0,zj.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Kh(e[r.name],r.type);i&&n.push({kind:hs.Kind.OBJECT_FIELD,name:{kind:hs.Kind.NAME,value:r.name},value:i})}return{kind:hs.Kind.OBJECT,fields:n}}if((0,hs.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,hs.isEnumType)(t)?{kind:hs.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&uoe.test(n)?{kind:hs.Kind.INT,value:n}:(0,aoe.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,ooe.inspect)(t))}XE.astFromValue=Kh;var uoe=/^-?(?:0|[1-9][0-9]*)$/});var Wj=V(ZE=>{"use strict";m();T();h();Object.defineProperty(ZE,"__esModule",{value:!0});ZE.getDescriptionNode=void 0;var coe=(we(),xe(Me));function loe(e){var t;if((t=e.astNode)!=null&&t.description)return K(k({},e.astNode.description),{block:!0});if(e.description)return{kind:coe.Kind.STRING,value:e.description,block:!0}}ZE.getDescriptionNode=loe});var gp=V(pi=>{"use strict";m();T();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.memoize2of5=pi.memoize2of4=pi.memoize5=pi.memoize4=pi.memoize3=pi.memoize2=pi.memoize1=void 0;function doe(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}pi.memoize1=doe;function poe(e){let t=new WeakMap;return function(r,i){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let u=e(r,i);return s.set(i,u),u}let o=s.get(i);if(o===void 0){let u=e(r,i);return s.set(i,u),u}return o}}pi.memoize2=poe;function foe(e){let t=new WeakMap;return function(r,i,s){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,s);return d.set(s,p),p}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let d=e(r,i,s);return u.set(s,d),d}let l=u.get(s);if(l===void 0){let d=e(r,i,s);return u.set(s,d),d}return l}}pi.memoize3=foe;function moe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let y=new WeakMap;u.set(i,y);let N=new WeakMap;y.set(s,N);let I=e(r,i,s,o);return N.set(o,I),I}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let d=l.get(s);if(!d){let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let p=d.get(o);if(p===void 0){let y=e(r,i,s,o);return d.set(o,y),y}return p}}pi.memoize4=moe;function hoe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let I=new WeakMap;l.set(i,I);let b=new WeakMap;I.set(s,b);let C=new WeakMap;b.set(o,C);let j=e(r,i,s,o,u);return C.set(u,j),j}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let I=new WeakMap;d.set(s,I);let b=new WeakMap;I.set(o,b);let C=e(r,i,s,o,u);return b.set(u,C),C}let p=d.get(s);if(!p){p=new WeakMap,d.set(s,p);let I=new WeakMap;p.set(o,I);let b=e(r,i,s,o,u);return I.set(u,b),b}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let I=e(r,i,s,o,u);return y.set(u,I),I}let N=y.get(u);if(N===void 0){let I=e(r,i,s,o,u);return y.set(u,I),I}return N}}pi.memoize5=hoe;function Toe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,s,o);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,s,o);return u.set(i,d),d}return l}}pi.memoize2of4=Toe;function yoe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,s,o,u);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,s,o,u);return l.set(i,p),p}return d}}pi.memoize2of5=yoe});var Gh=V(Ts=>{"use strict";m();T();h();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getRootTypeMap=Ts.getRootTypes=Ts.getRootTypeNames=Ts.getDefinedRootType=void 0;var Noe=qE(),yA=gp();function Eoe(e,t,n){let i=(0,Ts.getRootTypeMap)(e).get(t);if(i==null)throw(0,Noe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ts.getDefinedRootType=Eoe;Ts.getRootTypeNames=(0,yA.memoize1)(function(t){let n=(0,Ts.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ts.getRootTypes=(0,yA.memoize1)(function(t){let n=(0,Ts.getRootTypeMap)(t);return new Set(n.values())});Ts.getRootTypeMap=(0,yA.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 s=t.getSubscriptionType();return s&&n.set("subscription",s),n})});var vA=V(Mt=>{"use strict";m();T();h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.makeDirectiveNodes=Mt.makeDirectiveNode=Mt.makeDeprecatedDirective=Mt.astFromEnumValue=Mt.astFromInputField=Mt.astFromField=Mt.astFromScalarType=Mt.astFromEnumType=Mt.astFromInputObjectType=Mt.astFromUnionType=Mt.astFromInterfaceType=Mt.astFromObjectType=Mt.astFromArg=Mt.getDeprecatableDirectiveNodes=Mt.getDirectiveNodes=Mt.astFromDirective=Mt.astFromSchema=Mt.printSchemaWithDirectives=Mt.getDocumentNodeFromSchema=void 0;var _t=(we(),xe(Me)),Pl=hA(),NA=Hj(),goe=WE(),qs=Wj(),EA=lA(),Ioe=jh(),voe=Gh();function Xj(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Zj(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,_t.isSpecifiedDirective)(u)||s.push(e1(u,e,n));for(let u in r){let l=r[u],d=(0,_t.isSpecifiedScalarType)(l),p=(0,_t.isIntrospectionType)(l);if(!(d||p))if((0,_t.isObjectType)(l))s.push(t1(l,e,n));else if((0,_t.isInterfaceType)(l))s.push(n1(l,e,n));else if((0,_t.isUnionType)(l))s.push(r1(l,e,n));else if((0,_t.isInputObjectType)(l))s.push(i1(l,e,n));else if((0,_t.isEnumType)(l))s.push(s1(l,e,n));else if((0,_t.isScalarType)(l))s.push(o1(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:_t.Kind.DOCUMENT,definitions:s}}Mt.getDocumentNodeFromSchema=Xj;function _oe(e,t={}){let n=Xj(e,t);return(0,_t.print)(n)}Mt.printSchemaWithDirectives=_oe;function Zj(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 d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,voe.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let N=(0,Pl.astFromType)(y);p!=null?p.type=N:n.set(d,{kind:_t.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:N})}}let s=[...n.values()].filter(Ioe.isSome),o=kl(e,e,t);if(!s.length&&!o.length)return null;let u={kind:s!=null?_t.Kind.SCHEMA_DEFINITION:_t.Kind.SCHEMA_EXTENSION,operationTypes:s,directives:o},l=(0,qs.getDescriptionNode)(e);return l&&(u.description=l),u}Mt.astFromSchema=Zj;function e1(e,t,n){var r,i;return{kind:_t.Kind.DIRECTIVE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(s=>gA(s,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(s=>({kind:_t.Kind.NAME,value:s})))||[]}}Mt.astFromDirective=e1;function kl(e,t,n){let r=(0,EA.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=eg(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}Mt.getDirectiveNodes=kl;function Yh(e,t,n){var u,l;let r=[],i=null,s=(0,EA.getDirectivesInExtensions)(e,n),o;return s!=null?o=eg(t,s):o=(u=e.astNode)==null?void 0:u.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=c1(e.deprecationReason)),i==null?r:[i].concat(r)}Mt.getDeprecatableDirectiveNodes=Yh;function gA(e,t,n){var r;return{kind:_t.Kind.INPUT_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},type:(0,Pl.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,NA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Yh(e,t,n)}}Mt.astFromArg=gA;function t1(e,t,n){return{kind:_t.Kind.OBJECT_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>IA(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Pl.astFromType)(r)),directives:kl(e,t,n)}}Mt.astFromObjectType=t1;function n1(e,t,n){let r={kind:_t.Kind.INTERFACE_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>IA(i,t,n)),directives:kl(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Pl.astFromType)(i))),r}Mt.astFromInterfaceType=n1;function r1(e,t,n){return{kind:_t.Kind.UNION_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:kl(e,t,n),types:e.getTypes().map(r=>(0,Pl.astFromType)(r))}}Mt.astFromUnionType=r1;function i1(e,t,n){return{kind:_t.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>a1(r,t,n)),directives:kl(e,t,n)}}Mt.astFromInputObjectType=i1;function s1(e,t,n){return{kind:_t.Kind.ENUM_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>u1(r,t,n)),directives:kl(e,t,n)}}Mt.astFromEnumType=s1;function o1(e,t,n){var o;let r=(0,EA.getDirectivesInExtensions)(e,n),i=r?eg(t,r):((o=e.astNode)==null?void 0:o.directives)||[],s=e.specifiedByUrl||e.specifiedByURL;if(s&&!i.some(u=>u.name.value==="specifiedBy")){let u={url:s};i.push(Qh("specifiedBy",u))}return{kind:_t.Kind.SCALAR_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:i}}Mt.astFromScalarType=o1;function IA(e,t,n){return{kind:_t.Kind.FIELD_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},arguments:e.args.map(r=>gA(r,t,n)),type:(0,Pl.astFromType)(e.type),directives:Yh(e,t,n)}}Mt.astFromField=IA;function a1(e,t,n){var r;return{kind:_t.Kind.INPUT_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},type:(0,Pl.astFromType)(e.type),directives:Yh(e,t,n),defaultValue:(r=(0,NA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Mt.astFromInputField=a1;function u1(e,t,n){return{kind:_t.Kind.ENUM_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:Yh(e,t,n)}}Mt.astFromEnumValue=u1;function c1(e){return Qh("deprecated",{reason:e},_t.GraphQLDeprecatedDirective)}Mt.makeDeprecatedDirective=c1;function Qh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=(0,NA.astFromValue)(o,i.type);u&&r.push({kind:_t.Kind.ARGUMENT,name:{kind:_t.Kind.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=(0,goe.astFromValueUntyped)(s);o&&r.push({kind:_t.Kind.ARGUMENT,name:{kind:_t.Kind.NAME,value:i},value:o})}return{kind:_t.Kind.DIRECTIVE,name:{kind:_t.Kind.NAME,value:e},arguments:r}}Mt.makeDirectiveNode=Qh;function eg(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Qh(r,o,s));else n.push(Qh(r,i,s))}return n}Mt.makeDirectiveNodes=eg});var d1=V(Ip=>{"use strict";m();T();h();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.createDefaultRules=Ip.validateGraphQlDocuments=void 0;var Jh=(we(),xe(Me));function boe(e,t,n=l1()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Jh.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let s={kind:Jh.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Jh.validate)(e,s,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` - at ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return o}Ip.validateGraphQlDocuments=boe;function l1(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Jh.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Jh.specifiedRules.filter(t=>!e.includes(t.name))}Ip.createDefaultRules=l1});var p1=V(tg=>{"use strict";m();T();h();Object.defineProperty(tg,"__esModule",{value:!0});tg.parseGraphQLJSON=void 0;var Ooe=(we(),xe(Me));function Soe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Doe(e){return JSON.parse(Soe(e))}function Aoe(e,t,n){let r=Doe(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Ooe.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")}tg.parseGraphQLJSON=Aoe});var bA=V(lr=>{"use strict";m();T();h();Object.defineProperty(lr,"__esModule",{value:!0});lr.getBlockStringIndentation=lr.dedentBlockStringValue=lr.getLeadingCommentBlock=lr.getComment=lr.getDescription=lr.printWithComments=lr.printComment=lr.pushComment=lr.collectComment=lr.resetComments=void 0;var T1=(we(),xe(Me)),Roe=80,vp={};function woe(){vp={}}lr.resetComments=woe;function Foe(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(zh(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)zh(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(zh(r,t,r.name.value),Coe(r)&&r.arguments)for(let i of r.arguments)zh(i,t,r.name.value,i.name.value)}break}}lr.collectComment=Foe;function zh(e,t,n,r){let i=_A(e);if(typeof i!="string"||i.length===0)return;let s=[t];n&&(s.push(n),r&&s.push(r));let o=s.join(".");vp[o]||(vp[o]=[]),vp[o].push(i)}lr.pushComment=zh;function y1(e){return` +`+jj(e.errors,t):Vj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Mse(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jE(r,n)}else if(Array.isArray(e))return jj(e,n);return Bse(e,n)}function Mse(e){return typeof e.toJSON=="function"}function Bse(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>$j?"["+Vse(e)+"]":"{ "+n.map(([i,s])=>i+": "+jE(s,t)).join(", ")+" }"}function jj(e,t){if(e.length===0)return"[]";if(t.length>$j)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();h();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.relocatedError=Ep.createGraphQLError=void 0;var oA=(Fe(),xe(Me)),jse=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function $se(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>jse.includes(t))}function aA(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&$se(t.originalError)&&(t.originalError=aA(t.originalError.message,t.originalError)),oA.versionInfo.major>=17?new oA.GraphQLError(e,t):new oA.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)}Ep.createGraphQLError=aA;function qse(e,t){return aA(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Ep.relocatedError=qse});var qh=V($s=>{"use strict";m();T();h();Object.defineProperty($s,"__esModule",{value:!0});$s.hasOwnProperty=$s.promiseReduce=$s.isPromise=$s.isObjectLike=$s.isIterableObject=void 0;function Kse(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}$s.isIterableObject=Kse;function Gse(e){return typeof e=="object"&&e!==null}$s.isObjectLike=Gse;function qj(e){return(e==null?void 0:e.then)!=null}$s.isPromise=qj;function Qse(e,t,n){let r=n;for(let i of e)r=qj(r)?r.then(s=>t(s,i)):t(r,i);return r}$s.promiseReduce=Qse;function Yse(e,t){return Object.prototype.hasOwnProperty.call(e,t)}$s.hasOwnProperty=Yse});var cA=V(GE=>{"use strict";m();T();h();Object.defineProperty(GE,"__esModule",{value:!0});GE.getArgumentValues=void 0;var uA=$h(),wl=(Fe(),xe(Me)),KE=qE(),Jse=qh();function zse(e,t,n={}){var o;let r={},s=((o=t.arguments)!=null?o:[]).reduce((u,l)=>K(k({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=s[u];if(!p){if(d!==void 0)r[u]=d;else if((0,wl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of required type "${(0,uA.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,N=y.kind===wl.Kind.NULL;if(y.kind===wl.Kind.VARIABLE){let b=y.name.value;if(n==null||!(0,Jse.hasOwnProperty)(n,b)){if(d!==void 0)r[u]=d;else if((0,wl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of required type "${(0,uA.inspect)(l)}" was provided the variable "$${b}" which was not provided a runtime value.`,{nodes:[y]});continue}N=n[b]==null}if(N&&(0,wl.isNonNullType)(l))throw(0,KE.createGraphQLError)(`Argument "${u}" of non-null type "${(0,uA.inspect)(l)}" must not be null.`,{nodes:[y]});let I=(0,wl.valueFromAST)(y,l,n);if(I===void 0)throw(0,KE.createGraphQLError)(`Argument "${u}" has invalid value ${(0,wl.print)(y)}.`,{nodes:[y]});r[u]=I}return r}GE.getArgumentValues=zse});var lA=V(ea=>{"use strict";m();T();h();Object.defineProperty(ea,"__esModule",{value:!0});ea.getDirective=ea.getDirectives=ea.getDirectiveInExtensions=ea.getDirectivesInExtensions=void 0;var Gj=cA();function Qj(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}ea.getDirectivesInExtensions=Qj;function Kj(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 Yj(e,t,n=["directives"]){let r=n.reduce((s,o)=>s==null?s:s[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return Kj(r,t);let i=[];for(let[s,o]of Object.entries(r))if(Array.isArray(o))for(let u of o)i.push({name:s,args:u});else i.push({name:s,args:o});return Kj(i,t)}ea.getDirectiveInExtensions=Yj;function Hse(e,t,n=["directives"]){let r=Qj(t,n);if(r!=null&&r.length>0)return r;let s=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=s[d.name.value];p&&u.push({name:d.name.value,args:(0,Gj.getArgumentValues)(p,d)})}return u}ea.getDirectives=Hse;function Wse(e,t,n,r=["directives"]){let i=Yj(t,n,r);if(i!=null)return i;let s=e&&e.getDirective?e.getDirective(n):void 0;if(s==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&u.push((0,Gj.getArgumentValues)(s,d));if(u.length)return u}ea.getDirective=Wse});var dA=V(QE=>{"use strict";m();T();h();Object.defineProperty(QE,"__esModule",{value:!0});QE.getFieldsWithDirectives=void 0;var Xse=(Fe(),xe(Me));function Zse(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(s=>r.includes(s.kind));for(let s of i){let o=s.name.value;if(s.fields!=null){for(let u of s.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${o}.${l}`,p=u.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((N,I)=>K(k({},N),{[I.name.value]:(0,Xse.valueFromASTUntyped)(I.value)}),{})}));n[d]=p}}}return n}QE.getFieldsWithDirectives=Zse});var Jj=V(YE=>{"use strict";m();T();h();Object.defineProperty(YE,"__esModule",{value:!0});YE.getArgumentsWithDirectives=void 0;var pA=(Fe(),xe(Me));function eoe(e){return e.kind===pA.Kind.OBJECT_TYPE_DEFINITION||e.kind===pA.Kind.OBJECT_TYPE_EXTENSION}function toe(e){var r;let t={},n=e.definitions.filter(eoe);for(let i of n)if(i.fields!=null)for(let s of i.fields){let o=(r=s.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${s.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,N)=>K(k({},y),{[N.name.value]:(0,pA.valueFromASTUntyped)(N.value)}),{})}));u[l.name.value]=d}}return t}YE.getArgumentsWithDirectives=toe});var fA=V(JE=>{"use strict";m();T();h();Object.defineProperty(JE,"__esModule",{value:!0});JE.getImplementingTypes=void 0;var noe=(Fe(),xe(Me));function roe(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let s=n[i];(0,noe.isObjectType)(s)&&s.getInterfaces().find(u=>u.name===e)&&r.push(s.name)}return r}JE.getImplementingTypes=roe});var hA=V(zE=>{"use strict";m();T();h();Object.defineProperty(zE,"__esModule",{value:!0});zE.astFromType=void 0;var ioe=$h(),Ll=(Fe(),xe(Me));function mA(e){if((0,Ll.isNonNullType)(e)){let t=mA(e.ofType);if(t.kind===Ll.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,ioe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ll.Kind.NON_NULL_TYPE,type:t}}else if((0,Ll.isListType)(e))return{kind:Ll.Kind.LIST_TYPE,type:mA(e.ofType)};return{kind:Ll.Kind.NAMED_TYPE,name:{kind:Ll.Kind.NAME,value:e.name}}}zE.astFromType=mA});var WE=V(HE=>{"use strict";m();T();h();Object.defineProperty(HE,"__esModule",{value:!0});HE.astFromValueUntyped=void 0;var ta=(Fe(),xe(Me));function TA(e){if(e===null)return{kind:ta.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=TA(n);r!=null&&t.push(r)}return{kind:ta.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=TA(r);i&&t.push({kind:ta.Kind.OBJECT_FIELD,name:{kind:ta.Kind.NAME,value:n},value:i})}return{kind:ta.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ta.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ta.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return soe.test(t)?{kind:ta.Kind.INT,value:t}:{kind:ta.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ta.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}HE.astFromValueUntyped=TA;var soe=/^-?(?:0|[1-9][0-9]*)$/});var Hj=V(XE=>{"use strict";m();T();h();Object.defineProperty(XE,"__esModule",{value:!0});XE.astFromValue=void 0;var ooe=$h(),hs=(Fe(),xe(Me)),aoe=WE(),zj=qh();function Kh(e,t){if((0,hs.isNonNullType)(t)){let n=Kh(e,t.ofType);return(n==null?void 0:n.kind)===hs.Kind.NULL?null:n}if(e===null)return{kind:hs.Kind.NULL};if(e===void 0)return null;if((0,hs.isListType)(t)){let n=t.ofType;if((0,zj.isIterableObject)(e)){let r=[];for(let i of e){let s=Kh(i,n);s!=null&&r.push(s)}return{kind:hs.Kind.LIST,values:r}}return Kh(e,n)}if((0,hs.isInputObjectType)(t)){if(!(0,zj.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Kh(e[r.name],r.type);i&&n.push({kind:hs.Kind.OBJECT_FIELD,name:{kind:hs.Kind.NAME,value:r.name},value:i})}return{kind:hs.Kind.OBJECT,fields:n}}if((0,hs.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,hs.isEnumType)(t)?{kind:hs.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&uoe.test(n)?{kind:hs.Kind.INT,value:n}:(0,aoe.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,ooe.inspect)(t))}XE.astFromValue=Kh;var uoe=/^-?(?:0|[1-9][0-9]*)$/});var Wj=V(ZE=>{"use strict";m();T();h();Object.defineProperty(ZE,"__esModule",{value:!0});ZE.getDescriptionNode=void 0;var coe=(Fe(),xe(Me));function loe(e){var t;if((t=e.astNode)!=null&&t.description)return K(k({},e.astNode.description),{block:!0});if(e.description)return{kind:coe.Kind.STRING,value:e.description,block:!0}}ZE.getDescriptionNode=loe});var gp=V(pi=>{"use strict";m();T();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.memoize2of5=pi.memoize2of4=pi.memoize5=pi.memoize4=pi.memoize3=pi.memoize2=pi.memoize1=void 0;function doe(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}pi.memoize1=doe;function poe(e){let t=new WeakMap;return function(r,i){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let u=e(r,i);return s.set(i,u),u}let o=s.get(i);if(o===void 0){let u=e(r,i);return s.set(i,u),u}return o}}pi.memoize2=poe;function foe(e){let t=new WeakMap;return function(r,i,s){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,s);return d.set(s,p),p}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let d=e(r,i,s);return u.set(s,d),d}let l=u.get(s);if(l===void 0){let d=e(r,i,s);return u.set(s,d),d}return l}}pi.memoize3=foe;function moe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let y=new WeakMap;u.set(i,y);let N=new WeakMap;y.set(s,N);let I=e(r,i,s,o);return N.set(o,I),I}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let d=l.get(s);if(!d){let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let p=d.get(o);if(p===void 0){let y=e(r,i,s,o);return d.set(o,y),y}return p}}pi.memoize4=moe;function hoe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let I=new WeakMap;l.set(i,I);let b=new WeakMap;I.set(s,b);let C=new WeakMap;b.set(o,C);let j=e(r,i,s,o,u);return C.set(u,j),j}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let I=new WeakMap;d.set(s,I);let b=new WeakMap;I.set(o,b);let C=e(r,i,s,o,u);return b.set(u,C),C}let p=d.get(s);if(!p){p=new WeakMap,d.set(s,p);let I=new WeakMap;p.set(o,I);let b=e(r,i,s,o,u);return I.set(u,b),b}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let I=e(r,i,s,o,u);return y.set(u,I),I}let N=y.get(u);if(N===void 0){let I=e(r,i,s,o,u);return y.set(u,I),I}return N}}pi.memoize5=hoe;function Toe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,s,o);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,s,o);return u.set(i,d),d}return l}}pi.memoize2of4=Toe;function yoe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,s,o,u);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,s,o,u);return l.set(i,p),p}return d}}pi.memoize2of5=yoe});var Gh=V(Ts=>{"use strict";m();T();h();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getRootTypeMap=Ts.getRootTypes=Ts.getRootTypeNames=Ts.getDefinedRootType=void 0;var Noe=qE(),yA=gp();function Eoe(e,t,n){let i=(0,Ts.getRootTypeMap)(e).get(t);if(i==null)throw(0,Noe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ts.getDefinedRootType=Eoe;Ts.getRootTypeNames=(0,yA.memoize1)(function(t){let n=(0,Ts.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ts.getRootTypes=(0,yA.memoize1)(function(t){let n=(0,Ts.getRootTypeMap)(t);return new Set(n.values())});Ts.getRootTypeMap=(0,yA.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 s=t.getSubscriptionType();return s&&n.set("subscription",s),n})});var vA=V(Mt=>{"use strict";m();T();h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.makeDirectiveNodes=Mt.makeDirectiveNode=Mt.makeDeprecatedDirective=Mt.astFromEnumValue=Mt.astFromInputField=Mt.astFromField=Mt.astFromScalarType=Mt.astFromEnumType=Mt.astFromInputObjectType=Mt.astFromUnionType=Mt.astFromInterfaceType=Mt.astFromObjectType=Mt.astFromArg=Mt.getDeprecatableDirectiveNodes=Mt.getDirectiveNodes=Mt.astFromDirective=Mt.astFromSchema=Mt.printSchemaWithDirectives=Mt.getDocumentNodeFromSchema=void 0;var _t=(Fe(),xe(Me)),Pl=hA(),NA=Hj(),goe=WE(),qs=Wj(),EA=lA(),Ioe=jh(),voe=Gh();function Xj(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Zj(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,_t.isSpecifiedDirective)(u)||s.push(e1(u,e,n));for(let u in r){let l=r[u],d=(0,_t.isSpecifiedScalarType)(l),p=(0,_t.isIntrospectionType)(l);if(!(d||p))if((0,_t.isObjectType)(l))s.push(t1(l,e,n));else if((0,_t.isInterfaceType)(l))s.push(n1(l,e,n));else if((0,_t.isUnionType)(l))s.push(r1(l,e,n));else if((0,_t.isInputObjectType)(l))s.push(i1(l,e,n));else if((0,_t.isEnumType)(l))s.push(s1(l,e,n));else if((0,_t.isScalarType)(l))s.push(o1(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:_t.Kind.DOCUMENT,definitions:s}}Mt.getDocumentNodeFromSchema=Xj;function _oe(e,t={}){let n=Xj(e,t);return(0,_t.print)(n)}Mt.printSchemaWithDirectives=_oe;function Zj(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 d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,voe.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let N=(0,Pl.astFromType)(y);p!=null?p.type=N:n.set(d,{kind:_t.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:N})}}let s=[...n.values()].filter(Ioe.isSome),o=kl(e,e,t);if(!s.length&&!o.length)return null;let u={kind:s!=null?_t.Kind.SCHEMA_DEFINITION:_t.Kind.SCHEMA_EXTENSION,operationTypes:s,directives:o},l=(0,qs.getDescriptionNode)(e);return l&&(u.description=l),u}Mt.astFromSchema=Zj;function e1(e,t,n){var r,i;return{kind:_t.Kind.DIRECTIVE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(s=>gA(s,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(s=>({kind:_t.Kind.NAME,value:s})))||[]}}Mt.astFromDirective=e1;function kl(e,t,n){let r=(0,EA.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=eg(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}Mt.getDirectiveNodes=kl;function Yh(e,t,n){var u,l;let r=[],i=null,s=(0,EA.getDirectivesInExtensions)(e,n),o;return s!=null?o=eg(t,s):o=(u=e.astNode)==null?void 0:u.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=c1(e.deprecationReason)),i==null?r:[i].concat(r)}Mt.getDeprecatableDirectiveNodes=Yh;function gA(e,t,n){var r;return{kind:_t.Kind.INPUT_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},type:(0,Pl.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,NA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Yh(e,t,n)}}Mt.astFromArg=gA;function t1(e,t,n){return{kind:_t.Kind.OBJECT_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>IA(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Pl.astFromType)(r)),directives:kl(e,t,n)}}Mt.astFromObjectType=t1;function n1(e,t,n){let r={kind:_t.Kind.INTERFACE_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>IA(i,t,n)),directives:kl(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Pl.astFromType)(i))),r}Mt.astFromInterfaceType=n1;function r1(e,t,n){return{kind:_t.Kind.UNION_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:kl(e,t,n),types:e.getTypes().map(r=>(0,Pl.astFromType)(r))}}Mt.astFromUnionType=r1;function i1(e,t,n){return{kind:_t.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>a1(r,t,n)),directives:kl(e,t,n)}}Mt.astFromInputObjectType=i1;function s1(e,t,n){return{kind:_t.Kind.ENUM_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>u1(r,t,n)),directives:kl(e,t,n)}}Mt.astFromEnumType=s1;function o1(e,t,n){var o;let r=(0,EA.getDirectivesInExtensions)(e,n),i=r?eg(t,r):((o=e.astNode)==null?void 0:o.directives)||[],s=e.specifiedByUrl||e.specifiedByURL;if(s&&!i.some(u=>u.name.value==="specifiedBy")){let u={url:s};i.push(Qh("specifiedBy",u))}return{kind:_t.Kind.SCALAR_TYPE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:i}}Mt.astFromScalarType=o1;function IA(e,t,n){return{kind:_t.Kind.FIELD_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},arguments:e.args.map(r=>gA(r,t,n)),type:(0,Pl.astFromType)(e.type),directives:Yh(e,t,n)}}Mt.astFromField=IA;function a1(e,t,n){var r;return{kind:_t.Kind.INPUT_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},type:(0,Pl.astFromType)(e.type),directives:Yh(e,t,n),defaultValue:(r=(0,NA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Mt.astFromInputField=a1;function u1(e,t,n){return{kind:_t.Kind.ENUM_VALUE_DEFINITION,description:(0,qs.getDescriptionNode)(e),name:{kind:_t.Kind.NAME,value:e.name},directives:Yh(e,t,n)}}Mt.astFromEnumValue=u1;function c1(e){return Qh("deprecated",{reason:e},_t.GraphQLDeprecatedDirective)}Mt.makeDeprecatedDirective=c1;function Qh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=(0,NA.astFromValue)(o,i.type);u&&r.push({kind:_t.Kind.ARGUMENT,name:{kind:_t.Kind.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=(0,goe.astFromValueUntyped)(s);o&&r.push({kind:_t.Kind.ARGUMENT,name:{kind:_t.Kind.NAME,value:i},value:o})}return{kind:_t.Kind.DIRECTIVE,name:{kind:_t.Kind.NAME,value:e},arguments:r}}Mt.makeDirectiveNode=Qh;function eg(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Qh(r,o,s));else n.push(Qh(r,i,s))}return n}Mt.makeDirectiveNodes=eg});var d1=V(Ip=>{"use strict";m();T();h();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.createDefaultRules=Ip.validateGraphQlDocuments=void 0;var Jh=(Fe(),xe(Me));function boe(e,t,n=l1()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Jh.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let s={kind:Jh.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Jh.validate)(e,s,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` + at ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return o}Ip.validateGraphQlDocuments=boe;function l1(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Jh.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Jh.specifiedRules.filter(t=>!e.includes(t.name))}Ip.createDefaultRules=l1});var p1=V(tg=>{"use strict";m();T();h();Object.defineProperty(tg,"__esModule",{value:!0});tg.parseGraphQLJSON=void 0;var Ooe=(Fe(),xe(Me));function Soe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Doe(e){return JSON.parse(Soe(e))}function Aoe(e,t,n){let r=Doe(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Ooe.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")}tg.parseGraphQLJSON=Aoe});var bA=V(dr=>{"use strict";m();T();h();Object.defineProperty(dr,"__esModule",{value:!0});dr.getBlockStringIndentation=dr.dedentBlockStringValue=dr.getLeadingCommentBlock=dr.getComment=dr.getDescription=dr.printWithComments=dr.printComment=dr.pushComment=dr.collectComment=dr.resetComments=void 0;var T1=(Fe(),xe(Me)),Roe=80,vp={};function Foe(){vp={}}dr.resetComments=Foe;function woe(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(zh(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)zh(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(zh(r,t,r.name.value),Coe(r)&&r.arguments)for(let i of r.arguments)zh(i,t,r.name.value,i.name.value)}break}}dr.collectComment=woe;function zh(e,t,n,r){let i=_A(e);if(typeof i!="string"||i.length===0)return;let s=[t];n&&(s.push(n),r&&s.push(r));let o=s.join(".");vp[o]||(vp[o]=[]),vp[o].push(i)}dr.pushComment=zh;function y1(e){return` # `+e.replace(/\n/g,` -# `)}lr.printComment=y1;function Ve(e,t){return e?e.filter(n=>n).join(t||""):""}function f1(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +# `)}dr.printComment=y1;function Ve(e,t){return e?e.filter(n=>n).join(t||""):""}function f1(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` `)))!=null?t:!1}function Loe(e){return(t,n,r,i,s)=>{var p;let o=[],u=i.reduce((y,N)=>(["fields","arguments","values"].includes(N)&&y.name&&o.push(y.name.value),y[N]),s[0]),l=[...o,(p=u==null?void 0:u.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&vp[l]&&d.push(...vp[l]),Ve([...d.map(y1),t.description,e(t,n,r,i,s)],` `)}}function Hh(e){return e&&` ${e.replace(/\n/g,` `)}`}function go(e){return e&&e.length!==0?`{ ${Hh(Ve(e,` `))} -}`:""}function er(e,t,n){return t?e+t+(n||""):""}function Poe(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +}`:""}function tr(e,t,n){return t?e+t+(n||""):""}function Poe(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` `)===-1?`"""${n.replace(/"$/,`" `)}"""`:`""" ${t?n:Hh(n)} """`}var m1={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ve(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=er("(",Ve(e.variableDefinitions,", "),")");return Ve([e.operation,Ve([e.name,t]),Ve(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+er(" = ",n)+er(" ",Ve(r," "))},SelectionSet:{leave:({selections:e})=>go(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=er("",e,": ")+t,o=s+er("(",Ve(n,", "),")");return o.length>Roe&&(o=s+er(`( +`)},OperationDefinition:{leave:e=>{let t=tr("(",Ve(e.variableDefinitions,", "),")");return Ve([e.operation,Ve([e.name,t]),Ve(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+tr(" = ",n)+tr(" ",Ve(r," "))},SelectionSet:{leave:({selections:e})=>go(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=tr("",e,": ")+t,o=s+tr("(",Ve(n,", "),")");return o.length>Roe&&(o=s+tr(`( `,Hh(Ve(n,` `)),` -)`)),Ve([o,Ve(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+er(" ",Ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ve(["...",er("on ",e),Ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${er("(",Ve(n,", "),")")} on ${t} ${er("",Ve(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Poe(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+er("(",Ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Ve(["schema",Ve(e," "),go(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Ve(["scalar",e,Ve(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["type",e,er("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(f1(t)?er(`( +)`)),Ve([o,Ve(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+tr(" ",Ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ve(["...",tr("on ",e),Ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${tr("(",Ve(n,", "),")")} on ${t} ${tr("",Ve(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Poe(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+tr("(",Ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Ve(["schema",Ve(e," "),go(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Ve(["scalar",e,Ve(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["type",e,tr("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(f1(t)?tr(`( `,Hh(Ve(t,` `)),` -)`):er("(",Ve(t,", "),")"))+": "+n+er(" ",Ve(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Ve([e+": "+t,er("= ",n),Ve(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["interface",e,er("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Ve(["union",e,Ve(t," "),er("= ",Ve(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Ve(["enum",e,Ve(t," "),go(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>Ve([e,Ve(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Ve(["input",e,Ve(t," "),go(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(f1(t)?er(`( +)`):tr("(",Ve(t,", "),")"))+": "+n+tr(" ",Ve(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Ve([e+": "+t,tr("= ",n),Ve(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["interface",e,tr("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Ve(["union",e,Ve(t," "),tr("= ",Ve(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Ve(["enum",e,Ve(t," "),go(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>Ve([e,Ve(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Ve(["input",e,Ve(t," "),go(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(f1(t)?tr(`( `,Hh(Ve(t,` `)),` -)`):er("(",Ve(t,", "),")"))+(n?" repeatable":"")+" on "+Ve(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ve(["extend schema",Ve(e," "),go(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ve(["extend scalar",e,Ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend type",e,er("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend interface",e,er("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ve(["extend union",e,Ve(t," "),er("= ",Ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ve(["extend enum",e,Ve(t," "),go(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ve(["extend input",e,Ve(t," "),go(n)]," ")}},koe=Object.keys(m1).reduce((e,t)=>K(k({},e),{[t]:{leave:Loe(m1[t].leave)}}),{});function xoe(e){return(0,T1.visit)(e,koe)}lr.printWithComments=xoe;function Coe(e){return e.kind==="FieldDefinition"}function Uoe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return _A(e)}lr.getDescription=Uoe;function _A(e){let t=N1(e);if(t!==void 0)return E1(` -${t}`)}lr.getComment=_A;function N1(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===T1.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` -`):void 0}lr.getLeadingCommentBlock=N1;function E1(e){let t=e.split(/\r\n|[\n\r]/g),n=g1(t);if(n!==0)for(let r=1;r0&&h1(t[0]);)t.shift();for(;t.length>0&&h1(t[t.length-1]);)t.pop();return t.join(` -`)}lr.dedentBlockStringValue=E1;function g1(e){let t=null;for(let n=1;n{"use strict";m();T();h();Object.defineProperty(bc,"__esModule",{value:!0});bc.isDescribable=bc.transformCommentsToDescriptions=bc.parseGraphQLSDL=void 0;var Ks=(we(),xe(Me)),v1=bA();function Moe(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=_1(t,n),n.noLocation&&(r=(0,Ks.parse)((0,Ks.print)(r),n))):r=(0,Ks.parse)(new Ks.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Ks.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}bc.parseGraphQLSDL=Moe;function _1(e,t={}){let n=(0,Ks.parse)(e,K(k({},t),{noLocation:!1}));return(0,Ks.visit)(n,{leave:i=>{if(b1(i)){let s=(0,v1.getLeadingCommentBlock)(i);if(s!==void 0){let o=(0,v1.dedentBlockStringValue)(` +)`):tr("(",Ve(t,", "),")"))+(n?" repeatable":"")+" on "+Ve(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ve(["extend schema",Ve(e," "),go(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ve(["extend scalar",e,Ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend type",e,tr("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend interface",e,tr("implements ",Ve(t," & ")),Ve(n," "),go(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ve(["extend union",e,Ve(t," "),tr("= ",Ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ve(["extend enum",e,Ve(t," "),go(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ve(["extend input",e,Ve(t," "),go(n)]," ")}},koe=Object.keys(m1).reduce((e,t)=>K(k({},e),{[t]:{leave:Loe(m1[t].leave)}}),{});function xoe(e){return(0,T1.visit)(e,koe)}dr.printWithComments=xoe;function Coe(e){return e.kind==="FieldDefinition"}function Uoe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return _A(e)}dr.getDescription=Uoe;function _A(e){let t=N1(e);if(t!==void 0)return E1(` +${t}`)}dr.getComment=_A;function N1(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===T1.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` +`):void 0}dr.getLeadingCommentBlock=N1;function E1(e){let t=e.split(/\r\n|[\n\r]/g),n=g1(t);if(n!==0)for(let r=1;r0&&h1(t[0]);)t.shift();for(;t.length>0&&h1(t[t.length-1]);)t.pop();return t.join(` +`)}dr.dedentBlockStringValue=E1;function g1(e){let t=null;for(let n=1;n{"use strict";m();T();h();Object.defineProperty(bc,"__esModule",{value:!0});bc.isDescribable=bc.transformCommentsToDescriptions=bc.parseGraphQLSDL=void 0;var Ks=(Fe(),xe(Me)),v1=bA();function Moe(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=_1(t,n),n.noLocation&&(r=(0,Ks.parse)((0,Ks.print)(r),n))):r=(0,Ks.parse)(new Ks.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Ks.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}bc.parseGraphQLSDL=Moe;function _1(e,t={}){let n=(0,Ks.parse)(e,K(k({},t),{noLocation:!1}));return(0,Ks.visit)(n,{leave:i=>{if(b1(i)){let s=(0,v1.getLeadingCommentBlock)(i);if(s!==void 0){let o=(0,v1.dedentBlockStringValue)(` `+s),u=o.includes(` `);return i.description?K(k({},i),{description:K(k({},i.description),{value:i.description.value+` -`+o,block:!0})}):K(k({},i),{description:{kind:Ks.Kind.STRING,value:o,block:u}})}}}})}bc.transformCommentsToDescriptions=_1;function b1(e){return(0,Ks.isTypeSystemDefinitionNode)(e)||e.kind===Ks.Kind.FIELD_DEFINITION||e.kind===Ks.Kind.INPUT_VALUE_DEFINITION||e.kind===Ks.Kind.ENUM_VALUE_DEFINITION}bc.isDescribable=b1});var P1=V(rg=>{"use strict";m();T();h();Object.defineProperty(rg,"__esModule",{value:!0});rg.buildOperationNodeForField=void 0;var bt=(we(),xe(Me)),R1=Gh(),DA=[],ng=new Map;function w1(e){DA.push(e)}function S1(){DA=[]}function D1(){ng=new Map}function Boe({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){S1(),D1();let d=(0,R1.getRootTypeNames)(e),p=Voe({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:s||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...DA],S1(),D1(),p}rg.buildOperationNodeForField=Boe;function Voe({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:d}){let p=(0,R1.getDefinedRootType)(e,n),y=p.getFields()[t],N=`${t}_${n}`;if(y.args)for(let I of y.args){let b=I.name;(!u||u.includes(b))&&w1(F1(I,b))}return{kind:bt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:bt.Kind.NAME,value:N},variableDefinitions:[],selectionSet:{kind:bt.Kind.SELECTION_SET,selections:[L1({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:s,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function SA({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){if(!(typeof N=="boolean"&&p>u)){if((0,bt.isUnionType)(t)){let b=t.getTypes();return{kind:bt.Kind.SELECTION_SET,selections:b.filter(C=>!OA([...s,C],{depth:l})).map(C=>({kind:bt.Kind.INLINE_FRAGMENT,typeCondition:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:C.name}},selectionSet:SA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var j,Q;return((Q=(j=C==null?void 0:C.selectionSet)==null?void 0:j.selections)==null?void 0:Q.length)>0})}}if((0,bt.isInterfaceType)(t)){let b=Object.values(d.getTypeMap()).filter(C=>(0,bt.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:bt.Kind.SELECTION_SET,selections:b.filter(C=>!OA([...s,C],{depth:l})).map(C=>({kind:bt.Kind.INLINE_FRAGMENT,typeCondition:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:C.name}},selectionSet:SA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var j,Q;return((Q=(j=C==null?void 0:C.selectionSet)==null?void 0:j.selections)==null?void 0:Q.length)>0})}}if((0,bt.isObjectType)(t)&&!I.has(t.name)){let b=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=n.includes(t.name);if(!r&&C&&!b)return{kind:bt.Kind.SELECTION_SET,selections:[{kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:"id"}}]};let j=t.getFields();return{kind:bt.Kind.SELECTION_SET,selections:Object.keys(j).filter(Q=>!OA([...s,(0,bt.getNamedType)(j[Q].type)],{depth:l})).map(Q=>{let re=typeof N=="object"?N[Q]:!0;return re?L1({type:t,field:j[Q],models:n,path:[...i,Q],ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:re,rootTypeNames:I}):null}).filter(Q=>{var re,se;return Q==null?!1:"selectionSet"in Q?!!((se=(re=Q.selectionSet)==null?void 0:re.selections)!=null&&se.length):!0})}}}}function F1(e,t){function n(r){return(0,bt.isListType)(r)?{kind:bt.Kind.LIST_TYPE,type:n(r.ofType)}:(0,bt.isNonNullType)(r)?{kind:bt.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:r.name}}}return{kind:bt.Kind.VARIABLE_DEFINITION,variable:{kind:bt.Kind.VARIABLE,name:{kind:bt.Kind.NAME,value:t||e.name}},type:n(e.type)}}function A1(e,t){return[...t,e].join("_")}function L1({type:e,field:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){let b=(0,bt.getNamedType)(t.type),C=[],j=!1;if(t.args&&t.args.length&&(C=t.args.map(pe=>{let ye=A1(pe.name,i);return y&&!y.includes(ye)?((0,bt.isNonNullType)(pe.type)&&(j=!0),null):(r||w1(F1(pe,ye)),{kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:pe.name},value:{kind:bt.Kind.VARIABLE,name:{kind:bt.Kind.NAME,value:A1(pe.name,i)}}})}).filter(Boolean)),j)return null;let Q=[...i,t.name],re=Q.join("."),se=t.name;return ng.has(re)&&ng.get(re)!==t.type.toString()&&(se+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),ng.set(re,t.type.toString()),!(0,bt.isScalarType)(b)&&!(0,bt.isEnumType)(b)?K(k({kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:bt.Kind.NAME,value:se}}),{selectionSet:SA({parent:e,type:b,models:n,firstCall:r,path:Q,ancestors:[...s,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:N,rootTypeNames:I})||void 0,arguments:C}):K(k({kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:bt.Kind.NAME,value:se}}),{arguments:C})}function OA(e,t={depth:1}){let n=e[e.length-1];return(0,bt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var x1=V(ig=>{"use strict";m();T();h();Object.defineProperty(ig,"__esModule",{value:!0});ig.DirectiveLocation=void 0;var k1;(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"})(k1||(ig.DirectiveLocation=k1={}))});var xl=V(sg=>{"use strict";m();T();h();Object.defineProperty(sg,"__esModule",{value:!0});sg.MapperKind=void 0;var C1;(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"})(C1||(sg.MapperKind=C1={}))});var AA=V(og=>{"use strict";m();T();h();Object.defineProperty(og,"__esModule",{value:!0});og.getObjectTypeFromTypeMap=void 0;var joe=(we(),xe(Me));function $oe(e,t){if(t){let n=e[t.name];if((0,joe.isObjectType)(n))return n}}og.getObjectTypeFromTypeMap=$oe});var FA=V(na=>{"use strict";m();T();h();Object.defineProperty(na,"__esModule",{value:!0});na.getBuiltInForStub=na.isNamedStub=na.createStub=na.createNamedStub=void 0;var Kr=(we(),xe(Me));function RA(e,t){let n;return t==="object"?n=Kr.GraphQLObjectType:t==="interface"?n=Kr.GraphQLInterfaceType:n=Kr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Kr.GraphQLString}}})}na.createNamedStub=RA;function wA(e,t){switch(e.kind){case Kr.Kind.LIST_TYPE:return new Kr.GraphQLList(wA(e.type,t));case Kr.Kind.NON_NULL_TYPE:return new Kr.GraphQLNonNull(wA(e.type,t));default:return t==="output"?RA(e.name.value,"object"):RA(e.name.value,"input")}}na.createStub=wA;function qoe(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}na.isNamedStub=qoe;function Koe(e){switch(e.name){case Kr.GraphQLInt.name:return Kr.GraphQLInt;case Kr.GraphQLFloat.name:return Kr.GraphQLFloat;case Kr.GraphQLString.name:return Kr.GraphQLString;case Kr.GraphQLBoolean.name:return Kr.GraphQLBoolean;case Kr.GraphQLID.name:return Kr.GraphQLID;default:return e}}na.getBuiltInForStub=Koe});var ug=V(ag=>{"use strict";m();T();h();Object.defineProperty(ag,"__esModule",{value:!0});ag.rewireTypes=void 0;var Sr=(we(),xe(Me)),U1=FA();function Goe(e,t){let n=Object.create(null);for(let N in e)n[N]=e[N];let r=Object.create(null);for(let N in n){let I=n[N];if(I==null||N.startsWith("__"))continue;let b=I.name;if(!b.startsWith("__")){if(r[b]!=null){console.warn(`Duplicate schema type name ${b} found; keeping the existing one found in the schema`);continue}r[b]=I}}for(let N in r)r[N]=u(r[N]);let i=t.map(N=>s(N));return{typeMap:r,directives:i};function s(N){if((0,Sr.isSpecifiedDirective)(N))return N;let I=N.toConfig();return I.args=o(I.args),new Sr.GraphQLDirective(I)}function o(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&(C.type=j,I[b]=C)}return I}function u(N){if((0,Sr.isObjectType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>l(I.fields),interfaces:()=>p(I.interfaces)});return new Sr.GraphQLObjectType(b)}else if((0,Sr.isInterfaceType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>l(I.fields)});return"interfaces"in b&&(b.interfaces=()=>p(I.interfaces)),new Sr.GraphQLInterfaceType(b)}else if((0,Sr.isUnionType)(N)){let I=N.toConfig(),b=K(k({},I),{types:()=>p(I.types)});return new Sr.GraphQLUnionType(b)}else if((0,Sr.isInputObjectType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>d(I.fields)});return new Sr.GraphQLInputObjectType(b)}else if((0,Sr.isEnumType)(N)){let I=N.toConfig();return new Sr.GraphQLEnumType(I)}else if((0,Sr.isScalarType)(N)){if((0,Sr.isSpecifiedScalarType)(N))return N;let I=N.toConfig();return new Sr.GraphQLScalarType(I)}throw new Error(`Unexpected schema type: ${N}`)}function l(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&C.args&&(C.type=j,C.args=o(C.args),I[b]=C)}return I}function d(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&(C.type=j,I[b]=C)}return I}function p(N){let I=[];for(let b of N){let C=y(b);C!=null&&I.push(C)}return I}function y(N){if((0,Sr.isListType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLList(I):null}else if((0,Sr.isNonNullType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLNonNull(I):null}else if((0,Sr.isNamedType)(N)){let I=n[N.name];return I===void 0&&(I=(0,U1.isNamedStub)(N)?(0,U1.getBuiltInForStub)(N):u(N),r[I.name]=n[N.name]=I),I!=null?r[I.name]:null}return null}}ag.rewireTypes=Goe});var LA=V(ra=>{"use strict";m();T();h();Object.defineProperty(ra,"__esModule",{value:!0});ra.parseInputValueLiteral=ra.parseInputValue=ra.serializeInputValue=ra.transformInputValue=void 0;var cg=(we(),xe(Me)),Qoe=jh();function _p(e,t,n=null,r=null){if(t==null)return t;let i=(0,cg.getNullableType)(e);if((0,cg.isLeafType)(i))return n!=null?n(i,t):t;if((0,cg.isListType)(i))return(0,Qoe.asArray)(t).map(s=>_p(i.ofType,s,n,r));if((0,cg.isInputObjectType)(i)){let s=i.getFields(),o={};for(let u in t){let l=s[u];l!=null&&(o[u]=_p(l.type,t[u],n,r))}return r!=null?r(i,o):o}}ra.transformInputValue=_p;function Yoe(e,t){return _p(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}ra.serializeInputValue=Yoe;function Joe(e,t){return _p(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}ra.parseInputValue=Joe;function zoe(e,t){return _p(e,t,(n,r)=>n.parseLiteral(r,{}))}ra.parseInputValueLiteral=zoe});var Sp=V(Op=>{"use strict";m();T();h();Object.defineProperty(Op,"__esModule",{value:!0});Op.correctASTNodes=Op.mapSchema=void 0;var yt=(we(),xe(Me)),bp=AA(),Jt=xl(),Hoe=ug(),M1=LA();function Woe(e,t={}){let n=j1(V1(PA(B1(Xoe(PA(B1(e.getTypeMap(),e,M1.serializeInputValue),e,t,u=>(0,yt.isLeafType)(u)),e,t),e,M1.parseInputValue),e,t,u=>!(0,yt.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=Zoe(r,e,t),{typeMap:s,directives:o}=(0,Hoe.rewireTypes)(n,i);return new yt.GraphQLSchema(K(k({},e.toConfig()),{query:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(s),directives:o}))}Op.mapSchema=Woe;function PA(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")){let o=e[s];if(o==null||!r(o)){i[s]=o;continue}let u=tae(t,n,s);if(u==null){i[s]=o;continue}let l=u(o,t);if(l===void 0){i[s]=o;continue}i[s]=l}return i}function Xoe(e,t,n){let r=oae(n);return r?PA(e,t,{[Jt.MapperKind.ENUM_TYPE]:i=>{let s=i.toConfig(),o=s.values,u={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)u[l]=d;else if(Array.isArray(p)){let[y,N]=p;u[y]=N===void 0?d:N}else p!==null&&(u[l]=p)}return Wh(new yt.GraphQLEnumType(K(k({},s),{values:u})))}},i=>(0,yt.isEnumType)(i)):e}function B1(e,t,n){let r=j1(e,t,{[Jt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let s=lg(e,i.type);if(s!=null)return K(k({},i),{defaultValue:n(s,i.defaultValue)})}});return V1(r,t,{[Jt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let s=lg(r,i.type);if(s!=null)return K(k({},i),{defaultValue:n(s,i.defaultValue)})}})}function lg(e,t){if((0,yt.isListType)(t)){let n=lg(e,t.ofType);return n!=null?new yt.GraphQLList(n):null}else if((0,yt.isNonNullType)(t)){let n=lg(e,t.ofType);return n!=null?new yt.GraphQLNonNull(n):null}else if((0,yt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function V1(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)&&!(0,yt.isInputObjectType)(s)){r[i]=s;continue}let o=rae(t,n,i);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=o(y,p,i,t);if(N===void 0)d[p]=y;else if(Array.isArray(N)){let[I,b]=N;b.astNode!=null&&(b.astNode=K(k({},b.astNode),{name:K(k({},b.astNode.name),{value:I})})),d[I]=b===void 0?y:b}else N!==null&&(d[p]=N)}(0,yt.isObjectType)(s)?r[i]=Wh(new yt.GraphQLObjectType(K(k({},u),{fields:d}))):(0,yt.isInterfaceType)(s)?r[i]=Wh(new yt.GraphQLInterfaceType(K(k({},u),{fields:d}))):r[i]=Wh(new yt.GraphQLInputObjectType(K(k({},u),{fields:d})))}return r}function j1(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)){r[i]=s;continue}let o=iae(n);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=y.args;if(N==null){d[p]=y;continue}let I=Object.keys(N);if(!I.length){d[p]=y;continue}let b={};for(let C of I){let j=N[C],Q=o(j,p,i,t);if(Q===void 0)b[C]=j;else if(Array.isArray(Q)){let[re,se]=Q;b[re]=se}else Q!==null&&(b[C]=Q)}d[p]=K(k({},y),{args:b})}(0,yt.isObjectType)(s)?r[i]=new yt.GraphQLObjectType(K(k({},u),{fields:d})):(0,yt.isInterfaceType)(s)?r[i]=new yt.GraphQLInterfaceType(K(k({},u),{fields:d})):r[i]=new yt.GraphQLInputObjectType(K(k({},u),{fields:d}))}return r}function Zoe(e,t,n){let r=sae(n);if(r==null)return e.slice();let i=[];for(let s of e){let o=r(s,t);o===void 0?i.push(s):o!==null&&i.push(o)}return i}function eae(e,t){var i,s,o;let n=e.getType(t),r=[Jt.MapperKind.TYPE];return(0,yt.isObjectType)(n)?(r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.QUERY):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.SUBSCRIPTION)):(0,yt.isInputObjectType)(n)?r.push(Jt.MapperKind.INPUT_OBJECT_TYPE):(0,yt.isInterfaceType)(n)?r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.ABSTRACT_TYPE,Jt.MapperKind.INTERFACE_TYPE):(0,yt.isUnionType)(n)?r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.ABSTRACT_TYPE,Jt.MapperKind.UNION_TYPE):(0,yt.isEnumType)(n)?r.push(Jt.MapperKind.ENUM_TYPE):(0,yt.isScalarType)(n)&&r.push(Jt.MapperKind.SCALAR_TYPE),r}function tae(e,t,n){let r=eae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function nae(e,t){var i,s,o;let n=e.getType(t),r=[Jt.MapperKind.FIELD];return(0,yt.isObjectType)(n)?(r.push(Jt.MapperKind.COMPOSITE_FIELD,Jt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.QUERY_ROOT_FIELD):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,yt.isInterfaceType)(n)?r.push(Jt.MapperKind.COMPOSITE_FIELD,Jt.MapperKind.INTERFACE_FIELD):(0,yt.isInputObjectType)(n)&&r.push(Jt.MapperKind.INPUT_OBJECT_FIELD),r}function rae(e,t,n){let r=nae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function iae(e){let t=e[Jt.MapperKind.ARGUMENT];return t!=null?t:null}function sae(e){let t=e[Jt.MapperKind.DIRECTIVE];return t!=null?t:null}function oae(e){let t=e[Jt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Wh(e){if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLObjectType(t)}else if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInterfaceType(t)}else if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInputObjectType(t)}else if((0,yt.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=K(k({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{values:void 0}))),new yt.GraphQLEnumType(t)}else return e}Op.correctASTNodes=Wh});var $1=V(pg=>{"use strict";m();T();h();Object.defineProperty(pg,"__esModule",{value:!0});pg.filterSchema=void 0;var dg=(we(),xe(Me)),Ka=xl(),aae=Sp();function uae({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0}){return(0,aae.mapSchema)(e,{[Ka.MapperKind.QUERY]:d=>kA(d,"Query",r,u),[Ka.MapperKind.MUTATION]:d=>kA(d,"Mutation",r,u),[Ka.MapperKind.SUBSCRIPTION]:d=>kA(d,"Subscription",r,u),[Ka.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLObjectType,d,i||n,u):null,[Ka.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLInterfaceType,d,s||n,u):null,[Ka.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLInputObjectType,d,o||n):null,[Ka.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[Ka.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[Ka.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}pg.filterSchema=uae;function kA(e,t,n,r){if(n||r){let i=e.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t,s,i.fields[s]))delete i.fields[s];else if(r&&o.args)for(let u in o.args)r(t,s,u,o.args[u])||delete o.args[u]}return new dg.GraphQLObjectType(i)}return e}function xA(e,t,n,r){if(n||r){let i=t.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t.name,s,i.fields[s]))delete i.fields[s];else if(r&&"args"in o)for(let u in o.args)r(t.name,s,u,o.args[u])||delete o.args[u]}return new e(i)}}});var K1=V(Dp=>{"use strict";m();T();h();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.healTypes=Dp.healSchema=void 0;var ia=(we(),xe(Me));function cae(e){return q1(e.getTypeMap(),e.getDirectives()),e}Dp.healSchema=cae;function q1(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.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]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,ia.isObjectType)(d)){i(d),s(d);return}else if((0,ia.isInterfaceType)(d)){i(d),"getInterfaces"in d&&s(d);return}else if((0,ia.isUnionType)(d)){u(d);return}else if((0,ia.isInputObjectType)(d)){o(d);return}else if((0,ia.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.args.map(I=>(I.type=l(I.type),I.type===null?null:I)).filter(Boolean),N.type=l(N.type),N.type===null&&delete p[y]}function s(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.type=l(N.type),N.type===null&&delete p[y]}function u(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,ia.isListType)(d)){let p=l(d.ofType);return p!=null?new ia.GraphQLList(p):null}else if((0,ia.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new ia.GraphQLNonNull(p):null}else if((0,ia.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}Dp.healTypes=q1});var G1=V(fg=>{"use strict";m();T();h();Object.defineProperty(fg,"__esModule",{value:!0});fg.getResolversFromSchema=void 0;var Cl=(we(),xe(Me));function lae(e,t){var i,s;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let u=r[o];if((0,Cl.isScalarType)(u)){if(!(0,Cl.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[o]=new Cl.GraphQLScalarType(l)}}else if((0,Cl.isEnumType)(u)){n[o]={};let l=u.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,Cl.isInterfaceType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Cl.isUnionType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Cl.isObjectType)(u)){n[o]={},u.isTypeOf!=null&&(n[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((s=p.resolve)==null?void 0:s.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}fg.getResolversFromSchema=lae});var Y1=V(mg=>{"use strict";m();T();h();Object.defineProperty(mg,"__esModule",{value:!0});mg.forEachField=void 0;var Q1=(we(),xe(Me));function dae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,Q1.getNamedType)(i).name.startsWith("__")&&(0,Q1.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];t(u,r,o)}}}}mg.forEachField=dae});var J1=V(hg=>{"use strict";m();T();h();Object.defineProperty(hg,"__esModule",{value:!0});hg.forEachDefaultValue=void 0;var CA=(we(),xe(Me));function pae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,CA.getNamedType)(i).name.startsWith("__")){if((0,CA.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,CA.isInputObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}hg.forEachDefaultValue=pae});var BA=V(Tg=>{"use strict";m();T();h();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.addTypes=void 0;var UA=(we(),xe(Me)),MA=AA(),fae=ug();function mae(e,t){let n=e.toConfig(),r={};for(let u of n.types)r[u.name]=u;let i={};for(let u of n.directives)i[u.name]=u;for(let u of t)(0,UA.isNamedType)(u)?r[u.name]=u:(0,UA.isDirective)(u)&&(i[u.name]=u);let{typeMap:s,directives:o}=(0,fae.rewireTypes)(r,Object.values(i));return new UA.GraphQLSchema(K(k({},n),{query:(0,MA.getObjectTypeFromTypeMap)(s,e.getQueryType()),mutation:(0,MA.getObjectTypeFromTypeMap)(s,e.getMutationType()),subscription:(0,MA.getObjectTypeFromTypeMap)(s,e.getSubscriptionType()),types:Object.values(s),directives:o}))}Tg.addTypes=mae});var H1=V(Ng=>{"use strict";m();T();h();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.pruneSchema=void 0;var kr=(we(),xe(Me)),hae=fA(),Tae=xl(),yae=Sp(),Nae=Gh();function Eae(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:s,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let d=gae(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let N=l.getType(y);N&&i(N)&&p.push(y)}d=z1(p,l,d)}u=[],l=(0,yae.mapSchema)(l,{[Tae.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,kr.isSpecifiedScalarType)(p)?((0,kr.isUnionType)(p)||(0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p)||(0,kr.isScalarType)(p))&&(o||(0,kr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,kr.isInterfaceType)(p)&&s)?p:(u.push(p.name),d.delete(p.name),null):p})}while(u.length);return l}Ng.pruneSchema=Eae;function gae(e){let t=[];for(let n of(0,Nae.getRootTypes)(e))t.push(n.name);return z1(t,e)}function z1(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 s=t.getType(i);if(s){if((0,kr.isUnionType)(s)&&e.push(...s.getTypes().map(o=>o.name)),(0,kr.isInterfaceType)(s)&&r[i]===!0&&(e.push(...(0,hae.getImplementingTypes)(s.name,t)),r[i]=!1),(0,kr.isEnumType)(s)&&e.push(...s.getValues().flatMap(o=>o.astNode?yg(t,o.astNode):[])),"getInterfaces"in s&&e.push(...s.getInterfaces().map(o=>o.name)),"getFields"in s){let o=s.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,kr.isObjectType)(s)&&e.push(...l.args.flatMap(p=>{let y=[(0,kr.getNamedType)(p.type).name];return p.astNode&&y.push(...yg(t,p.astNode)),y}));let d=(0,kr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...yg(t,l.astNode)),(0,kr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}s.astNode&&e.push(...yg(t,s.astNode)),n.add(i)}}return n}function yg(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,s;return(s=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,kr.getNamedType)(o.type).name))!=null?s:[]})}});var X1=V(Eg=>{"use strict";m();T();h();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.mergeDeep=void 0;var Iae=jh();function W1(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let s of e)if(VA(r)&&VA(s)){if(t){let o=Object.getPrototypeOf(i),u=Object.getPrototypeOf(s);if(u)for(let l of Object.getOwnPropertyNames(u)){let d=Object.getOwnPropertyDescriptor(u,l);(0,Iae.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in s)VA(s[o])?o in i?i[o]=W1([i[o],s[o]],t,n):Object.assign(i,{[o]:s[o]}):n&&Array.isArray(i[o])?Array.isArray(s[o])?i[o].push(...s[o]):i[o].push(s[o]):Object.assign(i,{[o]:s[o]})}else if(n&&Array.isArray(r))Array.isArray(s)?r.push(...s):r.push(s);else if(n&&Array.isArray(s))return[r,...s];return i}Eg.mergeDeep=W1;function VA(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var Z1=V(gg=>{"use strict";m();T();h();Object.defineProperty(gg,"__esModule",{value:!0});gg.parseSelectionSet=void 0;var vae=(we(),xe(Me));function _ae(e,t){return(0,vae.parse)(e,t).definitions[0].selectionSet}gg.parseSelectionSet=_ae});var e$=V(Ig=>{"use strict";m();T();h();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.getResponseKeyFromInfo=void 0;function bae(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}Ig.getResponseKeyFromInfo=bae});var t$=V(sa=>{"use strict";m();T();h();Object.defineProperty(sa,"__esModule",{value:!0});sa.modifyObjectFields=sa.selectObjectFields=sa.removeObjectFields=sa.appendObjectFields=void 0;var vg=(we(),xe(Me)),Oae=BA(),_g=xl(),Ul=Sp();function Sae(e,t,n){return e.getType(t)==null?(0,Oae.addTypes)(e,[new vg.GraphQLObjectType({name:t,fields:n})]):(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),s=i.fields,o={};for(let u in s)o[u]=s[u];for(let u in n)o[u]=n[u];return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},i),{fields:o})))}}})}sa.appendObjectFields=Sae;function Dae(e,t,n){let r={};return[(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let o=s.toConfig(),u=o.fields,l={};for(let d in u){let p=u[d];n(d,p)?r[d]=p:l[d]=p}return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},o),{fields:l})))}}}),r]}sa.removeObjectFields=Dae;function Aae(e,t,n){let r={};return(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];n(u,l)&&(r[u]=l)}}}}),r}sa.selectObjectFields=Aae;function Rae(e,t,n,r){let i={};return[(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},u),{fields:d})))}}}),i]}sa.modifyObjectFields=Rae});var n$=V(bg=>{"use strict";m();T();h();Object.defineProperty(bg,"__esModule",{value:!0});bg.renameType=void 0;var Gs=(we(),xe(Me));function wae(e,t){if((0,Gs.isObjectType)(e))return new Gs.GraphQLObjectType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isInterfaceType)(e))return new Gs.GraphQLInterfaceType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isUnionType)(e))return new Gs.GraphQLUnionType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isInputObjectType)(e))return new Gs.GraphQLInputObjectType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isEnumType)(e))return new Gs.GraphQLEnumType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isScalarType)(e))return new Gs.GraphQLScalarType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}bg.renameType=wae});var s$=V(Og=>{"use strict";m();T();h();Object.defineProperty(Og,"__esModule",{value:!0});Og.mapAsyncIterator=void 0;var Fae=qh();function Lae(e,t,n,r){let i,s,o;r&&(o=d=>{let p=r();return(0,Fae.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,s=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function u(d){return d.done?o?o(d):d:r$(d.value,t).then(i$,s)}let l;if(n){let d=n;l=p=>r$(p,d).then(i$,s)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):Promise.reject(d).catch(s)},[Symbol.asyncIterator](){return this}}}Og.mapAsyncIterator=Lae;function r$(e,t){return new Promise(n=>n(t(e)))}function i$(e){return{value:e,done:!1}}});var o$=V(Ap=>{"use strict";m();T();h();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.createVariableNameGenerator=Ap.updateArgument=void 0;var Ml=(we(),xe(Me)),Pae=hA();function kae(e,t,n,r,i,s,o){if(e[r]={kind:Ml.Kind.ARGUMENT,name:{kind:Ml.Kind.NAME,value:r},value:{kind:Ml.Kind.VARIABLE,name:{kind:Ml.Kind.NAME,value:i}}},t[i]={kind:Ml.Kind.VARIABLE_DEFINITION,variable:{kind:Ml.Kind.VARIABLE,name:{kind:Ml.Kind.NAME,value:i}},type:(0,Pae.astFromType)(s)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Ap.updateArgument=kae;function xae(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Ap.createVariableNameGenerator=xae});var a$=V(Sg=>{"use strict";m();T();h();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.implementsAbstractType=void 0;var jA=(we(),xe(Me));function Cae(e,t,n){return n==null||t==null?!1:t===n?!0:(0,jA.isCompositeType)(t)&&(0,jA.isCompositeType)(n)?(0,jA.doTypesOverlap)(e,t,n):!1}Sg.implementsAbstractType=Cae});var u$=V(Dg=>{"use strict";m();T();h();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.observableToAsyncIterable=void 0;function Uae(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},s=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},u=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){s(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?u():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}Dg.observableToAsyncIterable=Uae});var c$=V(Ag=>{"use strict";m();T();h();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.AccumulatorMap=void 0;var $A=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)}};Ag.AccumulatorMap=$A});var qA=V(Rp=>{"use strict";m();T();h();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.GraphQLStreamDirective=Rp.GraphQLDeferDirective=void 0;var Qs=(we(),xe(Me));Rp.GraphQLDeferDirective=new Qs.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Qs.DirectiveLocation.FRAGMENT_SPREAD,Qs.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Qs.GraphQLNonNull(Qs.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Qs.GraphQLString,description:"Unique name"}}});Rp.GraphQLStreamDirective=new Qs.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Qs.DirectiveLocation.FIELD],args:{if:{type:new Qs.GraphQLNonNull(Qs.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Qs.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Qs.GraphQLInt,description:"Number of items to return immediately"}}})});var QA=V(Ki=>{"use strict";m();T();h();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.collectSubFields=Ki.getDeferValues=Ki.getFieldEntryKey=Ki.doesFragmentConditionMatch=Ki.shouldIncludeNode=Ki.collectFields=void 0;var oa=(we(),xe(Me)),wg=c$(),Mae=qA(),Bae=gp();function wp(e,t,n,r,i,s,o,u){for(let l of i.selections)switch(l.kind){case oa.Kind.FIELD:{if(!Rg(n,l))continue;s.add(l$(l),l);break}case oa.Kind.INLINE_FRAGMENT:{if(!Rg(n,l)||!KA(e,l,r))continue;let d=GA(n,l);if(d){let p=new wg.AccumulatorMap;wp(e,t,n,r,l.selectionSet,p,o,u),o.push({label:d.label,fields:p})}else wp(e,t,n,r,l.selectionSet,s,o,u);break}case oa.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!Rg(n,l))continue;let p=GA(n,l);if(u.has(d)&&!p)continue;let y=t[d];if(!y||!KA(e,y,r))continue;if(p||u.add(d),p){let N=new wg.AccumulatorMap;wp(e,t,n,r,y.selectionSet,N,o,u),o.push({label:p.label,fields:N})}else wp(e,t,n,r,y.selectionSet,s,o,u);break}}}function Vae(e,t,n,r,i){let s=new wg.AccumulatorMap,o=[];return wp(e,t,n,r,i,s,o,new Set),{fields:s,patches:o}}Ki.collectFields=Vae;function Rg(e,t){let n=(0,oa.getDirectiveValues)(oa.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,oa.getDirectiveValues)(oa.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Ki.shouldIncludeNode=Rg;function KA(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,oa.typeFromAST)(e,r);return i===n?!0:(0,oa.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Ki.doesFragmentConditionMatch=KA;function l$(e){return e.alias?e.alias.value:e.name.value}Ki.getFieldEntryKey=l$;function GA(e,t){let n=(0,oa.getDirectiveValues)(Mae.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Ki.getDeferValues=GA;Ki.collectSubFields=(0,Bae.memoize5)(function(t,n,r,i,s){let o=new wg.AccumulatorMap,u=new Set,l=[],d={fields:o,patches:l};for(let p of s)p.selectionSet&&wp(t,n,r,i,p.selectionSet,o,l,u);return d})});var YA=V(Fp=>{"use strict";m();T();h();Object.defineProperty(Fp,"__esModule",{value:!0});Fp.getOperationASTFromRequest=Fp.getOperationASTFromDocument=void 0;var jae=(we(),xe(Me)),$ae=gp();function d$(e,t){let n=(0,jae.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Fp.getOperationASTFromDocument=d$;Fp.getOperationASTFromRequest=(0,$ae.memoize1)(function(t){return d$(t.document,t.operationName)})});var m$=V(Sc=>{"use strict";m();T();h();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.visitResult=Sc.visitErrors=Sc.visitData=void 0;var Oc=(we(),xe(Me)),JA=QA(),qae=YA();function zA(e,t,n){if(Array.isArray(e))return e.map(r=>zA(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let s=r[i];Object.defineProperty(r,i,{value:zA(s,t,n)})}return n!=null?n(r):r}return e}Sc.visitData=zA;function Kae(e,t){return e.map(n=>t(n))}Sc.visitErrors=Kae;function Gae(e,t,n,r,i){let s=t.document.definitions.reduce((N,I)=>(I.kind===Oc.Kind.FRAGMENT_DEFINITION&&(N[I.name.value]=I),N),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,qae.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=Jae(l,y,n,s,o,r,p?d:void 0,u)),d!=null&&i&&(e.errors=Qae(d,i,u)),e}Sc.visitResult=Gae;function Qae(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,s=t.__unpathed;return e.map(o=>{let u=r.get(o),l=u==null?o:u.reduceRight((d,p)=>{let y=p.type.name,N=t[y];if(N==null)return d;let I=N[p.fieldName];return I==null?d:I(d,p.pathIndex)},o);return s&&i.has(o)?s(l):l})}function Yae(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Jae(e,t,n,r,i,s,o,u){let l=Yae(n,t),{fields:d}=(0,JA.collectFields)(n,r,i,l,t.selectionSet);return HA(e,l,d,n,r,i,s,0,o,u)}function HA(e,t,n,r,i,s,o,u,l,d){var re;let p=t.getFields(),y=o==null?void 0:o[t.name],N=y==null?void 0:y.__enter,I=N!=null?N(e):e,b,C=null;if(l!=null){b=Hae(l,u),C=b.errorMap;for(let se of b.unpathedErrors)d.unpathedErrors.add(se)}for(let[se,pe]of n){let ye=pe[0].name.value,ke=(re=p[ye])==null?void 0:re.type;if(ke==null)switch(ye){case"__typename":ke=Oc.TypeNameMetaFieldDef.type;break;case"__schema":ke=Oc.SchemaMetaFieldDef.type;break;case"__type":ke=Oc.TypeMetaFieldDef.type;break}let ht=u+1,xt;C&&(xt=C[se],xt!=null&&delete C[se],Wae(t,ye,ht,xt,d));let B=f$(e[se],ke,pe,r,i,s,o,ht,xt,d);p$(I,se,B,y,ye)}let j=I.__typename;if(j!=null&&p$(I,"__typename",j,y,"__typename"),C)for(let se in C){let pe=C[se];for(let ye of pe)d.unpathedErrors.add(ye)}let Q=y==null?void 0:y.__leave;return Q!=null?Q(I):I}function p$(e,t,n,r,i){if(r==null){e[t]=n;return}let s=r[i];if(s==null){e[t]=n;return}let o=s(n);if(o===void 0){delete e[t];return}e[t]=o}function zae(e,t,n,r,i,s,o,u,l,d){return e.map(p=>f$(p,t,n,r,i,s,o,u+1,l,d))}function f$(e,t,n,r,i,s,o,u,l=[],d){if(e==null)return e;let p=(0,Oc.getNullableType)(t);if((0,Oc.isListType)(p))return zae(e,p.ofType,n,r,i,s,o,u,l,d);if((0,Oc.isAbstractType)(p)){let I=r.getType(e.__typename),{fields:b}=(0,JA.collectSubFields)(r,i,s,I,n);return HA(e,I,b,r,i,s,o,u,l,d)}else if((0,Oc.isObjectType)(p)){let{fields:I}=(0,JA.collectSubFields)(r,i,s,p,n);return HA(e,p,I,r,i,s,o,u,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let N=y(e);return N===void 0?e:N}function Hae(e,t){var i;let n=Object.create(null),r=new Set;for(let s of e){let o=(i=s.path)==null?void 0:i[t];if(o==null){r.add(s);continue}o in n?n[o].push(s):n[o]=[s]}return{errorMap:n,unpathedErrors:r}}function Wae(e,t,n,r=[],i){for(let s of r){let o={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(s);u==null?i.segmentInfoMap.set(s,[o]):u.push(o)}}});var h$=V(Fg=>{"use strict";m();T();h();Object.defineProperty(Fg,"__esModule",{value:!0});Fg.valueMatchesCriteria=void 0;function WA(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>WA(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>WA(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}Fg.valueMatchesCriteria=WA});var T$=V(Lg=>{"use strict";m();T();h();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.isAsyncIterable=void 0;function Xae(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}Lg.isAsyncIterable=Xae});var y$=V(Pg=>{"use strict";m();T();h();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.isDocumentNode=void 0;var Zae=(we(),xe(Me));function eue(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Zae.Kind.DOCUMENT}Pg.isDocumentNode=eue});var N$=V(()=>{"use strict";m();T();h()});var v$=V(Dc=>{"use strict";m();T();h();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.withCancel=Dc.getAsyncIterableWithCancel=Dc.getAsyncIteratorWithCancel=void 0;var tue=gp();function nue(e){return hr(this,null,function*(){return{value:e,done:!0}})}var E$=(0,tue.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function g$(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let s=Reflect.get(n,r,i);if(r==="return"){let o=s||nue;return function(l){return hr(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof s=="function")return E$(n,s);return s}})}Dc.getAsyncIteratorWithCancel=g$;function I$(e,t){return new Proxy(e,{get(n,r,i){let s=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(s,n,[]);return g$(u,t)}:typeof s=="function"?E$(n,s):s}})}Dc.getAsyncIterableWithCancel=I$;Dc.withCancel=I$});var _$=V(kg=>{"use strict";m();T();h();Object.defineProperty(kg,"__esModule",{value:!0});kg.fixSchemaAst=void 0;var rue=(we(),xe(Me)),iue=vA();function sue(e,t){let n=(0,iue.getDocumentNodeFromSchema)(e);return(0,rue.buildASTSchema)(n,k({},t||{}))}function oue(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=sue(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}kg.fixSchemaAst=oue});var b$=V(xg=>{"use strict";m();T();h();Object.defineProperty(xg,"__esModule",{value:!0});xg.extractExtensionsFromSchema=void 0;var Ga=xl(),aue=Sp();function Io(e={}){let t=k({},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 uue(e){let t={schemaExtensions:Io(e.extensions),types:{}};return(0,aue.mapSchema)(e,{[Ga.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:Io(n.extensions)},n),[Ga.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:Io(n.extensions)},n),[Ga.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:Io(n.extensions)};let s=n.args;if(s!=null)for(let o in s)t.types[i].fields[r].arguments[o]=Io(s[o].extensions);return n},[Ga.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:Io(n.extensions)},n),[Ga.MapperKind.ENUM_VALUE]:(n,r,i,s)=>(t.types[r].values[s]=Io(n.extensions),n),[Ga.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:Io(n.extensions)},n),[Ga.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:Io(n.extensions)},n),[Ga.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:Io(n.extensions)},n),[Ga.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:Io(n.extensions)},n)}),t}xg.extractExtensionsFromSchema=uue});var O$=V(Ac=>{"use strict";m();T();h();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.printPathArray=Ac.pathToArray=Ac.addPath=void 0;function cue(e,t,n){return{prev:e,key:t,typename:n}}Ac.addPath=cue;function lue(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Ac.pathToArray=lue;function due(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Ac.printPathArray=due});var S$=V(XA=>{"use strict";m();T();h();function Cg(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();h();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.mergeIncrementalResult=void 0;var ZA=S$();function D$({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,ZA.dset)(t,n,i),n[n.length-1]++;e.data&&(0,ZA.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,ZA.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{D$({incrementalResult:i,executionResult:t})})}Ug.mergeIncrementalResult=D$});var w$=V(Lp=>{"use strict";m();T();h();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.debugTimerEnd=Lp.debugTimerStart=void 0;var R$=new Set;function fue(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(R$.add(e),console.time(e))}Lp.debugTimerStart=fue;function mue(e){R$.has(e)&&console.timeEnd(e)}Lp.debugTimerEnd=mue});var vo=V(We=>{"use strict";m();T();h();Object.defineProperty(We,"__esModule",{value:!0});We.inspect=void 0;var tt=(Uj(),xe(Cj));tt.__exportStar(Mj(),We);tt.__exportStar(jh(),We);tt.__exportStar(lA(),We);tt.__exportStar(dA(),We);tt.__exportStar(Jj(),We);tt.__exportStar(fA(),We);tt.__exportStar(vA(),We);tt.__exportStar(dA(),We);tt.__exportStar(d1(),We);tt.__exportStar(p1(),We);tt.__exportStar(O1(),We);tt.__exportStar(P1(),We);tt.__exportStar(x1(),We);tt.__exportStar($1(),We);tt.__exportStar(K1(),We);tt.__exportStar(G1(),We);tt.__exportStar(Y1(),We);tt.__exportStar(J1(),We);tt.__exportStar(Sp(),We);tt.__exportStar(BA(),We);tt.__exportStar(ug(),We);tt.__exportStar(H1(),We);tt.__exportStar(X1(),We);tt.__exportStar(xl(),We);tt.__exportStar(FA(),We);tt.__exportStar(Z1(),We);tt.__exportStar(e$(),We);tt.__exportStar(t$(),We);tt.__exportStar(n$(),We);tt.__exportStar(LA(),We);tt.__exportStar(s$(),We);tt.__exportStar(o$(),We);tt.__exportStar(a$(),We);tt.__exportStar(qE(),We);tt.__exportStar(u$(),We);tt.__exportStar(m$(),We);tt.__exportStar(cA(),We);tt.__exportStar(h$(),We);tt.__exportStar(T$(),We);tt.__exportStar(y$(),We);tt.__exportStar(WE(),We);tt.__exportStar(N$(),We);tt.__exportStar(v$(),We);tt.__exportStar(Gh(),We);tt.__exportStar(bA(),We);tt.__exportStar(QA(),We);var hue=$h();Object.defineProperty(We,"inspect",{enumerable:!0,get:function(){return hue.inspect}});tt.__exportStar(gp(),We);tt.__exportStar(_$(),We);tt.__exportStar(YA(),We);tt.__exportStar(b$(),We);tt.__exportStar(O$(),We);tt.__exportStar(qh(),We);tt.__exportStar(qA(),We);tt.__exportStar(A$(),We);tt.__exportStar(w$(),We)});var L$=V(Mg=>{"use strict";m();T();h();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.mergeResolvers=void 0;var Tue=vo();function F$(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=F$(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Tue.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[s,o]=i.split(".");!o||o==="*"?delete r[s]:r[s]&&delete r[s][o]}return r}Mg.mergeResolvers=F$});var eR=V(Bg=>{"use strict";m();T();h();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.mergeArguments=void 0;var P$=vo();function yue(e,t,n){let r=Nue([...t,...e].filter(P$.isSome),n);return n&&n.sort&&r.sort(P$.compareNodes),r}Bg.mergeArguments=yue;function Nue(e,t){return e.reduce((n,r)=>{let i=n.findIndex(s=>s.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Ys=V(Pp=>{"use strict";m();T();h();Object.defineProperty(Pp,"__esModule",{value:!0});Pp.mergeDirective=Pp.mergeDirectives=void 0;var k$=(we(),xe(Me)),Eue=vo();function gue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function x$(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Iue(e,t){return t.some(({value:n})=>n===e.value)}function C$(e,t){let n=[...t];for(let r of e){let i=n.findIndex(s=>s.name.value===r.name.value);if(i>-1){let s=n[i];if(s.value.kind==="ListValue"){let o=s.value.values,u=r.value.values;s.value.values=Sue(o,u,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else s.value=r.value}else n.push(r)}return n}function vue(e,t){return e.map((n,r,i)=>{let s=i.findIndex(o=>o.name.value===n.name.value);if(s!==r&&!x$(n,t)){let o=i[s];return n.arguments=C$(n.arguments,o.arguments),null}return n}).filter(Eue.isSome)}function _ue(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=i?e:t,o=i?t:e,u=vue([...s],r);for(let l of o)if(gue(u,l)&&!x$(l,r)){let d=u.findIndex(y=>y.name.value===l.name.value),p=u[d];u[d].arguments=C$(l.arguments||[],p.arguments||[])}else u.push(l);return u}Pp.mergeDirectives=_ue;function bue(e,t){let n=(0,k$.print)(K(k({},e),{description:void 0})),r=(0,k$.print)(K(k({},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})}):K(k({},i),{description:{kind:Ks.Kind.STRING,value:o,block:u}})}}}})}bc.transformCommentsToDescriptions=_1;function b1(e){return(0,Ks.isTypeSystemDefinitionNode)(e)||e.kind===Ks.Kind.FIELD_DEFINITION||e.kind===Ks.Kind.INPUT_VALUE_DEFINITION||e.kind===Ks.Kind.ENUM_VALUE_DEFINITION}bc.isDescribable=b1});var P1=V(rg=>{"use strict";m();T();h();Object.defineProperty(rg,"__esModule",{value:!0});rg.buildOperationNodeForField=void 0;var bt=(Fe(),xe(Me)),R1=Gh(),DA=[],ng=new Map;function F1(e){DA.push(e)}function S1(){DA=[]}function D1(){ng=new Map}function Boe({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){S1(),D1();let d=(0,R1.getRootTypeNames)(e),p=Voe({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:s||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...DA],S1(),D1(),p}rg.buildOperationNodeForField=Boe;function Voe({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:d}){let p=(0,R1.getDefinedRootType)(e,n),y=p.getFields()[t],N=`${t}_${n}`;if(y.args)for(let I of y.args){let b=I.name;(!u||u.includes(b))&&F1(w1(I,b))}return{kind:bt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:bt.Kind.NAME,value:N},variableDefinitions:[],selectionSet:{kind:bt.Kind.SELECTION_SET,selections:[L1({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:s,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function SA({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){if(!(typeof N=="boolean"&&p>u)){if((0,bt.isUnionType)(t)){let b=t.getTypes();return{kind:bt.Kind.SELECTION_SET,selections:b.filter(C=>!OA([...s,C],{depth:l})).map(C=>({kind:bt.Kind.INLINE_FRAGMENT,typeCondition:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:C.name}},selectionSet:SA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var j,Q;return((Q=(j=C==null?void 0:C.selectionSet)==null?void 0:j.selections)==null?void 0:Q.length)>0})}}if((0,bt.isInterfaceType)(t)){let b=Object.values(d.getTypeMap()).filter(C=>(0,bt.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:bt.Kind.SELECTION_SET,selections:b.filter(C=>!OA([...s,C],{depth:l})).map(C=>({kind:bt.Kind.INLINE_FRAGMENT,typeCondition:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:C.name}},selectionSet:SA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var j,Q;return((Q=(j=C==null?void 0:C.selectionSet)==null?void 0:j.selections)==null?void 0:Q.length)>0})}}if((0,bt.isObjectType)(t)&&!I.has(t.name)){let b=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=n.includes(t.name);if(!r&&C&&!b)return{kind:bt.Kind.SELECTION_SET,selections:[{kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:"id"}}]};let j=t.getFields();return{kind:bt.Kind.SELECTION_SET,selections:Object.keys(j).filter(Q=>!OA([...s,(0,bt.getNamedType)(j[Q].type)],{depth:l})).map(Q=>{let re=typeof N=="object"?N[Q]:!0;return re?L1({type:t,field:j[Q],models:n,path:[...i,Q],ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:re,rootTypeNames:I}):null}).filter(Q=>{var re,se;return Q==null?!1:"selectionSet"in Q?!!((se=(re=Q.selectionSet)==null?void 0:re.selections)!=null&&se.length):!0})}}}}function w1(e,t){function n(r){return(0,bt.isListType)(r)?{kind:bt.Kind.LIST_TYPE,type:n(r.ofType)}:(0,bt.isNonNullType)(r)?{kind:bt.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:bt.Kind.NAMED_TYPE,name:{kind:bt.Kind.NAME,value:r.name}}}return{kind:bt.Kind.VARIABLE_DEFINITION,variable:{kind:bt.Kind.VARIABLE,name:{kind:bt.Kind.NAME,value:t||e.name}},type:n(e.type)}}function A1(e,t){return[...t,e].join("_")}function L1({type:e,field:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){let b=(0,bt.getNamedType)(t.type),C=[],j=!1;if(t.args&&t.args.length&&(C=t.args.map(fe=>{let ye=A1(fe.name,i);return y&&!y.includes(ye)?((0,bt.isNonNullType)(fe.type)&&(j=!0),null):(r||F1(w1(fe,ye)),{kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:fe.name},value:{kind:bt.Kind.VARIABLE,name:{kind:bt.Kind.NAME,value:A1(fe.name,i)}}})}).filter(Boolean)),j)return null;let Q=[...i,t.name],re=Q.join("."),se=t.name;return ng.has(re)&&ng.get(re)!==t.type.toString()&&(se+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),ng.set(re,t.type.toString()),!(0,bt.isScalarType)(b)&&!(0,bt.isEnumType)(b)?K(k({kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:bt.Kind.NAME,value:se}}),{selectionSet:SA({parent:e,type:b,models:n,firstCall:r,path:Q,ancestors:[...s,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:N,rootTypeNames:I})||void 0,arguments:C}):K(k({kind:bt.Kind.FIELD,name:{kind:bt.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:bt.Kind.NAME,value:se}}),{arguments:C})}function OA(e,t={depth:1}){let n=e[e.length-1];return(0,bt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var x1=V(ig=>{"use strict";m();T();h();Object.defineProperty(ig,"__esModule",{value:!0});ig.DirectiveLocation=void 0;var k1;(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"})(k1||(ig.DirectiveLocation=k1={}))});var xl=V(sg=>{"use strict";m();T();h();Object.defineProperty(sg,"__esModule",{value:!0});sg.MapperKind=void 0;var C1;(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"})(C1||(sg.MapperKind=C1={}))});var AA=V(og=>{"use strict";m();T();h();Object.defineProperty(og,"__esModule",{value:!0});og.getObjectTypeFromTypeMap=void 0;var joe=(Fe(),xe(Me));function $oe(e,t){if(t){let n=e[t.name];if((0,joe.isObjectType)(n))return n}}og.getObjectTypeFromTypeMap=$oe});var wA=V(na=>{"use strict";m();T();h();Object.defineProperty(na,"__esModule",{value:!0});na.getBuiltInForStub=na.isNamedStub=na.createStub=na.createNamedStub=void 0;var Kr=(Fe(),xe(Me));function RA(e,t){let n;return t==="object"?n=Kr.GraphQLObjectType:t==="interface"?n=Kr.GraphQLInterfaceType:n=Kr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Kr.GraphQLString}}})}na.createNamedStub=RA;function FA(e,t){switch(e.kind){case Kr.Kind.LIST_TYPE:return new Kr.GraphQLList(FA(e.type,t));case Kr.Kind.NON_NULL_TYPE:return new Kr.GraphQLNonNull(FA(e.type,t));default:return t==="output"?RA(e.name.value,"object"):RA(e.name.value,"input")}}na.createStub=FA;function qoe(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}na.isNamedStub=qoe;function Koe(e){switch(e.name){case Kr.GraphQLInt.name:return Kr.GraphQLInt;case Kr.GraphQLFloat.name:return Kr.GraphQLFloat;case Kr.GraphQLString.name:return Kr.GraphQLString;case Kr.GraphQLBoolean.name:return Kr.GraphQLBoolean;case Kr.GraphQLID.name:return Kr.GraphQLID;default:return e}}na.getBuiltInForStub=Koe});var ug=V(ag=>{"use strict";m();T();h();Object.defineProperty(ag,"__esModule",{value:!0});ag.rewireTypes=void 0;var Sr=(Fe(),xe(Me)),U1=wA();function Goe(e,t){let n=Object.create(null);for(let N in e)n[N]=e[N];let r=Object.create(null);for(let N in n){let I=n[N];if(I==null||N.startsWith("__"))continue;let b=I.name;if(!b.startsWith("__")){if(r[b]!=null){console.warn(`Duplicate schema type name ${b} found; keeping the existing one found in the schema`);continue}r[b]=I}}for(let N in r)r[N]=u(r[N]);let i=t.map(N=>s(N));return{typeMap:r,directives:i};function s(N){if((0,Sr.isSpecifiedDirective)(N))return N;let I=N.toConfig();return I.args=o(I.args),new Sr.GraphQLDirective(I)}function o(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&(C.type=j,I[b]=C)}return I}function u(N){if((0,Sr.isObjectType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>l(I.fields),interfaces:()=>p(I.interfaces)});return new Sr.GraphQLObjectType(b)}else if((0,Sr.isInterfaceType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>l(I.fields)});return"interfaces"in b&&(b.interfaces=()=>p(I.interfaces)),new Sr.GraphQLInterfaceType(b)}else if((0,Sr.isUnionType)(N)){let I=N.toConfig(),b=K(k({},I),{types:()=>p(I.types)});return new Sr.GraphQLUnionType(b)}else if((0,Sr.isInputObjectType)(N)){let I=N.toConfig(),b=K(k({},I),{fields:()=>d(I.fields)});return new Sr.GraphQLInputObjectType(b)}else if((0,Sr.isEnumType)(N)){let I=N.toConfig();return new Sr.GraphQLEnumType(I)}else if((0,Sr.isScalarType)(N)){if((0,Sr.isSpecifiedScalarType)(N))return N;let I=N.toConfig();return new Sr.GraphQLScalarType(I)}throw new Error(`Unexpected schema type: ${N}`)}function l(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&C.args&&(C.type=j,C.args=o(C.args),I[b]=C)}return I}function d(N){let I={};for(let b in N){let C=N[b],j=y(C.type);j!=null&&(C.type=j,I[b]=C)}return I}function p(N){let I=[];for(let b of N){let C=y(b);C!=null&&I.push(C)}return I}function y(N){if((0,Sr.isListType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLList(I):null}else if((0,Sr.isNonNullType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLNonNull(I):null}else if((0,Sr.isNamedType)(N)){let I=n[N.name];return I===void 0&&(I=(0,U1.isNamedStub)(N)?(0,U1.getBuiltInForStub)(N):u(N),r[I.name]=n[N.name]=I),I!=null?r[I.name]:null}return null}}ag.rewireTypes=Goe});var LA=V(ra=>{"use strict";m();T();h();Object.defineProperty(ra,"__esModule",{value:!0});ra.parseInputValueLiteral=ra.parseInputValue=ra.serializeInputValue=ra.transformInputValue=void 0;var cg=(Fe(),xe(Me)),Qoe=jh();function _p(e,t,n=null,r=null){if(t==null)return t;let i=(0,cg.getNullableType)(e);if((0,cg.isLeafType)(i))return n!=null?n(i,t):t;if((0,cg.isListType)(i))return(0,Qoe.asArray)(t).map(s=>_p(i.ofType,s,n,r));if((0,cg.isInputObjectType)(i)){let s=i.getFields(),o={};for(let u in t){let l=s[u];l!=null&&(o[u]=_p(l.type,t[u],n,r))}return r!=null?r(i,o):o}}ra.transformInputValue=_p;function Yoe(e,t){return _p(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}ra.serializeInputValue=Yoe;function Joe(e,t){return _p(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}ra.parseInputValue=Joe;function zoe(e,t){return _p(e,t,(n,r)=>n.parseLiteral(r,{}))}ra.parseInputValueLiteral=zoe});var Sp=V(Op=>{"use strict";m();T();h();Object.defineProperty(Op,"__esModule",{value:!0});Op.correctASTNodes=Op.mapSchema=void 0;var yt=(Fe(),xe(Me)),bp=AA(),Jt=xl(),Hoe=ug(),M1=LA();function Woe(e,t={}){let n=j1(V1(PA(B1(Xoe(PA(B1(e.getTypeMap(),e,M1.serializeInputValue),e,t,u=>(0,yt.isLeafType)(u)),e,t),e,M1.parseInputValue),e,t,u=>!(0,yt.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=Zoe(r,e,t),{typeMap:s,directives:o}=(0,Hoe.rewireTypes)(n,i);return new yt.GraphQLSchema(K(k({},e.toConfig()),{query:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,bp.getObjectTypeFromTypeMap)(s,(0,bp.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(s),directives:o}))}Op.mapSchema=Woe;function PA(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")){let o=e[s];if(o==null||!r(o)){i[s]=o;continue}let u=tae(t,n,s);if(u==null){i[s]=o;continue}let l=u(o,t);if(l===void 0){i[s]=o;continue}i[s]=l}return i}function Xoe(e,t,n){let r=oae(n);return r?PA(e,t,{[Jt.MapperKind.ENUM_TYPE]:i=>{let s=i.toConfig(),o=s.values,u={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)u[l]=d;else if(Array.isArray(p)){let[y,N]=p;u[y]=N===void 0?d:N}else p!==null&&(u[l]=p)}return Wh(new yt.GraphQLEnumType(K(k({},s),{values:u})))}},i=>(0,yt.isEnumType)(i)):e}function B1(e,t,n){let r=j1(e,t,{[Jt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let s=lg(e,i.type);if(s!=null)return K(k({},i),{defaultValue:n(s,i.defaultValue)})}});return V1(r,t,{[Jt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let s=lg(r,i.type);if(s!=null)return K(k({},i),{defaultValue:n(s,i.defaultValue)})}})}function lg(e,t){if((0,yt.isListType)(t)){let n=lg(e,t.ofType);return n!=null?new yt.GraphQLList(n):null}else if((0,yt.isNonNullType)(t)){let n=lg(e,t.ofType);return n!=null?new yt.GraphQLNonNull(n):null}else if((0,yt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function V1(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)&&!(0,yt.isInputObjectType)(s)){r[i]=s;continue}let o=rae(t,n,i);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=o(y,p,i,t);if(N===void 0)d[p]=y;else if(Array.isArray(N)){let[I,b]=N;b.astNode!=null&&(b.astNode=K(k({},b.astNode),{name:K(k({},b.astNode.name),{value:I})})),d[I]=b===void 0?y:b}else N!==null&&(d[p]=N)}(0,yt.isObjectType)(s)?r[i]=Wh(new yt.GraphQLObjectType(K(k({},u),{fields:d}))):(0,yt.isInterfaceType)(s)?r[i]=Wh(new yt.GraphQLInterfaceType(K(k({},u),{fields:d}))):r[i]=Wh(new yt.GraphQLInputObjectType(K(k({},u),{fields:d})))}return r}function j1(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)){r[i]=s;continue}let o=iae(n);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=y.args;if(N==null){d[p]=y;continue}let I=Object.keys(N);if(!I.length){d[p]=y;continue}let b={};for(let C of I){let j=N[C],Q=o(j,p,i,t);if(Q===void 0)b[C]=j;else if(Array.isArray(Q)){let[re,se]=Q;b[re]=se}else Q!==null&&(b[C]=Q)}d[p]=K(k({},y),{args:b})}(0,yt.isObjectType)(s)?r[i]=new yt.GraphQLObjectType(K(k({},u),{fields:d})):(0,yt.isInterfaceType)(s)?r[i]=new yt.GraphQLInterfaceType(K(k({},u),{fields:d})):r[i]=new yt.GraphQLInputObjectType(K(k({},u),{fields:d}))}return r}function Zoe(e,t,n){let r=sae(n);if(r==null)return e.slice();let i=[];for(let s of e){let o=r(s,t);o===void 0?i.push(s):o!==null&&i.push(o)}return i}function eae(e,t){var i,s,o;let n=e.getType(t),r=[Jt.MapperKind.TYPE];return(0,yt.isObjectType)(n)?(r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.QUERY):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Jt.MapperKind.ROOT_OBJECT,Jt.MapperKind.SUBSCRIPTION)):(0,yt.isInputObjectType)(n)?r.push(Jt.MapperKind.INPUT_OBJECT_TYPE):(0,yt.isInterfaceType)(n)?r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.ABSTRACT_TYPE,Jt.MapperKind.INTERFACE_TYPE):(0,yt.isUnionType)(n)?r.push(Jt.MapperKind.COMPOSITE_TYPE,Jt.MapperKind.ABSTRACT_TYPE,Jt.MapperKind.UNION_TYPE):(0,yt.isEnumType)(n)?r.push(Jt.MapperKind.ENUM_TYPE):(0,yt.isScalarType)(n)&&r.push(Jt.MapperKind.SCALAR_TYPE),r}function tae(e,t,n){let r=eae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function nae(e,t){var i,s,o;let n=e.getType(t),r=[Jt.MapperKind.FIELD];return(0,yt.isObjectType)(n)?(r.push(Jt.MapperKind.COMPOSITE_FIELD,Jt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.QUERY_ROOT_FIELD):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Jt.MapperKind.ROOT_FIELD,Jt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,yt.isInterfaceType)(n)?r.push(Jt.MapperKind.COMPOSITE_FIELD,Jt.MapperKind.INTERFACE_FIELD):(0,yt.isInputObjectType)(n)&&r.push(Jt.MapperKind.INPUT_OBJECT_FIELD),r}function rae(e,t,n){let r=nae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function iae(e){let t=e[Jt.MapperKind.ARGUMENT];return t!=null?t:null}function sae(e){let t=e[Jt.MapperKind.DIRECTIVE];return t!=null?t:null}function oae(e){let t=e[Jt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Wh(e){if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLObjectType(t)}else if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInterfaceType(t)}else if((0,yt.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=K(k({},t.astNode),{kind:yt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{kind:yt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInputObjectType(t)}else if((0,yt.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=K(k({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>K(k({},n),{values:void 0}))),new yt.GraphQLEnumType(t)}else return e}Op.correctASTNodes=Wh});var $1=V(pg=>{"use strict";m();T();h();Object.defineProperty(pg,"__esModule",{value:!0});pg.filterSchema=void 0;var dg=(Fe(),xe(Me)),Ka=xl(),aae=Sp();function uae({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0}){return(0,aae.mapSchema)(e,{[Ka.MapperKind.QUERY]:d=>kA(d,"Query",r,u),[Ka.MapperKind.MUTATION]:d=>kA(d,"Mutation",r,u),[Ka.MapperKind.SUBSCRIPTION]:d=>kA(d,"Subscription",r,u),[Ka.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLObjectType,d,i||n,u):null,[Ka.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLInterfaceType,d,s||n,u):null,[Ka.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?xA(dg.GraphQLInputObjectType,d,o||n):null,[Ka.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[Ka.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[Ka.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}pg.filterSchema=uae;function kA(e,t,n,r){if(n||r){let i=e.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t,s,i.fields[s]))delete i.fields[s];else if(r&&o.args)for(let u in o.args)r(t,s,u,o.args[u])||delete o.args[u]}return new dg.GraphQLObjectType(i)}return e}function xA(e,t,n,r){if(n||r){let i=t.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t.name,s,i.fields[s]))delete i.fields[s];else if(r&&"args"in o)for(let u in o.args)r(t.name,s,u,o.args[u])||delete o.args[u]}return new e(i)}}});var K1=V(Dp=>{"use strict";m();T();h();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.healTypes=Dp.healSchema=void 0;var ia=(Fe(),xe(Me));function cae(e){return q1(e.getTypeMap(),e.getDirectives()),e}Dp.healSchema=cae;function q1(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.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]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,ia.isObjectType)(d)){i(d),s(d);return}else if((0,ia.isInterfaceType)(d)){i(d),"getInterfaces"in d&&s(d);return}else if((0,ia.isUnionType)(d)){u(d);return}else if((0,ia.isInputObjectType)(d)){o(d);return}else if((0,ia.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.args.map(I=>(I.type=l(I.type),I.type===null?null:I)).filter(Boolean),N.type=l(N.type),N.type===null&&delete p[y]}function s(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.type=l(N.type),N.type===null&&delete p[y]}function u(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,ia.isListType)(d)){let p=l(d.ofType);return p!=null?new ia.GraphQLList(p):null}else if((0,ia.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new ia.GraphQLNonNull(p):null}else if((0,ia.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}Dp.healTypes=q1});var G1=V(fg=>{"use strict";m();T();h();Object.defineProperty(fg,"__esModule",{value:!0});fg.getResolversFromSchema=void 0;var Cl=(Fe(),xe(Me));function lae(e,t){var i,s;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let u=r[o];if((0,Cl.isScalarType)(u)){if(!(0,Cl.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[o]=new Cl.GraphQLScalarType(l)}}else if((0,Cl.isEnumType)(u)){n[o]={};let l=u.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,Cl.isInterfaceType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Cl.isUnionType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Cl.isObjectType)(u)){n[o]={},u.isTypeOf!=null&&(n[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((s=p.resolve)==null?void 0:s.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}fg.getResolversFromSchema=lae});var Y1=V(mg=>{"use strict";m();T();h();Object.defineProperty(mg,"__esModule",{value:!0});mg.forEachField=void 0;var Q1=(Fe(),xe(Me));function dae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,Q1.getNamedType)(i).name.startsWith("__")&&(0,Q1.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];t(u,r,o)}}}}mg.forEachField=dae});var J1=V(hg=>{"use strict";m();T();h();Object.defineProperty(hg,"__esModule",{value:!0});hg.forEachDefaultValue=void 0;var CA=(Fe(),xe(Me));function pae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,CA.getNamedType)(i).name.startsWith("__")){if((0,CA.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,CA.isInputObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}hg.forEachDefaultValue=pae});var BA=V(Tg=>{"use strict";m();T();h();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.addTypes=void 0;var UA=(Fe(),xe(Me)),MA=AA(),fae=ug();function mae(e,t){let n=e.toConfig(),r={};for(let u of n.types)r[u.name]=u;let i={};for(let u of n.directives)i[u.name]=u;for(let u of t)(0,UA.isNamedType)(u)?r[u.name]=u:(0,UA.isDirective)(u)&&(i[u.name]=u);let{typeMap:s,directives:o}=(0,fae.rewireTypes)(r,Object.values(i));return new UA.GraphQLSchema(K(k({},n),{query:(0,MA.getObjectTypeFromTypeMap)(s,e.getQueryType()),mutation:(0,MA.getObjectTypeFromTypeMap)(s,e.getMutationType()),subscription:(0,MA.getObjectTypeFromTypeMap)(s,e.getSubscriptionType()),types:Object.values(s),directives:o}))}Tg.addTypes=mae});var H1=V(Ng=>{"use strict";m();T();h();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.pruneSchema=void 0;var kr=(Fe(),xe(Me)),hae=fA(),Tae=xl(),yae=Sp(),Nae=Gh();function Eae(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:s,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let d=gae(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let N=l.getType(y);N&&i(N)&&p.push(y)}d=z1(p,l,d)}u=[],l=(0,yae.mapSchema)(l,{[Tae.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,kr.isSpecifiedScalarType)(p)?((0,kr.isUnionType)(p)||(0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p)||(0,kr.isScalarType)(p))&&(o||(0,kr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,kr.isInterfaceType)(p)&&s)?p:(u.push(p.name),d.delete(p.name),null):p})}while(u.length);return l}Ng.pruneSchema=Eae;function gae(e){let t=[];for(let n of(0,Nae.getRootTypes)(e))t.push(n.name);return z1(t,e)}function z1(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 s=t.getType(i);if(s){if((0,kr.isUnionType)(s)&&e.push(...s.getTypes().map(o=>o.name)),(0,kr.isInterfaceType)(s)&&r[i]===!0&&(e.push(...(0,hae.getImplementingTypes)(s.name,t)),r[i]=!1),(0,kr.isEnumType)(s)&&e.push(...s.getValues().flatMap(o=>o.astNode?yg(t,o.astNode):[])),"getInterfaces"in s&&e.push(...s.getInterfaces().map(o=>o.name)),"getFields"in s){let o=s.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,kr.isObjectType)(s)&&e.push(...l.args.flatMap(p=>{let y=[(0,kr.getNamedType)(p.type).name];return p.astNode&&y.push(...yg(t,p.astNode)),y}));let d=(0,kr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...yg(t,l.astNode)),(0,kr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}s.astNode&&e.push(...yg(t,s.astNode)),n.add(i)}}return n}function yg(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,s;return(s=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,kr.getNamedType)(o.type).name))!=null?s:[]})}});var X1=V(Eg=>{"use strict";m();T();h();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.mergeDeep=void 0;var Iae=jh();function W1(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let s of e)if(VA(r)&&VA(s)){if(t){let o=Object.getPrototypeOf(i),u=Object.getPrototypeOf(s);if(u)for(let l of Object.getOwnPropertyNames(u)){let d=Object.getOwnPropertyDescriptor(u,l);(0,Iae.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in s)VA(s[o])?o in i?i[o]=W1([i[o],s[o]],t,n):Object.assign(i,{[o]:s[o]}):n&&Array.isArray(i[o])?Array.isArray(s[o])?i[o].push(...s[o]):i[o].push(s[o]):Object.assign(i,{[o]:s[o]})}else if(n&&Array.isArray(r))Array.isArray(s)?r.push(...s):r.push(s);else if(n&&Array.isArray(s))return[r,...s];return i}Eg.mergeDeep=W1;function VA(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var Z1=V(gg=>{"use strict";m();T();h();Object.defineProperty(gg,"__esModule",{value:!0});gg.parseSelectionSet=void 0;var vae=(Fe(),xe(Me));function _ae(e,t){return(0,vae.parse)(e,t).definitions[0].selectionSet}gg.parseSelectionSet=_ae});var e$=V(Ig=>{"use strict";m();T();h();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.getResponseKeyFromInfo=void 0;function bae(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}Ig.getResponseKeyFromInfo=bae});var t$=V(sa=>{"use strict";m();T();h();Object.defineProperty(sa,"__esModule",{value:!0});sa.modifyObjectFields=sa.selectObjectFields=sa.removeObjectFields=sa.appendObjectFields=void 0;var vg=(Fe(),xe(Me)),Oae=BA(),_g=xl(),Ul=Sp();function Sae(e,t,n){return e.getType(t)==null?(0,Oae.addTypes)(e,[new vg.GraphQLObjectType({name:t,fields:n})]):(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),s=i.fields,o={};for(let u in s)o[u]=s[u];for(let u in n)o[u]=n[u];return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},i),{fields:o})))}}})}sa.appendObjectFields=Sae;function Dae(e,t,n){let r={};return[(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let o=s.toConfig(),u=o.fields,l={};for(let d in u){let p=u[d];n(d,p)?r[d]=p:l[d]=p}return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},o),{fields:l})))}}}),r]}sa.removeObjectFields=Dae;function Aae(e,t,n){let r={};return(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];n(u,l)&&(r[u]=l)}}}}),r}sa.selectObjectFields=Aae;function Rae(e,t,n,r){let i={};return[(0,Ul.mapSchema)(e,{[_g.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,Ul.correctASTNodes)(new vg.GraphQLObjectType(K(k({},u),{fields:d})))}}}),i]}sa.modifyObjectFields=Rae});var n$=V(bg=>{"use strict";m();T();h();Object.defineProperty(bg,"__esModule",{value:!0});bg.renameType=void 0;var Gs=(Fe(),xe(Me));function Fae(e,t){if((0,Gs.isObjectType)(e))return new Gs.GraphQLObjectType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isInterfaceType)(e))return new Gs.GraphQLInterfaceType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isUnionType)(e))return new Gs.GraphQLUnionType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isInputObjectType)(e))return new Gs.GraphQLInputObjectType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isEnumType)(e))return new Gs.GraphQLEnumType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));if((0,Gs.isScalarType)(e))return new Gs.GraphQLScalarType(K(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:K(k({},e.astNode),{name:K(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>K(k({},n),{name:K(k({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}bg.renameType=Fae});var s$=V(Og=>{"use strict";m();T();h();Object.defineProperty(Og,"__esModule",{value:!0});Og.mapAsyncIterator=void 0;var wae=qh();function Lae(e,t,n,r){let i,s,o;r&&(o=d=>{let p=r();return(0,wae.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,s=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function u(d){return d.done?o?o(d):d:r$(d.value,t).then(i$,s)}let l;if(n){let d=n;l=p=>r$(p,d).then(i$,s)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):Promise.reject(d).catch(s)},[Symbol.asyncIterator](){return this}}}Og.mapAsyncIterator=Lae;function r$(e,t){return new Promise(n=>n(t(e)))}function i$(e){return{value:e,done:!1}}});var o$=V(Ap=>{"use strict";m();T();h();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.createVariableNameGenerator=Ap.updateArgument=void 0;var Ml=(Fe(),xe(Me)),Pae=hA();function kae(e,t,n,r,i,s,o){if(e[r]={kind:Ml.Kind.ARGUMENT,name:{kind:Ml.Kind.NAME,value:r},value:{kind:Ml.Kind.VARIABLE,name:{kind:Ml.Kind.NAME,value:i}}},t[i]={kind:Ml.Kind.VARIABLE_DEFINITION,variable:{kind:Ml.Kind.VARIABLE,name:{kind:Ml.Kind.NAME,value:i}},type:(0,Pae.astFromType)(s)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Ap.updateArgument=kae;function xae(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Ap.createVariableNameGenerator=xae});var a$=V(Sg=>{"use strict";m();T();h();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.implementsAbstractType=void 0;var jA=(Fe(),xe(Me));function Cae(e,t,n){return n==null||t==null?!1:t===n?!0:(0,jA.isCompositeType)(t)&&(0,jA.isCompositeType)(n)?(0,jA.doTypesOverlap)(e,t,n):!1}Sg.implementsAbstractType=Cae});var u$=V(Dg=>{"use strict";m();T();h();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.observableToAsyncIterable=void 0;function Uae(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},s=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},u=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){s(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?u():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}Dg.observableToAsyncIterable=Uae});var c$=V(Ag=>{"use strict";m();T();h();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.AccumulatorMap=void 0;var $A=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)}};Ag.AccumulatorMap=$A});var qA=V(Rp=>{"use strict";m();T();h();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.GraphQLStreamDirective=Rp.GraphQLDeferDirective=void 0;var Qs=(Fe(),xe(Me));Rp.GraphQLDeferDirective=new Qs.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Qs.DirectiveLocation.FRAGMENT_SPREAD,Qs.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Qs.GraphQLNonNull(Qs.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Qs.GraphQLString,description:"Unique name"}}});Rp.GraphQLStreamDirective=new Qs.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Qs.DirectiveLocation.FIELD],args:{if:{type:new Qs.GraphQLNonNull(Qs.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Qs.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Qs.GraphQLInt,description:"Number of items to return immediately"}}})});var QA=V(Ki=>{"use strict";m();T();h();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.collectSubFields=Ki.getDeferValues=Ki.getFieldEntryKey=Ki.doesFragmentConditionMatch=Ki.shouldIncludeNode=Ki.collectFields=void 0;var oa=(Fe(),xe(Me)),Fg=c$(),Mae=qA(),Bae=gp();function Fp(e,t,n,r,i,s,o,u){for(let l of i.selections)switch(l.kind){case oa.Kind.FIELD:{if(!Rg(n,l))continue;s.add(l$(l),l);break}case oa.Kind.INLINE_FRAGMENT:{if(!Rg(n,l)||!KA(e,l,r))continue;let d=GA(n,l);if(d){let p=new Fg.AccumulatorMap;Fp(e,t,n,r,l.selectionSet,p,o,u),o.push({label:d.label,fields:p})}else Fp(e,t,n,r,l.selectionSet,s,o,u);break}case oa.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!Rg(n,l))continue;let p=GA(n,l);if(u.has(d)&&!p)continue;let y=t[d];if(!y||!KA(e,y,r))continue;if(p||u.add(d),p){let N=new Fg.AccumulatorMap;Fp(e,t,n,r,y.selectionSet,N,o,u),o.push({label:p.label,fields:N})}else Fp(e,t,n,r,y.selectionSet,s,o,u);break}}}function Vae(e,t,n,r,i){let s=new Fg.AccumulatorMap,o=[];return Fp(e,t,n,r,i,s,o,new Set),{fields:s,patches:o}}Ki.collectFields=Vae;function Rg(e,t){let n=(0,oa.getDirectiveValues)(oa.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,oa.getDirectiveValues)(oa.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Ki.shouldIncludeNode=Rg;function KA(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,oa.typeFromAST)(e,r);return i===n?!0:(0,oa.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Ki.doesFragmentConditionMatch=KA;function l$(e){return e.alias?e.alias.value:e.name.value}Ki.getFieldEntryKey=l$;function GA(e,t){let n=(0,oa.getDirectiveValues)(Mae.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Ki.getDeferValues=GA;Ki.collectSubFields=(0,Bae.memoize5)(function(t,n,r,i,s){let o=new Fg.AccumulatorMap,u=new Set,l=[],d={fields:o,patches:l};for(let p of s)p.selectionSet&&Fp(t,n,r,i,p.selectionSet,o,l,u);return d})});var YA=V(wp=>{"use strict";m();T();h();Object.defineProperty(wp,"__esModule",{value:!0});wp.getOperationASTFromRequest=wp.getOperationASTFromDocument=void 0;var jae=(Fe(),xe(Me)),$ae=gp();function d$(e,t){let n=(0,jae.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}wp.getOperationASTFromDocument=d$;wp.getOperationASTFromRequest=(0,$ae.memoize1)(function(t){return d$(t.document,t.operationName)})});var m$=V(Sc=>{"use strict";m();T();h();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.visitResult=Sc.visitErrors=Sc.visitData=void 0;var Oc=(Fe(),xe(Me)),JA=QA(),qae=YA();function zA(e,t,n){if(Array.isArray(e))return e.map(r=>zA(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let s=r[i];Object.defineProperty(r,i,{value:zA(s,t,n)})}return n!=null?n(r):r}return e}Sc.visitData=zA;function Kae(e,t){return e.map(n=>t(n))}Sc.visitErrors=Kae;function Gae(e,t,n,r,i){let s=t.document.definitions.reduce((N,I)=>(I.kind===Oc.Kind.FRAGMENT_DEFINITION&&(N[I.name.value]=I),N),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,qae.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=Jae(l,y,n,s,o,r,p?d:void 0,u)),d!=null&&i&&(e.errors=Qae(d,i,u)),e}Sc.visitResult=Gae;function Qae(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,s=t.__unpathed;return e.map(o=>{let u=r.get(o),l=u==null?o:u.reduceRight((d,p)=>{let y=p.type.name,N=t[y];if(N==null)return d;let I=N[p.fieldName];return I==null?d:I(d,p.pathIndex)},o);return s&&i.has(o)?s(l):l})}function Yae(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Jae(e,t,n,r,i,s,o,u){let l=Yae(n,t),{fields:d}=(0,JA.collectFields)(n,r,i,l,t.selectionSet);return HA(e,l,d,n,r,i,s,0,o,u)}function HA(e,t,n,r,i,s,o,u,l,d){var re;let p=t.getFields(),y=o==null?void 0:o[t.name],N=y==null?void 0:y.__enter,I=N!=null?N(e):e,b,C=null;if(l!=null){b=Hae(l,u),C=b.errorMap;for(let se of b.unpathedErrors)d.unpathedErrors.add(se)}for(let[se,fe]of n){let ye=fe[0].name.value,ke=(re=p[ye])==null?void 0:re.type;if(ke==null)switch(ye){case"__typename":ke=Oc.TypeNameMetaFieldDef.type;break;case"__schema":ke=Oc.SchemaMetaFieldDef.type;break;case"__type":ke=Oc.TypeMetaFieldDef.type;break}let ht=u+1,xt;C&&(xt=C[se],xt!=null&&delete C[se],Wae(t,ye,ht,xt,d));let B=f$(e[se],ke,fe,r,i,s,o,ht,xt,d);p$(I,se,B,y,ye)}let j=I.__typename;if(j!=null&&p$(I,"__typename",j,y,"__typename"),C)for(let se in C){let fe=C[se];for(let ye of fe)d.unpathedErrors.add(ye)}let Q=y==null?void 0:y.__leave;return Q!=null?Q(I):I}function p$(e,t,n,r,i){if(r==null){e[t]=n;return}let s=r[i];if(s==null){e[t]=n;return}let o=s(n);if(o===void 0){delete e[t];return}e[t]=o}function zae(e,t,n,r,i,s,o,u,l,d){return e.map(p=>f$(p,t,n,r,i,s,o,u+1,l,d))}function f$(e,t,n,r,i,s,o,u,l=[],d){if(e==null)return e;let p=(0,Oc.getNullableType)(t);if((0,Oc.isListType)(p))return zae(e,p.ofType,n,r,i,s,o,u,l,d);if((0,Oc.isAbstractType)(p)){let I=r.getType(e.__typename),{fields:b}=(0,JA.collectSubFields)(r,i,s,I,n);return HA(e,I,b,r,i,s,o,u,l,d)}else if((0,Oc.isObjectType)(p)){let{fields:I}=(0,JA.collectSubFields)(r,i,s,p,n);return HA(e,p,I,r,i,s,o,u,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let N=y(e);return N===void 0?e:N}function Hae(e,t){var i;let n=Object.create(null),r=new Set;for(let s of e){let o=(i=s.path)==null?void 0:i[t];if(o==null){r.add(s);continue}o in n?n[o].push(s):n[o]=[s]}return{errorMap:n,unpathedErrors:r}}function Wae(e,t,n,r=[],i){for(let s of r){let o={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(s);u==null?i.segmentInfoMap.set(s,[o]):u.push(o)}}});var h$=V(wg=>{"use strict";m();T();h();Object.defineProperty(wg,"__esModule",{value:!0});wg.valueMatchesCriteria=void 0;function WA(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>WA(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>WA(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}wg.valueMatchesCriteria=WA});var T$=V(Lg=>{"use strict";m();T();h();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.isAsyncIterable=void 0;function Xae(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}Lg.isAsyncIterable=Xae});var y$=V(Pg=>{"use strict";m();T();h();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.isDocumentNode=void 0;var Zae=(Fe(),xe(Me));function eue(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Zae.Kind.DOCUMENT}Pg.isDocumentNode=eue});var N$=V(()=>{"use strict";m();T();h()});var v$=V(Dc=>{"use strict";m();T();h();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.withCancel=Dc.getAsyncIterableWithCancel=Dc.getAsyncIteratorWithCancel=void 0;var tue=gp();function nue(e){return Tr(this,null,function*(){return{value:e,done:!0}})}var E$=(0,tue.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function g$(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let s=Reflect.get(n,r,i);if(r==="return"){let o=s||nue;return function(l){return Tr(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof s=="function")return E$(n,s);return s}})}Dc.getAsyncIteratorWithCancel=g$;function I$(e,t){return new Proxy(e,{get(n,r,i){let s=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(s,n,[]);return g$(u,t)}:typeof s=="function"?E$(n,s):s}})}Dc.getAsyncIterableWithCancel=I$;Dc.withCancel=I$});var _$=V(kg=>{"use strict";m();T();h();Object.defineProperty(kg,"__esModule",{value:!0});kg.fixSchemaAst=void 0;var rue=(Fe(),xe(Me)),iue=vA();function sue(e,t){let n=(0,iue.getDocumentNodeFromSchema)(e);return(0,rue.buildASTSchema)(n,k({},t||{}))}function oue(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=sue(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}kg.fixSchemaAst=oue});var b$=V(xg=>{"use strict";m();T();h();Object.defineProperty(xg,"__esModule",{value:!0});xg.extractExtensionsFromSchema=void 0;var Ga=xl(),aue=Sp();function Io(e={}){let t=k({},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 uue(e){let t={schemaExtensions:Io(e.extensions),types:{}};return(0,aue.mapSchema)(e,{[Ga.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:Io(n.extensions)},n),[Ga.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:Io(n.extensions)},n),[Ga.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:Io(n.extensions)};let s=n.args;if(s!=null)for(let o in s)t.types[i].fields[r].arguments[o]=Io(s[o].extensions);return n},[Ga.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:Io(n.extensions)},n),[Ga.MapperKind.ENUM_VALUE]:(n,r,i,s)=>(t.types[r].values[s]=Io(n.extensions),n),[Ga.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:Io(n.extensions)},n),[Ga.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:Io(n.extensions)},n),[Ga.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:Io(n.extensions)},n),[Ga.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:Io(n.extensions)},n)}),t}xg.extractExtensionsFromSchema=uue});var O$=V(Ac=>{"use strict";m();T();h();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.printPathArray=Ac.pathToArray=Ac.addPath=void 0;function cue(e,t,n){return{prev:e,key:t,typename:n}}Ac.addPath=cue;function lue(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Ac.pathToArray=lue;function due(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Ac.printPathArray=due});var S$=V(XA=>{"use strict";m();T();h();function Cg(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();h();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.mergeIncrementalResult=void 0;var ZA=S$();function D$({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,ZA.dset)(t,n,i),n[n.length-1]++;e.data&&(0,ZA.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,ZA.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{D$({incrementalResult:i,executionResult:t})})}Ug.mergeIncrementalResult=D$});var F$=V(Lp=>{"use strict";m();T();h();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.debugTimerEnd=Lp.debugTimerStart=void 0;var R$=new Set;function fue(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(R$.add(e),console.time(e))}Lp.debugTimerStart=fue;function mue(e){R$.has(e)&&console.timeEnd(e)}Lp.debugTimerEnd=mue});var vo=V(We=>{"use strict";m();T();h();Object.defineProperty(We,"__esModule",{value:!0});We.inspect=void 0;var tt=(Uj(),xe(Cj));tt.__exportStar(Mj(),We);tt.__exportStar(jh(),We);tt.__exportStar(lA(),We);tt.__exportStar(dA(),We);tt.__exportStar(Jj(),We);tt.__exportStar(fA(),We);tt.__exportStar(vA(),We);tt.__exportStar(dA(),We);tt.__exportStar(d1(),We);tt.__exportStar(p1(),We);tt.__exportStar(O1(),We);tt.__exportStar(P1(),We);tt.__exportStar(x1(),We);tt.__exportStar($1(),We);tt.__exportStar(K1(),We);tt.__exportStar(G1(),We);tt.__exportStar(Y1(),We);tt.__exportStar(J1(),We);tt.__exportStar(Sp(),We);tt.__exportStar(BA(),We);tt.__exportStar(ug(),We);tt.__exportStar(H1(),We);tt.__exportStar(X1(),We);tt.__exportStar(xl(),We);tt.__exportStar(wA(),We);tt.__exportStar(Z1(),We);tt.__exportStar(e$(),We);tt.__exportStar(t$(),We);tt.__exportStar(n$(),We);tt.__exportStar(LA(),We);tt.__exportStar(s$(),We);tt.__exportStar(o$(),We);tt.__exportStar(a$(),We);tt.__exportStar(qE(),We);tt.__exportStar(u$(),We);tt.__exportStar(m$(),We);tt.__exportStar(cA(),We);tt.__exportStar(h$(),We);tt.__exportStar(T$(),We);tt.__exportStar(y$(),We);tt.__exportStar(WE(),We);tt.__exportStar(N$(),We);tt.__exportStar(v$(),We);tt.__exportStar(Gh(),We);tt.__exportStar(bA(),We);tt.__exportStar(QA(),We);var hue=$h();Object.defineProperty(We,"inspect",{enumerable:!0,get:function(){return hue.inspect}});tt.__exportStar(gp(),We);tt.__exportStar(_$(),We);tt.__exportStar(YA(),We);tt.__exportStar(b$(),We);tt.__exportStar(O$(),We);tt.__exportStar(qh(),We);tt.__exportStar(qA(),We);tt.__exportStar(A$(),We);tt.__exportStar(F$(),We)});var L$=V(Mg=>{"use strict";m();T();h();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.mergeResolvers=void 0;var Tue=vo();function w$(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=w$(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Tue.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[s,o]=i.split(".");!o||o==="*"?delete r[s]:r[s]&&delete r[s][o]}return r}Mg.mergeResolvers=w$});var eR=V(Bg=>{"use strict";m();T();h();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.mergeArguments=void 0;var P$=vo();function yue(e,t,n){let r=Nue([...t,...e].filter(P$.isSome),n);return n&&n.sort&&r.sort(P$.compareNodes),r}Bg.mergeArguments=yue;function Nue(e,t){return e.reduce((n,r)=>{let i=n.findIndex(s=>s.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Ys=V(Pp=>{"use strict";m();T();h();Object.defineProperty(Pp,"__esModule",{value:!0});Pp.mergeDirective=Pp.mergeDirectives=void 0;var k$=(Fe(),xe(Me)),Eue=vo();function gue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function x$(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Iue(e,t){return t.some(({value:n})=>n===e.value)}function C$(e,t){let n=[...t];for(let r of e){let i=n.findIndex(s=>s.name.value===r.name.value);if(i>-1){let s=n[i];if(s.value.kind==="ListValue"){let o=s.value.values,u=r.value.values;s.value.values=Sue(o,u,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else s.value=r.value}else n.push(r)}return n}function vue(e,t){return e.map((n,r,i)=>{let s=i.findIndex(o=>o.name.value===n.name.value);if(s!==r&&!x$(n,t)){let o=i[s];return n.arguments=C$(n.arguments,o.arguments),null}return n}).filter(Eue.isSome)}function _ue(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=i?e:t,o=i?t:e,u=vue([...s],r);for(let l of o)if(gue(u,l)&&!x$(l,r)){let d=u.findIndex(y=>y.name.value===l.name.value),p=u[d];u[d].arguments=C$(l.arguments||[],p.arguments||[])}else u.push(l);return u}Pp.mergeDirectives=_ue;function bue(e,t){let n=(0,k$.print)(K(k({},e),{description:void 0})),r=(0,k$.print)(K(k({},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 Oue(e,t){return t?(bue(e,t),K(k({},e),{locations:[...t.locations,...e.locations.filter(n=>!Iue(n,t.locations))]})):e}Pp.mergeDirective=Oue;function Sue(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var tR=V(Vg=>{"use strict";m();T();h();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.mergeEnumValues=void 0;var Due=Ys(),Aue=vo();function Rue(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 u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,Due.mergeDirectives)(o.directives,l.directives,r)}else i.set(u,o)}let s=[...i.values()];return n&&n.sort&&s.sort(Aue.compareNodes),s}Vg.mergeEnumValues=Rue});var nR=V(jg=>{"use strict";m();T();h();Object.defineProperty(jg,"__esModule",{value:!0});jg.mergeEnum=void 0;var wue=(we(),xe(Me)),Fue=Ys(),Lue=tR();function Pue(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,Fue.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Lue.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?K(k({},e),{kind:wue.Kind.ENUM_TYPE_DEFINITION}):e}jg.mergeEnum=Pue});var $g=V(Er=>{"use strict";m();T();h();Object.defineProperty(Er,"__esModule",{value:!0});Er.defaultStringComparator=Er.CompareVal=Er.printTypeNode=Er.isNonNullTypeNode=Er.isListTypeNode=Er.isWrappingTypeNode=Er.extractType=Er.isSourceTypes=Er.isStringTypes=void 0;var Xh=(we(),xe(Me));function kue(e){return typeof e=="string"}Er.isStringTypes=kue;function xue(e){return e instanceof Xh.Source}Er.isSourceTypes=xue;function Cue(e){let t=e;for(;t.kind===Xh.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Er.extractType=Cue;function Uue(e){return e.kind!==Xh.Kind.NAMED_TYPE}Er.isWrappingTypeNode=Uue;function U$(e){return e.kind===Xh.Kind.LIST_TYPE}Er.isListTypeNode=U$;function M$(e){return e.kind===Xh.Kind.NON_NULL_TYPE}Er.isNonNullTypeNode=M$;function rR(e){return U$(e)?`[${rR(e.type)}]`:M$(e)?`${rR(e.type)}!`:e.name.value}Er.printTypeNode=rR;var Bl;(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"})(Bl=Er.CompareVal||(Er.CompareVal={}));function Mue(e,t){return e==null&&t==null?Bl.A_EQUALS_B:e==null?Bl.A_SMALLER_THAN_B:t==null?Bl.A_GREATER_THAN_B:et?Bl.A_GREATER_THAN_B:Bl.A_EQUALS_B}Er.defaultStringComparator=Mue});var eT=V(qg=>{"use strict";m();T();h();Object.defineProperty(qg,"__esModule",{value:!0});qg.mergeFields=void 0;var Gi=$g(),Bue=Ys(),Vue=vo(),jue=eR();function $ue(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function que(e,t,n,r,i){let s=[];if(n!=null&&s.push(...n),t!=null)for(let o of t){let[u,l]=$ue(s,o);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,o,e,r==null?void 0:r.throwOnConflict)||Kue(e,u,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,jue.mergeArguments)(o.arguments||[],u.arguments||[],r),d.directives=(0,Bue.mergeDirectives)(o.directives,u.directives,r,i),d.description=o.description||u.description,s[l]=d}else s.push(o)}if(r&&r.sort&&s.sort(Vue.compareNodes),r&&r.exclusions){let o=r.exclusions;return s.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return s}qg.mergeFields=que;function Kue(e,t,n,r=!1){let i=(0,Gi.printTypeNode)(t.type),s=(0,Gi.printTypeNode)(n.type);if(i!==s){let o=(0,Gi.extractType)(t.type),u=(0,Gi.extractType)(n.type);if(o.name.value!==u.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 "${u.name.value}"`);if(!Zh(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return(0,Gi.isNonNullTypeNode)(n.type)&&!(0,Gi.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Zh(e,t,n=!1){if(!(0,Gi.isWrappingTypeNode)(e)&&!(0,Gi.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Gi.isNonNullTypeNode)(t)){let r=(0,Gi.isNonNullTypeNode)(e)?e.type:e;return Zh(r,t.type)}return(0,Gi.isNonNullTypeNode)(e)?Zh(t,e,n):(0,Gi.isListTypeNode)(e)?(0,Gi.isListTypeNode)(t)&&Zh(e.type,t.type)||(0,Gi.isNonNullTypeNode)(t)&&Zh(e,t.type):!1}});var iR=V(Kg=>{"use strict";m();T();h();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.mergeInputType=void 0;var Gue=(we(),xe(Me)),Que=eT(),Yue=Ys();function Jue(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,Que.mergeFields)(e,e.fields,t.fields,n),directives:(0,Yue.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?K(k({},e),{kind:Gue.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}Kg.mergeInputType=Jue});var tT=V(Gg=>{"use strict";m();T();h();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.mergeNamedTypeArray=void 0;var zue=vo();function Hue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Wue(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Hue(t,i))];return n&&n.sort&&r.sort(zue.compareNodes),r}Gg.mergeNamedTypeArray=Wue});var sR=V(Qg=>{"use strict";m();T();h();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.mergeInterface=void 0;var Xue=(we(),xe(Me)),Zue=eT(),ece=Ys(),tce=tT();function nce(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,Zue.mergeFields)(e,e.fields,t.fields,n),directives:(0,ece.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,tce.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?K(k({},e),{kind:Xue.Kind.INTERFACE_TYPE_DEFINITION}):e}Qg.mergeInterface=nce});var oR=V(Yg=>{"use strict";m();T();h();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.mergeType=void 0;var rce=(we(),xe(Me)),ice=eT(),sce=Ys(),oce=tT();function ace(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,ice.mergeFields)(e,e.fields,t.fields,n),directives:(0,sce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,oce.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?K(k({},e),{kind:rce.Kind.OBJECT_TYPE_DEFINITION}):e}Yg.mergeType=ace});var aR=V(Jg=>{"use strict";m();T();h();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.mergeScalar=void 0;var uce=(we(),xe(Me)),cce=Ys();function lce(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,cce.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?K(k({},e),{kind:uce.Kind.SCALAR_TYPE_DEFINITION}):e}Jg.mergeScalar=lce});var cR=V(zg=>{"use strict";m();T();h();Object.defineProperty(zg,"__esModule",{value:!0});zg.mergeUnion=void 0;var uR=(we(),xe(Me)),dce=Ys(),pce=tT();function fce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,dce.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?uR.Kind.UNION_TYPE_DEFINITION:uR.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,pce.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?K(k({},e),{kind:uR.Kind.UNION_TYPE_DEFINITION}):e}zg.mergeUnion=fce});var lR=V(Vl=>{"use strict";m();T();h();Object.defineProperty(Vl,"__esModule",{value:!0});Vl.mergeSchemaDefs=Vl.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var nT=(we(),xe(Me)),mce=Ys();Vl.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function hce(e=[],t=[]){let n=[];for(let r in Vl.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(s=>s.operation===r)||t.find(s=>s.operation===r);i&&n.push(i)}return n}function Tce(e,t,n,r){return t?{kind:e.kind===nT.Kind.SCHEMA_DEFINITION||t.kind===nT.Kind.SCHEMA_DEFINITION?nT.Kind.SCHEMA_DEFINITION:nT.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,mce.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:hce(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?K(k({},e),{kind:nT.Kind.SCHEMA_DEFINITION}):e}Vl.mergeSchemaDefs=Tce});var dR=V(aa=>{"use strict";m();T();h();Object.defineProperty(aa,"__esModule",{value:!0});aa.mergeGraphQLNodes=aa.isNamedDefinitionNode=aa.schemaDefSymbol=void 0;var Ri=(we(),xe(Me)),yce=oR(),Nce=nR(),Ece=aR(),gce=cR(),Ice=iR(),vce=sR(),_ce=Ys(),bce=lR(),Oce=vo();aa.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function B$(e){return"name"in e}aa.isNamedDefinitionNode=B$;function Sce(e,t,n={}){var i,s,o;let r=n;for(let u of e)if(B$(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Oce.collectComment)(u),l==null)continue;if((s=t==null?void 0:t.exclusions)!=null&&s.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(u.kind){case Ri.Kind.OBJECT_TYPE_DEFINITION:case Ri.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,yce.mergeType)(u,r[l],t,n);break;case Ri.Kind.ENUM_TYPE_DEFINITION:case Ri.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Nce.mergeEnum)(u,r[l],t,n);break;case Ri.Kind.UNION_TYPE_DEFINITION:case Ri.Kind.UNION_TYPE_EXTENSION:r[l]=(0,gce.mergeUnion)(u,r[l],t,n);break;case Ri.Kind.SCALAR_TYPE_DEFINITION:case Ri.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Ece.mergeScalar)(u,r[l],t,n);break;case Ri.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ri.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Ice.mergeInputType)(u,r[l],t,n);break;case Ri.Kind.INTERFACE_TYPE_DEFINITION:case Ri.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,vce.mergeInterface)(u,r[l],t,n);break;case Ri.Kind.DIRECTIVE_DEFINITION:r[l]=(0,_ce.mergeDirective)(u,r[l]);break}}else(u.kind===Ri.Kind.SCHEMA_DEFINITION||u.kind===Ri.Kind.SCHEMA_EXTENSION)&&(r[aa.schemaDefSymbol]=(0,bce.mergeSchemaDefs)(u,r[aa.schemaDefSymbol],t));return r}aa.mergeGraphQLNodes=Sce});var $$=V(Up=>{"use strict";m();T();h();Object.defineProperty(Up,"__esModule",{value:!0});Up.mergeGraphQLTypes=Up.mergeTypeDefs=void 0;var Js=(we(),xe(Me)),pR=$g(),kp=dR(),Cp=vo(),V$=lR();function Dce(e,t){(0,Cp.resetComments)();let n={kind:Js.Kind.DOCUMENT,definitions:j$(e,k({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Cp.printWithComments)(n):r=n,(0,Cp.resetComments)(),r}Up.mergeTypeDefs=Dce;function xp(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")xp(e(),t,n,r,i);else if(Array.isArray(e))for(let s of e)xp(s,t,n,r,i);else if((0,Js.isSchema)(e)){let s=(0,Cp.getDocumentNodeFromSchema)(e,t);xp(s.definitions,t,n,r,i)}else if((0,pR.isStringTypes)(e)||(0,pR.isSourceTypes)(e)){let s=(0,Js.parse)(e,t);xp(s.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Js.isDefinitionNode)(e))e.kind===Js.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Cp.isDocumentNode)(e))xp(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 j$(e,t){var u,l,d;(0,Cp.resetComments)();let{allDirectives:n,allNodes:r}=xp(e,t),i=(0,kp.mergeGraphQLNodes)(n,t),s=(0,kp.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=s[kp.schemaDefSymbol]||{kind:Js.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let N in V$.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(b=>b.operation===N)){let b=V$.DEFAULT_OPERATION_TYPE_NAME_MAP[N],C=s[b];C!=null&&C.name!=null&&y.push({kind:Js.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Js.Kind.NAMED_TYPE,name:C.name},operation:N})}((u=p==null?void 0:p.operationTypes)==null?void 0:u.length)!=null&&p.operationTypes.length>0&&(s[kp.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=s[kp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(s[kp.schemaDefSymbol]={kind:Js.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Js.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Js.Kind.NAMED_TYPE,name:{kind:Js.Kind.NAME,value:"Query"}}}]});let o=Object.values(s);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:pR.defaultStringComparator;o.sort((y,N)=>{var I,b;return p((I=y.name)==null?void 0:I.value,(b=N.name)==null?void 0:b.value)})}return o}Up.mergeGraphQLTypes=j$});var q$=V(fi=>{"use strict";m();T();h();Object.defineProperty(fi,"__esModule",{value:!0});var Qi=(nA(),xe(tA));Qi.__exportStar(eR(),fi);Qi.__exportStar(Ys(),fi);Qi.__exportStar(tR(),fi);Qi.__exportStar(nR(),fi);Qi.__exportStar(eT(),fi);Qi.__exportStar(iR(),fi);Qi.__exportStar(sR(),fi);Qi.__exportStar(tT(),fi);Qi.__exportStar(dR(),fi);Qi.__exportStar($$(),fi);Qi.__exportStar(aR(),fi);Qi.__exportStar(oR(),fi);Qi.__exportStar(cR(),fi);Qi.__exportStar($g(),fi)});var G$=V(Rc=>{"use strict";m();T();h();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.applyExtensions=Rc.mergeExtensions=Rc.extractExtensionsFromSchema=void 0;var K$=vo(),Ace=vo();Object.defineProperty(Rc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Ace.extractExtensionsFromSchema}});function Rce(e){return(0,K$.mergeDeep)(e)}Rc.mergeExtensions=Rce;function Mp(e,t){e&&(e.extensions=(0,K$.mergeDeep)([e.extensions||{},t||{}]))}function wce(e,t){Mp(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Mp(i,r.extensions),r.type==="object"||r.type==="interface")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];if(u){Mp(u,o.extensions);for(let[l,d]of Object.entries(o.arguments))Mp(u.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];Mp(u,o.extensions)}else if(r.type==="enum")for(let[s,o]of Object.entries(r.values)){let u=i.getValue(s);Mp(u,o)}}}return e}Rc.applyExtensions=wce});var Hg=V(rT=>{"use strict";m();T();h();Object.defineProperty(rT,"__esModule",{value:!0});var fR=(nA(),xe(tA));fR.__exportStar(L$(),rT);fR.__exportStar(q$(),rT);fR.__exportStar(G$(),rT)});var jp=V(mt=>{"use strict";m();T();h();Object.defineProperty(mt,"__esModule",{value:!0});mt.FieldSetDirective=mt.MergeMethod=void 0;mt.newPersistedDirectivesData=Zg;mt.isNodeExternalOrShareable=z$;mt.getDefinedArgumentsForDirective=H$;mt.getDirectiveValidationErrors=W$;mt.extractDirectives=TR;mt.extractArguments=Lce;mt.isTypeRequired=yR;mt.compareAndValidateInputValueDefaultValues=Pce;mt.addEnumValueDataByNode=kce;mt.addInheritedDirectivesToFieldData=xce;mt.addFieldDataByNode=Cce;mt.addInputValueDataByNode=NR;mt.addPersistedDirectiveDefinitionDataByNode=Uce;mt.setMutualExecutableLocations=Mce;mt.isTypeNameRootType=Bce;mt.getRenamedRootTypeName=Vce;mt.getEnumNodeByData=qce;mt.getInputObjectNodeByData=Kce;mt.getCompositeOutputNodeByData=Gce;mt.getScalarNodeByData=Qce;mt.getSchemaNodeByData=Yce;mt.getUnionNodeByData=Jce;mt.removeInheritableDirectivesFromParentWithFieldsData=zce;mt.setLongestDescription=Hce;mt.isParentDataRootType=Z$;mt.setParentDataExtensionType=Wce;mt.extractPersistedDirectives=ele;mt.pushAuthorizationDirectives=tle;mt.getClientPersistedDirectiveNodes=hR;mt.getNodeForRouterSchemaByData=rle;mt.getNodeWithPersistedDirectivesByFieldData=ile;mt.getClientSchemaFieldNodeByFieldData=sle;mt.getNodeWithPersistedDirectivesByInputValueData=IR;mt.getValidFieldArgumentNodes=ole;mt.addValidPersistedDirectiveDefinitionNodeByData=ule;mt.newInvalidFieldNames=cle;mt.validateExternalAndShareable=lle;mt.isTypeValidImplementation=Wg;mt.isNodeDataInaccessible=tq;mt.isLeafKind=dle;mt.getSubscriptionFilterValue=ple;mt.getParentTypeName=fle;mt.newConditionalFieldData=mle;var Ft=(we(),xe(Me)),mR=Vh(),Bp=Ca(),zs=Vi(),xr=co(),qt=bi(),Q$=jl(),ys=ds(),Xg=_c(),Fce=Hg();function Zg(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function z$(e,t,n){var i;let r={isExternal:n.has(qt.EXTERNAL),isShareable:t||n.has(qt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let s of e.directives){let o=s.name.value;if(o===qt.EXTERNAL){r.isExternal=!0;continue}o===qt.SHAREABLE&&(r.isShareable=!0)}return r}function H$(e,t,n,r,i){let s=e.arguments||[],o=e.name.value,u=new Set,l=new Set,d=new Set;for(let p of s){let y=p.name.value;if(u.has(y)){l.add(y);continue}if(!t.get(y)){d.add(y);continue}u.add(y)}return l.size>0&&i.push((0,xr.duplicateDirectiveArgumentDefinitionsErrorMessage)(o,r,[...l])),d.size>0&&i.push((0,xr.unexpectedDirectiveArgumentErrorMessage)(o,[...d])),u}function W$(e,t,n,r,i,s,o=!1){var b,C,j;let u=e.name.value,l=r.get(u)||Xg.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(u),d=[];if(!l)return d.push((0,xr.undefinedDirectiveErrorMessage)(u,s)),d;let p=new Map,y=new Set;if((0,Q$.getDirectiveDefinitionArgumentSets)(l.arguments||[],p,y),(0,Q$.areNodeKindAndDirectiveLocationCompatible)(t,l,o)||d.push((0,xr.invalidDirectiveLocationErrorMessage)(s,o?Ft.Kind.ARGUMENT:t,u)),!l.repeatable&&n.get(u)){let Q=(0,ys.getValueOrDefault)(i,s,()=>new Set);Q.has(u)||(Q.add(u),d.push((0,xr.invalidRepeatedDirectiveErrorMessage)(u,s)))}if(!((b=l.arguments)!=null&&b.length))return(C=e.arguments)!=null&&C.length&&d.push((0,xr.unexpectedDirectiveArgumentsErrorMessage)(e,s)),d;if(!((j=e.arguments)!=null&&j.length))return y.size>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y])),d;let N=H$(e,p,y,s,d),I=(0,ys.getEntriesNotInHashSet)(y,N);return I.length>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y],I)),d}function TR(e,t,n,r,i,s,o=!1){if(!e.directives)return t;let u=new Set;for(let l of e.directives){let d=W$(l,e.kind,t,r,i,s,o),p=l.name.value;if(d.length>0){n.push((0,xr.invalidDirectiveError)(p,s,d));continue}if(qt.IGNORED_PARENT_DIRECTIVES.has(p))continue;if(p===qt.KEY){let N=l.arguments[0].value.value;if(u.has(N))continue;u.add(N)}let y=t.get(p);y?y.push(l):t.set(p,[l])}return t}function Lce(e,t,n,r,i,s,o,u,l){var I;if(!((I=t.arguments)!=null&&I.length))return e;let d=t.name.value,p=`${o}.${d}`,y=`${u}.${d}`;s.add(o);let N=new Set;for(let b of t.arguments){let C=b.name.value;if(e.has(C)){N.add(C);continue}NR(e,b,r,i,`${p}(${C}: ...)`,l,n,`${y}(${C}: ...)`)}return N.size>0&&n.push((0,xr.duplicateArgumentsError)(p,[...N])),e}function yR(e){return e.kind===Ft.Kind.NON_NULL_TYPE}function X$(e,t){switch(e.kind){case Ft.Kind.LIST_TYPE:return t.kind===Ft.Kind.LIST||t.kind===Ft.Kind.NULL;case Ft.Kind.NAMED_TYPE:if(t.kind===Ft.Kind.NULL)return!0;switch(e.name.value){case qt.BOOLEAN_SCALAR:return t.kind===Ft.Kind.BOOLEAN;case qt.FLOAT_SCALAR:return t.kind===Ft.Kind.INT||t.kind===Ft.Kind.FLOAT;case qt.INT_SCALAR:return t.kind===Ft.Kind.INT;case qt.STRING_SCALAR:return t.kind===Ft.Kind.STRING;default:return!0}case Ft.Kind.NON_NULL_TYPE:return t.kind===Ft.Kind.NULL?!1:X$(e.type,t)}}function Pce(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,Ft.print)(e.defaultValue),i=(0,Ft.print)(t.defaultValue);if(r!==i){n.push((0,xr.incompatibleInputValueDefaultValuesError)(`${e.isArgument?qt.ARGUMENT:qt.INPUT_FIELD} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function kce(e,t,n,r,i,s){let o=t.name.value;e.set(o,{appearances:1,directivesByDirectiveName:TR(t,new Map,n,r,i,`${s}.${o}`),name:o,node:(0,Bp.getMutableEnumValueNode)(t),parentTypeName:s,persistedDirectivesData:Zg(),description:(0,zs.formatDescription)(t.description)})}function xce(e,t){for(let n of Xg.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,ys.getValueOrDefault)(t,n,()=>[(0,ys.generateSimpleDirective)(n)]);return t}function Cce(e,t,n,r,i,s,o,u,l){let d=t.name.value,p=`${i}.${d}`,y=z$(t,!u,r),N={argumentDataByArgumentName:n,isExternalBySubgraphName:new Map([[o,y.isExternal]]),isInaccessible:r.has(qt.INACCESSIBLE),isShareableBySubgraphName:new Map([[o,y.isShareable]]),node:(0,Bp.getMutableFieldNode)(t,p,l),name:d,namedTypeName:(0,Bp.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:i,persistedDirectivesData:Zg(),renamedParentTypeName:s,subgraphNames:new Set([o]),type:(0,Bp.getMutableTypeNode)(t.type,p,l),directivesByDirectiveName:r,description:(0,zs.formatDescription)(t.description)};return e.set(d,N),N}function NR(e,t,n,r,i,s,o,u){let l=t.name.value,d=!!u;t.defaultValue&&!X$(t.type,t.defaultValue)&&o.push((0,xr.incompatibleInputValueDefaultValueTypeError)((d?qt.ARGUMENT:qt.INPUT_FIELD)+` "${l}"`,i,(0,Fce.printTypeNode)(t.type),(0,Ft.print)(t.defaultValue))),e.set(l,{directivesByDirectiveName:TR(t,new Map,o,n,r,i,d),includeDefaultValue:!!t.defaultValue,isArgument:d,name:l,node:(0,Bp.getMutableInputValueNode)(t,i,o),originalPath:i,persistedDirectivesData:Zg(),renamedPath:u||i,requiredSubgraphNames:new Set(yR(t.type)?[s]:[]),subgraphNames:new Set([s]),type:(0,Bp.getMutableTypeNode)(t.type,i,o),defaultValue:t.defaultValue,description:(0,zs.formatDescription)(t.description)})}function Uce(e,t,n,r,i,s,o){let u=t.name.value,l=new Map;for(let d of t.arguments||[]){let p=`@${u}(${d.name.value}: ...)`;NR(l,d,r,i,p,o,n,p)}e.set(u,{argumentDataByArgumentName:l,executableLocations:s,name:u,repeatable:t.repeatable,subgraphNames:new Set([o]),description:(0,zs.formatDescription)(t.description)})}function Mce(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function Bce(e,t){return qt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function Vce(e,t){let n=t.get(e);if(!n)return e;switch(n){case Ft.OperationTypeNode.MUTATION:return qt.MUTATION;case Ft.OperationTypeNode.SUBSCRIPTION:return qt.SUBSCRIPTION;default:return qt.QUERY}}function jce(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,ys.generateSimpleDirective)(qt.AUTHENTICATED);t.directivesByDirectiveName.set(qt.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,ys.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(qt.REQUIRES_SCOPES,[i])}}}function $ce(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function ER(e,t){let n=[];for(let r of e.values()){if(r.node.kind===Ft.Kind.FIELD_DEFINITION){let i=r;jce(t,i),$ce(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function Vp(e,t,n,r){let i=[];for(let[s,o]of e){let u=n.get(s)||Xg.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(s);if(!u)continue;if(!u.repeatable&&o.length>1){t.push((0,xr.invalidDirectiveError)(s,r,[(0,xr.invalidRepeatedDirectiveErrorMessage)(s,r)]));continue}if(s!==qt.KEY){i.push(...o);continue}let l=[],d=new Set,p=[];for(let y of o){let N=y.arguments[0].value;if(N.kind!==Ft.Kind.STRING){p.push((0,xr.invalidKeyDirectiveArgumentErrorMessage)(N.kind));continue}let I=N.value;d.has(I)||(d.add(I),i.push(y),l.push(y))}e.set(s,l),p.length>0&&t.push((0,xr.invalidDirectiveError)(s,r,p))}return i}function qce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.values=ER(e.enumValueDataByValueName,r),e.node}function Kce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=ER(e.inputValueDataByValueName,r),e.node}function Gce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=ER(e.fieldDataByFieldName,r),e.node.interfaces=(0,zs.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}function Qce(e,t,n){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node}function Yce(e,t,n){return{description:e.description,directives:Vp(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,ys.mapToArrayOfValues)(e.operationTypes)}}function Jce(e,t,n){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,ys.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}function zce(e){for(let t of Xg.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}function Hce(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(qt.REQUIRES_SCOPES,[(0,ys.generateRequiresScopesDirective)(n.requiredScopes)]))}function eq(e){return{kind:Ft.Kind.DIRECTIVE,name:(0,zs.stringToNameNode)(qt.DEPRECATED),arguments:[{kind:Ft.Kind.ARGUMENT,name:(0,zs.stringToNameNode)(qt.REASON),value:{kind:Ft.Kind.STRING,value:e||qt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function nle(e,t,n,r){let i=[];for(let[s,o]of e){let u=t.get(s);if(u){if(o.length<2){i.push(...o);continue}if(!u.repeatable){r.push((0,xr.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}i.push(...o)}}return i}function gR(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(eq(e.persistedDirectivesData.deprecatedReason)),r.push(...nle(e.persistedDirectivesData.directives,t,e.name,n)),r}function hR(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(eq(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directives)qt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function rle(e,t,n){return e.node.name=(0,zs.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=gR(e,t,n),e.node}function ile(e,t,n,r){return e.node.arguments=n,e.node.name=(0,zs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=gR(e,t,r),e.node}function sle(e){let t=hR(e),n=[];for(let r of e.argumentDataByArgumentName.values())tq(r)||n.push(K(k({},r.node),{directives:hR(r)}));return K(k({},e.node),{directives:t,arguments:n})}function IR(e,t,n){return e.node.name=(0,zs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=gR(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function ole(e,t,n,r){let i=[],s=[],o=[],u=`${e.renamedParentTypeName}.${e.name}`;for(let[l,d]of e.argumentDataByArgumentName)e.subgraphNames.size===d.subgraphNames.size?(s.push(l),i.push(IR(d,t,r))):yR(d.type)&&o.push({inputValueName:l,missingSubgraphs:(0,ys.getEntriesNotInHashSet)(e.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});return o.length>0?r.push((0,xr.invalidRequiredInputValueError)(qt.FIELD,u,o)):s.length>0&&((0,ys.getValueOrDefault)(n,u,()=>({argumentNames:s,fieldName:e.name,typeName:e.renamedParentTypeName})).argumentNames=s),i}function ale(e,t,n,r,i){let s=[];for(let[o,u]of t.argumentDataByArgumentName){let l=(0,ys.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&s.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(IR(u,n,r)),i&&i.add(o)}return s.length>0?(r.push((0,xr.invalidRequiredInputValueError)(qt.DIRECTIVE_DEFINITION,`@${t.name}`,s)),!1):!0}function ule(e,t,n,r){let i=[];ale(i,t,n,r)&&e.push({arguments:i,kind:Ft.Kind.DIRECTIVE_DEFINITION,locations:(0,zs.setToNameNodeArray)(t.executableLocations),name:(0,zs.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function cle(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function lle(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[s,o]of e.isShareableBySubgraphName){if(e.isExternalBySubgraphName.get(s)){r.push(s);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 Y$;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(Y$||(mt.MergeMethod=Y$={}));function Wg(e,t,n){if(e.kind===Ft.Kind.NON_NULL_TYPE)return t.kind!==Ft.Kind.NON_NULL_TYPE?!1:Wg(e.type,t.type,n);if(t.kind===Ft.Kind.NON_NULL_TYPE)return Wg(e,t.type,n);switch(e.kind){case Ft.Kind.NAMED_TYPE:if(t.kind===Ft.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let s=n.get(r);return s?s.has(i):!1}return!1;default:return t.kind===Ft.Kind.LIST_TYPE?Wg(e.type,t.type,n):!1}}function tq(e){return e.persistedDirectivesData.directives.has(qt.INACCESSIBLE)||e.directivesByDirectiveName.has(qt.INACCESSIBLE)}function dle(e){return e===Ft.Kind.SCALAR_TYPE_DEFINITION||e===Ft.Kind.ENUM_TYPE_DEFINITION}function ple(e){switch(e.kind){case Ft.Kind.BOOLEAN:return e.value;case Ft.Kind.ENUM:case Ft.Kind.STRING:return e.value;case Ft.Kind.FLOAT:case Ft.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case Ft.Kind.NULL:return null}}function fle(e){switch(e.kind){case Ft.Kind.OBJECT_TYPE_DEFINITION:case Ft.Kind.OBJECT_TYPE_EXTENSION:return e.renamedTypeName;default:return e.name}}var J$;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(J$||(mt.FieldSetDirective=J$={}));function mle(){return{providedBy:[],requiredBy:[]}}});var eI=V($l=>{"use strict";m();T();h();Object.defineProperty($l,"__esModule",{value:!0});$l.Warning=void 0;$l.invalidOverrideTargetSubgraphNameWarning=hle;$l.externalInterfaceFieldsWarning=Tle;$l.nonExternalConditionalFieldWarning=yle;var nq=bi(),$p=class extends Error{constructor(t){super(t),this.name="Warning"}};$l.Warning=$p;function hle(e,t,n){return new $p(`The object type "${t}" defines the directive "@override(from: "${e})" on the following field`+(n.length>1?"s":"")+': "'+n.join(nq.QUOTATION_JOIN)+`". + ${n}`)}function Oue(e,t){return t?(bue(e,t),K(k({},e),{locations:[...t.locations,...e.locations.filter(n=>!Iue(n,t.locations))]})):e}Pp.mergeDirective=Oue;function Sue(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var tR=V(Vg=>{"use strict";m();T();h();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.mergeEnumValues=void 0;var Due=Ys(),Aue=vo();function Rue(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 u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,Due.mergeDirectives)(o.directives,l.directives,r)}else i.set(u,o)}let s=[...i.values()];return n&&n.sort&&s.sort(Aue.compareNodes),s}Vg.mergeEnumValues=Rue});var nR=V(jg=>{"use strict";m();T();h();Object.defineProperty(jg,"__esModule",{value:!0});jg.mergeEnum=void 0;var Fue=(Fe(),xe(Me)),wue=Ys(),Lue=tR();function Pue(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,wue.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Lue.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?K(k({},e),{kind:Fue.Kind.ENUM_TYPE_DEFINITION}):e}jg.mergeEnum=Pue});var $g=V(gr=>{"use strict";m();T();h();Object.defineProperty(gr,"__esModule",{value:!0});gr.defaultStringComparator=gr.CompareVal=gr.printTypeNode=gr.isNonNullTypeNode=gr.isListTypeNode=gr.isWrappingTypeNode=gr.extractType=gr.isSourceTypes=gr.isStringTypes=void 0;var Xh=(Fe(),xe(Me));function kue(e){return typeof e=="string"}gr.isStringTypes=kue;function xue(e){return e instanceof Xh.Source}gr.isSourceTypes=xue;function Cue(e){let t=e;for(;t.kind===Xh.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}gr.extractType=Cue;function Uue(e){return e.kind!==Xh.Kind.NAMED_TYPE}gr.isWrappingTypeNode=Uue;function U$(e){return e.kind===Xh.Kind.LIST_TYPE}gr.isListTypeNode=U$;function M$(e){return e.kind===Xh.Kind.NON_NULL_TYPE}gr.isNonNullTypeNode=M$;function rR(e){return U$(e)?`[${rR(e.type)}]`:M$(e)?`${rR(e.type)}!`:e.name.value}gr.printTypeNode=rR;var Bl;(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"})(Bl=gr.CompareVal||(gr.CompareVal={}));function Mue(e,t){return e==null&&t==null?Bl.A_EQUALS_B:e==null?Bl.A_SMALLER_THAN_B:t==null?Bl.A_GREATER_THAN_B:et?Bl.A_GREATER_THAN_B:Bl.A_EQUALS_B}gr.defaultStringComparator=Mue});var eT=V(qg=>{"use strict";m();T();h();Object.defineProperty(qg,"__esModule",{value:!0});qg.mergeFields=void 0;var Gi=$g(),Bue=Ys(),Vue=vo(),jue=eR();function $ue(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function que(e,t,n,r,i){let s=[];if(n!=null&&s.push(...n),t!=null)for(let o of t){let[u,l]=$ue(s,o);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,o,e,r==null?void 0:r.throwOnConflict)||Kue(e,u,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,jue.mergeArguments)(o.arguments||[],u.arguments||[],r),d.directives=(0,Bue.mergeDirectives)(o.directives,u.directives,r,i),d.description=o.description||u.description,s[l]=d}else s.push(o)}if(r&&r.sort&&s.sort(Vue.compareNodes),r&&r.exclusions){let o=r.exclusions;return s.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return s}qg.mergeFields=que;function Kue(e,t,n,r=!1){let i=(0,Gi.printTypeNode)(t.type),s=(0,Gi.printTypeNode)(n.type);if(i!==s){let o=(0,Gi.extractType)(t.type),u=(0,Gi.extractType)(n.type);if(o.name.value!==u.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 "${u.name.value}"`);if(!Zh(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return(0,Gi.isNonNullTypeNode)(n.type)&&!(0,Gi.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Zh(e,t,n=!1){if(!(0,Gi.isWrappingTypeNode)(e)&&!(0,Gi.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Gi.isNonNullTypeNode)(t)){let r=(0,Gi.isNonNullTypeNode)(e)?e.type:e;return Zh(r,t.type)}return(0,Gi.isNonNullTypeNode)(e)?Zh(t,e,n):(0,Gi.isListTypeNode)(e)?(0,Gi.isListTypeNode)(t)&&Zh(e.type,t.type)||(0,Gi.isNonNullTypeNode)(t)&&Zh(e,t.type):!1}});var iR=V(Kg=>{"use strict";m();T();h();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.mergeInputType=void 0;var Gue=(Fe(),xe(Me)),Que=eT(),Yue=Ys();function Jue(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,Que.mergeFields)(e,e.fields,t.fields,n),directives:(0,Yue.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?K(k({},e),{kind:Gue.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}Kg.mergeInputType=Jue});var tT=V(Gg=>{"use strict";m();T();h();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.mergeNamedTypeArray=void 0;var zue=vo();function Hue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Wue(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Hue(t,i))];return n&&n.sort&&r.sort(zue.compareNodes),r}Gg.mergeNamedTypeArray=Wue});var sR=V(Qg=>{"use strict";m();T();h();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.mergeInterface=void 0;var Xue=(Fe(),xe(Me)),Zue=eT(),ece=Ys(),tce=tT();function nce(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,Zue.mergeFields)(e,e.fields,t.fields,n),directives:(0,ece.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,tce.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?K(k({},e),{kind:Xue.Kind.INTERFACE_TYPE_DEFINITION}):e}Qg.mergeInterface=nce});var oR=V(Yg=>{"use strict";m();T();h();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.mergeType=void 0;var rce=(Fe(),xe(Me)),ice=eT(),sce=Ys(),oce=tT();function ace(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,ice.mergeFields)(e,e.fields,t.fields,n),directives:(0,sce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,oce.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?K(k({},e),{kind:rce.Kind.OBJECT_TYPE_DEFINITION}):e}Yg.mergeType=ace});var aR=V(Jg=>{"use strict";m();T();h();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.mergeScalar=void 0;var uce=(Fe(),xe(Me)),cce=Ys();function lce(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,cce.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?K(k({},e),{kind:uce.Kind.SCALAR_TYPE_DEFINITION}):e}Jg.mergeScalar=lce});var cR=V(zg=>{"use strict";m();T();h();Object.defineProperty(zg,"__esModule",{value:!0});zg.mergeUnion=void 0;var uR=(Fe(),xe(Me)),dce=Ys(),pce=tT();function fce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,dce.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?uR.Kind.UNION_TYPE_DEFINITION:uR.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,pce.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?K(k({},e),{kind:uR.Kind.UNION_TYPE_DEFINITION}):e}zg.mergeUnion=fce});var lR=V(Vl=>{"use strict";m();T();h();Object.defineProperty(Vl,"__esModule",{value:!0});Vl.mergeSchemaDefs=Vl.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var nT=(Fe(),xe(Me)),mce=Ys();Vl.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function hce(e=[],t=[]){let n=[];for(let r in Vl.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(s=>s.operation===r)||t.find(s=>s.operation===r);i&&n.push(i)}return n}function Tce(e,t,n,r){return t?{kind:e.kind===nT.Kind.SCHEMA_DEFINITION||t.kind===nT.Kind.SCHEMA_DEFINITION?nT.Kind.SCHEMA_DEFINITION:nT.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,mce.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:hce(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?K(k({},e),{kind:nT.Kind.SCHEMA_DEFINITION}):e}Vl.mergeSchemaDefs=Tce});var dR=V(aa=>{"use strict";m();T();h();Object.defineProperty(aa,"__esModule",{value:!0});aa.mergeGraphQLNodes=aa.isNamedDefinitionNode=aa.schemaDefSymbol=void 0;var Ri=(Fe(),xe(Me)),yce=oR(),Nce=nR(),Ece=aR(),gce=cR(),Ice=iR(),vce=sR(),_ce=Ys(),bce=lR(),Oce=vo();aa.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function B$(e){return"name"in e}aa.isNamedDefinitionNode=B$;function Sce(e,t,n={}){var i,s,o;let r=n;for(let u of e)if(B$(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Oce.collectComment)(u),l==null)continue;if((s=t==null?void 0:t.exclusions)!=null&&s.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(u.kind){case Ri.Kind.OBJECT_TYPE_DEFINITION:case Ri.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,yce.mergeType)(u,r[l],t,n);break;case Ri.Kind.ENUM_TYPE_DEFINITION:case Ri.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Nce.mergeEnum)(u,r[l],t,n);break;case Ri.Kind.UNION_TYPE_DEFINITION:case Ri.Kind.UNION_TYPE_EXTENSION:r[l]=(0,gce.mergeUnion)(u,r[l],t,n);break;case Ri.Kind.SCALAR_TYPE_DEFINITION:case Ri.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Ece.mergeScalar)(u,r[l],t,n);break;case Ri.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ri.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Ice.mergeInputType)(u,r[l],t,n);break;case Ri.Kind.INTERFACE_TYPE_DEFINITION:case Ri.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,vce.mergeInterface)(u,r[l],t,n);break;case Ri.Kind.DIRECTIVE_DEFINITION:r[l]=(0,_ce.mergeDirective)(u,r[l]);break}}else(u.kind===Ri.Kind.SCHEMA_DEFINITION||u.kind===Ri.Kind.SCHEMA_EXTENSION)&&(r[aa.schemaDefSymbol]=(0,bce.mergeSchemaDefs)(u,r[aa.schemaDefSymbol],t));return r}aa.mergeGraphQLNodes=Sce});var $$=V(Up=>{"use strict";m();T();h();Object.defineProperty(Up,"__esModule",{value:!0});Up.mergeGraphQLTypes=Up.mergeTypeDefs=void 0;var Js=(Fe(),xe(Me)),pR=$g(),kp=dR(),Cp=vo(),V$=lR();function Dce(e,t){(0,Cp.resetComments)();let n={kind:Js.Kind.DOCUMENT,definitions:j$(e,k({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Cp.printWithComments)(n):r=n,(0,Cp.resetComments)(),r}Up.mergeTypeDefs=Dce;function xp(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")xp(e(),t,n,r,i);else if(Array.isArray(e))for(let s of e)xp(s,t,n,r,i);else if((0,Js.isSchema)(e)){let s=(0,Cp.getDocumentNodeFromSchema)(e,t);xp(s.definitions,t,n,r,i)}else if((0,pR.isStringTypes)(e)||(0,pR.isSourceTypes)(e)){let s=(0,Js.parse)(e,t);xp(s.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Js.isDefinitionNode)(e))e.kind===Js.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Cp.isDocumentNode)(e))xp(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 j$(e,t){var u,l,d;(0,Cp.resetComments)();let{allDirectives:n,allNodes:r}=xp(e,t),i=(0,kp.mergeGraphQLNodes)(n,t),s=(0,kp.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=s[kp.schemaDefSymbol]||{kind:Js.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let N in V$.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(b=>b.operation===N)){let b=V$.DEFAULT_OPERATION_TYPE_NAME_MAP[N],C=s[b];C!=null&&C.name!=null&&y.push({kind:Js.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Js.Kind.NAMED_TYPE,name:C.name},operation:N})}((u=p==null?void 0:p.operationTypes)==null?void 0:u.length)!=null&&p.operationTypes.length>0&&(s[kp.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=s[kp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(s[kp.schemaDefSymbol]={kind:Js.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Js.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Js.Kind.NAMED_TYPE,name:{kind:Js.Kind.NAME,value:"Query"}}}]});let o=Object.values(s);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:pR.defaultStringComparator;o.sort((y,N)=>{var I,b;return p((I=y.name)==null?void 0:I.value,(b=N.name)==null?void 0:b.value)})}return o}Up.mergeGraphQLTypes=j$});var q$=V(fi=>{"use strict";m();T();h();Object.defineProperty(fi,"__esModule",{value:!0});var Qi=(nA(),xe(tA));Qi.__exportStar(eR(),fi);Qi.__exportStar(Ys(),fi);Qi.__exportStar(tR(),fi);Qi.__exportStar(nR(),fi);Qi.__exportStar(eT(),fi);Qi.__exportStar(iR(),fi);Qi.__exportStar(sR(),fi);Qi.__exportStar(tT(),fi);Qi.__exportStar(dR(),fi);Qi.__exportStar($$(),fi);Qi.__exportStar(aR(),fi);Qi.__exportStar(oR(),fi);Qi.__exportStar(cR(),fi);Qi.__exportStar($g(),fi)});var G$=V(Rc=>{"use strict";m();T();h();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.applyExtensions=Rc.mergeExtensions=Rc.extractExtensionsFromSchema=void 0;var K$=vo(),Ace=vo();Object.defineProperty(Rc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Ace.extractExtensionsFromSchema}});function Rce(e){return(0,K$.mergeDeep)(e)}Rc.mergeExtensions=Rce;function Mp(e,t){e&&(e.extensions=(0,K$.mergeDeep)([e.extensions||{},t||{}]))}function Fce(e,t){Mp(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Mp(i,r.extensions),r.type==="object"||r.type==="interface")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];if(u){Mp(u,o.extensions);for(let[l,d]of Object.entries(o.arguments))Mp(u.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];Mp(u,o.extensions)}else if(r.type==="enum")for(let[s,o]of Object.entries(r.values)){let u=i.getValue(s);Mp(u,o)}}}return e}Rc.applyExtensions=Fce});var Hg=V(rT=>{"use strict";m();T();h();Object.defineProperty(rT,"__esModule",{value:!0});var fR=(nA(),xe(tA));fR.__exportStar(L$(),rT);fR.__exportStar(q$(),rT);fR.__exportStar(G$(),rT)});var jp=V(mt=>{"use strict";m();T();h();Object.defineProperty(mt,"__esModule",{value:!0});mt.FieldSetDirective=mt.MergeMethod=void 0;mt.newPersistedDirectivesData=Zg;mt.isNodeExternalOrShareable=z$;mt.getDefinedArgumentsForDirective=H$;mt.getDirectiveValidationErrors=W$;mt.extractDirectives=TR;mt.extractArguments=Lce;mt.isTypeRequired=yR;mt.compareAndValidateInputValueDefaultValues=Pce;mt.addEnumValueDataByNode=kce;mt.addInheritedDirectivesToFieldData=xce;mt.addFieldDataByNode=Cce;mt.addInputValueDataByNode=NR;mt.addPersistedDirectiveDefinitionDataByNode=Uce;mt.setMutualExecutableLocations=Mce;mt.isTypeNameRootType=Bce;mt.getRenamedRootTypeName=Vce;mt.getEnumNodeByData=qce;mt.getInputObjectNodeByData=Kce;mt.getCompositeOutputNodeByData=Gce;mt.getScalarNodeByData=Qce;mt.getSchemaNodeByData=Yce;mt.getUnionNodeByData=Jce;mt.removeInheritableDirectivesFromParentWithFieldsData=zce;mt.setLongestDescription=Hce;mt.isParentDataRootType=Z$;mt.setParentDataExtensionType=Wce;mt.extractPersistedDirectives=ele;mt.pushAuthorizationDirectives=tle;mt.getClientPersistedDirectiveNodes=hR;mt.getNodeForRouterSchemaByData=rle;mt.getNodeWithPersistedDirectivesByFieldData=ile;mt.getClientSchemaFieldNodeByFieldData=sle;mt.getNodeWithPersistedDirectivesByInputValueData=IR;mt.getValidFieldArgumentNodes=ole;mt.addValidPersistedDirectiveDefinitionNodeByData=ule;mt.newInvalidFieldNames=cle;mt.validateExternalAndShareable=lle;mt.isTypeValidImplementation=Wg;mt.isNodeDataInaccessible=tq;mt.isLeafKind=dle;mt.getSubscriptionFilterValue=ple;mt.getParentTypeName=fle;mt.newConditionalFieldData=mle;var wt=(Fe(),xe(Me)),mR=Vh(),Bp=Ca(),zs=Vi(),xr=co(),qt=bi(),Q$=jl(),ys=ds(),Xg=_c(),wce=Hg();function Zg(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function z$(e,t,n){var i;let r={isExternal:n.has(qt.EXTERNAL),isShareable:t||n.has(qt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let s of e.directives){let o=s.name.value;if(o===qt.EXTERNAL){r.isExternal=!0;continue}o===qt.SHAREABLE&&(r.isShareable=!0)}return r}function H$(e,t,n,r,i){let s=e.arguments||[],o=e.name.value,u=new Set,l=new Set,d=new Set;for(let p of s){let y=p.name.value;if(u.has(y)){l.add(y);continue}if(!t.get(y)){d.add(y);continue}u.add(y)}return l.size>0&&i.push((0,xr.duplicateDirectiveArgumentDefinitionsErrorMessage)(o,r,[...l])),d.size>0&&i.push((0,xr.unexpectedDirectiveArgumentErrorMessage)(o,[...d])),u}function W$(e,t,n,r,i,s,o=!1){var b,C,j;let u=e.name.value,l=r.get(u)||Xg.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(u),d=[];if(!l)return d.push((0,xr.undefinedDirectiveErrorMessage)(u,s)),d;let p=new Map,y=new Set;if((0,Q$.getDirectiveDefinitionArgumentSets)(l.arguments||[],p,y),(0,Q$.areNodeKindAndDirectiveLocationCompatible)(t,l,o)||d.push((0,xr.invalidDirectiveLocationErrorMessage)(s,o?wt.Kind.ARGUMENT:t,u)),!l.repeatable&&n.get(u)){let Q=(0,ys.getValueOrDefault)(i,s,()=>new Set);Q.has(u)||(Q.add(u),d.push((0,xr.invalidRepeatedDirectiveErrorMessage)(u,s)))}if(!((b=l.arguments)!=null&&b.length))return(C=e.arguments)!=null&&C.length&&d.push((0,xr.unexpectedDirectiveArgumentsErrorMessage)(e,s)),d;if(!((j=e.arguments)!=null&&j.length))return y.size>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y])),d;let N=H$(e,p,y,s,d),I=(0,ys.getEntriesNotInHashSet)(y,N);return I.length>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y],I)),d}function TR(e,t,n,r,i,s,o=!1){if(!e.directives)return t;let u=new Set;for(let l of e.directives){let d=W$(l,e.kind,t,r,i,s,o),p=l.name.value;if(d.length>0){n.push((0,xr.invalidDirectiveError)(p,s,d));continue}if(qt.IGNORED_PARENT_DIRECTIVES.has(p))continue;if(p===qt.KEY){let N=l.arguments[0].value.value;if(u.has(N))continue;u.add(N)}let y=t.get(p);y?y.push(l):t.set(p,[l])}return t}function Lce(e,t,n,r,i,s,o,u,l){var I;if(!((I=t.arguments)!=null&&I.length))return e;let d=t.name.value,p=`${o}.${d}`,y=`${u}.${d}`;s.add(o);let N=new Set;for(let b of t.arguments){let C=b.name.value;if(e.has(C)){N.add(C);continue}NR(e,b,r,i,`${p}(${C}: ...)`,l,n,`${y}(${C}: ...)`)}return N.size>0&&n.push((0,xr.duplicateArgumentsError)(p,[...N])),e}function yR(e){return e.kind===wt.Kind.NON_NULL_TYPE}function X$(e,t){switch(e.kind){case wt.Kind.LIST_TYPE:return t.kind===wt.Kind.LIST||t.kind===wt.Kind.NULL;case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NULL)return!0;switch(e.name.value){case qt.BOOLEAN_SCALAR:return t.kind===wt.Kind.BOOLEAN;case qt.FLOAT_SCALAR:return t.kind===wt.Kind.INT||t.kind===wt.Kind.FLOAT;case qt.INT_SCALAR:return t.kind===wt.Kind.INT;case qt.STRING_SCALAR:return t.kind===wt.Kind.STRING;default:return!0}case wt.Kind.NON_NULL_TYPE:return t.kind===wt.Kind.NULL?!1:X$(e.type,t)}}function Pce(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,wt.print)(e.defaultValue),i=(0,wt.print)(t.defaultValue);if(r!==i){n.push((0,xr.incompatibleInputValueDefaultValuesError)(`${e.isArgument?qt.ARGUMENT:qt.INPUT_FIELD} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function kce(e,t,n,r,i,s){let o=t.name.value;e.set(o,{appearances:1,directivesByDirectiveName:TR(t,new Map,n,r,i,`${s}.${o}`),name:o,node:(0,Bp.getMutableEnumValueNode)(t),parentTypeName:s,persistedDirectivesData:Zg(),description:(0,zs.formatDescription)(t.description)})}function xce(e,t){for(let n of Xg.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,ys.getValueOrDefault)(t,n,()=>[(0,ys.generateSimpleDirective)(n)]);return t}function Cce(e,t,n,r,i,s,o,u,l){let d=t.name.value,p=`${i}.${d}`,y=z$(t,!u,r),N={argumentDataByArgumentName:n,isExternalBySubgraphName:new Map([[o,y.isExternal]]),isInaccessible:r.has(qt.INACCESSIBLE),isShareableBySubgraphName:new Map([[o,y.isShareable]]),node:(0,Bp.getMutableFieldNode)(t,p,l),name:d,namedTypeName:(0,Bp.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:i,persistedDirectivesData:Zg(),renamedParentTypeName:s,subgraphNames:new Set([o]),type:(0,Bp.getMutableTypeNode)(t.type,p,l),directivesByDirectiveName:r,description:(0,zs.formatDescription)(t.description)};return e.set(d,N),N}function NR(e,t,n,r,i,s,o,u){let l=t.name.value,d=!!u;t.defaultValue&&!X$(t.type,t.defaultValue)&&o.push((0,xr.incompatibleInputValueDefaultValueTypeError)((d?qt.ARGUMENT:qt.INPUT_FIELD)+` "${l}"`,i,(0,wce.printTypeNode)(t.type),(0,wt.print)(t.defaultValue))),e.set(l,{directivesByDirectiveName:TR(t,new Map,o,n,r,i,d),includeDefaultValue:!!t.defaultValue,isArgument:d,name:l,node:(0,Bp.getMutableInputValueNode)(t,i,o),originalPath:i,persistedDirectivesData:Zg(),renamedPath:u||i,requiredSubgraphNames:new Set(yR(t.type)?[s]:[]),subgraphNames:new Set([s]),type:(0,Bp.getMutableTypeNode)(t.type,i,o),defaultValue:t.defaultValue,description:(0,zs.formatDescription)(t.description)})}function Uce(e,t,n,r,i,s,o){let u=t.name.value,l=new Map;for(let d of t.arguments||[]){let p=`@${u}(${d.name.value}: ...)`;NR(l,d,r,i,p,o,n,p)}e.set(u,{argumentDataByArgumentName:l,executableLocations:s,name:u,repeatable:t.repeatable,subgraphNames:new Set([o]),description:(0,zs.formatDescription)(t.description)})}function Mce(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function Bce(e,t){return qt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function Vce(e,t){let n=t.get(e);if(!n)return e;switch(n){case wt.OperationTypeNode.MUTATION:return qt.MUTATION;case wt.OperationTypeNode.SUBSCRIPTION:return qt.SUBSCRIPTION;default:return qt.QUERY}}function jce(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,ys.generateSimpleDirective)(qt.AUTHENTICATED);t.directivesByDirectiveName.set(qt.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,ys.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(qt.REQUIRES_SCOPES,[i])}}}function $ce(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function ER(e,t){let n=[];for(let r of e.values()){if(r.node.kind===wt.Kind.FIELD_DEFINITION){let i=r;jce(t,i),$ce(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function Vp(e,t,n,r){let i=[];for(let[s,o]of e){let u=n.get(s)||Xg.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(s);if(!u)continue;if(!u.repeatable&&o.length>1){t.push((0,xr.invalidDirectiveError)(s,r,[(0,xr.invalidRepeatedDirectiveErrorMessage)(s,r)]));continue}if(s!==qt.KEY){i.push(...o);continue}let l=[],d=new Set,p=[];for(let y of o){let N=y.arguments[0].value;if(N.kind!==wt.Kind.STRING){p.push((0,xr.invalidKeyDirectiveArgumentErrorMessage)(N.kind));continue}let I=N.value;d.has(I)||(d.add(I),i.push(y),l.push(y))}e.set(s,l),p.length>0&&t.push((0,xr.invalidDirectiveError)(s,r,p))}return i}function qce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.values=ER(e.enumValueDataByValueName,r),e.node}function Kce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=ER(e.inputValueDataByValueName,r),e.node}function Gce(e,t,n,r){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=ER(e.fieldDataByFieldName,r),e.node.interfaces=(0,zs.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}function Qce(e,t,n){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node}function Yce(e,t,n){return{description:e.description,directives:Vp(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,ys.mapToArrayOfValues)(e.operationTypes)}}function Jce(e,t,n){return e.node.description=e.description,e.node.directives=Vp(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,ys.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}function zce(e){for(let t of Xg.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}function Hce(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(qt.REQUIRES_SCOPES,[(0,ys.generateRequiresScopesDirective)(n.requiredScopes)]))}function eq(e){return{kind:wt.Kind.DIRECTIVE,name:(0,zs.stringToNameNode)(qt.DEPRECATED),arguments:[{kind:wt.Kind.ARGUMENT,name:(0,zs.stringToNameNode)(qt.REASON),value:{kind:wt.Kind.STRING,value:e||qt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function nle(e,t,n,r){let i=[];for(let[s,o]of e){let u=t.get(s);if(u){if(o.length<2){i.push(...o);continue}if(!u.repeatable){r.push((0,xr.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}i.push(...o)}}return i}function gR(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(eq(e.persistedDirectivesData.deprecatedReason)),r.push(...nle(e.persistedDirectivesData.directives,t,e.name,n)),r}function hR(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(eq(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directives)qt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function rle(e,t,n){return e.node.name=(0,zs.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=gR(e,t,n),e.node}function ile(e,t,n,r){return e.node.arguments=n,e.node.name=(0,zs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=gR(e,t,r),e.node}function sle(e){let t=hR(e),n=[];for(let r of e.argumentDataByArgumentName.values())tq(r)||n.push(K(k({},r.node),{directives:hR(r)}));return K(k({},e.node),{directives:t,arguments:n})}function IR(e,t,n){return e.node.name=(0,zs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=gR(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function ole(e,t,n,r){let i=[],s=[],o=[],u=`${e.renamedParentTypeName}.${e.name}`;for(let[l,d]of e.argumentDataByArgumentName)e.subgraphNames.size===d.subgraphNames.size?(s.push(l),i.push(IR(d,t,r))):yR(d.type)&&o.push({inputValueName:l,missingSubgraphs:(0,ys.getEntriesNotInHashSet)(e.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});return o.length>0?r.push((0,xr.invalidRequiredInputValueError)(qt.FIELD,u,o)):s.length>0&&((0,ys.getValueOrDefault)(n,u,()=>({argumentNames:s,fieldName:e.name,typeName:e.renamedParentTypeName})).argumentNames=s),i}function ale(e,t,n,r,i){let s=[];for(let[o,u]of t.argumentDataByArgumentName){let l=(0,ys.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&s.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(IR(u,n,r)),i&&i.add(o)}return s.length>0?(r.push((0,xr.invalidRequiredInputValueError)(qt.DIRECTIVE_DEFINITION,`@${t.name}`,s)),!1):!0}function ule(e,t,n,r){let i=[];ale(i,t,n,r)&&e.push({arguments:i,kind:wt.Kind.DIRECTIVE_DEFINITION,locations:(0,zs.setToNameNodeArray)(t.executableLocations),name:(0,zs.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function cle(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function lle(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[s,o]of e.isShareableBySubgraphName){if(e.isExternalBySubgraphName.get(s)){r.push(s);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 Y$;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(Y$||(mt.MergeMethod=Y$={}));function Wg(e,t,n){if(e.kind===wt.Kind.NON_NULL_TYPE)return t.kind!==wt.Kind.NON_NULL_TYPE?!1:Wg(e.type,t.type,n);if(t.kind===wt.Kind.NON_NULL_TYPE)return Wg(e,t.type,n);switch(e.kind){case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let s=n.get(r);return s?s.has(i):!1}return!1;default:return t.kind===wt.Kind.LIST_TYPE?Wg(e.type,t.type,n):!1}}function tq(e){return e.persistedDirectivesData.directives.has(qt.INACCESSIBLE)||e.directivesByDirectiveName.has(qt.INACCESSIBLE)}function dle(e){return e===wt.Kind.SCALAR_TYPE_DEFINITION||e===wt.Kind.ENUM_TYPE_DEFINITION}function ple(e){switch(e.kind){case wt.Kind.BOOLEAN:return e.value;case wt.Kind.ENUM:case wt.Kind.STRING:return e.value;case wt.Kind.FLOAT:case wt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case wt.Kind.NULL:return null}}function fle(e){switch(e.kind){case wt.Kind.OBJECT_TYPE_DEFINITION:case wt.Kind.OBJECT_TYPE_EXTENSION:return e.renamedTypeName;default:return e.name}}var J$;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(J$||(mt.FieldSetDirective=J$={}));function mle(){return{providedBy:[],requiredBy:[]}}});var eI=V($l=>{"use strict";m();T();h();Object.defineProperty($l,"__esModule",{value:!0});$l.Warning=void 0;$l.invalidOverrideTargetSubgraphNameWarning=hle;$l.externalInterfaceFieldsWarning=Tle;$l.nonExternalConditionalFieldWarning=yle;var nq=bi(),$p=class extends Error{constructor(t){super(t),this.name="Warning"}};$l.Warning=$p;function hle(e,t,n){return new $p(`The object type "${t}" defines the directive "@override(from: "${e})" on the following field`+(n.length>1?"s":"")+': "'+n.join(nq.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.`)}function rq(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: @@ -635,15 +635,15 @@ If this subgraph has been recently deleted, remember to clean up unused @overrid Interface fields should not be declared "@external". This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function yle(e,t,n,r,i){return new $p(rq(t)+`The field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}});var jl=V(Hs=>{"use strict";m();T();h();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.newKeyFieldSetData=Ele;Hs.newFieldSetData=gle;Hs.areNodeKindAndDirectiveLocationCompatible=Ile;Hs.getDirectiveDefinitionArgumentSets=vle;Hs.addFieldNamesToConfigurationData=_le;Hs.extractFieldSetValue=ble;Hs.getNormalizedFieldSet=vR;Hs.validateKeyFieldSets=Dle;Hs.validateAndAddConditionalFieldSetsToConfiguration=Rle;Hs.isNodeQuery=wle;var Le=(we(),xe(Me)),Yi=ds(),iT=Vi(),Hn=bi(),zt=co(),oq=_c(),iq=XD(),sT=Ca(),ua=jp(),Nle=eI();function Ele(){return{isUnresolvableByKeyFieldSet:new Map}}function gle(){return{provides:new Map,requires:new Map}}function Ile(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case Hn.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===Le.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Hn.ENUM_UPPER:if(e===Le.Kind.ENUM_TYPE_DEFINITION||e===Le.Kind.ENUM_TYPE_EXTENSION)return!0;break;case Hn.ENUM_VALUE_UPPER:if(e===Le.Kind.ENUM_VALUE_DEFINITION)return!0;break;case Hn.FIELD_UPPER:if(e===Le.Kind.FIELD)return!0;break;case Hn.FIELD_DEFINITION_UPPER:if(e===Le.Kind.FIELD_DEFINITION)return!0;break;case Hn.INLINE_FRAGMENT_UPPER:if(e===Le.Kind.INLINE_FRAGMENT)return!0;break;case Hn.INPUT_FIELD_DEFINITION_UPPER:if(e===Le.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Hn.INPUT_OBJECT_UPPER:if(e===Le.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===Le.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case Hn.INTERFACE_UPPER:if(e===Le.Kind.INTERFACE_TYPE_DEFINITION||e===Le.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case Hn.OBJECT_UPPER:if(e===Le.Kind.OBJECT_TYPE_DEFINITION||e===Le.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case Hn.FRAGMENT_DEFINITION_UPPER:if(e===Le.Kind.FRAGMENT_DEFINITION)return!0;break;case Hn.FRAGMENT_SPREAD_UPPER:if(e===Le.Kind.FRAGMENT_SPREAD)return!0;break;case Hn.SCALAR_UPPER:if(e===Le.Kind.SCALAR_TYPE_DEFINITION||e===Le.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case Hn.SCHEMA_UPPER:if(e===Le.Kind.SCHEMA_DEFINITION||e===Le.Kind.SCHEMA_EXTENSION)return!0;break;case Hn.UNION_UPPER:if(e===Le.Kind.UNION_TYPE_DEFINITION||e===Le.Kind.UNION_TYPE_EXTENSION)return!0;break;case Hn.VARIABLE_DEFINITION_UPPER:if(e===Le.Kind.VARIABLE_DEFINITION)return!0;break;case Hn.QUERY_UPPER:case Hn.MUTATION_UPPER:case Hn.SUBSCRIPTION_UPPER:if(e===Le.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,zt.unexpectedDirectiveLocationError)(i)}}return!1}function vle(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===Le.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}function _le(e,t){let n=new Set;for(let[r,i]of e)i.directivesByDirectiveName.has(Hn.EXTERNAL)?t.externalFieldNames?t.externalFieldNames.add(r):n.add(r):t.fieldNames.add(r);n.size>0&&(t.externalFieldNames=n)}function ble(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!==Hn.FIELDS||i.value.kind!==Le.Kind.STRING||t.set(e,i.value.value)}function vR(e){return(0,Le.print)((0,iT.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Ole(e,t,n){switch(e){case ua.FieldSetDirective.PROVIDES:return[`${t}.${n}`];default:return[]}}function Sle(e,t,n,r,i,s){let{error:o,documentNode:u}=(0,iT.safeParse)("{"+n+"}");if(o||!u)return{errorMessage:(0,zt.unparsableFieldSetErrorMessage)(n,o)};let l=[t],d=[],p=Ole(i,s,r),y=[r],N=new Set,I,b=-1,C=!0,j=r;return(0,Le.visit)(u,{Argument:{enter(){return!1}},Field:{enter(Q){let re=l[b],se=re.name;if(re.kind===Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.invalidSelectionOnUnionErrorMessage)(n,p,se),Le.BREAK;if(C)return I=(0,zt.invalidSelectionSetErrorMessage)(n,p,se,(0,Yi.kindToTypeString)(re.kind)),Le.BREAK;let pe=Q.name.value,ye=`${se}.${pe}`;p.push(ye),y.push(pe),j=pe;let ke=re.fieldDataByFieldName.get(pe);if(!ke)return I=(0,zt.undefinedFieldInFieldSetErrorMessage)(n,se,pe),Le.BREAK;if(d[b].has(pe))return I=(0,zt.duplicateFieldInFieldSetErrorMessage)(n,ye),Le.BREAK;d[b].add(pe);let ht=ke.isExternalBySubgraphName.get(e.subgraphName),xt=(0,sT.getTypeNodeNamedTypeName)(ke.node.type),B=e.parentDefinitionDataByTypeName.get(xt);if(oq.BASE_SCALARS.has(xt)||(B==null?void 0:B.kind)===Le.Kind.SCALAR_TYPE_DEFINITION||(B==null?void 0:B.kind)===Le.Kind.ENUM_TYPE_DEFINITION){if(N.size<1&&!ht){e.isSubgraphVersionTwo?e.errors.push((0,zt.nonExternalConditionalFieldError)(`${s}.${r}`,e.subgraphName,ye,n,i)):e.warnings.push((0,Nle.nonExternalConditionalFieldWarning)(`${s}.${r}`,e.subgraphName,ye,n,i));return}let he=(0,Yi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,ye,ua.newConditionalFieldData),rt=(0,iq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]});i===ua.FieldSetDirective.PROVIDES?he.providedBy.push(rt):he.requiredBy.push(rt);return}if(!B)return I=(0,zt.unknownTypeInFieldSetErrorMessage)(n,ye,xt),Le.BREAK;if(ht){let he=(0,Yi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,ye,ua.newConditionalFieldData);switch(i){case ua.FieldSetDirective.PROVIDES:he.providedBy.push((0,iq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]}));break;default:break}N.add(ye)}if(B.kind===Le.Kind.OBJECT_TYPE_DEFINITION||B.kind===Le.Kind.INTERFACE_TYPE_DEFINITION||B.kind===Le.Kind.UNION_TYPE_DEFINITION){C=!0,l.push(B);return}},leave(){N.delete(p.pop()||""),y.pop()}},InlineFragment:{enter(Q){let re=l[b],se=re.name,pe=p.length<1?t.name:p[p.length-1];if(!Q.typeCondition)return I=(0,zt.inlineFragmentWithoutTypeConditionErrorMessage)(n,pe),Le.BREAK;let ye=Q.typeCondition.name.value;if(ye===se){l.push(re),C=!0;return}if(!(0,iT.isKindAbstract)(re.kind))return I=(0,zt.invalidInlineFragmentTypeErrorMessage)(n,p,ye,se),Le.BREAK;let ke=e.parentDefinitionDataByTypeName.get(ye);if(!ke)return I=(0,zt.unknownInlineFragmentTypeConditionErrorMessage)(n,p,se,ye),Le.BREAK;if(ke.kind!==Le.Kind.INTERFACE_TYPE_DEFINITION&&ke.kind!==Le.Kind.OBJECT_TYPE_DEFINITION&&ke.kind!==Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,p,se,ye,(0,Yi.kindToTypeString)(ke.kind)),Le.BREAK;let ht=e.concreteTypeNamesByAbstractTypeName.get(se);if(!ht||!ht.has(ye))return I=(0,zt.invalidInlineFragmentTypeConditionErrorMessage)(n,p,ye,(0,Yi.kindToTypeString)(re.kind),se),Le.BREAK;C=!0,l.push(ke)},leave(){l.pop()}},SelectionSet:{enter(){if(!C){let Q=l[b];if(Q.kind===Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.unparsableFieldSetSelectionErrorMessage)(n,j),Le.BREAK;let re=Q.fieldDataByFieldName.get(j);if(!re)return I=(0,zt.undefinedFieldInFieldSetErrorMessage)(n,Q.name,j),Le.BREAK;let se=(0,sT.getTypeNodeNamedTypeName)(re.node.type),pe=e.parentDefinitionDataByTypeName.get(se),ye=pe?pe.kind:Le.Kind.SCALAR_TYPE_DEFINITION;return I=(0,zt.invalidSelectionSetDefinitionErrorMessage)(n,p,se,(0,Yi.kindToTypeString)(ye)),Le.BREAK}if(b+=1,C=!1,b<0||b>=l.length)return I=(0,zt.unparsableFieldSetSelectionErrorMessage)(n,j),Le.BREAK;d.push(new Set)},leave(){if(C){let Q=l[b+1];I=(0,zt.invalidSelectionSetErrorMessage)(n,p,Q.name,(0,Yi.kindToTypeString)(Q.kind)),C=!1}b-=1,l.pop(),d.pop()}}}),I?{errorMessage:I}:{configuration:{fieldName:r,selectionSet:vR(u)}}}function Dle(e,t,n,r){let i=e.entityInterfaceDataByTypeName.has(t.name),s=t.name,o=[],u=[],l=new Set,d=[],p=i?void 0:e.internalGraph.addEntityDataNode(t.name),y=e.internalGraph.addOrUpdateNode(t.name);for(let[N,I]of n){let{error:b,documentNode:C}=(0,iT.safeParse)("{"+N+"}");if(b||!C){o.push((0,zt.unparsableFieldSetErrorMessage)(N,b));continue}let j=[t],Q=[],re=[],se=new Set,pe=-1,ye=!0,ke="";if((0,Le.visit)(C,{Argument:{enter(xt){return o.push((0,zt.unexpectedArgumentErrorMessage)(N,`${j[pe].name}.${ke}`,xt.name.value)),Le.BREAK}},Field:{enter(xt){let B=j[pe-1],he=j[pe],rt=he.name;if(ye)return o.push((0,zt.invalidSelectionSetErrorMessage)(N,[`${B.name}.${ke}`],rt,(0,Yi.kindToTypeString)(he.kind))),Le.BREAK;let Ct=xt.name.value,sn=`${rt}.${Ct}`;ke=Ct;let wn=he.fieldDataByFieldName.get(Ct);if(!wn)return o.push((0,zt.undefinedFieldInFieldSetErrorMessage)(N,rt,Ct)),Le.BREAK;if(wn.argumentDataByArgumentName.size)return o.push((0,zt.argumentsInKeyFieldSetErrorMessage)(N,sn)),Le.BREAK;if(Q[pe].has(Ct))return o.push((0,zt.duplicateFieldInFieldSetErrorMessage)(N,sn)),Le.BREAK;if(re.push(Ct),wn.isShareableBySubgraphName.set(e.subgraphName,!0),Q[pe].add(Ct),pe===0)l.add(Ct),r.add(Ct);else{let mi=e.configurationDataByParentTypeName.get(rt);if(!mi)return o.push((0,zt.invalidConfigurationDataErrorMessage)(rt,Ct,N)),Le.BREAK;mi.fieldNames.add(Ct)}(0,Yi.getValueOrDefault)(e.keyFieldNamesByParentTypeName,rt,()=>new Set).add(Ct);let vn=(0,sT.getTypeNodeNamedTypeName)(wn.node.type);if(oq.BASE_SCALARS.has(vn)){se.add(re.join(Hn.PERIOD)),re.pop();return}let _n=e.parentDefinitionDataByTypeName.get(vn);if(!_n)return o.push((0,zt.unknownTypeInFieldSetErrorMessage)(N,sn,vn)),Le.BREAK;if(_n.kind===Le.Kind.OBJECT_TYPE_DEFINITION){ye=!0,j.push(_n);return}if((0,iT.isKindAbstract)(_n.kind))return o.push((0,zt.abstractTypeInKeyFieldSetErrorMessage)(N,sn,vn,(0,Yi.kindToTypeString)(_n.kind))),Le.BREAK;se.add(re.join(Hn.PERIOD)),re.pop()}},InlineFragment:{enter(){return o.push(zt.inlineFragmentInFieldSetErrorMessage),Le.BREAK}},SelectionSet:{enter(){if(!ye){let xt=j[pe],he=`${xt.name}.${ke}`,rt=xt.fieldDataByFieldName.get(ke);if(!rt)return o.push((0,zt.undefinedFieldInFieldSetErrorMessage)(N,he,ke)),Le.BREAK;let Ct=(0,sT.getTypeNodeNamedTypeName)(rt.node.type),sn=e.parentDefinitionDataByTypeName.get(Ct),wn=sn?sn.kind:Le.Kind.SCALAR_TYPE_DEFINITION;return o.push((0,zt.invalidSelectionSetDefinitionErrorMessage)(N,[he],Ct,(0,Yi.kindToTypeString)(wn))),Le.BREAK}if(pe+=1,ye=!1,pe<0||pe>=j.length)return o.push((0,zt.unparsableFieldSetSelectionErrorMessage)(N,ke)),Le.BREAK;Q.push(new Set)},leave(){if(ye){let B=j[pe].name,he=j[pe+1],rt=`${B}.${ke}`;o.push((0,zt.invalidSelectionSetErrorMessage)(N,[rt],he.name,(0,Yi.kindToTypeString)(he.kind))),ye=!1}pe-=1,j.pop(),Q.pop()}}}),o.length>0)continue;let ht=vR(C);u.push(k({fieldName:"",selectionSet:ht},I?{disableEntityResolver:!0}:{})),y.satisfiedFieldSets.add(ht),!I&&(p==null||p.addTargetSubgraphByFieldSet(ht,e.subgraphName),d.push(se))}if(o.length){e.errors.push((0,zt.invalidKeyDirectivesError)(s,o));return}if(u.length)return u}function Ale(e,t,n,r,i){if(t!==ua.FieldSetDirective.PROVIDES)return e.entityDataByTypeName.has(i)?{fieldSetParentData:n}:{};let s=(0,Yi.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),o=(0,sT.getTypeNodeNamedTypeName)(s.node.type),u=e.parentDefinitionDataByTypeName.get(o);return!u||u.kind!==Le.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,zt.unknownProvidedObjectErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:u}}function sq(e,t,n,r){let i=[],s=[],o=(0,ua.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:p}=Ale(e,r,t,u,o),y=`${o}.${u}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessage:N,configuration:I}=Sle(e,d,l,u,r,o);if(N){i.push(` On "${o}.${u}" \u2014`+N);continue}if(I){s.push(I);continue}throw(0,zt.invalidConfigurationResultFatalError)(y)}if(i.length>0){e.errors.push((0,zt.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(s.length>0)return s}function Rle(e,t,n){let r=(0,Yi.getOrThrowError)(e.configurationDataByParentTypeName,(0,ua.getParentTypeName)(t),"configurationDataByParentTypeName"),i=sq(e,t,n.provides,ua.FieldSetDirective.PROVIDES);i&&(r.provides=i);let s=sq(e,t,n.requires,ua.FieldSetDirective.REQUIRES);s&&(r.requires=s)}function wle(e,t){return e===Hn.QUERY||t===Le.OperationTypeNode.QUERY}});var _R=V(oT=>{"use strict";m();T();h();Object.defineProperty(oT,"__esModule",{value:!0});oT.newParentTagData=xle;oT.newChildTagData=Cle;oT.validateImplicitFieldSets=Ule;var Fle=ds(),Lle=Ca(),Ws=AV(),Ple=_c(),aq=Vi(),kle=jl();function xle(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function Cle(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function Ule({conditionalFieldDataByCoordinates:e,configurationData:t,fieldSets:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:s,graphNode:o}){for(let u of n){let{error:l,documentNode:d}=(0,aq.safeParse)("{"+u+"}");if(l||!d)continue;let p=[i],y=[],N=new Set,I=[],b=-1,C=!0,j=!0;if((0,Ws.visit)(d,{Argument:{enter(){return j=!1,Ws.BREAK}},Field:{enter(re){let se=p[b];if(C)return j=!1,Ws.BREAK;let pe=re.name.value,ye=se.fieldDataByFieldName.get(pe);if(!ye||ye.argumentDataByArgumentName.size||y[b].has(pe))return j=!1,Ws.BREAK;let ke=e.get(`${ye.renamedParentTypeName}.${pe}`);if(ke){if(ke.providedBy.length>0)I.push(...ke.providedBy);else if(ke.requiredBy.length>0)return j=!1,Ws.BREAK}y[b].add(pe),b===0&&N.add(pe);let ht=(0,Lle.getTypeNodeNamedTypeName)(ye.node.type);if(Ple.BASE_SCALARS.has(ht))return;let xt=s.get(ht);if(!xt)return j=!1,Ws.BREAK;if(xt.kind===Ws.Kind.OBJECT_TYPE_DEFINITION){C=!0,p.push(xt);return}if((0,aq.isKindAbstract)(xt.kind))return j=!1,Ws.BREAK}},InlineFragment:{enter(){return j=!1,Ws.BREAK}},SelectionSet:{enter(){if(!C||(b+=1,C=!1,b<0||b>=p.length))return j=!1,Ws.BREAK;y.push(new Set)},leave(){if(C)return j=!1,Ws.BREAK;b-=1,p.pop(),y.pop()}}}),!j)continue;(0,Fle.addIterableValuesToSet)(N,t.fieldNames);let Q=(0,kle.getNormalizedFieldSet)(d);r.push(K(k({fieldName:"",selectionSet:Q},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(Q)}}});var lq=V(Kp=>{"use strict";m();T();h();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.AccumulatorMap=void 0;Kp.mapValue=qp;Kp.extendSchemaImpl=Mle;var Ue=(we(),xe(Me)),Qa=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)}};Kp.AccumulatorMap=Qa;function qp(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function Mle(e,t,n){var ae,te,ce,je;let r=[],i=new Qa,s=new Qa,o=new Qa,u=new Qa,l=new Qa,d=new Qa,p=[],y,N=[],I=!1;for(let G of t.definitions){switch(G.kind){case Ue.Kind.SCHEMA_DEFINITION:y=G;break;case Ue.Kind.SCHEMA_EXTENSION:N.push(G);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(G);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(G);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(G.name.value,G);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:s.add(G.name.value,G);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(G.name.value,G);break;case Ue.Kind.UNION_TYPE_EXTENSION:u.add(G.name.value,G);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(G.name.value,G);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(G.name.value,G);break;default:continue}I=!0}if(!I)return e;let b=new Map;for(let G of e.types){let ee=se(G);ee&&b.set(G.name,ee)}for(let G of r){let ee=G.name.value;b.set(ee,(ae=uq.get(ee))!=null?ae:U(G))}for(let[G,ee]of s)b.set(G,new Ue.GraphQLObjectType({name:G,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[G,ee]of o)b.set(G,new Ue.GraphQLInterfaceType({name:G,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));for(let[G,ee]of l)b.set(G,new Ue.GraphQLEnumType({name:G,values:Pn(ee),extensionASTNodes:ee}));for(let[G,ee]of u)b.set(G,new Ue.GraphQLUnionType({name:G,types:()=>$n(ee),extensionASTNodes:ee}));for(let[G,ee]of i)b.set(G,new Ue.GraphQLScalarType({name:G,extensionASTNodes:ee}));for(let[G,ee]of d)b.set(G,new Ue.GraphQLInputObjectType({name:G,fields:()=>Xr(ee),extensionASTNodes:ee}))}let C=k(k({query:e.query&&Q(e.query),mutation:e.mutation&&Q(e.mutation),subscription:e.subscription&&Q(e.subscription)},y&&Ct([y])),Ct(N));return K(k({description:(ce=(te=y==null?void 0:y.description)==null?void 0:te.value)!=null?ce:e.description},C),{types:Array.from(b.values()),directives:[...e.directives.map(re),...p.map(vn)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(je=n==null?void 0:n.assumeValid)!=null?je:!1});function j(G){return(0,Ue.isListType)(G)?new Ue.GraphQLList(j(G.ofType)):(0,Ue.isNonNullType)(G)?new Ue.GraphQLNonNull(j(G.ofType)):Q(G)}function Q(G){return b.get(G.name)}function re(G){if((0,Ue.isSpecifiedDirective)(G))return G;let ee=G.toConfig();return new Ue.GraphQLDirective(K(k({},ee),{args:qp(ee.args,rt)}))}function se(G){if((0,Ue.isIntrospectionType)(G)||(0,Ue.isSpecifiedScalarType)(G))return G;if((0,Ue.isScalarType)(G))return ke(G);if((0,Ue.isObjectType)(G))return ht(G);if((0,Ue.isInterfaceType)(G))return xt(G);if((0,Ue.isUnionType)(G))return B(G);if((0,Ue.isEnumType)(G))return ye(G);if((0,Ue.isInputObjectType)(G))return pe(G)}function pe(G){var He;let ee=G.toConfig(),Fe=(He=d.get(ee.name))!=null?He:[];return new Ue.GraphQLInputObjectType(K(k({},ee),{fields:()=>k(k({},qp(ee.fields,jt=>K(k({},jt),{type:j(jt.type)}))),Xr(Fe)),extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function ye(G){var He;let ee=G.toConfig(),Fe=(He=l.get(G.name))!=null?He:[];return new Ue.GraphQLEnumType(K(k({},ee),{values:k(k({},ee.values),Pn(Fe)),extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function ke(G){var jt,Qe;let ee=G.toConfig(),Fe=(jt=i.get(ee.name))!=null?jt:[],He=ee.specifiedByURL;for(let Ht of Fe)He=(Qe=cq(Ht))!=null?Qe:He;return new Ue.GraphQLScalarType(K(k({},ee),{specifiedByURL:He,extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function ht(G){var He;let ee=G.toConfig(),Fe=(He=s.get(ee.name))!=null?He:[];return new Ue.GraphQLObjectType(K(k({},ee),{interfaces:()=>[...G.getInterfaces().map(Q),...on(Fe)],fields:()=>k(k({},qp(ee.fields,he)),_n(Fe)),extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function xt(G){var He;let ee=G.toConfig(),Fe=(He=o.get(ee.name))!=null?He:[];return new Ue.GraphQLInterfaceType(K(k({},ee),{interfaces:()=>[...G.getInterfaces().map(Q),...on(Fe)],fields:()=>k(k({},qp(ee.fields,he)),_n(Fe)),extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function B(G){var He;let ee=G.toConfig(),Fe=(He=u.get(ee.name))!=null?He:[];return new Ue.GraphQLUnionType(K(k({},ee),{types:()=>[...G.getTypes().map(Q),...$n(Fe)],extensionASTNodes:ee.extensionASTNodes.concat(Fe)}))}function he(G){return K(k({},G),{type:j(G.type),args:G.args&&qp(G.args,rt)})}function rt(G){return K(k({},G),{type:j(G.type)})}function Ct(G){var Fe;let ee={};for(let He of G){let jt=(Fe=He.operationTypes)!=null?Fe:[];for(let Qe of jt)ee[Qe.operation]=sn(Qe.type)}return ee}function sn(G){var He;let ee=G.name.value,Fe=(He=uq.get(ee))!=null?He:b.get(ee);if(Fe===void 0)throw new Error(`Unknown type: "${ee}".`);return Fe}function wn(G){return G.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(wn(G.type)):G.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(wn(G.type)):sn(G)}function vn(G){var ee;return new Ue.GraphQLDirective({name:G.name.value,description:(ee=G.description)==null?void 0:ee.value,locations:G.locations.map(({value:Fe})=>Fe),isRepeatable:G.repeatable,args:mi(G.arguments),astNode:G})}function _n(G){var Fe,He;let ee=Object.create(null);for(let jt of G){let Qe=(Fe=jt.fields)!=null?Fe:[];for(let Ht of Qe)ee[Ht.name.value]={type:wn(Ht.type),description:(He=Ht.description)==null?void 0:He.value,args:mi(Ht.arguments),deprecationReason:tI(Ht),astNode:Ht}}return ee}function mi(G){var He;let ee=G!=null?G:[],Fe=Object.create(null);for(let jt of ee){let Qe=wn(jt.type);Fe[jt.name.value]={type:Qe,description:(He=jt.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(jt.defaultValue,Qe),deprecationReason:tI(jt),astNode:jt}}return Fe}function Xr(G){var Fe,He;let ee=Object.create(null);for(let jt of G){let Qe=(Fe=jt.fields)!=null?Fe:[];for(let Ht of Qe){let pa=wn(Ht.type);ee[Ht.name.value]={type:pa,description:(He=Ht.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(Ht.defaultValue,pa),deprecationReason:tI(Ht),astNode:Ht}}}return ee}function Pn(G){var Fe,He;let ee=Object.create(null);for(let jt of G){let Qe=(Fe=jt.values)!=null?Fe:[];for(let Ht of Qe)ee[Ht.name.value]={description:(He=Ht.description)==null?void 0:He.value,deprecationReason:tI(Ht),astNode:Ht}}return ee}function on(G){return G.flatMap(ee=>{var Fe,He;return(He=(Fe=ee.interfaces)==null?void 0:Fe.map(sn))!=null?He:[]})}function $n(G){return G.flatMap(ee=>{var Fe,He;return(He=(Fe=ee.types)==null?void 0:Fe.map(sn))!=null?He:[]})}function U(G){var Fe,He,jt,Qe,Ht,pa,Li,fa,rd,Do,Gr,Wi;let ee=G.name.value;switch(G.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let cn=(Fe=s.get(ee))!=null?Fe:[],Qr=[G,...cn];return s.delete(ee),new Ue.GraphQLObjectType({name:ee,description:(He=G.description)==null?void 0:He.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let cn=(jt=o.get(ee))!=null?jt:[],Qr=[G,...cn];return o.delete(ee),new Ue.GraphQLInterfaceType({name:ee,description:(Qe=G.description)==null?void 0:Qe.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let cn=(Ht=l.get(ee))!=null?Ht:[],Qr=[G,...cn];return l.delete(ee),new Ue.GraphQLEnumType({name:ee,description:(pa=G.description)==null?void 0:pa.value,values:Pn(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.UNION_TYPE_DEFINITION:{let cn=(Li=u.get(ee))!=null?Li:[],Qr=[G,...cn];return u.delete(ee),new Ue.GraphQLUnionType({name:ee,description:(fa=G.description)==null?void 0:fa.value,types:()=>$n(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let cn=(rd=i.get(ee))!=null?rd:[];return i.delete(ee),new Ue.GraphQLScalarType({name:ee,description:(Do=G.description)==null?void 0:Do.value,specifiedByURL:cq(G),astNode:G,extensionASTNodes:cn})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let cn=(Gr=d.get(ee))!=null?Gr:[],Qr=[G,...cn];return d.delete(ee),new Ue.GraphQLInputObjectType({name:ee,description:(Wi=G.description)==null?void 0:Wi.value,fields:()=>Xr(Qr),astNode:G,extensionASTNodes:cn})}}}}var uq=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function tI(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function cq(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var pq=V(bR=>{"use strict";m();T();h();Object.defineProperty(bR,"__esModule",{value:!0});bR.buildASTSchema=jle;var dq=(we(),xe(Me)),Ble=mp(),Vle=lq();function jle(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Ble.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,Vle.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...dq.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new dq.GraphQLSchema(K(k({},r),{directives:i}))}});var SR=V(OR=>{"use strict";m();T();h();Object.defineProperty(OR,"__esModule",{value:!0});OR.recordSubgraphName=$le;function $le(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var DR=V(cT=>{"use strict";m();T();h();Object.defineProperty(cT,"__esModule",{value:!0});cT.upsertDirectiveSchemaAndEntityDefinitions=qle;cT.upsertParentsAndChildren=Kle;cT.consolidateAuthorizationDirectives=Gle;var tr=(we(),xe(Me)),Ya=co(),ql=_c(),dn=ds(),aT=Vi(),Ja=jl(),dr=bi(),Ji=jp(),uT=Ca();function qle(e,t){let n=new Set,r=[];(0,tr.visit)(t,{Directive:{enter(i){let s=i.name.value;if(dr.EVENT_DIRECTIVE_NAMES.has(s)&&e.edfsDirectiveReferences.add(s),ql.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return e.isSubgraphVersionTwo=!0,!1;if(ql.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return!1;s===dr.SUBSCRIPTION_FILTER&&e.directiveDefinitionByDirectiveName.set(dr.SUBSCRIPTION_FILTER,ql.SUBSCRIPTION_FILTER_DEFINITION),e.referencedDirectiveNames.add(s)}},DirectiveDefinition:{enter(i){let s=i.name.value;return n.has(s)?(e.errors.push((0,Ya.duplicateDirectiveDefinitionError)(s)),!1):(n.add(s),ql.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)?(e.isSubgraphVersionTwo=!0,!1):(ql.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)||s===dr.SUBSCRIPTION_FILTER||(e.directiveDefinitionByDirectiveName.set(s,i),e.customDirectiveDefinitions.set(s,i)),!1))}},InterfaceTypeDefinition:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,aT.isObjectLikeNodeEntity)(i))return;let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{})),(0,dn.getValueOrDefault)(e.entityInterfaceDataByTypeName,s,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:s}))}},InterfaceTypeExtension:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,aT.isObjectLikeNodeEntity)(i))return;let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeDefinition:{enter(i){if(!(0,aT.isObjectLikeNodeEntity)(i))return;let s=i.name.value;(0,aT.isNodeInterfaceObject)(i)&&(e.entityInterfaceDataByTypeName.set(s,{fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:s}),e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}));let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeExtension:{enter(i){if(!(0,aT.isObjectLikeNodeEntity)(i))return;let s=i.name.value,o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},OperationTypeDefinition:{enter(i){let s=i.operation,o=e.schemaDefinition.operationTypes.get(s),u=(0,uT.getTypeNodeNamedTypeName)(i.type);if(o)return(0,Ya.duplicateOperationTypeDefinitionError)(s,u,(0,uT.getTypeNodeNamedTypeName)(o.type)),!1;let l=e.operationTypeNodeByTypeName.get(u);return l?(e.errors.push((0,Ya.invalidOperationTypeDefinitionError)(l,u,s)),!1):(e.operationTypeNodeByTypeName.set(u,s),e.schemaDefinition.operationTypes.set(s,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}},UnionTypeDefinition:{enter(i){i.name.value!==dr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===dr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}});for(let i of r)(0,Ji.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,dr.SCHEMA)}function Kle(e,t){let n=!1,r;(0,tr.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},EnumValueDefinition:{enter(i){e.childName=i.name.value,e.lastChildNodeKind=i.kind;let s=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA);if(s.kind!==tr.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,"enum or enum extension",(0,dn.kindToTypeString)(s.kind),e.childName,(0,dn.kindToTypeString)(i.kind)));return}if(s.enumValueDataByValueName.has(e.childName)){e.errors.push((0,Ya.duplicateEnumValueDefinitionError)(e.originalParentTypeName,e.childName));return}(0,Ji.addEnumValueDataByNode)(s.enumValueDataByValueName,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName)},leave(){e.childName="",e.lastChildNodeKind=tr.Kind.NULL}},FieldDefinition:{enter(i){if(e.childName=i.name.value,n){if(e.childName===dr.SERVICE_FIELD||e.childName===dr.ENTITIES_FIELD)return!1;e.extractEventDirectivesToConfiguration(i)}e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let s=(0,uT.getTypeNodeNamedTypeName)(i.type);r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(s),e.childName),ql.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let o=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA);if(o.kind!==tr.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==tr.Kind.INTERFACE_TYPE_DEFINITION){e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dn.kindToTypeString)(o.kind),e.childName,(0,dn.kindToTypeString)(i.kind)));return}if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,Ya.duplicateFieldDefinitionError)((0,dn.kindToTypeString)(o.kind),o.name,e.childName));return}let u=(0,Ji.extractArguments)(new Map,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),l=e.extractDirectivesAndAuthorization(i,new Map);(0,Ji.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,l);let d=(0,Ji.addFieldDataByNode)(o.fieldDataByFieldName,i,u,l,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo,e.errors),p=d.directivesByDirectiveName.get(dr.PROVIDES),y=d.directivesByDirectiveName.get(dr.REQUIRES);if(!y&&!p)return;let N=e.entityDataByTypeName.get(e.originalParentTypeName);if(N){N.fieldNames.add(e.childName);let b=(0,dn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,Ja.newFieldSetData);(0,Ja.extractFieldSetValue)(e.childName,b.requires,y),(0,Ja.extractFieldSetValue)(e.childName,b.provides,p);return}if(!p)return;let I=(0,dn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,Ja.newFieldSetData);(0,Ja.extractFieldSetValue)(e.childName,I.provides,p)},leave(){e.childName="",e.lastChildNodeKind=tr.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=tr.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=tr.Kind.NULL}},InputValueDefinition:{enter(i){let s=i.name.value;if(e.lastParentNodeKind!==tr.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==tr.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=s;return}e.childName=s,e.lastChildNodeKind=i.kind;let o=`${e.originalParentTypeName}.${s}`,u=(0,uT.getTypeNodeNamedTypeName)(i.type);ql.BASE_SCALARS.has(u)||e.referencedTypeNames.add(u);let l=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA);if(l.kind!==tr.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dn.kindToTypeString)(l.kind),e.childName,(0,dn.kindToTypeString)(i.kind))),!1;if(l.inputValueDataByValueName.has(s)){e.errors.push((0,Ya.duplicateInputFieldDefinitionError)(e.originalParentTypeName,s));return}(0,Ji.addInputValueDataByNode)(l.inputValueDataByValueName,i,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===tr.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=tr.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===dr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Ji.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Ji.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(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},ObjectTypeExtension:{enter(i){if(i.name.value===dr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Ji.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Ji.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(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,dr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},ScalarTypeDefinition:{enter(i){if(i.name.value===dr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===dr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=tr.Kind.NULL}}})}function Gle(e,t){let n,r=!1;(0,tr.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let s=(0,uT.getTypeNodeNamedTypeName)(i.type),o=e.leafTypeNamesWithAuthorizationDirectives.has(s);if((!n||!n.hasParentLevelAuthorization)&&!o)return!1;let u=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,dn.setAndGetValue)(e.authorizationDataByParentTypeName,u,(0,dn.newAuthorizationData)(u)));let l=(0,dn.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,dn.newFieldAuthorizationData)(e.childName));if(!(0,dn.mergeAuthorizationDataByAND)(n,l))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!o)return!1;if(r)return(0,dn.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,s,()=>[]).push(l),!1;let d=e.authorizationDataByParentTypeName.get(s);return d&&d.hasParentLevelAuthorization&&!(0,dn.mergeAuthorizationDataByAND)(d,l)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}});var LR=V(ca=>{"use strict";m();T();h();Object.defineProperty(ca,"__esModule",{value:!0});ca.EntityDataNode=ca.RootNode=ca.GraphNode=ca.Edge=void 0;var nI=ds(),AR=class{constructor(t,n,r,i=!1){A(this,"edgeName");A(this,"id");A(this,"isAbstractEdge");A(this,"isInaccessible",!1);A(this,"node");A(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};ca.Edge=AR;var RR=class{constructor(t,n,r){A(this,"fieldDataByFieldName",new Map);A(this,"headToTailEdges",new Map);A(this,"entityEdges",[]);A(this,"nodeName");A(this,"hasEntitySiblings",!1);A(this,"isAbstract");A(this,"isInaccessible",!1);A(this,"isLeaf",!1);A(this,"isRootNode",!1);A(this,"satisfiedFieldSets",new Set);A(this,"subgraphName");A(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,nI.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,nI.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};ca.GraphNode=RR;var wR=class{constructor(t){A(this,"fieldDataByFieldName",new Map);A(this,"headToShareableTailEdges",new Map);A(this,"isAbstract",!1);A(this,"isRootNode",!0);A(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}};ca.RootNode=wR;var FR=class{constructor(t){A(this,"fieldSetsByTargetSubgraphName",new Map);A(this,"targetSubgraphNamesByFieldSet",new Map);A(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,nI.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,nI.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};ca.EntityDataNode=FR});var kR=V(za=>{"use strict";m();T();h();Object.defineProperty(za,"__esModule",{value:!0});za.NodeResolutionData=void 0;za.newRootFieldData=Qle;za.generateResolvabilityErrorReasons=hq;za.generateSelectionSetSegments=Tq;za.renderSelectionSet=yq;za.generateResolvabilityErrors=zle;var fq=ds(),Kl=bi(),mq=co(),PR=class{constructor(t,n){A(this,"fieldDataByFieldName");A(this,"isResolved",!1);A(this,"resolvedFieldNames",new Set);A(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,fq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,mq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};za.NodeResolutionData=PR;function Qle(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(Kl.QUOTATION_JOIN)}".`,subgraphNames:n}}function Yle(e,t){return e.isLeaf?e.name+` <-- +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}});var jl=V(Hs=>{"use strict";m();T();h();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.newKeyFieldSetData=Ele;Hs.newFieldSetData=gle;Hs.areNodeKindAndDirectiveLocationCompatible=Ile;Hs.getDirectiveDefinitionArgumentSets=vle;Hs.addFieldNamesToConfigurationData=_le;Hs.extractFieldSetValue=ble;Hs.getNormalizedFieldSet=vR;Hs.validateKeyFieldSets=Dle;Hs.validateAndAddConditionalFieldSetsToConfiguration=Rle;Hs.isNodeQuery=Fle;var Le=(Fe(),xe(Me)),Yi=ds(),iT=Vi(),Wn=bi(),zt=co(),oq=_c(),iq=XD(),sT=Ca(),ua=jp(),Nle=eI();function Ele(){return{isUnresolvableByKeyFieldSet:new Map}}function gle(){return{provides:new Map,requires:new Map}}function Ile(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case Wn.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===Le.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.ENUM_UPPER:if(e===Le.Kind.ENUM_TYPE_DEFINITION||e===Le.Kind.ENUM_TYPE_EXTENSION)return!0;break;case Wn.ENUM_VALUE_UPPER:if(e===Le.Kind.ENUM_VALUE_DEFINITION)return!0;break;case Wn.FIELD_UPPER:if(e===Le.Kind.FIELD)return!0;break;case Wn.FIELD_DEFINITION_UPPER:if(e===Le.Kind.FIELD_DEFINITION)return!0;break;case Wn.INLINE_FRAGMENT_UPPER:if(e===Le.Kind.INLINE_FRAGMENT)return!0;break;case Wn.INPUT_FIELD_DEFINITION_UPPER:if(e===Le.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.INPUT_OBJECT_UPPER:if(e===Le.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===Le.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case Wn.INTERFACE_UPPER:if(e===Le.Kind.INTERFACE_TYPE_DEFINITION||e===Le.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case Wn.OBJECT_UPPER:if(e===Le.Kind.OBJECT_TYPE_DEFINITION||e===Le.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case Wn.FRAGMENT_DEFINITION_UPPER:if(e===Le.Kind.FRAGMENT_DEFINITION)return!0;break;case Wn.FRAGMENT_SPREAD_UPPER:if(e===Le.Kind.FRAGMENT_SPREAD)return!0;break;case Wn.SCALAR_UPPER:if(e===Le.Kind.SCALAR_TYPE_DEFINITION||e===Le.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case Wn.SCHEMA_UPPER:if(e===Le.Kind.SCHEMA_DEFINITION||e===Le.Kind.SCHEMA_EXTENSION)return!0;break;case Wn.UNION_UPPER:if(e===Le.Kind.UNION_TYPE_DEFINITION||e===Le.Kind.UNION_TYPE_EXTENSION)return!0;break;case Wn.VARIABLE_DEFINITION_UPPER:if(e===Le.Kind.VARIABLE_DEFINITION)return!0;break;case Wn.QUERY_UPPER:case Wn.MUTATION_UPPER:case Wn.SUBSCRIPTION_UPPER:if(e===Le.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,zt.unexpectedDirectiveLocationError)(i)}}return!1}function vle(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===Le.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}function _le(e,t){let n=new Set;for(let[r,i]of e)i.directivesByDirectiveName.has(Wn.EXTERNAL)?t.externalFieldNames?t.externalFieldNames.add(r):n.add(r):t.fieldNames.add(r);n.size>0&&(t.externalFieldNames=n)}function ble(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!==Wn.FIELDS||i.value.kind!==Le.Kind.STRING||t.set(e,i.value.value)}function vR(e){return(0,Le.print)((0,iT.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Ole(e,t,n){switch(e){case ua.FieldSetDirective.PROVIDES:return[`${t}.${n}`];default:return[]}}function Sle(e,t,n,r,i,s){let{error:o,documentNode:u}=(0,iT.safeParse)("{"+n+"}");if(o||!u)return{errorMessage:(0,zt.unparsableFieldSetErrorMessage)(n,o)};let l=[t],d=[],p=Ole(i,s,r),y=[r],N=new Set,I,b=-1,C=!0,j=r;return(0,Le.visit)(u,{Argument:{enter(){return!1}},Field:{enter(Q){let re=l[b],se=re.name;if(re.kind===Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.invalidSelectionOnUnionErrorMessage)(n,p,se),Le.BREAK;if(C)return I=(0,zt.invalidSelectionSetErrorMessage)(n,p,se,(0,Yi.kindToTypeString)(re.kind)),Le.BREAK;let fe=Q.name.value,ye=`${se}.${fe}`;p.push(ye),y.push(fe),j=fe;let ke=re.fieldDataByFieldName.get(fe);if(!ke)return I=(0,zt.undefinedFieldInFieldSetErrorMessage)(n,se,fe),Le.BREAK;if(d[b].has(fe))return I=(0,zt.duplicateFieldInFieldSetErrorMessage)(n,ye),Le.BREAK;d[b].add(fe);let ht=ke.isExternalBySubgraphName.get(e.subgraphName),xt=(0,sT.getTypeNodeNamedTypeName)(ke.node.type),B=e.parentDefinitionDataByTypeName.get(xt);if(oq.BASE_SCALARS.has(xt)||(B==null?void 0:B.kind)===Le.Kind.SCALAR_TYPE_DEFINITION||(B==null?void 0:B.kind)===Le.Kind.ENUM_TYPE_DEFINITION){if(N.size<1&&!ht){e.isSubgraphVersionTwo?e.errors.push((0,zt.nonExternalConditionalFieldError)(`${s}.${r}`,e.subgraphName,ye,n,i)):e.warnings.push((0,Nle.nonExternalConditionalFieldWarning)(`${s}.${r}`,e.subgraphName,ye,n,i));return}let he=(0,Yi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,ye,ua.newConditionalFieldData),rt=(0,iq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]});i===ua.FieldSetDirective.PROVIDES?he.providedBy.push(rt):he.requiredBy.push(rt);return}if(!B)return I=(0,zt.unknownTypeInFieldSetErrorMessage)(n,ye,xt),Le.BREAK;if(ht){let he=(0,Yi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,ye,ua.newConditionalFieldData);switch(i){case ua.FieldSetDirective.PROVIDES:he.providedBy.push((0,iq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]}));break;default:break}N.add(ye)}if(B.kind===Le.Kind.OBJECT_TYPE_DEFINITION||B.kind===Le.Kind.INTERFACE_TYPE_DEFINITION||B.kind===Le.Kind.UNION_TYPE_DEFINITION){C=!0,l.push(B);return}},leave(){N.delete(p.pop()||""),y.pop()}},InlineFragment:{enter(Q){let re=l[b],se=re.name,fe=p.length<1?t.name:p[p.length-1];if(!Q.typeCondition)return I=(0,zt.inlineFragmentWithoutTypeConditionErrorMessage)(n,fe),Le.BREAK;let ye=Q.typeCondition.name.value;if(ye===se){l.push(re),C=!0;return}if(!(0,iT.isKindAbstract)(re.kind))return I=(0,zt.invalidInlineFragmentTypeErrorMessage)(n,p,ye,se),Le.BREAK;let ke=e.parentDefinitionDataByTypeName.get(ye);if(!ke)return I=(0,zt.unknownInlineFragmentTypeConditionErrorMessage)(n,p,se,ye),Le.BREAK;if(ke.kind!==Le.Kind.INTERFACE_TYPE_DEFINITION&&ke.kind!==Le.Kind.OBJECT_TYPE_DEFINITION&&ke.kind!==Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,p,se,ye,(0,Yi.kindToTypeString)(ke.kind)),Le.BREAK;let ht=e.concreteTypeNamesByAbstractTypeName.get(se);if(!ht||!ht.has(ye))return I=(0,zt.invalidInlineFragmentTypeConditionErrorMessage)(n,p,ye,(0,Yi.kindToTypeString)(re.kind),se),Le.BREAK;C=!0,l.push(ke)},leave(){l.pop()}},SelectionSet:{enter(){if(!C){let Q=l[b];if(Q.kind===Le.Kind.UNION_TYPE_DEFINITION)return I=(0,zt.unparsableFieldSetSelectionErrorMessage)(n,j),Le.BREAK;let re=Q.fieldDataByFieldName.get(j);if(!re)return I=(0,zt.undefinedFieldInFieldSetErrorMessage)(n,Q.name,j),Le.BREAK;let se=(0,sT.getTypeNodeNamedTypeName)(re.node.type),fe=e.parentDefinitionDataByTypeName.get(se),ye=fe?fe.kind:Le.Kind.SCALAR_TYPE_DEFINITION;return I=(0,zt.invalidSelectionSetDefinitionErrorMessage)(n,p,se,(0,Yi.kindToTypeString)(ye)),Le.BREAK}if(b+=1,C=!1,b<0||b>=l.length)return I=(0,zt.unparsableFieldSetSelectionErrorMessage)(n,j),Le.BREAK;d.push(new Set)},leave(){if(C){let Q=l[b+1];I=(0,zt.invalidSelectionSetErrorMessage)(n,p,Q.name,(0,Yi.kindToTypeString)(Q.kind)),C=!1}b-=1,l.pop(),d.pop()}}}),I?{errorMessage:I}:{configuration:{fieldName:r,selectionSet:vR(u)}}}function Dle(e,t,n,r){let i=e.entityInterfaceDataByTypeName.has(t.name),s=t.name,o=[],u=[],l=new Set,d=[],p=i?void 0:e.internalGraph.addEntityDataNode(t.name),y=e.internalGraph.addOrUpdateNode(t.name);for(let[N,I]of n){let{error:b,documentNode:C}=(0,iT.safeParse)("{"+N+"}");if(b||!C){o.push((0,zt.unparsableFieldSetErrorMessage)(N,b));continue}let j=[t],Q=[],re=[],se=new Set,fe=-1,ye=!0,ke="";if((0,Le.visit)(C,{Argument:{enter(xt){return o.push((0,zt.unexpectedArgumentErrorMessage)(N,`${j[fe].name}.${ke}`,xt.name.value)),Le.BREAK}},Field:{enter(xt){let B=j[fe-1],he=j[fe],rt=he.name;if(ye)return o.push((0,zt.invalidSelectionSetErrorMessage)(N,[`${B.name}.${ke}`],rt,(0,Yi.kindToTypeString)(he.kind))),Le.BREAK;let Ct=xt.name.value,sn=`${rt}.${Ct}`;ke=Ct;let Fn=he.fieldDataByFieldName.get(Ct);if(!Fn)return o.push((0,zt.undefinedFieldInFieldSetErrorMessage)(N,rt,Ct)),Le.BREAK;if(Fn.argumentDataByArgumentName.size)return o.push((0,zt.argumentsInKeyFieldSetErrorMessage)(N,sn)),Le.BREAK;if(Q[fe].has(Ct))return o.push((0,zt.duplicateFieldInFieldSetErrorMessage)(N,sn)),Le.BREAK;if(re.push(Ct),Fn.isShareableBySubgraphName.set(e.subgraphName,!0),Q[fe].add(Ct),fe===0)l.add(Ct),r.add(Ct);else{let mi=e.configurationDataByParentTypeName.get(rt);if(!mi)return o.push((0,zt.invalidConfigurationDataErrorMessage)(rt,Ct,N)),Le.BREAK;mi.fieldNames.add(Ct)}(0,Yi.getValueOrDefault)(e.keyFieldNamesByParentTypeName,rt,()=>new Set).add(Ct);let vn=(0,sT.getTypeNodeNamedTypeName)(Fn.node.type);if(oq.BASE_SCALARS.has(vn)){se.add(re.join(Wn.PERIOD)),re.pop();return}let _n=e.parentDefinitionDataByTypeName.get(vn);if(!_n)return o.push((0,zt.unknownTypeInFieldSetErrorMessage)(N,sn,vn)),Le.BREAK;if(_n.kind===Le.Kind.OBJECT_TYPE_DEFINITION){ye=!0,j.push(_n);return}if((0,iT.isKindAbstract)(_n.kind))return o.push((0,zt.abstractTypeInKeyFieldSetErrorMessage)(N,sn,vn,(0,Yi.kindToTypeString)(_n.kind))),Le.BREAK;se.add(re.join(Wn.PERIOD)),re.pop()}},InlineFragment:{enter(){return o.push(zt.inlineFragmentInFieldSetErrorMessage),Le.BREAK}},SelectionSet:{enter(){if(!ye){let xt=j[fe],he=`${xt.name}.${ke}`,rt=xt.fieldDataByFieldName.get(ke);if(!rt)return o.push((0,zt.undefinedFieldInFieldSetErrorMessage)(N,he,ke)),Le.BREAK;let Ct=(0,sT.getTypeNodeNamedTypeName)(rt.node.type),sn=e.parentDefinitionDataByTypeName.get(Ct),Fn=sn?sn.kind:Le.Kind.SCALAR_TYPE_DEFINITION;return o.push((0,zt.invalidSelectionSetDefinitionErrorMessage)(N,[he],Ct,(0,Yi.kindToTypeString)(Fn))),Le.BREAK}if(fe+=1,ye=!1,fe<0||fe>=j.length)return o.push((0,zt.unparsableFieldSetSelectionErrorMessage)(N,ke)),Le.BREAK;Q.push(new Set)},leave(){if(ye){let B=j[fe].name,he=j[fe+1],rt=`${B}.${ke}`;o.push((0,zt.invalidSelectionSetErrorMessage)(N,[rt],he.name,(0,Yi.kindToTypeString)(he.kind))),ye=!1}fe-=1,j.pop(),Q.pop()}}}),o.length>0)continue;let ht=vR(C);u.push(k({fieldName:"",selectionSet:ht},I?{disableEntityResolver:!0}:{})),y.satisfiedFieldSets.add(ht),!I&&(p==null||p.addTargetSubgraphByFieldSet(ht,e.subgraphName),d.push(se))}if(o.length){e.errors.push((0,zt.invalidKeyDirectivesError)(s,o));return}if(u.length)return u}function Ale(e,t,n,r,i){if(t!==ua.FieldSetDirective.PROVIDES)return e.entityDataByTypeName.has(i)?{fieldSetParentData:n}:{};let s=(0,Yi.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),o=(0,sT.getTypeNodeNamedTypeName)(s.node.type),u=e.parentDefinitionDataByTypeName.get(o);return!u||u.kind!==Le.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,zt.unknownProvidedObjectErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:u}}function sq(e,t,n,r){let i=[],s=[],o=(0,ua.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:p}=Ale(e,r,t,u,o),y=`${o}.${u}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessage:N,configuration:I}=Sle(e,d,l,u,r,o);if(N){i.push(` On "${o}.${u}" \u2014`+N);continue}if(I){s.push(I);continue}throw(0,zt.invalidConfigurationResultFatalError)(y)}if(i.length>0){e.errors.push((0,zt.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(s.length>0)return s}function Rle(e,t,n){let r=(0,Yi.getOrThrowError)(e.configurationDataByParentTypeName,(0,ua.getParentTypeName)(t),"configurationDataByParentTypeName"),i=sq(e,t,n.provides,ua.FieldSetDirective.PROVIDES);i&&(r.provides=i);let s=sq(e,t,n.requires,ua.FieldSetDirective.REQUIRES);s&&(r.requires=s)}function Fle(e,t){return e===Wn.QUERY||t===Le.OperationTypeNode.QUERY}});var _R=V(oT=>{"use strict";m();T();h();Object.defineProperty(oT,"__esModule",{value:!0});oT.newParentTagData=xle;oT.newChildTagData=Cle;oT.validateImplicitFieldSets=Ule;var wle=ds(),Lle=Ca(),Ws=AV(),Ple=_c(),aq=Vi(),kle=jl();function xle(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function Cle(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function Ule({conditionalFieldDataByCoordinates:e,configurationData:t,fieldSets:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:s,graphNode:o}){for(let u of n){let{error:l,documentNode:d}=(0,aq.safeParse)("{"+u+"}");if(l||!d)continue;let p=[i],y=[],N=new Set,I=[],b=-1,C=!0,j=!0;if((0,Ws.visit)(d,{Argument:{enter(){return j=!1,Ws.BREAK}},Field:{enter(re){let se=p[b];if(C)return j=!1,Ws.BREAK;let fe=re.name.value,ye=se.fieldDataByFieldName.get(fe);if(!ye||ye.argumentDataByArgumentName.size||y[b].has(fe))return j=!1,Ws.BREAK;let ke=e.get(`${ye.renamedParentTypeName}.${fe}`);if(ke){if(ke.providedBy.length>0)I.push(...ke.providedBy);else if(ke.requiredBy.length>0)return j=!1,Ws.BREAK}y[b].add(fe),b===0&&N.add(fe);let ht=(0,Lle.getTypeNodeNamedTypeName)(ye.node.type);if(Ple.BASE_SCALARS.has(ht))return;let xt=s.get(ht);if(!xt)return j=!1,Ws.BREAK;if(xt.kind===Ws.Kind.OBJECT_TYPE_DEFINITION){C=!0,p.push(xt);return}if((0,aq.isKindAbstract)(xt.kind))return j=!1,Ws.BREAK}},InlineFragment:{enter(){return j=!1,Ws.BREAK}},SelectionSet:{enter(){if(!C||(b+=1,C=!1,b<0||b>=p.length))return j=!1,Ws.BREAK;y.push(new Set)},leave(){if(C)return j=!1,Ws.BREAK;b-=1,p.pop(),y.pop()}}}),!j)continue;(0,wle.addIterableValuesToSet)(N,t.fieldNames);let Q=(0,kle.getNormalizedFieldSet)(d);r.push(K(k({fieldName:"",selectionSet:Q},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(Q)}}});var lq=V(Kp=>{"use strict";m();T();h();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.AccumulatorMap=void 0;Kp.mapValue=qp;Kp.extendSchemaImpl=Mle;var Ue=(Fe(),xe(Me)),Qa=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)}};Kp.AccumulatorMap=Qa;function qp(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function Mle(e,t,n){var ae,te,ce,je;let r=[],i=new Qa,s=new Qa,o=new Qa,u=new Qa,l=new Qa,d=new Qa,p=[],y,N=[],I=!1;for(let G of t.definitions){switch(G.kind){case Ue.Kind.SCHEMA_DEFINITION:y=G;break;case Ue.Kind.SCHEMA_EXTENSION:N.push(G);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(G);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(G);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(G.name.value,G);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:s.add(G.name.value,G);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(G.name.value,G);break;case Ue.Kind.UNION_TYPE_EXTENSION:u.add(G.name.value,G);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(G.name.value,G);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(G.name.value,G);break;default:continue}I=!0}if(!I)return e;let b=new Map;for(let G of e.types){let ee=se(G);ee&&b.set(G.name,ee)}for(let G of r){let ee=G.name.value;b.set(ee,(ae=uq.get(ee))!=null?ae:U(G))}for(let[G,ee]of s)b.set(G,new Ue.GraphQLObjectType({name:G,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[G,ee]of o)b.set(G,new Ue.GraphQLInterfaceType({name:G,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));for(let[G,ee]of l)b.set(G,new Ue.GraphQLEnumType({name:G,values:Pn(ee),extensionASTNodes:ee}));for(let[G,ee]of u)b.set(G,new Ue.GraphQLUnionType({name:G,types:()=>qn(ee),extensionASTNodes:ee}));for(let[G,ee]of i)b.set(G,new Ue.GraphQLScalarType({name:G,extensionASTNodes:ee}));for(let[G,ee]of d)b.set(G,new Ue.GraphQLInputObjectType({name:G,fields:()=>Xr(ee),extensionASTNodes:ee}))}let C=k(k({query:e.query&&Q(e.query),mutation:e.mutation&&Q(e.mutation),subscription:e.subscription&&Q(e.subscription)},y&&Ct([y])),Ct(N));return K(k({description:(ce=(te=y==null?void 0:y.description)==null?void 0:te.value)!=null?ce:e.description},C),{types:Array.from(b.values()),directives:[...e.directives.map(re),...p.map(vn)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(je=n==null?void 0:n.assumeValid)!=null?je:!1});function j(G){return(0,Ue.isListType)(G)?new Ue.GraphQLList(j(G.ofType)):(0,Ue.isNonNullType)(G)?new Ue.GraphQLNonNull(j(G.ofType)):Q(G)}function Q(G){return b.get(G.name)}function re(G){if((0,Ue.isSpecifiedDirective)(G))return G;let ee=G.toConfig();return new Ue.GraphQLDirective(K(k({},ee),{args:qp(ee.args,rt)}))}function se(G){if((0,Ue.isIntrospectionType)(G)||(0,Ue.isSpecifiedScalarType)(G))return G;if((0,Ue.isScalarType)(G))return ke(G);if((0,Ue.isObjectType)(G))return ht(G);if((0,Ue.isInterfaceType)(G))return xt(G);if((0,Ue.isUnionType)(G))return B(G);if((0,Ue.isEnumType)(G))return ye(G);if((0,Ue.isInputObjectType)(G))return fe(G)}function fe(G){var He;let ee=G.toConfig(),we=(He=d.get(ee.name))!=null?He:[];return new Ue.GraphQLInputObjectType(K(k({},ee),{fields:()=>k(k({},qp(ee.fields,jt=>K(k({},jt),{type:j(jt.type)}))),Xr(we)),extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function ye(G){var He;let ee=G.toConfig(),we=(He=l.get(G.name))!=null?He:[];return new Ue.GraphQLEnumType(K(k({},ee),{values:k(k({},ee.values),Pn(we)),extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function ke(G){var jt,Qe;let ee=G.toConfig(),we=(jt=i.get(ee.name))!=null?jt:[],He=ee.specifiedByURL;for(let Ht of we)He=(Qe=cq(Ht))!=null?Qe:He;return new Ue.GraphQLScalarType(K(k({},ee),{specifiedByURL:He,extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function ht(G){var He;let ee=G.toConfig(),we=(He=s.get(ee.name))!=null?He:[];return new Ue.GraphQLObjectType(K(k({},ee),{interfaces:()=>[...G.getInterfaces().map(Q),...on(we)],fields:()=>k(k({},qp(ee.fields,he)),_n(we)),extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function xt(G){var He;let ee=G.toConfig(),we=(He=o.get(ee.name))!=null?He:[];return new Ue.GraphQLInterfaceType(K(k({},ee),{interfaces:()=>[...G.getInterfaces().map(Q),...on(we)],fields:()=>k(k({},qp(ee.fields,he)),_n(we)),extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function B(G){var He;let ee=G.toConfig(),we=(He=u.get(ee.name))!=null?He:[];return new Ue.GraphQLUnionType(K(k({},ee),{types:()=>[...G.getTypes().map(Q),...qn(we)],extensionASTNodes:ee.extensionASTNodes.concat(we)}))}function he(G){return K(k({},G),{type:j(G.type),args:G.args&&qp(G.args,rt)})}function rt(G){return K(k({},G),{type:j(G.type)})}function Ct(G){var we;let ee={};for(let He of G){let jt=(we=He.operationTypes)!=null?we:[];for(let Qe of jt)ee[Qe.operation]=sn(Qe.type)}return ee}function sn(G){var He;let ee=G.name.value,we=(He=uq.get(ee))!=null?He:b.get(ee);if(we===void 0)throw new Error(`Unknown type: "${ee}".`);return we}function Fn(G){return G.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Fn(G.type)):G.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Fn(G.type)):sn(G)}function vn(G){var ee;return new Ue.GraphQLDirective({name:G.name.value,description:(ee=G.description)==null?void 0:ee.value,locations:G.locations.map(({value:we})=>we),isRepeatable:G.repeatable,args:mi(G.arguments),astNode:G})}function _n(G){var we,He;let ee=Object.create(null);for(let jt of G){let Qe=(we=jt.fields)!=null?we:[];for(let Ht of Qe)ee[Ht.name.value]={type:Fn(Ht.type),description:(He=Ht.description)==null?void 0:He.value,args:mi(Ht.arguments),deprecationReason:tI(Ht),astNode:Ht}}return ee}function mi(G){var He;let ee=G!=null?G:[],we=Object.create(null);for(let jt of ee){let Qe=Fn(jt.type);we[jt.name.value]={type:Qe,description:(He=jt.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(jt.defaultValue,Qe),deprecationReason:tI(jt),astNode:jt}}return we}function Xr(G){var we,He;let ee=Object.create(null);for(let jt of G){let Qe=(we=jt.fields)!=null?we:[];for(let Ht of Qe){let pa=Fn(Ht.type);ee[Ht.name.value]={type:pa,description:(He=Ht.description)==null?void 0:He.value,defaultValue:(0,Ue.valueFromAST)(Ht.defaultValue,pa),deprecationReason:tI(Ht),astNode:Ht}}}return ee}function Pn(G){var we,He;let ee=Object.create(null);for(let jt of G){let Qe=(we=jt.values)!=null?we:[];for(let Ht of Qe)ee[Ht.name.value]={description:(He=Ht.description)==null?void 0:He.value,deprecationReason:tI(Ht),astNode:Ht}}return ee}function on(G){return G.flatMap(ee=>{var we,He;return(He=(we=ee.interfaces)==null?void 0:we.map(sn))!=null?He:[]})}function qn(G){return G.flatMap(ee=>{var we,He;return(He=(we=ee.types)==null?void 0:we.map(sn))!=null?He:[]})}function U(G){var we,He,jt,Qe,Ht,pa,Li,fa,rd,Do,Gr,Wi;let ee=G.name.value;switch(G.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let cn=(we=s.get(ee))!=null?we:[],Qr=[G,...cn];return s.delete(ee),new Ue.GraphQLObjectType({name:ee,description:(He=G.description)==null?void 0:He.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let cn=(jt=o.get(ee))!=null?jt:[],Qr=[G,...cn];return o.delete(ee),new Ue.GraphQLInterfaceType({name:ee,description:(Qe=G.description)==null?void 0:Qe.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let cn=(Ht=l.get(ee))!=null?Ht:[],Qr=[G,...cn];return l.delete(ee),new Ue.GraphQLEnumType({name:ee,description:(pa=G.description)==null?void 0:pa.value,values:Pn(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.UNION_TYPE_DEFINITION:{let cn=(Li=u.get(ee))!=null?Li:[],Qr=[G,...cn];return u.delete(ee),new Ue.GraphQLUnionType({name:ee,description:(fa=G.description)==null?void 0:fa.value,types:()=>qn(Qr),astNode:G,extensionASTNodes:cn})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let cn=(rd=i.get(ee))!=null?rd:[];return i.delete(ee),new Ue.GraphQLScalarType({name:ee,description:(Do=G.description)==null?void 0:Do.value,specifiedByURL:cq(G),astNode:G,extensionASTNodes:cn})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let cn=(Gr=d.get(ee))!=null?Gr:[],Qr=[G,...cn];return d.delete(ee),new Ue.GraphQLInputObjectType({name:ee,description:(Wi=G.description)==null?void 0:Wi.value,fields:()=>Xr(Qr),astNode:G,extensionASTNodes:cn})}}}}var uq=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function tI(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function cq(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var pq=V(bR=>{"use strict";m();T();h();Object.defineProperty(bR,"__esModule",{value:!0});bR.buildASTSchema=jle;var dq=(Fe(),xe(Me)),Ble=mp(),Vle=lq();function jle(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Ble.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,Vle.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...dq.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new dq.GraphQLSchema(K(k({},r),{directives:i}))}});var SR=V(OR=>{"use strict";m();T();h();Object.defineProperty(OR,"__esModule",{value:!0});OR.recordSubgraphName=$le;function $le(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var DR=V(cT=>{"use strict";m();T();h();Object.defineProperty(cT,"__esModule",{value:!0});cT.upsertDirectiveSchemaAndEntityDefinitions=qle;cT.upsertParentsAndChildren=Kle;cT.consolidateAuthorizationDirectives=Gle;var nr=(Fe(),xe(Me)),Ya=co(),ql=_c(),dn=ds(),aT=Vi(),Ja=jl(),pr=bi(),Ji=jp(),uT=Ca();function qle(e,t){let n=new Set,r=[];(0,nr.visit)(t,{Directive:{enter(i){let s=i.name.value;if(pr.EVENT_DIRECTIVE_NAMES.has(s)&&e.edfsDirectiveReferences.add(s),ql.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return e.isSubgraphVersionTwo=!0,!1;if(ql.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return!1;s===pr.SUBSCRIPTION_FILTER&&e.directiveDefinitionByDirectiveName.set(pr.SUBSCRIPTION_FILTER,ql.SUBSCRIPTION_FILTER_DEFINITION),e.referencedDirectiveNames.add(s)}},DirectiveDefinition:{enter(i){let s=i.name.value;return n.has(s)?(e.errors.push((0,Ya.duplicateDirectiveDefinitionError)(s)),!1):(n.add(s),ql.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)?(e.isSubgraphVersionTwo=!0,!1):(ql.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)||s===pr.SUBSCRIPTION_FILTER||(e.directiveDefinitionByDirectiveName.set(s,i),e.customDirectiveDefinitions.set(s,i)),!1))}},InterfaceTypeDefinition:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,aT.isObjectLikeNodeEntity)(i))return;let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{})),(0,dn.getValueOrDefault)(e.entityInterfaceDataByTypeName,s,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:s}))}},InterfaceTypeExtension:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,aT.isObjectLikeNodeEntity)(i))return;let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeDefinition:{enter(i){if(!(0,aT.isObjectLikeNodeEntity)(i))return;let s=i.name.value;(0,aT.isNodeInterfaceObject)(i)&&(e.entityInterfaceDataByTypeName.set(s,{fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:s}),e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}));let o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeExtension:{enter(i){if(!(0,aT.isObjectLikeNodeEntity)(i))return;let s=i.name.value,o=(0,dn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Ja.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,dn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},OperationTypeDefinition:{enter(i){let s=i.operation,o=e.schemaDefinition.operationTypes.get(s),u=(0,uT.getTypeNodeNamedTypeName)(i.type);if(o)return(0,Ya.duplicateOperationTypeDefinitionError)(s,u,(0,uT.getTypeNodeNamedTypeName)(o.type)),!1;let l=e.operationTypeNodeByTypeName.get(u);return l?(e.errors.push((0,Ya.invalidOperationTypeDefinitionError)(l,u,s)),!1):(e.operationTypeNodeByTypeName.set(u,s),e.schemaDefinition.operationTypes.set(s,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}},UnionTypeDefinition:{enter(i){i.name.value!==pr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===pr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}});for(let i of r)(0,Ji.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,pr.SCHEMA)}function Kle(e,t){let n=!1,r;(0,nr.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},EnumValueDefinition:{enter(i){e.childName=i.name.value,e.lastChildNodeKind=i.kind;let s=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA);if(s.kind!==nr.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,"enum or enum extension",(0,dn.kindToTypeString)(s.kind),e.childName,(0,dn.kindToTypeString)(i.kind)));return}if(s.enumValueDataByValueName.has(e.childName)){e.errors.push((0,Ya.duplicateEnumValueDefinitionError)(e.originalParentTypeName,e.childName));return}(0,Ji.addEnumValueDataByNode)(s.enumValueDataByValueName,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName)},leave(){e.childName="",e.lastChildNodeKind=nr.Kind.NULL}},FieldDefinition:{enter(i){if(e.childName=i.name.value,n){if(e.childName===pr.SERVICE_FIELD||e.childName===pr.ENTITIES_FIELD)return!1;e.extractEventDirectivesToConfiguration(i)}e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let s=(0,uT.getTypeNodeNamedTypeName)(i.type);r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(s),e.childName),ql.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let o=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA);if(o.kind!==nr.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==nr.Kind.INTERFACE_TYPE_DEFINITION){e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dn.kindToTypeString)(o.kind),e.childName,(0,dn.kindToTypeString)(i.kind)));return}if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,Ya.duplicateFieldDefinitionError)((0,dn.kindToTypeString)(o.kind),o.name,e.childName));return}let u=(0,Ji.extractArguments)(new Map,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),l=e.extractDirectivesAndAuthorization(i,new Map);(0,Ji.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,l);let d=(0,Ji.addFieldDataByNode)(o.fieldDataByFieldName,i,u,l,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo,e.errors),p=d.directivesByDirectiveName.get(pr.PROVIDES),y=d.directivesByDirectiveName.get(pr.REQUIRES);if(!y&&!p)return;let N=e.entityDataByTypeName.get(e.originalParentTypeName);if(N){N.fieldNames.add(e.childName);let b=(0,dn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,Ja.newFieldSetData);(0,Ja.extractFieldSetValue)(e.childName,b.requires,y),(0,Ja.extractFieldSetValue)(e.childName,b.provides,p);return}if(!p)return;let I=(0,dn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,Ja.newFieldSetData);(0,Ja.extractFieldSetValue)(e.childName,I.provides,p)},leave(){e.childName="",e.lastChildNodeKind=nr.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=nr.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=nr.Kind.NULL}},InputValueDefinition:{enter(i){let s=i.name.value;if(e.lastParentNodeKind!==nr.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==nr.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=s;return}e.childName=s,e.lastChildNodeKind=i.kind;let o=`${e.originalParentTypeName}.${s}`,u=(0,uT.getTypeNodeNamedTypeName)(i.type);ql.BASE_SCALARS.has(u)||e.referencedTypeNames.add(u);let l=(0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA);if(l.kind!==nr.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Ya.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dn.kindToTypeString)(l.kind),e.childName,(0,dn.kindToTypeString)(i.kind))),!1;if(l.inputValueDataByValueName.has(s)){e.errors.push((0,Ya.duplicateInputFieldDefinitionError)(e.originalParentTypeName,s));return}(0,Ji.addInputValueDataByNode)(l.inputValueDataByValueName,i,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===nr.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=nr.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===pr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Ji.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Ji.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(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ObjectTypeExtension:{enter(i){if(i.name.value===pr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Ji.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Ji.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(){(0,Ji.removeInheritableDirectivesFromParentWithFieldsData)((0,dn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,pr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ScalarTypeDefinition:{enter(i){if(i.name.value===pr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===pr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}}})}function Gle(e,t){let n,r=!1;(0,nr.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let s=(0,uT.getTypeNodeNamedTypeName)(i.type),o=e.leafTypeNamesWithAuthorizationDirectives.has(s);if((!n||!n.hasParentLevelAuthorization)&&!o)return!1;let u=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,dn.setAndGetValue)(e.authorizationDataByParentTypeName,u,(0,dn.newAuthorizationData)(u)));let l=(0,dn.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,dn.newFieldAuthorizationData)(e.childName));if(!(0,dn.mergeAuthorizationDataByAND)(n,l))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!o)return!1;if(r)return(0,dn.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,s,()=>[]).push(l),!1;let d=e.authorizationDataByParentTypeName.get(s);return d&&d.hasParentLevelAuthorization&&!(0,dn.mergeAuthorizationDataByAND)(d,l)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}});var LR=V(ca=>{"use strict";m();T();h();Object.defineProperty(ca,"__esModule",{value:!0});ca.EntityDataNode=ca.RootNode=ca.GraphNode=ca.Edge=void 0;var nI=ds(),AR=class{constructor(t,n,r,i=!1){A(this,"edgeName");A(this,"id");A(this,"isAbstractEdge");A(this,"isInaccessible",!1);A(this,"node");A(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};ca.Edge=AR;var RR=class{constructor(t,n,r){A(this,"fieldDataByFieldName",new Map);A(this,"headToTailEdges",new Map);A(this,"entityEdges",[]);A(this,"nodeName");A(this,"hasEntitySiblings",!1);A(this,"isAbstract");A(this,"isInaccessible",!1);A(this,"isLeaf",!1);A(this,"isRootNode",!1);A(this,"satisfiedFieldSets",new Set);A(this,"subgraphName");A(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,nI.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,nI.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};ca.GraphNode=RR;var FR=class{constructor(t){A(this,"fieldDataByFieldName",new Map);A(this,"headToShareableTailEdges",new Map);A(this,"isAbstract",!1);A(this,"isRootNode",!0);A(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}};ca.RootNode=FR;var wR=class{constructor(t){A(this,"fieldSetsByTargetSubgraphName",new Map);A(this,"targetSubgraphNamesByFieldSet",new Map);A(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,nI.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,nI.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};ca.EntityDataNode=wR});var kR=V(za=>{"use strict";m();T();h();Object.defineProperty(za,"__esModule",{value:!0});za.NodeResolutionData=void 0;za.newRootFieldData=Qle;za.generateResolvabilityErrorReasons=hq;za.generateSelectionSetSegments=Tq;za.renderSelectionSet=yq;za.generateResolvabilityErrors=zle;var fq=ds(),Kl=bi(),mq=co(),PR=class{constructor(t,n){A(this,"fieldDataByFieldName");A(this,"isResolved",!1);A(this,"resolvedFieldNames",new Set);A(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,fq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,mq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};za.NodeResolutionData=PR;function Qle(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(Kl.QUOTATION_JOIN)}".`,subgraphNames:n}}function Yle(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- `+Kl.LITERAL_SPACE.repeat(t+3)+`... `+Kl.LITERAL_SPACE.repeat(t+2)+`} `}function hq({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:s}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(s.size>1?"s":"")+`: "${[...s].join(Kl.QUOTATION_JOIN)}".`];if(e){let u=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(s.has(l)){u=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" to access subgraph "${l}".`)}u||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 Tq(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();h();Object.defineProperty(rI,"__esModule",{value:!0});rI.Graph=void 0;var wi=ds(),Nq=bi(),Gp=LR(),Qp=kR(),xR=class{constructor(){A(this,"edgeId",-1);A(this,"entityDataNodes",new Map);A(this,"entityNodeNamesBySharedFieldPath",new Map);A(this,"nodeByNodeName",new Map);A(this,"nodesByTypeName",new Map);A(this,"rootNodeByRootTypeName",new Map);A(this,"subgraphName",Nq.N_A);A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);A(this,"nodeResolutionDataByFieldPath",new Map);A(this,"unresolvableFieldPaths",new Set);A(this,"failureResultByEntityNodeName",new Map);A(this,"walkerIndex",-1)}getRootNode(t){return(0,wi.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gp.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 s=new Gp.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,s),(0,wi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(s),s}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new Gp.Edge(this.getNextEdgeId(),n,r);return(0,wi.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(u),u}let s=t,o=new Gp.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return s.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gp.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(Nq.ROOT_TYPE_NAMES.has(t)){let s=this.getRootNode(t);s.removeInaccessibleEdges(n),s.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let s of i)if(s.fieldDataByFieldName=n,s.handleInaccessibleEdges(),s.isLeaf=!1,!!r){s.hasEntitySiblings=!0;for(let o of s.satisfiedFieldSets){let u=r.targetSubgraphNamesByFieldSet.get(o);for(let l of u||[]){if(l===s.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${s.typeName}`);d&&s.entityEdges.push(new Gp.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,s]of t){let o=s.size>1,u,l=o?new Map:void 0,d=new Set,p=new Map;for(let y of s){let N=this.nodeByNodeName.get(y);if(!N)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let Q=this.failureResultByEntityNodeName.get(y);if(!Q){u=void 0;break}if(!o)return Q}let b=this.nodesByTypeName.get(N.typeName)||[],C=(0,wi.getValueOrDefault)(r,y,()=>o?p:new Map),j=new CR({interSubgraphNodes:b,entityNodeNamesBySharedFieldPath:C,originNode:N,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:d});if(j.visitEntityNode(N),j.unresolvableFieldPaths.size>0){if(o&&d.size<1){u=void 0;break}u={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,wi.getOrThrowError)(this.entityDataNodes,N.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:N.subgraphName,typeName:N.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:N.typeName,unresolvableFieldPaths:o?d:j.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,u);continue}u=void 0;break}if(u)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(u.nodeName,l),u}if(r.size>0)for(let[i,s]of r){let o=this.validateEntities(s,n);if(!o.success){for(let[u,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(u);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 u of i){if(u.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(u,`${n.typeName.toLowerCase()}`)}let s=(0,wi.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,Qp.newRootFieldData)(n.typeName,r,s.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,Qp.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let u=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);u.success||this.generateEntityResolvabilityErrors(u,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,wi.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,wi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,wi.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,s]of t.headToTailEdges)this.visitEdge(s,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,wi.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),s="";for(let o of t.parentFieldPathForEntityReference)s=o+s;(0,Qp.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:s,entityAncestorData:t.entityAncestorData})}};rI.Graph=xR;var CR=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:s,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:u}){A(this,"entityNodeNamesBySharedFieldPath");A(this,"interSubgraphNodes");A(this,"originNode");A(this,"resolvableFieldNamesByRelativeFieldPath");A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");A(this,"unresolvableFieldPaths",new Set);A(this,"unresolvableSharedFieldPaths");A(this,"walkerIndex");A(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=s,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=u}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,wi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,wi.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,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,wi.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[s,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(s),i==null||i.add(s));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 VR=V(Ql=>{"use strict";m();T();h();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.NormalizationFactory=void 0;Ql.normalizeSubgraphFromString=Xle;Ql.normalizeSubgraph=gq;Ql.batchNormalize=Zle;var Pe=(we(),xe(Me)),Hi=Vi(),iI=jl(),zi=_c(),nt=ds(),De=co(),ve=bi(),Hle=pq(),Ha=Hg(),Wle=SR(),Eq=eI(),MR=DR(),Gl=Vh(),Wr=jp(),Wa=Ca(),BR=UR();function Xle(e){let{error:t,documentNode:n}=(0,Hi.safeParse)(e);return t||!n?{errors:[(0,De.subgraphInvalidSyntaxError)(t)],warnings:[]}:new lT(new BR.Graph).normalize(n)}function gq(e,t,n){return new lT(n||new BR.Graph,t).normalize(e)}var lT=class{constructor(t,n){A(this,"argumentName","");A(this,"authorizationDataByParentTypeName",new Map);A(this,"childName","");A(this,"concreteTypeNamesByAbstractTypeName",new Map);A(this,"conditionalFieldDataByCoordinates",new Map);A(this,"configurationDataByParentTypeName",new Map);A(this,"customDirectiveDefinitions",new Map);A(this,"directiveDefinitionByDirectiveName",new Map);A(this,"edfsDirectiveReferences",new Set);A(this,"errors",[]);A(this,"entityDataByTypeName",new Map);A(this,"entityInterfaceDataByTypeName",new Map);A(this,"eventsConfigurations",new Map);A(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);A(this,"internalGraph");A(this,"isCurrentParentExtension",!1);A(this,"isSubgraphEventDrivenGraph",!1);A(this,"isSubgraphVersionTwo",!1);A(this,"fieldSetDataByTypeName",new Map);A(this,"heirFieldAuthorizationDataByTypeName",new Map);A(this,"handledRepeatedDirectivesByHostPath",new Map);A(this,"lastParentNodeKind",Pe.Kind.NULL);A(this,"lastChildNodeKind",Pe.Kind.NULL);A(this,"leafTypeNamesWithAuthorizationDirectives",new Set);A(this,"keyFieldSetDataByTypeName",new Map);A(this,"keyFieldNamesByParentTypeName",new Map);A(this,"operationTypeNodeByTypeName",new Map);A(this,"originalTypeNameByRenamedTypeName",new Map);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"originalParentTypeName","");A(this,"parentsWithChildArguments",new Set);A(this,"overridesByTargetSubgraphName",new Map);A(this,"invalidOrScopesHostPaths",new Set);A(this,"schemaDefinition");A(this,"referencedDirectiveNames",new Set);A(this,"referencedTypeNames",new Set);A(this,"renamedParentTypeName","");A(this,"subgraphName");A(this,"warnings",[]);for(let[r,i]of zi.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ve.N_A,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaDefinition={directivesByDirectiveName:new Map,kind:Pe.Kind.SCHEMA_DEFINITION,typeName:ve.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if(zi.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,De.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Pe.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,nt.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,s]of t.argumentDataByArgumentName){let o=(0,Wa.getTypeNodeNamedTypeName)(s.type),{hasUnhandledError:u,typeString:l}=this.validateInputNamedType(o);u&&r.push({argumentName:i,namedType:o,typeString:l,typeName:(0,Ha.printTypeNode)(s.type)})}r.length>0&&this.errors.push((0,De.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,nt.resetAuthorizationData)(r),!t.directives)return r;let i=!1,s=[];for(let d of t.directives){let p=d.name.value;if(p===ve.AUTHENTICATED){if(i)return;i=!0;continue}if(p===ve.REQUIRES_SCOPES){if(s.length>0)return;s.push(d)}}if(!i&&s.length<1||((0,nt.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,nt.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,nt.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,s.length!==1))return r;let o=s[0];if(!o.arguments||o.arguments.length!==1)return;let u=o.arguments[0];if(u.name.value!==ve.SCOPES||u.value.kind!==Pe.Kind.LIST)return;let l=u.value.values;if(l.length<1)return r;if(l.length>nt.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let d of l){if(d.kind!==Pe.Kind.LIST)return;let p=new Set;for(let y of d.values){if(y.kind!==Pe.Kind.STRING)return;p.add(y.value)}p.size&&r.requiredScopes.push(p)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let l of t.directives){let d=(0,Wr.getDirectiveValidationErrors)(l,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),p=l.name.value;if(d.length>0){this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.EXTENDS)continue;if(p===ve.OVERRIDE){this.handleOverrideDeclaration(l,r,d),d.length>0&&this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.AUTHENTICATED||p===ve.REQUIRES_SCOPES){i.push(l);continue}let y=n.get(p);if(y){y.push(l);continue}n.set(p,[l])}if(i.length<1)return n;let s=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==Pe.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(s);let o=(0,nt.getValueOrDefault)(this.authorizationDataByParentTypeName,s,()=>(0,nt.newAuthorizationData)(s)),u=(0,nt.getAuthorizationDataToUpdate)(o,t,this.childName);for(let l of i){if(l.name.value===ve.AUTHENTICATED){u.requiresAuthentication=!0;continue}let p=l.arguments[0].value.values;if(p.length>nt.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let y of p){let N=new Set;for(let I of y.values)N.add(I.value);N.size&&u.requiredScopes.push(N)}}return n}isTypeNameRootType(t){return ve.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}extractDirectives(t,n,r,i=!1){if(!t.directives)return n;let s=new Set;for(let o of t.directives){let u=(0,Wr.getDirectiveValidationErrors)(o,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r,i),l=o.name.value;if(u.length>0){this.errors.push((0,De.invalidDirectiveError)(l,r,u));continue}if(ve.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===ve.KEY){let p=o.arguments[0].value.value;if(s.has(p))continue;s.add(p)}let d=n.get(l);d?d.push(o):n.set(l,[o])}return n}getNodeExtensionType(t,n,r=!1){return t?Gl.ExtensionType.REAL:r||this.isSubgraphVersionTwo||!n.has(ve.EXTENDS)?Gl.ExtensionType.NONE:Gl.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Gl.ExtensionType.EXTENDS:case Gl.ExtensionType.NONE:{if(n===Gl.ExtensionType.REAL)return;this.errors.push((0,De.duplicateTypeDefinitionError)((0,nt.kindToTypeString)(t.kind),t.name));return}default:t.extensionType=n}}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateImplementedInterfaceError)((0,nt.kindToConvertedTypeString)(t.kind),r,s));continue}n.add(s)}return n}updateCompositeOutputDataByNode(t,n,r,i){this.setParentDataExtensionType(n,i),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.isEntity||(n.isEntity=r.has(ve.KEY)),n.isInaccessible||(n.isInaccessible=r.has(ve.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName),n.description||(n.description=(0,Hi.formatDescription)("description"in t?t.description:void 0))}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s),u=this.entityInterfaceDataByTypeName.get(r);if(u&&t.fields)for(let l of t.fields)u.interfaceFieldNames.add(l.name.value);if(i){if(i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,o);return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),kind:Pe.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Pe.OperationTypeNode.MUTATION:return ve.MUTATION;case Pe.OperationTypeNode.SUBSCRIPTION:return ve.SUBSCRIPTION;default:return ve.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),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.isTypeNameRootType(r),u=this.getNodeExtensionType(n,s,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,u),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r),this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:u,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:l,isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),isRootType:o,kind:Pe.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{appearances:1,directivesByDirectiveName:s,extensionType:o,enumValueDataByValueName:new Map,kind:Pe.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=s.has(ve.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,inputValueDataByValueName:new Map,isInaccessible:s.has(ve.INACCESSIBLE),kind:Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateUnionMemberDefinitionError)(r,s));continue}(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(s),zi.BASE_SCALARS.has(s)||this.referencedTypeNames.add(s),n.set(s,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Pe.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Pe.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,Wa.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractKeyFieldSets(t,n){var o;let r=n.isUnresolvableByKeyFieldSet,i=t.name.value;if(!((o=t.directives)!=null&&o.length)){this.errors.push((0,De.expectedEntityError)(i));return}let s=[];for(let u of t.directives){if(u.name.value!==ve.KEY)continue;if(!u.arguments||u.arguments.length<1){s.push((0,De.undefinedRequiredArgumentsErrorMessage)(ve.KEY,i,[ve.FIELDS]));continue}let l,d=!1;for(let p of u.arguments){if(p.name.value===ve.RESOLVABLE){p.value.kind===Pe.Kind.BOOLEAN&&!p.value.value&&(d=!0);continue}if(p.name.value!==ve.FIELDS){l=void 0;break}if(p.value.kind!==Pe.Kind.STRING){l=void 0,s.push((0,De.invalidKeyDirectiveArgumentErrorMessage)(p.value.kind));break}l=p.value.value}l!==void 0&&r.set(l,d)}s.length&&this.errors.push((0,De.invalidKeyDirectivesError)(i,s))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ve.INACCESSIBLE),r=new Map,i=new Map,s=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(!u){this.errors.push((0,De.undefinedTypeError)(o));continue}if(u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,nt.kindToTypeString)(u.kind));continue}if(t.name===u.name){s=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of u.fieldDataByFieldName){let N=!1,I=t.fieldDataByFieldName.get(p);if(!I){d=!0,l.unimplementedFields.push(p);continue}let b={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Ha.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Wr.isTypeValidImplementation)(y.node.type,I.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,N=!0,b.implementedResponseType=(0,Ha.printTypeNode)(I.node.type));let C=new Set;for(let[j,Q]of y.argumentDataByArgumentName){C.add(j);let re=I.argumentDataByArgumentName.get(j);if(!re){d=!0,N=!0,b.unimplementedArguments.add(j);continue}let se=(0,Ha.printTypeNode)(re.type),pe=(0,Ha.printTypeNode)(Q.type);pe!==se&&(d=!0,N=!0,b.invalidImplementedArguments.push({actualType:se,argumentName:j,expectedType:pe}))}for(let[j,Q]of I.argumentDataByArgumentName)C.has(j)||Q.type.kind===Pe.Kind.NON_NULL_TYPE&&(d=!0,N=!0,b.invalidAdditionalArguments.add(j));!n&&I.isInaccessible&&!y.isInaccessible&&(d=!0,N=!0,b.isInaccessible=!0),N&&l.invalidFieldImplementations.set(p,b)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,De.invalidImplementedTypeError)(t.name,i)),s&&this.errors.push((0,De.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,De.invalidInterfaceImplementationError)(t.name,(0,nt.kindToTypeString)(t.kind),r))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==Pe.Kind.STRING){r.push((0,De.invalidDirectiveArgumentTypeErrorMessage)(!0,ve.FROM,Pe.Kind.STRING,i.value.kind));return}let s=i.value.value;if(s===this.subgraphName){r.push((0,De.equivalentSourceAndTargetOverrideErrorMessage)(s,n));return}let o=(0,nt.getValueOrDefault)(this.overridesByTargetSubgraphName,s,()=>new Map);(0,nt.getValueOrDefault)(o,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}getKafkaPublishConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID;for(let s of t.arguments||[])switch(s.name.value){case ve.TOPIC:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push((0,De.invalidEventSubjectErrorMessage)(ve.TOPIC));continue}r.push(s.value.value);break}case ve.PROVIDER_ID:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=s.value.value;break}}if(!(n.length>0))return{fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_KAFKA,topics:r,type:ve.PUBLISH}}getKafkaSubscribeConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID;for(let s of t.arguments||[])switch(s.name.value){case ve.TOPICS:{if(s.value.kind!==Pe.Kind.LIST){n.push((0,De.invalidEventSubjectsErrorMessage)(ve.TOPICS));continue}for(let o of s.value.values){if(o.kind!==Pe.Kind.STRING||o.value.length<1){n.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.TOPICS));break}r.push(o.value)}break}case ve.PROVIDER_ID:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=s.value.value;break}}if(!(n.length>0))return{fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_KAFKA,topics:r,type:ve.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of n.arguments||[])switch(o.name.value){case ve.SUBJECT:{if(o.value.kind!==Pe.Kind.STRING||o.value.value.length<1){r.push((0,De.invalidEventSubjectErrorMessage)(ve.SUBJECT));continue}i.push(o.value.value);break}case ve.PROVIDER_ID:{if(o.value.kind!==Pe.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_NATS,subjects:i,type:t}}getNatsSubscribeConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID,s="",o="";for(let u of t.arguments||[])switch(u.name.value){case ve.SUBJECTS:{if(u.value.kind!==Pe.Kind.LIST){n.push((0,De.invalidEventSubjectsErrorMessage)(ve.SUBJECTS));continue}for(let l of u.value.values){if(l.kind!==Pe.Kind.STRING||l.value.length<1){n.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.SUBJECTS));break}r.push(l.value)}break}case ve.PROVIDER_ID:{if(u.value.kind!==Pe.Kind.STRING||u.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=u.value.value;break}case ve.STREAM_CONFIGURATION:{if(u.value.kind!==Pe.Kind.OBJECT||u.value.fields.length<1){n.push(De.invalidNatsStreamInputErrorMessage);continue}let l=!0,d=new Set,p=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]),y=new Set,N=new Set;for(let I of u.value.fields){let b=I.name.value;if(!ve.STREAM_CONFIGURATION_FIELD_NAMES.has(b)){d.add(b),l=!1;continue}if(p.has(b))p.delete(b);else{y.add(b),l=!1;continue}if(I.value.kind!==Pe.Kind.STRING||I.value.value.length<1){N.add(b),l=!1;continue}switch(b){case ve.CONSUMER_NAME:s=I.value.value;break;case ve.STREAM_NAME:o=I.value.value;break}}(!l||p.size>0)&&n.push((0,De.invalidNatsStreamInputFieldsErrorMessage)([...p],[...y],[...N],[...d]))}}if(!(n.length>0))return k({fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_NATS,subjects:r,type:ve.SUBSCRIBE},s&&o?{streamConfiguration:{consumerName:s,streamName:o}}:{})}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Pe.OperationTypeNode.SUBSCRIPTION;for(let s of t.directives)if(s.name.value===ve.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,De.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t){if(!t.directives)return;let n=`${this.renamedParentTypeName||this.originalParentTypeName}.${this.childName}`;for(let r of t.directives){let i=[],s;switch(r.name.value){case ve.EDFS_KAFKA_PUBLISH:s=this.getKafkaPublishConfiguration(r,i);break;case ve.EDFS_KAFKA_SUBSCRIBE:s=this.getKafkaSubscribeConfiguration(r,i);break;case ve.EDFS_NATS_PUBLISH:{s=this.getNatsPublishAndRequestConfiguration(ve.PUBLISH,r,i);break}case ve.EDFS_NATS_REQUEST:{s=this.getNatsPublishAndRequestConfiguration(ve.REQUEST,r,i);break}case ve.EDFS_NATS_SUBSCRIBE:{s=this.getNatsSubscribeConfiguration(r,i);break}default:continue}if(i.length>0){this.errors.push((0,De.invalidEventDirectiveError)(r.name.value,n,i));continue}s&&(0,nt.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(s)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Pe.OperationTypeNode.MUTATION:return new Set([ve.EDFS_KAFKA_PUBLISH,ve.EDFS_NATS_PUBLISH,ve.EDFS_NATS_REQUEST]);case Pe.OperationTypeNode.QUERY:return new Set([ve.EDFS_NATS_REQUEST]);case Pe.OperationTypeNode.SUBSCRIPTION:return new Set([ve.EDFS_KAFKA_SUBSCRIBE,ve.EDFS_NATS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ve.MUTATION:return Pe.OperationTypeNode.MUTATION;case ve.QUERY:return Pe.OperationTypeNode.QUERY;case ve.SUBSCRIPTION:return Pe.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let s=this.getOperationTypeNodeForRootTypeName(t.name);if(!s){this.errors.push((0,De.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(s);for(let[u,l]of t.fieldDataByFieldName){let d=`${l.originalParentTypeName}.${u}`,p=new Set;for(let j of ve.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(j)&&p.add(j);let y=new Set;for(let j of p)o.has(j)||y.add(j);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),s===Pe.OperationTypeNode.MUTATION){let j=(0,Ha.printTypeNode)(l.type);j!==ve.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,j);continue}let N=(0,Ha.printTypeNode)(l.type),I=l.namedTypeName+"!",b=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let j of C)if(b||(b=this.entityDataByTypeName.has(j)),b)break;(!b||N!==I)&&r.set(d,N)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDataByTypeName.get(t);if(r)for(let[i,s]of r.isUnresolvableByKeyFieldSet)s||(0,nt.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){for(let[s,o]of t){let u=`${o.originalParentTypeName}.${s}`;if(n.has(s)){o.isExternalBySubgraphName.get(this.subgraphName)||r.set(u,s);continue}i.set(u,s)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ve.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size!=1)return!1;for(let[n,r]of t.fieldDataByFieldName)if(r.argumentDataByArgumentName.size>0||n!==ve.SUCCESS||(0,Ha.printTypeNode)(r.type)!==ve.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByValueName.size!=2)return!1;let n=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]);for(let[r,i]of t.inputValueDataByValueName)if(!n.has(r)||(n.delete(r),(0,Ha.printTypeNode)(i.type)!==ve.NON_NULLABLE_STRING))return!1;return n.size<1}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Map,l=new Set,d=new Set;for(let[p,y]of this.parentDefinitionDataByTypeName){if(p===ve.EDFS_PUBLISH_RESULT||p===ve.EDFS_NATS_STREAM_CONFIGURATION||y.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)continue;if(y.isRootType){this.validateEventDrivenRootType(y,n,r,i);continue}let N=this.keyFieldNamesByParentTypeName.get(p);if(!N){d.add(p);continue}this.validateEventDrivenKeyDefinition(p,s),this.validateEventDrivenObjectFields(y.fieldDataByFieldName,N,o,u)}if(this.isEdfsPublishResultValid()||t.push(De.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ve.EDFS_NATS_SUBSCRIBE)){let p=this.parentDefinitionDataByTypeName.get(ve.EDFS_NATS_STREAM_CONFIGURATION);p?this.isNatsStreamConfigurationInputObjectValid(p)||t.push(De.invalidNatsStreamConfigurationDefinitionErrorMessage):t.push(De.undefinedNatsStreamConfigurationInputErrorMessage)}n.size>0&&t.push((0,De.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,De.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,De.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),s.size>0&&t.push((0,De.invalidKeyFieldSetsEventDrivenErrorMessage)(s)),o.size>0&&t.push((0,De.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,De.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,De.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,De.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,De.invalidEventDrivenGraphError)(t))}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!==Pe.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,nt.kindToTypeString)(i.kind)}"`)}n.length>0&&this.errors.push((0,De.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypesForImplementedInterfaces(t){if(!t.interfaces||t.interfaces.length<1)return;let n=t.name.value;for(let r of t.interfaces){let i=r.name.value;(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,i,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(i,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}}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,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}validateAndAddKeyToConfiguration(t,n){let r=(0,nt.getOrThrowError)(this.configurationDataByParentTypeName,(0,Wr.getParentTypeName)(t),"configurationDataByParentTypeName"),i=(0,iI.validateKeyFieldSets)(this,t,n.isUnresolvableByKeyFieldSet,r.fieldNames);i&&(r.keys=i)}validateAndAddKeysToConfiguration(){for(let[t,n]of this.keyFieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(t));continue}this.validateAndAddKeyToConfiguration(r,n)}}normalize(t){(0,MR.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,MR.upsertParentsAndChildren)(this,t),(0,MR.consolidateAuthorizationDirectives)(this,t);for(let s of this.interfaceTypeNamesWithAuthorizationDirectives){let o=this.authorizationDataByParentTypeName.get(s);if(!o)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);for(let l of u||[]){let d=(0,nt.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,nt.newAuthorizationData)(l));for(let[p,y]of o.fieldAuthorizationDataByFieldName)(0,nt.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,y)||this.invalidOrScopesHostPaths.add(`${l}.${p}`)}}for(let[s,o]of this.heirFieldAuthorizationDataByTypeName){let u=this.authorizationDataByParentTypeName.get(s);if(u)for(let l of o)(0,nt.mergeAuthorizationDataByAND)(u,l)||this.invalidOrScopesHostPaths.add(`${s}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,De.orScopesLimitError)(nt.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let s of zi.BASE_DIRECTIVE_DEFINITIONS)n.push(s);if(n.push(zi.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let s of zi.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(s),this.directiveDefinitionByDirectiveName.set(s.name.value,s);n.push(zi.SCOPE_SCALAR_DEFINITION)}for(let s of this.edfsDirectiveReferences){let o=zi.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(s);if(!o){this.errors.push((0,De.invalidEdfsDirectiveName)(s));continue}n.push(o)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ve.SUBSCRIPTION_FILTER)&&(this.directiveDefinitionByDirectiveName.set(ve.SUBSCRIPTION_FILTER,zi.SUBSCRIPTION_FILTER_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(zi.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_VALUE_DEFINITION));for(let s of this.customDirectiveDefinitions.values())n.push(s);this.schemaDefinition.operationTypes.size>0&&n.push((0,Wr.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));for(let[s,o]of this.parentDefinitionDataByTypeName)switch(o.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(o.enumValueDataByValueName.size<1){this.errors.push((0,De.noDefinedEnumValuesError)(s));break}n.push((0,Wr.getEnumNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(o.inputValueDataByValueName.size<1){this.errors.push((0,De.noInputValueDefinitionsError)(s));break}n.push((0,Wr.getInputObjectNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let u=this.entityDataByTypeName.has(s),l=this.operationTypeNodeByTypeName.get(s),d=o.kind===Pe.Kind.OBJECT_TYPE_DEFINITION;if(l&&(o.fieldDataByFieldName.delete(ve.SERVICE_FIELD),o.fieldDataByFieldName.delete(ve.ENTITIES_FIELD)),this.parentsWithChildArguments.has(s)||!d){let b=[];for(let[C,j]of o.fieldDataByFieldName)!d&&j.isExternalBySubgraphName.get(this.subgraphName)&&b.push(C),this.validateArguments(j,`${s}.${C}`);b.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,De.externalInterfaceFieldsError)(s,b)):this.warnings.push((0,Eq.externalInterfaceFieldsWarning)(this.subgraphName,s,b)))}let p=o.kind===Pe.Kind.OBJECT_TYPE_DEFINITION&&o.renamedTypeName||s,y={fieldNames:new Set,isRootNode:u,typeName:p},N=this.entityInterfaceDataByTypeName.get(s);N&&(N.fieldDatas=(0,nt.fieldDatasToSimpleFieldDatas)(o.fieldDataByFieldName.values()),N.concreteTypeNames=(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,s,()=>new Set),y.isInterfaceObject=N.isInterfaceObject,y.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let I=this.eventsConfigurations.get(p);I&&(y.events=I),this.configurationDataByParentTypeName.set(p,y),(0,iI.addFieldNamesToConfigurationData)(o.fieldDataByFieldName,y),this.validateInterfaceImplementations(o),n.push((0,Wr.getCompositeOutputNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),o.fieldDataByFieldName.size<1&&!(0,iI.isNodeQuery)(s,l)&&this.errors.push((0,De.noFieldDefinitionsError)((0,nt.kindToTypeString)(o.kind),s));break;case Pe.Kind.SCALAR_TYPE_DEFINITION:if(o.extensionType===Gl.ExtensionType.REAL){this.errors.push((0,De.noBaseScalarDefinitionError)(s));break}n.push((0,Wr.getScalarNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName));break;case Pe.Kind.UNION_TYPE_DEFINITION:n.push((0,Wr.getUnionNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName)),this.validateUnionMembers(o);break;default:throw(0,De.unexpectedKindFatalError)(s)}for(let s of Object.values(Pe.OperationTypeNode)){let o=this.schemaDefinition.operationTypes.get(s),u=(0,nt.getOrThrowError)(Hi.operationTypeNodeToDefaultType,s,ve.OPERATION_TO_DEFAULT),l=o?(0,Wa.getTypeNodeNamedTypeName)(o.type):u;if(l!==u&&this.parentDefinitionDataByTypeName.has(u)){this.errors.push((0,De.invalidRootTypeDefinitionError)(s,l,u));continue}let d=this.parentDefinitionDataByTypeName.get(l);if(o){if(!d){this.errors.push((0,De.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,s)}if(!d)continue;let p=this.configurationDataByParentTypeName.get(u);if(p&&(p.isRootNode=!0,p.typeName=u),d.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.operationDefinitionError)(l,s,d.kind));continue}for(let y of d.fieldDataByFieldName.values()){let N=(0,Wa.getTypeNodeNamedTypeName)(y.node.type);!zi.BASE_SCALARS.has(N)&&!this.parentDefinitionDataByTypeName.has(N)&&this.errors.push((0,De.undefinedTypeError)(N))}}for(let s of this.referencedTypeNames)!this.parentDefinitionDataByTypeName.has(s)&&!this.entityDataByTypeName.has(s)&&this.errors.push((0,De.undefinedTypeError)(s));this.validateAndAddKeysToConfiguration();for(let[s,o]of this.fieldSetDataByTypeName){let u=this.parentDefinitionDataByTypeName.get(s);if(!u||u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(s));continue}(0,iI.validateAndAddConditionalFieldSetsToConfiguration)(this,u,o)}let r=new Map;for(let s of this.directiveDefinitionByDirectiveName.values()){let o=(0,Hi.extractExecutableDirectiveLocations)(s.locations,new Set);o.size<1||(0,Wr.addPersistedDirectiveDefinitionDataByNode)(r,s,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,this.subgraphName)}if(this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let i={kind:Pe.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoordinates,configurationDataByTypeName:this.configurationDataByParentTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Pe.print)(i),schema:(0,Hle.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0})},warnings:this.warnings}}};Ql.NormalizationFactory=lT;function Zle(e){let t=new Map,n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Set,l=new Map,d=new Set,p=new Set,y=[],N=new Set,I=[],b=[];for(let Q of e)Q.name&&(0,Wle.recordSubgraphName)(Q.name,d,p);let C=new BR.Graph;for(let Q=0;Q0&&I.push(...ke),pe){b.push((0,De.subgraphValidationError)(se,pe));continue}if(!ye){b.push((0,De.subgraphValidationError)(se,[De.subgraphValidationFailureError]));continue}l.set(se,ye.parentDefinitionDataByTypeName);for(let ht of ye.authorizationDataByParentTypeName.values())(0,nt.upsertAuthorizationData)(t,ht,N);for(let[ht,xt]of ye.concreteTypeNamesByAbstractTypeName){let B=n.get(ht);if(!B){n.set(ht,new Set(xt));continue}(0,nt.addIterableValuesToSet)(xt,B)}for(let ht of ye.entityDataByTypeName.values())(0,nt.upsertEntityData)(r,ht);if(re.name&&i.set(se,{conditionalFieldDataByCoordinates:ye.conditionalFieldDataByCoordinates,configurationDataByTypeName:ye.configurationDataByTypeName,definitions:ye.subgraphAST,entityInterfaces:ye.entityInterfaces,isVersionTwo:ye.isVersionTwo,keyFieldNamesByParentTypeName:ye.keyFieldNamesByParentTypeName,name:se,operationTypes:ye.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ye.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ye.persistedDirectiveDefinitionDataByDirectiveName,schema:ye.schema,url:re.url}),!(ye.overridesByTargetSubgraphName.size<1))for(let[ht,xt]of ye.overridesByTargetSubgraphName){let B=d.has(ht);for(let[he,rt]of xt){let Ct=ye.originalTypeNameByRenamedTypeName.get(he)||he;if(!B)I.push((0,Eq.invalidOverrideTargetSubgraphNameWarning)(ht,Ct,[...rt]));else{let sn=(0,nt.getValueOrDefault)(s,ht,()=>new Map),wn=(0,nt.getValueOrDefault)(sn,he,()=>new Set(rt));(0,nt.addIterableValuesToSet)(rt,wn)}for(let sn of rt){let wn=`${Ct}.${sn}`,vn=o.get(wn);if(!vn){o.set(wn,[se]);continue}vn.push(se),u.add(wn)}}}}let j=[];if(N.size>0&&j.push((0,De.orScopesLimitError)(nt.maxOrScopes,[...N])),(y.length>0||p.size>0)&&j.push((0,De.invalidSubgraphNamesError)([...p],y)),u.size>0){let Q=[];for(let re of u){let se=(0,nt.getOrThrowError)(o,re,"overrideSourceSubgraphNamesByFieldPath");Q.push((0,De.duplicateOverriddenFieldErrorMessage)(re,se))}j.push((0,De.duplicateOverriddenFieldsError)(Q))}if(j.push(...b),j.length>0)return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:j,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I};for(let[Q,re]of s){let se=(0,nt.getOrThrowError)(i,Q,"internalSubgraphBySubgraphName");se.overriddenFieldNamesByParentTypeName=re;for(let[pe,ye]of re){let ke=se.configurationDataByTypeName.get(pe);ke&&((0,nt.subtractSourceSetFromTargetSet)(ye,ke.fieldNames),ke.fieldNames.size<1&&se.configurationDataByTypeName.delete(pe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I}}});var sI=V(dT=>{"use strict";m();T();h();Object.defineProperty(dT,"__esModule",{value:!0});dT.getLeastRestrictiveMergedTypeNode=tde;dT.getMostRestrictiveMergedTypeNode=nde;dT.renameNamedTypeName=rde;var Yl=(we(),xe(Me)),vq=co(),ede=Ca(),Iq=Vi(),_q=$m(),Jl;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Jl||(Jl={}));function bq(e,t,n,r,i){t=(0,ede.getMutableTypeNode)(t,n,i);let s={kind:e.kind},o=Jl.NONE,u=s;for(let l=0;l<_q.MAXIMUM_TYPE_NESTING;l++){if(e.kind===t.kind)switch(e.kind){case Yl.Kind.NAMED_TYPE:let d=t.name.value;return e.name.value!==d?{typeErrors:[e.name.value,d]}:(u.kind=e.kind,u.name=e.name,{typeNode:s});case Yl.Kind.LIST_TYPE:u.kind=e.kind,u.type={kind:e.type.kind},u=u.type,e=e.type,t=t.type;continue;case Yl.Kind.NON_NULL_TYPE:u.kind=e.kind,u.type={kind:e.type.kind},u=u.type,e=e.type,t=t.type;continue}if(e.kind===Yl.Kind.NON_NULL_TYPE){if(o===Jl.OTHER)return{typeErrors:[e.kind,t.kind]};o=Jl.CURRENT,r&&(u.kind=e.kind,u.type={kind:e.type.kind},u=u.type),e=e.type;continue}if(t.kind===Yl.Kind.NON_NULL_TYPE){if(o===Jl.CURRENT)return{typeErrors:[t.kind,e.kind]};o=Jl.OTHER,r&&(u.kind=t.kind,u.type={kind:t.type.kind},u=u.type),t=t.type;continue}return{typeErrors:[e.kind,t.kind]}}return i.push((0,vq.maximumTypeNestingExceededError)(n)),{typeNode:e}}function tde(e,t,n,r){return bq(e,t,n,!1,r)}function nde(e,t,n,r){return bq(e,t,n,!0,r)}function rde(e,t,n){let r=e.type;for(let i=0;i<_q.MAXIMUM_TYPE_NESTING;i++){if(r.kind===Yl.Kind.NAMED_TYPE){e.namedTypeName=t,r.name=(0,Iq.stringToNameNode)(t);return}r=r.type}e.type={kind:Yl.Kind.NAMED_TYPE,name:(0,Iq.stringToNameNode)(t)},n.push((0,vq.maximumTypeNestingExceededError)(`${e.originalParentTypeName}.${e.name}`))}});var qR=V($R=>{"use strict";m();T();h();Object.defineProperty($R,"__esModule",{value:!0});$R.renameRootTypes=ode;var ide=(we(),xe(Me)),wc=bi(),zl=ds(),jR=Vi(),sde=sI();function ode(e,t){let n,r=!1,i;(0,ide.visit)(t.definitions,{FieldDefinition:{enter(s){let o=s.name.value;if(r&&(o===wc.SERVICE_FIELD||o===wc.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(o),!1;let u=n.name,l=(0,zl.getOrThrowError)(n.fieldDataByFieldName,o,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,d,wc.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,sde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(s){let o=s.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,wc.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,u,wc.OPERATION_TO_DEFAULT):o;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,wc.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(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,u,wc.OPERATION_TO_DEFAULT):o;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,wc.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 Oq=V((Yp,pT)=>{"use strict";m();T();h();(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",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",d=1,p=2,y=4,N=1,I=2,b=1,C=2,j=4,Q=8,re=16,se=32,pe=64,ye=128,ke=256,ht=512,xt=30,B="...",he=800,rt=16,Ct=1,sn=2,wn=3,vn=1/0,_n=9007199254740991,mi=17976931348623157e292,Xr=NaN,Pn=4294967295,on=Pn-1,$n=Pn>>>1,U=[["ary",ye],["bind",b],["bindKey",C],["curry",Q],["curryRight",re],["flip",ht],["partial",se],["partialRight",pe],["rearg",ke]],ae="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",je="[object Boolean]",G="[object Date]",ee="[object DOMException]",Fe="[object Error]",He="[object Function]",jt="[object GeneratorFunction]",Qe="[object Map]",Ht="[object Number]",pa="[object Null]",Li="[object Object]",fa="[object Promise]",rd="[object Proxy]",Do="[object RegExp]",Gr="[object Set]",Wi="[object String]",cn="[object Symbol]",Qr="[object Undefined]",kc="[object WeakMap]",Ao="[object WeakSet]",xc="[object ArrayBuffer]",w="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",x="[object Int8Array]",J="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",At="[object Uint8ClampedArray]",kn="[object Uint16Array]",Dn="[object Uint32Array]",qn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,kK=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ow=/&(?:amp|lt|gt|quot|#39);/g,Sw=/[&<>"']/g,xK=RegExp(Ow.source),CK=RegExp(Sw.source),UK=/<%-([\s\S]+?)%>/g,MK=/<%([\s\S]+?)%>/g,Dw=/<%=([\s\S]+?)%>/g,BK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VK=/^\w*$/,jK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CI=/[\\^$.*+?()[\]{}|]/g,$K=RegExp(CI.source),UI=/^\s+/,qK=/\s/,KK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,GK=/\{\n\/\* \[wrapped with (.+)\] \*/,QK=/,? & /,YK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,JK=/[()=,{}\[\]\/\s]/,zK=/\\(\\)?/g,HK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Aw=/\w*$/,WK=/^[-+]0x[0-9a-f]+$/i,XK=/^0b[01]+$/i,ZK=/^\[object .+?Constructor\]$/,eG=/^0o[0-7]+$/i,tG=/^(?:0|[1-9]\d*)$/,nG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,FT=/($^)/,rG=/['\n\r\u2028\u2029\\]/g,LT="\\ud800-\\udfff",iG="\\u0300-\\u036f",sG="\\ufe20-\\ufe2f",oG="\\u20d0-\\u20ff",Rw=iG+sG+oG,ww="\\u2700-\\u27bf",Fw="a-z\\xdf-\\xf6\\xf8-\\xff",aG="\\xac\\xb1\\xd7\\xf7",uG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cG="\\u2000-\\u206f",lG=" \\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",Lw="A-Z\\xc0-\\xd6\\xd8-\\xde",Pw="\\ufe0e\\ufe0f",kw=aG+uG+cG+lG,MI="['\u2019]",dG="["+LT+"]",xw="["+kw+"]",PT="["+Rw+"]",Cw="\\d+",pG="["+ww+"]",Uw="["+Fw+"]",Mw="[^"+LT+kw+Cw+ww+Fw+Lw+"]",BI="\\ud83c[\\udffb-\\udfff]",fG="(?:"+PT+"|"+BI+")",Bw="[^"+LT+"]",VI="(?:\\ud83c[\\udde6-\\uddff]){2}",jI="[\\ud800-\\udbff][\\udc00-\\udfff]",id="["+Lw+"]",Vw="\\u200d",jw="(?:"+Uw+"|"+Mw+")",mG="(?:"+id+"|"+Mw+")",$w="(?:"+MI+"(?:d|ll|m|re|s|t|ve))?",qw="(?:"+MI+"(?:D|LL|M|RE|S|T|VE))?",Kw=fG+"?",Gw="["+Pw+"]?",hG="(?:"+Vw+"(?:"+[Bw,VI,jI].join("|")+")"+Gw+Kw+")*",TG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qw=Gw+Kw+hG,NG="(?:"+[pG,VI,jI].join("|")+")"+Qw,EG="(?:"+[Bw+PT+"?",PT,VI,jI,dG].join("|")+")",gG=RegExp(MI,"g"),IG=RegExp(PT,"g"),$I=RegExp(BI+"(?="+BI+")|"+EG+Qw,"g"),vG=RegExp([id+"?"+Uw+"+"+$w+"(?="+[xw,id,"$"].join("|")+")",mG+"+"+qw+"(?="+[xw,id+jw,"$"].join("|")+")",id+"?"+jw+"+"+$w,id+"+"+qw,yG,TG,Cw,NG].join("|"),"g"),_G=RegExp("["+Vw+LT+Rw+Pw+"]"),bG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,OG=["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"],SG=-1,Vn={};Vn[g]=Vn[v]=Vn[x]=Vn[J]=Vn[ie]=Vn[fe]=Vn[At]=Vn[kn]=Vn[Dn]=!0,Vn[ae]=Vn[te]=Vn[xc]=Vn[je]=Vn[w]=Vn[G]=Vn[Fe]=Vn[He]=Vn[Qe]=Vn[Ht]=Vn[Li]=Vn[Do]=Vn[Gr]=Vn[Wi]=Vn[kc]=!1;var xn={};xn[ae]=xn[te]=xn[xc]=xn[w]=xn[je]=xn[G]=xn[g]=xn[v]=xn[x]=xn[J]=xn[ie]=xn[Qe]=xn[Ht]=xn[Li]=xn[Do]=xn[Gr]=xn[Wi]=xn[cn]=xn[fe]=xn[At]=xn[kn]=xn[Dn]=!0,xn[Fe]=xn[He]=xn[kc]=!1;var DG={\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"},AG={"&":"&","<":"<",">":">",'"':""","'":"'"},RG={"&":"&","<":"<",">":">",""":'"',"'":"'"},wG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},FG=parseFloat,LG=parseInt,Yw=typeof global=="object"&&global&&global.Object===Object&&global,PG=typeof self=="object"&&self&&self.Object===Object&&self,Cr=Yw||PG||Function("return this")(),qI=typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,Cc=qI&&typeof pT=="object"&&pT&&!pT.nodeType&&pT,Jw=Cc&&Cc.exports===qI,KI=Jw&&Yw.process,Ns=function(){try{var H=Cc&&Cc.require&&Cc.require("util").types;return H||KI&&KI.binding&&KI.binding("util")}catch(de){}}(),zw=Ns&&Ns.isArrayBuffer,Hw=Ns&&Ns.isDate,Ww=Ns&&Ns.isMap,Xw=Ns&&Ns.isRegExp,Zw=Ns&&Ns.isSet,eF=Ns&&Ns.isTypedArray;function Xi(H,de,oe){switch(oe.length){case 0:return H.call(de);case 1:return H.call(de,oe[0]);case 2:return H.call(de,oe[0],oe[1]);case 3:return H.call(de,oe[0],oe[1],oe[2])}return H.apply(de,oe)}function kG(H,de,oe,Ce){for(var vt=-1,pn=H==null?0:H.length;++vt-1}function GI(H,de,oe){for(var Ce=-1,vt=H==null?0:H.length;++Ce-1;);return oe}function uF(H,de){for(var oe=H.length;oe--&&sd(de,H[oe],0)>-1;);return oe}function qG(H,de){for(var oe=H.length,Ce=0;oe--;)H[oe]===de&&++Ce;return Ce}var KG=zI(DG),GG=zI(AG);function QG(H){return"\\"+wG[H]}function YG(H,de){return H==null?e:H[de]}function od(H){return _G.test(H)}function JG(H){return bG.test(H)}function zG(H){for(var de,oe=[];!(de=H.next()).done;)oe.push(de.value);return oe}function ZI(H){var de=-1,oe=Array(H.size);return H.forEach(function(Ce,vt){oe[++de]=[vt,Ce]}),oe}function cF(H,de){return function(oe){return H(de(oe))}}function Qu(H,de){for(var oe=-1,Ce=H.length,vt=0,pn=[];++oe-1}function CQ(a,c){var f=this.__data__,E=WT(f,a);return E<0?(++this.size,f.push([a,c])):f[E][1]=c,this}ma.prototype.clear=LQ,ma.prototype.delete=PQ,ma.prototype.get=kQ,ma.prototype.has=xQ,ma.prototype.set=CQ;function ha(a){var c=-1,f=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function vs(a,c,f,E,_,L){var M,q=c&d,X=c&p,Te=c&y;if(f&&(M=_?f(a,E,_,L):f(a)),M!==e)return M;if(!Wn(a))return a;var Ne=Ot(a);if(Ne){if(M=V2(a),!q)return Pi(a,M)}else{var Ie=ei(a),Re=Ie==He||Ie==jt;if(Zu(a))return GF(a,q);if(Ie==Li||Ie==ae||Re&&!_){if(M=X||Re?{}:lL(a),!q)return X?R2(a,XQ(M,a)):A2(a,IF(M,a))}else{if(!xn[Ie])return _?a:{};M=j2(a,Ie,q)}}L||(L=new eo);var Ye=L.get(a);if(Ye)return Ye;L.set(a,M),BL(a)?a.forEach(function(dt){M.add(vs(dt,c,f,dt,a,L))}):UL(a)&&a.forEach(function(dt,$t){M.set($t,vs(dt,c,f,$t,a,L))});var lt=Te?X?Ov:bv:X?xi:Ur,Ut=Ne?e:lt(a);return Es(Ut||a,function(dt,$t){Ut&&($t=dt,dt=a[$t]),cf(M,$t,vs(dt,c,f,$t,a,L))}),M}function ZQ(a){var c=Ur(a);return function(f){return vF(f,a,c)}}function vF(a,c,f){var E=f.length;if(a==null)return!E;for(a=Fn(a);E--;){var _=f[E],L=c[_],M=a[_];if(M===e&&!(_ in a)||!L(M))return!1}return!0}function _F(a,c,f){if(typeof a!="function")throw new gs(i);return Tf(function(){a.apply(e,f)},c)}function lf(a,c,f,E){var _=-1,L=kT,M=!0,q=a.length,X=[],Te=c.length;if(!q)return X;f&&(c=Kn(c,Zi(f))),E?(L=GI,M=!1):c.length>=n&&(L=nf,M=!1,c=new Bc(c));e:for(;++__?0:_+f),E=E===e||E>_?_:Lt(E),E<0&&(E+=_),E=f>E?0:jL(E);f0&&f(q)?c>1?Yr(q,c-1,f,E,_):Gu(_,q):E||(_[_.length]=q)}return _}var ov=WF(),SF=WF(!0);function Ro(a,c){return a&&ov(a,c,Ur)}function av(a,c){return a&&SF(a,c,Ur)}function ZT(a,c){return Ku(c,function(f){return ga(a[f])})}function jc(a,c){c=Wu(c,a);for(var f=0,E=c.length;a!=null&&fc}function n2(a,c){return a!=null&&On.call(a,c)}function r2(a,c){return a!=null&&c in Fn(a)}function i2(a,c,f){return a>=Zr(c,f)&&a=120&&Ne.length>=120)?new Bc(M&&Ne):e}Ne=a[0];var Ie=-1,Re=q[0];e:for(;++Ie<_&&Te.length-1;)q!==a&&KT.call(q,X,1),KT.call(a,X,1);return a}function UF(a,c){for(var f=a?c.length:0,E=f-1;f--;){var _=c[f];if(f==E||_!==L){var L=_;Ea(_)?KT.call(a,_,1):yv(a,_)}}return a}function mv(a,c){return a+YT(yF()*(c-a+1))}function y2(a,c,f,E){for(var _=-1,L=Ar(QT((c-a)/(f||1)),0),M=oe(L);L--;)M[E?L:++_]=a,a+=f;return M}function hv(a,c){var f="";if(!a||c<1||c>_n)return f;do c%2&&(f+=a),c=YT(c/2),c&&(a+=a);while(c);return f}function Bt(a,c){return Lv(fL(a,c,Ci),a+"")}function N2(a){return gF(Td(a))}function E2(a,c){var f=Td(a);return ly(f,Vc(c,0,f.length))}function ff(a,c,f,E){if(!Wn(a))return a;c=Wu(c,a);for(var _=-1,L=c.length,M=L-1,q=a;q!=null&&++__?0:_+c),f=f>_?_:f,f<0&&(f+=_),_=c>f?0:f-c>>>0,c>>>=0;for(var L=oe(_);++E<_;)L[E]=a[E+c];return L}function v2(a,c){var f;return zu(a,function(E,_,L){return f=c(E,_,L),!f}),!!f}function ty(a,c,f){var E=0,_=a==null?E:a.length;if(typeof c=="number"&&c===c&&_<=$n){for(;E<_;){var L=E+_>>>1,M=a[L];M!==null&&!ts(M)&&(f?M<=c:M=n){var Te=c?null:P2(a);if(Te)return CT(Te);M=!1,_=nf,X=new Bc}else X=c?[]:q;e:for(;++E=E?a:_s(a,c,f)}var KF=lQ||function(a){return Cr.clearTimeout(a)};function GF(a,c){if(c)return a.slice();var f=a.length,E=pF?pF(f):new a.constructor(f);return a.copy(E),E}function Iv(a){var c=new a.constructor(a.byteLength);return new $T(c).set(new $T(a)),c}function b2(a,c){var f=c?Iv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function O2(a){var c=new a.constructor(a.source,Aw.exec(a));return c.lastIndex=a.lastIndex,c}function S2(a){return uf?Fn(uf.call(a)):{}}function QF(a,c){var f=c?Iv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function YF(a,c){if(a!==c){var f=a!==e,E=a===null,_=a===a,L=ts(a),M=c!==e,q=c===null,X=c===c,Te=ts(c);if(!q&&!Te&&!L&&a>c||L&&M&&X&&!q&&!Te||E&&M&&X||!f&&X||!_)return 1;if(!E&&!L&&!Te&&a=q)return X;var Te=f[E];return X*(Te=="desc"?-1:1)}}return a.index-c.index}function JF(a,c,f,E){for(var _=-1,L=a.length,M=f.length,q=-1,X=c.length,Te=Ar(L-M,0),Ne=oe(X+Te),Ie=!E;++q1?f[_-1]:e,M=_>2?f[2]:e;for(L=a.length>3&&typeof L=="function"?(_--,L):e,M&&Ti(f[0],f[1],M)&&(L=_<3?e:L,_=1),c=Fn(c);++E<_;){var q=f[E];q&&a(c,q,E,L)}return c})}function HF(a,c){return function(f,E){if(f==null)return f;if(!ki(f))return a(f,E);for(var _=f.length,L=c?_:-1,M=Fn(f);(c?L--:++L<_)&&E(M[L],L,M)!==!1;);return f}}function WF(a){return function(c,f,E){for(var _=-1,L=Fn(c),M=E(c),q=M.length;q--;){var X=M[a?q:++_];if(f(L[X],X,L)===!1)break}return c}}function w2(a,c,f){var E=c&b,_=mf(a);function L(){var M=this&&this!==Cr&&this instanceof L?_:a;return M.apply(E?f:this,arguments)}return L}function XF(a){return function(c){c=yn(c);var f=od(c)?Zs(c):e,E=f?f[0]:c.charAt(0),_=f?Xu(f,1).join(""):c.slice(1);return E[a]()+_}}function fd(a){return function(c){return QI(HL(zL(c).replace(gG,"")),a,"")}}function mf(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var f=dd(a.prototype),E=a.apply(f,c);return Wn(E)?E:f}}function F2(a,c,f){var E=mf(a);function _(){for(var L=arguments.length,M=oe(L),q=L,X=md(_);q--;)M[q]=arguments[q];var Te=L<3&&M[0]!==X&&M[L-1]!==X?[]:Qu(M,X);if(L-=Te.length,L-1?_[L?c[M]:M]:e}}function eL(a){return Na(function(c){var f=c.length,E=f,_=Is.prototype.thru;for(a&&c.reverse();E--;){var L=c[E];if(typeof L!="function")throw new gs(i);if(_&&!M&&uy(L)=="wrapper")var M=new Is([],!0)}for(E=M?E:f;++E1&&Wt.reverse(),Ne&&X<$t&&(Wt.length=X),this&&this!==Cr&&this instanceof dt&&(va=Ut||mf(va)),va.apply(no,Wt)}return dt}function tL(a,c){return function(f,E){return s2(f,a,c(E),{})}}function sy(a,c){return function(f,E){var _;if(f===e&&E===e)return c;if(f!==e&&(_=f),E!==e){if(_===e)return E;typeof f=="string"||typeof E=="string"?(f=es(f),E=es(E)):(f=VF(f),E=VF(E)),_=a(f,E)}return _}}function vv(a){return Na(function(c){return c=Kn(c,Zi(ct())),Bt(function(f){var E=this;return a(c,function(_){return Xi(_,E,f)})})})}function oy(a,c){c=c===e?" ":es(c);var f=c.length;if(f<2)return f?hv(c,a):c;var E=hv(c,QT(a/ad(c)));return od(c)?Xu(Zs(E),0,a).join(""):E.slice(0,a)}function L2(a,c,f,E){var _=c&b,L=mf(a);function M(){for(var q=-1,X=arguments.length,Te=-1,Ne=E.length,Ie=oe(Ne+X),Re=this&&this!==Cr&&this instanceof M?L:a;++Teq))return!1;var Te=L.get(a),Ne=L.get(c);if(Te&&Ne)return Te==c&&Ne==a;var Ie=-1,Re=!0,Ye=f&I?new Bc:e;for(L.set(a,c),L.set(c,a);++Ie1?"& ":"")+c[E],c=c.join(f>2?", ":" "),a.replace(KK,`{ +`+r;return{outputEnd:r,outputStart:n,pathNodes:t}}function yq({outputEnd:e,outputStart:t,pathNodes:n},r){return t+Kl.LITERAL_SPACE.repeat(n.length+1)+Yle(r,n.length)+e}function Jle(e,t){return t?e?`${t}${e}`:t:e}function zle({entityAncestorData:e,errors:t,nodeResolutionDataByFieldPath:n,pathFromRoot:r,rootFieldData:i,unresolvableFieldPaths:s}){let o=[];for(let u of s){let l=(0,fq.getOrThrowError)(n,u,"nodeResolutionDataByFieldPath"),d=new Map;for(let[N,I]of l.fieldDataByFieldName)l.resolvedFieldNames.has(N)||d.set(N,I);let p=Jle(u,r),y=Tq(p);for(let[N,I]of d)o.push({fieldName:N,selectionSet:yq(y,I),subgraphNames:I.subgraphNames,typeName:l.typeName})}for(let u of o)t.push((0,mq.unresolvablePathError)(u,hq({rootFieldData:i,unresolvableFieldData:u,entityAncestorData:e})))}});var UR=V(rI=>{"use strict";m();T();h();Object.defineProperty(rI,"__esModule",{value:!0});rI.Graph=void 0;var Fi=ds(),Nq=bi(),Gp=LR(),Qp=kR(),xR=class{constructor(){A(this,"edgeId",-1);A(this,"entityDataNodes",new Map);A(this,"entityNodeNamesBySharedFieldPath",new Map);A(this,"nodeByNodeName",new Map);A(this,"nodesByTypeName",new Map);A(this,"rootNodeByRootTypeName",new Map);A(this,"subgraphName",Nq.N_A);A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);A(this,"nodeResolutionDataByFieldPath",new Map);A(this,"unresolvableFieldPaths",new Set);A(this,"failureResultByEntityNodeName",new Map);A(this,"walkerIndex",-1)}getRootNode(t){return(0,Fi.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gp.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 s=new Gp.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,s),(0,Fi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(s),s}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new Gp.Edge(this.getNextEdgeId(),n,r);return(0,Fi.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(u),u}let s=t,o=new Gp.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return s.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gp.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(Nq.ROOT_TYPE_NAMES.has(t)){let s=this.getRootNode(t);s.removeInaccessibleEdges(n),s.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let s of i)if(s.fieldDataByFieldName=n,s.handleInaccessibleEdges(),s.isLeaf=!1,!!r){s.hasEntitySiblings=!0;for(let o of s.satisfiedFieldSets){let u=r.targetSubgraphNamesByFieldSet.get(o);for(let l of u||[]){if(l===s.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${s.typeName}`);d&&s.entityEdges.push(new Gp.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,s]of t){let o=s.size>1,u,l=o?new Map:void 0,d=new Set,p=new Map;for(let y of s){let N=this.nodeByNodeName.get(y);if(!N)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let Q=this.failureResultByEntityNodeName.get(y);if(!Q){u=void 0;break}if(!o)return Q}let b=this.nodesByTypeName.get(N.typeName)||[],C=(0,Fi.getValueOrDefault)(r,y,()=>o?p:new Map),j=new CR({interSubgraphNodes:b,entityNodeNamesBySharedFieldPath:C,originNode:N,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:d});if(j.visitEntityNode(N),j.unresolvableFieldPaths.size>0){if(o&&d.size<1){u=void 0;break}u={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,Fi.getOrThrowError)(this.entityDataNodes,N.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:N.subgraphName,typeName:N.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:N.typeName,unresolvableFieldPaths:o?d:j.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,u);continue}u=void 0;break}if(u)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(u.nodeName,l),u}if(r.size>0)for(let[i,s]of r){let o=this.validateEntities(s,n);if(!o.success){for(let[u,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(u);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 u of i){if(u.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(u,`${n.typeName.toLowerCase()}`)}let s=(0,Fi.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,Qp.newRootFieldData)(n.typeName,r,s.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,Qp.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let u=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);u.success||this.generateEntityResolvabilityErrors(u,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,Fi.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,Fi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,Fi.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,s]of t.headToTailEdges)this.visitEdge(s,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,Fi.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),s="";for(let o of t.parentFieldPathForEntityReference)s=o+s;(0,Qp.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:s,entityAncestorData:t.entityAncestorData})}};rI.Graph=xR;var CR=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:s,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:u}){A(this,"entityNodeNamesBySharedFieldPath");A(this,"interSubgraphNodes");A(this,"originNode");A(this,"resolvableFieldNamesByRelativeFieldPath");A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");A(this,"unresolvableFieldPaths",new Set);A(this,"unresolvableSharedFieldPaths");A(this,"walkerIndex");A(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,Fi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=s,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=u}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,Fi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,Fi.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,Fi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,Fi.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new Qp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[s,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(s),i==null||i.add(s));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 VR=V(Ql=>{"use strict";m();T();h();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.NormalizationFactory=void 0;Ql.normalizeSubgraphFromString=Xle;Ql.normalizeSubgraph=gq;Ql.batchNormalize=Zle;var Pe=(Fe(),xe(Me)),Hi=Vi(),iI=jl(),zi=_c(),nt=ds(),De=co(),ve=bi(),Hle=pq(),Ha=Hg(),Wle=SR(),Eq=eI(),MR=DR(),Gl=Vh(),Wr=jp(),Wa=Ca(),BR=UR();function Xle(e){let{error:t,documentNode:n}=(0,Hi.safeParse)(e);return t||!n?{errors:[(0,De.subgraphInvalidSyntaxError)(t)],warnings:[]}:new lT(new BR.Graph).normalize(n)}function gq(e,t,n){return new lT(n||new BR.Graph,t).normalize(e)}var lT=class{constructor(t,n){A(this,"argumentName","");A(this,"authorizationDataByParentTypeName",new Map);A(this,"childName","");A(this,"concreteTypeNamesByAbstractTypeName",new Map);A(this,"conditionalFieldDataByCoordinates",new Map);A(this,"configurationDataByParentTypeName",new Map);A(this,"customDirectiveDefinitions",new Map);A(this,"directiveDefinitionByDirectiveName",new Map);A(this,"edfsDirectiveReferences",new Set);A(this,"errors",[]);A(this,"entityDataByTypeName",new Map);A(this,"entityInterfaceDataByTypeName",new Map);A(this,"eventsConfigurations",new Map);A(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);A(this,"internalGraph");A(this,"isCurrentParentExtension",!1);A(this,"isSubgraphEventDrivenGraph",!1);A(this,"isSubgraphVersionTwo",!1);A(this,"fieldSetDataByTypeName",new Map);A(this,"heirFieldAuthorizationDataByTypeName",new Map);A(this,"handledRepeatedDirectivesByHostPath",new Map);A(this,"lastParentNodeKind",Pe.Kind.NULL);A(this,"lastChildNodeKind",Pe.Kind.NULL);A(this,"leafTypeNamesWithAuthorizationDirectives",new Set);A(this,"keyFieldSetDataByTypeName",new Map);A(this,"keyFieldNamesByParentTypeName",new Map);A(this,"operationTypeNodeByTypeName",new Map);A(this,"originalTypeNameByRenamedTypeName",new Map);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"originalParentTypeName","");A(this,"parentsWithChildArguments",new Set);A(this,"overridesByTargetSubgraphName",new Map);A(this,"invalidOrScopesHostPaths",new Set);A(this,"schemaDefinition");A(this,"referencedDirectiveNames",new Set);A(this,"referencedTypeNames",new Set);A(this,"renamedParentTypeName","");A(this,"subgraphName");A(this,"warnings",[]);for(let[r,i]of zi.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ve.N_A,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaDefinition={directivesByDirectiveName:new Map,kind:Pe.Kind.SCHEMA_DEFINITION,typeName:ve.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if(zi.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,De.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Pe.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,nt.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,s]of t.argumentDataByArgumentName){let o=(0,Wa.getTypeNodeNamedTypeName)(s.type),{hasUnhandledError:u,typeString:l}=this.validateInputNamedType(o);u&&r.push({argumentName:i,namedType:o,typeString:l,typeName:(0,Ha.printTypeNode)(s.type)})}r.length>0&&this.errors.push((0,De.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,nt.resetAuthorizationData)(r),!t.directives)return r;let i=!1,s=[];for(let d of t.directives){let p=d.name.value;if(p===ve.AUTHENTICATED){if(i)return;i=!0;continue}if(p===ve.REQUIRES_SCOPES){if(s.length>0)return;s.push(d)}}if(!i&&s.length<1||((0,nt.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,nt.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,nt.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,s.length!==1))return r;let o=s[0];if(!o.arguments||o.arguments.length!==1)return;let u=o.arguments[0];if(u.name.value!==ve.SCOPES||u.value.kind!==Pe.Kind.LIST)return;let l=u.value.values;if(l.length<1)return r;if(l.length>nt.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let d of l){if(d.kind!==Pe.Kind.LIST)return;let p=new Set;for(let y of d.values){if(y.kind!==Pe.Kind.STRING)return;p.add(y.value)}p.size&&r.requiredScopes.push(p)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let l of t.directives){let d=(0,Wr.getDirectiveValidationErrors)(l,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),p=l.name.value;if(d.length>0){this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.EXTENDS)continue;if(p===ve.OVERRIDE){this.handleOverrideDeclaration(l,r,d),d.length>0&&this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.AUTHENTICATED||p===ve.REQUIRES_SCOPES){i.push(l);continue}let y=n.get(p);if(y){y.push(l);continue}n.set(p,[l])}if(i.length<1)return n;let s=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==Pe.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(s);let o=(0,nt.getValueOrDefault)(this.authorizationDataByParentTypeName,s,()=>(0,nt.newAuthorizationData)(s)),u=(0,nt.getAuthorizationDataToUpdate)(o,t,this.childName);for(let l of i){if(l.name.value===ve.AUTHENTICATED){u.requiresAuthentication=!0;continue}let p=l.arguments[0].value.values;if(p.length>nt.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let y of p){let N=new Set;for(let I of y.values)N.add(I.value);N.size&&u.requiredScopes.push(N)}}return n}isTypeNameRootType(t){return ve.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}extractDirectives(t,n,r,i=!1){if(!t.directives)return n;let s=new Set;for(let o of t.directives){let u=(0,Wr.getDirectiveValidationErrors)(o,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r,i),l=o.name.value;if(u.length>0){this.errors.push((0,De.invalidDirectiveError)(l,r,u));continue}if(ve.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===ve.KEY){let p=o.arguments[0].value.value;if(s.has(p))continue;s.add(p)}let d=n.get(l);d?d.push(o):n.set(l,[o])}return n}getNodeExtensionType(t,n,r=!1){return t?Gl.ExtensionType.REAL:r||this.isSubgraphVersionTwo||!n.has(ve.EXTENDS)?Gl.ExtensionType.NONE:Gl.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Gl.ExtensionType.EXTENDS:case Gl.ExtensionType.NONE:{if(n===Gl.ExtensionType.REAL)return;this.errors.push((0,De.duplicateTypeDefinitionError)((0,nt.kindToTypeString)(t.kind),t.name));return}default:t.extensionType=n}}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateImplementedInterfaceError)((0,nt.kindToConvertedTypeString)(t.kind),r,s));continue}n.add(s)}return n}updateCompositeOutputDataByNode(t,n,r,i){this.setParentDataExtensionType(n,i),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.isEntity||(n.isEntity=r.has(ve.KEY)),n.isInaccessible||(n.isInaccessible=r.has(ve.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName),n.description||(n.description=(0,Hi.formatDescription)("description"in t?t.description:void 0))}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s),u=this.entityInterfaceDataByTypeName.get(r);if(u&&t.fields)for(let l of t.fields)u.interfaceFieldNames.add(l.name.value);if(i){if(i.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,o);return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),kind:Pe.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Pe.OperationTypeNode.MUTATION:return ve.MUTATION;case Pe.OperationTypeNode.SUBSCRIPTION:return ve.SUBSCRIPTION;default:return ve.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),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.isTypeNameRootType(r),u=this.getNodeExtensionType(n,s,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,u),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r),this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:u,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:l,isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),isRootType:o,kind:Pe.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{appearances:1,directivesByDirectiveName:s,extensionType:o,enumValueDataByValueName:new Map,kind:Pe.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=s.has(ve.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,inputValueDataByValueName:new Map,isInaccessible:s.has(ve.INACCESSIBLE),kind:Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Pe.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Pe.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,Wa.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateUnionMemberDefinitionError)(r,s));continue}(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(s),zi.BASE_SCALARS.has(s)||this.referencedTypeNames.add(s),n.set(s,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Pe.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,nt.kindToTypeString)(i.kind),(0,nt.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Pe.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,Wa.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractKeyFieldSets(t,n){var o;let r=n.isUnresolvableByKeyFieldSet,i=t.name.value;if(!((o=t.directives)!=null&&o.length)){this.errors.push((0,De.expectedEntityError)(i));return}let s=[];for(let u of t.directives){if(u.name.value!==ve.KEY)continue;if(!u.arguments||u.arguments.length<1){s.push((0,De.undefinedRequiredArgumentsErrorMessage)(ve.KEY,i,[ve.FIELDS]));continue}let l,d=!1;for(let p of u.arguments){if(p.name.value===ve.RESOLVABLE){p.value.kind===Pe.Kind.BOOLEAN&&!p.value.value&&(d=!0);continue}if(p.name.value!==ve.FIELDS){l=void 0;break}if(p.value.kind!==Pe.Kind.STRING){l=void 0,s.push((0,De.invalidKeyDirectiveArgumentErrorMessage)(p.value.kind));break}l=p.value.value}l!==void 0&&r.set(l,d)}s.length&&this.errors.push((0,De.invalidKeyDirectivesError)(i,s))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ve.INACCESSIBLE),r=new Map,i=new Map,s=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(!u){this.errors.push((0,De.undefinedTypeError)(o));continue}if(u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,nt.kindToTypeString)(u.kind));continue}if(t.name===u.name){s=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of u.fieldDataByFieldName){let N=!1,I=t.fieldDataByFieldName.get(p);if(!I){d=!0,l.unimplementedFields.push(p);continue}let b={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Ha.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Wr.isTypeValidImplementation)(y.node.type,I.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,N=!0,b.implementedResponseType=(0,Ha.printTypeNode)(I.node.type));let C=new Set;for(let[j,Q]of y.argumentDataByArgumentName){C.add(j);let re=I.argumentDataByArgumentName.get(j);if(!re){d=!0,N=!0,b.unimplementedArguments.add(j);continue}let se=(0,Ha.printTypeNode)(re.type),fe=(0,Ha.printTypeNode)(Q.type);fe!==se&&(d=!0,N=!0,b.invalidImplementedArguments.push({actualType:se,argumentName:j,expectedType:fe}))}for(let[j,Q]of I.argumentDataByArgumentName)C.has(j)||Q.type.kind===Pe.Kind.NON_NULL_TYPE&&(d=!0,N=!0,b.invalidAdditionalArguments.add(j));!n&&I.isInaccessible&&!y.isInaccessible&&(d=!0,N=!0,b.isInaccessible=!0),N&&l.invalidFieldImplementations.set(p,b)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,De.invalidImplementedTypeError)(t.name,i)),s&&this.errors.push((0,De.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,De.invalidInterfaceImplementationError)(t.name,(0,nt.kindToTypeString)(t.kind),r))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==Pe.Kind.STRING){r.push((0,De.invalidDirectiveArgumentTypeErrorMessage)(!0,ve.FROM,Pe.Kind.STRING,i.value.kind));return}let s=i.value.value;if(s===this.subgraphName){r.push((0,De.equivalentSourceAndTargetOverrideErrorMessage)(s,n));return}let o=(0,nt.getValueOrDefault)(this.overridesByTargetSubgraphName,s,()=>new Map);(0,nt.getValueOrDefault)(o,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}getKafkaPublishConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID;for(let s of t.arguments||[])switch(s.name.value){case ve.TOPIC:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push((0,De.invalidEventSubjectErrorMessage)(ve.TOPIC));continue}r.push(s.value.value);break}case ve.PROVIDER_ID:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=s.value.value;break}}if(!(n.length>0))return{fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_KAFKA,topics:r,type:ve.PUBLISH}}getKafkaSubscribeConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID;for(let s of t.arguments||[])switch(s.name.value){case ve.TOPICS:{if(s.value.kind!==Pe.Kind.LIST){n.push((0,De.invalidEventSubjectsErrorMessage)(ve.TOPICS));continue}for(let o of s.value.values){if(o.kind!==Pe.Kind.STRING||o.value.length<1){n.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.TOPICS));break}r.push(o.value)}break}case ve.PROVIDER_ID:{if(s.value.kind!==Pe.Kind.STRING||s.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=s.value.value;break}}if(!(n.length>0))return{fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_KAFKA,topics:r,type:ve.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of n.arguments||[])switch(o.name.value){case ve.SUBJECT:{if(o.value.kind!==Pe.Kind.STRING||o.value.value.length<1){r.push((0,De.invalidEventSubjectErrorMessage)(ve.SUBJECT));continue}i.push(o.value.value);break}case ve.PROVIDER_ID:{if(o.value.kind!==Pe.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_NATS,subjects:i,type:t}}getNatsSubscribeConfiguration(t,n){let r=[],i=ve.DEFAULT_EDFS_PROVIDER_ID,s="",o="";for(let u of t.arguments||[])switch(u.name.value){case ve.SUBJECTS:{if(u.value.kind!==Pe.Kind.LIST){n.push((0,De.invalidEventSubjectsErrorMessage)(ve.SUBJECTS));continue}for(let l of u.value.values){if(l.kind!==Pe.Kind.STRING||l.value.length<1){n.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.SUBJECTS));break}r.push(l.value)}break}case ve.PROVIDER_ID:{if(u.value.kind!==Pe.Kind.STRING||u.value.value.length<1){n.push(De.invalidEventProviderIdErrorMessage);continue}i=u.value.value;break}case ve.STREAM_CONFIGURATION:{if(u.value.kind!==Pe.Kind.OBJECT||u.value.fields.length<1){n.push(De.invalidNatsStreamInputErrorMessage);continue}let l=!0,d=new Set,p=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]),y=new Set,N=new Set;for(let I of u.value.fields){let b=I.name.value;if(!ve.STREAM_CONFIGURATION_FIELD_NAMES.has(b)){d.add(b),l=!1;continue}if(p.has(b))p.delete(b);else{y.add(b),l=!1;continue}if(I.value.kind!==Pe.Kind.STRING||I.value.value.length<1){N.add(b),l=!1;continue}switch(b){case ve.CONSUMER_NAME:s=I.value.value;break;case ve.STREAM_NAME:o=I.value.value;break}}(!l||p.size>0)&&n.push((0,De.invalidNatsStreamInputFieldsErrorMessage)([...p],[...y],[...N],[...d]))}}if(!(n.length>0))return k({fieldName:this.childName,providerId:i,providerType:ve.PROVIDER_TYPE_NATS,subjects:r,type:ve.SUBSCRIBE},s&&o?{streamConfiguration:{consumerName:s,streamName:o}}:{})}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Pe.OperationTypeNode.SUBSCRIPTION;for(let s of t.directives)if(s.name.value===ve.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,De.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t){if(!t.directives)return;let n=`${this.renamedParentTypeName||this.originalParentTypeName}.${this.childName}`;for(let r of t.directives){let i=[],s;switch(r.name.value){case ve.EDFS_KAFKA_PUBLISH:s=this.getKafkaPublishConfiguration(r,i);break;case ve.EDFS_KAFKA_SUBSCRIBE:s=this.getKafkaSubscribeConfiguration(r,i);break;case ve.EDFS_NATS_PUBLISH:{s=this.getNatsPublishAndRequestConfiguration(ve.PUBLISH,r,i);break}case ve.EDFS_NATS_REQUEST:{s=this.getNatsPublishAndRequestConfiguration(ve.REQUEST,r,i);break}case ve.EDFS_NATS_SUBSCRIBE:{s=this.getNatsSubscribeConfiguration(r,i);break}default:continue}if(i.length>0){this.errors.push((0,De.invalidEventDirectiveError)(r.name.value,n,i));continue}s&&(0,nt.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(s)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Pe.OperationTypeNode.MUTATION:return new Set([ve.EDFS_KAFKA_PUBLISH,ve.EDFS_NATS_PUBLISH,ve.EDFS_NATS_REQUEST]);case Pe.OperationTypeNode.QUERY:return new Set([ve.EDFS_NATS_REQUEST]);case Pe.OperationTypeNode.SUBSCRIPTION:return new Set([ve.EDFS_KAFKA_SUBSCRIBE,ve.EDFS_NATS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ve.MUTATION:return Pe.OperationTypeNode.MUTATION;case ve.QUERY:return Pe.OperationTypeNode.QUERY;case ve.SUBSCRIPTION:return Pe.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let s=this.getOperationTypeNodeForRootTypeName(t.name);if(!s){this.errors.push((0,De.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(s);for(let[u,l]of t.fieldDataByFieldName){let d=`${l.originalParentTypeName}.${u}`,p=new Set;for(let j of ve.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(j)&&p.add(j);let y=new Set;for(let j of p)o.has(j)||y.add(j);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),s===Pe.OperationTypeNode.MUTATION){let j=(0,Ha.printTypeNode)(l.type);j!==ve.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,j);continue}let N=(0,Ha.printTypeNode)(l.type),I=l.namedTypeName+"!",b=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let j of C)if(b||(b=this.entityDataByTypeName.has(j)),b)break;(!b||N!==I)&&r.set(d,N)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDataByTypeName.get(t);if(r)for(let[i,s]of r.isUnresolvableByKeyFieldSet)s||(0,nt.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){for(let[s,o]of t){let u=`${o.originalParentTypeName}.${s}`;if(n.has(s)){o.isExternalBySubgraphName.get(this.subgraphName)||r.set(u,s);continue}i.set(u,s)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ve.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size!=1)return!1;for(let[n,r]of t.fieldDataByFieldName)if(r.argumentDataByArgumentName.size>0||n!==ve.SUCCESS||(0,Ha.printTypeNode)(r.type)!==ve.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByValueName.size!=2)return!1;let n=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]);for(let[r,i]of t.inputValueDataByValueName)if(!n.has(r)||(n.delete(r),(0,Ha.printTypeNode)(i.type)!==ve.NON_NULLABLE_STRING))return!1;return n.size<1}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Map,l=new Set,d=new Set;for(let[p,y]of this.parentDefinitionDataByTypeName){if(p===ve.EDFS_PUBLISH_RESULT||p===ve.EDFS_NATS_STREAM_CONFIGURATION||y.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION)continue;if(y.isRootType){this.validateEventDrivenRootType(y,n,r,i);continue}let N=this.keyFieldNamesByParentTypeName.get(p);if(!N){d.add(p);continue}this.validateEventDrivenKeyDefinition(p,s),this.validateEventDrivenObjectFields(y.fieldDataByFieldName,N,o,u)}if(this.isEdfsPublishResultValid()||t.push(De.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ve.EDFS_NATS_SUBSCRIBE)){let p=this.parentDefinitionDataByTypeName.get(ve.EDFS_NATS_STREAM_CONFIGURATION);p?this.isNatsStreamConfigurationInputObjectValid(p)||t.push(De.invalidNatsStreamConfigurationDefinitionErrorMessage):t.push(De.undefinedNatsStreamConfigurationInputErrorMessage)}n.size>0&&t.push((0,De.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,De.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,De.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),s.size>0&&t.push((0,De.invalidKeyFieldSetsEventDrivenErrorMessage)(s)),o.size>0&&t.push((0,De.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,De.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,De.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,De.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,De.invalidEventDrivenGraphError)(t))}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!==Pe.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,nt.kindToTypeString)(i.kind)}"`)}n.length>0&&this.errors.push((0,De.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypesForImplementedInterfaces(t){if(!t.interfaces||t.interfaces.length<1)return;let n=t.name.value;for(let r of t.interfaces){let i=r.name.value;(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,i,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(i,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}}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,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}validateAndAddKeyToConfiguration(t,n){let r=(0,nt.getOrThrowError)(this.configurationDataByParentTypeName,(0,Wr.getParentTypeName)(t),"configurationDataByParentTypeName"),i=(0,iI.validateKeyFieldSets)(this,t,n.isUnresolvableByKeyFieldSet,r.fieldNames);i&&(r.keys=i)}validateAndAddKeysToConfiguration(){for(let[t,n]of this.keyFieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(t));continue}this.validateAndAddKeyToConfiguration(r,n)}}normalize(t){(0,MR.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,MR.upsertParentsAndChildren)(this,t),(0,MR.consolidateAuthorizationDirectives)(this,t);for(let s of this.interfaceTypeNamesWithAuthorizationDirectives){let o=this.authorizationDataByParentTypeName.get(s);if(!o)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);for(let l of u||[]){let d=(0,nt.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,nt.newAuthorizationData)(l));for(let[p,y]of o.fieldAuthorizationDataByFieldName)(0,nt.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,y)||this.invalidOrScopesHostPaths.add(`${l}.${p}`)}}for(let[s,o]of this.heirFieldAuthorizationDataByTypeName){let u=this.authorizationDataByParentTypeName.get(s);if(u)for(let l of o)(0,nt.mergeAuthorizationDataByAND)(u,l)||this.invalidOrScopesHostPaths.add(`${s}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,De.orScopesLimitError)(nt.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let s of zi.BASE_DIRECTIVE_DEFINITIONS)n.push(s);if(n.push(zi.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let s of zi.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(s),this.directiveDefinitionByDirectiveName.set(s.name.value,s);n.push(zi.SCOPE_SCALAR_DEFINITION)}for(let s of this.edfsDirectiveReferences){let o=zi.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(s);if(!o){this.errors.push((0,De.invalidEdfsDirectiveName)(s));continue}n.push(o)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ve.SUBSCRIPTION_FILTER)&&(this.directiveDefinitionByDirectiveName.set(ve.SUBSCRIPTION_FILTER,zi.SUBSCRIPTION_FILTER_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(zi.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(zi.SUBSCRIPTION_FILTER_VALUE_DEFINITION));for(let s of this.customDirectiveDefinitions.values())n.push(s);this.schemaDefinition.operationTypes.size>0&&n.push((0,Wr.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));for(let[s,o]of this.parentDefinitionDataByTypeName)switch(o.kind){case Pe.Kind.ENUM_TYPE_DEFINITION:if(o.enumValueDataByValueName.size<1){this.errors.push((0,De.noDefinedEnumValuesError)(s));break}n.push((0,Wr.getEnumNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(o.inputValueDataByValueName.size<1){this.errors.push((0,De.noInputValueDefinitionsError)(s));break}n.push((0,Wr.getInputObjectNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Pe.Kind.INTERFACE_TYPE_DEFINITION:case Pe.Kind.OBJECT_TYPE_DEFINITION:let u=this.entityDataByTypeName.has(s),l=this.operationTypeNodeByTypeName.get(s),d=o.kind===Pe.Kind.OBJECT_TYPE_DEFINITION;if(l&&(o.fieldDataByFieldName.delete(ve.SERVICE_FIELD),o.fieldDataByFieldName.delete(ve.ENTITIES_FIELD)),this.parentsWithChildArguments.has(s)||!d){let b=[];for(let[C,j]of o.fieldDataByFieldName)!d&&j.isExternalBySubgraphName.get(this.subgraphName)&&b.push(C),this.validateArguments(j,`${s}.${C}`);b.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,De.externalInterfaceFieldsError)(s,b)):this.warnings.push((0,Eq.externalInterfaceFieldsWarning)(this.subgraphName,s,b)))}let p=o.kind===Pe.Kind.OBJECT_TYPE_DEFINITION&&o.renamedTypeName||s,y={fieldNames:new Set,isRootNode:u,typeName:p},N=this.entityInterfaceDataByTypeName.get(s);N&&(N.fieldDatas=(0,nt.fieldDatasToSimpleFieldDatas)(o.fieldDataByFieldName.values()),N.concreteTypeNames=(0,nt.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,s,()=>new Set),y.isInterfaceObject=N.isInterfaceObject,y.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let I=this.eventsConfigurations.get(p);I&&(y.events=I),this.configurationDataByParentTypeName.set(p,y),(0,iI.addFieldNamesToConfigurationData)(o.fieldDataByFieldName,y),this.validateInterfaceImplementations(o),n.push((0,Wr.getCompositeOutputNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),o.fieldDataByFieldName.size<1&&!(0,iI.isNodeQuery)(s,l)&&this.errors.push((0,De.noFieldDefinitionsError)((0,nt.kindToTypeString)(o.kind),s));break;case Pe.Kind.SCALAR_TYPE_DEFINITION:if(o.extensionType===Gl.ExtensionType.REAL){this.errors.push((0,De.noBaseScalarDefinitionError)(s));break}n.push((0,Wr.getScalarNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName));break;case Pe.Kind.UNION_TYPE_DEFINITION:n.push((0,Wr.getUnionNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName)),this.validateUnionMembers(o);break;default:throw(0,De.unexpectedKindFatalError)(s)}for(let s of Object.values(Pe.OperationTypeNode)){let o=this.schemaDefinition.operationTypes.get(s),u=(0,nt.getOrThrowError)(Hi.operationTypeNodeToDefaultType,s,ve.OPERATION_TO_DEFAULT),l=o?(0,Wa.getTypeNodeNamedTypeName)(o.type):u;if(l!==u&&this.parentDefinitionDataByTypeName.has(u)){this.errors.push((0,De.invalidRootTypeDefinitionError)(s,l,u));continue}let d=this.parentDefinitionDataByTypeName.get(l);if(o){if(!d){this.errors.push((0,De.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,s)}if(!d)continue;let p=this.configurationDataByParentTypeName.get(u);if(p&&(p.isRootNode=!0,p.typeName=u),d.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.operationDefinitionError)(l,s,d.kind));continue}for(let y of d.fieldDataByFieldName.values()){let N=(0,Wa.getTypeNodeNamedTypeName)(y.node.type);!zi.BASE_SCALARS.has(N)&&!this.parentDefinitionDataByTypeName.has(N)&&this.errors.push((0,De.undefinedTypeError)(N))}}for(let s of this.referencedTypeNames)!this.parentDefinitionDataByTypeName.has(s)&&!this.entityDataByTypeName.has(s)&&this.errors.push((0,De.undefinedTypeError)(s));this.validateAndAddKeysToConfiguration();for(let[s,o]of this.fieldSetDataByTypeName){let u=this.parentDefinitionDataByTypeName.get(s);if(!u||u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(s));continue}(0,iI.validateAndAddConditionalFieldSetsToConfiguration)(this,u,o)}let r=new Map;for(let s of this.directiveDefinitionByDirectiveName.values()){let o=(0,Hi.extractExecutableDirectiveLocations)(s.locations,new Set);o.size<1||(0,Wr.addPersistedDirectiveDefinitionDataByNode)(r,s,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,this.subgraphName)}if(this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let i={kind:Pe.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoordinates,configurationDataByTypeName:this.configurationDataByParentTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Pe.print)(i),schema:(0,Hle.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0})},warnings:this.warnings}}};Ql.NormalizationFactory=lT;function Zle(e){let t=new Map,n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Set,l=new Map,d=new Set,p=new Set,y=[],N=new Set,I=[],b=[];for(let Q of e)Q.name&&(0,Wle.recordSubgraphName)(Q.name,d,p);let C=new BR.Graph;for(let Q=0;Q0&&I.push(...ke),fe){b.push((0,De.subgraphValidationError)(se,fe));continue}if(!ye){b.push((0,De.subgraphValidationError)(se,[De.subgraphValidationFailureError]));continue}l.set(se,ye.parentDefinitionDataByTypeName);for(let ht of ye.authorizationDataByParentTypeName.values())(0,nt.upsertAuthorizationData)(t,ht,N);for(let[ht,xt]of ye.concreteTypeNamesByAbstractTypeName){let B=n.get(ht);if(!B){n.set(ht,new Set(xt));continue}(0,nt.addIterableValuesToSet)(xt,B)}for(let ht of ye.entityDataByTypeName.values())(0,nt.upsertEntityData)(r,ht);if(re.name&&i.set(se,{conditionalFieldDataByCoordinates:ye.conditionalFieldDataByCoordinates,configurationDataByTypeName:ye.configurationDataByTypeName,definitions:ye.subgraphAST,entityInterfaces:ye.entityInterfaces,isVersionTwo:ye.isVersionTwo,keyFieldNamesByParentTypeName:ye.keyFieldNamesByParentTypeName,name:se,operationTypes:ye.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ye.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ye.persistedDirectiveDefinitionDataByDirectiveName,schema:ye.schema,url:re.url}),!(ye.overridesByTargetSubgraphName.size<1))for(let[ht,xt]of ye.overridesByTargetSubgraphName){let B=d.has(ht);for(let[he,rt]of xt){let Ct=ye.originalTypeNameByRenamedTypeName.get(he)||he;if(!B)I.push((0,Eq.invalidOverrideTargetSubgraphNameWarning)(ht,Ct,[...rt]));else{let sn=(0,nt.getValueOrDefault)(s,ht,()=>new Map),Fn=(0,nt.getValueOrDefault)(sn,he,()=>new Set(rt));(0,nt.addIterableValuesToSet)(rt,Fn)}for(let sn of rt){let Fn=`${Ct}.${sn}`,vn=o.get(Fn);if(!vn){o.set(Fn,[se]);continue}vn.push(se),u.add(Fn)}}}}let j=[];if(N.size>0&&j.push((0,De.orScopesLimitError)(nt.maxOrScopes,[...N])),(y.length>0||p.size>0)&&j.push((0,De.invalidSubgraphNamesError)([...p],y)),u.size>0){let Q=[];for(let re of u){let se=(0,nt.getOrThrowError)(o,re,"overrideSourceSubgraphNamesByFieldPath");Q.push((0,De.duplicateOverriddenFieldErrorMessage)(re,se))}j.push((0,De.duplicateOverriddenFieldsError)(Q))}if(j.push(...b),j.length>0)return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:j,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I};for(let[Q,re]of s){let se=(0,nt.getOrThrowError)(i,Q,"internalSubgraphBySubgraphName");se.overriddenFieldNamesByParentTypeName=re;for(let[fe,ye]of re){let ke=se.configurationDataByTypeName.get(fe);ke&&((0,nt.subtractSourceSetFromTargetSet)(ye,ke.fieldNames),ke.fieldNames.size<1&&se.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I}}});var sI=V(dT=>{"use strict";m();T();h();Object.defineProperty(dT,"__esModule",{value:!0});dT.getLeastRestrictiveMergedTypeNode=tde;dT.getMostRestrictiveMergedTypeNode=nde;dT.renameNamedTypeName=rde;var Yl=(Fe(),xe(Me)),vq=co(),ede=Ca(),Iq=Vi(),_q=$m(),Jl;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Jl||(Jl={}));function bq(e,t,n,r,i){t=(0,ede.getMutableTypeNode)(t,n,i);let s={kind:e.kind},o=Jl.NONE,u=s;for(let l=0;l<_q.MAXIMUM_TYPE_NESTING;l++){if(e.kind===t.kind)switch(e.kind){case Yl.Kind.NAMED_TYPE:let d=t.name.value;return e.name.value!==d?{typeErrors:[e.name.value,d]}:(u.kind=e.kind,u.name=e.name,{typeNode:s});case Yl.Kind.LIST_TYPE:u.kind=e.kind,u.type={kind:e.type.kind},u=u.type,e=e.type,t=t.type;continue;case Yl.Kind.NON_NULL_TYPE:u.kind=e.kind,u.type={kind:e.type.kind},u=u.type,e=e.type,t=t.type;continue}if(e.kind===Yl.Kind.NON_NULL_TYPE){if(o===Jl.OTHER)return{typeErrors:[e.kind,t.kind]};o=Jl.CURRENT,r&&(u.kind=e.kind,u.type={kind:e.type.kind},u=u.type),e=e.type;continue}if(t.kind===Yl.Kind.NON_NULL_TYPE){if(o===Jl.CURRENT)return{typeErrors:[t.kind,e.kind]};o=Jl.OTHER,r&&(u.kind=t.kind,u.type={kind:t.type.kind},u=u.type),t=t.type;continue}return{typeErrors:[e.kind,t.kind]}}return i.push((0,vq.maximumTypeNestingExceededError)(n)),{typeNode:e}}function tde(e,t,n,r){return bq(e,t,n,!1,r)}function nde(e,t,n,r){return bq(e,t,n,!0,r)}function rde(e,t,n){let r=e.type;for(let i=0;i<_q.MAXIMUM_TYPE_NESTING;i++){if(r.kind===Yl.Kind.NAMED_TYPE){e.namedTypeName=t,r.name=(0,Iq.stringToNameNode)(t);return}r=r.type}e.type={kind:Yl.Kind.NAMED_TYPE,name:(0,Iq.stringToNameNode)(t)},n.push((0,vq.maximumTypeNestingExceededError)(`${e.originalParentTypeName}.${e.name}`))}});var qR=V($R=>{"use strict";m();T();h();Object.defineProperty($R,"__esModule",{value:!0});$R.renameRootTypes=ode;var ide=(Fe(),xe(Me)),Fc=bi(),zl=ds(),jR=Vi(),sde=sI();function ode(e,t){let n,r=!1,i;(0,ide.visit)(t.definitions,{FieldDefinition:{enter(s){let o=s.name.value;if(r&&(o===Fc.SERVICE_FIELD||o===Fc.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(o),!1;let u=n.name,l=(0,zl.getOrThrowError)(n.fieldDataByFieldName,o,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,d,Fc.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,sde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(s){let o=s.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Fc.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,u,Fc.OPERATION_TO_DEFAULT):o;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Fc.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(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,zl.getOrThrowError)(jR.operationTypeNodeToDefaultType,u,Fc.OPERATION_TO_DEFAULT):o;n=(0,zl.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Fc.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 Oq=V((Yp,pT)=>{"use strict";m();T();h();(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",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",d=1,p=2,y=4,N=1,I=2,b=1,C=2,j=4,Q=8,re=16,se=32,fe=64,ye=128,ke=256,ht=512,xt=30,B="...",he=800,rt=16,Ct=1,sn=2,Fn=3,vn=1/0,_n=9007199254740991,mi=17976931348623157e292,Xr=NaN,Pn=4294967295,on=Pn-1,qn=Pn>>>1,U=[["ary",ye],["bind",b],["bindKey",C],["curry",Q],["curryRight",re],["flip",ht],["partial",se],["partialRight",fe],["rearg",ke]],ae="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",je="[object Boolean]",G="[object Date]",ee="[object DOMException]",we="[object Error]",He="[object Function]",jt="[object GeneratorFunction]",Qe="[object Map]",Ht="[object Number]",pa="[object Null]",Li="[object Object]",fa="[object Promise]",rd="[object Proxy]",Do="[object RegExp]",Gr="[object Set]",Wi="[object String]",cn="[object Symbol]",Qr="[object Undefined]",kc="[object WeakMap]",Ao="[object WeakSet]",xc="[object ArrayBuffer]",F="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",x="[object Int8Array]",z="[object Int16Array]",ie="[object Int32Array]",me="[object Uint8Array]",At="[object Uint8ClampedArray]",kn="[object Uint16Array]",Dn="[object Uint32Array]",Kn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,kK=/(__e\(.*?\)|\b__t\)) \+\n'';/g,OF=/&(?:amp|lt|gt|quot|#39);/g,SF=/[&<>"']/g,xK=RegExp(OF.source),CK=RegExp(SF.source),UK=/<%-([\s\S]+?)%>/g,MK=/<%([\s\S]+?)%>/g,DF=/<%=([\s\S]+?)%>/g,BK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VK=/^\w*$/,jK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,CI=/[\\^$.*+?()[\]{}|]/g,$K=RegExp(CI.source),UI=/^\s+/,qK=/\s/,KK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,GK=/\{\n\/\* \[wrapped with (.+)\] \*/,QK=/,? & /,YK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,JK=/[()=,{}\[\]\/\s]/,zK=/\\(\\)?/g,HK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,AF=/\w*$/,WK=/^[-+]0x[0-9a-f]+$/i,XK=/^0b[01]+$/i,ZK=/^\[object .+?Constructor\]$/,eG=/^0o[0-7]+$/i,tG=/^(?:0|[1-9]\d*)$/,nG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wT=/($^)/,rG=/['\n\r\u2028\u2029\\]/g,LT="\\ud800-\\udfff",iG="\\u0300-\\u036f",sG="\\ufe20-\\ufe2f",oG="\\u20d0-\\u20ff",RF=iG+sG+oG,FF="\\u2700-\\u27bf",wF="a-z\\xdf-\\xf6\\xf8-\\xff",aG="\\xac\\xb1\\xd7\\xf7",uG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cG="\\u2000-\\u206f",lG=" \\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",LF="A-Z\\xc0-\\xd6\\xd8-\\xde",PF="\\ufe0e\\ufe0f",kF=aG+uG+cG+lG,MI="['\u2019]",dG="["+LT+"]",xF="["+kF+"]",PT="["+RF+"]",CF="\\d+",pG="["+FF+"]",UF="["+wF+"]",MF="[^"+LT+kF+CF+FF+wF+LF+"]",BI="\\ud83c[\\udffb-\\udfff]",fG="(?:"+PT+"|"+BI+")",BF="[^"+LT+"]",VI="(?:\\ud83c[\\udde6-\\uddff]){2}",jI="[\\ud800-\\udbff][\\udc00-\\udfff]",id="["+LF+"]",VF="\\u200d",jF="(?:"+UF+"|"+MF+")",mG="(?:"+id+"|"+MF+")",$F="(?:"+MI+"(?:d|ll|m|re|s|t|ve))?",qF="(?:"+MI+"(?:D|LL|M|RE|S|T|VE))?",KF=fG+"?",GF="["+PF+"]?",hG="(?:"+VF+"(?:"+[BF,VI,jI].join("|")+")"+GF+KF+")*",TG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QF=GF+KF+hG,NG="(?:"+[pG,VI,jI].join("|")+")"+QF,EG="(?:"+[BF+PT+"?",PT,VI,jI,dG].join("|")+")",gG=RegExp(MI,"g"),IG=RegExp(PT,"g"),$I=RegExp(BI+"(?="+BI+")|"+EG+QF,"g"),vG=RegExp([id+"?"+UF+"+"+$F+"(?="+[xF,id,"$"].join("|")+")",mG+"+"+qF+"(?="+[xF,id+jF,"$"].join("|")+")",id+"?"+jF+"+"+$F,id+"+"+qF,yG,TG,CF,NG].join("|"),"g"),_G=RegExp("["+VF+LT+RF+PF+"]"),bG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,OG=["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"],SG=-1,Vn={};Vn[g]=Vn[v]=Vn[x]=Vn[z]=Vn[ie]=Vn[me]=Vn[At]=Vn[kn]=Vn[Dn]=!0,Vn[ae]=Vn[te]=Vn[xc]=Vn[je]=Vn[F]=Vn[G]=Vn[we]=Vn[He]=Vn[Qe]=Vn[Ht]=Vn[Li]=Vn[Do]=Vn[Gr]=Vn[Wi]=Vn[kc]=!1;var xn={};xn[ae]=xn[te]=xn[xc]=xn[F]=xn[je]=xn[G]=xn[g]=xn[v]=xn[x]=xn[z]=xn[ie]=xn[Qe]=xn[Ht]=xn[Li]=xn[Do]=xn[Gr]=xn[Wi]=xn[cn]=xn[me]=xn[At]=xn[kn]=xn[Dn]=!0,xn[we]=xn[He]=xn[kc]=!1;var DG={\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"},AG={"&":"&","<":"<",">":">",'"':""","'":"'"},RG={"&":"&","<":"<",">":">",""":'"',"'":"'"},FG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wG=parseFloat,LG=parseInt,YF=typeof global=="object"&&global&&global.Object===Object&&global,PG=typeof self=="object"&&self&&self.Object===Object&&self,Cr=YF||PG||Function("return this")(),qI=typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,Cc=qI&&typeof pT=="object"&&pT&&!pT.nodeType&&pT,JF=Cc&&Cc.exports===qI,KI=JF&&YF.process,Ns=function(){try{var W=Cc&&Cc.require&&Cc.require("util").types;return W||KI&&KI.binding&&KI.binding("util")}catch(de){}}(),zF=Ns&&Ns.isArrayBuffer,HF=Ns&&Ns.isDate,WF=Ns&&Ns.isMap,XF=Ns&&Ns.isRegExp,ZF=Ns&&Ns.isSet,ew=Ns&&Ns.isTypedArray;function Xi(W,de,oe){switch(oe.length){case 0:return W.call(de);case 1:return W.call(de,oe[0]);case 2:return W.call(de,oe[0],oe[1]);case 3:return W.call(de,oe[0],oe[1],oe[2])}return W.apply(de,oe)}function kG(W,de,oe,Ce){for(var vt=-1,pn=W==null?0:W.length;++vt-1}function GI(W,de,oe){for(var Ce=-1,vt=W==null?0:W.length;++Ce-1;);return oe}function uw(W,de){for(var oe=W.length;oe--&&sd(de,W[oe],0)>-1;);return oe}function qG(W,de){for(var oe=W.length,Ce=0;oe--;)W[oe]===de&&++Ce;return Ce}var KG=zI(DG),GG=zI(AG);function QG(W){return"\\"+FG[W]}function YG(W,de){return W==null?e:W[de]}function od(W){return _G.test(W)}function JG(W){return bG.test(W)}function zG(W){for(var de,oe=[];!(de=W.next()).done;)oe.push(de.value);return oe}function ZI(W){var de=-1,oe=Array(W.size);return W.forEach(function(Ce,vt){oe[++de]=[vt,Ce]}),oe}function cw(W,de){return function(oe){return W(de(oe))}}function Qu(W,de){for(var oe=-1,Ce=W.length,vt=0,pn=[];++oe-1}function CQ(a,c){var f=this.__data__,E=WT(f,a);return E<0?(++this.size,f.push([a,c])):f[E][1]=c,this}ma.prototype.clear=LQ,ma.prototype.delete=PQ,ma.prototype.get=kQ,ma.prototype.has=xQ,ma.prototype.set=CQ;function ha(a){var c=-1,f=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function vs(a,c,f,E,_,L){var M,q=c&d,X=c&p,Te=c&y;if(f&&(M=_?f(a,E,_,L):f(a)),M!==e)return M;if(!Xn(a))return a;var Ne=Ot(a);if(Ne){if(M=V2(a),!q)return Pi(a,M)}else{var Ie=ei(a),Re=Ie==He||Ie==jt;if(Zu(a))return Gw(a,q);if(Ie==Li||Ie==ae||Re&&!_){if(M=X||Re?{}:lL(a),!q)return X?R2(a,XQ(M,a)):A2(a,Iw(M,a))}else{if(!xn[Ie])return _?a:{};M=j2(a,Ie,q)}}L||(L=new eo);var Ye=L.get(a);if(Ye)return Ye;L.set(a,M),BL(a)?a.forEach(function(dt){M.add(vs(dt,c,f,dt,a,L))}):UL(a)&&a.forEach(function(dt,$t){M.set($t,vs(dt,c,f,$t,a,L))});var lt=Te?X?Ov:bv:X?xi:Ur,Ut=Ne?e:lt(a);return Es(Ut||a,function(dt,$t){Ut&&($t=dt,dt=a[$t]),cf(M,$t,vs(dt,c,f,$t,a,L))}),M}function ZQ(a){var c=Ur(a);return function(f){return vw(f,a,c)}}function vw(a,c,f){var E=f.length;if(a==null)return!E;for(a=wn(a);E--;){var _=f[E],L=c[_],M=a[_];if(M===e&&!(_ in a)||!L(M))return!1}return!0}function _w(a,c,f){if(typeof a!="function")throw new gs(i);return Tf(function(){a.apply(e,f)},c)}function lf(a,c,f,E){var _=-1,L=kT,M=!0,q=a.length,X=[],Te=c.length;if(!q)return X;f&&(c=Gn(c,Zi(f))),E?(L=GI,M=!1):c.length>=n&&(L=nf,M=!1,c=new Bc(c));e:for(;++__?0:_+f),E=E===e||E>_?_:Lt(E),E<0&&(E+=_),E=f>E?0:jL(E);f0&&f(q)?c>1?Yr(q,c-1,f,E,_):Gu(_,q):E||(_[_.length]=q)}return _}var ov=Ww(),Sw=Ww(!0);function Ro(a,c){return a&&ov(a,c,Ur)}function av(a,c){return a&&Sw(a,c,Ur)}function ZT(a,c){return Ku(c,function(f){return ga(a[f])})}function jc(a,c){c=Wu(c,a);for(var f=0,E=c.length;a!=null&&fc}function n2(a,c){return a!=null&&On.call(a,c)}function r2(a,c){return a!=null&&c in wn(a)}function i2(a,c,f){return a>=Zr(c,f)&&a=120&&Ne.length>=120)?new Bc(M&&Ne):e}Ne=a[0];var Ie=-1,Re=q[0];e:for(;++Ie<_&&Te.length-1;)q!==a&&KT.call(q,X,1),KT.call(a,X,1);return a}function Uw(a,c){for(var f=a?c.length:0,E=f-1;f--;){var _=c[f];if(f==E||_!==L){var L=_;Ea(_)?KT.call(a,_,1):yv(a,_)}}return a}function mv(a,c){return a+YT(yw()*(c-a+1))}function y2(a,c,f,E){for(var _=-1,L=Ar(QT((c-a)/(f||1)),0),M=oe(L);L--;)M[E?L:++_]=a,a+=f;return M}function hv(a,c){var f="";if(!a||c<1||c>_n)return f;do c%2&&(f+=a),c=YT(c/2),c&&(a+=a);while(c);return f}function Bt(a,c){return Lv(fL(a,c,Ci),a+"")}function N2(a){return gw(Td(a))}function E2(a,c){var f=Td(a);return ly(f,Vc(c,0,f.length))}function ff(a,c,f,E){if(!Xn(a))return a;c=Wu(c,a);for(var _=-1,L=c.length,M=L-1,q=a;q!=null&&++__?0:_+c),f=f>_?_:f,f<0&&(f+=_),_=c>f?0:f-c>>>0,c>>>=0;for(var L=oe(_);++E<_;)L[E]=a[E+c];return L}function v2(a,c){var f;return zu(a,function(E,_,L){return f=c(E,_,L),!f}),!!f}function ty(a,c,f){var E=0,_=a==null?E:a.length;if(typeof c=="number"&&c===c&&_<=qn){for(;E<_;){var L=E+_>>>1,M=a[L];M!==null&&!ts(M)&&(f?M<=c:M=n){var Te=c?null:P2(a);if(Te)return CT(Te);M=!1,_=nf,X=new Bc}else X=c?[]:q;e:for(;++E=E?a:_s(a,c,f)}var Kw=lQ||function(a){return Cr.clearTimeout(a)};function Gw(a,c){if(c)return a.slice();var f=a.length,E=pw?pw(f):new a.constructor(f);return a.copy(E),E}function Iv(a){var c=new a.constructor(a.byteLength);return new $T(c).set(new $T(a)),c}function b2(a,c){var f=c?Iv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function O2(a){var c=new a.constructor(a.source,AF.exec(a));return c.lastIndex=a.lastIndex,c}function S2(a){return uf?wn(uf.call(a)):{}}function Qw(a,c){var f=c?Iv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function Yw(a,c){if(a!==c){var f=a!==e,E=a===null,_=a===a,L=ts(a),M=c!==e,q=c===null,X=c===c,Te=ts(c);if(!q&&!Te&&!L&&a>c||L&&M&&X&&!q&&!Te||E&&M&&X||!f&&X||!_)return 1;if(!E&&!L&&!Te&&a=q)return X;var Te=f[E];return X*(Te=="desc"?-1:1)}}return a.index-c.index}function Jw(a,c,f,E){for(var _=-1,L=a.length,M=f.length,q=-1,X=c.length,Te=Ar(L-M,0),Ne=oe(X+Te),Ie=!E;++q1?f[_-1]:e,M=_>2?f[2]:e;for(L=a.length>3&&typeof L=="function"?(_--,L):e,M&&Ti(f[0],f[1],M)&&(L=_<3?e:L,_=1),c=wn(c);++E<_;){var q=f[E];q&&a(c,q,E,L)}return c})}function Hw(a,c){return function(f,E){if(f==null)return f;if(!ki(f))return a(f,E);for(var _=f.length,L=c?_:-1,M=wn(f);(c?L--:++L<_)&&E(M[L],L,M)!==!1;);return f}}function Ww(a){return function(c,f,E){for(var _=-1,L=wn(c),M=E(c),q=M.length;q--;){var X=M[a?q:++_];if(f(L[X],X,L)===!1)break}return c}}function F2(a,c,f){var E=c&b,_=mf(a);function L(){var M=this&&this!==Cr&&this instanceof L?_:a;return M.apply(E?f:this,arguments)}return L}function Xw(a){return function(c){c=yn(c);var f=od(c)?Zs(c):e,E=f?f[0]:c.charAt(0),_=f?Xu(f,1).join(""):c.slice(1);return E[a]()+_}}function fd(a){return function(c){return QI(HL(zL(c).replace(gG,"")),a,"")}}function mf(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var f=dd(a.prototype),E=a.apply(f,c);return Xn(E)?E:f}}function w2(a,c,f){var E=mf(a);function _(){for(var L=arguments.length,M=oe(L),q=L,X=md(_);q--;)M[q]=arguments[q];var Te=L<3&&M[0]!==X&&M[L-1]!==X?[]:Qu(M,X);if(L-=Te.length,L-1?_[L?c[M]:M]:e}}function eL(a){return Na(function(c){var f=c.length,E=f,_=Is.prototype.thru;for(a&&c.reverse();E--;){var L=c[E];if(typeof L!="function")throw new gs(i);if(_&&!M&&uy(L)=="wrapper")var M=new Is([],!0)}for(E=M?E:f;++E1&&Wt.reverse(),Ne&&X<$t&&(Wt.length=X),this&&this!==Cr&&this instanceof dt&&(va=Ut||mf(va)),va.apply(no,Wt)}return dt}function tL(a,c){return function(f,E){return s2(f,a,c(E),{})}}function sy(a,c){return function(f,E){var _;if(f===e&&E===e)return c;if(f!==e&&(_=f),E!==e){if(_===e)return E;typeof f=="string"||typeof E=="string"?(f=es(f),E=es(E)):(f=Vw(f),E=Vw(E)),_=a(f,E)}return _}}function vv(a){return Na(function(c){return c=Gn(c,Zi(ct())),Bt(function(f){var E=this;return a(c,function(_){return Xi(_,E,f)})})})}function oy(a,c){c=c===e?" ":es(c);var f=c.length;if(f<2)return f?hv(c,a):c;var E=hv(c,QT(a/ad(c)));return od(c)?Xu(Zs(E),0,a).join(""):E.slice(0,a)}function L2(a,c,f,E){var _=c&b,L=mf(a);function M(){for(var q=-1,X=arguments.length,Te=-1,Ne=E.length,Ie=oe(Ne+X),Re=this&&this!==Cr&&this instanceof M?L:a;++Teq))return!1;var Te=L.get(a),Ne=L.get(c);if(Te&&Ne)return Te==c&&Ne==a;var Ie=-1,Re=!0,Ye=f&I?new Bc:e;for(L.set(a,c),L.set(c,a);++Ie1?"& ":"")+c[E],c=c.join(f>2?", ":" "),a.replace(KK,`{ /* [wrapped with `+c+`] */ -`)}function q2(a){return Ot(a)||Kc(a)||!!(hF&&a&&a[hF])}function Ea(a,c){var f=typeof a;return c=c==null?_n:c,!!c&&(f=="number"||f!="symbol"&&tG.test(a))&&a>-1&&a%1==0&&a0){if(++c>=he)return arguments[0]}else c=0;return a.apply(e,arguments)}}function ly(a,c){var f=-1,E=a.length,_=E-1;for(c=c===e?E:c;++f1?a[c-1]:e;return f=typeof f=="function"?(a.pop(),f):e,OL(a,f)});function SL(a){var c=F(a);return c.__chain__=!0,c}function eJ(a,c){return c(a),a}function dy(a,c){return c(a)}var tJ=Na(function(a){var c=a.length,f=c?a[0]:0,E=this.__wrapped__,_=function(L){return sv(L,a)};return c>1||this.__actions__.length||!(E instanceof Kt)||!Ea(f)?this.thru(_):(E=E.slice(f,+f+(c?1:0)),E.__actions__.push({func:dy,args:[_],thisArg:e}),new Is(E,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function nJ(){return SL(this)}function rJ(){return new Is(this.value(),this.__chain__)}function iJ(){this.__values__===e&&(this.__values__=VL(this.value()));var a=this.__index__>=this.__values__.length,c=a?e:this.__values__[this.__index__++];return{done:a,value:c}}function sJ(){return this}function oJ(a){for(var c,f=this;f instanceof HT;){var E=EL(f);E.__index__=0,E.__values__=e,c?_.__wrapped__=E:c=E;var _=E;f=f.__wrapped__}return _.__wrapped__=a,c}function aJ(){var a=this.__wrapped__;if(a instanceof Kt){var c=a;return this.__actions__.length&&(c=new Kt(this)),c=c.reverse(),c.__actions__.push({func:dy,args:[Pv],thisArg:e}),new Is(c,this.__chain__)}return this.thru(Pv)}function uJ(){return $F(this.__wrapped__,this.__actions__)}var cJ=ry(function(a,c,f){On.call(a,f)?++a[f]:Ta(a,f,1)});function lJ(a,c,f){var E=Ot(a)?tF:e2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}function dJ(a,c){var f=Ot(a)?Ku:OF;return f(a,ct(c,3))}var pJ=ZF(gL),fJ=ZF(IL);function mJ(a,c){return Yr(py(a,c),1)}function hJ(a,c){return Yr(py(a,c),vn)}function TJ(a,c,f){return f=f===e?1:Lt(f),Yr(py(a,c),f)}function DL(a,c){var f=Ot(a)?Es:zu;return f(a,ct(c,3))}function AL(a,c){var f=Ot(a)?xG:bF;return f(a,ct(c,3))}var yJ=ry(function(a,c,f){On.call(a,f)?a[f].push(c):Ta(a,f,[c])});function NJ(a,c,f,E){a=ki(a)?a:Td(a),f=f&&!E?Lt(f):0;var _=a.length;return f<0&&(f=Ar(_+f,0)),yy(a)?f<=_&&a.indexOf(c,f)>-1:!!_&&sd(a,c,f)>-1}var EJ=Bt(function(a,c,f){var E=-1,_=typeof c=="function",L=ki(a)?oe(a.length):[];return zu(a,function(M){L[++E]=_?Xi(c,M,f):df(M,c,f)}),L}),gJ=ry(function(a,c,f){Ta(a,f,c)});function py(a,c){var f=Ot(a)?Kn:FF;return f(a,ct(c,3))}function IJ(a,c,f,E){return a==null?[]:(Ot(c)||(c=c==null?[]:[c]),f=E?e:f,Ot(f)||(f=f==null?[]:[f]),xF(a,c,f))}var vJ=ry(function(a,c,f){a[f?0:1].push(c)},function(){return[[],[]]});function _J(a,c,f){var E=Ot(a)?QI:sF,_=arguments.length<3;return E(a,ct(c,4),f,_,zu)}function bJ(a,c,f){var E=Ot(a)?CG:sF,_=arguments.length<3;return E(a,ct(c,4),f,_,bF)}function OJ(a,c){var f=Ot(a)?Ku:OF;return f(a,hy(ct(c,3)))}function SJ(a){var c=Ot(a)?gF:N2;return c(a)}function DJ(a,c,f){(f?Ti(a,c,f):c===e)?c=1:c=Lt(c);var E=Ot(a)?zQ:E2;return E(a,c)}function AJ(a){var c=Ot(a)?HQ:I2;return c(a)}function RJ(a){if(a==null)return 0;if(ki(a))return yy(a)?ad(a):a.length;var c=ei(a);return c==Qe||c==Gr?a.size:dv(a).length}function wJ(a,c,f){var E=Ot(a)?YI:v2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}var FJ=Bt(function(a,c){if(a==null)return[];var f=c.length;return f>1&&Ti(a,c[0],c[1])?c=[]:f>2&&Ti(c[0],c[1],c[2])&&(c=[c[0]]),xF(a,Yr(c,1),[])}),fy=dQ||function(){return Cr.Date.now()};function LJ(a,c){if(typeof c!="function")throw new gs(i);return a=Lt(a),function(){if(--a<1)return c.apply(this,arguments)}}function RL(a,c,f){return c=f?e:c,c=a&&c==null?a.length:c,ya(a,ye,e,e,e,e,c)}function wL(a,c){var f;if(typeof c!="function")throw new gs(i);return a=Lt(a),function(){return--a>0&&(f=c.apply(this,arguments)),a<=1&&(c=e),f}}var xv=Bt(function(a,c,f){var E=b;if(f.length){var _=Qu(f,md(xv));E|=se}return ya(a,E,c,f,_)}),FL=Bt(function(a,c,f){var E=b|C;if(f.length){var _=Qu(f,md(FL));E|=se}return ya(c,E,a,f,_)});function LL(a,c,f){c=f?e:c;var E=ya(a,Q,e,e,e,e,e,c);return E.placeholder=LL.placeholder,E}function PL(a,c,f){c=f?e:c;var E=ya(a,re,e,e,e,e,e,c);return E.placeholder=PL.placeholder,E}function kL(a,c,f){var E,_,L,M,q,X,Te=0,Ne=!1,Ie=!1,Re=!0;if(typeof a!="function")throw new gs(i);c=Os(c)||0,Wn(f)&&(Ne=!!f.leading,Ie="maxWait"in f,L=Ie?Ar(Os(f.maxWait)||0,c):L,Re="trailing"in f?!!f.trailing:Re);function Ye(mr){var no=E,va=_;return E=_=e,Te=mr,M=a.apply(va,no),M}function lt(mr){return Te=mr,q=Tf($t,c),Ne?Ye(mr):M}function Ut(mr){var no=mr-X,va=mr-Te,ZL=c-no;return Ie?Zr(ZL,L-va):ZL}function dt(mr){var no=mr-X,va=mr-Te;return X===e||no>=c||no<0||Ie&&va>=L}function $t(){var mr=fy();if(dt(mr))return Wt(mr);q=Tf($t,Ut(mr))}function Wt(mr){return q=e,Re&&E?Ye(mr):(E=_=e,M)}function ns(){q!==e&&KF(q),Te=0,E=X=_=q=e}function yi(){return q===e?M:Wt(fy())}function rs(){var mr=fy(),no=dt(mr);if(E=arguments,_=this,X=mr,no){if(q===e)return lt(X);if(Ie)return KF(q),q=Tf($t,c),Ye(X)}return q===e&&(q=Tf($t,c)),M}return rs.cancel=ns,rs.flush=yi,rs}var PJ=Bt(function(a,c){return _F(a,1,c)}),kJ=Bt(function(a,c,f){return _F(a,Os(c)||0,f)});function xJ(a){return ya(a,ht)}function my(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new gs(i);var f=function(){var E=arguments,_=c?c.apply(this,E):E[0],L=f.cache;if(L.has(_))return L.get(_);var M=a.apply(this,E);return f.cache=L.set(_,M)||L,M};return f.cache=new(my.Cache||ha),f}my.Cache=ha;function hy(a){if(typeof a!="function")throw new gs(i);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function CJ(a){return wL(2,a)}var UJ=_2(function(a,c){c=c.length==1&&Ot(c[0])?Kn(c[0],Zi(ct())):Kn(Yr(c,1),Zi(ct()));var f=c.length;return Bt(function(E){for(var _=-1,L=Zr(E.length,f);++_=c}),Kc=AF(function(){return arguments}())?AF:function(a){return rr(a)&&On.call(a,"callee")&&!mF.call(a,"callee")},Ot=oe.isArray,XJ=zw?Zi(zw):o2;function ki(a){return a!=null&&Ty(a.length)&&!ga(a)}function fr(a){return rr(a)&&ki(a)}function ZJ(a){return a===!0||a===!1||rr(a)&&hi(a)==je}var Zu=fQ||Yv,e3=Hw?Zi(Hw):a2;function t3(a){return rr(a)&&a.nodeType===1&&!yf(a)}function n3(a){if(a==null)return!0;if(ki(a)&&(Ot(a)||typeof a=="string"||typeof a.splice=="function"||Zu(a)||hd(a)||Kc(a)))return!a.length;var c=ei(a);if(c==Qe||c==Gr)return!a.size;if(hf(a))return!dv(a).length;for(var f in a)if(On.call(a,f))return!1;return!0}function r3(a,c){return pf(a,c)}function i3(a,c,f){f=typeof f=="function"?f:e;var E=f?f(a,c):e;return E===e?pf(a,c,e,f):!!E}function Uv(a){if(!rr(a))return!1;var c=hi(a);return c==Fe||c==ee||typeof a.message=="string"&&typeof a.name=="string"&&!yf(a)}function s3(a){return typeof a=="number"&&TF(a)}function ga(a){if(!Wn(a))return!1;var c=hi(a);return c==He||c==jt||c==ce||c==rd}function CL(a){return typeof a=="number"&&a==Lt(a)}function Ty(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=_n}function Wn(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function rr(a){return a!=null&&typeof a=="object"}var UL=Ww?Zi(Ww):c2;function o3(a,c){return a===c||lv(a,c,Dv(c))}function a3(a,c,f){return f=typeof f=="function"?f:e,lv(a,c,Dv(c),f)}function u3(a){return ML(a)&&a!=+a}function c3(a){if(Q2(a))throw new vt(r);return RF(a)}function l3(a){return a===null}function d3(a){return a==null}function ML(a){return typeof a=="number"||rr(a)&&hi(a)==Ht}function yf(a){if(!rr(a)||hi(a)!=Li)return!1;var c=qT(a);if(c===null)return!0;var f=On.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&BT.call(f)==aQ}var Mv=Xw?Zi(Xw):l2;function p3(a){return CL(a)&&a>=-_n&&a<=_n}var BL=Zw?Zi(Zw):d2;function yy(a){return typeof a=="string"||!Ot(a)&&rr(a)&&hi(a)==Wi}function ts(a){return typeof a=="symbol"||rr(a)&&hi(a)==cn}var hd=eF?Zi(eF):p2;function f3(a){return a===e}function m3(a){return rr(a)&&ei(a)==kc}function h3(a){return rr(a)&&hi(a)==Ao}var T3=ay(pv),y3=ay(function(a,c){return a<=c});function VL(a){if(!a)return[];if(ki(a))return yy(a)?Zs(a):Pi(a);if(rf&&a[rf])return zG(a[rf]());var c=ei(a),f=c==Qe?ZI:c==Gr?CT:Td;return f(a)}function Ia(a){if(!a)return a===0?a:0;if(a=Os(a),a===vn||a===-vn){var c=a<0?-1:1;return c*mi}return a===a?a:0}function Lt(a){var c=Ia(a),f=c%1;return c===c?f?c-f:c:0}function jL(a){return a?Vc(Lt(a),0,Pn):0}function Os(a){if(typeof a=="number")return a;if(ts(a))return Xr;if(Wn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Wn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=oF(a);var f=XK.test(a);return f||eG.test(a)?LG(a.slice(2),f?2:8):WK.test(a)?Xr:+a}function $L(a){return wo(a,xi(a))}function N3(a){return a?Vc(Lt(a),-_n,_n):a===0?a:0}function yn(a){return a==null?"":es(a)}var E3=pd(function(a,c){if(hf(c)||ki(c)){wo(c,Ur(c),a);return}for(var f in c)On.call(c,f)&&cf(a,f,c[f])}),qL=pd(function(a,c){wo(c,xi(c),a)}),Ny=pd(function(a,c,f,E){wo(c,xi(c),a,E)}),g3=pd(function(a,c,f,E){wo(c,Ur(c),a,E)}),I3=Na(sv);function v3(a,c){var f=dd(a);return c==null?f:IF(f,c)}var _3=Bt(function(a,c){a=Fn(a);var f=-1,E=c.length,_=E>2?c[2]:e;for(_&&Ti(c[0],c[1],_)&&(E=1);++f1),L}),wo(a,Ov(a),f),E&&(f=vs(f,d|p|y,k2));for(var _=c.length;_--;)yv(f,c[_]);return f});function j3(a,c){return GL(a,hy(ct(c)))}var $3=Na(function(a,c){return a==null?{}:h2(a,c)});function GL(a,c){if(a==null)return{};var f=Kn(Ov(a),function(E){return[E]});return c=ct(c),CF(a,f,function(E,_){return c(E,_[0])})}function q3(a,c,f){c=Wu(c,a);var E=-1,_=c.length;for(_||(_=1,a=e);++E<_;){var L=a==null?e:a[Fo(c[E])];L===e&&(E=_,L=f),a=ga(L)?L.call(a):L}return a}function K3(a,c,f){return a==null?a:ff(a,c,f)}function G3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:ff(a,c,f,E)}var QL=iL(Ur),YL=iL(xi);function Q3(a,c,f){var E=Ot(a),_=E||Zu(a)||hd(a);if(c=ct(c,4),f==null){var L=a&&a.constructor;_?f=E?new L:[]:Wn(a)?f=ga(L)?dd(qT(a)):{}:f={}}return(_?Es:Ro)(a,function(M,q,X){return c(f,M,q,X)}),f}function Y3(a,c){return a==null?!0:yv(a,c)}function J3(a,c,f){return a==null?a:jF(a,c,gv(f))}function z3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:jF(a,c,gv(f),E)}function Td(a){return a==null?[]:XI(a,Ur(a))}function H3(a){return a==null?[]:XI(a,xi(a))}function W3(a,c,f){return f===e&&(f=c,c=e),f!==e&&(f=Os(f),f=f===f?f:0),c!==e&&(c=Os(c),c=c===c?c:0),Vc(Os(a),c,f)}function X3(a,c,f){return c=Ia(c),f===e?(f=c,c=0):f=Ia(f),a=Os(a),i2(a,c,f)}function Z3(a,c,f){if(f&&typeof f!="boolean"&&Ti(a,c,f)&&(c=f=e),f===e&&(typeof c=="boolean"?(f=c,c=e):typeof a=="boolean"&&(f=a,a=e)),a===e&&c===e?(a=0,c=1):(a=Ia(a),c===e?(c=a,a=0):c=Ia(c)),a>c){var E=a;a=c,c=E}if(f||a%1||c%1){var _=yF();return Zr(a+_*(c-a+FG("1e-"+((_+"").length-1))),c)}return mv(a,c)}var ez=fd(function(a,c,f){return c=c.toLowerCase(),a+(f?JL(c):c)});function JL(a){return jv(yn(a).toLowerCase())}function zL(a){return a=yn(a),a&&a.replace(nG,KG).replace(IG,"")}function tz(a,c,f){a=yn(a),c=es(c);var E=a.length;f=f===e?E:Vc(Lt(f),0,E);var _=f;return f-=c.length,f>=0&&a.slice(f,_)==c}function nz(a){return a=yn(a),a&&CK.test(a)?a.replace(Sw,GG):a}function rz(a){return a=yn(a),a&&$K.test(a)?a.replace(CI,"\\$&"):a}var iz=fd(function(a,c,f){return a+(f?"-":"")+c.toLowerCase()}),sz=fd(function(a,c,f){return a+(f?" ":"")+c.toLowerCase()}),oz=XF("toLowerCase");function az(a,c,f){a=yn(a),c=Lt(c);var E=c?ad(a):0;if(!c||E>=c)return a;var _=(c-E)/2;return oy(YT(_),f)+a+oy(QT(_),f)}function uz(a,c,f){a=yn(a),c=Lt(c);var E=c?ad(a):0;return c&&E>>0,f?(a=yn(a),a&&(typeof c=="string"||c!=null&&!Mv(c))&&(c=es(c),!c&&od(a))?Xu(Zs(a),0,f):a.split(c,f)):[]}var hz=fd(function(a,c,f){return a+(f?" ":"")+jv(c)});function Tz(a,c,f){return a=yn(a),f=f==null?0:Vc(Lt(f),0,a.length),c=es(c),a.slice(f,f+c.length)==c}function yz(a,c,f){var E=F.templateSettings;f&&Ti(a,c,f)&&(c=e),a=yn(a),c=Ny({},c,E,sL);var _=Ny({},c.imports,E.imports,sL),L=Ur(_),M=XI(_,L),q,X,Te=0,Ne=c.interpolate||FT,Ie="__p += '",Re=ev((c.escape||FT).source+"|"+Ne.source+"|"+(Ne===Dw?HK:FT).source+"|"+(c.evaluate||FT).source+"|$","g"),Ye="//# sourceURL="+(On.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SG+"]")+` +`)}function q2(a){return Ot(a)||Kc(a)||!!(hw&&a&&a[hw])}function Ea(a,c){var f=typeof a;return c=c==null?_n:c,!!c&&(f=="number"||f!="symbol"&&tG.test(a))&&a>-1&&a%1==0&&a0){if(++c>=he)return arguments[0]}else c=0;return a.apply(e,arguments)}}function ly(a,c){var f=-1,E=a.length,_=E-1;for(c=c===e?E:c;++f1?a[c-1]:e;return f=typeof f=="function"?(a.pop(),f):e,OL(a,f)});function SL(a){var c=w(a);return c.__chain__=!0,c}function eJ(a,c){return c(a),a}function dy(a,c){return c(a)}var tJ=Na(function(a){var c=a.length,f=c?a[0]:0,E=this.__wrapped__,_=function(L){return sv(L,a)};return c>1||this.__actions__.length||!(E instanceof Kt)||!Ea(f)?this.thru(_):(E=E.slice(f,+f+(c?1:0)),E.__actions__.push({func:dy,args:[_],thisArg:e}),new Is(E,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function nJ(){return SL(this)}function rJ(){return new Is(this.value(),this.__chain__)}function iJ(){this.__values__===e&&(this.__values__=VL(this.value()));var a=this.__index__>=this.__values__.length,c=a?e:this.__values__[this.__index__++];return{done:a,value:c}}function sJ(){return this}function oJ(a){for(var c,f=this;f instanceof HT;){var E=EL(f);E.__index__=0,E.__values__=e,c?_.__wrapped__=E:c=E;var _=E;f=f.__wrapped__}return _.__wrapped__=a,c}function aJ(){var a=this.__wrapped__;if(a instanceof Kt){var c=a;return this.__actions__.length&&(c=new Kt(this)),c=c.reverse(),c.__actions__.push({func:dy,args:[Pv],thisArg:e}),new Is(c,this.__chain__)}return this.thru(Pv)}function uJ(){return $w(this.__wrapped__,this.__actions__)}var cJ=ry(function(a,c,f){On.call(a,f)?++a[f]:Ta(a,f,1)});function lJ(a,c,f){var E=Ot(a)?tw:e2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}function dJ(a,c){var f=Ot(a)?Ku:Ow;return f(a,ct(c,3))}var pJ=Zw(gL),fJ=Zw(IL);function mJ(a,c){return Yr(py(a,c),1)}function hJ(a,c){return Yr(py(a,c),vn)}function TJ(a,c,f){return f=f===e?1:Lt(f),Yr(py(a,c),f)}function DL(a,c){var f=Ot(a)?Es:zu;return f(a,ct(c,3))}function AL(a,c){var f=Ot(a)?xG:bw;return f(a,ct(c,3))}var yJ=ry(function(a,c,f){On.call(a,f)?a[f].push(c):Ta(a,f,[c])});function NJ(a,c,f,E){a=ki(a)?a:Td(a),f=f&&!E?Lt(f):0;var _=a.length;return f<0&&(f=Ar(_+f,0)),yy(a)?f<=_&&a.indexOf(c,f)>-1:!!_&&sd(a,c,f)>-1}var EJ=Bt(function(a,c,f){var E=-1,_=typeof c=="function",L=ki(a)?oe(a.length):[];return zu(a,function(M){L[++E]=_?Xi(c,M,f):df(M,c,f)}),L}),gJ=ry(function(a,c,f){Ta(a,f,c)});function py(a,c){var f=Ot(a)?Gn:ww;return f(a,ct(c,3))}function IJ(a,c,f,E){return a==null?[]:(Ot(c)||(c=c==null?[]:[c]),f=E?e:f,Ot(f)||(f=f==null?[]:[f]),xw(a,c,f))}var vJ=ry(function(a,c,f){a[f?0:1].push(c)},function(){return[[],[]]});function _J(a,c,f){var E=Ot(a)?QI:sw,_=arguments.length<3;return E(a,ct(c,4),f,_,zu)}function bJ(a,c,f){var E=Ot(a)?CG:sw,_=arguments.length<3;return E(a,ct(c,4),f,_,bw)}function OJ(a,c){var f=Ot(a)?Ku:Ow;return f(a,hy(ct(c,3)))}function SJ(a){var c=Ot(a)?gw:N2;return c(a)}function DJ(a,c,f){(f?Ti(a,c,f):c===e)?c=1:c=Lt(c);var E=Ot(a)?zQ:E2;return E(a,c)}function AJ(a){var c=Ot(a)?HQ:I2;return c(a)}function RJ(a){if(a==null)return 0;if(ki(a))return yy(a)?ad(a):a.length;var c=ei(a);return c==Qe||c==Gr?a.size:dv(a).length}function FJ(a,c,f){var E=Ot(a)?YI:v2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}var wJ=Bt(function(a,c){if(a==null)return[];var f=c.length;return f>1&&Ti(a,c[0],c[1])?c=[]:f>2&&Ti(c[0],c[1],c[2])&&(c=[c[0]]),xw(a,Yr(c,1),[])}),fy=dQ||function(){return Cr.Date.now()};function LJ(a,c){if(typeof c!="function")throw new gs(i);return a=Lt(a),function(){if(--a<1)return c.apply(this,arguments)}}function RL(a,c,f){return c=f?e:c,c=a&&c==null?a.length:c,ya(a,ye,e,e,e,e,c)}function FL(a,c){var f;if(typeof c!="function")throw new gs(i);return a=Lt(a),function(){return--a>0&&(f=c.apply(this,arguments)),a<=1&&(c=e),f}}var xv=Bt(function(a,c,f){var E=b;if(f.length){var _=Qu(f,md(xv));E|=se}return ya(a,E,c,f,_)}),wL=Bt(function(a,c,f){var E=b|C;if(f.length){var _=Qu(f,md(wL));E|=se}return ya(c,E,a,f,_)});function LL(a,c,f){c=f?e:c;var E=ya(a,Q,e,e,e,e,e,c);return E.placeholder=LL.placeholder,E}function PL(a,c,f){c=f?e:c;var E=ya(a,re,e,e,e,e,e,c);return E.placeholder=PL.placeholder,E}function kL(a,c,f){var E,_,L,M,q,X,Te=0,Ne=!1,Ie=!1,Re=!0;if(typeof a!="function")throw new gs(i);c=Os(c)||0,Xn(f)&&(Ne=!!f.leading,Ie="maxWait"in f,L=Ie?Ar(Os(f.maxWait)||0,c):L,Re="trailing"in f?!!f.trailing:Re);function Ye(hr){var no=E,va=_;return E=_=e,Te=hr,M=a.apply(va,no),M}function lt(hr){return Te=hr,q=Tf($t,c),Ne?Ye(hr):M}function Ut(hr){var no=hr-X,va=hr-Te,ZL=c-no;return Ie?Zr(ZL,L-va):ZL}function dt(hr){var no=hr-X,va=hr-Te;return X===e||no>=c||no<0||Ie&&va>=L}function $t(){var hr=fy();if(dt(hr))return Wt(hr);q=Tf($t,Ut(hr))}function Wt(hr){return q=e,Re&&E?Ye(hr):(E=_=e,M)}function ns(){q!==e&&Kw(q),Te=0,E=X=_=q=e}function yi(){return q===e?M:Wt(fy())}function rs(){var hr=fy(),no=dt(hr);if(E=arguments,_=this,X=hr,no){if(q===e)return lt(X);if(Ie)return Kw(q),q=Tf($t,c),Ye(X)}return q===e&&(q=Tf($t,c)),M}return rs.cancel=ns,rs.flush=yi,rs}var PJ=Bt(function(a,c){return _w(a,1,c)}),kJ=Bt(function(a,c,f){return _w(a,Os(c)||0,f)});function xJ(a){return ya(a,ht)}function my(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new gs(i);var f=function(){var E=arguments,_=c?c.apply(this,E):E[0],L=f.cache;if(L.has(_))return L.get(_);var M=a.apply(this,E);return f.cache=L.set(_,M)||L,M};return f.cache=new(my.Cache||ha),f}my.Cache=ha;function hy(a){if(typeof a!="function")throw new gs(i);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function CJ(a){return FL(2,a)}var UJ=_2(function(a,c){c=c.length==1&&Ot(c[0])?Gn(c[0],Zi(ct())):Gn(Yr(c,1),Zi(ct()));var f=c.length;return Bt(function(E){for(var _=-1,L=Zr(E.length,f);++_=c}),Kc=Aw(function(){return arguments}())?Aw:function(a){return ir(a)&&On.call(a,"callee")&&!mw.call(a,"callee")},Ot=oe.isArray,XJ=zF?Zi(zF):o2;function ki(a){return a!=null&&Ty(a.length)&&!ga(a)}function mr(a){return ir(a)&&ki(a)}function ZJ(a){return a===!0||a===!1||ir(a)&&hi(a)==je}var Zu=fQ||Yv,e3=HF?Zi(HF):a2;function t3(a){return ir(a)&&a.nodeType===1&&!yf(a)}function n3(a){if(a==null)return!0;if(ki(a)&&(Ot(a)||typeof a=="string"||typeof a.splice=="function"||Zu(a)||hd(a)||Kc(a)))return!a.length;var c=ei(a);if(c==Qe||c==Gr)return!a.size;if(hf(a))return!dv(a).length;for(var f in a)if(On.call(a,f))return!1;return!0}function r3(a,c){return pf(a,c)}function i3(a,c,f){f=typeof f=="function"?f:e;var E=f?f(a,c):e;return E===e?pf(a,c,e,f):!!E}function Uv(a){if(!ir(a))return!1;var c=hi(a);return c==we||c==ee||typeof a.message=="string"&&typeof a.name=="string"&&!yf(a)}function s3(a){return typeof a=="number"&&Tw(a)}function ga(a){if(!Xn(a))return!1;var c=hi(a);return c==He||c==jt||c==ce||c==rd}function CL(a){return typeof a=="number"&&a==Lt(a)}function Ty(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=_n}function Xn(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function ir(a){return a!=null&&typeof a=="object"}var UL=WF?Zi(WF):c2;function o3(a,c){return a===c||lv(a,c,Dv(c))}function a3(a,c,f){return f=typeof f=="function"?f:e,lv(a,c,Dv(c),f)}function u3(a){return ML(a)&&a!=+a}function c3(a){if(Q2(a))throw new vt(r);return Rw(a)}function l3(a){return a===null}function d3(a){return a==null}function ML(a){return typeof a=="number"||ir(a)&&hi(a)==Ht}function yf(a){if(!ir(a)||hi(a)!=Li)return!1;var c=qT(a);if(c===null)return!0;var f=On.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&BT.call(f)==aQ}var Mv=XF?Zi(XF):l2;function p3(a){return CL(a)&&a>=-_n&&a<=_n}var BL=ZF?Zi(ZF):d2;function yy(a){return typeof a=="string"||!Ot(a)&&ir(a)&&hi(a)==Wi}function ts(a){return typeof a=="symbol"||ir(a)&&hi(a)==cn}var hd=ew?Zi(ew):p2;function f3(a){return a===e}function m3(a){return ir(a)&&ei(a)==kc}function h3(a){return ir(a)&&hi(a)==Ao}var T3=ay(pv),y3=ay(function(a,c){return a<=c});function VL(a){if(!a)return[];if(ki(a))return yy(a)?Zs(a):Pi(a);if(rf&&a[rf])return zG(a[rf]());var c=ei(a),f=c==Qe?ZI:c==Gr?CT:Td;return f(a)}function Ia(a){if(!a)return a===0?a:0;if(a=Os(a),a===vn||a===-vn){var c=a<0?-1:1;return c*mi}return a===a?a:0}function Lt(a){var c=Ia(a),f=c%1;return c===c?f?c-f:c:0}function jL(a){return a?Vc(Lt(a),0,Pn):0}function Os(a){if(typeof a=="number")return a;if(ts(a))return Xr;if(Xn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Xn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=ow(a);var f=XK.test(a);return f||eG.test(a)?LG(a.slice(2),f?2:8):WK.test(a)?Xr:+a}function $L(a){return Fo(a,xi(a))}function N3(a){return a?Vc(Lt(a),-_n,_n):a===0?a:0}function yn(a){return a==null?"":es(a)}var E3=pd(function(a,c){if(hf(c)||ki(c)){Fo(c,Ur(c),a);return}for(var f in c)On.call(c,f)&&cf(a,f,c[f])}),qL=pd(function(a,c){Fo(c,xi(c),a)}),Ny=pd(function(a,c,f,E){Fo(c,xi(c),a,E)}),g3=pd(function(a,c,f,E){Fo(c,Ur(c),a,E)}),I3=Na(sv);function v3(a,c){var f=dd(a);return c==null?f:Iw(f,c)}var _3=Bt(function(a,c){a=wn(a);var f=-1,E=c.length,_=E>2?c[2]:e;for(_&&Ti(c[0],c[1],_)&&(E=1);++f1),L}),Fo(a,Ov(a),f),E&&(f=vs(f,d|p|y,k2));for(var _=c.length;_--;)yv(f,c[_]);return f});function j3(a,c){return GL(a,hy(ct(c)))}var $3=Na(function(a,c){return a==null?{}:h2(a,c)});function GL(a,c){if(a==null)return{};var f=Gn(Ov(a),function(E){return[E]});return c=ct(c),Cw(a,f,function(E,_){return c(E,_[0])})}function q3(a,c,f){c=Wu(c,a);var E=-1,_=c.length;for(_||(_=1,a=e);++E<_;){var L=a==null?e:a[wo(c[E])];L===e&&(E=_,L=f),a=ga(L)?L.call(a):L}return a}function K3(a,c,f){return a==null?a:ff(a,c,f)}function G3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:ff(a,c,f,E)}var QL=iL(Ur),YL=iL(xi);function Q3(a,c,f){var E=Ot(a),_=E||Zu(a)||hd(a);if(c=ct(c,4),f==null){var L=a&&a.constructor;_?f=E?new L:[]:Xn(a)?f=ga(L)?dd(qT(a)):{}:f={}}return(_?Es:Ro)(a,function(M,q,X){return c(f,M,q,X)}),f}function Y3(a,c){return a==null?!0:yv(a,c)}function J3(a,c,f){return a==null?a:jw(a,c,gv(f))}function z3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:jw(a,c,gv(f),E)}function Td(a){return a==null?[]:XI(a,Ur(a))}function H3(a){return a==null?[]:XI(a,xi(a))}function W3(a,c,f){return f===e&&(f=c,c=e),f!==e&&(f=Os(f),f=f===f?f:0),c!==e&&(c=Os(c),c=c===c?c:0),Vc(Os(a),c,f)}function X3(a,c,f){return c=Ia(c),f===e?(f=c,c=0):f=Ia(f),a=Os(a),i2(a,c,f)}function Z3(a,c,f){if(f&&typeof f!="boolean"&&Ti(a,c,f)&&(c=f=e),f===e&&(typeof c=="boolean"?(f=c,c=e):typeof a=="boolean"&&(f=a,a=e)),a===e&&c===e?(a=0,c=1):(a=Ia(a),c===e?(c=a,a=0):c=Ia(c)),a>c){var E=a;a=c,c=E}if(f||a%1||c%1){var _=yw();return Zr(a+_*(c-a+wG("1e-"+((_+"").length-1))),c)}return mv(a,c)}var ez=fd(function(a,c,f){return c=c.toLowerCase(),a+(f?JL(c):c)});function JL(a){return jv(yn(a).toLowerCase())}function zL(a){return a=yn(a),a&&a.replace(nG,KG).replace(IG,"")}function tz(a,c,f){a=yn(a),c=es(c);var E=a.length;f=f===e?E:Vc(Lt(f),0,E);var _=f;return f-=c.length,f>=0&&a.slice(f,_)==c}function nz(a){return a=yn(a),a&&CK.test(a)?a.replace(SF,GG):a}function rz(a){return a=yn(a),a&&$K.test(a)?a.replace(CI,"\\$&"):a}var iz=fd(function(a,c,f){return a+(f?"-":"")+c.toLowerCase()}),sz=fd(function(a,c,f){return a+(f?" ":"")+c.toLowerCase()}),oz=Xw("toLowerCase");function az(a,c,f){a=yn(a),c=Lt(c);var E=c?ad(a):0;if(!c||E>=c)return a;var _=(c-E)/2;return oy(YT(_),f)+a+oy(QT(_),f)}function uz(a,c,f){a=yn(a),c=Lt(c);var E=c?ad(a):0;return c&&E>>0,f?(a=yn(a),a&&(typeof c=="string"||c!=null&&!Mv(c))&&(c=es(c),!c&&od(a))?Xu(Zs(a),0,f):a.split(c,f)):[]}var hz=fd(function(a,c,f){return a+(f?" ":"")+jv(c)});function Tz(a,c,f){return a=yn(a),f=f==null?0:Vc(Lt(f),0,a.length),c=es(c),a.slice(f,f+c.length)==c}function yz(a,c,f){var E=w.templateSettings;f&&Ti(a,c,f)&&(c=e),a=yn(a),c=Ny({},c,E,sL);var _=Ny({},c.imports,E.imports,sL),L=Ur(_),M=XI(_,L),q,X,Te=0,Ne=c.interpolate||wT,Ie="__p += '",Re=ev((c.escape||wT).source+"|"+Ne.source+"|"+(Ne===DF?HK:wT).source+"|"+(c.evaluate||wT).source+"|$","g"),Ye="//# sourceURL="+(On.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SG+"]")+` `;a.replace(Re,function(dt,$t,Wt,ns,yi,rs){return Wt||(Wt=ns),Ie+=a.slice(Te,rs).replace(rG,QG),$t&&(q=!0,Ie+=`' + __e(`+$t+`) + '`),yi&&(X=!0,Ie+=`'; @@ -654,16 +654,16 @@ __p += '`),Wt&&(Ie+=`' + `;var lt=On.call(c,"variable")&&c.variable;if(!lt)Ie=`with (obj) { `+Ie+` } -`;else if(JK.test(lt))throw new vt(s);Ie=(X?Ie.replace(qn,""):Ie).replace(bn,"$1").replace(kK,"$1;"),Ie="function("+(lt||"obj")+`) { +`;else if(JK.test(lt))throw new vt(s);Ie=(X?Ie.replace(Kn,""):Ie).replace(bn,"$1").replace(kK,"$1;"),Ie="function("+(lt||"obj")+`) { `+(lt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var Ut=WL(function(){return pn(L,Ye+"return "+Ie).apply(e,M)});if(Ut.source=Ie,Uv(Ut))throw Ut;return Ut}function Nz(a){return yn(a).toLowerCase()}function Ez(a){return yn(a).toUpperCase()}function gz(a,c,f){if(a=yn(a),a&&(f||c===e))return oF(a);if(!a||!(c=es(c)))return a;var E=Zs(a),_=Zs(c),L=aF(E,_),M=uF(E,_)+1;return Xu(E,L,M).join("")}function Iz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.slice(0,lF(a)+1);if(!a||!(c=es(c)))return a;var E=Zs(a),_=uF(E,Zs(c))+1;return Xu(E,0,_).join("")}function vz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.replace(UI,"");if(!a||!(c=es(c)))return a;var E=Zs(a),_=aF(E,Zs(c));return Xu(E,_).join("")}function _z(a,c){var f=xt,E=B;if(Wn(c)){var _="separator"in c?c.separator:_;f="length"in c?Lt(c.length):f,E="omission"in c?es(c.omission):E}a=yn(a);var L=a.length;if(od(a)){var M=Zs(a);L=M.length}if(f>=L)return a;var q=f-ad(E);if(q<1)return E;var X=M?Xu(M,0,q).join(""):a.slice(0,q);if(_===e)return X+E;if(M&&(q+=X.length-q),Mv(_)){if(a.slice(q).search(_)){var Te,Ne=X;for(_.global||(_=ev(_.source,yn(Aw.exec(_))+"g")),_.lastIndex=0;Te=_.exec(Ne);)var Ie=Te.index;X=X.slice(0,Ie===e?q:Ie)}}else if(a.indexOf(es(_),q)!=q){var Re=X.lastIndexOf(_);Re>-1&&(X=X.slice(0,Re))}return X+E}function bz(a){return a=yn(a),a&&xK.test(a)?a.replace(Ow,ZG):a}var Oz=fd(function(a,c,f){return a+(f?" ":"")+c.toUpperCase()}),jv=XF("toUpperCase");function HL(a,c,f){return a=yn(a),c=f?e:c,c===e?JG(a)?nQ(a):BG(a):a.match(c)||[]}var WL=Bt(function(a,c){try{return Xi(a,e,c)}catch(f){return Uv(f)?f:new vt(f)}}),Sz=Na(function(a,c){return Es(c,function(f){f=Fo(f),Ta(a,f,xv(a[f],a))}),a});function Dz(a){var c=a==null?0:a.length,f=ct();return a=c?Kn(a,function(E){if(typeof E[1]!="function")throw new gs(i);return[f(E[0]),E[1]]}):[],Bt(function(E){for(var _=-1;++__n)return[];var f=Pn,E=Zr(a,Pn);c=ct(c),a-=Pn;for(var _=WI(E,c);++f0||c<0)?new Kt(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),c!==e&&(c=Lt(c),f=c<0?f.dropRight(-c):f.take(c-a)),f)},Kt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Kt.prototype.toArray=function(){return this.take(Pn)},Ro(Kt.prototype,function(a,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),_=F[E?"take"+(c=="last"?"Right":""):c],L=E||/^find/.test(c);_&&(F.prototype[c]=function(){var M=this.__wrapped__,q=E?[1]:arguments,X=M instanceof Kt,Te=q[0],Ne=X||Ot(M),Ie=function($t){var Wt=_.apply(F,Gu([$t],q));return E&&Re?Wt[0]:Wt};Ne&&f&&typeof Te=="function"&&Te.length!=1&&(X=Ne=!1);var Re=this.__chain__,Ye=!!this.__actions__.length,lt=L&&!Re,Ut=X&&!Ye;if(!L&&Ne){M=Ut?M:new Kt(this);var dt=a.apply(M,q);return dt.__actions__.push({func:dy,args:[Ie],thisArg:e}),new Is(dt,Re)}return lt&&Ut?a.apply(this,q):(dt=this.thru(Ie),lt?E?dt.value()[0]:dt.value():dt)})}),Es(["pop","push","shift","sort","splice","unshift"],function(a){var c=UT[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);F.prototype[a]=function(){var _=arguments;if(E&&!this.__chain__){var L=this.value();return c.apply(Ot(L)?L:[],_)}return this[f](function(M){return c.apply(Ot(M)?M:[],_)})}}),Ro(Kt.prototype,function(a,c){var f=F[c];if(f){var E=f.name+"";On.call(ld,E)||(ld[E]=[]),ld[E].push({name:c,func:f})}}),ld[iy(e,C).name]=[{name:"wrapper",func:e}],Kt.prototype.clone=bQ,Kt.prototype.reverse=OQ,Kt.prototype.value=SQ,F.prototype.at=tJ,F.prototype.chain=nJ,F.prototype.commit=rJ,F.prototype.next=iJ,F.prototype.plant=oJ,F.prototype.reverse=aJ,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=uJ,F.prototype.first=F.prototype.head,rf&&(F.prototype[rf]=sJ),F},Yu=rQ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Cr._=Yu,define(function(){return Yu})):Cc?((Cc.exports=Yu)._=Yu,qI._=Yu):Cr._=Yu}).call(Yp)});var wq=V(Wl=>{"use strict";m();T();h();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.FederationFactory=void 0;Wl.federateSubgraphs=lde;Wl.federateSubgraphsWithContracts=dde;Wl.federateSubgraphsContract=pde;var et=(we(),xe(Me)),Hl=Ca(),_o=Vi(),Xe=co(),Jp=_R(),Ge=bi(),Oe=ds(),oI=Hg(),gr=_c(),ade=VR(),ude=jl(),Sq=Vh(),Ae=jp(),cde=qR(),Dq=Oq(),Aq=sI(),Rq=$m(),aI=class{constructor(t){A(this,"authorizationDataByParentTypeName");A(this,"concreteTypeNamesByAbstractTypeName");A(this,"clientDefinitions",[gr.DEPRECATED_DEFINITION]);A(this,"currentSubgraphName","");A(this,"entityDataByTypeName");A(this,"entityInterfaceFederationDataByTypeName");A(this,"errors",[]);A(this,"fieldConfigurationByFieldPath",new Map);A(this,"graphEdges",new Set);A(this,"graphPaths",new Map);A(this,"inaccessiblePaths",new Set);A(this,"internalGraph");A(this,"internalSubgraphBySubgraphName");A(this,"invalidOrScopesHostPaths",new Set);A(this,"isVersionTwo",!1);A(this,"namedInputValueTypeNames",new Set);A(this,"namedOutputTypeNames",new Set);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"parentTagDataByTypeName",new Map);A(this,"pathsByNamedTypeName",new Map);A(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Ge.AUTHENTICATED,gr.AUTHENTICATED_DEFINITION],[Ge.DEPRECATED,gr.DEPRECATED_DEFINITION],[Ge.INACCESSIBLE,gr.INACCESSIBLE_DEFINITION],[Ge.REQUIRES_SCOPES,gr.REQUIRES_SCOPES_DEFINITION],[Ge.TAG,gr.TAG_DEFINITION]]));A(this,"persistedDirectiveDefinitions",new Set([Ge.AUTHENTICATED,Ge.DEPRECATED,Ge.INACCESSIBLE,Ge.TAG,Ge.REQUIRES_SCOPES]));A(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);A(this,"routerDefinitions",[gr.DEPRECATED_DEFINITION,gr.TAG_DEFINITION]);A(this,"shareableErrorTypeNames",new Map);A(this,"subscriptionFilterDataByFieldPath",new Map);A(this,"isMaxDepth",!1);A(this,"tagNamesByPath",new Map);A(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Ae.isNodeDataInaccessible)(t),i=new Map,s=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,_o.stringToNamedTypeNode)(u));let l=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Ge.PARENT_DEFINITION_DATA);if(l.kind!==et.Kind.INTERFACE_TYPE_DEFINITION){s.set(l.name,(0,Oe.kindToTypeString)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,N]of l.fieldDataByFieldName){let I=!1,b=t.fieldDataByFieldName.get(y);if(!b){p=!0,d.unimplementedFields.push(y);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,oI.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Ae.isTypeValidImplementation)(N.node.type,b.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,I=!0,C.implementedResponseType=(0,oI.printTypeNode)(b.node.type));let j=new Set;for(let[Q,re]of N.argumentDataByArgumentName){let se=re.node;j.add(Q);let pe=(o=b.argumentDataByArgumentName.get(Q))==null?void 0:o.node;if(!pe){p=!0,I=!0,C.unimplementedArguments.add(Q);continue}let ye=(0,oI.printTypeNode)(pe.type),ke=(0,oI.printTypeNode)(se.type);ke!==ye&&(p=!0,I=!0,C.invalidImplementedArguments.push({actualType:ye,argumentName:Q,expectedType:ke}))}for(let[Q,re]of b.argumentDataByArgumentName){let se=re.node;j.has(Q)||se.type.kind===et.Kind.NON_NULL_TYPE&&(p=!0,I=!0,C.invalidAdditionalArguments.add(Q))}!r&&b.isInaccessible&&!N.isInaccessible&&(p=!0,I=!0,C.isInaccessible=!0),I&&d.invalidFieldImplementations.set(y,C)}p&&i.set(u,d)}return s.size>0&&this.errors.push((0,Xe.invalidImplementedTypeError)(t.name,s)),i.size&&this.errors.push((0,Xe.invalidInterfaceImplementationError)(t.node.name.value,(0,Oe.kindToTypeString)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Oe.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,s=i.get(n.typeName);if(!s||s.kind!==et.Kind.OBJECT_TYPE_DEFINITION)throw(0,Xe.incompatibleParentKindFatalError)(n.typeName,et.Kind.OBJECT_TYPE_DEFINITION,(s==null?void 0:s.kind)||et.Kind.NULL);let o=(0,Oe.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByParentTypeName"),u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:n.keyFieldSets,graphNode:l,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i});for(let[y,N]of this.entityInterfaceFederationDataByTypeName){if(!((p=N.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let I=this.entityDataByTypeName.get(y);I&&(0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:I.keyFieldSets,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of u)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let s=t.parentDefinitionDataByTypeName,o=s.get(n);if(!o||o.kind!==et.Kind.INTERFACE_TYPE_DEFINITION)throw(0,Xe.incompatibleParentKindFatalError)(n,et.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||et.Kind.NULL);let u=(0,Oe.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByParentTypeName"),l=[];if((0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:t.conditionalFieldDataByCoordinates,configurationData:u,fieldSets:r.keyFieldSets,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:s,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ae.MergeMethod.CONSISTENT:Ae.MergeMethod.INTERSECTION:Ae.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByPath){let r=t.split(".");if(r.length<1)continue;let i=(0,Oe.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Jp.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let s=(0,Oe.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Jp.newChildTagData)(r[1]));for(let l of n)s.tagNames.add(l);break;case 3:let o=(0,Oe.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Jp.newChildTagData)(r[1])),u=(0,Oe.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),s=i||n,o=`${n.parentTypeName}.${n.name}`;(0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Ae.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(o),this.recordTagNamesByPath(s,o),!i){n.node={directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name)},t.set(n.name,n);return}i.appearances+=1,(0,Ae.setLongestDescription)(i,n)}upsertInputValueData(t,n,r){let i=t.get(n.name),s=i||n;if((0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s,r||s.renamedPath),!i){n.node={directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name),type:n.type},t.set(n.name,n);return}(0,Ae.setLongestDescription)(i,n),(0,Oe.addIterableValuesToSet)(n.requiredSubgraphNames,i.requiredSubgraphNames),(0,Oe.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames);let{typeErrors:o,typeNode:u}=(0,Aq.getMostRestrictiveMergedTypeNode)(i.type,n.type,i.originalPath,this.errors);if(u)i.type=u;else{if(!o||o.length<2)throw(0,Xe.fieldTypeMergeFatalError)(i.name);i.isArgument?this.errors.push((0,Xe.incompatibleArgumentTypesError)(i.name,i.renamedPath,o[0],o[1])):this.errors.push((0,Xe.incompatibleChildTypesError)(i.renamedPath,o[0],o[1]))}(0,Ae.compareAndValidateInputValueDefaultValues)(i,n,this.errors)}handleArgumentInaccessibility(t,n,r,i){if(t){this.inaccessiblePaths.add(r);return}(0,Ae.isNodeDataInaccessible)(n)&&((0,Ae.isTypeRequired)(n.type)?this.errors.push((0,Xe.inaccessibleRequiredArgumentError)(n.name,r,i)):this.inaccessiblePaths.add(r))}handleSubscriptionFilterDirective(t,n,r){let i=t.directivesByDirectiveName.get(Ge.SUBSCRIPTION_FILTER);if(i){let s=(0,Oe.getSingleSetEntry)(t.subgraphNames);if(s===void 0){this.errors.push((0,Xe.unknownFieldSubgraphNameError)(n));return}this.subscriptionFilterDataByFieldPath.set(n,{directive:i[0],fieldData:r||t,directiveSubgraphName:s})}}upsertFieldData(t,n,r){let i=`${n.renamedParentTypeName}.${n.name}`;(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,n.namedTypeName,()=>new Set).add(i),this.namedOutputTypeNames.add(n.namedTypeName);let s=t.get(n.name),o=s||n;this.handleSubscriptionFilterDirective(n,i,o),(0,Ae.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Ae.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(i),this.recordTagNamesByPath(o,i),!s){t.set(n.name,n),n.node={arguments:[],directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name),type:n.type};for(let[p,y]of n.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,_o.stringToNameNode)(y.name),type:y.type};let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Ae.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.handleArgumentInaccessibility(r||u,y,y.renamedPath,i),this.recordTagNamesByPath(y,`${i}.${p}`)}return}let{typeErrors:l,typeNode:d}=(0,Aq.getLeastRestrictiveMergedTypeNode)(s.type,n.type,i,this.errors);if(d)s.type=d;else{if(!l||l.length<2)throw(0,Xe.fieldTypeMergeFatalError)(s.name);this.errors.push((0,Xe.incompatibleChildTypesError)(i,l[0],l[1]))}for(let[p,y]of n.argumentDataByArgumentName){let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),this.handleArgumentInaccessibility(r||u,y,y.renamedPath,i),this.upsertInputValueData(s.argumentDataByArgumentName,y,`${i}.${p}`)}(0,Ae.setLongestDescription)(s,n),s.isInaccessible||(s.isInaccessible=n.isInaccessible),(0,Oe.addMapEntries)(n.isExternalBySubgraphName,s.isExternalBySubgraphName),(0,Oe.addMapEntries)(n.isShareableBySubgraphName,s.isShareableBySubgraphName),(0,Oe.addIterableValuesToSet)(n.subgraphNames,s.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessiblePaths.has(r)||n.push(i);return n}recordTagNamesByPath(t,n){let r=n||t.name;if(t.persistedDirectivesData.tags.size>0){let i=(0,Oe.getValueOrDefault)(this.tagNamesByPath,r,()=>new Set);for(let s of t.persistedDirectivesData.tags.keys())i.add(s)}}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),s=i||t;(0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s);let o=(0,Ae.isNodeDataInaccessible)(s);if(o&&this.inaccessiblePaths.add(t.name),r&&r.interfaceObjectSubgraphs.has(n)&&(t.kind=et.Kind.INTERFACE_TYPE_DEFINITION),!i)switch(t.node={kind:t.kind,name:(0,_o.stringToNameNode)(t.name)},this.parentDefinitionDataByTypeName.set(t.name,t),t.kind){case et.Kind.ENUM_TYPE_DEFINITION:for(let[u,l]of t.enumValueDataByValueName){let d=`${t.name}.${u}`;l.node={directives:[],kind:l.node.kind,name:(0,_o.stringToNameNode)(l.name)},(0,Ae.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,d),(0,Ae.isNodeDataInaccessible)(l)&&this.inaccessiblePaths.add(d)}return;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let[u,l]of t.inputValueDataByValueName){l.node={directives:[],kind:l.node.kind,name:(0,_o.stringToNameNode)(l.name),type:l.type};let d=(0,Hl.getTypeNodeNamedTypeName)(l.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,d,()=>new Set).add(l.renamedPath),this.namedInputValueTypeNames.add(d),(0,Ae.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,`${t.name}.${u}`),(o||(0,Ae.isNodeDataInaccessible)(l))&&this.inaccessiblePaths.add(l.renamedPath)}return;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:(0,Ae.isParentDataRootType)(t)&&(t.extensionType=Sq.ExtensionType.NONE);for(let u of t.fieldDataByFieldName.values()){u.node={arguments:[],directives:[],kind:u.node.kind,name:(0,_o.stringToNameNode)(u.name),type:u.type};let l=`${u.renamedParentTypeName}.${u.name}`;this.handleSubscriptionFilterDirective(u,l),(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,u.namedTypeName,()=>new Set).add(l),this.namedOutputTypeNames.add(u.namedTypeName),(0,Ae.extractPersistedDirectives)(u.persistedDirectivesData,u.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(u,l);let d=(0,Ae.isNodeDataInaccessible)(u);(o||d)&&this.inaccessiblePaths.add(l);for(let[p,y]of u.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,_o.stringToNameNode)(y.name),type:y.type};let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Ae.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(y,`${l}.${p}`),this.handleArgumentInaccessibility(o||d,y,y.renamedPath,l)}}return;default:return}if(i.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||i.kind!==et.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==et.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Xe.incompatibleParentKindMergeError)(i.name,(0,Oe.kindToTypeString)(i.kind),(0,Oe.kindToTypeString)(t.kind)));return}switch((0,Ae.setLongestDescription)(i,t),(0,Ae.setParentDataExtensionType)(i,t),i.kind){case et.Kind.ENUM_TYPE_DEFINITION:i.appearances+=1;for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(i.enumValueDataByValueName,l,o);return;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i),(0,Oe.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let[l,d]of t.inputValueDataByValueName){let p=`${t.name}.${l}`,y=(0,Hl.getTypeNodeNamedTypeName)(d.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p),this.namedInputValueTypeNames.add(y),this.upsertInputValueData(i.inputValueDataByValueName,d),this.recordTagNamesByPath(d,p),(o||(0,Ae.isNodeDataInaccessible)(d))&&this.inaccessiblePaths.add(p)}return;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i);let u=t;(0,Oe.addIterableValuesToSet)(u.implementedInterfaceTypeNames,i.implementedInterfaceTypeNames),(0,Oe.addIterableValuesToSet)(u.subgraphNames,i.subgraphNames);for(let l of u.fieldDataByFieldName.values())this.upsertFieldData(i.fieldDataByFieldName,l,o||i.isInaccessible);return;case et.Kind.UNION_TYPE_DEFINITION:(0,Oe.addMapEntries)(t.memberByMemberTypeName,i.memberByMemberTypeName);return;default:return}}propagateInaccessibilityToExistingChildren(t){switch(t.isInaccessible=!0,t.kind){case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByValueName.keys())this.inaccessiblePaths.add(`${t.name}.${n}`);break;default:for(let[n,r]of t.fieldDataByFieldName){let i=`${r.renamedParentTypeName}.${n}`;this.inaccessiblePaths.add(i);for(let s of r.argumentDataByArgumentName.values())this.inaccessiblePaths.add(s.renamedPath)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let s=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Hl.getTypeNodeNamedTypeName)(o.type)),this.upsertInputValueData(s,o);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:s,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,Ae.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let s of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Hl.getTypeNodeNamedTypeName)(s.type)),this.upsertInputValueData(i.argumentDataByArgumentName,s);(0,Ae.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Oe.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}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,cde.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)}}}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:s,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.satisfiedFieldSets.add(p),s.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,Oe.subtractSourceSetFromTargetSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Ge.PARENT_DEFINITION_DATA);if(r.kind===et.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let s=(0,Oe.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=s.configurationDataByTypeName,u=this.concreteTypeNamesByAbstractTypeName.get(t);if(!u)continue;let l=(0,Oe.getOrThrowError)(o,t,"configurationDataMap"),d=l.keys;if(!d)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames;let p=l.fieldNames,y=this.authorizationDataByParentTypeName.get(n.typeName);this.internalGraph.setSubgraphName(i);let N=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let I of u){if(o.has(I))continue;if(y){let re=(0,Oe.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,Oe.newAuthorizationData)(I));for(let se of y.fieldAuthorizationDataByFieldName.values())(0,Oe.upsertFieldAuthorizationData)(re.fieldAuthorizationDataByFieldName,se)||this.invalidOrScopesHostPaths.add(`${I}.${se.fieldName}`)}let b=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,I,Ge.PARENT_DEFINITION_DATA);if(b.kind!==et.Kind.OBJECT_TYPE_DEFINITION)continue;let C=(0,Oe.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");C.subgraphNames.add(i);let j={fieldNames:p,isRootNode:!0,keys:d,typeName:I},Q=new Set;for(let re of d.filter(se=>!se.disableEntityResolver))Q.add(re.selectionSet);for(let re of n.interfaceObjectFieldNames){if(b.fieldDataByFieldName.get(re))continue;let pe=(0,Oe.getOrThrowError)(r.fieldDataByFieldName,re,`${t}.fieldDataByFieldName`);b.fieldDataByFieldName.set(re,k({},pe))}o.set(I,j),this.handleInterfaceObjectForInternalGraph({internalSubgraph:s,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:Q,entityData:C})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Oe.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Sq.ExtensionType.NONE&&this.errors.push((0,Xe.noBaseDefinitionForExtensionError)((0,Oe.kindToTypeString)(r.kind),n)),r.kind){case et.Kind.ENUM_TYPE_DEFINITION:let i=[],s=[],o=this.getEnumValueMergeMethod(n);for(let Q of r.enumValueDataByValueName.values()){let re=(0,Ae.getNodeForRouterSchemaByData)(Q,this.persistedDirectiveDefinitionByDirectiveName,this.errors),se=(0,Ae.isNodeDataInaccessible)(Q),pe=K(k({},Q.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(Q)});switch(o){case Ae.MergeMethod.CONSISTENT:!se&&r.appearances>Q.appearances&&this.errors.push((0,Xe.incompatibleSharedEnumError)(n)),i.push(re),se||s.push(pe);break;case Ae.MergeMethod.INTERSECTION:r.appearances===Q.appearances&&(i.push(re),se||s.push(pe));break;default:i.push(re),se||s.push(pe);break}}if(r.node.values=i,this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,Ge.ENUM_VALUE));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),values:s}));break;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:let u=[],l=[],d=[];for(let[Q,re]of r.inputValueDataByValueName)if(r.subgraphNames.size===re.subgraphNames.size){if(l.push((0,Ae.getNodeWithPersistedDirectivesByInputValueData)(re,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(re))continue;d.push(K(k({},re.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(re)}))}else(0,Ae.isTypeRequired)(re.type)&&u.push({inputValueName:Q,missingSubgraphs:(0,Oe.getEntriesNotInHashSet)(r.subgraphNames,re.subgraphNames),requiredSubgraphs:[...re.requiredSubgraphNames]});if(u.length>0){this.errors.push((0,Xe.invalidRequiredInputValueError)(Ge.INPUT_OBJECT,n,u,!1));break}if(r.node.fields=l,this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(d.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,"input field"));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),fields:d}));break;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:let p=[],y=[],N=new Map,I=(0,Ae.newInvalidFieldNames)(),b=r.kind===et.Kind.OBJECT_TYPE_DEFINITION;for(let[Q,re]of r.fieldDataByFieldName){(0,Ae.pushAuthorizationDirectives)(re,this.authorizationDataByParentTypeName.get(n));let se=(0,Ae.getValidFieldArgumentNodes)(re,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);b&&(0,Ae.validateExternalAndShareable)(re,I),p.push((0,Ae.getNodeWithPersistedDirectivesByFieldData)(re,this.persistedDirectiveDefinitionByDirectiveName,se,this.errors)),!(0,Ae.isNodeDataInaccessible)(re)&&(y.push((0,Ae.getClientSchemaFieldNodeByFieldData)(re)),N.set(Q,this.fieldDataToGraphFieldData(re)))}if(b&&(I.byShareable.size>0&&this.errors.push((0,Xe.invalidFieldShareabilityError)(r,I.byShareable)),I.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Xe.allExternalFieldInstancesError)(n,I.subgraphNamesByExternalFieldName))),r.node.fields=p,this.internalGraph.initializeNode(n,N),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let C=(0,ude.isNodeQuery)(n);if((0,Ae.isNodeDataInaccessible)(r)){if(C){this.errors.push(Xe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let Q=C?Xe.noQueryRootTypeError:(0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,Ge.FIELD);this.errors.push(Q);break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),fields:y}));break;case et.Kind.SCALAR_TYPE_DEFINITION:if(gr.BASE_SCALARS.has(n))break;if(this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r)}));break;case et.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,Oe.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let j=this.getClientSchemaUnionMembers(r);if(j.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)(Ge.UNION,n,"union member type"));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),types:j}));break}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let s of n.implementedInterfaceTypeNames)this.inaccessiblePaths.has(s)||i.push((0,_o.stringToNamedTypeNode)(s));this.clientDefinitions.push(K(k({},n.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[gr.AUTHENTICATED_DEFINITION,gr.DEPRECATED_DEFINITION,gr.INACCESSIBLE_DEFINITION,gr.REQUIRES_SCOPES_DEFINITION,gr.TAG_DEFINITION,gr.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[gr.AUTHENTICATED_DEFINITION,gr.DEPRECATED_DEFINITION,gr.REQUIRES_SCOPES_DEFINITION,gr.SCOPE_SCALAR_DEFINITION])}validateReferencesOfInaccessibleType(t){let n=this.pathsByNamedTypeName.get(t.name);if(!n||n.size<1)return;let r=[];for(let i of n)this.inaccessiblePaths.has(i)||r.push(i);r.length>0&&this.errors.push((0,Xe.invalidReferencesOfInaccessibleTypeError)((0,Oe.kindToTypeString)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Ge.QUERY);if(!t||t.kind!==et.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size<1){this.errors.push(Xe.noQueryRootTypeError);return}for(let n of t.fieldDataByFieldName.values())if(!(0,Ae.isNodeDataInaccessible)(n))return;this.errors.push(Xe.noQueryRootTypeError)}validateSubscriptionFieldConditionFieldPath(t,n,r,i,s){let o=t.split(Ge.PERIOD);if(o.length<1)return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessiblePaths.has(u.renamedTypeName))return s.push((0,Xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==et.Kind.OBJECT_TYPE_DEFINITION)return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=u.fieldDataByFieldName.get(p);if(!y)return s.push((0,Xe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let N=`${u.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N,i)),[];if(this.inaccessiblePaths.has(N))return s.push((0,Xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N)),[];if(gr.BASE_SCALARS.has(y.namedTypeName)){u={kind:et.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}u=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Ge.PARENT_DEFINITION_DATA)}return(0,Ae.isLeafKind)(u.kind)?o:(s.push((0,Xe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Oe.kindToTypeString)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,s,o,u){if(i>Rq.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([Ge.FIELD_PATH,Ge.VALUES]),p=new Set,y=new Set,N=[];for(let I of t.fields){let b=I.name.value,C=s+`.${b}`;switch(b){case Ge.FIELD_PATH:{if(d.has(Ge.FIELD_PATH))d.delete(Ge.FIELD_PATH);else{l=!0,p.add(Ge.FIELD_PATH);break}if(I.value.kind!==et.Kind.STRING){N.push((0,Xe.invalidInputFieldTypeErrorMessage)(C,Ge.STRING,(0,Oe.kindToTypeString)(I.value.kind))),l=!0;break}let j=this.validateSubscriptionFieldConditionFieldPath(I.value.value,r,C,o,N);if(j.length<1){l=!0;break}n.fieldPath=j;break}case Ge.VALUES:{if(d.has(Ge.VALUES))d.delete(Ge.VALUES);else{l=!0,p.add(Ge.VALUES);break}let j=I.value.kind;if(j==et.Kind.NULL||j==et.Kind.OBJECT){N.push((0,Xe.invalidInputFieldTypeErrorMessage)(C,Ge.LIST,(0,Oe.kindToTypeString)(I.value.kind))),l=!0;break}if(j!==et.Kind.LIST){n.values=[(0,Ae.getSubscriptionFilterValue)(I.value)];break}let Q=new Set,re=[];for(let se=0;se0){N.push((0,Xe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(C,re));continue}if(Q.size<1){l=!0,N.push((0,Xe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(C));continue}n.values=[...Q];break}default:l=!0,y.add(b)}}return l?(u.push((0,Xe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(s,[...d],[...p],[...y],N)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,s,o,u){if(i>Rq.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(s,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Ge.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(s,d)),!1;let p=s+`.${d}`;switch(l.value.kind){case et.Kind.OBJECT:switch(d){case Ge.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,s+".IN",o,u);case Ge.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,s+".NOT",o,u);default:return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Ge.LIST,Ge.OBJECT)),!1}case et.Kind.LIST:{let y=[];switch(d){case Ge.AND_UPPER:{n.and=y;break}case Ge.OR_UPPER:{n.or=y;break}default:return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Ge.OBJECT,Ge.LIST)),!1}let N=l.value.values.length;if(N<1||N>5)return u.push((0,Xe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,N)),!1;let I=!0,b=[];for(let C=0;C0?(u.push((0,Xe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,b)),!1):I}default:{let y=Ge.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?Ge.LIST:Ge.OBJECT;return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,Oe.kindToTypeString)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,s,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==et.Kind.OBJECT){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(r,[(0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Ge.CONDITION,Ge.OBJECT,(0,Oe.kindToTypeString)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,Ge.CONDITION,o,d)){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Oe.getValueOrDefault)(this.fieldConfigurationByFieldPath,r,()=>({argumentNames:[],fieldName:i,typeName:s})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessiblePaths.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(t,[(0,Xe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Ae.isNodeDataInaccessible)(r)||r.kind===et.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.invalidOrScopesHostPaths.size>0&&this.errors.push((0,Xe.orScopesLimitError)(Oe.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let s of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ae.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,s,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];if(this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let s=this.internalGraph.validate();if(s.length>0)return{errors:s,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let n={kind:et.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,et.buildASTSchema)({kind:et.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let s of this.internalSubgraphBySubgraphName.values())i.set(s.name,{configurationDataByTypeName:s.configurationDataByTypeName,schema:s.schema});for(let s of this.authorizationDataByParentTypeName.values())(0,Oe.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,s);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,et.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}getClientSchemaObjectBoolean(){return this.inaccessiblePaths.size<1&&this.tagNamesByPath.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildRemovalByTag(t,n,r,i){let s=n.size;for(let[o,u]of r){let l=(0,Oe.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Ae.isNodeDataInaccessible)(l)){s-=1;continue}(0,Oe.doSetsIntersect)(i,u.tagNames)&&((0,Oe.getValueOrDefault)(l.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}buildFederationContractResult(t){this.isVersionTwo||this.routerDefinitions.push(gr.INACCESSIBLE_DEFINITION);for(let[o,u]of this.parentTagDataByTypeName){let l=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Ge.PARENT_DEFINITION_DATA);if(!(0,Ae.isNodeDataInaccessible)(l)){if((0,Oe.doSetsIntersect)(t,u.tagNames)){l.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case et.Kind.SCALAR_TYPE_DEFINITION:case et.Kind.UNION_TYPE_DEFINITION:continue;case et.Kind.ENUM_TYPE_DEFINITION:this.handleChildRemovalByTag(l,l.enumValueDataByValueName,u.childTagDataByChildName,t);break;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildRemovalByTag(l,l.inputValueDataByValueName,u.childTagDataByChildName,t);break;default:let d=l.fieldDataByFieldName.size;for(let[p,y]of u.childTagDataByChildName){let N=(0,Oe.getOrThrowError)(l.fieldDataByFieldName,p,`${o}.fieldDataByFieldName`);if((0,Ae.isNodeDataInaccessible)(N)){d-=1;continue}if((0,Oe.doSetsIntersect)(t,y.tagNames)){(0,Oe.getValueOrDefault)(N.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1;continue}for(let[I,b]of y.tagNamesByArgumentName){let C=(0,Oe.getOrThrowError)(N.argumentDataByArgumentName,I,`${p}.argumentDataByArgumentName`);(0,Ae.isNodeDataInaccessible)(C)||(0,Oe.doSetsIntersect)(t,b)&&((0,Oe.getValueOrDefault)(C.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(C.renamedPath))}}d<1&&(l.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ae.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,warnings:this.warnings};let r={kind:et.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,et.buildASTSchema)({kind:et.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),s=new Map;for(let o of this.internalSubgraphBySubgraphName.values())s.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,Oe.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,o);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:s,federatedGraphAST:r,federatedGraphSchema:(0,et.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Wl.FederationFactory=aI;function KR(e){if(e.length<1)return{errors:[Xe.minimumSubgraphRequirementError],warnings:[]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:i,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}=(0,ade.batchNormalize)(e);if(i)return{errors:i,warnings:u};let l=new Map,d=new Map,p=new Set;for(let[y,N]of s)for(let[I,b]of N.entityInterfaces){(0,Oe.getValueOrDefault)(d,I,()=>[]).push({subgraphName:y,concreteTypeNames:b.concreteTypeNames||new Set});let C=l.get(I);if(!C){p.add(I),l.set(I,(0,Oe.newEntityInterfaceFederationData)(b,y));continue}(0,Oe.upsertEntityInterfaceFederationData)(C,b,y)&&p.delete(I)}for(let y of p)d.delete(y);return d.size>0?{errors:[(0,Xe.undefinedEntityInterfaceImplementationsError)(d,l)],warnings:u}:{federationFactory:new aI({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:l,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}),warnings:u}}function lde(e){let{errors:t,federationFactory:n,warnings:r}=KR(e);return t||!n?{errors:t||[Xe.federationFactoryInitializationFatalError],warnings:r}:n.federateSubgraphsInternal()}function dde(e,t){let{errors:n,federationFactory:r,warnings:i}=KR(e);if(n||!r)return{errors:n||[Xe.federationFactoryInitializationFatalError],warnings:i};r.federateSubgraphData();let s=[(0,Dq.cloneDeep)(r)],{errors:o,federationResult:u,warnings:l}=r.buildFederationResult();if(o)return{errors:o,warnings:l};let d=t.size-1,p=new Map,y=0;for(let[N,I]of t){y!==d&&s.push((0,Dq.cloneDeep)(s[y]));let b=s[y].buildFederationContractResult(I);p.set(N,b),y++}return{federationResult:u,federationResultContainerByContractName:p,warnings:l}}function pde(e,t){let{errors:n,federationFactory:r,warnings:i}=KR(e);return n||!r?{errors:n||[Xe.federationFactoryInitializationFatalError],warnings:i}:(r.federateSubgraphData(),r.buildFederationContractResult(t))}});var Lq=V(Fq=>{"use strict";m();T();h();Object.defineProperty(Fq,"__esModule",{value:!0})});var uI=V(Sn=>{"use strict";m();T();h();var fde=Sn&&Sn.__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]}),nr=Sn&&Sn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fde(t,e,n)};Object.defineProperty(Sn,"__esModule",{value:!0});nr(Vi(),Sn);nr(co(),Sn);nr(EC(),Sn);nr(wq(),Sn);nr(_R(),Sn);nr(qR(),Sn);nr(VR(),Sn);nr(jl(),Sn);nr(DR(),Sn);nr(XD(),Sn);nr(UR(),Sn);nr(LR(),Sn);nr(kR(),Sn);nr(Ca(),Sn);nr(Vh(),Sn);nr(Lq(),Sn);nr(sI(),Sn);nr(jp(),Sn);nr(SR(),Sn);nr(ds(),Sn);nr(_c(),Sn);nr(bi(),Sn);nr(eI(),Sn)});var ope={};Ef(ope,{buildRouterConfiguration:()=>spe,federateSubgraphs:()=>ipe});m();T();h();var bw=zv(uI());m();T();h();m();T();h();function GR(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}m();T();h();m();T();h();var Pq={};m();T();h();function kq(e){return e!=null}m();T();h();m();T();h();we();m();T();h();var xq;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}xq=function(t,n){return new e(t,n)}}else xq=AggregateError;function Cq(e){return"errors"in e&&Array.isArray(e.errors)}var Bq=3;function Vq(e){return cI(e,[])}function cI(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return mde(e,t);default:return String(e)}}function Uq(e){return e instanceof Y?e.toString():`${e.name}: ${e.message}; +}`;var Ut=WL(function(){return pn(L,Ye+"return "+Ie).apply(e,M)});if(Ut.source=Ie,Uv(Ut))throw Ut;return Ut}function Nz(a){return yn(a).toLowerCase()}function Ez(a){return yn(a).toUpperCase()}function gz(a,c,f){if(a=yn(a),a&&(f||c===e))return ow(a);if(!a||!(c=es(c)))return a;var E=Zs(a),_=Zs(c),L=aw(E,_),M=uw(E,_)+1;return Xu(E,L,M).join("")}function Iz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.slice(0,lw(a)+1);if(!a||!(c=es(c)))return a;var E=Zs(a),_=uw(E,Zs(c))+1;return Xu(E,0,_).join("")}function vz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.replace(UI,"");if(!a||!(c=es(c)))return a;var E=Zs(a),_=aw(E,Zs(c));return Xu(E,_).join("")}function _z(a,c){var f=xt,E=B;if(Xn(c)){var _="separator"in c?c.separator:_;f="length"in c?Lt(c.length):f,E="omission"in c?es(c.omission):E}a=yn(a);var L=a.length;if(od(a)){var M=Zs(a);L=M.length}if(f>=L)return a;var q=f-ad(E);if(q<1)return E;var X=M?Xu(M,0,q).join(""):a.slice(0,q);if(_===e)return X+E;if(M&&(q+=X.length-q),Mv(_)){if(a.slice(q).search(_)){var Te,Ne=X;for(_.global||(_=ev(_.source,yn(AF.exec(_))+"g")),_.lastIndex=0;Te=_.exec(Ne);)var Ie=Te.index;X=X.slice(0,Ie===e?q:Ie)}}else if(a.indexOf(es(_),q)!=q){var Re=X.lastIndexOf(_);Re>-1&&(X=X.slice(0,Re))}return X+E}function bz(a){return a=yn(a),a&&xK.test(a)?a.replace(OF,ZG):a}var Oz=fd(function(a,c,f){return a+(f?" ":"")+c.toUpperCase()}),jv=Xw("toUpperCase");function HL(a,c,f){return a=yn(a),c=f?e:c,c===e?JG(a)?nQ(a):BG(a):a.match(c)||[]}var WL=Bt(function(a,c){try{return Xi(a,e,c)}catch(f){return Uv(f)?f:new vt(f)}}),Sz=Na(function(a,c){return Es(c,function(f){f=wo(f),Ta(a,f,xv(a[f],a))}),a});function Dz(a){var c=a==null?0:a.length,f=ct();return a=c?Gn(a,function(E){if(typeof E[1]!="function")throw new gs(i);return[f(E[0]),E[1]]}):[],Bt(function(E){for(var _=-1;++__n)return[];var f=Pn,E=Zr(a,Pn);c=ct(c),a-=Pn;for(var _=WI(E,c);++f0||c<0)?new Kt(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),c!==e&&(c=Lt(c),f=c<0?f.dropRight(-c):f.take(c-a)),f)},Kt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Kt.prototype.toArray=function(){return this.take(Pn)},Ro(Kt.prototype,function(a,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),_=w[E?"take"+(c=="last"?"Right":""):c],L=E||/^find/.test(c);_&&(w.prototype[c]=function(){var M=this.__wrapped__,q=E?[1]:arguments,X=M instanceof Kt,Te=q[0],Ne=X||Ot(M),Ie=function($t){var Wt=_.apply(w,Gu([$t],q));return E&&Re?Wt[0]:Wt};Ne&&f&&typeof Te=="function"&&Te.length!=1&&(X=Ne=!1);var Re=this.__chain__,Ye=!!this.__actions__.length,lt=L&&!Re,Ut=X&&!Ye;if(!L&&Ne){M=Ut?M:new Kt(this);var dt=a.apply(M,q);return dt.__actions__.push({func:dy,args:[Ie],thisArg:e}),new Is(dt,Re)}return lt&&Ut?a.apply(this,q):(dt=this.thru(Ie),lt?E?dt.value()[0]:dt.value():dt)})}),Es(["pop","push","shift","sort","splice","unshift"],function(a){var c=UT[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);w.prototype[a]=function(){var _=arguments;if(E&&!this.__chain__){var L=this.value();return c.apply(Ot(L)?L:[],_)}return this[f](function(M){return c.apply(Ot(M)?M:[],_)})}}),Ro(Kt.prototype,function(a,c){var f=w[c];if(f){var E=f.name+"";On.call(ld,E)||(ld[E]=[]),ld[E].push({name:c,func:f})}}),ld[iy(e,C).name]=[{name:"wrapper",func:e}],Kt.prototype.clone=bQ,Kt.prototype.reverse=OQ,Kt.prototype.value=SQ,w.prototype.at=tJ,w.prototype.chain=nJ,w.prototype.commit=rJ,w.prototype.next=iJ,w.prototype.plant=oJ,w.prototype.reverse=aJ,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=uJ,w.prototype.first=w.prototype.head,rf&&(w.prototype[rf]=sJ),w},Yu=rQ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Cr._=Yu,define(function(){return Yu})):Cc?((Cc.exports=Yu)._=Yu,qI._=Yu):Cr._=Yu}).call(Yp)});var Fq=V(Wl=>{"use strict";m();T();h();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.FederationFactory=void 0;Wl.federateSubgraphs=lde;Wl.federateSubgraphsWithContracts=dde;Wl.federateSubgraphsContract=pde;var et=(Fe(),xe(Me)),Hl=Ca(),_o=Vi(),Xe=co(),Jp=_R(),Ge=bi(),Oe=ds(),oI=Hg(),$n=_c(),ade=VR(),ude=jl(),Sq=Vh(),Ae=jp(),cde=qR(),Dq=Oq(),Aq=sI(),Rq=$m(),aI=class{constructor(t){A(this,"authorizationDataByParentTypeName");A(this,"concreteTypeNamesByAbstractTypeName");A(this,"clientDefinitions",[$n.DEFER_DEFINITION,$n.DEPRECATED_DEFINITION]);A(this,"currentSubgraphName","");A(this,"entityDataByTypeName");A(this,"entityInterfaceFederationDataByTypeName");A(this,"errors",[]);A(this,"fieldConfigurationByFieldPath",new Map);A(this,"graphEdges",new Set);A(this,"graphPaths",new Map);A(this,"inaccessiblePaths",new Set);A(this,"internalGraph");A(this,"internalSubgraphBySubgraphName");A(this,"invalidOrScopesHostPaths",new Set);A(this,"isVersionTwo",!1);A(this,"namedInputValueTypeNames",new Set);A(this,"namedOutputTypeNames",new Set);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"parentTagDataByTypeName",new Map);A(this,"pathsByNamedTypeName",new Map);A(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Ge.AUTHENTICATED,$n.AUTHENTICATED_DEFINITION],[Ge.DEPRECATED,$n.DEPRECATED_DEFINITION],[Ge.INACCESSIBLE,$n.INACCESSIBLE_DEFINITION],[Ge.REQUIRES_SCOPES,$n.REQUIRES_SCOPES_DEFINITION],[Ge.TAG,$n.TAG_DEFINITION]]));A(this,"persistedDirectiveDefinitions",new Set([Ge.AUTHENTICATED,Ge.DEPRECATED,Ge.INACCESSIBLE,Ge.TAG,Ge.REQUIRES_SCOPES]));A(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);A(this,"routerDefinitions",[$n.DEFER_DEFINITION,$n.DEPRECATED_DEFINITION,$n.TAG_DEFINITION]);A(this,"shareableErrorTypeNames",new Map);A(this,"subscriptionFilterDataByFieldPath",new Map);A(this,"isMaxDepth",!1);A(this,"tagNamesByPath",new Map);A(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Ae.isNodeDataInaccessible)(t),i=new Map,s=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,_o.stringToNamedTypeNode)(u));let l=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Ge.PARENT_DEFINITION_DATA);if(l.kind!==et.Kind.INTERFACE_TYPE_DEFINITION){s.set(l.name,(0,Oe.kindToTypeString)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,N]of l.fieldDataByFieldName){let I=!1,b=t.fieldDataByFieldName.get(y);if(!b){p=!0,d.unimplementedFields.push(y);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,oI.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Ae.isTypeValidImplementation)(N.node.type,b.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,I=!0,C.implementedResponseType=(0,oI.printTypeNode)(b.node.type));let j=new Set;for(let[Q,re]of N.argumentDataByArgumentName){let se=re.node;j.add(Q);let fe=(o=b.argumentDataByArgumentName.get(Q))==null?void 0:o.node;if(!fe){p=!0,I=!0,C.unimplementedArguments.add(Q);continue}let ye=(0,oI.printTypeNode)(fe.type),ke=(0,oI.printTypeNode)(se.type);ke!==ye&&(p=!0,I=!0,C.invalidImplementedArguments.push({actualType:ye,argumentName:Q,expectedType:ke}))}for(let[Q,re]of b.argumentDataByArgumentName){let se=re.node;j.has(Q)||se.type.kind===et.Kind.NON_NULL_TYPE&&(p=!0,I=!0,C.invalidAdditionalArguments.add(Q))}!r&&b.isInaccessible&&!N.isInaccessible&&(p=!0,I=!0,C.isInaccessible=!0),I&&d.invalidFieldImplementations.set(y,C)}p&&i.set(u,d)}return s.size>0&&this.errors.push((0,Xe.invalidImplementedTypeError)(t.name,s)),i.size&&this.errors.push((0,Xe.invalidInterfaceImplementationError)(t.node.name.value,(0,Oe.kindToTypeString)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Oe.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,s=i.get(n.typeName);if(!s||s.kind!==et.Kind.OBJECT_TYPE_DEFINITION)throw(0,Xe.incompatibleParentKindFatalError)(n.typeName,et.Kind.OBJECT_TYPE_DEFINITION,(s==null?void 0:s.kind)||et.Kind.NULL);let o=(0,Oe.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByParentTypeName"),u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:n.keyFieldSets,graphNode:l,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i});for(let[y,N]of this.entityInterfaceFederationDataByTypeName){if(!((p=N.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let I=this.entityDataByTypeName.get(y);I&&(0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:I.keyFieldSets,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of u)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let s=t.parentDefinitionDataByTypeName,o=s.get(n);if(!o||o.kind!==et.Kind.INTERFACE_TYPE_DEFINITION)throw(0,Xe.incompatibleParentKindFatalError)(n,et.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||et.Kind.NULL);let u=(0,Oe.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByParentTypeName"),l=[];if((0,Jp.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:t.conditionalFieldDataByCoordinates,configurationData:u,fieldSets:r.keyFieldSets,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:s,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ae.MergeMethod.CONSISTENT:Ae.MergeMethod.INTERSECTION:Ae.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByPath){let r=t.split(".");if(r.length<1)continue;let i=(0,Oe.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Jp.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let s=(0,Oe.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Jp.newChildTagData)(r[1]));for(let l of n)s.tagNames.add(l);break;case 3:let o=(0,Oe.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Jp.newChildTagData)(r[1])),u=(0,Oe.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),s=i||n,o=`${n.parentTypeName}.${n.name}`;(0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Ae.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(o),this.recordTagNamesByPath(s,o),!i){n.node={directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name)},t.set(n.name,n);return}i.appearances+=1,(0,Ae.setLongestDescription)(i,n)}upsertInputValueData(t,n,r){let i=t.get(n.name),s=i||n;if((0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s,r||s.renamedPath),!i){n.node={directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name),type:n.type},t.set(n.name,n);return}(0,Ae.setLongestDescription)(i,n),(0,Oe.addIterableValuesToSet)(n.requiredSubgraphNames,i.requiredSubgraphNames),(0,Oe.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames);let{typeErrors:o,typeNode:u}=(0,Aq.getMostRestrictiveMergedTypeNode)(i.type,n.type,i.originalPath,this.errors);if(u)i.type=u;else{if(!o||o.length<2)throw(0,Xe.fieldTypeMergeFatalError)(i.name);i.isArgument?this.errors.push((0,Xe.incompatibleArgumentTypesError)(i.name,i.renamedPath,o[0],o[1])):this.errors.push((0,Xe.incompatibleChildTypesError)(i.renamedPath,o[0],o[1]))}(0,Ae.compareAndValidateInputValueDefaultValues)(i,n,this.errors)}handleArgumentInaccessibility(t,n,r,i){if(t){this.inaccessiblePaths.add(r);return}(0,Ae.isNodeDataInaccessible)(n)&&((0,Ae.isTypeRequired)(n.type)?this.errors.push((0,Xe.inaccessibleRequiredArgumentError)(n.name,r,i)):this.inaccessiblePaths.add(r))}handleSubscriptionFilterDirective(t,n,r){let i=t.directivesByDirectiveName.get(Ge.SUBSCRIPTION_FILTER);if(i){let s=(0,Oe.getSingleSetEntry)(t.subgraphNames);if(s===void 0){this.errors.push((0,Xe.unknownFieldSubgraphNameError)(n));return}this.subscriptionFilterDataByFieldPath.set(n,{directive:i[0],fieldData:r||t,directiveSubgraphName:s})}}upsertFieldData(t,n,r){let i=`${n.renamedParentTypeName}.${n.name}`;(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,n.namedTypeName,()=>new Set).add(i),this.namedOutputTypeNames.add(n.namedTypeName);let s=t.get(n.name),o=s||n;this.handleSubscriptionFilterDirective(n,i,o),(0,Ae.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Ae.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(i),this.recordTagNamesByPath(o,i),!s){t.set(n.name,n),n.node={arguments:[],directives:[],kind:n.node.kind,name:(0,_o.stringToNameNode)(n.name),type:n.type};for(let[p,y]of n.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,_o.stringToNameNode)(y.name),type:y.type};let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Ae.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.handleArgumentInaccessibility(r||u,y,y.renamedPath,i),this.recordTagNamesByPath(y,`${i}.${p}`)}return}let{typeErrors:l,typeNode:d}=(0,Aq.getLeastRestrictiveMergedTypeNode)(s.type,n.type,i,this.errors);if(d)s.type=d;else{if(!l||l.length<2)throw(0,Xe.fieldTypeMergeFatalError)(s.name);this.errors.push((0,Xe.incompatibleChildTypesError)(i,l[0],l[1]))}for(let[p,y]of n.argumentDataByArgumentName){let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),this.handleArgumentInaccessibility(r||u,y,y.renamedPath,i),this.upsertInputValueData(s.argumentDataByArgumentName,y,`${i}.${p}`)}(0,Ae.setLongestDescription)(s,n),s.isInaccessible||(s.isInaccessible=n.isInaccessible),(0,Oe.addMapEntries)(n.isExternalBySubgraphName,s.isExternalBySubgraphName),(0,Oe.addMapEntries)(n.isShareableBySubgraphName,s.isShareableBySubgraphName),(0,Oe.addIterableValuesToSet)(n.subgraphNames,s.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessiblePaths.has(r)||n.push(i);return n}recordTagNamesByPath(t,n){let r=n||t.name;if(t.persistedDirectivesData.tags.size>0){let i=(0,Oe.getValueOrDefault)(this.tagNamesByPath,r,()=>new Set);for(let s of t.persistedDirectivesData.tags.keys())i.add(s)}}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),s=i||t;(0,Ae.extractPersistedDirectives)(s.persistedDirectivesData,t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s);let o=(0,Ae.isNodeDataInaccessible)(s);if(o&&this.inaccessiblePaths.add(t.name),r&&r.interfaceObjectSubgraphs.has(n)&&(t.kind=et.Kind.INTERFACE_TYPE_DEFINITION),!i)switch(t.node={kind:t.kind,name:(0,_o.stringToNameNode)(t.name)},this.parentDefinitionDataByTypeName.set(t.name,t),t.kind){case et.Kind.ENUM_TYPE_DEFINITION:for(let[u,l]of t.enumValueDataByValueName){let d=`${t.name}.${u}`;l.node={directives:[],kind:l.node.kind,name:(0,_o.stringToNameNode)(l.name)},(0,Ae.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,d),(0,Ae.isNodeDataInaccessible)(l)&&this.inaccessiblePaths.add(d)}return;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let[u,l]of t.inputValueDataByValueName){l.node={directives:[],kind:l.node.kind,name:(0,_o.stringToNameNode)(l.name),type:l.type};let d=(0,Hl.getTypeNodeNamedTypeName)(l.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,d,()=>new Set).add(l.renamedPath),this.namedInputValueTypeNames.add(d),(0,Ae.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,`${t.name}.${u}`),(o||(0,Ae.isNodeDataInaccessible)(l))&&this.inaccessiblePaths.add(l.renamedPath)}return;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:(0,Ae.isParentDataRootType)(t)&&(t.extensionType=Sq.ExtensionType.NONE);for(let u of t.fieldDataByFieldName.values()){u.node={arguments:[],directives:[],kind:u.node.kind,name:(0,_o.stringToNameNode)(u.name),type:u.type};let l=`${u.renamedParentTypeName}.${u.name}`;this.handleSubscriptionFilterDirective(u,l),(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,u.namedTypeName,()=>new Set).add(l),this.namedOutputTypeNames.add(u.namedTypeName),(0,Ae.extractPersistedDirectives)(u.persistedDirectivesData,u.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(u,l);let d=(0,Ae.isNodeDataInaccessible)(u);(o||d)&&this.inaccessiblePaths.add(l);for(let[p,y]of u.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,_o.stringToNameNode)(y.name),type:y.type};let N=(0,Hl.getTypeNodeNamedTypeName)(y.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Ae.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(y,`${l}.${p}`),this.handleArgumentInaccessibility(o||d,y,y.renamedPath,l)}}return;default:return}if(i.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||i.kind!==et.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==et.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Xe.incompatibleParentKindMergeError)(i.name,(0,Oe.kindToTypeString)(i.kind),(0,Oe.kindToTypeString)(t.kind)));return}switch((0,Ae.setLongestDescription)(i,t),(0,Ae.setParentDataExtensionType)(i,t),i.kind){case et.Kind.ENUM_TYPE_DEFINITION:i.appearances+=1;for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(i.enumValueDataByValueName,l,o);return;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i),(0,Oe.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let[l,d]of t.inputValueDataByValueName){let p=`${t.name}.${l}`,y=(0,Hl.getTypeNodeNamedTypeName)(d.type);(0,Oe.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p),this.namedInputValueTypeNames.add(y),this.upsertInputValueData(i.inputValueDataByValueName,d),this.recordTagNamesByPath(d,p),(o||(0,Ae.isNodeDataInaccessible)(d))&&this.inaccessiblePaths.add(p)}return;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i);let u=t;(0,Oe.addIterableValuesToSet)(u.implementedInterfaceTypeNames,i.implementedInterfaceTypeNames),(0,Oe.addIterableValuesToSet)(u.subgraphNames,i.subgraphNames);for(let l of u.fieldDataByFieldName.values())this.upsertFieldData(i.fieldDataByFieldName,l,o||i.isInaccessible);return;case et.Kind.UNION_TYPE_DEFINITION:(0,Oe.addMapEntries)(t.memberByMemberTypeName,i.memberByMemberTypeName);return;default:return}}propagateInaccessibilityToExistingChildren(t){switch(t.isInaccessible=!0,t.kind){case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByValueName.keys())this.inaccessiblePaths.add(`${t.name}.${n}`);break;default:for(let[n,r]of t.fieldDataByFieldName){let i=`${r.renamedParentTypeName}.${n}`;this.inaccessiblePaths.add(i);for(let s of r.argumentDataByArgumentName.values())this.inaccessiblePaths.add(s.renamedPath)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let s=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Hl.getTypeNodeNamedTypeName)(o.type)),this.upsertInputValueData(s,o);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:s,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,Ae.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let s of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Hl.getTypeNodeNamedTypeName)(s.type)),this.upsertInputValueData(i.argumentDataByArgumentName,s);(0,Ae.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Oe.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}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,cde.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)}}}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:s,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.satisfiedFieldSets.add(p),s.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,Oe.subtractSourceSetFromTargetSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Ge.PARENT_DEFINITION_DATA);if(r.kind===et.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let s=(0,Oe.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=s.configurationDataByTypeName,u=this.concreteTypeNamesByAbstractTypeName.get(t);if(!u)continue;let l=(0,Oe.getOrThrowError)(o,t,"configurationDataMap"),d=l.keys;if(!d)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames;let p=l.fieldNames,y=this.authorizationDataByParentTypeName.get(n.typeName);this.internalGraph.setSubgraphName(i);let N=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let I of u){if(o.has(I))continue;if(y){let re=(0,Oe.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,Oe.newAuthorizationData)(I));for(let se of y.fieldAuthorizationDataByFieldName.values())(0,Oe.upsertFieldAuthorizationData)(re.fieldAuthorizationDataByFieldName,se)||this.invalidOrScopesHostPaths.add(`${I}.${se.fieldName}`)}let b=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,I,Ge.PARENT_DEFINITION_DATA);if(b.kind!==et.Kind.OBJECT_TYPE_DEFINITION)continue;let C=(0,Oe.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");C.subgraphNames.add(i);let j={fieldNames:p,isRootNode:!0,keys:d,typeName:I},Q=new Set;for(let re of d.filter(se=>!se.disableEntityResolver))Q.add(re.selectionSet);for(let re of n.interfaceObjectFieldNames){if(b.fieldDataByFieldName.get(re))continue;let fe=(0,Oe.getOrThrowError)(r.fieldDataByFieldName,re,`${t}.fieldDataByFieldName`);b.fieldDataByFieldName.set(re,k({},fe))}o.set(I,j),this.handleInterfaceObjectForInternalGraph({internalSubgraph:s,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:Q,entityData:C})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Oe.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Sq.ExtensionType.NONE&&this.errors.push((0,Xe.noBaseDefinitionForExtensionError)((0,Oe.kindToTypeString)(r.kind),n)),r.kind){case et.Kind.ENUM_TYPE_DEFINITION:let i=[],s=[],o=this.getEnumValueMergeMethod(n);for(let Q of r.enumValueDataByValueName.values()){let re=(0,Ae.getNodeForRouterSchemaByData)(Q,this.persistedDirectiveDefinitionByDirectiveName,this.errors),se=(0,Ae.isNodeDataInaccessible)(Q),fe=K(k({},Q.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(Q)});switch(o){case Ae.MergeMethod.CONSISTENT:!se&&r.appearances>Q.appearances&&this.errors.push((0,Xe.incompatibleSharedEnumError)(n)),i.push(re),se||s.push(fe);break;case Ae.MergeMethod.INTERSECTION:r.appearances===Q.appearances&&(i.push(re),se||s.push(fe));break;default:i.push(re),se||s.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,Ge.ENUM_VALUE));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),values:s}));break;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:let u=[],l=[],d=[];for(let[Q,re]of r.inputValueDataByValueName)if(r.subgraphNames.size===re.subgraphNames.size){if(l.push((0,Ae.getNodeWithPersistedDirectivesByInputValueData)(re,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(re))continue;d.push(K(k({},re.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(re)}))}else(0,Ae.isTypeRequired)(re.type)&&u.push({inputValueName:Q,missingSubgraphs:(0,Oe.getEntriesNotInHashSet)(r.subgraphNames,re.subgraphNames),requiredSubgraphs:[...re.requiredSubgraphNames]});if(u.length>0){this.errors.push((0,Xe.invalidRequiredInputValueError)(Ge.INPUT_OBJECT,n,u,!1));break}if(r.node.fields=l,this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(d.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,"input field"));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),fields:d}));break;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_DEFINITION:let p=[],y=[],N=new Map,I=(0,Ae.newInvalidFieldNames)(),b=r.kind===et.Kind.OBJECT_TYPE_DEFINITION;for(let[Q,re]of r.fieldDataByFieldName){(0,Ae.pushAuthorizationDirectives)(re,this.authorizationDataByParentTypeName.get(n));let se=(0,Ae.getValidFieldArgumentNodes)(re,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);b&&(0,Ae.validateExternalAndShareable)(re,I),p.push((0,Ae.getNodeWithPersistedDirectivesByFieldData)(re,this.persistedDirectiveDefinitionByDirectiveName,se,this.errors)),!(0,Ae.isNodeDataInaccessible)(re)&&(y.push((0,Ae.getClientSchemaFieldNodeByFieldData)(re)),N.set(Q,this.fieldDataToGraphFieldData(re)))}if(b&&(I.byShareable.size>0&&this.errors.push((0,Xe.invalidFieldShareabilityError)(r,I.byShareable)),I.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Xe.allExternalFieldInstancesError)(n,I.subgraphNamesByExternalFieldName))),r.node.fields=p,this.internalGraph.initializeNode(n,N),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let C=(0,ude.isNodeQuery)(n);if((0,Ae.isNodeDataInaccessible)(r)){if(C){this.errors.push(Xe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let Q=C?Xe.noQueryRootTypeError:(0,Xe.allChildDefinitionsAreInaccessibleError)((0,Oe.kindToTypeString)(r.kind),n,Ge.FIELD);this.errors.push(Q);break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),fields:y}));break;case et.Kind.SCALAR_TYPE_DEFINITION:if($n.BASE_SCALARS.has(n))break;if(this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r)}));break;case et.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,Oe.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let j=this.getClientSchemaUnionMembers(r);if(j.length<1){this.errors.push((0,Xe.allChildDefinitionsAreInaccessibleError)(Ge.UNION,n,"union member type"));break}this.clientDefinitions.push(K(k({},r.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(r),types:j}));break}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Ae.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Ae.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let s of n.implementedInterfaceTypeNames)this.inaccessiblePaths.has(s)||i.push((0,_o.stringToNamedTypeNode)(s));this.clientDefinitions.push(K(k({},n.node),{directives:(0,Ae.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[$n.AUTHENTICATED_DEFINITION,$n.DEFER_DEFINITION,$n.DEPRECATED_DEFINITION,$n.INACCESSIBLE_DEFINITION,$n.REQUIRES_SCOPES_DEFINITION,$n.TAG_DEFINITION,$n.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[$n.AUTHENTICATED_DEFINITION,$n.DEFER_DEFINITION,$n.DEPRECATED_DEFINITION,$n.REQUIRES_SCOPES_DEFINITION,$n.SCOPE_SCALAR_DEFINITION])}validateReferencesOfInaccessibleType(t){let n=this.pathsByNamedTypeName.get(t.name);if(!n||n.size<1)return;let r=[];for(let i of n)this.inaccessiblePaths.has(i)||r.push(i);r.length>0&&this.errors.push((0,Xe.invalidReferencesOfInaccessibleTypeError)((0,Oe.kindToTypeString)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Ge.QUERY);if(!t||t.kind!==et.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size<1){this.errors.push(Xe.noQueryRootTypeError);return}for(let n of t.fieldDataByFieldName.values())if(!(0,Ae.isNodeDataInaccessible)(n))return;this.errors.push(Xe.noQueryRootTypeError)}validateSubscriptionFieldConditionFieldPath(t,n,r,i,s){let o=t.split(Ge.PERIOD);if(o.length<1)return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessiblePaths.has(u.renamedTypeName))return s.push((0,Xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==et.Kind.OBJECT_TYPE_DEFINITION)return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=u.fieldDataByFieldName.get(p);if(!y)return s.push((0,Xe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let N=`${u.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return s.push((0,Xe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N,i)),[];if(this.inaccessiblePaths.has(N))return s.push((0,Xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N)),[];if($n.BASE_SCALARS.has(y.namedTypeName)){u={kind:et.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}u=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Ge.PARENT_DEFINITION_DATA)}return(0,Ae.isLeafKind)(u.kind)?o:(s.push((0,Xe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Oe.kindToTypeString)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,s,o,u){if(i>Rq.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([Ge.FIELD_PATH,Ge.VALUES]),p=new Set,y=new Set,N=[];for(let I of t.fields){let b=I.name.value,C=s+`.${b}`;switch(b){case Ge.FIELD_PATH:{if(d.has(Ge.FIELD_PATH))d.delete(Ge.FIELD_PATH);else{l=!0,p.add(Ge.FIELD_PATH);break}if(I.value.kind!==et.Kind.STRING){N.push((0,Xe.invalidInputFieldTypeErrorMessage)(C,Ge.STRING,(0,Oe.kindToTypeString)(I.value.kind))),l=!0;break}let j=this.validateSubscriptionFieldConditionFieldPath(I.value.value,r,C,o,N);if(j.length<1){l=!0;break}n.fieldPath=j;break}case Ge.VALUES:{if(d.has(Ge.VALUES))d.delete(Ge.VALUES);else{l=!0,p.add(Ge.VALUES);break}let j=I.value.kind;if(j==et.Kind.NULL||j==et.Kind.OBJECT){N.push((0,Xe.invalidInputFieldTypeErrorMessage)(C,Ge.LIST,(0,Oe.kindToTypeString)(I.value.kind))),l=!0;break}if(j!==et.Kind.LIST){n.values=[(0,Ae.getSubscriptionFilterValue)(I.value)];break}let Q=new Set,re=[];for(let se=0;se0){N.push((0,Xe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(C,re));continue}if(Q.size<1){l=!0,N.push((0,Xe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(C));continue}n.values=[...Q];break}default:l=!0,y.add(b)}}return l?(u.push((0,Xe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(s,[...d],[...p],[...y],N)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,s,o,u){if(i>Rq.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(s,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Ge.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(s,d)),!1;let p=s+`.${d}`;switch(l.value.kind){case et.Kind.OBJECT:switch(d){case Ge.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,s+".IN",o,u);case Ge.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,s+".NOT",o,u);default:return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Ge.LIST,Ge.OBJECT)),!1}case et.Kind.LIST:{let y=[];switch(d){case Ge.AND_UPPER:{n.and=y;break}case Ge.OR_UPPER:{n.or=y;break}default:return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Ge.OBJECT,Ge.LIST)),!1}let N=l.value.values.length;if(N<1||N>5)return u.push((0,Xe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,N)),!1;let I=!0,b=[];for(let C=0;C0?(u.push((0,Xe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,b)),!1):I}default:{let y=Ge.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?Ge.LIST:Ge.OBJECT;return u.push((0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,Oe.kindToTypeString)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,s,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==et.Kind.OBJECT){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(r,[(0,Xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Ge.CONDITION,Ge.OBJECT,(0,Oe.kindToTypeString)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,Ge.CONDITION,o,d)){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Oe.getValueOrDefault)(this.fieldConfigurationByFieldPath,r,()=>({argumentNames:[],fieldName:i,typeName:s})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessiblePaths.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Xe.invalidSubscriptionFilterDirectiveError)(t,[(0,Xe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Ae.isNodeDataInaccessible)(r)||r.kind===et.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.invalidOrScopesHostPaths.size>0&&this.errors.push((0,Xe.orScopesLimitError)(Oe.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let s of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ae.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,s,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];if(this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let s=this.internalGraph.validate();if(s.length>0)return{errors:s,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let n={kind:et.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,et.buildASTSchema)({kind:et.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let s of this.internalSubgraphBySubgraphName.values())i.set(s.name,{configurationDataByTypeName:s.configurationDataByTypeName,schema:s.schema});for(let s of this.authorizationDataByParentTypeName.values())(0,Oe.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,s);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,et.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}getClientSchemaObjectBoolean(){return this.inaccessiblePaths.size<1&&this.tagNamesByPath.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildRemovalByTag(t,n,r,i){let s=n.size;for(let[o,u]of r){let l=(0,Oe.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Ae.isNodeDataInaccessible)(l)){s-=1;continue}(0,Oe.doSetsIntersect)(i,u.tagNames)&&((0,Oe.getValueOrDefault)(l.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}buildFederationContractResult(t){this.isVersionTwo||this.routerDefinitions.push($n.INACCESSIBLE_DEFINITION);for(let[o,u]of this.parentTagDataByTypeName){let l=(0,Oe.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Ge.PARENT_DEFINITION_DATA);if(!(0,Ae.isNodeDataInaccessible)(l)){if((0,Oe.doSetsIntersect)(t,u.tagNames)){l.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case et.Kind.SCALAR_TYPE_DEFINITION:case et.Kind.UNION_TYPE_DEFINITION:continue;case et.Kind.ENUM_TYPE_DEFINITION:this.handleChildRemovalByTag(l,l.enumValueDataByValueName,u.childTagDataByChildName,t);break;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildRemovalByTag(l,l.inputValueDataByValueName,u.childTagDataByChildName,t);break;default:let d=l.fieldDataByFieldName.size;for(let[p,y]of u.childTagDataByChildName){let N=(0,Oe.getOrThrowError)(l.fieldDataByFieldName,p,`${o}.fieldDataByFieldName`);if((0,Ae.isNodeDataInaccessible)(N)){d-=1;continue}if((0,Oe.doSetsIntersect)(t,y.tagNames)){(0,Oe.getValueOrDefault)(N.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1;continue}for(let[I,b]of y.tagNamesByArgumentName){let C=(0,Oe.getOrThrowError)(N.argumentDataByArgumentName,I,`${p}.argumentDataByArgumentName`);(0,Ae.isNodeDataInaccessible)(C)||(0,Oe.doSetsIntersect)(t,b)&&((0,Oe.getValueOrDefault)(C.persistedDirectivesData.directives,Ge.INACCESSIBLE,()=>[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(C.renamedPath))}}d<1&&(l.persistedDirectivesData.directives.set(Ge.INACCESSIBLE,[(0,Oe.generateSimpleDirective)(Ge.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Ae.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,warnings:this.warnings};let r={kind:et.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,et.buildASTSchema)({kind:et.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),s=new Map;for(let o of this.internalSubgraphBySubgraphName.values())s.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,Oe.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,o);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:s,federatedGraphAST:r,federatedGraphSchema:(0,et.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Wl.FederationFactory=aI;function KR(e){if(e.length<1)return{errors:[Xe.minimumSubgraphRequirementError],warnings:[]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:i,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}=(0,ade.batchNormalize)(e);if(i)return{errors:i,warnings:u};let l=new Map,d=new Map,p=new Set;for(let[y,N]of s)for(let[I,b]of N.entityInterfaces){(0,Oe.getValueOrDefault)(d,I,()=>[]).push({subgraphName:y,concreteTypeNames:b.concreteTypeNames||new Set});let C=l.get(I);if(!C){p.add(I),l.set(I,(0,Oe.newEntityInterfaceFederationData)(b,y));continue}(0,Oe.upsertEntityInterfaceFederationData)(C,b,y)&&p.delete(I)}for(let y of p)d.delete(y);return d.size>0?{errors:[(0,Xe.undefinedEntityInterfaceImplementationsError)(d,l)],warnings:u}:{federationFactory:new aI({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:l,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}),warnings:u}}function lde(e){let{errors:t,federationFactory:n,warnings:r}=KR(e);return t||!n?{errors:t||[Xe.federationFactoryInitializationFatalError],warnings:r}:n.federateSubgraphsInternal()}function dde(e,t){let{errors:n,federationFactory:r,warnings:i}=KR(e);if(n||!r)return{errors:n||[Xe.federationFactoryInitializationFatalError],warnings:i};r.federateSubgraphData();let s=[(0,Dq.cloneDeep)(r)],{errors:o,federationResult:u,warnings:l}=r.buildFederationResult();if(o)return{errors:o,warnings:l};let d=t.size-1,p=new Map,y=0;for(let[N,I]of t){y!==d&&s.push((0,Dq.cloneDeep)(s[y]));let b=s[y].buildFederationContractResult(I);p.set(N,b),y++}return{federationResult:u,federationResultContainerByContractName:p,warnings:l}}function pde(e,t){let{errors:n,federationFactory:r,warnings:i}=KR(e);return n||!r?{errors:n||[Xe.federationFactoryInitializationFatalError],warnings:i}:(r.federateSubgraphData(),r.buildFederationContractResult(t))}});var Lq=V(wq=>{"use strict";m();T();h();Object.defineProperty(wq,"__esModule",{value:!0})});var uI=V(Sn=>{"use strict";m();T();h();var fde=Sn&&Sn.__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]}),rr=Sn&&Sn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fde(t,e,n)};Object.defineProperty(Sn,"__esModule",{value:!0});rr(Vi(),Sn);rr(co(),Sn);rr(EC(),Sn);rr(Fq(),Sn);rr(_R(),Sn);rr(qR(),Sn);rr(VR(),Sn);rr(jl(),Sn);rr(DR(),Sn);rr(XD(),Sn);rr(UR(),Sn);rr(LR(),Sn);rr(kR(),Sn);rr(Ca(),Sn);rr(Vh(),Sn);rr(Lq(),Sn);rr(sI(),Sn);rr(jp(),Sn);rr(SR(),Sn);rr(ds(),Sn);rr(_c(),Sn);rr(bi(),Sn);rr(eI(),Sn)});var ope={};Ef(ope,{buildRouterConfiguration:()=>spe,federateSubgraphs:()=>ipe});m();T();h();var bF=zv(uI());m();T();h();m();T();h();function GR(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}m();T();h();m();T();h();var Pq={};m();T();h();function kq(e){return e!=null}m();T();h();m();T();h();Fe();m();T();h();var xq;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}xq=function(t,n){return new e(t,n)}}else xq=AggregateError;function Cq(e){return"errors"in e&&Array.isArray(e.errors)}var Bq=3;function Vq(e){return cI(e,[])}function cI(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return mde(e,t);default:return String(e)}}function Uq(e){return e instanceof Y?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function mde(e,t){if(e===null)return"null";if(e instanceof Error)return Cq(e)?Uq(e)+` -`+Mq(e.errors,t):Uq(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(hde(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:cI(r,n)}else if(Array.isArray(e))return Mq(e,n);return Tde(e,n)}function hde(e){return typeof e.toJSON=="function"}function Tde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>Bq?"["+yde(e)+"]":"{ "+n.map(([i,s])=>i+": "+cI(s,t)).join(", ")+" }"}function Mq(e,t){if(e.length===0)return"[]";if(t.length>Bq)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();h();we();m();T();h();we();function la(e){if(qe(e)){let t=la(e.ofType);if(t.kind===R.NON_NULL_TYPE)throw new Error(`Invalid type node ${Vq(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:R.NON_NULL_TYPE,type:t}}else if(Pt(e))return{kind:R.LIST_TYPE,type:la(e.ofType)};return{kind:R.NAMED_TYPE,name:{kind:R.NAME,value:e.name}}}m();T();h();we();function dI(e){if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=dI(n);r!=null&&t.push(r)}return{kind:R.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=dI(r);i&&t.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:n},value:i})}return{kind:R.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:R.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Nde.test(t)?{kind:R.INT,value:t}:{kind:R.FLOAT,value:t}}if(typeof e=="string")return{kind:R.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Nde=/^-?(?:0|[1-9][0-9]*)$/;m();T();h();m();T();h();function pI(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}var EYe=pI(function(t){let n=Ede(t);return new Set([...n].map(r=>r.name))}),Ede=pI(function(t){let n=QR(t);return new Set(n.values())}),QR=pI(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n});function gde(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Ide(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)cc(u)||s.push(vde(u,e,n));for(let u in r){let l=r[u],d=ao(l),p=ui(l);if(!(d||p))if(ot(l))s.push(_de(l,e,n));else if(Nt(l))s.push(bde(l,e,n));else if(fn(l))s.push(Ode(l,e,n));else if(gt(l))s.push(Sde(l,e,n));else if(rn(l))s.push(Dde(l,e,n));else if(Zn(l))s.push(Ade(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:R.DOCUMENT,definitions:s}}function jq(e,t={}){let n=gde(e,t);return Rt(n)}function Ide(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(e.astNode!=null&&s.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)s.push(p);for(let p of s)if(p.operationTypes)for(let y of p.operationTypes)i.set(y.operation,y);let o=QR(e);for(let[p,y]of i){let N=o.get(p);if(N!=null){let I=la(N);y!=null?y.type=I:i.set(p,{kind:R.OPERATION_TYPE_DEFINITION,operation:p,type:I})}}let u=[...i.values()].filter(kq),l=zp(e,e,t);if(!u.length&&!l.length)return null;let d={kind:u!=null?R.SCHEMA_DEFINITION:R.SCHEMA_EXTENSION,operationTypes:u,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:R.STRING,value:e.description,block:!0}:void 0,d}function vde(e,t,n){var r,i,s,o;return{kind:R.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description}:void 0,name:{kind:R.NAME,value:e.name},arguments:(s=e.args)===null||s===void 0?void 0:s.map(u=>$q(u,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(u=>({kind:R.NAME,value:u})))||[]}}function zp(e,t,n){let r=lI(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=YR(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}function mI(e,t,n){var r,i;let s=[],o=null,u=lI(e,n),l;return u!=null?l=YR(t,u):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(s=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=Fde(e.deprecationReason)),o==null?s:[o].concat(s)}function $q(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:la(e.type),defaultValue:e.defaultValue!==void 0&&(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0,directives:mI(e,t,n)}}function _de(e,t,n){var r,i;return{kind:R.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>qq(s,t,n)),interfaces:Object.values(e.getInterfaces()).map(s=>la(s)),directives:zp(e,t,n)}}function bde(e,t,n){var r,i;let s={kind:R.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>qq(o,t,n)),directives:zp(e,t,n)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map(o=>la(o))),s}function Ode(e,t,n){var r,i;return{kind:R.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:zp(e,t,n),types:e.getTypes().map(s=>la(s))}}function Sde(e,t,n){var r,i;return{kind:R.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:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>Rde(s,t,n)),directives:zp(e,t,n)}}function Dde(e,t,n){var r,i;return{kind:R.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},values:Object.values(e.getValues()).map(s=>wde(s,t,n)),directives:zp(e,t,n)}}function Ade(e,t,n){var r,i,s;let o=lI(e,n),u=o?YR(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!u.some(d=>d.name.value==="specifiedBy")){let d={url:l};u.push(fI("specifiedBy",d))}return{kind:R.SCALAR_TYPE_DEFINITION,description:(s=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&s!==void 0?s:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:u}}function qq(e,t,n){var r,i;return{kind:R.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},arguments:e.args.map(s=>$q(s,t,n)),type:la(e.type),directives:mI(e,t,n)}}function Rde(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:la(e.type),directives:mI(e,t,n),defaultValue:(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0}}function wde(e,t,n){var r,i;return{kind:R.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:mI(e,t,n)}}function Fde(e){return fI("deprecated",{reason:e},Uo)}function fI(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=Hr(o,i.type);u&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=dI(s);o&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:i},value:o})}return{kind:R.DIRECTIVE,name:{kind:R.NAME,value:e},arguments:r}}function YR(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(fI(r,o,s));else n.push(fI(r,i,s))}return n}var FK=zv(uI(),1);we();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();function Rn(e,t){if(!e)throw new Error(t)}var Lde=34028234663852886e22,Pde=-34028234663852886e22,kde=4294967295,xde=2147483647,Cde=-2147483648;function Hp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>xde||ekde||e<0)throw new Error("invalid uint 32: "+e)}function hI(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Lde||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function zR(e,t,n){let r=Object.create(null),i=Object.create(null),s=[];for(let o of t){let u=Yq(o);s.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:s,findName(o){return r[o]},findNumber(o){return i[o]}}}function Qq(e,t,n){let r={};for(let i of t){let s=Yq(i);r[s.localName]=s.no,r[s.no]=s.localName}return JR(r,e,t,n),r}function Yq(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();h();m();T();h();var ft=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,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,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),s=i.writerFactory();return r.writeMessage(this,s,i),s.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 Jq(e,t,n,r){var i;let s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[s]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[s];return Object.setPrototypeOf(o.prototype,new ft),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();h();m();T();h();m();T();h();m();T();h();function Hq(){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)<>>s,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){let o=t>>>s,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var TI=4294967296;function HR(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function s(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=TI&&(i=i+(r/TI|0),r=r%TI)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?Xq(r,i):XR(r,i)}function Wq(e,t){let n=XR(e,t),r=n.hi&2147483648;r&&(n=Xq(n.lo,n.hi));let i=WR(n.lo,n.hi);return r?"-"+i:i}function WR(e,t){if({lo:e,hi:t}=Ude(e,t),t<=2097151)return String(TI*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,s=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return s>=l&&(o+=Math.floor(s/l),s%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+zq(o)+zq(s)}function Ude(e,t){return{lo:e>>>0,hi:t>>>0}}function XR(e,t){return{lo:e|0,hi:t|0}}function Xq(e,t){return t=~t,e?e=~e+1:t+=1,XR(e,t)}var zq=e=>{let t=String(e);return"0000000".slice(t.length)+t};function ZR(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 Zq(){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 Mde(){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"),s=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>s||du||dRn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>Rn(/^[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),HR(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),HR(i)},dec(i,s){return Wq(i,s)},uDec(i,s){return WR(i,s)}}}var Ir=Mde();m();T();h();var Ee;(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"})(Ee||(Ee={}));var bo;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(bo||(bo={}));function Xa(e,t,n){if(t===n)return!0;if(e==Ee.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(fT(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Hp(t),ZR(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){hI(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){fT(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Hp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Hp(t),t=(t<<1^t>>31)>>>0,ZR(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.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=Ir.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Ir.enc(t);return yI(n.lo,n.hi,this.buf),this}sint64(t){let n=Ir.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return yI(i,s,this.buf),this}uint64(t){let n=Ir.uEnc(t);return yI(n.lo,n.hi,this.buf),this}},gI=class{constructor(t,n){this.varint64=Hq,this.uint32=Zq,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 pr.Varint:for(;this.buf[this.pos++]&128;);break;case pr.Bit64:this.pos+=4;case pr.Bit32:this.pos+=4;break;case pr.LengthDelimited:let r=this.uint32();this.pos+=r;break;case pr.StartGroup:let i;for(;(i=this.tag()[1])!==pr.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 Ir.dec(...this.varint64())}uint64(){return Ir.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ir.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 Ir.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ir.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 eK(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function II(e){let t=e.field.localName,n=Object.create(null);return n[t]=Bde(e),[n,()=>n[t]]}function Bde(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 Oo(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 tK(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();h();m();T();h();var Za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),vI=[];for(let e=0;e>4,o=s,i=2;break;case 2:n[r++]=(o&15)<<4|(s&60)>>2,o=s,i=3;break;case 3:n[r++]=(o&3)<<6|s,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 s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=Za[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Za[i|r>>6],t+=Za[r&63],n=0;break}return n&&(t+=Za[i],t+="=",n==1&&(t+="=")),t}};m();T();h();function nK(e,t,n){iK(t,e);let r=t.runtime.bin.makeReadOptions(n),i=tK(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,o]=II(t);for(let u of i)t.runtime.bin.readField(s,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function rK(e,t,n,r){iK(t,e);let i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(tw(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=s.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,s);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function iK(e,t){Rn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();h();function _I(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:!NI(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function nw(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?Oo(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();h();m();T();h();function So(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(ft.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 bI(e,t){return So(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var ZJe={"google.protobuf.DoubleValue":Ee.DOUBLE,"google.protobuf.FloatValue":Ee.FLOAT,"google.protobuf.Int64Value":Ee.INT64,"google.protobuf.UInt64Value":Ee.UINT64,"google.protobuf.Int32Value":Ee.INT32,"google.protobuf.UInt32Value":Ee.UINT32,"google.protobuf.BoolValue":Ee.BOOL,"google.protobuf.StringValue":Ee.STRING,"google.protobuf.BytesValue":Ee.BYTES};var sK={ignoreUnknownFields:!1},oK={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Vde(e){return e?Object.assign(Object.assign({},sK),e):sK}function jde(e){return e?Object.assign(Object.assign({},oK),e):oK}var DI=Symbol(),OI=Symbol();function cK(){return{makeReadOptions:Vde,makeWriteOptions:jde,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${da(t)}`);r=r!=null?r:new e;let i=new Map,s=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}aK(r,u,l,n,e)}else{let d=!1;if(s!=null&&s.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=s.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[y,N]=II(p);aK(y,u,p.field,n,p),rK(r,p,N(),n)}}if(!d&&!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(!_I(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!qde(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=uK(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=s.findExtensionFor(n.typeName,o.no);if(u&&tw(e,u)){let l=nK(e,u,t),d=uK(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(s){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=s instanceof Error?s.message:String(s);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return mT(e,t,n!=null?n:bo.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||NI(e,t)))return SI(e,t)},debug:da}}function da(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 aK(e,t,n,r,i){let s=n.localName;if(n.repeated){if(Rn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(t)}`);let o=e[s];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=rw(n.T,u,r.ignoreUnknownFields,!0);l!==OI&&o.push(l);break;case"scalar":try{o.push(mT(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}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: ${da(t)}`);let o=e[s];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=$de(n.K,u)}catch(p){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw p instanceof Error&&p.message.length>0&&(y+=`: ${p.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=rw(n.V.T,l,r.ignoreUnknownFields,!0);p!==OI&&(o[d]=p);break;case"scalar":try{o[d]=mT(n.V.T,l,bo.BIGINT,!0)}catch(y){let N=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw y instanceof Error&&y.message.length>0&&(N+=`: ${y.message}`),new Error(N)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[s];So(u)?u.fromJson(t,r):(e[s]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[s]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=rw(n.T,t,r.ignoreUnknownFields,!1);switch(l){case DI:nw(n,e);break;case OI:break;default:e[s]=l;break}break;case"scalar":try{let d=mT(n.T,t,n.L,!1);switch(d){case DI:nw(n,e);break;default:e[s]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function $de(e,t){if(e===Ee.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return mT(e,t,bo.BIGINT,!0).toString()}function mT(e,t,n,r){if(t===null)return r?Oo(e,n):DI;switch(e){case Ee.DOUBLE:case Ee.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==Ee.FLOAT&&hI(i),i;case Ee.INT32:case Ee.FIXED32:case Ee.SFIXED32:case Ee.SINT32:case Ee.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==Ee.UINT32||e==Ee.FIXED32?fT(s):Hp(s),s;case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Ir.parse(t);return n?o.toString():o;case Ee.FIXED64:case Ee.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Ir.uParse(t);return n?u.toString():u;case Ee.BOOL:if(typeof t!="boolean")break;return t;case Ee.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ee.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return ew.dec(t)}throw new Error}function rw(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:DI;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 OI;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${da(t)}`)}function qde(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function uK(e,t,n){if(e.kind=="map"){Rn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=SI(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let s=e.V.T;for(let[o,u]of i)r[o.toString()]=iw(s,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){Rn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return SI(e.T,t);case"enum":return iw(e.T,t,n.enumAsInteger);case"message":return bI(e.T,t).toJson(n)}}function iw(e,t,n){var r;if(Rn(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 SI(e,t){switch(e){case Ee.INT32:case Ee.SFIXED32:case Ee.SINT32:case Ee.FIXED32:case Ee.UINT32:return Rn(typeof t=="number"),t;case Ee.FLOAT:case Ee.DOUBLE:return Rn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ee.STRING:return Rn(typeof t=="string"),t;case Ee.BOOL:return Rn(typeof t=="boolean"),t;case Ee.UINT64:case Ee.FIXED64:case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:return Rn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ee.BYTES:return Rn(t instanceof Uint8Array),ew.enc(t)}}m();T();h();var Wp=Symbol("@bufbuild/protobuf/unknown-fields"),lK={readUnknownFields:!0,readerFactory:e=>new gI(e)},dK={writeUnknownFields:!0,writerFactory:()=>new EI};function Kde(e){return e?Object.assign(Object.assign({},lK),e):lK}function Gde(e){return e?Object.assign(Object.assign({},dK),e):dK}function hK(){return{makeReadOptions:Kde,makeWriteOptions:Gde,listUnknownFields(e){var t;return(t=e[Wp])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Wp]},writeUnknownFields(e,t){let r=e[Wp];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[Wp])||(i[Wp]=[]),i[Wp].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let s=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=Yde),s){let N=e[o];if(r==pr.LengthDelimited&&u!=Ee.STRING&&u!=Ee.BYTES){let b=t.uint32()+t.pos;for(;t.posSo(N,y)?N:new y(N));else{let N=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?s[i]=TT(N):s[i]=N:s[i]=So(N,y)?N:new y(N)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,s[u]));case"scalar":return i.every((o,u)=>Xa(r.T,o,s[u]));case"enum":return i.every((o,u)=>Xa(Ee.INT32,o,s[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return Xa(Ee.INT32,i,s);case"scalar":return Xa(r.T,i,s);case"oneof":if(i.case!==s.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,s.value);case"enum":return Xa(Ee.INT32,i.value,s.value);case"scalar":return Xa(o.T,i.value,s.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],s[p]));case"enum":return u.every(p=>Xa(Ee.INT32,i[p],s[p]));case"scalar":let d=r.V.T;return u.every(p=>Xa(d,i[p],s[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let s=e[i.localName],o;if(i.repeated)o=s.map(wI);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(s))o[u]=wI(l)}else i.kind=="oneof"?o=i.findField(s.case)?{case:s.case,value:wI(s.value)}:{case:void 0}:o=wI(s);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 wI(e){if(e===void 0)return e;if(So(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function TT(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function NK(e,t,n){return{syntax:e,json:cK(),bin:hK(),util:Object.assign(Object.assign({},yK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return Jq(this,r,i,s)},makeEnum:Qq,makeEnumType:zR,getEnumType:Gq,makeExtension(r,i,s){return eK(this,r,i,s)}}}m();T();h();var FI=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();h();m();T();h();m();T();h();function sw(e,t){let n=IK(e);return t?n:Zde(Xde(n))}function EK(e){return sw(e,!1)}var gK=IK;function IK(e){let t=!1,n=[];for(let r=0;r`${e}$`,Xde=e=>Wde.has(e)?vK(e):e,Zde=e=>Hde.has(e)?vK(e):e;var LI=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=EK(t)}addField(t){Rn(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 FI(e,t=>_K(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]=Oo(t.T,t.L);break;case"message":break}}});var Xp;(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"})(Xp||(Xp={}));z.util.setEnumType(Xp,"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"}]);var eu;(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"})(eu||(eu={}));z.util.setEnumType(eu,"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 tu;(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"})(tu||(tu={}));z.util.setEnumType(tu,"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();h();var ow;(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"})(ow||(ow={}));z.util.setEnumType(ow,"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 Zl;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Zl||(Zl={}));z.util.setEnumType(Zl,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var Fc;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(Fc||(Fc={}));z.util.setEnumType(Fc,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var qu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(qu||(qu={}));z.util.setEnumType(qu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Lc;(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"})(Lc||(Lc={}));z.util.setEnumType(Lc,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var ed;(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"})(ed||(ed={}));z.util.setEnumType(ed,"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 nu=class nu extends ft{constructor(n){super();A(this,"id","");A(this,"name","");A(this,"routingUrl","");z.util.initPartial(n,this)}static fromBinary(n,r){return new nu().fromBinary(n,r)}static fromJson(n,r){return new nu().fromJson(n,r)}static fromJsonString(n,r){return new nu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(nu,n,r)}};A(nu,"runtime",z),A(nu,"typeName","wg.cosmo.node.v1.Subgraph"),A(nu,"fields",z.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 PI=nu,ru=class ru extends ft{constructor(n){super();A(this,"configByFeatureFlagName",{});z.util.initPartial(n,this)}static fromBinary(n,r){return new ru().fromBinary(n,r)}static fromJson(n,r){return new ru().fromJson(n,r)}static fromJsonString(n,r){return new ru().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ru,n,r)}};A(ru,"runtime",z),A(ru,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),A(ru,"fields",z.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:uw}}]));var aw=ru,iu=class iu extends ft{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new iu().fromBinary(n,r)}static fromJson(n,r){return new iu().fromJson(n,r)}static fromJsonString(n,r){return new iu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(iu,n,r)}};A(iu,"runtime",z),A(iu,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),A(iu,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Zp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:PI,repeated:!0}]));var uw=iu,su=class su extends ft{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);A(this,"featureFlagConfigs");z.util.initPartial(n,this)}static fromBinary(n,r){return new su().fromBinary(n,r)}static fromJson(n,r){return new su().fromJson(n,r)}static fromJsonString(n,r){return new su().fromJsonString(n,r)}static equals(n,r){return z.util.equals(su,n,r)}};A(su,"runtime",z),A(su,"typeName","wg.cosmo.node.v1.RouterConfig"),A(su,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Zp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:PI,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:aw,opt:!0}]));var yT=su,ou=class ou extends ft{constructor(n){super();A(this,"code",Xp.OK);A(this,"details");z.util.initPartial(n,this)}static fromBinary(n,r){return new ou().fromBinary(n,r)}static fromJson(n,r){return new ou().fromJson(n,r)}static fromJsonString(n,r){return new ou().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ou,n,r)}};A(ou,"runtime",z),A(ou,"typeName","wg.cosmo.node.v1.Response"),A(ou,"fields",z.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:z.getEnumType(Xp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var cw=ou,au=class au extends ft{constructor(n){super();A(this,"code",0);A(this,"message","");z.util.initPartial(n,this)}static fromBinary(n,r){return new au().fromBinary(n,r)}static fromJson(n,r){return new au().fromJson(n,r)}static fromJsonString(n,r){return new au().fromJsonString(n,r)}static equals(n,r){return z.util.equals(au,n,r)}};A(au,"runtime",z),A(au,"typeName","wg.cosmo.node.v1.ResponseStatus"),A(au,"fields",z.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var bK=au,uu=class uu extends ft{constructor(n){super();A(this,"accountLimits");A(this,"graphPublicKey","");z.util.initPartial(n,this)}static fromBinary(n,r){return new uu().fromBinary(n,r)}static fromJson(n,r){return new uu().fromJson(n,r)}static fromJsonString(n,r){return new uu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(uu,n,r)}};A(uu,"runtime",z),A(uu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),A(uu,"fields",z.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:dw},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var lw=uu,cu=class cu extends ft{constructor(n){super();A(this,"traceSamplingRate",0);z.util.initPartial(n,this)}static fromBinary(n,r){return new cu().fromBinary(n,r)}static fromJson(n,r){return new cu().fromJson(n,r)}static fromJsonString(n,r){return new cu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(cu,n,r)}};A(cu,"runtime",z),A(cu,"typeName","wg.cosmo.node.v1.AccountLimits"),A(cu,"fields",z.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var dw=cu,lu=class lu extends ft{constructor(t){super(),z.util.initPartial(t,this)}static fromBinary(t,n){return new lu().fromBinary(t,n)}static fromJson(t,n){return new lu().fromJson(t,n)}static fromJsonString(t,n){return new lu().fromJsonString(t,n)}static equals(t,n){return z.util.equals(lu,t,n)}};A(lu,"runtime",z),A(lu,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),A(lu,"fields",z.util.newFieldList(()=>[]));var OK=lu,du=class du extends ft{constructor(n){super();A(this,"response");A(this,"registrationInfo");z.util.initPartial(n,this)}static fromBinary(n,r){return new du().fromBinary(n,r)}static fromJson(n,r){return new du().fromJson(n,r)}static fromJsonString(n,r){return new du().fromJsonString(n,r)}static equals(n,r){return z.util.equals(du,n,r)}};A(du,"runtime",z),A(du,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),A(du,"fields",z.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:cw},{no:2,name:"registrationInfo",kind:"message",T:lw,opt:!0}]));var SK=du,pu=class pu extends ft{constructor(n){super();A(this,"defaultFlushInterval",Ir.zero);A(this,"datasourceConfigurations",[]);A(this,"fieldConfigurations",[]);A(this,"graphqlSchema","");A(this,"typeConfigurations",[]);A(this,"stringStorage",{});A(this,"graphqlClientSchema");z.util.initPartial(n,this)}static fromBinary(n,r){return new pu().fromBinary(n,r)}static fromJson(n,r){return new pu().fromJson(n,r)}static fromJsonString(n,r){return new pu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(pu,n,r)}};A(pu,"runtime",z),A(pu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),A(pu,"fields",z.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:NT,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:vT,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:pw,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 Zp=pu,fu=class fu extends ft{constructor(n){super();A(this,"kind",Fc.STATIC);A(this,"rootNodes",[]);A(this,"childNodes",[]);A(this,"overrideFieldPathFromAlias",!1);A(this,"customGraphql");A(this,"customStatic");A(this,"directives",[]);A(this,"requestTimeoutSeconds",Ir.zero);A(this,"id","");A(this,"keys",[]);A(this,"provides",[]);A(this,"requires",[]);A(this,"customEvents");A(this,"entityInterfaces",[]);A(this,"interfaceObjects",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new fu().fromBinary(n,r)}static fromJson(n,r){return new fu().fromJson(n,r)}static fromJsonString(n,r){return new fu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(fu,n,r)}};A(fu,"runtime",z),A(fu,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),A(fu,"fields",z.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:z.getEnumType(Fc)},{no:2,name:"root_nodes",kind:"message",T:ef,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:ef,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:OT},{no:6,name:"custom_static",kind:"message",T:mw},{no:7,name:"directives",kind:"message",T:hw,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:Xl,repeated:!0},{no:11,name:"provides",kind:"message",T:Xl,repeated:!0},{no:12,name:"requires",kind:"message",T:Xl,repeated:!0},{no:13,name:"custom_events",kind:"message",T:nd},{no:14,name:"entity_interfaces",kind:"message",T:tf,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:tf,repeated:!0}]));var NT=fu,mu=class mu extends ft{constructor(n){super();A(this,"name","");A(this,"sourceType",Zl.OBJECT_FIELD);z.util.initPartial(n,this)}static fromBinary(n,r){return new mu().fromBinary(n,r)}static fromJson(n,r){return new mu().fromJson(n,r)}static fromJsonString(n,r){return new mu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(mu,n,r)}};A(mu,"runtime",z),A(mu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),A(mu,"fields",z.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:z.getEnumType(Zl)}]));var ET=mu,hu=class hu extends ft{constructor(n){super();A(this,"requiredAndScopes",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new hu().fromBinary(n,r)}static fromJson(n,r){return new hu().fromJson(n,r)}static fromJsonString(n,r){return new hu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(hu,n,r)}};A(hu,"runtime",z),A(hu,"typeName","wg.cosmo.node.v1.Scopes"),A(hu,"fields",z.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var gT=hu,Tu=class Tu extends ft{constructor(n){super();A(this,"requiresAuthentication",!1);A(this,"requiredOrScopes",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Tu().fromBinary(n,r)}static fromJson(n,r){return new Tu().fromJson(n,r)}static fromJsonString(n,r){return new Tu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Tu,n,r)}};A(Tu,"runtime",z),A(Tu,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),A(Tu,"fields",z.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:gT,repeated:!0}]));var IT=Tu,yu=class yu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"argumentsConfiguration",[]);A(this,"authorizationConfiguration");A(this,"subscriptionFilterCondition");z.util.initPartial(n,this)}static fromBinary(n,r){return new yu().fromBinary(n,r)}static fromJson(n,r){return new yu().fromJson(n,r)}static fromJsonString(n,r){return new yu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(yu,n,r)}};A(yu,"runtime",z),A(yu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),A(yu,"fields",z.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:ET,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:IT},{no:5,name:"subscription_filter_condition",kind:"message",T:Pc,opt:!0}]));var vT=yu,Nu=class Nu extends ft{constructor(n){super();A(this,"typeName","");A(this,"renameTo","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Nu().fromBinary(n,r)}static fromJson(n,r){return new Nu().fromJson(n,r)}static fromJsonString(n,r){return new Nu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Nu,n,r)}};A(Nu,"runtime",z),A(Nu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),A(Nu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var pw=Nu,Eu=class Eu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldNames",[]);A(this,"externalFieldNames",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Eu().fromBinary(n,r)}static fromJson(n,r){return new Eu().fromJson(n,r)}static fromJsonString(n,r){return new Eu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Eu,n,r)}};A(Eu,"runtime",z),A(Eu,"typeName","wg.cosmo.node.v1.TypeField"),A(Eu,"fields",z.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 ef=Eu,gu=class gu extends ft{constructor(n){super();A(this,"fieldName","");A(this,"typeName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new gu().fromBinary(n,r)}static fromJson(n,r){return new gu().fromJson(n,r)}static fromJsonString(n,r){return new gu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(gu,n,r)}};A(gu,"runtime",z),A(gu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),A(gu,"fields",z.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var _T=gu,Iu=class Iu extends ft{constructor(n){super();A(this,"fieldCoordinatesPath",[]);A(this,"fieldPath",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Iu().fromBinary(n,r)}static fromJson(n,r){return new Iu().fromJson(n,r)}static fromJsonString(n,r){return new Iu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Iu,n,r)}};A(Iu,"runtime",z),A(Iu,"typeName","wg.cosmo.node.v1.FieldSetCondition"),A(Iu,"fields",z.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:_T,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var bT=Iu,vu=class vu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"selectionSet","");A(this,"disableEntityResolver",!1);A(this,"conditions",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new vu().fromBinary(n,r)}static fromJson(n,r){return new vu().fromJson(n,r)}static fromJsonString(n,r){return new vu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(vu,n,r)}};A(vu,"runtime",z),A(vu,"typeName","wg.cosmo.node.v1.RequiredField"),A(vu,"fields",z.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:bT,repeated:!0}]));var Xl=vu,_u=class _u extends ft{constructor(n){super();A(this,"interfaceTypeName","");A(this,"concreteTypeNames",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new _u().fromBinary(n,r)}static fromJson(n,r){return new _u().fromJson(n,r)}static fromJsonString(n,r){return new _u().fromJsonString(n,r)}static equals(n,r){return z.util.equals(_u,n,r)}};A(_u,"runtime",z),A(_u,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),A(_u,"fields",z.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 tf=_u,bu=class bu extends ft{constructor(n){super();A(this,"url");A(this,"method",ed.GET);A(this,"header",{});A(this,"body");A(this,"query",[]);A(this,"urlEncodeBody",!1);A(this,"mtls");A(this,"baseUrl");A(this,"path");A(this,"httpProxyUrl");z.util.initPartial(n,this)}static fromBinary(n,r){return new bu().fromBinary(n,r)}static fromJson(n,r){return new bu().fromJson(n,r)}static fromJsonString(n,r){return new bu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(bu,n,r)}};A(bu,"runtime",z),A(bu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),A(bu,"fields",z.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Fi},{no:2,name:"method",kind:"enum",T:z.getEnumType(ed)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:yw}},{no:4,name:"body",kind:"message",T:Fi},{no:5,name:"query",kind:"message",T:Tw,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:Nw},{no:9,name:"base_url",kind:"message",T:Fi},{no:10,name:"path",kind:"message",T:Fi},{no:11,name:"http_proxy_url",kind:"message",T:Fi,opt:!0}]));var fw=bu,Ou=class Ou extends ft{constructor(n){super();A(this,"statusCode",Ir.zero);A(this,"typeName","");A(this,"injectStatusCodeIntoBody",!1);z.util.initPartial(n,this)}static fromBinary(n,r){return new Ou().fromBinary(n,r)}static fromJson(n,r){return new Ou().fromJson(n,r)}static fromJsonString(n,r){return new Ou().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Ou,n,r)}};A(Ou,"runtime",z),A(Ou,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),A(Ou,"fields",z.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 DK=Ou,Su=class Su extends ft{constructor(n){super();A(this,"fetch");A(this,"subscription");A(this,"federation");A(this,"upstreamSchema");A(this,"customScalarTypeFields",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Su().fromBinary(n,r)}static fromJson(n,r){return new Su().fromJson(n,r)}static fromJsonString(n,r){return new Su().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Su,n,r)}};A(Su,"runtime",z),A(Su,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),A(Su,"fields",z.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:fw},{no:2,name:"subscription",kind:"message",T:Ew},{no:3,name:"federation",kind:"message",T:gw},{no:4,name:"upstream_schema",kind:"message",T:RT},{no:6,name:"custom_scalar_type_fields",kind:"message",T:Iw,repeated:!0}]));var OT=Su,Du=class Du extends ft{constructor(n){super();A(this,"consumerName","");A(this,"streamName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Du().fromBinary(n,r)}static fromJson(n,r){return new Du().fromJson(n,r)}static fromJsonString(n,r){return new Du().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Du,n,r)}};A(Du,"runtime",z),A(Du,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),A(Du,"fields",z.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9}]));var ST=Du,Au=class Au extends ft{constructor(n){super();A(this,"engineEventConfiguration");A(this,"subjects",[]);A(this,"streamConfiguration");z.util.initPartial(n,this)}static fromBinary(n,r){return new Au().fromBinary(n,r)}static fromJson(n,r){return new Au().fromJson(n,r)}static fromJsonString(n,r){return new Au().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Au,n,r)}};A(Au,"runtime",z),A(Au,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),A(Au,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:td},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:ST}]));var DT=Au,Ru=class Ru extends ft{constructor(n){super();A(this,"engineEventConfiguration");A(this,"topics",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Ru().fromBinary(n,r)}static fromJson(n,r){return new Ru().fromJson(n,r)}static fromJsonString(n,r){return new Ru().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Ru,n,r)}};A(Ru,"runtime",z),A(Ru,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),A(Ru,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:td},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var AT=Ru,wu=class wu extends ft{constructor(n){super();A(this,"providerId","");A(this,"type",qu.PUBLISH);A(this,"typeName","");A(this,"fieldName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new wu().fromBinary(n,r)}static fromJson(n,r){return new wu().fromJson(n,r)}static fromJsonString(n,r){return new wu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(wu,n,r)}};A(wu,"runtime",z),A(wu,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),A(wu,"fields",z.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:z.getEnumType(qu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var td=wu,Fu=class Fu extends ft{constructor(n){super();A(this,"nats",[]);A(this,"kafka",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Fu().fromBinary(n,r)}static fromJson(n,r){return new Fu().fromJson(n,r)}static fromJsonString(n,r){return new Fu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Fu,n,r)}};A(Fu,"runtime",z),A(Fu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),A(Fu,"fields",z.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:DT,repeated:!0},{no:2,name:"kafka",kind:"message",T:AT,repeated:!0}]));var nd=Fu,Lu=class Lu extends ft{constructor(n){super();A(this,"data");z.util.initPartial(n,this)}static fromBinary(n,r){return new Lu().fromBinary(n,r)}static fromJson(n,r){return new Lu().fromJson(n,r)}static fromJsonString(n,r){return new Lu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Lu,n,r)}};A(Lu,"runtime",z),A(Lu,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),A(Lu,"fields",z.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Fi}]));var mw=Lu,Pu=class Pu extends ft{constructor(n){super();A(this,"kind",Lc.STATIC_CONFIGURATION_VARIABLE);A(this,"staticVariableContent","");A(this,"environmentVariableName","");A(this,"environmentVariableDefaultValue","");A(this,"placeholderVariableName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Pu().fromBinary(n,r)}static fromJson(n,r){return new Pu().fromJson(n,r)}static fromJsonString(n,r){return new Pu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Pu,n,r)}};A(Pu,"runtime",z),A(Pu,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),A(Pu,"fields",z.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:z.getEnumType(Lc)},{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 Fi=Pu,ku=class ku extends ft{constructor(n){super();A(this,"directiveName","");A(this,"renameTo","");z.util.initPartial(n,this)}static fromBinary(n,r){return new ku().fromBinary(n,r)}static fromJson(n,r){return new ku().fromJson(n,r)}static fromJsonString(n,r){return new ku().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ku,n,r)}};A(ku,"runtime",z),A(ku,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),A(ku,"fields",z.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var hw=ku,xu=class xu extends ft{constructor(n){super();A(this,"name","");A(this,"value","");z.util.initPartial(n,this)}static fromBinary(n,r){return new xu().fromBinary(n,r)}static fromJson(n,r){return new xu().fromJson(n,r)}static fromJsonString(n,r){return new xu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(xu,n,r)}};A(xu,"runtime",z),A(xu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),A(xu,"fields",z.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var Tw=xu,Cu=class Cu extends ft{constructor(n){super();A(this,"values",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Cu().fromBinary(n,r)}static fromJson(n,r){return new Cu().fromJson(n,r)}static fromJsonString(n,r){return new Cu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Cu,n,r)}};A(Cu,"runtime",z),A(Cu,"typeName","wg.cosmo.node.v1.HTTPHeader"),A(Cu,"fields",z.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Fi,repeated:!0}]));var yw=Cu,Uu=class Uu extends ft{constructor(n){super();A(this,"key");A(this,"cert");A(this,"insecureSkipVerify",!1);z.util.initPartial(n,this)}static fromBinary(n,r){return new Uu().fromBinary(n,r)}static fromJson(n,r){return new Uu().fromJson(n,r)}static fromJsonString(n,r){return new Uu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Uu,n,r)}};A(Uu,"runtime",z),A(Uu,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),A(Uu,"fields",z.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Fi},{no:2,name:"cert",kind:"message",T:Fi},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var Nw=Uu,Mu=class Mu extends ft{constructor(n){super();A(this,"enabled",!1);A(this,"url");A(this,"useSSE");A(this,"protocol");A(this,"websocketSubprotocol");z.util.initPartial(n,this)}static fromBinary(n,r){return new Mu().fromBinary(n,r)}static fromJson(n,r){return new Mu().fromJson(n,r)}static fromJsonString(n,r){return new Mu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Mu,n,r)}};A(Mu,"runtime",z),A(Mu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),A(Mu,"fields",z.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Fi},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:z.getEnumType(eu),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:z.getEnumType(tu),opt:!0}]));var Ew=Mu,Bu=class Bu extends ft{constructor(n){super();A(this,"enabled",!1);A(this,"serviceSdl","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Bu().fromBinary(n,r)}static fromJson(n,r){return new Bu().fromJson(n,r)}static fromJsonString(n,r){return new Bu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Bu,n,r)}};A(Bu,"runtime",z),A(Bu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),A(Bu,"fields",z.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var gw=Bu,Vu=class Vu extends ft{constructor(n){super();A(this,"key","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Vu().fromBinary(n,r)}static fromJson(n,r){return new Vu().fromJson(n,r)}static fromJsonString(n,r){return new Vu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Vu,n,r)}};A(Vu,"runtime",z),A(Vu,"typeName","wg.cosmo.node.v1.InternedString"),A(Vu,"fields",z.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var RT=Vu,ju=class ju extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new ju().fromBinary(n,r)}static fromJson(n,r){return new ju().fromJson(n,r)}static fromJsonString(n,r){return new ju().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ju,n,r)}};A(ju,"runtime",z),A(ju,"typeName","wg.cosmo.node.v1.SingleTypeField"),A(ju,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var Iw=ju,$u=class $u extends ft{constructor(n){super();A(this,"fieldPath",[]);A(this,"json","");z.util.initPartial(n,this)}static fromBinary(n,r){return new $u().fromBinary(n,r)}static fromJson(n,r){return new $u().fromJson(n,r)}static fromJsonString(n,r){return new $u().fromJsonString(n,r)}static equals(n,r){return z.util.equals($u,n,r)}};A($u,"runtime",z),A($u,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),A($u,"fields",z.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var wT=$u,Xs=class Xs extends ft{constructor(n){super();A(this,"and",[]);A(this,"in");A(this,"not");A(this,"or",[]);z.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 z.util.equals(Xs,n,r)}};A(Xs,"runtime",z),A(Xs,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),A(Xs,"fields",z.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Xs,repeated:!0},{no:2,name:"in",kind:"message",T:wT,opt:!0},{no:3,name:"not",kind:"message",T:Xs,opt:!0},{no:4,name:"or",kind:"message",T:Xs,repeated:!0}]));var Pc=Xs;m();T();h();var xI=zv(uI(),1);function epe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let s=i.split(".");if(s.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new _T({fieldName:s[1],typeName:s[0]}))}t.push(new bT({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function vw(e,t,n){if(e)for(let r of e){let i=epe(r);t.push(new Xl(k(k({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function AK(e){switch(e){case"publish":return qu.PUBLISH;case"request":return qu.REQUEST;case"subscribe":return qu.SUBSCRIBE}}function RK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new nd({nats:[],kafka:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,s=[...r.fieldNames],o=new ef({typeName:i,fieldNames:s});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let d=new tf({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(d):t.entityInterfaces.push(d)}vw(r.keys,t.keys,i),vw(r.provides,t.provides,i),vw(r.requires,t.requires,i);let u=[],l=[];for(let d of(n=r.events)!=null?n:[])switch(d.providerType){case xI.PROVIDER_TYPE_KAFKA:{l.push(new AT({engineEventConfiguration:new td({fieldName:d.fieldName,providerId:d.providerId,type:AK(d.type),typeName:i}),topics:d.topics}));break}case xI.PROVIDER_TYPE_NATS:{u.push(new DT(k({engineEventConfiguration:new td({fieldName:d.fieldName,providerId:d.providerId,type:AK(d.type),typeName:i}),subjects:d.subjects},d.streamConfiguration?{streamConfiguration:new ST({consumerName:d.streamConfiguration.consumerName,streamName:d.streamConfiguration.streamName})}:{})));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l)}return t}function wK(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(l=>new ET({name:l,sourceType:Zl.FIELD_ARGUMENT})),s=new vT({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),o=((n=r.requiredScopes)==null?void 0:n.map(l=>new gT({requiredAndScopes:l})))||[],u=o.length>0;if((r.requiresAuthentication||u)&&(s.authorizationConfiguration=new IT({requiresAuthentication:r.requiresAuthentication||u,requiredOrScopes:o})),r.subscriptionFilterCondition){let l=new Pc;kI(l,r.subscriptionFilterCondition),s.subscriptionFilterCondition=l}t.push(s)}return t}function kI(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Pc;kI(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new wT({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Pc,kI(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Pc;kI(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();h();function _w(e){return new Error(`Normalization failed to return a ${e}.`)}var tpe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new RT({key:n})},npe=e=>{switch(e){case"ws":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},rpe=e=>{switch(e){case"auto":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}throw new Error(`Unsupported websocket subprotocol '${e}'`)},LK=function(e){let t=new Zp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw _w("ConfigurationDataByTypeName");if(!n.schema)throw _w("GraphQLSchema");let r=tpe(t,jq(Bm(n.schema))),{childNodes:i,entityInterfaces:s,events:o,interfaceObjects:u,keys:l,provides:d,requires:p,rootNodes:y}=RK(n.configurationDataByTypeName),N=npe(n.subscriptionProtocol||"ws"),I=rpe(n.websocketSubprotocol||"auto"),b,C,j;if(o.kafka.length>0||o.nats.length>0){b=Fc.PUBSUB,j=new nd({kafka:o.kafka,nats:o.nats});let re=ye=>FK.ROOT_TYPE_NAMES.has(ye.typeName),se=0,pe=0;for(;se({id:n.id,name:n.name,routingUrl:n.url}))})};m();T();h();we();function PK(e){let t;try{t=ro(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 ipe(e){let{federationResult:t,errors:n}=(0,bw.federateSubgraphs)(e.map(PK));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:Rt(t.federatedGraphAST)}}function spe(e){let t=(0,bw.federateSubgraphs)(e.map(PK));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return LK({federatedClientSDL:zd(t.federationResult.federatedGraphClientSchema),federatedSDL:zd(t.federationResult.federatedGraphSchema),fieldConfigurations:t.federationResult.fieldConfigurations,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let s=t.federationResult.subgraphConfigBySubgraphName.get(r.name),o=s==null?void 0:s.schema,u=s==null?void 0:s.configurationDataByTypeName;return{id:`${i}`,name:r.name,url:GR(r.url),sdl:r.schema,subscriptionUrl:GR((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return xe(ope);})(); +`+Mq(e.errors,t):Uq(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(hde(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:cI(r,n)}else if(Array.isArray(e))return Mq(e,n);return Tde(e,n)}function hde(e){return typeof e.toJSON=="function"}function Tde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>Bq?"["+yde(e)+"]":"{ "+n.map(([i,s])=>i+": "+cI(s,t)).join(", ")+" }"}function Mq(e,t){if(e.length===0)return"[]";if(t.length>Bq)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();h();Fe();m();T();h();Fe();function la(e){if(qe(e)){let t=la(e.ofType);if(t.kind===R.NON_NULL_TYPE)throw new Error(`Invalid type node ${Vq(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:R.NON_NULL_TYPE,type:t}}else if(Pt(e))return{kind:R.LIST_TYPE,type:la(e.ofType)};return{kind:R.NAMED_TYPE,name:{kind:R.NAME,value:e.name}}}m();T();h();Fe();function dI(e){if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=dI(n);r!=null&&t.push(r)}return{kind:R.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=dI(r);i&&t.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:n},value:i})}return{kind:R.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:R.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Nde.test(t)?{kind:R.INT,value:t}:{kind:R.FLOAT,value:t}}if(typeof e=="string")return{kind:R.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Nde=/^-?(?:0|[1-9][0-9]*)$/;m();T();h();m();T();h();function pI(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}var EYe=pI(function(t){let n=Ede(t);return new Set([...n].map(r=>r.name))}),Ede=pI(function(t){let n=QR(t);return new Set(n.values())}),QR=pI(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n});function gde(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Ide(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)cc(u)||s.push(vde(u,e,n));for(let u in r){let l=r[u],d=ao(l),p=ui(l);if(!(d||p))if(at(l))s.push(_de(l,e,n));else if(Nt(l))s.push(bde(l,e,n));else if(fn(l))s.push(Ode(l,e,n));else if(gt(l))s.push(Sde(l,e,n));else if(rn(l))s.push(Dde(l,e,n));else if(er(l))s.push(Ade(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:R.DOCUMENT,definitions:s}}function jq(e,t={}){let n=gde(e,t);return Rt(n)}function Ide(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(e.astNode!=null&&s.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)s.push(p);for(let p of s)if(p.operationTypes)for(let y of p.operationTypes)i.set(y.operation,y);let o=QR(e);for(let[p,y]of i){let N=o.get(p);if(N!=null){let I=la(N);y!=null?y.type=I:i.set(p,{kind:R.OPERATION_TYPE_DEFINITION,operation:p,type:I})}}let u=[...i.values()].filter(kq),l=zp(e,e,t);if(!u.length&&!l.length)return null;let d={kind:u!=null?R.SCHEMA_DEFINITION:R.SCHEMA_EXTENSION,operationTypes:u,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:R.STRING,value:e.description,block:!0}:void 0,d}function vde(e,t,n){var r,i,s,o;return{kind:R.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description}:void 0,name:{kind:R.NAME,value:e.name},arguments:(s=e.args)===null||s===void 0?void 0:s.map(u=>$q(u,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(u=>({kind:R.NAME,value:u})))||[]}}function zp(e,t,n){let r=lI(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=YR(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}function mI(e,t,n){var r,i;let s=[],o=null,u=lI(e,n),l;return u!=null?l=YR(t,u):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(s=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=wde(e.deprecationReason)),o==null?s:[o].concat(s)}function $q(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:la(e.type),defaultValue:e.defaultValue!==void 0&&(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0,directives:mI(e,t,n)}}function _de(e,t,n){var r,i;return{kind:R.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>qq(s,t,n)),interfaces:Object.values(e.getInterfaces()).map(s=>la(s)),directives:zp(e,t,n)}}function bde(e,t,n){var r,i;let s={kind:R.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>qq(o,t,n)),directives:zp(e,t,n)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map(o=>la(o))),s}function Ode(e,t,n){var r,i;return{kind:R.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:zp(e,t,n),types:e.getTypes().map(s=>la(s))}}function Sde(e,t,n){var r,i;return{kind:R.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:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>Rde(s,t,n)),directives:zp(e,t,n)}}function Dde(e,t,n){var r,i;return{kind:R.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},values:Object.values(e.getValues()).map(s=>Fde(s,t,n)),directives:zp(e,t,n)}}function Ade(e,t,n){var r,i,s;let o=lI(e,n),u=o?YR(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!u.some(d=>d.name.value==="specifiedBy")){let d={url:l};u.push(fI("specifiedBy",d))}return{kind:R.SCALAR_TYPE_DEFINITION,description:(s=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&s!==void 0?s:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:u}}function qq(e,t,n){var r,i;return{kind:R.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},arguments:e.args.map(s=>$q(s,t,n)),type:la(e.type),directives:mI(e,t,n)}}function Rde(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:la(e.type),directives:mI(e,t,n),defaultValue:(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0}}function Fde(e,t,n){var r,i;return{kind:R.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:mI(e,t,n)}}function wde(e){return fI("deprecated",{reason:e},Uo)}function fI(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=Hr(o,i.type);u&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=dI(s);o&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:i},value:o})}return{kind:R.DIRECTIVE,name:{kind:R.NAME,value:e},arguments:r}}function YR(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(fI(r,o,s));else n.push(fI(r,i,s))}return n}var wK=zv(uI(),1);Fe();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();function Rn(e,t){if(!e)throw new Error(t)}var Lde=34028234663852886e22,Pde=-34028234663852886e22,kde=4294967295,xde=2147483647,Cde=-2147483648;function Hp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>xde||ekde||e<0)throw new Error("invalid uint 32: "+e)}function hI(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Lde||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function zR(e,t,n){let r=Object.create(null),i=Object.create(null),s=[];for(let o of t){let u=Yq(o);s.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:s,findName(o){return r[o]},findNumber(o){return i[o]}}}function Qq(e,t,n){let r={};for(let i of t){let s=Yq(i);r[s.localName]=s.no,r[s.no]=s.localName}return JR(r,e,t,n),r}function Yq(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();h();m();T();h();var ft=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,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,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),s=i.writerFactory();return r.writeMessage(this,s,i),s.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 Jq(e,t,n,r){var i;let s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[s]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[s];return Object.setPrototypeOf(o.prototype,new ft),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();h();m();T();h();m();T();h();m();T();h();function Hq(){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)<>>s,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){let o=t>>>s,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var TI=4294967296;function HR(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function s(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=TI&&(i=i+(r/TI|0),r=r%TI)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?Xq(r,i):XR(r,i)}function Wq(e,t){let n=XR(e,t),r=n.hi&2147483648;r&&(n=Xq(n.lo,n.hi));let i=WR(n.lo,n.hi);return r?"-"+i:i}function WR(e,t){if({lo:e,hi:t}=Ude(e,t),t<=2097151)return String(TI*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,s=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return s>=l&&(o+=Math.floor(s/l),s%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+zq(o)+zq(s)}function Ude(e,t){return{lo:e>>>0,hi:t>>>0}}function XR(e,t){return{lo:e|0,hi:t|0}}function Xq(e,t){return t=~t,e?e=~e+1:t+=1,XR(e,t)}var zq=e=>{let t=String(e);return"0000000".slice(t.length)+t};function ZR(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 Zq(){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 Mde(){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"),s=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>s||du||dRn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>Rn(/^[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),HR(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),HR(i)},dec(i,s){return Wq(i,s)},uDec(i,s){return WR(i,s)}}}var Ir=Mde();m();T();h();var Ee;(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"})(Ee||(Ee={}));var bo;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(bo||(bo={}));function Xa(e,t,n){if(t===n)return!0;if(e==Ee.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(fT(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Hp(t),ZR(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){hI(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){fT(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Hp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Hp(t),t=(t<<1^t>>31)>>>0,ZR(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.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=Ir.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Ir.enc(t);return yI(n.lo,n.hi,this.buf),this}sint64(t){let n=Ir.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return yI(i,s,this.buf),this}uint64(t){let n=Ir.uEnc(t);return yI(n.lo,n.hi,this.buf),this}},gI=class{constructor(t,n){this.varint64=Hq,this.uint32=Zq,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 fr.Varint:for(;this.buf[this.pos++]&128;);break;case fr.Bit64:this.pos+=4;case fr.Bit32:this.pos+=4;break;case fr.LengthDelimited:let r=this.uint32();this.pos+=r;break;case fr.StartGroup:let i;for(;(i=this.tag()[1])!==fr.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 Ir.dec(...this.varint64())}uint64(){return Ir.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ir.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 Ir.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ir.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 eK(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function II(e){let t=e.field.localName,n=Object.create(null);return n[t]=Bde(e),[n,()=>n[t]]}function Bde(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 Oo(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 tK(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();h();m();T();h();var Za="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),vI=[];for(let e=0;e>4,o=s,i=2;break;case 2:n[r++]=(o&15)<<4|(s&60)>>2,o=s,i=3;break;case 3:n[r++]=(o&3)<<6|s,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 s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=Za[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Za[i|r>>6],t+=Za[r&63],n=0;break}return n&&(t+=Za[i],t+="=",n==1&&(t+="=")),t}};m();T();h();function nK(e,t,n){iK(t,e);let r=t.runtime.bin.makeReadOptions(n),i=tK(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,o]=II(t);for(let u of i)t.runtime.bin.readField(s,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function rK(e,t,n,r){iK(t,e);let i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(tF(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=s.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,s);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function iK(e,t){Rn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();h();function _I(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:!NI(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function nF(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?Oo(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();h();m();T();h();function So(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(ft.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 bI(e,t){return So(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var ZJe={"google.protobuf.DoubleValue":Ee.DOUBLE,"google.protobuf.FloatValue":Ee.FLOAT,"google.protobuf.Int64Value":Ee.INT64,"google.protobuf.UInt64Value":Ee.UINT64,"google.protobuf.Int32Value":Ee.INT32,"google.protobuf.UInt32Value":Ee.UINT32,"google.protobuf.BoolValue":Ee.BOOL,"google.protobuf.StringValue":Ee.STRING,"google.protobuf.BytesValue":Ee.BYTES};var sK={ignoreUnknownFields:!1},oK={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Vde(e){return e?Object.assign(Object.assign({},sK),e):sK}function jde(e){return e?Object.assign(Object.assign({},oK),e):oK}var DI=Symbol(),OI=Symbol();function cK(){return{makeReadOptions:Vde,makeWriteOptions:jde,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${da(t)}`);r=r!=null?r:new e;let i=new Map,s=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}aK(r,u,l,n,e)}else{let d=!1;if(s!=null&&s.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=s.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[y,N]=II(p);aK(y,u,p.field,n,p),rK(r,p,N(),n)}}if(!d&&!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(!_I(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!qde(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=uK(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=s.findExtensionFor(n.typeName,o.no);if(u&&tF(e,u)){let l=nK(e,u,t),d=uK(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(s){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=s instanceof Error?s.message:String(s);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return mT(e,t,n!=null?n:bo.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||NI(e,t)))return SI(e,t)},debug:da}}function da(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 aK(e,t,n,r,i){let s=n.localName;if(n.repeated){if(Rn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(t)}`);let o=e[s];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=rF(n.T,u,r.ignoreUnknownFields,!0);l!==OI&&o.push(l);break;case"scalar":try{o.push(mT(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}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: ${da(t)}`);let o=e[s];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=$de(n.K,u)}catch(p){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw p instanceof Error&&p.message.length>0&&(y+=`: ${p.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=rF(n.V.T,l,r.ignoreUnknownFields,!0);p!==OI&&(o[d]=p);break;case"scalar":try{o[d]=mT(n.V.T,l,bo.BIGINT,!0)}catch(y){let N=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw y instanceof Error&&y.message.length>0&&(N+=`: ${y.message}`),new Error(N)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[s];So(u)?u.fromJson(t,r):(e[s]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[s]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=rF(n.T,t,r.ignoreUnknownFields,!1);switch(l){case DI:nF(n,e);break;case OI:break;default:e[s]=l;break}break;case"scalar":try{let d=mT(n.T,t,n.L,!1);switch(d){case DI:nF(n,e);break;default:e[s]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${da(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function $de(e,t){if(e===Ee.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return mT(e,t,bo.BIGINT,!0).toString()}function mT(e,t,n,r){if(t===null)return r?Oo(e,n):DI;switch(e){case Ee.DOUBLE:case Ee.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==Ee.FLOAT&&hI(i),i;case Ee.INT32:case Ee.FIXED32:case Ee.SFIXED32:case Ee.SINT32:case Ee.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==Ee.UINT32||e==Ee.FIXED32?fT(s):Hp(s),s;case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Ir.parse(t);return n?o.toString():o;case Ee.FIXED64:case Ee.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Ir.uParse(t);return n?u.toString():u;case Ee.BOOL:if(typeof t!="boolean")break;return t;case Ee.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ee.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return eF.dec(t)}throw new Error}function rF(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:DI;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 OI;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${da(t)}`)}function qde(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function uK(e,t,n){if(e.kind=="map"){Rn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=SI(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let s=e.V.T;for(let[o,u]of i)r[o.toString()]=iF(s,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){Rn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return SI(e.T,t);case"enum":return iF(e.T,t,n.enumAsInteger);case"message":return bI(e.T,t).toJson(n)}}function iF(e,t,n){var r;if(Rn(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 SI(e,t){switch(e){case Ee.INT32:case Ee.SFIXED32:case Ee.SINT32:case Ee.FIXED32:case Ee.UINT32:return Rn(typeof t=="number"),t;case Ee.FLOAT:case Ee.DOUBLE:return Rn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ee.STRING:return Rn(typeof t=="string"),t;case Ee.BOOL:return Rn(typeof t=="boolean"),t;case Ee.UINT64:case Ee.FIXED64:case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:return Rn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ee.BYTES:return Rn(t instanceof Uint8Array),eF.enc(t)}}m();T();h();var Wp=Symbol("@bufbuild/protobuf/unknown-fields"),lK={readUnknownFields:!0,readerFactory:e=>new gI(e)},dK={writeUnknownFields:!0,writerFactory:()=>new EI};function Kde(e){return e?Object.assign(Object.assign({},lK),e):lK}function Gde(e){return e?Object.assign(Object.assign({},dK),e):dK}function hK(){return{makeReadOptions:Kde,makeWriteOptions:Gde,listUnknownFields(e){var t;return(t=e[Wp])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Wp]},writeUnknownFields(e,t){let r=e[Wp];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[Wp])||(i[Wp]=[]),i[Wp].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let s=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=Yde),s){let N=e[o];if(r==fr.LengthDelimited&&u!=Ee.STRING&&u!=Ee.BYTES){let b=t.uint32()+t.pos;for(;t.posSo(N,y)?N:new y(N));else{let N=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?s[i]=TT(N):s[i]=N:s[i]=So(N,y)?N:new y(N)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,s[u]));case"scalar":return i.every((o,u)=>Xa(r.T,o,s[u]));case"enum":return i.every((o,u)=>Xa(Ee.INT32,o,s[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return Xa(Ee.INT32,i,s);case"scalar":return Xa(r.T,i,s);case"oneof":if(i.case!==s.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,s.value);case"enum":return Xa(Ee.INT32,i.value,s.value);case"scalar":return Xa(o.T,i.value,s.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],s[p]));case"enum":return u.every(p=>Xa(Ee.INT32,i[p],s[p]));case"scalar":let d=r.V.T;return u.every(p=>Xa(d,i[p],s[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let s=e[i.localName],o;if(i.repeated)o=s.map(FI);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(s))o[u]=FI(l)}else i.kind=="oneof"?o=i.findField(s.case)?{case:s.case,value:FI(s.value)}:{case:void 0}:o=FI(s);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 FI(e){if(e===void 0)return e;if(So(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function TT(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function NK(e,t,n){return{syntax:e,json:cK(),bin:hK(),util:Object.assign(Object.assign({},yK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return Jq(this,r,i,s)},makeEnum:Qq,makeEnumType:zR,getEnumType:Gq,makeExtension(r,i,s){return eK(this,r,i,s)}}}m();T();h();var wI=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();h();m();T();h();m();T();h();function sF(e,t){let n=IK(e);return t?n:Zde(Xde(n))}function EK(e){return sF(e,!1)}var gK=IK;function IK(e){let t=!1,n=[];for(let r=0;r`${e}$`,Xde=e=>Wde.has(e)?vK(e):e,Zde=e=>Hde.has(e)?vK(e):e;var LI=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=EK(t)}addField(t){Rn(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 wI(e,t=>_K(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]=Oo(t.T,t.L);break;case"message":break}}});var Xp;(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"})(Xp||(Xp={}));H.util.setEnumType(Xp,"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"}]);var eu;(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"})(eu||(eu={}));H.util.setEnumType(eu,"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 tu;(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"})(tu||(tu={}));H.util.setEnumType(tu,"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();h();var oF;(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"})(oF||(oF={}));H.util.setEnumType(oF,"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 Zl;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Zl||(Zl={}));H.util.setEnumType(Zl,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var wc;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(wc||(wc={}));H.util.setEnumType(wc,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var qu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(qu||(qu={}));H.util.setEnumType(qu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Lc;(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"})(Lc||(Lc={}));H.util.setEnumType(Lc,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var ed;(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"})(ed||(ed={}));H.util.setEnumType(ed,"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 nu=class nu extends ft{constructor(n){super();A(this,"id","");A(this,"name","");A(this,"routingUrl","");H.util.initPartial(n,this)}static fromBinary(n,r){return new nu().fromBinary(n,r)}static fromJson(n,r){return new nu().fromJson(n,r)}static fromJsonString(n,r){return new nu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(nu,n,r)}};A(nu,"runtime",H),A(nu,"typeName","wg.cosmo.node.v1.Subgraph"),A(nu,"fields",H.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 PI=nu,ru=class ru extends ft{constructor(n){super();A(this,"configByFeatureFlagName",{});H.util.initPartial(n,this)}static fromBinary(n,r){return new ru().fromBinary(n,r)}static fromJson(n,r){return new ru().fromJson(n,r)}static fromJsonString(n,r){return new ru().fromJsonString(n,r)}static equals(n,r){return H.util.equals(ru,n,r)}};A(ru,"runtime",H),A(ru,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),A(ru,"fields",H.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:uF}}]));var aF=ru,iu=class iu extends ft{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new iu().fromBinary(n,r)}static fromJson(n,r){return new iu().fromJson(n,r)}static fromJsonString(n,r){return new iu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(iu,n,r)}};A(iu,"runtime",H),A(iu,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),A(iu,"fields",H.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Zp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:PI,repeated:!0}]));var uF=iu,su=class su extends ft{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);A(this,"featureFlagConfigs");H.util.initPartial(n,this)}static fromBinary(n,r){return new su().fromBinary(n,r)}static fromJson(n,r){return new su().fromJson(n,r)}static fromJsonString(n,r){return new su().fromJsonString(n,r)}static equals(n,r){return H.util.equals(su,n,r)}};A(su,"runtime",H),A(su,"typeName","wg.cosmo.node.v1.RouterConfig"),A(su,"fields",H.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Zp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:PI,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:aF,opt:!0}]));var yT=su,ou=class ou extends ft{constructor(n){super();A(this,"code",Xp.OK);A(this,"details");H.util.initPartial(n,this)}static fromBinary(n,r){return new ou().fromBinary(n,r)}static fromJson(n,r){return new ou().fromJson(n,r)}static fromJsonString(n,r){return new ou().fromJsonString(n,r)}static equals(n,r){return H.util.equals(ou,n,r)}};A(ou,"runtime",H),A(ou,"typeName","wg.cosmo.node.v1.Response"),A(ou,"fields",H.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:H.getEnumType(Xp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var cF=ou,au=class au extends ft{constructor(n){super();A(this,"code",0);A(this,"message","");H.util.initPartial(n,this)}static fromBinary(n,r){return new au().fromBinary(n,r)}static fromJson(n,r){return new au().fromJson(n,r)}static fromJsonString(n,r){return new au().fromJsonString(n,r)}static equals(n,r){return H.util.equals(au,n,r)}};A(au,"runtime",H),A(au,"typeName","wg.cosmo.node.v1.ResponseStatus"),A(au,"fields",H.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var bK=au,uu=class uu extends ft{constructor(n){super();A(this,"accountLimits");A(this,"graphPublicKey","");H.util.initPartial(n,this)}static fromBinary(n,r){return new uu().fromBinary(n,r)}static fromJson(n,r){return new uu().fromJson(n,r)}static fromJsonString(n,r){return new uu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(uu,n,r)}};A(uu,"runtime",H),A(uu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),A(uu,"fields",H.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:dF},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var lF=uu,cu=class cu extends ft{constructor(n){super();A(this,"traceSamplingRate",0);H.util.initPartial(n,this)}static fromBinary(n,r){return new cu().fromBinary(n,r)}static fromJson(n,r){return new cu().fromJson(n,r)}static fromJsonString(n,r){return new cu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(cu,n,r)}};A(cu,"runtime",H),A(cu,"typeName","wg.cosmo.node.v1.AccountLimits"),A(cu,"fields",H.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var dF=cu,lu=class lu extends ft{constructor(t){super(),H.util.initPartial(t,this)}static fromBinary(t,n){return new lu().fromBinary(t,n)}static fromJson(t,n){return new lu().fromJson(t,n)}static fromJsonString(t,n){return new lu().fromJsonString(t,n)}static equals(t,n){return H.util.equals(lu,t,n)}};A(lu,"runtime",H),A(lu,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),A(lu,"fields",H.util.newFieldList(()=>[]));var OK=lu,du=class du extends ft{constructor(n){super();A(this,"response");A(this,"registrationInfo");H.util.initPartial(n,this)}static fromBinary(n,r){return new du().fromBinary(n,r)}static fromJson(n,r){return new du().fromJson(n,r)}static fromJsonString(n,r){return new du().fromJsonString(n,r)}static equals(n,r){return H.util.equals(du,n,r)}};A(du,"runtime",H),A(du,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),A(du,"fields",H.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:cF},{no:2,name:"registrationInfo",kind:"message",T:lF,opt:!0}]));var SK=du,pu=class pu extends ft{constructor(n){super();A(this,"defaultFlushInterval",Ir.zero);A(this,"datasourceConfigurations",[]);A(this,"fieldConfigurations",[]);A(this,"graphqlSchema","");A(this,"typeConfigurations",[]);A(this,"stringStorage",{});A(this,"graphqlClientSchema");H.util.initPartial(n,this)}static fromBinary(n,r){return new pu().fromBinary(n,r)}static fromJson(n,r){return new pu().fromJson(n,r)}static fromJsonString(n,r){return new pu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(pu,n,r)}};A(pu,"runtime",H),A(pu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),A(pu,"fields",H.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:NT,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:vT,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:pF,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 Zp=pu,fu=class fu extends ft{constructor(n){super();A(this,"kind",wc.STATIC);A(this,"rootNodes",[]);A(this,"childNodes",[]);A(this,"overrideFieldPathFromAlias",!1);A(this,"customGraphql");A(this,"customStatic");A(this,"directives",[]);A(this,"requestTimeoutSeconds",Ir.zero);A(this,"id","");A(this,"keys",[]);A(this,"provides",[]);A(this,"requires",[]);A(this,"customEvents");A(this,"entityInterfaces",[]);A(this,"interfaceObjects",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new fu().fromBinary(n,r)}static fromJson(n,r){return new fu().fromJson(n,r)}static fromJsonString(n,r){return new fu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(fu,n,r)}};A(fu,"runtime",H),A(fu,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),A(fu,"fields",H.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:H.getEnumType(wc)},{no:2,name:"root_nodes",kind:"message",T:ef,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:ef,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:OT},{no:6,name:"custom_static",kind:"message",T:mF},{no:7,name:"directives",kind:"message",T:hF,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:Xl,repeated:!0},{no:11,name:"provides",kind:"message",T:Xl,repeated:!0},{no:12,name:"requires",kind:"message",T:Xl,repeated:!0},{no:13,name:"custom_events",kind:"message",T:nd},{no:14,name:"entity_interfaces",kind:"message",T:tf,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:tf,repeated:!0}]));var NT=fu,mu=class mu extends ft{constructor(n){super();A(this,"name","");A(this,"sourceType",Zl.OBJECT_FIELD);H.util.initPartial(n,this)}static fromBinary(n,r){return new mu().fromBinary(n,r)}static fromJson(n,r){return new mu().fromJson(n,r)}static fromJsonString(n,r){return new mu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(mu,n,r)}};A(mu,"runtime",H),A(mu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),A(mu,"fields",H.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:H.getEnumType(Zl)}]));var ET=mu,hu=class hu extends ft{constructor(n){super();A(this,"requiredAndScopes",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new hu().fromBinary(n,r)}static fromJson(n,r){return new hu().fromJson(n,r)}static fromJsonString(n,r){return new hu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(hu,n,r)}};A(hu,"runtime",H),A(hu,"typeName","wg.cosmo.node.v1.Scopes"),A(hu,"fields",H.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var gT=hu,Tu=class Tu extends ft{constructor(n){super();A(this,"requiresAuthentication",!1);A(this,"requiredOrScopes",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Tu().fromBinary(n,r)}static fromJson(n,r){return new Tu().fromJson(n,r)}static fromJsonString(n,r){return new Tu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Tu,n,r)}};A(Tu,"runtime",H),A(Tu,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),A(Tu,"fields",H.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:gT,repeated:!0}]));var IT=Tu,yu=class yu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"argumentsConfiguration",[]);A(this,"authorizationConfiguration");A(this,"subscriptionFilterCondition");H.util.initPartial(n,this)}static fromBinary(n,r){return new yu().fromBinary(n,r)}static fromJson(n,r){return new yu().fromJson(n,r)}static fromJsonString(n,r){return new yu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(yu,n,r)}};A(yu,"runtime",H),A(yu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),A(yu,"fields",H.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:ET,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:IT},{no:5,name:"subscription_filter_condition",kind:"message",T:Pc,opt:!0}]));var vT=yu,Nu=class Nu extends ft{constructor(n){super();A(this,"typeName","");A(this,"renameTo","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Nu().fromBinary(n,r)}static fromJson(n,r){return new Nu().fromJson(n,r)}static fromJsonString(n,r){return new Nu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Nu,n,r)}};A(Nu,"runtime",H),A(Nu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),A(Nu,"fields",H.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var pF=Nu,Eu=class Eu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldNames",[]);A(this,"externalFieldNames",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Eu().fromBinary(n,r)}static fromJson(n,r){return new Eu().fromJson(n,r)}static fromJsonString(n,r){return new Eu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Eu,n,r)}};A(Eu,"runtime",H),A(Eu,"typeName","wg.cosmo.node.v1.TypeField"),A(Eu,"fields",H.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 ef=Eu,gu=class gu extends ft{constructor(n){super();A(this,"fieldName","");A(this,"typeName","");H.util.initPartial(n,this)}static fromBinary(n,r){return new gu().fromBinary(n,r)}static fromJson(n,r){return new gu().fromJson(n,r)}static fromJsonString(n,r){return new gu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(gu,n,r)}};A(gu,"runtime",H),A(gu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),A(gu,"fields",H.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var _T=gu,Iu=class Iu extends ft{constructor(n){super();A(this,"fieldCoordinatesPath",[]);A(this,"fieldPath",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Iu().fromBinary(n,r)}static fromJson(n,r){return new Iu().fromJson(n,r)}static fromJsonString(n,r){return new Iu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Iu,n,r)}};A(Iu,"runtime",H),A(Iu,"typeName","wg.cosmo.node.v1.FieldSetCondition"),A(Iu,"fields",H.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:_T,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var bT=Iu,vu=class vu extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"selectionSet","");A(this,"disableEntityResolver",!1);A(this,"conditions",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new vu().fromBinary(n,r)}static fromJson(n,r){return new vu().fromJson(n,r)}static fromJsonString(n,r){return new vu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(vu,n,r)}};A(vu,"runtime",H),A(vu,"typeName","wg.cosmo.node.v1.RequiredField"),A(vu,"fields",H.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:bT,repeated:!0}]));var Xl=vu,_u=class _u extends ft{constructor(n){super();A(this,"interfaceTypeName","");A(this,"concreteTypeNames",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new _u().fromBinary(n,r)}static fromJson(n,r){return new _u().fromJson(n,r)}static fromJsonString(n,r){return new _u().fromJsonString(n,r)}static equals(n,r){return H.util.equals(_u,n,r)}};A(_u,"runtime",H),A(_u,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),A(_u,"fields",H.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 tf=_u,bu=class bu extends ft{constructor(n){super();A(this,"url");A(this,"method",ed.GET);A(this,"header",{});A(this,"body");A(this,"query",[]);A(this,"urlEncodeBody",!1);A(this,"mtls");A(this,"baseUrl");A(this,"path");A(this,"httpProxyUrl");H.util.initPartial(n,this)}static fromBinary(n,r){return new bu().fromBinary(n,r)}static fromJson(n,r){return new bu().fromJson(n,r)}static fromJsonString(n,r){return new bu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(bu,n,r)}};A(bu,"runtime",H),A(bu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),A(bu,"fields",H.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:wi},{no:2,name:"method",kind:"enum",T:H.getEnumType(ed)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:yF}},{no:4,name:"body",kind:"message",T:wi},{no:5,name:"query",kind:"message",T:TF,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:NF},{no:9,name:"base_url",kind:"message",T:wi},{no:10,name:"path",kind:"message",T:wi},{no:11,name:"http_proxy_url",kind:"message",T:wi,opt:!0}]));var fF=bu,Ou=class Ou extends ft{constructor(n){super();A(this,"statusCode",Ir.zero);A(this,"typeName","");A(this,"injectStatusCodeIntoBody",!1);H.util.initPartial(n,this)}static fromBinary(n,r){return new Ou().fromBinary(n,r)}static fromJson(n,r){return new Ou().fromJson(n,r)}static fromJsonString(n,r){return new Ou().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Ou,n,r)}};A(Ou,"runtime",H),A(Ou,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),A(Ou,"fields",H.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 DK=Ou,Su=class Su extends ft{constructor(n){super();A(this,"fetch");A(this,"subscription");A(this,"federation");A(this,"upstreamSchema");A(this,"customScalarTypeFields",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Su().fromBinary(n,r)}static fromJson(n,r){return new Su().fromJson(n,r)}static fromJsonString(n,r){return new Su().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Su,n,r)}};A(Su,"runtime",H),A(Su,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),A(Su,"fields",H.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:fF},{no:2,name:"subscription",kind:"message",T:EF},{no:3,name:"federation",kind:"message",T:gF},{no:4,name:"upstream_schema",kind:"message",T:RT},{no:6,name:"custom_scalar_type_fields",kind:"message",T:IF,repeated:!0}]));var OT=Su,Du=class Du extends ft{constructor(n){super();A(this,"consumerName","");A(this,"streamName","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Du().fromBinary(n,r)}static fromJson(n,r){return new Du().fromJson(n,r)}static fromJsonString(n,r){return new Du().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Du,n,r)}};A(Du,"runtime",H),A(Du,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),A(Du,"fields",H.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9}]));var ST=Du,Au=class Au extends ft{constructor(n){super();A(this,"engineEventConfiguration");A(this,"subjects",[]);A(this,"streamConfiguration");H.util.initPartial(n,this)}static fromBinary(n,r){return new Au().fromBinary(n,r)}static fromJson(n,r){return new Au().fromJson(n,r)}static fromJsonString(n,r){return new Au().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Au,n,r)}};A(Au,"runtime",H),A(Au,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),A(Au,"fields",H.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:td},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:ST}]));var DT=Au,Ru=class Ru extends ft{constructor(n){super();A(this,"engineEventConfiguration");A(this,"topics",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Ru().fromBinary(n,r)}static fromJson(n,r){return new Ru().fromJson(n,r)}static fromJsonString(n,r){return new Ru().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Ru,n,r)}};A(Ru,"runtime",H),A(Ru,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),A(Ru,"fields",H.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:td},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var AT=Ru,Fu=class Fu extends ft{constructor(n){super();A(this,"providerId","");A(this,"type",qu.PUBLISH);A(this,"typeName","");A(this,"fieldName","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Fu().fromBinary(n,r)}static fromJson(n,r){return new Fu().fromJson(n,r)}static fromJsonString(n,r){return new Fu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Fu,n,r)}};A(Fu,"runtime",H),A(Fu,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),A(Fu,"fields",H.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:H.getEnumType(qu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var td=Fu,wu=class wu extends ft{constructor(n){super();A(this,"nats",[]);A(this,"kafka",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new wu().fromBinary(n,r)}static fromJson(n,r){return new wu().fromJson(n,r)}static fromJsonString(n,r){return new wu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(wu,n,r)}};A(wu,"runtime",H),A(wu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),A(wu,"fields",H.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:DT,repeated:!0},{no:2,name:"kafka",kind:"message",T:AT,repeated:!0}]));var nd=wu,Lu=class Lu extends ft{constructor(n){super();A(this,"data");H.util.initPartial(n,this)}static fromBinary(n,r){return new Lu().fromBinary(n,r)}static fromJson(n,r){return new Lu().fromJson(n,r)}static fromJsonString(n,r){return new Lu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Lu,n,r)}};A(Lu,"runtime",H),A(Lu,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),A(Lu,"fields",H.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:wi}]));var mF=Lu,Pu=class Pu extends ft{constructor(n){super();A(this,"kind",Lc.STATIC_CONFIGURATION_VARIABLE);A(this,"staticVariableContent","");A(this,"environmentVariableName","");A(this,"environmentVariableDefaultValue","");A(this,"placeholderVariableName","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Pu().fromBinary(n,r)}static fromJson(n,r){return new Pu().fromJson(n,r)}static fromJsonString(n,r){return new Pu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Pu,n,r)}};A(Pu,"runtime",H),A(Pu,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),A(Pu,"fields",H.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:H.getEnumType(Lc)},{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 wi=Pu,ku=class ku extends ft{constructor(n){super();A(this,"directiveName","");A(this,"renameTo","");H.util.initPartial(n,this)}static fromBinary(n,r){return new ku().fromBinary(n,r)}static fromJson(n,r){return new ku().fromJson(n,r)}static fromJsonString(n,r){return new ku().fromJsonString(n,r)}static equals(n,r){return H.util.equals(ku,n,r)}};A(ku,"runtime",H),A(ku,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),A(ku,"fields",H.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var hF=ku,xu=class xu extends ft{constructor(n){super();A(this,"name","");A(this,"value","");H.util.initPartial(n,this)}static fromBinary(n,r){return new xu().fromBinary(n,r)}static fromJson(n,r){return new xu().fromJson(n,r)}static fromJsonString(n,r){return new xu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(xu,n,r)}};A(xu,"runtime",H),A(xu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),A(xu,"fields",H.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var TF=xu,Cu=class Cu extends ft{constructor(n){super();A(this,"values",[]);H.util.initPartial(n,this)}static fromBinary(n,r){return new Cu().fromBinary(n,r)}static fromJson(n,r){return new Cu().fromJson(n,r)}static fromJsonString(n,r){return new Cu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Cu,n,r)}};A(Cu,"runtime",H),A(Cu,"typeName","wg.cosmo.node.v1.HTTPHeader"),A(Cu,"fields",H.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:wi,repeated:!0}]));var yF=Cu,Uu=class Uu extends ft{constructor(n){super();A(this,"key");A(this,"cert");A(this,"insecureSkipVerify",!1);H.util.initPartial(n,this)}static fromBinary(n,r){return new Uu().fromBinary(n,r)}static fromJson(n,r){return new Uu().fromJson(n,r)}static fromJsonString(n,r){return new Uu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Uu,n,r)}};A(Uu,"runtime",H),A(Uu,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),A(Uu,"fields",H.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:wi},{no:2,name:"cert",kind:"message",T:wi},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var NF=Uu,Mu=class Mu extends ft{constructor(n){super();A(this,"enabled",!1);A(this,"url");A(this,"useSSE");A(this,"protocol");A(this,"websocketSubprotocol");H.util.initPartial(n,this)}static fromBinary(n,r){return new Mu().fromBinary(n,r)}static fromJson(n,r){return new Mu().fromJson(n,r)}static fromJsonString(n,r){return new Mu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Mu,n,r)}};A(Mu,"runtime",H),A(Mu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),A(Mu,"fields",H.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:wi},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:H.getEnumType(eu),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:H.getEnumType(tu),opt:!0}]));var EF=Mu,Bu=class Bu extends ft{constructor(n){super();A(this,"enabled",!1);A(this,"serviceSdl","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Bu().fromBinary(n,r)}static fromJson(n,r){return new Bu().fromJson(n,r)}static fromJsonString(n,r){return new Bu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Bu,n,r)}};A(Bu,"runtime",H),A(Bu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),A(Bu,"fields",H.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var gF=Bu,Vu=class Vu extends ft{constructor(n){super();A(this,"key","");H.util.initPartial(n,this)}static fromBinary(n,r){return new Vu().fromBinary(n,r)}static fromJson(n,r){return new Vu().fromJson(n,r)}static fromJsonString(n,r){return new Vu().fromJsonString(n,r)}static equals(n,r){return H.util.equals(Vu,n,r)}};A(Vu,"runtime",H),A(Vu,"typeName","wg.cosmo.node.v1.InternedString"),A(Vu,"fields",H.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var RT=Vu,ju=class ju extends ft{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");H.util.initPartial(n,this)}static fromBinary(n,r){return new ju().fromBinary(n,r)}static fromJson(n,r){return new ju().fromJson(n,r)}static fromJsonString(n,r){return new ju().fromJsonString(n,r)}static equals(n,r){return H.util.equals(ju,n,r)}};A(ju,"runtime",H),A(ju,"typeName","wg.cosmo.node.v1.SingleTypeField"),A(ju,"fields",H.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var IF=ju,$u=class $u extends ft{constructor(n){super();A(this,"fieldPath",[]);A(this,"json","");H.util.initPartial(n,this)}static fromBinary(n,r){return new $u().fromBinary(n,r)}static fromJson(n,r){return new $u().fromJson(n,r)}static fromJsonString(n,r){return new $u().fromJsonString(n,r)}static equals(n,r){return H.util.equals($u,n,r)}};A($u,"runtime",H),A($u,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),A($u,"fields",H.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var FT=$u,Xs=class Xs extends ft{constructor(n){super();A(this,"and",[]);A(this,"in");A(this,"not");A(this,"or",[]);H.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 H.util.equals(Xs,n,r)}};A(Xs,"runtime",H),A(Xs,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),A(Xs,"fields",H.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Xs,repeated:!0},{no:2,name:"in",kind:"message",T:FT,opt:!0},{no:3,name:"not",kind:"message",T:Xs,opt:!0},{no:4,name:"or",kind:"message",T:Xs,repeated:!0}]));var Pc=Xs;m();T();h();var xI=zv(uI(),1);function epe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let s=i.split(".");if(s.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new _T({fieldName:s[1],typeName:s[0]}))}t.push(new bT({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function vF(e,t,n){if(e)for(let r of e){let i=epe(r);t.push(new Xl(k(k({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function AK(e){switch(e){case"publish":return qu.PUBLISH;case"request":return qu.REQUEST;case"subscribe":return qu.SUBSCRIBE}}function RK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new nd({nats:[],kafka:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,s=[...r.fieldNames],o=new ef({typeName:i,fieldNames:s});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let d=new tf({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(d):t.entityInterfaces.push(d)}vF(r.keys,t.keys,i),vF(r.provides,t.provides,i),vF(r.requires,t.requires,i);let u=[],l=[];for(let d of(n=r.events)!=null?n:[])switch(d.providerType){case xI.PROVIDER_TYPE_KAFKA:{l.push(new AT({engineEventConfiguration:new td({fieldName:d.fieldName,providerId:d.providerId,type:AK(d.type),typeName:i}),topics:d.topics}));break}case xI.PROVIDER_TYPE_NATS:{u.push(new DT(k({engineEventConfiguration:new td({fieldName:d.fieldName,providerId:d.providerId,type:AK(d.type),typeName:i}),subjects:d.subjects},d.streamConfiguration?{streamConfiguration:new ST({consumerName:d.streamConfiguration.consumerName,streamName:d.streamConfiguration.streamName})}:{})));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l)}return t}function FK(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(l=>new ET({name:l,sourceType:Zl.FIELD_ARGUMENT})),s=new vT({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),o=((n=r.requiredScopes)==null?void 0:n.map(l=>new gT({requiredAndScopes:l})))||[],u=o.length>0;if((r.requiresAuthentication||u)&&(s.authorizationConfiguration=new IT({requiresAuthentication:r.requiresAuthentication||u,requiredOrScopes:o})),r.subscriptionFilterCondition){let l=new Pc;kI(l,r.subscriptionFilterCondition),s.subscriptionFilterCondition=l}t.push(s)}return t}function kI(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Pc;kI(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new FT({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Pc,kI(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Pc;kI(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();h();function _F(e){return new Error(`Normalization failed to return a ${e}.`)}var tpe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new RT({key:n})},npe=e=>{switch(e){case"ws":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return eu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},rpe=e=>{switch(e){case"auto":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return tu.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}throw new Error(`Unsupported websocket subprotocol '${e}'`)},LK=function(e){let t=new Zp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw _F("ConfigurationDataByTypeName");if(!n.schema)throw _F("GraphQLSchema");let r=tpe(t,jq(Bm(n.schema))),{childNodes:i,entityInterfaces:s,events:o,interfaceObjects:u,keys:l,provides:d,requires:p,rootNodes:y}=RK(n.configurationDataByTypeName),N=npe(n.subscriptionProtocol||"ws"),I=rpe(n.websocketSubprotocol||"auto"),b,C,j;if(o.kafka.length>0||o.nats.length>0){b=wc.PUBSUB,j=new nd({kafka:o.kafka,nats:o.nats});let re=ye=>wK.ROOT_TYPE_NAMES.has(ye.typeName),se=0,fe=0;for(;se({id:n.id,name:n.name,routingUrl:n.url}))})};m();T();h();Fe();function PK(e){let t;try{t=ro(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 ipe(e){let{federationResult:t,errors:n}=(0,bF.federateSubgraphs)(e.map(PK));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:Rt(t.federatedGraphAST)}}function spe(e){let t=(0,bF.federateSubgraphs)(e.map(PK));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return LK({federatedClientSDL:zd(t.federationResult.federatedGraphClientSchema),federatedSDL:zd(t.federationResult.federatedGraphSchema),fieldConfigurations:t.federationResult.fieldConfigurations,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let s=t.federationResult.subgraphConfigBySubgraphName.get(r.name),o=s==null?void 0:s.schema,u=s==null?void 0:s.configurationDataByTypeName;return{id:`${i}`,name:r.name,url:GR(r.url),sdl:r.schema,subscriptionUrl:GR((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return xe(ope);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/src/federation/federation-factory.ts b/composition/src/federation/federation-factory.ts index 0fe758778..014b00a7c 100644 --- a/composition/src/federation/federation-factory.ts +++ b/composition/src/federation/federation-factory.ts @@ -130,6 +130,7 @@ import { import { AUTHENTICATED_DEFINITION, BASE_SCALARS, + DEFER_DEFINITION, DEPRECATED_DEFINITION, INACCESSIBLE_DEFINITION, REQUIRES_SCOPES_DEFINITION, @@ -193,7 +194,7 @@ import { Warning } from '../warnings/warnings'; export class FederationFactory { authorizationDataByParentTypeName: Map; concreteTypeNamesByAbstractTypeName: Map>; - clientDefinitions: MutableTypeDefinitionNode[] = [DEPRECATED_DEFINITION]; + clientDefinitions: MutableTypeDefinitionNode[] = [DEFER_DEFINITION, DEPRECATED_DEFINITION]; currentSubgraphName = ''; entityDataByTypeName: Map; entityInterfaceFederationDataByTypeName: Map; @@ -220,7 +221,7 @@ export class FederationFactory { ]); persistedDirectiveDefinitions = new Set([AUTHENTICATED, DEPRECATED, INACCESSIBLE, TAG, REQUIRES_SCOPES]); potentialPersistedDirectiveDefinitionDataByDirectiveName = new Map(); - routerDefinitions: MutableTypeDefinitionNode[] = [DEPRECATED_DEFINITION, TAG_DEFINITION]; + routerDefinitions: MutableTypeDefinitionNode[] = [DEFER_DEFINITION, DEPRECATED_DEFINITION, TAG_DEFINITION]; shareableErrorTypeNames = new Map>(); subscriptionFilterDataByFieldPath = new Map(); isMaxDepth = false; @@ -1546,6 +1547,7 @@ export class FederationFactory { } this.routerDefinitions = [ AUTHENTICATED_DEFINITION, + DEFER_DEFINITION, DEPRECATED_DEFINITION, INACCESSIBLE_DEFINITION, REQUIRES_SCOPES_DEFINITION, @@ -1554,6 +1556,7 @@ export class FederationFactory { ]; this.clientDefinitions = [ AUTHENTICATED_DEFINITION, + DEFER_DEFINITION, DEPRECATED_DEFINITION, REQUIRES_SCOPES_DEFINITION, SCOPE_SCALAR_DEFINITION, diff --git a/composition/src/utils/constants.ts b/composition/src/utils/constants.ts index b08c47d0c..b165babf6 100644 --- a/composition/src/utils/constants.ts +++ b/composition/src/utils/constants.ts @@ -15,6 +15,7 @@ import { CONDITION, CONSUMER_NAME, DEFAULT_EDFS_PROVIDER_ID, + DEFER, DEPRECATED, EDFS_KAFKA_PUBLISH, EDFS_KAFKA_SUBSCRIBE, @@ -30,14 +31,18 @@ import { FIELD_PATH, FIELD_SET_SCALAR, FIELDS, + FRAGMENT_SPREAD_UPPER, FROM, + IF, IN_UPPER, INACCESSIBLE, + INLINE_FRAGMENT_UPPER, INPUT_FIELD_DEFINITION_UPPER, INPUT_OBJECT_UPPER, INTERFACE_OBJECT, INTERFACE_UPPER, KEY, + LABEL, LINK, NAME, NOT_UPPER, @@ -769,6 +774,34 @@ export const EDFS_NATS_STREAM_CONFIGURATION_DEFINITION: MutableInputObjectNode = ], }; +export const DEFER_DEFINITION: MutableDirectiveDefinitionNode = { + arguments: [ + { + directives: [], + kind: Kind.INPUT_VALUE_DEFINITION, + name: stringToNameNode(IF), + type: { + kind: Kind.NON_NULL_TYPE, + type: stringToNamedTypeNode(BOOLEAN_SCALAR), + }, + defaultValue: { + kind: Kind.BOOLEAN, + value: true, + }, + }, + { + directives: [], + kind: Kind.INPUT_VALUE_DEFINITION, + name: stringToNameNode(LABEL), + type: stringToNamedTypeNode(STRING_SCALAR), + }, + ], + kind: Kind.DIRECTIVE_DEFINITION, + locations: stringArrayToNameNodeArray([FRAGMENT_SPREAD_UPPER, INLINE_FRAGMENT_UPPER]), + name: stringToNameNode(DEFER), + repeatable: false, +}; + export const INHERITABLE_DIRECTIVE_NAMES = [EXTERNAL, SHAREABLE]; export const baseDirectives = ` diff --git a/composition/src/utils/string-constants.ts b/composition/src/utils/string-constants.ts index ac7b2cd39..713ffede8 100644 --- a/composition/src/utils/string-constants.ts +++ b/composition/src/utils/string-constants.ts @@ -13,6 +13,7 @@ export const DEFAULT_EDFS_PROVIDER_ID = 'default'; export const DEFAULT_MUTATION = 'Mutation'; export const DEFAULT_QUERY = 'Query'; export const DEFAULT_SUBSCRIPTION = 'Subscription'; +export const DEFER = 'defer'; export const DEPRECATED = 'deprecated'; export const DEPRECATED_DEFAULT_ARGUMENT_VALUE = 'No longer supported'; export const DIRECTIVE_DEFINITION = 'directive definition'; @@ -43,6 +44,7 @@ export const FLOAT_SCALAR = 'Float'; export const FRAGMENT_DEFINITION_UPPER = 'FRAGMENT_DEFINITION'; export const FRAGMENT_SPREAD_UPPER = 'FRAGMENT_SPREAD'; export const FROM = 'from'; +export const IF = 'if'; export const IN_UPPER = 'IN'; export const INACCESSIBLE = 'inaccessible'; export const INLINE_FRAGMENT = 'inlineFragment'; @@ -57,6 +59,7 @@ export const INTERFACE = `Interface`; export const INTERFACE_UPPER = 'INTERFACE'; export const INTERFACE_OBJECT = 'interfaceObject'; export const KEY = 'key'; +export const LABEL = 'label'; export const LINK = 'link'; export const LIST = 'list'; export const LITERAL_SPACE = ' '; diff --git a/composition/tests/contracts.test.ts b/composition/tests/contracts.test.ts index 9fb80ba7c..c1a41a45f 100644 --- a/composition/tests/contracts.test.ts +++ b/composition/tests/contracts.test.ts @@ -4,6 +4,7 @@ import { normalizeString, schemaQueryDefinition, schemaToSortedNormalizedString, + versionOneClientDefinitions, versionOneRouterContractDefinitions, versionOneRouterDefinitions, } from './utils/utils'; @@ -48,7 +49,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(contractOne!.federationResult!.federatedGraphClientSchema!)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type ObjectTwo { name: String! @@ -80,7 +81,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(contractTwo!.federationResult!.federatedGraphClientSchema!)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name: String! @@ -99,7 +100,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -118,7 +119,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -133,7 +134,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -148,7 +149,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -167,7 +168,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -182,7 +183,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name: String! @@ -201,7 +202,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -216,7 +217,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` input Input { name: String @@ -235,7 +236,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -250,7 +251,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -265,7 +266,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -302,7 +303,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -317,7 +318,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` enum Enum { ONE @@ -336,7 +337,7 @@ describe('Contract tests', () => { expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -365,7 +366,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -399,7 +400,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -433,7 +434,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -467,7 +468,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -501,7 +502,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -535,7 +536,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { age: Int! @@ -568,7 +569,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name: String! @@ -600,7 +601,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name: String! @@ -632,7 +633,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name(arg: String!): String! @@ -664,7 +665,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Object { name(arg: String!): String! @@ -698,7 +699,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -734,7 +735,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -770,7 +771,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -806,7 +807,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -842,7 +843,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -878,7 +879,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -913,7 +914,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { id: ID! @@ -947,7 +948,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { id: ID! @@ -981,7 +982,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { id: ID! @@ -1015,7 +1016,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { id: ID! @@ -1049,7 +1050,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1083,7 +1084,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1117,7 +1118,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1151,7 +1152,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1185,7 +1186,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1219,7 +1220,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { age: Int! @@ -1252,7 +1253,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { name: String! @@ -1284,7 +1285,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { name: String! @@ -1316,7 +1317,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { name(arg: String!): String! @@ -1348,7 +1349,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` interface Interface { name(arg: String!): String! @@ -1380,7 +1381,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` input Input { name: String @@ -1394,7 +1395,7 @@ describe('Contract tests', () => { ); }); - test('that a client schema is produced if a @tag directive is defined on an input object #1.1', () => { + test('that a client schema is produced if a @tag directive is defined on an input object #1.2', () => { const { errors, federationResult } = federateSubgraphs([subgraphO, subgraphN]); expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphSchema)).toBe( @@ -1412,7 +1413,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` input Input { name: String @@ -1426,7 +1427,7 @@ describe('Contract tests', () => { ); }); - test('that a client schema is produced if a @tag directive is defined on an input object field #1.1', () => { + test('that a client schema is produced if a @tag directive is defined on an input object field #2.1', () => { const { errors, federationResult } = federateSubgraphs([subgraphN, subgraphP]); expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphSchema)).toBe( @@ -1444,7 +1445,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` input Input { name: String @@ -1458,7 +1459,7 @@ describe('Contract tests', () => { ); }); - test('that a client schema is produced if a @tag directive is defined on an input object field #1.2', () => { + test('that a client schema is produced if a @tag directive is defined on an input object field #2.2', () => { const { errors, federationResult } = federateSubgraphs([subgraphP, subgraphN]); expect(errors).toBeUndefined(); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphSchema)).toBe( @@ -1476,7 +1477,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` input Input { name: String @@ -1510,7 +1511,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` enum Enum { ONE @@ -1545,7 +1546,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` enum Enum { ONE @@ -1580,7 +1581,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` enum Enum { ONE @@ -1615,7 +1616,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` enum Enum { ONE @@ -1647,7 +1648,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -1676,7 +1677,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Query { dummy: String! @@ -1711,7 +1712,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! @@ -1752,7 +1753,7 @@ describe('Contract tests', () => { ); expect(schemaToSortedNormalizedString(federationResult!.federatedGraphClientSchema)).toBe( normalizeString( - schemaQueryDefinition + + versionOneClientDefinitions + ` type Entity { age: Int! diff --git a/composition/tests/federation-factory.test.ts b/composition/tests/federation-factory.test.ts index eece35f0b..c78de4439 100644 --- a/composition/tests/federation-factory.test.ts +++ b/composition/tests/federation-factory.test.ts @@ -1,6 +1,5 @@ import { federateSubgraphs, - incompatibleObjectExtensionOrphanBaseTypeError, incompatibleParentKindMergeError, INPUT_OBJECT, invalidSubgraphNamesError, @@ -785,6 +784,7 @@ describe('FederationFactory tests', () => { normalizeString( schemaQueryDefinition + ` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @executableDirective(optionalArgInAll: Float, requiredArgInAll: String!, requiredArgInSome: Int!) on FIELD directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION diff --git a/composition/tests/utils/utils.ts b/composition/tests/utils/utils.ts index be9476558..ff885cb8f 100644 --- a/composition/tests/utils/utils.ts +++ b/composition/tests/utils/utils.ts @@ -56,6 +56,7 @@ export const versionTwoDirectiveDefinitions = ` // The V1 definitions that are persisted in the raw federated schema export const versionOnePersistedBaseSchema = ` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION `; @@ -89,7 +90,8 @@ schema { }`; export const versionOnePersistedDirectiveDefinitions = ` - directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION `; export const eventDirectiveDefinitions = ` @@ -102,14 +104,18 @@ export const versionOneRouterDefinitions = schemaQueryDefinition + versionOnePer export const versionOneRouterContractDefinitions = schemaQueryDefinition + - `directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION` + - versionOnePersistedDirectiveDefinitions; + ` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION +`; export const versionOneFullEventDefinitions = fullDefaultSchemaDefinition + eventDirectiveDefinitions + baseDirectiveDefinitions; export const versionTwoRouterDirectiveDefinitions = ` directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION directive @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION @@ -117,8 +123,15 @@ export const versionTwoRouterDirectiveDefinitions = ` export const versionTwoRouterDefinitions = schemaQueryDefinition + versionTwoRouterDirectiveDefinitions; +export const versionOneClientDefinitions = + schemaQueryDefinition + + ` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT +`; + export const versionTwoClientDirectiveDefinitions = ` directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR `; diff --git a/controlplane/test/contracts.test.ts b/controlplane/test/contracts.test.ts index e03a8d4ca..8c53ac3d6 100644 --- a/controlplane/test/contracts.test.ts +++ b/controlplane/test/contracts.test.ts @@ -584,7 +584,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse.clientSchema).toEqual(`type Query { + expect(sdlResponse.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! }`); @@ -599,7 +601,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse2.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse2.clientSchema).toEqual(`type Query { + expect(sdlResponse2.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! hi: String! }`); @@ -652,7 +656,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse.clientSchema).toEqual(`type Query { + expect(sdlResponse.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! test: String! }`); @@ -667,7 +673,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse2.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse2.clientSchema).toEqual(`type Query { + expect(sdlResponse2.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! }`); @@ -723,7 +731,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse.clientSchema).toEqual(`type Query { + expect(sdlResponse.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! test: String! }`); @@ -739,7 +749,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse2.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse2.clientSchema).toEqual(`type Query { + expect(sdlResponse2.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! }`); @@ -783,7 +795,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse.clientSchema).toEqual(`type Query { + expect(sdlResponse.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! test: String! }`); @@ -800,7 +814,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse2.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse2.clientSchema).toEqual(`type Query { + expect(sdlResponse2.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! }`); @@ -863,7 +879,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse.clientSchema).toEqual(`type Query { + expect(sdlResponse.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! test: String! }`); @@ -880,7 +898,9 @@ describe('Contract tests', (ctx) => { namespace: DEFAULT_NAMESPACE, }); expect(sdlResponse2.response?.code).toEqual(EnumStatusCode.OK); - expect(sdlResponse2.clientSchema).toEqual(`type Query { + expect(sdlResponse2.clientSchema).toEqual(`directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + +type Query { hello: String! }`); @@ -1125,6 +1145,7 @@ describe('Contract tests', (ctx) => { query: Query mutation: Mutation } + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION @@ -1166,6 +1187,8 @@ describe('Contract tests', (ctx) => { } `)); expect(normalizeString(executionConfig.engineConfig!.graphqlClientSchema!)).toBe(normalizeString(` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + type Query { user(id: ID!): User! product(sku: ID!): User! @@ -1219,6 +1242,7 @@ describe('Contract tests', (ctx) => { query: Query mutation: Mutation } + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION @@ -1261,6 +1285,8 @@ describe('Contract tests', (ctx) => { } `)); expect(normalizeString(newExecutionConfig.engineConfig!.graphqlClientSchema!)).toBe(normalizeString(` + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + type Query { user(id: ID!): User! product(sku: ID!): User! diff --git a/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql b/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql index 3a7daf027..bf12c99fc 100644 --- a/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql +++ b/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql @@ -2,6 +2,11 @@ schema { query: Query } +directive @defer( + if: Boolean! = true, + label: String +) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @tag( name: String! ) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION diff --git a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql index 94f947d98..f77e3c400 100644 --- a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql +++ b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql @@ -2,6 +2,11 @@ schema { query: Query } +directive @defer( + if: Boolean! = true, + label: String +) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION diff --git a/controlplane/test/namespace.test.ts b/controlplane/test/namespace.test.ts index bf39c145a..e32df1ffa 100644 --- a/controlplane/test/namespace.test.ts +++ b/controlplane/test/namespace.test.ts @@ -11,6 +11,8 @@ const expectedFederatedGraphSDL = `schema { query: Query } +directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION type Query { diff --git a/shared/test/__snapshots__/router.config.test.ts.snap b/shared/test/__snapshots__/router.config.test.ts.snap index ff821b2d6..842809bd8 100644 --- a/shared/test/__snapshots__/router.config.test.ts.snap +++ b/shared/test/__snapshots__/router.config.test.ts.snap @@ -419,7 +419,7 @@ exports[`Router Config Builder > that the federatedClientSDL property is not pro ] } ], - "graphqlSchema": "directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", + "graphqlSchema": "directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", "stringStorage": { "71852430be20eb0aaee86a90ab19650150647219": "schema {\\n query: Query\\n}\\n\\ndirective @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n}\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\nscalar openfed__FieldSet", "7792956bbbbc1a32270a4136a1b5177d2613e20f": "directive @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}\\n\\nscalar openfed__FieldSet" @@ -553,12 +553,12 @@ exports[`Router Config Builder > that the federatedClientSDL property is propaga ] } ], - "graphqlSchema": "directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ndirective @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\nscalar openfed__Scope\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", + "graphqlSchema": "directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT\\n\\ndirective @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ndirective @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\nscalar openfed__Scope\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", "stringStorage": { "71852430be20eb0aaee86a90ab19650150647219": "schema {\\n query: Query\\n}\\n\\ndirective @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n}\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\nscalar openfed__FieldSet", "9d57919f6ad8009b991f335575994d52393069c1": "directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @composeDirective(name: String!) repeatable on SCHEMA\\n\\ndirective @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ndirective @interfaceObject on OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @link(as: String, for: String, import: [String], url: String!) repeatable on SCHEMA\\n\\ndirective @override(from: String!) on FIELD_DEFINITION\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @shareable on FIELD_DEFINITION | OBJECT\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n products: [Product]! @inaccessible\\n}\\n\\ntype Product {\\n upc: Int!\\n}\\n\\nscalar openfed__FieldSet\\n\\nscalar openfed__Scope" }, - "graphqlClientSchema": "directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\nscalar openfed__Scope\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n}\\n\\ntype Product {\\n upc: Int!\\n}" + "graphqlClientSchema": "directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\ndirective @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT\\n\\ndirective @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR\\n\\nscalar openfed__Scope\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n}\\n\\ntype Product {\\n upc: Int!\\n}" }, "subgraphs": [ { @@ -688,12 +688,12 @@ exports[`Router Config Builder > that the federatedClientSDL property is propaga ] } ], - "graphqlSchema": "directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", + "graphqlSchema": "directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}", "stringStorage": { "71852430be20eb0aaee86a90ab19650150647219": "schema {\\n query: Query\\n}\\n\\ndirective @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n}\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\nscalar openfed__FieldSet", "b0d8fd1148ce938654fc21ef67d04364b633fc75": "directive @extends on INTERFACE | OBJECT\\n\\ndirective @external on FIELD_DEFINITION | OBJECT\\n\\ndirective @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT\\n\\ndirective @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION\\n\\ndirective @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION\\n\\ntype Account @key(fields: \\"id\\") {\\n id: Int!\\n products: [Product]! @tag(name: \\"test\\")\\n}\\n\\ntype Product {\\n upc: Int!\\n}\\n\\nscalar openfed__FieldSet" }, - "graphqlClientSchema": "type Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}" + "graphqlClientSchema": "directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT\\n\\ntype Query {\\n accounts: [Account!]!\\n}\\n\\ntype Account {\\n id: Int!\\n products: [Product]!\\n}\\n\\ntype Product {\\n upc: Int!\\n}" }, "subgraphs": [ { From 76d6d13785ba692585dc7673866782a5ded2101a Mon Sep 17 00:00:00 2001 From: Aenimus Date: Mon, 16 Sep 2024 14:50:45 +0100 Subject: [PATCH 2/3] chore: update expected SDL in composition-go --- composition-go/composition_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composition-go/composition_test.go b/composition-go/composition_test.go index abd5f8f34..1a0c31076 100644 --- a/composition-go/composition_test.go +++ b/composition-go/composition_test.go @@ -70,6 +70,8 @@ func TestFederateSubgraphs(t *testing.T) { expectedSDL = ` directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @defer(if: Boolean! = true, label: String) on FRAGMENT_SPREAD | INLINE_FRAGMENT + directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION From 01bd083dde7066987e87cdae345984c7baec955a Mon Sep 17 00:00:00 2001 From: Aenimus Date: Mon, 16 Sep 2024 15:01:23 +0100 Subject: [PATCH 3/3] chore: update tests --- .../graphql/federationV1/composedFederatedV1Graph.graphql | 2 +- .../graphql/federationV2/composedFederatedV2Graph.graphql | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql b/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql index bf12c99fc..d3274087f 100644 --- a/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql +++ b/controlplane/test/graphql/federationV1/composedFederatedV1Graph.graphql @@ -3,7 +3,7 @@ schema { } directive @defer( - if: Boolean! = true, + if: Boolean! = true label: String ) on FRAGMENT_SPREAD | INLINE_FRAGMENT diff --git a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql index f77e3c400..b4aae723b 100644 --- a/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql +++ b/controlplane/test/graphql/federationV2/composedFederatedV2Graph.graphql @@ -2,13 +2,13 @@ schema { query: Query } +directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @defer( - if: Boolean! = true, + if: Boolean! = true label: String ) on FRAGMENT_SPREAD | INLINE_FRAGMENT -directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR - directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION directive @requiresScopes(