diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 9f2fdb6231..8a00ae9d16 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -18,8 +18,8 @@ class URL { return urlCanParse(url, base || ''); } } -"use strict";var shim=(()=>{var Yoe=Object.create;var rm=Object.defineProperty,Joe=Object.defineProperties,zoe=Object.getOwnPropertyDescriptor,Hoe=Object.getOwnPropertyDescriptors,Woe=Object.getOwnPropertyNames,WN=Object.getOwnPropertySymbols,Xoe=Object.getPrototypeOf,MS=Object.prototype.hasOwnProperty,ek=Object.prototype.propertyIsEnumerable;var tk=e=>{throw TypeError(e)},yr=Math.pow,xS=(e,t,r)=>t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))MS.call(t,r)&&xS(e,r,t[r]);if(WN)for(var r of WN(t))ek.call(t,r)&&xS(e,r,t[r]);return e},G=(e,t)=>Joe(e,Hoe(t));var rk=(e,t)=>{var r={};for(var n in e)MS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&WN)for(var n of WN(e))t.indexOf(n)<0&&ek.call(e,n)&&(r[n]=e[n]);return r};var ja=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nm=(e,t)=>{for(var r in t)rm(e,r,{get:t[r],enumerable:!0})},nk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Woe(t))!MS.call(e,i)&&i!==r&&rm(e,i,{get:()=>t[i],enumerable:!(n=zoe(t,i))||n.enumerable});return e};var Ln=(e,t,r)=>(r=e!=null?Yoe(Xoe(e)):{},nk(t||!e||!e.__esModule?rm(r,"default",{value:e,enumerable:!0}):r,e)),im=e=>nk(rm({},"__esModule",{value:!0}),e);var S=(e,t,r)=>xS(e,typeof t!="symbol"?t+"":t,r),jS=(e,t,r)=>t.has(e)||tk("Cannot "+r);var VS=(e,t,r)=>(jS(e,t,"read from private field"),r?r.call(e):t.get(e)),Xd=(e,t,r)=>t.has(e)?tk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),KS=(e,t,r,n)=>(jS(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Zd=(e,t,r)=>(jS(e,t,"access private method"),r);var oa=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{u(r.next(l))}catch(m){i(m)}},o=l=>{try{u(r.throw(l))}catch(m){i(m)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);u((r=r.apply(e,t)).next())});var d=ja(()=>{"use strict"});var E={};nm(E,{_debugEnd:()=>Gk,_debugProcess:()=>$k,_events:()=>sq,_eventsCount:()=>uq,_exiting:()=>Ok,_fatalExceptions:()=>Mk,_getActiveHandles:()=>Rk,_getActiveRequests:()=>Ak,_kill:()=>Pk,_linkedBinding:()=>_k,_maxListeners:()=>oq,_preload_modules:()=>nq,_rawDebug:()=>Ik,_startProfilerIdleNotifier:()=>Qk,_stopProfilerIdleNotifier:()=>Yk,_tickCallback:()=>Kk,abort:()=>Wk,addListener:()=>cq,allowedNodeEnvironmentFlags:()=>kk,arch:()=>uk,argv:()=>dk,argv0:()=>rq,assert:()=>qk,binding:()=>yk,chdir:()=>Ek,config:()=>Dk,cpuUsage:()=>eT,cwd:()=>Tk,debugPort:()=>tq,default:()=>Tq,dlopen:()=>bk,domain:()=>Sk,emit:()=>mq,emitWarning:()=>hk,env:()=>lk,execArgv:()=>fk,execPath:()=>eq,exit:()=>Bk,features:()=>xk,hasUncaughtExceptionCaptureCallback:()=>Vk,hrtime:()=>ZN,kill:()=>Ck,listeners:()=>Nq,memoryUsage:()=>Lk,moduleLoadList:()=>vk,nextTick:()=>ak,off:()=>dq,on:()=>hs,once:()=>lq,openStdin:()=>Uk,pid:()=>Xk,platform:()=>ck,ppid:()=>Zk,prependListener:()=>hq,prependOnceListener:()=>yq,reallyExit:()=>wk,release:()=>gk,removeAllListeners:()=>pq,removeListener:()=>fq,resourceUsage:()=>Fk,setSourceMapsEnabled:()=>iq,setUncaughtExceptionCaptureCallback:()=>jk,stderr:()=>zk,stdin:()=>Hk,stdout:()=>Jk,title:()=>sk,umask:()=>Nk,uptime:()=>aq,version:()=>pk,versions:()=>mk});function QS(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Zoe(){!ef||!vl||(ef=!1,vl.length?ms=vl.concat(ms):XN=-1,ms.length&&ik())}function ik(){if(!ef){var e=setTimeout(Zoe,0);ef=!0;for(var t=ms.length;t;){for(vl=ms,ms=[];++XN1)for(var r=1;r{"use strict";d();p();f();ms=[],ef=!1,XN=-1;ok.prototype.run=function(){this.fun.apply(null,this.array)};sk="browser",uk="x64",ck="browser",lk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},dk=["/usr/bin/node"],fk=[],pk="v16.8.0",mk={},hk=function(e,t){console.warn((t?t+": ":"")+e)},yk=function(e){QS("binding")},Nk=function(e){return 0},Tk=function(){return"/"},Ek=function(e){},gk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Ik=Xn,vk=[];Sk={},Ok=!1,Dk={};wk=Xn,Pk=Xn,eT=function(){return{}},Fk=eT,Lk=eT,Ck=Xn,Bk=Xn,Uk=Xn,kk={};xk={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Mk=Xn,jk=Xn;Kk=Xn,$k=Xn,Gk=Xn,Qk=Xn,Yk=Xn,Jk=void 0,zk=void 0,Hk=void 0,Wk=Xn,Xk=2,Zk=1,eq="/bin/usr/node",tq=9229,rq="node",nq=[],iq=Xn,Tc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Tc.now===void 0&&($S=Date.now(),Tc.timing&&Tc.timing.navigationStart&&($S=Tc.timing.navigationStart),Tc.now=()=>Date.now()-$S);GS=1e9;ZN.bigint=function(e){var t=ZN(e);return typeof BigInt=="undefined"?t[0]*GS+t[1]:BigInt(t[0]*GS)+BigInt(t[1])};oq=10,sq={},uq=0;cq=hs,lq=hs,dq=hs,fq=hs,pq=hs,mq=Xn,hq=hs,yq=hs;Tq={version:pk,versions:mk,arch:uk,platform:ck,release:gk,_rawDebug:Ik,moduleLoadList:vk,binding:yk,_linkedBinding:_k,_events:sq,_eventsCount:uq,_maxListeners:oq,on:hs,addListener:cq,once:lq,off:dq,removeListener:fq,removeAllListeners:pq,emit:mq,prependListener:hq,prependOnceListener:yq,listeners:Nq,domain:Sk,_exiting:Ok,config:Dk,dlopen:bk,uptime:aq,_getActiveRequests:Ak,_getActiveHandles:Rk,reallyExit:wk,_kill:Pk,cpuUsage:eT,resourceUsage:Fk,memoryUsage:Lk,kill:Ck,exit:Bk,openStdin:Uk,allowedNodeEnvironmentFlags:kk,assert:qk,features:xk,_fatalExceptions:Mk,setUncaughtExceptionCaptureCallback:jk,hasUncaughtExceptionCaptureCallback:Vk,emitWarning:hk,nextTick:ak,_tickCallback:Kk,_debugProcess:$k,_debugEnd:Gk,_startProfilerIdleNotifier:Qk,_stopProfilerIdleNotifier:Yk,stdout:Jk,stdin:Hk,stderr:zk,abort:Wk,umask:Nk,chdir:Ek,cwd:Tk,env:lk,title:sk,argv:dk,execArgv:fk,pid:Xk,ppid:Zk,execPath:eq,debugPort:tq,hrtime:ZN,argv0:rq,_preload_modules:nq,setSourceMapsEnabled:iq}});var f=ja(()=>{"use strict";Eq()});function ese(){if(gq)return am;gq=!0,am.byteLength=u,am.toByteArray=m,am.fromByteArray=T;for(var e=[],t=[],r=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=D.indexOf("=");C===-1&&(C=R);var M=C===R?0:4-C%4;return[C,M]}function u(D){var R=o(D),C=R[0],M=R[1];return(C+M)*3/4-M}function l(D,R,C){return(R+C)*3/4-C}function m(D){var R,C=o(D),M=C[0],Y=C[1],ee=new r(l(D,M,Y)),ae=0,Ne=Y>0?M-4:M,_e;for(_e=0;_e>16&255,ee[ae++]=R>>8&255,ee[ae++]=R&255;return Y===2&&(R=t[D.charCodeAt(_e)]<<2|t[D.charCodeAt(_e+1)]>>4,ee[ae++]=R&255),Y===1&&(R=t[D.charCodeAt(_e)]<<10|t[D.charCodeAt(_e+1)]<<4|t[D.charCodeAt(_e+2)]>>2,ee[ae++]=R>>8&255,ee[ae++]=R&255),ee}function h(D){return e[D>>18&63]+e[D>>12&63]+e[D>>6&63]+e[D&63]}function N(D,R,C){for(var M,Y=[],ee=R;eeNe?Ne:ae+ee));return M===1?(R=D[C-1],Y.push(e[R>>2]+e[R<<4&63]+"==")):M===2&&(R=(D[C-2]<<8)+D[C-1],Y.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),Y.join("")}return am}function tse(){if(Iq)return tT;Iq=!0;return tT.read=function(e,t,r,n,i){var a,o,u=i*8-n-1,l=(1<>1,h=-7,N=r?i-1:0,T=r?-1:1,D=e[t+N];for(N+=T,a=D&(1<<-h)-1,D>>=-h,h+=u;h>0;a=a*256+e[t+N],N+=T,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=o*256+e[t+N],N+=T,h-=8);if(a===0)a=1-m;else{if(a===l)return o?NaN:(D?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-m}return(D?-1:1)*o*Math.pow(2,a-n)},tT.write=function(e,t,r,n,i,a){var o,u,l,m=a*8-i-1,h=(1<>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:a-1,R=n?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=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+N>=1?t+=T/l:t+=T*Math.pow(2,1-N),t*l>=2&&(o++,l/=2),o+N>=h?(u=0,o=h):o+N>=1?(u=(t*l-1)*Math.pow(2,i),o=o+N):(u=t*Math.pow(2,N-1)*Math.pow(2,i),o=0));i>=8;e[r+D]=u&255,D+=R,u/=256,i-=8);for(o=o<0;e[r+D]=o&255,D+=R,o/=256,m-=8);e[r+D-R]|=C*128},tT}function rse(){if(vq)return _l;vq=!0;let e=ese(),t=tse(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_l.Buffer=o,_l.SlowBuffer=Y,_l.INSPECT_MAX_BYTES=50;let n=2147483647;_l.kMaxLength=n,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 P=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(P,_),P.foo()===42}catch(P){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(P){if(P>n)throw new RangeError('The value "'+P+'" is invalid for option "size"');let _=new Uint8Array(P);return Object.setPrototypeOf(_,o.prototype),_}function o(P,_,b){if(typeof P=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(P)}return u(P,_,b)}o.poolSize=8192;function u(P,_,b){if(typeof P=="string")return N(P,_);if(ArrayBuffer.isView(P))return D(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(Yt(P,ArrayBuffer)||P&&Yt(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Yt(P,SharedArrayBuffer)||P&&Yt(P.buffer,SharedArrayBuffer)))return R(P,_,b);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let k=P.valueOf&&P.valueOf();if(k!=null&&k!==P)return o.from(k,_,b);let $=C(P);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),_,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}o.from=function(P,_,b){return u(P,_,b)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function m(P,_,b){return l(P),P<=0?a(P):_!==void 0?typeof b=="string"?a(P).fill(_,b):a(P).fill(_):a(P)}o.alloc=function(P,_,b){return m(P,_,b)};function h(P){return l(P),a(P<0?0:M(P)|0)}o.allocUnsafe=function(P){return h(P)},o.allocUnsafeSlow=function(P){return h(P)};function N(P,_){if((typeof _!="string"||_==="")&&(_="utf8"),!o.isEncoding(_))throw new TypeError("Unknown encoding: "+_);let b=ee(P,_)|0,k=a(b),$=k.write(P,_);return $!==b&&(k=k.slice(0,$)),k}function T(P){let _=P.length<0?0:M(P.length)|0,b=a(_);for(let k=0;k<_;k+=1)b[k]=P[k]&255;return b}function D(P){if(Yt(P,Uint8Array)){let _=new Uint8Array(P);return R(_.buffer,_.byteOffset,_.byteLength)}return T(P)}function R(P,_,b){if(_<0||P.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<_+(b||0))throw new RangeError('"length" is outside of buffer bounds');let k;return _===void 0&&b===void 0?k=new Uint8Array(P):b===void 0?k=new Uint8Array(P,_):k=new Uint8Array(P,_,b),Object.setPrototypeOf(k,o.prototype),k}function C(P){if(o.isBuffer(P)){let _=M(P.length)|0,b=a(_);return b.length===0||P.copy(b,0,0,_),b}if(P.length!==void 0)return typeof P.length!="number"||pn(P.length)?a(0):T(P);if(P.type==="Buffer"&&Array.isArray(P.data))return T(P.data)}function M(P){if(P>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return P|0}function Y(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==o.prototype},o.compare=function(_,b){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),Yt(b,Uint8Array)&&(b=o.from(b,b.offset,b.byteLength)),!o.isBuffer(_)||!o.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===b)return 0;let k=_.length,$=b.length;for(let te=0,ce=Math.min(k,$);te$.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy($,te)):Uint8Array.prototype.set.call($,ce,te);else if(o.isBuffer(ce))ce.copy($,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ce.length}return $};function ee(P,_){if(o.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||Yt(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);let b=P.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&b===0)return 0;let $=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return zn(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Ba(P).length;default:if($)return k?-1:zn(P).length;_=(""+_).toLowerCase(),$=!0}}o.byteLength=ee;function ae(P,_,b){let k=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,_>>>=0,b<=_))return"";for(P||(P="utf8");;)switch(P){case"hex":return Jn(this,_,b);case"utf8":case"utf-8":return ar(this,_,b);case"ascii":return tr(this,_,b);case"latin1":case"binary":return $r(this,_,b);case"base64":return pr(this,_,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,_,b);default:if(k)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),k=!0}}o.prototype._isBuffer=!0;function Ne(P,_,b){let k=P[_];P[_]=P[b],P[b]=k}o.prototype.swap16=function(){let _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<_;b+=2)Ne(this,b,b+1);return this},o.prototype.swap32=function(){let _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<_;b+=4)Ne(this,b,b+3),Ne(this,b+1,b+2);return this},o.prototype.swap64=function(){let _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<_;b+=8)Ne(this,b,b+7),Ne(this,b+1,b+6),Ne(this,b+2,b+5),Ne(this,b+3,b+4);return this},o.prototype.toString=function(){let _=this.length;return _===0?"":arguments.length===0?ar(this,0,_):ae.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(_){if(!o.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:o.compare(this,_)===0},o.prototype.inspect=function(){let _="",b=_l.INSPECT_MAX_BYTES;return _=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(_+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(_,b,k,$,te){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),!o.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(b===void 0&&(b=0),k===void 0&&(k=_?_.length:0),$===void 0&&($=0),te===void 0&&(te=this.length),b<0||k>_.length||$<0||te>this.length)throw new RangeError("out of range index");if($>=te&&b>=k)return 0;if($>=te)return-1;if(b>=k)return 1;if(b>>>=0,k>>>=0,$>>>=0,te>>>=0,this===_)return 0;let ce=te-$,gt=k-b,Or=Math.min(ce,gt),hr=this.slice($,te),Dr=_.slice(b,k);for(let dr=0;dr2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,pn(b)&&(b=$?0:P.length-1),b<0&&(b=P.length+b),b>=P.length){if($)return-1;b=P.length-1}else if(b<0)if($)b=0;else return-1;if(typeof _=="string"&&(_=o.from(_,k)),o.isBuffer(_))return _.length===0?-1:Le(P,_,b,k,$);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(P,_,b):Uint8Array.prototype.lastIndexOf.call(P,_,b):Le(P,[_],b,k,$);throw new TypeError("val must be string, number or Buffer")}function Le(P,_,b,k,$){let te=1,ce=P.length,gt=_.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(P.length<2||_.length<2)return-1;te=2,ce/=2,gt/=2,b/=2}function Or(Dr,dr){return te===1?Dr[dr]:Dr.readUInt16BE(dr*te)}let hr;if($){let Dr=-1;for(hr=b;hrce&&(b=ce-gt),hr=b;hr>=0;hr--){let Dr=!0;for(let dr=0;dr$&&(k=$)):k=$;let te=_.length;k>te/2&&(k=te/2);let ce;for(ce=0;ce>>0,isFinite(k)?(k=k>>>0,$===void 0&&($="utf8")):($=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-b;if((k===void 0||k>te)&&(k=te),_.length>0&&(k<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let ce=!1;for(;;)switch($){case"hex":return Ve(this,_,b,k);case"utf8":case"utf-8":return ot(this,_,b,k);case"ascii":case"latin1":case"binary":return Z(this,_,b,k);case"base64":return Se(this,_,b,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,_,b,k);default:if(ce)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pr(P,_,b){return _===0&&b===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(_,b))}function ar(P,_,b){b=Math.min(P.length,b);let k=[],$=_;for(;$239?4:te>223?3:te>191?2:1;if($+gt<=b){let Or,hr,Dr,dr;switch(gt){case 1:te<128&&(ce=te);break;case 2:Or=P[$+1],(Or&192)===128&&(dr=(te&31)<<6|Or&63,dr>127&&(ce=dr));break;case 3:Or=P[$+1],hr=P[$+2],(Or&192)===128&&(hr&192)===128&&(dr=(te&15)<<12|(Or&63)<<6|hr&63,dr>2047&&(dr<55296||dr>57343)&&(ce=dr));break;case 4:Or=P[$+1],hr=P[$+2],Dr=P[$+3],(Or&192)===128&&(hr&192)===128&&(Dr&192)===128&&(dr=(te&15)<<18|(Or&63)<<12|(hr&63)<<6|Dr&63,dr>65535&&dr<1114112&&(ce=dr))}}ce===null?(ce=65533,gt=1):ce>65535&&(ce-=65536,k.push(ce>>>10&1023|55296),ce=56320|ce&1023),k.push(ce),$+=gt}return mr(k)}let vr=4096;function mr(P){let _=P.length;if(_<=vr)return String.fromCharCode.apply(String,P);let b="",k=0;for(;k<_;)b+=String.fromCharCode.apply(String,P.slice(k,k+=vr));return b}function tr(P,_,b){let k="";b=Math.min(P.length,b);for(let $=_;$k)&&(b=k);let $="";for(let te=_;tek&&(_=k),b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),b<_&&(b=_);let $=this.subarray(_,b);return Object.setPrototypeOf($,o.prototype),$};function bt(P,_,b){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+_>b)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_+--b],te=1;for(;b>0&&(te*=256);)$+=this[_+--b]*te;return $},o.prototype.readUint8=o.prototype.readUInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]|this[_+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]<<8|this[_+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},o.prototype.readBigUInt64LE=Ti(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b+this[++_]*yr(2,8)+this[++_]*yr(2,16)+this[++_]*yr(2,24),te=this[++_]+this[++_]*yr(2,8)+this[++_]*yr(2,16)+k*yr(2,24);return BigInt($)+(BigInt(te)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b*yr(2,24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+this[++_],te=this[++_]*yr(2,24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+k;return(BigInt($)<>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce=te&&($-=Math.pow(2,8*b)),$},o.prototype.readIntBE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=b,te=1,ce=this[_+--$];for(;$>0&&(te*=256);)ce+=this[_+--$]*te;return te*=128,ce>=te&&(ce-=Math.pow(2,8*b)),ce},o.prototype.readInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},o.prototype.readInt16LE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_]|this[_+1]<<8;return k&32768?k|4294901760:k},o.prototype.readInt16BE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_+1]|this[_]<<8;return k&32768?k|4294901760:k},o.prototype.readInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},o.prototype.readInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},o.prototype.readBigInt64LE=Ti(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=this[_+4]+this[_+5]*yr(2,8)+this[_+6]*yr(2,16)+(k<<24);return(BigInt($)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=(b<<24)+this[++_]*yr(2,16)+this[++_]*yr(2,8)+this[++_];return(BigInt($)<>>0,b||bt(_,4,this.length),t.read(this,_,!0,23,4)},o.prototype.readFloatBE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),t.read(this,_,!1,23,4)},o.prototype.readDoubleLE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!0,52,8)},o.prototype.readDoubleBE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!1,52,8)};function Gr(P,_,b,k,$,te){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>$||_P.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=1,ce=0;for(this[b]=_&255;++ce>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=k-1,ce=1;for(this[b+te]=_&255;--te>=0&&(ce*=256);)this[b+te]=_/ce&255;return b+k},o.prototype.writeUint8=o.prototype.writeUInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,255,0),this[b]=_&255,b+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b+3]=_>>>24,this[b+2]=_>>>16,this[b+1]=_>>>8,this[b]=_&255,b+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4};function oe(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,b}function Be(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b+7]=te,te=te>>8,P[b+6]=te,te=te>>8,P[b+5]=te,te=te>>8,P[b+4]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b+3]=ce,ce=ce>>8,P[b+2]=ce,ce=ce>>8,P[b+1]=ce,ce=ce>>8,P[b]=ce,b+8}o.prototype.writeBigUInt64LE=Ti(function(_,b=0){return oe(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ti(function(_,b=0){return Be(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=0,ce=1,gt=0;for(this[b]=_&255;++te>0)-gt&255;return b+k},o.prototype.writeIntBE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=k-1,ce=1,gt=0;for(this[b+te]=_&255;--te>=0&&(ce*=256);)_<0&>===0&&this[b+te+1]!==0&&(gt=1),this[b+te]=(_/ce>>0)-gt&255;return b+k},o.prototype.writeInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,127,-128),_<0&&(_=255+_+1),this[b]=_&255,b+1},o.prototype.writeInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),this[b]=_&255,this[b+1]=_>>>8,this[b+2]=_>>>16,this[b+3]=_>>>24,b+4},o.prototype.writeInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4},o.prototype.writeBigInt64LE=Ti(function(_,b=0){return oe(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ti(function(_,b=0){return Be(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(P,_,b,k,$,te){if(b+k>P.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Ce(P,_,b,k,$){return _=+_,b=b>>>0,$||Ie(P,_,b,4),t.write(P,_,b,k,23,4),b+4}o.prototype.writeFloatLE=function(_,b,k){return Ce(this,_,b,!0,k)},o.prototype.writeFloatBE=function(_,b,k){return Ce(this,_,b,!1,k)};function Qt(P,_,b,k,$){return _=+_,b=b>>>0,$||Ie(P,_,b,8),t.write(P,_,b,k,52,8),b+8}o.prototype.writeDoubleLE=function(_,b,k){return Qt(this,_,b,!0,k)},o.prototype.writeDoubleBE=function(_,b,k){return Qt(this,_,b,!1,k)},o.prototype.copy=function(_,b,k,$){if(!o.isBuffer(_))throw new TypeError("argument should be a Buffer");if(k||(k=0),!$&&$!==0&&($=this.length),b>=_.length&&(b=_.length),b||(b=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),_.length-b<$-k&&($=_.length-b+k);let te=$-k;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,k,$):Uint8Array.prototype.set.call(_,this.subarray(k,$),b),te},o.prototype.fill=function(_,b,k,$){if(typeof _=="string"){if(typeof b=="string"?($=b,b=0,k=this.length):typeof k=="string"&&($=k,k=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(_.length===1){let ce=_.charCodeAt(0);($==="utf8"&&ce<128||$==="latin1")&&(_=ce)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(b<0||this.length>>0,k=k===void 0?this.length:k>>>0,_||(_=0);let te;if(typeof _=="number")for(te=b;teyr(2,32)?$=Je(String(b)):typeof b=="bigint"&&($=String(b),(b>yr(BigInt(2),BigInt(32))||b<-yr(BigInt(2),BigInt(32)))&&($=Je($)),$+="n"),k+=` It must be ${_}. Received ${$}`,k},RangeError);function Je(P){let _="",b=P.length,k=P[0]==="-"?1:0;for(;b>=k+4;b-=3)_=`_${P.slice(b-3,b)}${_}`;return`${P.slice(0,b)}${_}`}function nt(P,_,b){At(_,"offset"),(P[_]===void 0||P[_+b]===void 0)&&It(_,P.length-(b+1))}function xt(P,_,b,k,$,te){if(P>b||P<_){let ce=typeof _=="bigint"?"n":"",gt;throw te>3?_===0||_===BigInt(0)?gt=`>= 0${ce} and < 2${ce} ** ${(te+1)*8}${ce}`:gt=`>= -(2${ce} ** ${(te+1)*8-1}${ce}) and < 2 ** ${(te+1)*8-1}${ce}`:gt=`>= ${_}${ce} and <= ${b}${ce}`,new z.ERR_OUT_OF_RANGE("value",gt,P)}nt(k,$,te)}function At(P,_){if(typeof P!="number")throw new z.ERR_INVALID_ARG_TYPE(_,"number",P)}function It(P,_,b){throw Math.floor(P)!==P?(At(P,b),new z.ERR_OUT_OF_RANGE(b||"offset","an integer",P)):_<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${_}`,P)}let Bi=/[^+/0-9A-Za-z-_]/g;function kd(P){if(P=P.split("=")[0],P=P.trim().replace(Bi,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function zn(P,_){_=_||1/0;let b,k=P.length,$=null,te=[];for(let ce=0;ce55295&&b<57344){if(!$){if(b>56319){(_-=3)>-1&&te.push(239,191,189);continue}else if(ce+1===k){(_-=3)>-1&&te.push(239,191,189);continue}$=b;continue}if(b<56320){(_-=3)>-1&&te.push(239,191,189),$=b;continue}b=($-55296<<10|b-56320)+65536}else $&&(_-=3)>-1&&te.push(239,191,189);if($=null,b<128){if((_-=1)<0)break;te.push(b)}else if(b<2048){if((_-=2)<0)break;te.push(b>>6|192,b&63|128)}else if(b<65536){if((_-=3)<0)break;te.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((_-=4)<0)break;te.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return te}function fl(P){let _=[];for(let b=0;b>8,$=b%256,te.push($),te.push(k);return te}function Ba(P){return e.toByteArray(kd(P))}function In(P,_,b,k){let $;for($=0;$=_.length||$>=P.length);++$)_[$+b]=P[$];return $}function Yt(P,_){return P instanceof _||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===_.name}function pn(P){return P!==P}let S_=function(){let P="0123456789abcdef",_=new Array(256);for(let b=0;b<16;++b){let k=b*16;for(let $=0;$<16;++$)_[k+$]=P[b]+P[$]}return _}();function Ti(P){return typeof BigInt=="undefined"?O_:P}function O_(){throw new Error("BigInt not supported")}return _l}var am,gq,tT,Iq,_l,vq,Sl,g,Y$e,J$e,_q=ja(()=>{"use strict";d();p();f();am={},gq=!1;tT={},Iq=!1;_l={},vq=!1;Sl=rse();Sl.Buffer;Sl.SlowBuffer;Sl.INSPECT_MAX_BYTES;Sl.kMaxLength;g=Sl.Buffer,Y$e=Sl.INSPECT_MAX_BYTES,J$e=Sl.kMaxLength});var p=ja(()=>{"use strict";_q()});var ke=O((rGe,Sq)=>{"use strict";d();p();f();Sq.exports=TypeError});var Dq=O((oGe,Oq)=>{"use strict";d();p();f();Oq.exports=typeof Reflect!="undefined"&&Reflect.setPrototypeOf||null});var rT=O((lGe,bq)=>{"use strict";d();p();f();bq.exports=Object});var Rq=O((mGe,Aq)=>{"use strict";d();p();f();var nse=rT();Aq.exports=nse.setPrototypeOf||null});var Fq=O((TGe,Pq)=>{"use strict";d();p();f();var ise="Function.prototype.bind called on incompatible ",ase=Object.prototype.toString,ose=Math.max,sse="[object Function]",wq=function(t,r){for(var n=[],i=0;i{"use strict";d();p();f();var lse=Fq();Lq.exports=Function.prototype.bind||lse});var nT=O((DGe,Cq)=>{"use strict";d();p();f();Cq.exports=Function.prototype.call});var iT=O((wGe,Bq)=>{"use strict";d();p();f();Bq.exports=Function.prototype.apply});var kq=O((CGe,Uq)=>{"use strict";d();p();f();Uq.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var YS=O((qGe,qq)=>{"use strict";d();p();f();var dse=tf(),fse=iT(),pse=nT(),mse=kq();qq.exports=mse||dse.call(pse,fse)});var om=O((VGe,xq)=>{"use strict";d();p();f();var hse=tf(),yse=ke(),Nse=nT(),Tse=YS();xq.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new yse("a function is required");return Tse(hse,Nse,t)}});var jq=O((QGe,Mq)=>{"use strict";d();p();f();Mq.exports=Object.getOwnPropertyDescriptor});var _o=O((HGe,Vq)=>{"use strict";d();p();f();var aT=jq();if(aT)try{aT([],"length")}catch(e){aT=null}Vq.exports=aT});var Qq=O((e2e,Gq)=>{"use strict";d();p();f();var Ese=om(),Kq=_o(),gse=ke(),$q={};try{$q.__proto__=null}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ise=!("toString"in $q),JS=Kq&&Kq(Object.prototype,"__proto__");Gq.exports=Ise&&(!!JS&&typeof JS.set=="function"&&Ese([JS.set])||function(t,r){if(t==null)throw new gse("set Object.prototype.__proto__ called on null or undefined");return t.__proto__=r,r})});var zS=O((i2e,zq)=>{"use strict";d();p();f();var Yq=Dq(),vse=Rq(),Jq=Qq(),_se=ke();zq.exports=Yq?function(t,r){if(Yq(t,r))return t;throw new _se("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:vse||(Jq?function(t,r){return Jq(t,r),t}:null)});var Yr=O((u2e,Hq)=>{"use strict";d();p();f();Hq.exports=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}});var HS=O((f2e,Wq)=>{"use strict";d();p();f();Wq.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var WS=O((y2e,Xq)=>{"use strict";d();p();f();var Sse=rT();Xq.exports=Sse.getPrototypeOf||null});var ix=O((g2e,nx)=>{"use strict";d();p();f();var Ose=om(),Zq=_o(),tx;try{tx=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var XS=!!tx&&Zq&&Zq(Object.prototype,"__proto__"),rx=Object,ex=rx.getPrototypeOf;nx.exports=XS&&typeof XS.get=="function"?Ose([XS.get]):typeof ex=="function"?function(t){return ex(t==null?t:rx(t))}:!1});var ZS=O((S2e,ux)=>{"use strict";d();p();f();var ax=HS(),ox=WS(),sx=ix();ux.exports=ax?function(t){return ax(t)}:ox?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ox(t)}:sx?function(t){return sx(t)}:null});var fx=O((A2e,dx)=>{"use strict";d();p();f();var cx=ke(),Dse=Yr(),lx=ZS();dx.exports=function(t){if(!Dse(t))throw new cx("Assertion failed: O must be an Object");if(!lx)throw new cx("This environment does not support fetching prototypes.");return lx(t)}});var eO=O((F2e,px)=>{"use strict";d();p();f();var bse=ke(),Ase=zS(),Rse=Yr(),wse=fx();px.exports=function(t,r){if(r!==null&&!Rse(r))throw new bse("Assertion failed: V must be Object or Null");try{Ase(t,r)}catch(n){return!1}return wse(t)===r}});var tO=O((U2e,hx)=>{"use strict";d();p();f();var mx=Object.prototype.toString;hx.exports=function(t){var r=mx.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mx.call(t.callee)==="[object Function]"),n}});var Sx=O((M2e,_x)=>{"use strict";d();p();f();var vx;Object.keys||(sm=Object.prototype.hasOwnProperty,rO=Object.prototype.toString,yx=tO(),nO=Object.prototype.propertyIsEnumerable,Nx=!nO.call({toString:null},"toString"),Tx=nO.call(function(){},"prototype"),um=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],oT=function(e){var t=e.constructor;return t&&t.prototype===e},Ex={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},gx=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!Ex["$"+e]&&sm.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{oT(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),Ix=function(e){if(typeof window=="undefined"||!gx)return oT(e);try{return oT(e)}catch(t){return!1}},vx=function(t){var r=t!==null&&typeof t=="object",n=rO.call(t)==="[object Function]",i=yx(t),a=r&&rO.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var u=Tx&&n;if(a&&t.length>0&&!sm.call(t,0))for(var l=0;l0)for(var m=0;m{"use strict";d();p();f();var Pse=Array.prototype.slice,Fse=tO(),Ox=Object.keys,sT=Ox?function(t){return Ox(t)}:Sx(),Dx=Object.keys;sT.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return Fse(n)?Dx(Pse.call(n)):Dx(n)})}else Object.keys=sT;return Object.keys||sT};bx.exports=sT});var rf=O((J2e,Rx)=>{"use strict";d();p();f();var uT=Object.defineProperty||!1;if(uT)try{uT({},"a",{value:1})}catch(e){uT=!1}Rx.exports=uT});var ys=O((X2e,wx)=>{"use strict";d();p();f();wx.exports=SyntaxError});var cT=O((rQe,Lx)=>{"use strict";d();p();f();var Px=rf(),Lse=ys(),nf=ke(),Fx=_o();Lx.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nf("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nf("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nf("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nf("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nf("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nf("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,l=!!Fx&&Fx(t,r);if(Px)Px(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(u||!i&&!a&&!o)t[r]=n;else throw new Lse("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ol=O((oQe,Bx)=>{"use strict";d();p();f();var iO=rf(),Cx=function(){return!!iO};Cx.hasArrayLengthDefineBug=function(){if(!iO)return null;try{return iO([],"length",{value:1}).length!==1}catch(t){return!0}};Bx.exports=Cx});var mn=O((lQe,xx)=>{"use strict";d();p();f();var Cse=Ax(),Bse=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Use=Object.prototype.toString,kse=Array.prototype.concat,Ux=cT(),qse=function(e){return typeof e=="function"&&Use.call(e)==="[object Function]"},kx=Ol()(),xse=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!qse(n)||!n())return}kx?Ux(e,t,r,!0):Ux(e,t,r)},qx=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Cse(t);Bse&&(n=kse.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";d();p();f();var Mse=Function.prototype.call,jse=Object.prototype.hasOwnProperty,Vse=tf();Mx.exports=Vse.call(Mse,jse)});function aO(){throw new Error("setTimeout has not been defined")}function oO(){throw new Error("clearTimeout has not been defined")}function Kx(e){if(Es===setTimeout)return setTimeout(e,0);if((Es===aO||!Es)&&setTimeout)return Es=setTimeout,setTimeout(e,0);try{return Es(e,0)}catch(t){try{return Es.call(null,e,0)}catch(r){return Es.call(this||of,e,0)}}}function Kse(){af&&Dl&&(af=!1,Dl.length?Is=Dl.concat(Is):lT=-1,Is.length&&$x())}function $x(){if(!af){var e=Kx(Kse);af=!0;for(var t=Is.length;t;){for(Dl=Is,Is=[];++lT{"use strict";d();p();f();of=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,nn=Vx={};(function(){try{Es=typeof setTimeout=="function"?setTimeout:aO}catch(e){Es=aO}try{gs=typeof clearTimeout=="function"?clearTimeout:oO}catch(e){gs=oO}})();Is=[],af=!1,lT=-1;nn.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),pO(t)?r.showHidden=t:t&&le._extend(r,t),Al(r.showHidden)&&(r.showHidden=!1),Al(r.depth)&&(r.depth=2),Al(r.colors)&&(r.colors=!1),Al(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=lue),IT(r,e,r.depth)}function lue(e,t){var r=Ec.styles[t];return r?"\x1B["+Ec.colors[r][0]+"m"+e+"\x1B["+Ec.colors[r][1]+"m":e}function due(e,t){return e}function IT(e,t,r){if(e.customInspect&&t&&NT(t.inspect)&&t.inspect!==le.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return vT(n)||(n=IT(e,n,r)),n}var i=function(T,D){if(Al(D))return T.stylize("undefined","undefined");if(vT(D)){var R="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(R,"string")}if(gM(D))return T.stylize(""+D,"number");if(pO(D))return T.stylize(""+D,"boolean");if(OT(D))return T.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(T){var D={};return T.forEach(function(R,C){D[R]=!0}),D}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),dm(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return uO(t);if(a.length===0){if(NT(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(lm(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(dm(t))return uO(t)}var l,m="",h=!1,N=["{","}"];return EM(t)&&(h=!0,N=["[","]"]),NT(t)&&(m=" [Function"+(t.name?": "+t.name:"")+"]"),lm(t)&&(m=" "+RegExp.prototype.toString.call(t)),_T(t)&&(m=" "+Date.prototype.toUTCString.call(t)),dm(t)&&(m=" "+uO(t)),a.length!==0||h&&t.length!=0?r<0?lm(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=h?function(T,D,R,C,M){for(var Y=[],ee=0,ae=D.length;ee=0&&C++,M+Y.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?R[0]+(D===""?"":D+` +"use strict";var shim=(()=>{var Yoe=Object.create;var rm=Object.defineProperty,Joe=Object.defineProperties,zoe=Object.getOwnPropertyDescriptor,Hoe=Object.getOwnPropertyDescriptors,Woe=Object.getOwnPropertyNames,WN=Object.getOwnPropertySymbols,Xoe=Object.getPrototypeOf,MS=Object.prototype.hasOwnProperty,ek=Object.prototype.propertyIsEnumerable;var tk=e=>{throw TypeError(e)},Tr=Math.pow,xS=(e,t,r)=>t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t)=>{for(var r in t||(t={}))MS.call(t,r)&&xS(e,r,t[r]);if(WN)for(var r of WN(t))ek.call(t,r)&&xS(e,r,t[r]);return e},Q=(e,t)=>Joe(e,Hoe(t));var rk=(e,t)=>{var r={};for(var n in e)MS.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&WN)for(var n of WN(e))t.indexOf(n)<0&&ek.call(e,n)&&(r[n]=e[n]);return r};var ja=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nm=(e,t)=>{for(var r in t)rm(e,r,{get:t[r],enumerable:!0})},nk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Woe(t))!MS.call(e,i)&&i!==r&&rm(e,i,{get:()=>t[i],enumerable:!(n=zoe(t,i))||n.enumerable});return e};var Ln=(e,t,r)=>(r=e!=null?Yoe(Xoe(e)):{},nk(t||!e||!e.__esModule?rm(r,"default",{value:e,enumerable:!0}):r,e)),im=e=>nk(rm({},"__esModule",{value:!0}),e);var S=(e,t,r)=>xS(e,typeof t!="symbol"?t+"":t,r),jS=(e,t,r)=>t.has(e)||tk("Cannot "+r);var VS=(e,t,r)=>(jS(e,t,"read from private field"),r?r.call(e):t.get(e)),Xd=(e,t,r)=>t.has(e)?tk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),KS=(e,t,r,n)=>(jS(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Zd=(e,t,r)=>(jS(e,t,"access private method"),r);var oa=(e,t,r)=>new Promise((n,i)=>{var a=l=>{try{u(r.next(l))}catch(m){i(m)}},o=l=>{try{u(r.throw(l))}catch(m){i(m)}},u=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);u((r=r.apply(e,t)).next())});var d=ja(()=>{"use strict"});var E={};nm(E,{_debugEnd:()=>Gk,_debugProcess:()=>$k,_events:()=>sq,_eventsCount:()=>uq,_exiting:()=>Ok,_fatalExceptions:()=>Mk,_getActiveHandles:()=>Rk,_getActiveRequests:()=>Ak,_kill:()=>Pk,_linkedBinding:()=>_k,_maxListeners:()=>oq,_preload_modules:()=>nq,_rawDebug:()=>Ik,_startProfilerIdleNotifier:()=>Qk,_stopProfilerIdleNotifier:()=>Yk,_tickCallback:()=>Kk,abort:()=>Wk,addListener:()=>cq,allowedNodeEnvironmentFlags:()=>kk,arch:()=>uk,argv:()=>dk,argv0:()=>rq,assert:()=>qk,binding:()=>yk,chdir:()=>Ek,config:()=>Dk,cpuUsage:()=>eT,cwd:()=>Tk,debugPort:()=>tq,default:()=>Tq,dlopen:()=>bk,domain:()=>Sk,emit:()=>mq,emitWarning:()=>hk,env:()=>lk,execArgv:()=>fk,execPath:()=>eq,exit:()=>Bk,features:()=>xk,hasUncaughtExceptionCaptureCallback:()=>Vk,hrtime:()=>ZN,kill:()=>Ck,listeners:()=>Nq,memoryUsage:()=>Lk,moduleLoadList:()=>vk,nextTick:()=>ak,off:()=>dq,on:()=>hs,once:()=>lq,openStdin:()=>Uk,pid:()=>Xk,platform:()=>ck,ppid:()=>Zk,prependListener:()=>hq,prependOnceListener:()=>yq,reallyExit:()=>wk,release:()=>gk,removeAllListeners:()=>pq,removeListener:()=>fq,resourceUsage:()=>Fk,setSourceMapsEnabled:()=>iq,setUncaughtExceptionCaptureCallback:()=>jk,stderr:()=>zk,stdin:()=>Hk,stdout:()=>Jk,title:()=>sk,umask:()=>Nk,uptime:()=>aq,version:()=>pk,versions:()=>mk});function QS(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function Zoe(){!ef||!vl||(ef=!1,vl.length?ms=vl.concat(ms):XN=-1,ms.length&&ik())}function ik(){if(!ef){var e=setTimeout(Zoe,0);ef=!0;for(var t=ms.length;t;){for(vl=ms,ms=[];++XN1)for(var r=1;r{"use strict";d();p();f();ms=[],ef=!1,XN=-1;ok.prototype.run=function(){this.fun.apply(null,this.array)};sk="browser",uk="x64",ck="browser",lk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},dk=["/usr/bin/node"],fk=[],pk="v16.8.0",mk={},hk=function(e,t){console.warn((t?t+": ":"")+e)},yk=function(e){QS("binding")},Nk=function(e){return 0},Tk=function(){return"/"},Ek=function(e){},gk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};Ik=Xn,vk=[];Sk={},Ok=!1,Dk={};wk=Xn,Pk=Xn,eT=function(){return{}},Fk=eT,Lk=eT,Ck=Xn,Bk=Xn,Uk=Xn,kk={};xk={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Mk=Xn,jk=Xn;Kk=Xn,$k=Xn,Gk=Xn,Qk=Xn,Yk=Xn,Jk=void 0,zk=void 0,Hk=void 0,Wk=Xn,Xk=2,Zk=1,eq="/bin/usr/node",tq=9229,rq="node",nq=[],iq=Xn,Tc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Tc.now===void 0&&($S=Date.now(),Tc.timing&&Tc.timing.navigationStart&&($S=Tc.timing.navigationStart),Tc.now=()=>Date.now()-$S);GS=1e9;ZN.bigint=function(e){var t=ZN(e);return typeof BigInt=="undefined"?t[0]*GS+t[1]:BigInt(t[0]*GS)+BigInt(t[1])};oq=10,sq={},uq=0;cq=hs,lq=hs,dq=hs,fq=hs,pq=hs,mq=Xn,hq=hs,yq=hs;Tq={version:pk,versions:mk,arch:uk,platform:ck,release:gk,_rawDebug:Ik,moduleLoadList:vk,binding:yk,_linkedBinding:_k,_events:sq,_eventsCount:uq,_maxListeners:oq,on:hs,addListener:cq,once:lq,off:dq,removeListener:fq,removeAllListeners:pq,emit:mq,prependListener:hq,prependOnceListener:yq,listeners:Nq,domain:Sk,_exiting:Ok,config:Dk,dlopen:bk,uptime:aq,_getActiveRequests:Ak,_getActiveHandles:Rk,reallyExit:wk,_kill:Pk,cpuUsage:eT,resourceUsage:Fk,memoryUsage:Lk,kill:Ck,exit:Bk,openStdin:Uk,allowedNodeEnvironmentFlags:kk,assert:qk,features:xk,_fatalExceptions:Mk,setUncaughtExceptionCaptureCallback:jk,hasUncaughtExceptionCaptureCallback:Vk,emitWarning:hk,nextTick:ak,_tickCallback:Kk,_debugProcess:$k,_debugEnd:Gk,_startProfilerIdleNotifier:Qk,_stopProfilerIdleNotifier:Yk,stdout:Jk,stdin:Hk,stderr:zk,abort:Wk,umask:Nk,chdir:Ek,cwd:Tk,env:lk,title:sk,argv:dk,execArgv:fk,pid:Xk,ppid:Zk,execPath:eq,debugPort:tq,hrtime:ZN,argv0:rq,_preload_modules:nq,setSourceMapsEnabled:iq}});var f=ja(()=>{"use strict";Eq()});function ese(){if(gq)return am;gq=!0,am.byteLength=u,am.toByteArray=m,am.fromByteArray=T;for(var e=[],t=[],r=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=n.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=D.indexOf("=");C===-1&&(C=R);var M=C===R?0:4-C%4;return[C,M]}function u(D){var R=o(D),C=R[0],M=R[1];return(C+M)*3/4-M}function l(D,R,C){return(R+C)*3/4-C}function m(D){var R,C=o(D),M=C[0],G=C[1],ee=new r(l(D,M,G)),ae=0,Ne=G>0?M-4:M,Ie;for(Ie=0;Ie>16&255,ee[ae++]=R>>8&255,ee[ae++]=R&255;return G===2&&(R=t[D.charCodeAt(Ie)]<<2|t[D.charCodeAt(Ie+1)]>>4,ee[ae++]=R&255),G===1&&(R=t[D.charCodeAt(Ie)]<<10|t[D.charCodeAt(Ie+1)]<<4|t[D.charCodeAt(Ie+2)]>>2,ee[ae++]=R>>8&255,ee[ae++]=R&255),ee}function h(D){return e[D>>18&63]+e[D>>12&63]+e[D>>6&63]+e[D&63]}function N(D,R,C){for(var M,G=[],ee=R;eeNe?Ne:ae+ee));return M===1?(R=D[C-1],G.push(e[R>>2]+e[R<<4&63]+"==")):M===2&&(R=(D[C-2]<<8)+D[C-1],G.push(e[R>>10]+e[R>>4&63]+e[R<<2&63]+"=")),G.join("")}return am}function tse(){if(Iq)return tT;Iq=!0;return tT.read=function(e,t,r,n,i){var a,o,u=i*8-n-1,l=(1<>1,h=-7,N=r?i-1:0,T=r?-1:1,D=e[t+N];for(N+=T,a=D&(1<<-h)-1,D>>=-h,h+=u;h>0;a=a*256+e[t+N],N+=T,h-=8);for(o=a&(1<<-h)-1,a>>=-h,h+=n;h>0;o=o*256+e[t+N],N+=T,h-=8);if(a===0)a=1-m;else{if(a===l)return o?NaN:(D?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-m}return(D?-1:1)*o*Math.pow(2,a-n)},tT.write=function(e,t,r,n,i,a){var o,u,l,m=a*8-i-1,h=(1<>1,T=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:a-1,R=n?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=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+N>=1?t+=T/l:t+=T*Math.pow(2,1-N),t*l>=2&&(o++,l/=2),o+N>=h?(u=0,o=h):o+N>=1?(u=(t*l-1)*Math.pow(2,i),o=o+N):(u=t*Math.pow(2,N-1)*Math.pow(2,i),o=0));i>=8;e[r+D]=u&255,D+=R,u/=256,i-=8);for(o=o<0;e[r+D]=o&255,D+=R,o/=256,m-=8);e[r+D-R]|=C*128},tT}function rse(){if(vq)return _l;vq=!0;let e=ese(),t=tse(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_l.Buffer=o,_l.SlowBuffer=G,_l.INSPECT_MAX_BYTES=50;let n=2147483647;_l.kMaxLength=n,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 P=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(P,_),P.foo()===42}catch(P){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(P){if(P>n)throw new RangeError('The value "'+P+'" is invalid for option "size"');let _=new Uint8Array(P);return Object.setPrototypeOf(_,o.prototype),_}function o(P,_,b){if(typeof P=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(P)}return u(P,_,b)}o.poolSize=8192;function u(P,_,b){if(typeof P=="string")return N(P,_);if(ArrayBuffer.isView(P))return D(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(Yt(P,ArrayBuffer)||P&&Yt(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Yt(P,SharedArrayBuffer)||P&&Yt(P.buffer,SharedArrayBuffer)))return R(P,_,b);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let k=P.valueOf&&P.valueOf();if(k!=null&&k!==P)return o.from(k,_,b);let $=C(P);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),_,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}o.from=function(P,_,b){return u(P,_,b)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function m(P,_,b){return l(P),P<=0?a(P):_!==void 0?typeof b=="string"?a(P).fill(_,b):a(P).fill(_):a(P)}o.alloc=function(P,_,b){return m(P,_,b)};function h(P){return l(P),a(P<0?0:M(P)|0)}o.allocUnsafe=function(P){return h(P)},o.allocUnsafeSlow=function(P){return h(P)};function N(P,_){if((typeof _!="string"||_==="")&&(_="utf8"),!o.isEncoding(_))throw new TypeError("Unknown encoding: "+_);let b=ee(P,_)|0,k=a(b),$=k.write(P,_);return $!==b&&(k=k.slice(0,$)),k}function T(P){let _=P.length<0?0:M(P.length)|0,b=a(_);for(let k=0;k<_;k+=1)b[k]=P[k]&255;return b}function D(P){if(Yt(P,Uint8Array)){let _=new Uint8Array(P);return R(_.buffer,_.byteOffset,_.byteLength)}return T(P)}function R(P,_,b){if(_<0||P.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<_+(b||0))throw new RangeError('"length" is outside of buffer bounds');let k;return _===void 0&&b===void 0?k=new Uint8Array(P):b===void 0?k=new Uint8Array(P,_):k=new Uint8Array(P,_,b),Object.setPrototypeOf(k,o.prototype),k}function C(P){if(o.isBuffer(P)){let _=M(P.length)|0,b=a(_);return b.length===0||P.copy(b,0,0,_),b}if(P.length!==void 0)return typeof P.length!="number"||pn(P.length)?a(0):T(P);if(P.type==="Buffer"&&Array.isArray(P.data))return T(P.data)}function M(P){if(P>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return P|0}function G(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==o.prototype},o.compare=function(_,b){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),Yt(b,Uint8Array)&&(b=o.from(b,b.offset,b.byteLength)),!o.isBuffer(_)||!o.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===b)return 0;let k=_.length,$=b.length;for(let te=0,ce=Math.min(k,$);te$.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy($,te)):Uint8Array.prototype.set.call($,ce,te);else if(o.isBuffer(ce))ce.copy($,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ce.length}return $};function ee(P,_){if(o.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||Yt(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);let b=P.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&b===0)return 0;let $=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return zn(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return Ba(P).length;default:if($)return k?-1:zn(P).length;_=(""+_).toLowerCase(),$=!0}}o.byteLength=ee;function ae(P,_,b){let k=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,_>>>=0,b<=_))return"";for(P||(P="utf8");;)switch(P){case"hex":return Jn(this,_,b);case"utf8":case"utf-8":return or(this,_,b);case"ascii":return tr(this,_,b);case"latin1":case"binary":return $r(this,_,b);case"base64":return hr(this,_,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,_,b);default:if(k)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),k=!0}}o.prototype._isBuffer=!0;function Ne(P,_,b){let k=P[_];P[_]=P[b],P[b]=k}o.prototype.swap16=function(){let _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<_;b+=2)Ne(this,b,b+1);return this},o.prototype.swap32=function(){let _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<_;b+=4)Ne(this,b,b+3),Ne(this,b+1,b+2);return this},o.prototype.swap64=function(){let _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<_;b+=8)Ne(this,b,b+7),Ne(this,b+1,b+6),Ne(this,b+2,b+5),Ne(this,b+3,b+4);return this},o.prototype.toString=function(){let _=this.length;return _===0?"":arguments.length===0?or(this,0,_):ae.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(_){if(!o.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:o.compare(this,_)===0},o.prototype.inspect=function(){let _="",b=_l.INSPECT_MAX_BYTES;return _=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(_+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(_,b,k,$,te){if(Yt(_,Uint8Array)&&(_=o.from(_,_.offset,_.byteLength)),!o.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(b===void 0&&(b=0),k===void 0&&(k=_?_.length:0),$===void 0&&($=0),te===void 0&&(te=this.length),b<0||k>_.length||$<0||te>this.length)throw new RangeError("out of range index");if($>=te&&b>=k)return 0;if($>=te)return-1;if(b>=k)return 1;if(b>>>=0,k>>>=0,$>>>=0,te>>>=0,this===_)return 0;let ce=te-$,gt=k-b,Or=Math.min(ce,gt),Nr=this.slice($,te),Dr=_.slice(b,k);for(let pr=0;pr2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,pn(b)&&(b=$?0:P.length-1),b<0&&(b=P.length+b),b>=P.length){if($)return-1;b=P.length-1}else if(b<0)if($)b=0;else return-1;if(typeof _=="string"&&(_=o.from(_,k)),o.isBuffer(_))return _.length===0?-1:Le(P,_,b,k,$);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(P,_,b):Uint8Array.prototype.lastIndexOf.call(P,_,b):Le(P,[_],b,k,$);throw new TypeError("val must be string, number or Buffer")}function Le(P,_,b,k,$){let te=1,ce=P.length,gt=_.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(P.length<2||_.length<2)return-1;te=2,ce/=2,gt/=2,b/=2}function Or(Dr,pr){return te===1?Dr[pr]:Dr.readUInt16BE(pr*te)}let Nr;if($){let Dr=-1;for(Nr=b;Nrce&&(b=ce-gt),Nr=b;Nr>=0;Nr--){let Dr=!0;for(let pr=0;pr$&&(k=$)):k=$;let te=_.length;k>te/2&&(k=te/2);let ce;for(ce=0;ce>>0,isFinite(k)?(k=k>>>0,$===void 0&&($="utf8")):($=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let te=this.length-b;if((k===void 0||k>te)&&(k=te),_.length>0&&(k<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let ce=!1;for(;;)switch($){case"hex":return Ve(this,_,b,k);case"utf8":case"utf-8":return ot(this,_,b,k);case"ascii":case"latin1":case"binary":return Z(this,_,b,k);case"base64":return Se(this,_,b,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,_,b,k);default:if(ce)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hr(P,_,b){return _===0&&b===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(_,b))}function or(P,_,b){b=Math.min(P.length,b);let k=[],$=_;for(;$239?4:te>223?3:te>191?2:1;if($+gt<=b){let Or,Nr,Dr,pr;switch(gt){case 1:te<128&&(ce=te);break;case 2:Or=P[$+1],(Or&192)===128&&(pr=(te&31)<<6|Or&63,pr>127&&(ce=pr));break;case 3:Or=P[$+1],Nr=P[$+2],(Or&192)===128&&(Nr&192)===128&&(pr=(te&15)<<12|(Or&63)<<6|Nr&63,pr>2047&&(pr<55296||pr>57343)&&(ce=pr));break;case 4:Or=P[$+1],Nr=P[$+2],Dr=P[$+3],(Or&192)===128&&(Nr&192)===128&&(Dr&192)===128&&(pr=(te&15)<<18|(Or&63)<<12|(Nr&63)<<6|Dr&63,pr>65535&&pr<1114112&&(ce=pr))}}ce===null?(ce=65533,gt=1):ce>65535&&(ce-=65536,k.push(ce>>>10&1023|55296),ce=56320|ce&1023),k.push(ce),$+=gt}return yr(k)}let vr=4096;function yr(P){let _=P.length;if(_<=vr)return String.fromCharCode.apply(String,P);let b="",k=0;for(;k<_;)b+=String.fromCharCode.apply(String,P.slice(k,k+=vr));return b}function tr(P,_,b){let k="";b=Math.min(P.length,b);for(let $=_;$k)&&(b=k);let $="";for(let te=_;tek&&(_=k),b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),b<_&&(b=_);let $=this.subarray(_,b);return Object.setPrototypeOf($,o.prototype),$};function bt(P,_,b){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+_>b)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_+--b],te=1;for(;b>0&&(te*=256);)$+=this[_+--b]*te;return $},o.prototype.readUint8=o.prototype.readUInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]|this[_+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(_,b){return _=_>>>0,b||bt(_,2,this.length),this[_]<<8|this[_+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},o.prototype.readBigUInt64LE=Ti(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b+this[++_]*Tr(2,8)+this[++_]*Tr(2,16)+this[++_]*Tr(2,24),te=this[++_]+this[++_]*Tr(2,8)+this[++_]*Tr(2,16)+k*Tr(2,24);return BigInt($)+(BigInt(te)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=b*Tr(2,24)+this[++_]*Tr(2,16)+this[++_]*Tr(2,8)+this[++_],te=this[++_]*Tr(2,24)+this[++_]*Tr(2,16)+this[++_]*Tr(2,8)+k;return(BigInt($)<>>0,b=b>>>0,k||bt(_,b,this.length);let $=this[_],te=1,ce=0;for(;++ce=te&&($-=Math.pow(2,8*b)),$},o.prototype.readIntBE=function(_,b,k){_=_>>>0,b=b>>>0,k||bt(_,b,this.length);let $=b,te=1,ce=this[_+--$];for(;$>0&&(te*=256);)ce+=this[_+--$]*te;return te*=128,ce>=te&&(ce-=Math.pow(2,8*b)),ce},o.prototype.readInt8=function(_,b){return _=_>>>0,b||bt(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},o.prototype.readInt16LE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_]|this[_+1]<<8;return k&32768?k|4294901760:k},o.prototype.readInt16BE=function(_,b){_=_>>>0,b||bt(_,2,this.length);let k=this[_+1]|this[_]<<8;return k&32768?k|4294901760:k},o.prototype.readInt32LE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},o.prototype.readInt32BE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},o.prototype.readBigInt64LE=Ti(function(_){_=_>>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=this[_+4]+this[_+5]*Tr(2,8)+this[_+6]*Tr(2,16)+(k<<24);return(BigInt($)<>>0,At(_,"offset");let b=this[_],k=this[_+7];(b===void 0||k===void 0)&&It(_,this.length-8);let $=(b<<24)+this[++_]*Tr(2,16)+this[++_]*Tr(2,8)+this[++_];return(BigInt($)<>>0,b||bt(_,4,this.length),t.read(this,_,!0,23,4)},o.prototype.readFloatBE=function(_,b){return _=_>>>0,b||bt(_,4,this.length),t.read(this,_,!1,23,4)},o.prototype.readDoubleLE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!0,52,8)},o.prototype.readDoubleBE=function(_,b){return _=_>>>0,b||bt(_,8,this.length),t.read(this,_,!1,52,8)};function Gr(P,_,b,k,$,te){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>$||_P.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=1,ce=0;for(this[b]=_&255;++ce>>0,k=k>>>0,!$){let gt=Math.pow(2,8*k)-1;Gr(this,_,b,k,gt,0)}let te=k-1,ce=1;for(this[b+te]=_&255;--te>=0&&(ce*=256);)this[b+te]=_/ce&255;return b+k},o.prototype.writeUint8=o.prototype.writeUInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,255,0),this[b]=_&255,b+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,65535,0),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b+3]=_>>>24,this[b+2]=_>>>16,this[b+1]=_>>>8,this[b]=_&255,b+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,4294967295,0),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4};function oe(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te,te=te>>8,P[b++]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,ce=ce>>8,P[b++]=ce,b}function Be(P,_,b,k,$){xt(_,k,$,P,b,7);let te=Number(_&BigInt(4294967295));P[b+7]=te,te=te>>8,P[b+6]=te,te=te>>8,P[b+5]=te,te=te>>8,P[b+4]=te;let ce=Number(_>>BigInt(32)&BigInt(4294967295));return P[b+3]=ce,ce=ce>>8,P[b+2]=ce,ce=ce>>8,P[b+1]=ce,ce=ce>>8,P[b]=ce,b+8}o.prototype.writeBigUInt64LE=Ti(function(_,b=0){return oe(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ti(function(_,b=0){return Be(this,_,b,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=0,ce=1,gt=0;for(this[b]=_&255;++te>0)-gt&255;return b+k},o.prototype.writeIntBE=function(_,b,k,$){if(_=+_,b=b>>>0,!$){let Or=Math.pow(2,8*k-1);Gr(this,_,b,k,Or-1,-Or)}let te=k-1,ce=1,gt=0;for(this[b+te]=_&255;--te>=0&&(ce*=256);)_<0&>===0&&this[b+te+1]!==0&&(gt=1),this[b+te]=(_/ce>>0)-gt&255;return b+k},o.prototype.writeInt8=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,1,127,-128),_<0&&(_=255+_+1),this[b]=_&255,b+1},o.prototype.writeInt16LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_&255,this[b+1]=_>>>8,b+2},o.prototype.writeInt16BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,2,32767,-32768),this[b]=_>>>8,this[b+1]=_&255,b+2},o.prototype.writeInt32LE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),this[b]=_&255,this[b+1]=_>>>8,this[b+2]=_>>>16,this[b+3]=_>>>24,b+4},o.prototype.writeInt32BE=function(_,b,k){return _=+_,b=b>>>0,k||Gr(this,_,b,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[b]=_>>>24,this[b+1]=_>>>16,this[b+2]=_>>>8,this[b+3]=_&255,b+4},o.prototype.writeBigInt64LE=Ti(function(_,b=0){return oe(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ti(function(_,b=0){return Be(this,_,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ve(P,_,b,k,$,te){if(b+k>P.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Ce(P,_,b,k,$){return _=+_,b=b>>>0,$||ve(P,_,b,4),t.write(P,_,b,k,23,4),b+4}o.prototype.writeFloatLE=function(_,b,k){return Ce(this,_,b,!0,k)},o.prototype.writeFloatBE=function(_,b,k){return Ce(this,_,b,!1,k)};function Qt(P,_,b,k,$){return _=+_,b=b>>>0,$||ve(P,_,b,8),t.write(P,_,b,k,52,8),b+8}o.prototype.writeDoubleLE=function(_,b,k){return Qt(this,_,b,!0,k)},o.prototype.writeDoubleBE=function(_,b,k){return Qt(this,_,b,!1,k)},o.prototype.copy=function(_,b,k,$){if(!o.isBuffer(_))throw new TypeError("argument should be a Buffer");if(k||(k=0),!$&&$!==0&&($=this.length),b>=_.length&&(b=_.length),b||(b=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),_.length-b<$-k&&($=_.length-b+k);let te=$-k;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,k,$):Uint8Array.prototype.set.call(_,this.subarray(k,$),b),te},o.prototype.fill=function(_,b,k,$){if(typeof _=="string"){if(typeof b=="string"?($=b,b=0,k=this.length):typeof k=="string"&&($=k,k=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(_.length===1){let ce=_.charCodeAt(0);($==="utf8"&&ce<128||$==="latin1")&&(_=ce)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(b<0||this.length>>0,k=k===void 0?this.length:k>>>0,_||(_=0);let te;if(typeof _=="number")for(te=b;teTr(2,32)?$=Je(String(b)):typeof b=="bigint"&&($=String(b),(b>Tr(BigInt(2),BigInt(32))||b<-Tr(BigInt(2),BigInt(32)))&&($=Je($)),$+="n"),k+=` It must be ${_}. Received ${$}`,k},RangeError);function Je(P){let _="",b=P.length,k=P[0]==="-"?1:0;for(;b>=k+4;b-=3)_=`_${P.slice(b-3,b)}${_}`;return`${P.slice(0,b)}${_}`}function nt(P,_,b){At(_,"offset"),(P[_]===void 0||P[_+b]===void 0)&&It(_,P.length-(b+1))}function xt(P,_,b,k,$,te){if(P>b||P<_){let ce=typeof _=="bigint"?"n":"",gt;throw te>3?_===0||_===BigInt(0)?gt=`>= 0${ce} and < 2${ce} ** ${(te+1)*8}${ce}`:gt=`>= -(2${ce} ** ${(te+1)*8-1}${ce}) and < 2 ** ${(te+1)*8-1}${ce}`:gt=`>= ${_}${ce} and <= ${b}${ce}`,new z.ERR_OUT_OF_RANGE("value",gt,P)}nt(k,$,te)}function At(P,_){if(typeof P!="number")throw new z.ERR_INVALID_ARG_TYPE(_,"number",P)}function It(P,_,b){throw Math.floor(P)!==P?(At(P,b),new z.ERR_OUT_OF_RANGE(b||"offset","an integer",P)):_<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(b||"offset",`>= ${b?1:0} and <= ${_}`,P)}let Bi=/[^+/0-9A-Za-z-_]/g;function kd(P){if(P=P.split("=")[0],P=P.trim().replace(Bi,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function zn(P,_){_=_||1/0;let b,k=P.length,$=null,te=[];for(let ce=0;ce55295&&b<57344){if(!$){if(b>56319){(_-=3)>-1&&te.push(239,191,189);continue}else if(ce+1===k){(_-=3)>-1&&te.push(239,191,189);continue}$=b;continue}if(b<56320){(_-=3)>-1&&te.push(239,191,189),$=b;continue}b=($-55296<<10|b-56320)+65536}else $&&(_-=3)>-1&&te.push(239,191,189);if($=null,b<128){if((_-=1)<0)break;te.push(b)}else if(b<2048){if((_-=2)<0)break;te.push(b>>6|192,b&63|128)}else if(b<65536){if((_-=3)<0)break;te.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((_-=4)<0)break;te.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return te}function fl(P){let _=[];for(let b=0;b>8,$=b%256,te.push($),te.push(k);return te}function Ba(P){return e.toByteArray(kd(P))}function In(P,_,b,k){let $;for($=0;$=_.length||$>=P.length);++$)_[$+b]=P[$];return $}function Yt(P,_){return P instanceof _||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===_.name}function pn(P){return P!==P}let S_=function(){let P="0123456789abcdef",_=new Array(256);for(let b=0;b<16;++b){let k=b*16;for(let $=0;$<16;++$)_[k+$]=P[b]+P[$]}return _}();function Ti(P){return typeof BigInt=="undefined"?O_:P}function O_(){throw new Error("BigInt not supported")}return _l}var am,gq,tT,Iq,_l,vq,Sl,g,Y$e,J$e,_q=ja(()=>{"use strict";d();p();f();am={},gq=!1;tT={},Iq=!1;_l={},vq=!1;Sl=rse();Sl.Buffer;Sl.SlowBuffer;Sl.INSPECT_MAX_BYTES;Sl.kMaxLength;g=Sl.Buffer,Y$e=Sl.INSPECT_MAX_BYTES,J$e=Sl.kMaxLength});var p=ja(()=>{"use strict";_q()});var ke=O((rGe,Sq)=>{"use strict";d();p();f();Sq.exports=TypeError});var Dq=O((oGe,Oq)=>{"use strict";d();p();f();Oq.exports=typeof Reflect!="undefined"&&Reflect.setPrototypeOf||null});var rT=O((lGe,bq)=>{"use strict";d();p();f();bq.exports=Object});var Rq=O((mGe,Aq)=>{"use strict";d();p();f();var nse=rT();Aq.exports=nse.setPrototypeOf||null});var Fq=O((TGe,Pq)=>{"use strict";d();p();f();var ise="Function.prototype.bind called on incompatible ",ase=Object.prototype.toString,ose=Math.max,sse="[object Function]",wq=function(t,r){for(var n=[],i=0;i{"use strict";d();p();f();var lse=Fq();Lq.exports=Function.prototype.bind||lse});var nT=O((DGe,Cq)=>{"use strict";d();p();f();Cq.exports=Function.prototype.call});var iT=O((wGe,Bq)=>{"use strict";d();p();f();Bq.exports=Function.prototype.apply});var kq=O((CGe,Uq)=>{"use strict";d();p();f();Uq.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var YS=O((qGe,qq)=>{"use strict";d();p();f();var dse=tf(),fse=iT(),pse=nT(),mse=kq();qq.exports=mse||dse.call(pse,fse)});var om=O((VGe,xq)=>{"use strict";d();p();f();var hse=tf(),yse=ke(),Nse=nT(),Tse=YS();xq.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new yse("a function is required");return Tse(hse,Nse,t)}});var jq=O((QGe,Mq)=>{"use strict";d();p();f();Mq.exports=Object.getOwnPropertyDescriptor});var _o=O((HGe,Vq)=>{"use strict";d();p();f();var aT=jq();if(aT)try{aT([],"length")}catch(e){aT=null}Vq.exports=aT});var Qq=O((e2e,Gq)=>{"use strict";d();p();f();var Ese=om(),Kq=_o(),gse=ke(),$q={};try{$q.__proto__=null}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ise=!("toString"in $q),JS=Kq&&Kq(Object.prototype,"__proto__");Gq.exports=Ise&&(!!JS&&typeof JS.set=="function"&&Ese([JS.set])||function(t,r){if(t==null)throw new gse("set Object.prototype.__proto__ called on null or undefined");return t.__proto__=r,r})});var zS=O((i2e,zq)=>{"use strict";d();p();f();var Yq=Dq(),vse=Rq(),Jq=Qq(),_se=ke();zq.exports=Yq?function(t,r){if(Yq(t,r))return t;throw new _se("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:vse||(Jq?function(t,r){return Jq(t,r),t}:null)});var Yr=O((u2e,Hq)=>{"use strict";d();p();f();Hq.exports=function(t){return!!t&&(typeof t=="function"||typeof t=="object")}});var HS=O((f2e,Wq)=>{"use strict";d();p();f();Wq.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var WS=O((y2e,Xq)=>{"use strict";d();p();f();var Sse=rT();Xq.exports=Sse.getPrototypeOf||null});var ix=O((g2e,nx)=>{"use strict";d();p();f();var Ose=om(),Zq=_o(),tx;try{tx=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var XS=!!tx&&Zq&&Zq(Object.prototype,"__proto__"),rx=Object,ex=rx.getPrototypeOf;nx.exports=XS&&typeof XS.get=="function"?Ose([XS.get]):typeof ex=="function"?function(t){return ex(t==null?t:rx(t))}:!1});var ZS=O((S2e,ux)=>{"use strict";d();p();f();var ax=HS(),ox=WS(),sx=ix();ux.exports=ax?function(t){return ax(t)}:ox?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ox(t)}:sx?function(t){return sx(t)}:null});var fx=O((A2e,dx)=>{"use strict";d();p();f();var cx=ke(),Dse=Yr(),lx=ZS();dx.exports=function(t){if(!Dse(t))throw new cx("Assertion failed: O must be an Object");if(!lx)throw new cx("This environment does not support fetching prototypes.");return lx(t)}});var eO=O((F2e,px)=>{"use strict";d();p();f();var bse=ke(),Ase=zS(),Rse=Yr(),wse=fx();px.exports=function(t,r){if(r!==null&&!Rse(r))throw new bse("Assertion failed: V must be Object or Null");try{Ase(t,r)}catch(n){return!1}return wse(t)===r}});var tO=O((U2e,hx)=>{"use strict";d();p();f();var mx=Object.prototype.toString;hx.exports=function(t){var r=mx.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mx.call(t.callee)==="[object Function]"),n}});var Sx=O((M2e,_x)=>{"use strict";d();p();f();var vx;Object.keys||(sm=Object.prototype.hasOwnProperty,rO=Object.prototype.toString,yx=tO(),nO=Object.prototype.propertyIsEnumerable,Nx=!nO.call({toString:null},"toString"),Tx=nO.call(function(){},"prototype"),um=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],oT=function(e){var t=e.constructor;return t&&t.prototype===e},Ex={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},gx=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!Ex["$"+e]&&sm.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{oT(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),Ix=function(e){if(typeof window=="undefined"||!gx)return oT(e);try{return oT(e)}catch(t){return!1}},vx=function(t){var r=t!==null&&typeof t=="object",n=rO.call(t)==="[object Function]",i=yx(t),a=r&&rO.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var u=Tx&&n;if(a&&t.length>0&&!sm.call(t,0))for(var l=0;l0)for(var m=0;m{"use strict";d();p();f();var Pse=Array.prototype.slice,Fse=tO(),Ox=Object.keys,sT=Ox?function(t){return Ox(t)}:Sx(),Dx=Object.keys;sT.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return Fse(n)?Dx(Pse.call(n)):Dx(n)})}else Object.keys=sT;return Object.keys||sT};bx.exports=sT});var rf=O((J2e,Rx)=>{"use strict";d();p();f();var uT=Object.defineProperty||!1;if(uT)try{uT({},"a",{value:1})}catch(e){uT=!1}Rx.exports=uT});var ys=O((X2e,wx)=>{"use strict";d();p();f();wx.exports=SyntaxError});var cT=O((rQe,Lx)=>{"use strict";d();p();f();var Px=rf(),Lse=ys(),nf=ke(),Fx=_o();Lx.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new nf("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nf("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nf("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nf("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nf("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nf("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,l=!!Fx&&Fx(t,r);if(Px)Px(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(u||!i&&!a&&!o)t[r]=n;else throw new Lse("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ol=O((oQe,Bx)=>{"use strict";d();p();f();var iO=rf(),Cx=function(){return!!iO};Cx.hasArrayLengthDefineBug=function(){if(!iO)return null;try{return iO([],"length",{value:1}).length!==1}catch(t){return!0}};Bx.exports=Cx});var mn=O((lQe,xx)=>{"use strict";d();p();f();var Cse=Ax(),Bse=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Use=Object.prototype.toString,kse=Array.prototype.concat,Ux=cT(),qse=function(e){return typeof e=="function"&&Use.call(e)==="[object Function]"},kx=Ol()(),xse=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!qse(n)||!n())return}kx?Ux(e,t,r,!0):Ux(e,t,r)},qx=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Cse(t);Bse&&(n=kse.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";d();p();f();var Mse=Function.prototype.call,jse=Object.prototype.hasOwnProperty,Vse=tf();Mx.exports=Vse.call(Mse,jse)});function aO(){throw new Error("setTimeout has not been defined")}function oO(){throw new Error("clearTimeout has not been defined")}function Kx(e){if(Es===setTimeout)return setTimeout(e,0);if((Es===aO||!Es)&&setTimeout)return Es=setTimeout,setTimeout(e,0);try{return Es(e,0)}catch(t){try{return Es.call(null,e,0)}catch(r){return Es.call(this||of,e,0)}}}function Kse(){af&&Dl&&(af=!1,Dl.length?Is=Dl.concat(Is):lT=-1,Is.length&&$x())}function $x(){if(!af){var e=Kx(Kse);af=!0;for(var t=Is.length;t;){for(Dl=Is,Is=[];++lT{"use strict";d();p();f();of=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,nn=Vx={};(function(){try{Es=typeof setTimeout=="function"?setTimeout:aO}catch(e){Es=aO}try{gs=typeof clearTimeout=="function"?clearTimeout:oO}catch(e){gs=oO}})();Is=[],af=!1,lT=-1;nn.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),pO(t)?r.showHidden=t:t&&le._extend(r,t),Al(r.showHidden)&&(r.showHidden=!1),Al(r.depth)&&(r.depth=2),Al(r.colors)&&(r.colors=!1),Al(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=lue),IT(r,e,r.depth)}function lue(e,t){var r=Ec.styles[t];return r?"\x1B["+Ec.colors[r][0]+"m"+e+"\x1B["+Ec.colors[r][1]+"m":e}function due(e,t){return e}function IT(e,t,r){if(e.customInspect&&t&&NT(t.inspect)&&t.inspect!==le.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return vT(n)||(n=IT(e,n,r)),n}var i=function(T,D){if(Al(D))return T.stylize("undefined","undefined");if(vT(D)){var R="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(R,"string")}if(gM(D))return T.stylize(""+D,"number");if(pO(D))return T.stylize(""+D,"boolean");if(OT(D))return T.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(T){var D={};return T.forEach(function(R,C){D[R]=!0}),D}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),dm(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return uO(t);if(a.length===0){if(NT(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(lm(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(dm(t))return uO(t)}var l,m="",h=!1,N=["{","}"];return EM(t)&&(h=!0,N=["[","]"]),NT(t)&&(m=" [Function"+(t.name?": "+t.name:"")+"]"),lm(t)&&(m=" "+RegExp.prototype.toString.call(t)),_T(t)&&(m=" "+Date.prototype.toUTCString.call(t)),dm(t)&&(m=" "+uO(t)),a.length!==0||h&&t.length!=0?r<0?lm(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=h?function(T,D,R,C,M){for(var G=[],ee=0,ae=D.length;ee=0&&C++,M+G.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?R[0]+(D===""?"":D+` `)+" "+T.join(`, `)+" "+R[1]:R[0]+D+" "+T.join(", ")+" "+R[1]}(l,m,N)):N[0]+m+N[1]}function uO(e){return"["+Error.prototype.toString.call(e)+"]"}function cO(e,t,r,n,i,a){var o,u,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(u=e.stylize("[Setter]","special")),IM(n,i)||(o="["+i+"]"),u||(e.seen.indexOf(l.value)<0?(u=OT(r)?IT(e,l.value,null):IT(e,l.value,r-1)).indexOf(` `)>-1&&(u=a?u.split(` @@ -27,7 +27,7 @@ class URL { `).substr(2):` `+u.split(` `).map(function(m){return" "+m}).join(` -`)):u=e.stylize("[Circular]","special")),Al(o)){if(a&&i.match(/^\d+$/))return u;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+u}function EM(e){return Array.isArray(e)}function pO(e){return typeof e=="boolean"}function OT(e){return e===null}function gM(e){return typeof e=="number"}function vT(e){return typeof e=="string"}function Al(e){return e===void 0}function lm(e){return sf(e)&&mO(e)==="[object RegExp]"}function sf(e){return typeof e=="object"&&e!==null}function _T(e){return sf(e)&&mO(e)==="[object Date]"}function dm(e){return sf(e)&&(mO(e)==="[object Error]"||e instanceof Error)}function NT(e){return typeof e=="function"}function mO(e){return Object.prototype.toString.call(e)}function lO(e){return e<10?"0"+e.toString(10):e.toString(10)}function pue(){var e=new Date,t=[lO(e.getHours()),lO(e.getMinutes()),lO(e.getSeconds())].join(":");return[e.getDate(),fue[e.getMonth()],t].join(" ")}function IM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mue(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}var $se,dO,ST,rM,Gse,Qse,Yse,Jse,zse,nM,iM,Gx,Hse,Wse,Xse,aM,Ct,Zse,eue,tue,oM,fO,Ki,_i,rue,kr,iue,aue,oue,cm,le,So,tM,cue,hT,TM,yT,fue,bl,DT=ja(()=>{"use strict";d();p();f();dT();$se=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",dO=Object.prototype.toString,ST=function(e){return!($se&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&dO.call(e)==="[object Arguments]"},rM=function(e){return!!ST(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&dO.call(e)!=="[object Array]"&&dO.call(e.callee)==="[object Function]"},Gse=function(){return ST(arguments)}();ST.isLegacyArguments=rM;Qse=Gse?ST:rM,Yse=Object.prototype.toString,Jse=Function.prototype.toString,zse=/^\s*(?:function)?\*/,nM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",iM=Object.getPrototypeOf,Gx=function(){if(!nM)return!1;try{return Function("return function*() {}")()}catch(e){}}(),Hse=Gx?iM(Gx):{},Wse=function(e){return typeof e=="function"&&(!!zse.test(Jse.call(e))||(nM?iM(e)===Hse:Yse.call(e)==="[object GeneratorFunction]"))},Xse=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},aM=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Ct={},Zse=aM,eue=Qse,tue=Wse;oM=typeof BigInt!="undefined",fO=typeof Symbol!="undefined",Ki=fO&&Symbol.toStringTag!==void 0,_i=typeof Uint8Array!="undefined",rue=typeof ArrayBuffer!="undefined";if(_i&&Ki)var nue=Object.getPrototypeOf(Uint8Array.prototype),sa=Rl(Object.getOwnPropertyDescriptor(nue,Symbol.toStringTag).get);kr=Rl(Object.prototype.toString),iue=Rl(Number.prototype.valueOf),aue=Rl(String.prototype.valueOf),oue=Rl(Boolean.prototype.valueOf);if(oM)var sue=Rl(BigInt.prototype.valueOf);if(fO)var uue=Rl(Symbol.prototype.valueOf);Ct.isArgumentsObject=eue,Ct.isGeneratorFunction=tue,Ct.isPromise=function(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},Ct.isArrayBufferView=function(e){return rue&&ArrayBuffer.isView?ArrayBuffer.isView(e):Qx(e)||Jx(e)},Ct.isTypedArray=Qx,Ct.isUint8Array=sM,Ct.isUint8ClampedArray=uM,Ct.isUint16Array=cM,Ct.isUint32Array=lM,Ct.isInt8Array=dM,Ct.isInt16Array=fM,Ct.isInt32Array=pM,Ct.isFloat32Array=mM,Ct.isFloat64Array=hM,Ct.isBigInt64Array=yM,Ct.isBigUint64Array=NM,fT.working=typeof Map!="undefined"&&fT(new Map),Ct.isMap=function(e){return typeof Map!="undefined"&&(fT.working?fT(e):e instanceof Map)},pT.working=typeof Set!="undefined"&&pT(new Set),Ct.isSet=function(e){return typeof Set!="undefined"&&(pT.working?pT(e):e instanceof Set)},mT.working=typeof WeakMap!="undefined"&&mT(new WeakMap),Ct.isWeakMap=function(e){return typeof WeakMap!="undefined"&&(mT.working?mT(e):e instanceof WeakMap)},sO.working=typeof WeakSet!="undefined"&&sO(new WeakSet),Ct.isWeakSet=function(e){return sO(e)},TT.working=typeof ArrayBuffer!="undefined"&&TT(new ArrayBuffer),Ct.isArrayBuffer=Yx,ET.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&ET(new DataView(new ArrayBuffer(1),0,1)),Ct.isDataView=Jx,gT.working=typeof SharedArrayBuffer!="undefined"&&gT(new SharedArrayBuffer),Ct.isSharedArrayBuffer=zx,Ct.isAsyncFunction=function(e){return kr(e)==="[object AsyncFunction]"},Ct.isMapIterator=function(e){return kr(e)==="[object Map Iterator]"},Ct.isSetIterator=function(e){return kr(e)==="[object Set Iterator]"},Ct.isGeneratorObject=function(e){return kr(e)==="[object Generator]"},Ct.isWebAssemblyCompiledModule=function(e){return kr(e)==="[object WebAssembly.Module]"},Ct.isNumberObject=Hx,Ct.isStringObject=Wx,Ct.isBooleanObject=Xx,Ct.isBigIntObject=Zx,Ct.isSymbolObject=eM,Ct.isBoxedPrimitive=function(e){return Hx(e)||Wx(e)||Xx(e)||Zx(e)||eM(e)},Ct.isAnyArrayBuffer=function(e){return _i&&(Yx(e)||zx(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ct,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});cm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,le={},So=Ur,tM=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return u;switch(u){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return u}}),o=n[r];r{"use strict";d();p();f();DT();dT();le._extend;le.callbackify;le.debuglog;le.deprecate;le.format;le.inherits;le.inspect;le.isArray;le.isBoolean;le.isBuffer;le.isDate;le.isError;le.isFunction;le.isNull;le.isNullOrUndefined;le.isNumber;le.isObject;le.isPrimitive;le.isRegExp;le.isString;le.isSymbol;le.isUndefined;le.log;le.promisify;RQe=le._extend,wQe=le.callbackify,PQe=le.debuglog,FQe=le.deprecate,LQe=le.format,CQe=le.inherits,BQe=le.inspect,UQe=le.isArray,kQe=le.isBoolean,qQe=le.isBuffer,xQe=le.isDate,MQe=le.isError,jQe=le.isFunction,VQe=le.isNull,KQe=le.isNullOrUndefined,$Qe=le.isNumber,GQe=le.isObject,QQe=le.isPrimitive,YQe=le.isRegExp,JQe=le.isString,zQe=le.isSymbol,HQe=le.isUndefined,WQe=le.log,XQe=le.promisify,ZQe=le.types,eYe=self.TextEncoder,tYe=self.TextDecoder});var _M={};nm(_M,{TextDecoder:()=>jue,TextEncoder:()=>Mue,_extend:()=>hue,callbackify:()=>yue,debuglog:()=>Nue,default:()=>le,deprecate:()=>Tue,format:()=>Eue,inherits:()=>gue,inspect:()=>Iue,isArray:()=>vue,isBoolean:()=>_ue,isBuffer:()=>Sue,isDate:()=>Oue,isError:()=>Due,isFunction:()=>bue,isNull:()=>Aue,isNullOrUndefined:()=>Rue,isNumber:()=>wue,isObject:()=>Pue,isPrimitive:()=>Fue,isRegExp:()=>Lue,isString:()=>Cue,isSymbol:()=>Bue,isUndefined:()=>Uue,log:()=>kue,promisify:()=>que,types:()=>xue});var hue,yue,Nue,Tue,Eue,gue,Iue,vue,_ue,Sue,Oue,Due,bue,Aue,Rue,wue,Pue,Fue,Lue,Cue,Bue,Uue,kue,que,xue,Mue,jue,SM=ja(()=>{"use strict";d();p();f();vM();DT();DT();dT();hue=le._extend,yue=le.callbackify,Nue=le.debuglog,Tue=le.deprecate,Eue=le.format,gue=le.inherits,Iue=le.inspect,vue=le.isArray,_ue=le.isBoolean,Sue=le.isBuffer,Oue=le.isDate,Due=le.isError,bue=le.isFunction,Aue=le.isNull,Rue=le.isNullOrUndefined,wue=le.isNumber,Pue=le.isObject,Fue=le.isPrimitive,Lue=le.isRegExp,Cue=le.isString,Bue=le.isSymbol,Uue=le.isUndefined,kue=le.log,que=le.promisify,xue=le.types,Mue=le.TextEncoder=globalThis.TextEncoder,jue=le.TextDecoder=globalThis.TextDecoder});var DM=O((pYe,OM)=>{"use strict";d();p();f();OM.exports=(SM(),im(_M)).inspect});var Do=O((NYe,QM)=>{"use strict";d();p();f();var SO=typeof Map=="function"&&Map.prototype,hO=Object.getOwnPropertyDescriptor&&SO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,AT=SO&&hO&&typeof hO.get=="function"?hO.get:null,bM=SO&&Map.prototype.forEach,OO=typeof Set=="function"&&Set.prototype,yO=Object.getOwnPropertyDescriptor&&OO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,RT=OO&&yO&&typeof yO.get=="function"?yO.get:null,AM=OO&&Set.prototype.forEach,Vue=typeof WeakMap=="function"&&WeakMap.prototype,mm=Vue?WeakMap.prototype.has:null,Kue=typeof WeakSet=="function"&&WeakSet.prototype,hm=Kue?WeakSet.prototype.has:null,$ue=typeof WeakRef=="function"&&WeakRef.prototype,RM=$ue?WeakRef.prototype.deref:null,Gue=Boolean.prototype.valueOf,Que=Object.prototype.toString,Yue=Function.prototype.toString,Jue=String.prototype.match,DO=String.prototype.slice,gc=String.prototype.replace,zue=String.prototype.toUpperCase,wM=String.prototype.toLowerCase,xM=RegExp.prototype.test,PM=Array.prototype.concat,Oo=Array.prototype.join,Hue=Array.prototype.slice,FM=Math.floor,EO=typeof BigInt=="function"?BigInt.prototype.valueOf:null,NO=Object.getOwnPropertySymbols,gO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,uf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ym=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===uf||!0)?Symbol.toStringTag:null,MM=Object.prototype.propertyIsEnumerable,LM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function CM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xM.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-FM(-e):FM(e);if(n!==e){var i=String(n),a=DO.call(t,i.length+1);return gc.call(i,r,"$&_")+"."+gc.call(gc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gc.call(t,r,"$&_")}var IO=DM(),BM=IO.custom,UM=KM(BM)?BM:null,jM={__proto__:null,double:'"',single:"'"},Wue={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};QM.exports=function e(t,r,n,i){var a=r||{};if(vs(a,"quoteStyle")&&!vs(jM,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vs(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=vs(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vs(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vs(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return GM(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return u?CM(t,l):l}if(typeof t=="bigint"){var m=String(t)+"n";return u?CM(t,m):m}var h=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=h&&h>0&&typeof t=="object")return vO(t)?"[Array]":"[Object]";var N=hce(a,n);if(typeof i=="undefined")i=[];else if($M(i,t)>=0)return"[Circular]";function T(ar,vr,mr){if(vr&&(i=Hue.call(i),i.push(vr)),mr){var tr={depth:a.depth};return vs(a,"quoteStyle")&&(tr.quoteStyle=a.quoteStyle),e(ar,tr,n+1,i)}return e(ar,a,n+1,i)}if(typeof t=="function"&&!kM(t)){var D=oce(t),R=bT(t,T);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(R.length>0?" { "+Oo.call(R,", ")+" }":"")}if(KM(t)){var C=uf?gc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):gO.call(t);return typeof t=="object"&&!uf?pm(C):C}if(fce(t)){for(var M="<"+wM.call(String(t.nodeName)),Y=t.attributes||[],ee=0;ee",M}if(vO(t)){if(t.length===0)return"[]";var ae=bT(t,T);return N&&!mce(ae)?"["+_O(ae,N)+"]":"[ "+Oo.call(ae,", ")+" ]"}if(ece(t)){var Ne=bT(t,T);return!("cause"in Error.prototype)&&"cause"in t&&!MM.call(t,"cause")?"{ ["+String(t)+"] "+Oo.call(PM.call("[cause]: "+T(t.cause),Ne),", ")+" }":Ne.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Oo.call(Ne,", ")+" }"}if(typeof t=="object"&&o){if(UM&&typeof t[UM]=="function"&&IO)return IO(t,{depth:h-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(sce(t)){var _e=[];return bM&&bM.call(t,function(ar,vr){_e.push(T(vr,t,!0)+" => "+T(ar,t))}),qM("Map",AT.call(t),_e,N)}if(lce(t)){var Le=[];return AM&&AM.call(t,function(ar){Le.push(T(ar,t))}),qM("Set",RT.call(t),Le,N)}if(uce(t))return TO("WeakMap");if(dce(t))return TO("WeakSet");if(cce(t))return TO("WeakRef");if(rce(t))return pm(T(Number(t)));if(ice(t))return pm(T(EO.call(t)));if(nce(t))return pm(Gue.call(t));if(tce(t))return pm(T(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof global!="undefined"&&t===global)return"{ [object globalThis] }";if(!Zue(t)&&!kM(t)){var Ve=bT(t,T),ot=LM?LM(t)===Object.prototype:t instanceof Object||t.constructor===Object,Z=t instanceof Object?"":"null prototype",Se=!ot&&ym&&Object(t)===t&&ym in t?DO.call(Ic(t),8,-1):Z?"Object":"",Ft=ot||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",pr=Ft+(Se||Z?"["+Oo.call(PM.call([],Se||[],Z||[]),": ")+"] ":"");return Ve.length===0?pr+"{}":N?pr+"{"+_O(Ve,N)+"}":pr+"{ "+Oo.call(Ve,", ")+" }"}return String(t)};function VM(e,t,r){var n=r.quoteStyle||t,i=jM[n];return i+e+i}function Xue(e){return gc.call(String(e),/"/g,""")}function wl(e){return!ym||!(typeof e=="object"&&(ym in e||typeof e[ym]!="undefined"))}function vO(e){return Ic(e)==="[object Array]"&&wl(e)}function Zue(e){return Ic(e)==="[object Date]"&&wl(e)}function kM(e){return Ic(e)==="[object RegExp]"&&wl(e)}function ece(e){return Ic(e)==="[object Error]"&&wl(e)}function tce(e){return Ic(e)==="[object String]"&&wl(e)}function rce(e){return Ic(e)==="[object Number]"&&wl(e)}function nce(e){return Ic(e)==="[object Boolean]"&&wl(e)}function KM(e){if(uf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!gO)return!1;try{return gO.call(e),!0}catch(t){}return!1}function ice(e){if(!e||typeof e!="object"||!EO)return!1;try{return EO.call(e),!0}catch(t){}return!1}var ace=Object.prototype.hasOwnProperty||function(e){return e in this};function vs(e,t){return ace.call(e,t)}function Ic(e){return Que.call(e)}function oce(e){if(e.name)return e.name;var t=Jue.call(Yue.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $M(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return GM(DO.call(e,0,t.maxStringLength),t)+n}var i=Wue[t.quoteStyle||"single"];i.lastIndex=0;var a=gc.call(gc.call(e,i,"\\$1"),/[\x00-\x1f]/g,pce);return VM(a,"single",t)}function pce(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+zue.call(t.toString(16))}function pm(e){return"Object("+e+")"}function TO(e){return e+" { ? }"}function qM(e,t,r,n){var i=n?_O(r,n):Oo.call(r,", ");return e+" ("+t+") {"+i+"}"}function mce(e){for(var t=0;t{"use strict";d();p();f();dT();$se=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",dO=Object.prototype.toString,ST=function(e){return!($se&&e&&typeof e=="object"&&Symbol.toStringTag in e)&&dO.call(e)==="[object Arguments]"},rM=function(e){return!!ST(e)||e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&dO.call(e)!=="[object Array]"&&dO.call(e.callee)==="[object Function]"},Gse=function(){return ST(arguments)}();ST.isLegacyArguments=rM;Qse=Gse?ST:rM,Yse=Object.prototype.toString,Jse=Function.prototype.toString,zse=/^\s*(?:function)?\*/,nM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",iM=Object.getPrototypeOf,Gx=function(){if(!nM)return!1;try{return Function("return function*() {}")()}catch(e){}}(),Hse=Gx?iM(Gx):{},Wse=function(e){return typeof e=="function"&&(!!zse.test(Jse.call(e))||(nM?iM(e)===Hse:Yse.call(e)==="[object GeneratorFunction]"))},Xse=typeof Object.create=="function"?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},aM=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Ct={},Zse=aM,eue=Qse,tue=Wse;oM=typeof BigInt!="undefined",fO=typeof Symbol!="undefined",Ki=fO&&Symbol.toStringTag!==void 0,_i=typeof Uint8Array!="undefined",rue=typeof ArrayBuffer!="undefined";if(_i&&Ki)var nue=Object.getPrototypeOf(Uint8Array.prototype),sa=Rl(Object.getOwnPropertyDescriptor(nue,Symbol.toStringTag).get);kr=Rl(Object.prototype.toString),iue=Rl(Number.prototype.valueOf),aue=Rl(String.prototype.valueOf),oue=Rl(Boolean.prototype.valueOf);if(oM)var sue=Rl(BigInt.prototype.valueOf);if(fO)var uue=Rl(Symbol.prototype.valueOf);Ct.isArgumentsObject=eue,Ct.isGeneratorFunction=tue,Ct.isPromise=function(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"},Ct.isArrayBufferView=function(e){return rue&&ArrayBuffer.isView?ArrayBuffer.isView(e):Qx(e)||Jx(e)},Ct.isTypedArray=Qx,Ct.isUint8Array=sM,Ct.isUint8ClampedArray=uM,Ct.isUint16Array=cM,Ct.isUint32Array=lM,Ct.isInt8Array=dM,Ct.isInt16Array=fM,Ct.isInt32Array=pM,Ct.isFloat32Array=mM,Ct.isFloat64Array=hM,Ct.isBigInt64Array=yM,Ct.isBigUint64Array=NM,fT.working=typeof Map!="undefined"&&fT(new Map),Ct.isMap=function(e){return typeof Map!="undefined"&&(fT.working?fT(e):e instanceof Map)},pT.working=typeof Set!="undefined"&&pT(new Set),Ct.isSet=function(e){return typeof Set!="undefined"&&(pT.working?pT(e):e instanceof Set)},mT.working=typeof WeakMap!="undefined"&&mT(new WeakMap),Ct.isWeakMap=function(e){return typeof WeakMap!="undefined"&&(mT.working?mT(e):e instanceof WeakMap)},sO.working=typeof WeakSet!="undefined"&&sO(new WeakSet),Ct.isWeakSet=function(e){return sO(e)},TT.working=typeof ArrayBuffer!="undefined"&&TT(new ArrayBuffer),Ct.isArrayBuffer=Yx,ET.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&ET(new DataView(new ArrayBuffer(1),0,1)),Ct.isDataView=Jx,gT.working=typeof SharedArrayBuffer!="undefined"&&gT(new SharedArrayBuffer),Ct.isSharedArrayBuffer=zx,Ct.isAsyncFunction=function(e){return kr(e)==="[object AsyncFunction]"},Ct.isMapIterator=function(e){return kr(e)==="[object Map Iterator]"},Ct.isSetIterator=function(e){return kr(e)==="[object Set Iterator]"},Ct.isGeneratorObject=function(e){return kr(e)==="[object Generator]"},Ct.isWebAssemblyCompiledModule=function(e){return kr(e)==="[object WebAssembly.Module]"},Ct.isNumberObject=Hx,Ct.isStringObject=Wx,Ct.isBooleanObject=Xx,Ct.isBigIntObject=Zx,Ct.isSymbolObject=eM,Ct.isBoxedPrimitive=function(e){return Hx(e)||Wx(e)||Xx(e)||Zx(e)||eM(e)},Ct.isAnyArrayBuffer=function(e){return _i&&(Yx(e)||zx(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Ct,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})});cm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:global,le={},So=Ur,tM=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return u;switch(u){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return u}}),o=n[r];r{"use strict";d();p();f();DT();dT();le._extend;le.callbackify;le.debuglog;le.deprecate;le.format;le.inherits;le.inspect;le.isArray;le.isBoolean;le.isBuffer;le.isDate;le.isError;le.isFunction;le.isNull;le.isNullOrUndefined;le.isNumber;le.isObject;le.isPrimitive;le.isRegExp;le.isString;le.isSymbol;le.isUndefined;le.log;le.promisify;RQe=le._extend,wQe=le.callbackify,PQe=le.debuglog,FQe=le.deprecate,LQe=le.format,CQe=le.inherits,BQe=le.inspect,UQe=le.isArray,kQe=le.isBoolean,qQe=le.isBuffer,xQe=le.isDate,MQe=le.isError,jQe=le.isFunction,VQe=le.isNull,KQe=le.isNullOrUndefined,$Qe=le.isNumber,GQe=le.isObject,QQe=le.isPrimitive,YQe=le.isRegExp,JQe=le.isString,zQe=le.isSymbol,HQe=le.isUndefined,WQe=le.log,XQe=le.promisify,ZQe=le.types,eYe=self.TextEncoder,tYe=self.TextDecoder});var _M={};nm(_M,{TextDecoder:()=>jue,TextEncoder:()=>Mue,_extend:()=>hue,callbackify:()=>yue,debuglog:()=>Nue,default:()=>le,deprecate:()=>Tue,format:()=>Eue,inherits:()=>gue,inspect:()=>Iue,isArray:()=>vue,isBoolean:()=>_ue,isBuffer:()=>Sue,isDate:()=>Oue,isError:()=>Due,isFunction:()=>bue,isNull:()=>Aue,isNullOrUndefined:()=>Rue,isNumber:()=>wue,isObject:()=>Pue,isPrimitive:()=>Fue,isRegExp:()=>Lue,isString:()=>Cue,isSymbol:()=>Bue,isUndefined:()=>Uue,log:()=>kue,promisify:()=>que,types:()=>xue});var hue,yue,Nue,Tue,Eue,gue,Iue,vue,_ue,Sue,Oue,Due,bue,Aue,Rue,wue,Pue,Fue,Lue,Cue,Bue,Uue,kue,que,xue,Mue,jue,SM=ja(()=>{"use strict";d();p();f();vM();DT();DT();dT();hue=le._extend,yue=le.callbackify,Nue=le.debuglog,Tue=le.deprecate,Eue=le.format,gue=le.inherits,Iue=le.inspect,vue=le.isArray,_ue=le.isBoolean,Sue=le.isBuffer,Oue=le.isDate,Due=le.isError,bue=le.isFunction,Aue=le.isNull,Rue=le.isNullOrUndefined,wue=le.isNumber,Pue=le.isObject,Fue=le.isPrimitive,Lue=le.isRegExp,Cue=le.isString,Bue=le.isSymbol,Uue=le.isUndefined,kue=le.log,que=le.promisify,xue=le.types,Mue=le.TextEncoder=globalThis.TextEncoder,jue=le.TextDecoder=globalThis.TextDecoder});var DM=O((pYe,OM)=>{"use strict";d();p();f();OM.exports=(SM(),im(_M)).inspect});var Do=O((NYe,QM)=>{"use strict";d();p();f();var SO=typeof Map=="function"&&Map.prototype,hO=Object.getOwnPropertyDescriptor&&SO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,AT=SO&&hO&&typeof hO.get=="function"?hO.get:null,bM=SO&&Map.prototype.forEach,OO=typeof Set=="function"&&Set.prototype,yO=Object.getOwnPropertyDescriptor&&OO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,RT=OO&&yO&&typeof yO.get=="function"?yO.get:null,AM=OO&&Set.prototype.forEach,Vue=typeof WeakMap=="function"&&WeakMap.prototype,mm=Vue?WeakMap.prototype.has:null,Kue=typeof WeakSet=="function"&&WeakSet.prototype,hm=Kue?WeakSet.prototype.has:null,$ue=typeof WeakRef=="function"&&WeakRef.prototype,RM=$ue?WeakRef.prototype.deref:null,Gue=Boolean.prototype.valueOf,Que=Object.prototype.toString,Yue=Function.prototype.toString,Jue=String.prototype.match,DO=String.prototype.slice,gc=String.prototype.replace,zue=String.prototype.toUpperCase,wM=String.prototype.toLowerCase,xM=RegExp.prototype.test,PM=Array.prototype.concat,Oo=Array.prototype.join,Hue=Array.prototype.slice,FM=Math.floor,EO=typeof BigInt=="function"?BigInt.prototype.valueOf:null,NO=Object.getOwnPropertySymbols,gO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,uf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ym=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===uf||!0)?Symbol.toStringTag:null,MM=Object.prototype.propertyIsEnumerable,LM=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function CM(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||xM.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-FM(-e):FM(e);if(n!==e){var i=String(n),a=DO.call(t,i.length+1);return gc.call(i,r,"$&_")+"."+gc.call(gc.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return gc.call(t,r,"$&_")}var IO=DM(),BM=IO.custom,UM=KM(BM)?BM:null,jM={__proto__:null,double:'"',single:"'"},Wue={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};QM.exports=function e(t,r,n,i){var a=r||{};if(vs(a,"quoteStyle")&&!vs(jM,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vs(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=vs(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vs(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vs(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return GM(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return u?CM(t,l):l}if(typeof t=="bigint"){var m=String(t)+"n";return u?CM(t,m):m}var h=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=h&&h>0&&typeof t=="object")return vO(t)?"[Array]":"[Object]";var N=hce(a,n);if(typeof i=="undefined")i=[];else if($M(i,t)>=0)return"[Circular]";function T(or,vr,yr){if(vr&&(i=Hue.call(i),i.push(vr)),yr){var tr={depth:a.depth};return vs(a,"quoteStyle")&&(tr.quoteStyle=a.quoteStyle),e(or,tr,n+1,i)}return e(or,a,n+1,i)}if(typeof t=="function"&&!kM(t)){var D=oce(t),R=bT(t,T);return"[Function"+(D?": "+D:" (anonymous)")+"]"+(R.length>0?" { "+Oo.call(R,", ")+" }":"")}if(KM(t)){var C=uf?gc.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):gO.call(t);return typeof t=="object"&&!uf?pm(C):C}if(fce(t)){for(var M="<"+wM.call(String(t.nodeName)),G=t.attributes||[],ee=0;ee",M}if(vO(t)){if(t.length===0)return"[]";var ae=bT(t,T);return N&&!mce(ae)?"["+_O(ae,N)+"]":"[ "+Oo.call(ae,", ")+" ]"}if(ece(t)){var Ne=bT(t,T);return!("cause"in Error.prototype)&&"cause"in t&&!MM.call(t,"cause")?"{ ["+String(t)+"] "+Oo.call(PM.call("[cause]: "+T(t.cause),Ne),", ")+" }":Ne.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Oo.call(Ne,", ")+" }"}if(typeof t=="object"&&o){if(UM&&typeof t[UM]=="function"&&IO)return IO(t,{depth:h-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(sce(t)){var Ie=[];return bM&&bM.call(t,function(or,vr){Ie.push(T(vr,t,!0)+" => "+T(or,t))}),qM("Map",AT.call(t),Ie,N)}if(lce(t)){var Le=[];return AM&&AM.call(t,function(or){Le.push(T(or,t))}),qM("Set",RT.call(t),Le,N)}if(uce(t))return TO("WeakMap");if(dce(t))return TO("WeakSet");if(cce(t))return TO("WeakRef");if(rce(t))return pm(T(Number(t)));if(ice(t))return pm(T(EO.call(t)));if(nce(t))return pm(Gue.call(t));if(tce(t))return pm(T(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof global!="undefined"&&t===global)return"{ [object globalThis] }";if(!Zue(t)&&!kM(t)){var Ve=bT(t,T),ot=LM?LM(t)===Object.prototype:t instanceof Object||t.constructor===Object,Z=t instanceof Object?"":"null prototype",Se=!ot&&ym&&Object(t)===t&&ym in t?DO.call(Ic(t),8,-1):Z?"Object":"",Ft=ot||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",hr=Ft+(Se||Z?"["+Oo.call(PM.call([],Se||[],Z||[]),": ")+"] ":"");return Ve.length===0?hr+"{}":N?hr+"{"+_O(Ve,N)+"}":hr+"{ "+Oo.call(Ve,", ")+" }"}return String(t)};function VM(e,t,r){var n=r.quoteStyle||t,i=jM[n];return i+e+i}function Xue(e){return gc.call(String(e),/"/g,""")}function wl(e){return!ym||!(typeof e=="object"&&(ym in e||typeof e[ym]!="undefined"))}function vO(e){return Ic(e)==="[object Array]"&&wl(e)}function Zue(e){return Ic(e)==="[object Date]"&&wl(e)}function kM(e){return Ic(e)==="[object RegExp]"&&wl(e)}function ece(e){return Ic(e)==="[object Error]"&&wl(e)}function tce(e){return Ic(e)==="[object String]"&&wl(e)}function rce(e){return Ic(e)==="[object Number]"&&wl(e)}function nce(e){return Ic(e)==="[object Boolean]"&&wl(e)}function KM(e){if(uf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!gO)return!1;try{return gO.call(e),!0}catch(t){}return!1}function ice(e){if(!e||typeof e!="object"||!EO)return!1;try{return EO.call(e),!0}catch(t){}return!1}var ace=Object.prototype.hasOwnProperty||function(e){return e in this};function vs(e,t){return ace.call(e,t)}function Ic(e){return Que.call(e)}function oce(e){if(e.name)return e.name;var t=Jue.call(Yue.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $M(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return GM(DO.call(e,0,t.maxStringLength),t)+n}var i=Wue[t.quoteStyle||"single"];i.lastIndex=0;var a=gc.call(gc.call(e,i,"\\$1"),/[\x00-\x1f]/g,pce);return VM(a,"single",t)}function pce(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+zue.call(t.toString(16))}function pm(e){return"Object("+e+")"}function TO(e){return e+" { ? }"}function qM(e,t,r,n){var i=n?_O(r,n):Oo.call(r,", ");return e+" ("+t+") {"+i+"}"}function mce(e){for(var t=0;t=0)return!1;return!0}function hce(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Oo.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Oo.call(Array(t+1),r)}}function _O(e,t){if(e.length===0)return"";var r=` `+t.prev+t.base;return r+Oo.call(e,","+r)+` `+t.prev}function bT(e,t){var r=vO(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";d();p();f();var yce=Do(),Nce=ke(),wT=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},Tce=function(e,t){if(e){var r=wT(e,t);return r&&r.value}},Ece=function(e,t,r){var n=wT(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},gce=function(e,t){return e?!!wT(e,t):!1},Ice=function(e,t){if(e)return wT(e,t,!0)};YM.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new Nce("Side channel does not contain "+yce(n))},delete:function(n){var i=t&&t.next,a=Ice(t,n);return a&&i&&i===a&&(t=void 0),!!a},get:function(n){return Tce(t,n)},has:function(n){return gce(t,n)},set:function(n,i){t||(t={next:void 0}),Ece(t,n,i)}};return r}});var HM=O((OYe,zM)=>{"use strict";d();p();f();zM.exports=Error});var XM=O((RYe,WM)=>{"use strict";d();p();f();WM.exports=EvalError});var Pl=O((LYe,ZM)=>{"use strict";d();p();f();ZM.exports=RangeError});var t1=O((kYe,e1)=>{"use strict";d();p();f();e1.exports=ReferenceError});var n1=O((jYe,r1)=>{"use strict";d();p();f();r1.exports=URIError});var bO=O((GYe,i1)=>{"use strict";d();p();f();i1.exports=Math.abs});var Nm=O((zYe,a1)=>{"use strict";d();p();f();a1.exports=Math.floor});var s1=O((ZYe,o1)=>{"use strict";d();p();f();o1.exports=Math.max});var c1=O((nJe,u1)=>{"use strict";d();p();f();u1.exports=Math.min});var d1=O((sJe,l1)=>{"use strict";d();p();f();l1.exports=Math.pow});var p1=O((dJe,f1)=>{"use strict";d();p();f();f1.exports=Math.round});var _s=O((hJe,m1)=>{"use strict";d();p();f();m1.exports=Number.isNaN||function(t){return t!==t}});var y1=O((EJe,h1)=>{"use strict";d();p();f();var vce=_s();h1.exports=function(t){return vce(t)||t===0?t:t<0?-1:1}});var AO=O((_Je,N1)=>{"use strict";d();p();f();N1.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0}});var vc=O((bJe,E1)=>{"use strict";d();p();f();var T1=typeof Symbol!="undefined"&&Symbol,_ce=AO();E1.exports=function(){return typeof T1!="function"||typeof Symbol!="function"||typeof T1("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:_ce()}});var Wt=O((PJe,O1)=>{"use strict";d();p();f();var Bt,Sce=rT(),Oce=HM(),Dce=XM(),bce=Pl(),Ace=t1(),ff=ys(),df=ke(),Rce=n1(),wce=bO(),Pce=Nm(),Fce=s1(),Lce=c1(),Cce=d1(),Bce=p1(),Uce=y1(),_1=Function,RO=function(e){try{return _1('"use strict"; return ('+e+").constructor;")()}catch(t){}},Tm=_o(),kce=rf(),wO=function(){throw new df},qce=Tm?function(){try{return arguments.callee,wO}catch(e){try{return Tm(arguments,"callee").get}catch(t){return wO}}}():wO,cf=vc()(),Cn=ZS(),xce=WS(),Mce=HS(),S1=iT(),Em=nT(),lf={},jce=typeof Uint8Array=="undefined"||!Cn?Bt:Cn(Uint8Array),Fl={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Bt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Bt:ArrayBuffer,"%ArrayIteratorPrototype%":cf&&Cn?Cn([][Symbol.iterator]()):Bt,"%AsyncFromSyncIteratorPrototype%":Bt,"%AsyncFunction%":lf,"%AsyncGenerator%":lf,"%AsyncGeneratorFunction%":lf,"%AsyncIteratorPrototype%":lf,"%Atomics%":typeof Atomics=="undefined"?Bt:Atomics,"%BigInt%":typeof BigInt=="undefined"?Bt:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Bt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Bt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Bt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Oce,"%eval%":eval,"%EvalError%":Dce,"%Float16Array%":typeof Float16Array=="undefined"?Bt:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Bt:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Bt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Bt:FinalizationRegistry,"%Function%":_1,"%GeneratorFunction%":lf,"%Int8Array%":typeof Int8Array=="undefined"?Bt:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Bt:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Bt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cf&&Cn?Cn(Cn([][Symbol.iterator]())):Bt,"%JSON%":typeof JSON=="object"?JSON:Bt,"%Map%":typeof Map=="undefined"?Bt:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!cf||!Cn?Bt:Cn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Sce,"%Object.getOwnPropertyDescriptor%":Tm,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Bt:Promise,"%Proxy%":typeof Proxy=="undefined"?Bt:Proxy,"%RangeError%":bce,"%ReferenceError%":Ace,"%Reflect%":typeof Reflect=="undefined"?Bt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Bt:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!cf||!Cn?Bt:Cn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Bt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cf&&Cn?Cn(""[Symbol.iterator]()):Bt,"%Symbol%":cf?Symbol:Bt,"%SyntaxError%":ff,"%ThrowTypeError%":qce,"%TypedArray%":jce,"%TypeError%":df,"%Uint8Array%":typeof Uint8Array=="undefined"?Bt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Bt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Bt:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Bt:Uint32Array,"%URIError%":Rce,"%WeakMap%":typeof WeakMap=="undefined"?Bt:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Bt:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Bt:WeakSet,"%Function.prototype.call%":Em,"%Function.prototype.apply%":S1,"%Object.defineProperty%":kce,"%Object.getPrototypeOf%":xce,"%Math.abs%":wce,"%Math.floor%":Pce,"%Math.max%":Fce,"%Math.min%":Lce,"%Math.pow%":Cce,"%Math.round%":Bce,"%Math.sign%":Uce,"%Reflect.getPrototypeOf%":Mce};if(Cn)try{null.error}catch(e){g1=Cn(Cn(e)),Fl["%Error.prototype%"]=g1}var g1,Vce=function e(t){var r;if(t==="%AsyncFunction%")r=RO("async function () {}");else if(t==="%GeneratorFunction%")r=RO("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=RO("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Cn&&(r=Cn(i.prototype))}return Fl[t]=r,r},I1={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gm=tf(),PT=Ns(),Kce=gm.call(Em,Array.prototype.concat),$ce=gm.call(S1,Array.prototype.splice),v1=gm.call(Em,String.prototype.replace),FT=gm.call(Em,String.prototype.slice),Gce=gm.call(Em,RegExp.prototype.exec),Qce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yce=/\\(\\)?/g,Jce=function(t){var r=FT(t,0,1),n=FT(t,-1);if(r==="%"&&n!=="%")throw new ff("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ff("invalid intrinsic syntax, expected opening `%`");var i=[];return v1(t,Qce,function(a,o,u,l){i[i.length]=u?v1(l,Yce,"$1"):o||a}),i},zce=function(t,r){var n=t,i;if(PT(I1,n)&&(i=I1[n],n="%"+i[0]+"%"),PT(Fl,n)){var a=Fl[n];if(a===lf&&(a=Vce(n)),typeof a=="undefined"&&!r)throw new df("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ff("intrinsic "+t+" does not exist!")};O1.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new df("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new df('"allowMissing" argument must be a boolean');if(Gce(/^%?[^%]*%?$/,t)===null)throw new ff("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Jce(t),i=n.length>0?n[0]:"",a=zce("%"+i+"%",r),o=a.name,u=a.value,l=!1,m=a.alias;m&&(i=m[0],$ce(n,Kce([0,1],m)));for(var h=1,N=!0;h=n.length){var C=Tm(u,T);N=!!C,N&&"get"in C&&!("originalValue"in C.get)?u=C.get:u=u[T]}else N=PT(u,T),u=u[T];N&&!l&&(Fl[o]=u)}}return u}});var Jr=O((BJe,A1)=>{"use strict";d();p();f();var D1=Wt(),b1=om(),Hce=b1([D1("%String.prototype.indexOf%")]);A1.exports=function(t,r){var n=D1(t,!!r);return typeof n=="function"&&Hce(t,".prototype.")>-1?b1([n]):n}});var PO=O((xJe,w1)=>{"use strict";d();p();f();var Wce=Wt(),Im=Jr(),Xce=Do(),Zce=ke(),R1=Wce("%Map%",!0),ele=Im("Map.prototype.get",!0),tle=Im("Map.prototype.set",!0),rle=Im("Map.prototype.has",!0),nle=Im("Map.prototype.delete",!0),ile=Im("Map.prototype.size",!0);w1.exports=!!R1&&function(){var t,r={assert:function(n){if(!r.has(n))throw new Zce("Side channel does not contain "+Xce(n))},delete:function(n){if(t){var i=nle(t,n);return ile(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return ele(t,n)},has:function(n){return t?rle(t,n):!1},set:function(n,i){t||(t=new R1),tle(t,n,i)}};return r}});var F1=O((KJe,P1)=>{"use strict";d();p();f();var ale=Wt(),CT=Jr(),ole=Do(),LT=PO(),sle=ke(),pf=ale("%WeakMap%",!0),ule=CT("WeakMap.prototype.get",!0),cle=CT("WeakMap.prototype.set",!0),lle=CT("WeakMap.prototype.has",!0),dle=CT("WeakMap.prototype.delete",!0);P1.exports=pf?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new sle("Side channel does not contain "+ole(i))},delete:function(i){if(pf&&i&&(typeof i=="object"||typeof i=="function")){if(t)return dle(t,i)}else if(LT&&r)return r.delete(i);return!1},get:function(i){return pf&&i&&(typeof i=="object"||typeof i=="function")&&t?ule(t,i):r&&r.get(i)},has:function(i){return pf&&i&&(typeof i=="object"||typeof i=="function")&&t?lle(t,i):!!r&&r.has(i)},set:function(i,a){pf&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new pf),cle(t,i,a)):LT&&(r||(r=LT()),r.set(i,a))}};return n}:LT});var C1=O((YJe,L1)=>{"use strict";d();p();f();var fle=ke(),ple=Do(),mle=JM(),hle=PO(),yle=F1(),Nle=yle||hle||mle;L1.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new fle("Side channel does not contain "+ple(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=Nle()),t.set(n,i)}};return r}});var an=O((WJe,B1)=>{"use strict";d();p();f();var Tle=Ns(),vm=C1()(),Ss=ke(),FO={assert:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");if(vm.assert(e),!FO.has(e,t))throw new Ss("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var r=vm.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var r=vm.get(e);return!!r&&Tle(r,"$"+t)},set:function(e,t,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Ss("`O` is not an object");if(typeof t!="string")throw new Ss("`slot` must be a string");var n=vm.get(e);n||(n={},vm.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(FO);B1.exports=FO});var LO=O((tze,U1)=>{"use strict";d();p();f();U1.exports=zS()});var _m=O((aze,k1)=>{"use strict";d();p();f();var Ele=AO();k1.exports=function(){return Ele()&&!!Symbol.toStringTag}});var UT=O((cze,x1)=>{"use strict";d();p();f();var gle=Wt(),q1=gle("%Object.defineProperty%",!0),Ile=_m()(),vle=Ns(),_le=ke(),BT=Ile?Symbol.toStringTag:null;x1.exports=function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n!="undefined"&&typeof n!="boolean"||typeof i!="undefined"&&typeof i!="boolean")throw new _le("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");BT&&(n||!vle(t,BT))&&(q1?q1(t,BT,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[BT]=r)}});var Sm=O((pze,j1)=>{"use strict";d();p();f();var Sle=Wt(),M1=Sle("%Array%"),Ole=!M1.isArray&&Jr()("Object.prototype.toString");j1.exports=M1.isArray||function(t){return Ole(t)==="[object Array]"}});var mf=O((Nze,V1)=>{"use strict";d();p();f();V1.exports=Sm()});var kT=O((Ize,K1)=>{"use strict";d();p();f();K1.exports=function(t,r){for(var n=0;n{"use strict";d();p();f();var CO={__proto__:null,foo:{}},Dle={__proto__:CO}.foo===CO.foo&&!(CO instanceof Object);$1.exports=function(){return Dle}});var _c=O((Rze,J1)=>{"use strict";d();p();f();var ble=Wt(),Q1=ble("%Object.create%",!0),Y1=ke(),Ale=ys(),Rle=Yr(),wle=mf(),Ple=kT(),Fle=an(),Lle=G1()();J1.exports=function(t){if(t!==null&&!Rle(t))throw new Y1("Assertion failed: `proto` must be null or an object");var r=arguments.length<2?[]:arguments[1];if(!wle(r))throw new Y1("Assertion failed: `additionalInternalSlotsList` must be an Array");var n;if(Lle)n={__proto__:t};else if(Q1)n=Q1(t);else{if(t===null)throw new Ale("native Object.create support is required to create null objects");var i=function(){};i.prototype=t,n=new i}return r.length>0&&Ple(r,function(a){Fle.set(n,a,void 0)}),n}});var Z1=O((Lze,X1)=>{"use strict";d();p();f();var Cle=Wt(),z1=cT(),Ble=Ol()(),H1=_o(),W1=ke(),Ule=Cle("%Math.floor%");X1.exports=function(t,r){if(typeof t!="function")throw new W1("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Ule(r)!==r)throw new W1("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&H1){var o=H1(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(Ble?z1(t,"length",r,!0,!0):z1(t,"length",r)),t}});var tj=O((kze,ej)=>{"use strict";d();p();f();var kle=tf(),qle=iT(),xle=YS();ej.exports=function(){return xle(kle,qle,arguments)}});var $n=O((jze,qT)=>{"use strict";d();p();f();var Mle=Z1(),rj=rf(),jle=om(),nj=tj();qT.exports=function(t){var r=jle(arguments),n=1+t.length-(arguments.length-1);return Mle(r,n>0?n:0,!0)};rj?rj(qT.exports,"apply",{value:nj}):qT.exports.apply=nj});var xT=O((Gze,ij)=>{"use strict";d();p();f();var Vle=ke();ij.exports=function(t){if(t==null)throw new Vle(arguments.length>0&&arguments[1]||"Cannot call method on "+t);return t}});var BO=O((zze,oj)=>{"use strict";d();p();f();var Kle=xT(),aj=Jr(),$le=aj("Object.prototype.propertyIsEnumerable"),Gle=aj("Array.prototype.push");oj.exports=function(t){var r=Kle(t),n=[];for(var i in r)$le(r,i)&&Gle(n,[i,r[i]]);return n}});var UO=O((Zze,sj)=>{"use strict";d();p();f();var Qle=BO();sj.exports=function(){return typeof Object.entries=="function"?Object.entries:Qle}});var cj=O((nHe,uj)=>{"use strict";d();p();f();var Yle=UO(),Jle=mn();uj.exports=function(){var t=Yle();return Jle(Object,{entries:t},{entries:function(){return Object.entries!==t}}),t}});var MT=O((sHe,fj)=>{"use strict";d();p();f();var zle=mn(),Hle=$n(),Wle=BO(),lj=UO(),Xle=cj(),dj=Hle(lj(),Object);zle(dj,{getPolyfill:lj,implementation:Wle,shim:Xle});fj.exports=dj});var Om=O((dHe,hj)=>{"use strict";d();p();f();var mj=Function.prototype.toString,hf=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,qO,jT;if(typeof hf=="function"&&typeof Object.defineProperty=="function")try{qO=Object.defineProperty({},"length",{get:function(){throw jT}}),jT={},hf(function(){throw 42},null,qO)}catch(e){e!==jT&&(hf=null)}else hf=null;var Zle=/^\s*class\b/,xO=function(t){try{var r=mj.call(t);return Zle.test(r)}catch(n){return!1}},kO=function(t){try{return xO(t)?!1:(mj.call(t),!0)}catch(r){return!1}},VT=Object.prototype.toString,ede="[object Object]",tde="[object Function]",rde="[object GeneratorFunction]",nde="[object HTMLAllCollection]",ide="[object HTML document.all class]",ade="[object HTMLCollection]",ode=typeof Symbol=="function"&&!!Symbol.toStringTag,sde=!(0 in[,]),MO=function(){return!1};typeof document=="object"&&(pj=document.all,VT.call(pj)===VT.call(document.all)&&(MO=function(t){if((sde||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=VT.call(t);return(r===nde||r===ide||r===ade||r===ede)&&t("")==null}catch(n){}return!1}));var pj;hj.exports=hf?function(t){if(MO(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{hf(t,null,qO)}catch(r){if(r!==jT)return!1}return!xO(t)&&kO(t)}:function(t){if(MO(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(ode)return kO(t);if(xO(t))return!1;var r=VT.call(t);return r!==tde&&r!==rde&&!/^\[object HTML/.test(r)?!1:kO(t)}});var KT=O((hHe,Nj)=>{"use strict";d();p();f();var ude=Om(),cde=Object.prototype.toString,yj=Object.prototype.hasOwnProperty,lde=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),pde(t)?lde(t,r,i):typeof t=="string"?dde(t,r,i):fde(t,r,i)}});var $T=O((EHe,Tj)=>{"use strict";d();p();f();var mde=ke(),Dm=Ns(),hde={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};Tj.exports=function(t){if(!t||typeof t!="object")return!1;for(var r in t)if(Dm(t,r)&&!hde[r])return!1;var n=Dm(t,"[[Value]]")||Dm(t,"[[Writable]]"),i=Dm(t,"[[Get]]")||Dm(t,"[[Set]]");if(n&&i)throw new mde("Property Descriptors may not be both accessor and data descriptors");return!0}});var vj=O((_He,Ij)=>{"use strict";d();p();f();var yde=Ol(),Ej=rf(),gj=yde.hasArrayLengthDefineBug(),Nde=gj&&Sm(),Tde=Jr(),Ede=Tde("Object.prototype.propertyIsEnumerable");Ij.exports=function(t,r,n,i,a,o){if(!Ej){if(!t(o)||!o["[[Configurable]]"]||!o["[[Writable]]"]||a in i&&Ede(i,a)!==!!o["[[Enumerable]]"])return!1;var u=o["[[Value]]"];return i[a]=u,r(i[a],u)}return gj&&a==="length"&&"[[Value]]"in o&&Nde(i)&&i.length!==o["[[Value]]"]?(i.length=o["[[Value]]"],i.length===o["[[Value]]"]):(Ej(i,a,n(o)),!0)}});var Sj=O((bHe,_j)=>{"use strict";d();p();f();_j.exports=function(t){if(typeof t=="undefined")return t;var r={};return"[[Value]]"in t&&(r.value=t["[[Value]]"]),"[[Writable]]"in t&&(r.writable=!!t["[[Writable]]"]),"[[Get]]"in t&&(r.get=t["[[Get]]"]),"[[Set]]"in t&&(r.set=t["[[Set]]"]),"[[Enumerable]]"in t&&(r.enumerable=!!t["[[Enumerable]]"]),"[[Configurable]]"in t&&(r.configurable=!!t["[[Configurable]]"]),r}});var Dj=O((PHe,Oj)=>{"use strict";d();p();f();var gde=ke(),Ide=$T(),vde=Sj();Oj.exports=function(t){if(typeof t!="undefined"&&!Ide(t))throw new gde("Assertion failed: `Desc` must be a Property Descriptor");return vde(t)}});var Rj=O((BHe,Aj)=>{"use strict";d();p();f();var _de=ke(),bj=Ns(),Sde=$T();Aj.exports=function(t){if(typeof t=="undefined")return!1;if(!Sde(t))throw new _de("Assertion failed: `Desc` must be a Property Descriptor");return!(!bj(t,"[[Value]]")&&!bj(t,"[[Writable]]"))}});var Ll=O((xHe,wj)=>{"use strict";d();p();f();wj.exports=function(t){return typeof t=="string"||typeof t=="symbol"}});var jO=O((KHe,Fj)=>{"use strict";d();p();f();var Pj=_s();Fj.exports=function(t,r){return t===r?t===0?1/t===1/r:!0:Pj(t)&&Pj(r)}});var ua=O((YHe,Lj)=>{"use strict";d();p();f();Lj.exports=Om()});var yf=O((WHe,Cj)=>{"use strict";d();p();f();Cj.exports=function(t){return!!t}});var kj=O((t3e,Uj)=>{"use strict";d();p();f();var bo=Ns(),GT=ke(),Ode=Yr(),Bj=ua(),VO=yf();Uj.exports=function(t){if(!Ode(t))throw new GT("ToPropertyDescriptor requires an object");var r={};if(bo(t,"enumerable")&&(r["[[Enumerable]]"]=VO(t.enumerable)),bo(t,"configurable")&&(r["[[Configurable]]"]=VO(t.configurable)),bo(t,"value")&&(r["[[Value]]"]=t.value),bo(t,"writable")&&(r["[[Writable]]"]=VO(t.writable)),bo(t,"get")){var n=t.get;if(typeof n!="undefined"&&!Bj(n))throw new GT("getter must be a function");r["[[Get]]"]=n}if(bo(t,"set")){var i=t.set;if(typeof i!="undefined"&&!Bj(i))throw new GT("setter must be a function");r["[[Set]]"]=i}if((bo(r,"[[Get]]")||bo(r,"[[Set]]"))&&(bo(r,"[[Value]]")||bo(r,"[[Writable]]")))throw new GT("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r}});var Nf=O((a3e,xj)=>{"use strict";d();p();f();var KO=ke(),Dde=Yr(),qj=$T(),bde=vj(),Ade=Dj(),Rde=Rj(),wde=Ll(),Pde=jO(),Fde=kj();xj.exports=function(t,r,n){if(!Dde(t))throw new KO("Assertion failed: Type(O) is not Object");if(!wde(r))throw new KO("Assertion failed: P is not a Property Key");var i=qj(n)?n:Fde(n);if(!qj(i))throw new KO("Assertion failed: Desc is not a valid Property Descriptor");return bde(Rde,Pde,Ade,t,r,i)}});var jj=O((c3e,Mj)=>{"use strict";d();p();f();var Lde=Yr();Mj.exports=function(t){if(t===null)return"Null";if(typeof t=="undefined")return"Undefined";if(Lde(t))return"Object";if(typeof t=="number")return"Number";if(typeof t=="boolean")return"Boolean";if(typeof t=="string")return"String"}});var ca=O((p3e,Vj)=>{"use strict";d();p();f();var Cde=jj();Vj.exports=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":Cde(t)}});var YT=O(QT=>{"use strict";d();p();f();var Bde=vc()(),Ude=an(),kde=MT(),qde=KT(),xde=Wt(),Mde=Nf(),jde=_c(),Kj=ca(),$j=xde("%Object.create%",!0),Vde=!({__proto__:null}instanceof Object);QT.emptyObject=function(){return $j?$j(null):Vde?{__proto__:null}:{}};QT.emulateES6construct=function(e,t,r,n){if(Kj(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;Kj(i)!=="Object"&&(i=r);var a=jde(i);return qde(kde(n),function(o){var u=o[0],l=o[1];Ude.set(a,u,l)}),a};var bm=Bde&&typeof Symbol.iterator=="symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(bm="@@iterator");QT.addIterator=function(e,t){var r=t||function(){return this};Mde(e,bm,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0}),!e[bm]&&typeof bm=="symbol"&&(e[bm]=r)}});var Yj=O((I3e,Qj)=>{"use strict";d();p();f();var Kde=mn(),$de=UT(),JT=an(),Gde=Wt(),Qde=_c(),Yde=YT().addIterator,Am=function(t){JT.set(this,"[[isSetIterator]]",!0),JT.set(this,"[[it]]",t)},Gj=Gde("%IteratorPrototype%",!0);Gj&&(Am.prototype=Qde(Gj));Yde(Am.prototype);Kde(Am.prototype,{next:function(){if(!JT.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return JT.get(this,"[[it]]").next()}});$de(Am.prototype,"Set Iterator");Qj.exports=Am});var Rm=O((O3e,Hj)=>{"use strict";d();p();f();var Jj=Wt(),zj=$n(),Jde=zj(Jj("String.prototype.indexOf"));Hj.exports=function(t,r){var n=Jj(t,!!r);return typeof n=="function"&&Jde(t,".prototype.")>-1?zj(n):n}});var $i=O((R3e,Wj)=>{"use strict";d();p();f();var zde=Wt(),Hde=Jr(),Wde=ke(),Xde=mf(),Zde=zde("%Reflect.apply%",!0)||Hde("Function.prototype.apply");Wj.exports=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!Xde(n))throw new Wde("Assertion failed: optional `argumentsList`, if provided, must be a List");return Zde(t,r,n)}});var $O=O((L3e,Xj)=>{"use strict";d();p();f();Xj.exports=function(t){return typeof t=="number"&&t>=55296&&t<=56319}});var GO=O((k3e,Zj)=>{"use strict";d();p();f();Zj.exports=function(t){return typeof t=="number"&&t>=56320&&t<=57343}});var rV=O((j3e,tV)=>{"use strict";d();p();f();var efe=Wt(),tfe=ke(),eV=efe("%String.fromCharCode%"),rfe=$O(),nfe=GO();tV.exports=function(t,r){if(!rfe(t)||!nfe(r))throw new tfe("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return eV(t)+eV(r)}});var uV=O((G3e,sV)=>{"use strict";d();p();f();var nV=ke(),oV=Jr(),ife=$O(),iV=GO(),afe=rV(),ofe=oV("String.prototype.charAt"),aV=oV("String.prototype.charCodeAt");sV.exports=function(t,r){if(typeof t!="string")throw new nV("Assertion failed: `string` must be a String");var n=t.length;if(r<0||r>=n)throw new nV("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=aV(t,r),a=ofe(t,r),o=ife(i),u=iV(i);if(!o&&!u)return{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(u||r+1===n)return{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var l=aV(t,r+1);return iV(l)?{"[[CodePoint]]":afe(i,l),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":a,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}});var zT=O((z3e,cV)=>{"use strict";d();p();f();var sfe=_s();cV.exports=function(t){return(typeof t=="number"||typeof t=="bigint")&&!sfe(t)&&t!==1/0&&t!==-1/0}});var dV=O((Z3e,lV)=>{"use strict";d();p();f();var ufe=bO(),cfe=Nm(),lfe=_s(),dfe=zT();lV.exports=function(t){if(typeof t!="number"||lfe(t)||!dfe(t))return!1;var r=ufe(t);return cfe(r)===r}});var pV=O((nWe,fV)=>{"use strict";d();p();f();fV.exports=Number.MAX_SAFE_INTEGER||9007199254740991});var hV=O((sWe,mV)=>{"use strict";d();p();f();var ffe=uV(),QO=ke(),pfe=dV(),mfe=pV();mV.exports=function(t,r,n){if(typeof t!="string")throw new QO("Assertion failed: `S` must be a String");if(!pfe(r)||r<0||r>mfe)throw new QO("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(typeof n!="boolean")throw new QO("Assertion failed: `unicode` must be a Boolean");if(!n)return r+1;var i=t.length;if(r+1>=i)return r+1;var a=ffe(t,r);return r+a["[[CodeUnitCount]]"]}});var HT=O((dWe,yV)=>{"use strict";d();p();f();var hfe=ke();yV.exports=function(t,r){if(typeof r!="boolean")throw new hfe("Assertion failed: Type(done) is not Boolean");return{value:t,done:r}}});var Ao=O((hWe,TV)=>{"use strict";d();p();f();var NV=ke(),yfe=Do(),Nfe=Ll(),Tfe=Yr();TV.exports=function(t,r){if(!Tfe(t))throw new NV("Assertion failed: Type(O) is not Object");if(!Nfe(r))throw new NV("Assertion failed: P is not a Property Key, got "+yfe(r));return t[r]}});var WT=O((EWe,EV)=>{"use strict";d();p();f();var Efe=ke(),gfe=Yr(),Ife=Ao(),vfe=yf();EV.exports=function(t){if(!gfe(t))throw new Efe("Assertion failed: Type(iterResult) is not Object");return vfe(Ife(t,"done"))}});var IV=O((_We,gV)=>{"use strict";d();p();f();var _fe=ke(),Sfe=Yr(),Ofe=Ao();gV.exports=function(t){if(!Sfe(t))throw new _fe("Assertion failed: Type(iterResult) is not Object");return Ofe(t,"value")}});var OV=O((bWe,SV)=>{"use strict";d();p();f();var Dfe=Wt(),bfe=$n(),Afe=ys(),vV=Dfe("%Promise.resolve%",!0),_V=vV&&bfe(vV);SV.exports=function(t,r){if(!_V)throw new Afe("This environment does not support Promises.");return _V(t,r)}});var AV=O((PWe,bV)=>{"use strict";d();p();f();var Rfe=Wt(),DV=ys(),wfe=ke(),Pfe=Yr(),YO=Rfe("%Promise%",!0),Ffe=Jr(),Lfe=HT(),Cfe=WT(),Bfe=IV(),Ufe=OV(),kfe=Ffe("Promise.prototype.then",!0);bV.exports=function(t){if(!Pfe(t))throw new wfe("Assertion failed: Type(O) is not Object");if(arguments.length>1)throw new DV("although AsyncFromSyncIteratorContinuation should take a second argument, it is not used in this implementation");if(!YO)throw new DV("This environment does not support Promises.");return new YO(function(r){var n=Cfe(t),i=Bfe(t),a=Ufe(YO,i),o=function(u){return Lfe(u,n)};r(kfe(a,o))})}});var wV=O((BWe,RV)=>{"use strict";d();p();f();var qfe=ke(),xfe=Do(),Mfe=Ll();RV.exports=function(t,r){if(!Mfe(r))throw new qfe("Assertion failed: P is not a Property Key, got "+xfe(r));return t[r]}});var XT=O((xWe,LV)=>{"use strict";d();p();f();var PV=ke(),jfe=wV(),Vfe=ua(),Kfe=Ll(),FV=Do();LV.exports=function(t,r){if(!Kfe(r))throw new PV("Assertion failed: P is not a Property Key");var n=jfe(t,r);if(n!=null){if(!Vfe(n))throw new PV(FV(r)+" is not a function: "+FV(n));return n}}});var Os=O((KWe,CV)=>{"use strict";d();p();f();var JO=Ns();CV.exports=function(t){return!!t&&typeof t=="object"&&JO(t,"[[Iterator]]")&&JO(t,"[[NextMethod]]")&&JO(t,"[[Done]]")&&typeof t["[[Done]]"]=="boolean"}});var ZT=O((YWe,kV)=>{"use strict";d();p();f();var BV=ke(),$fe=Yr(),UV=$i(),Gfe=Os();kV.exports=function(t){if(!Gfe(t))throw new BV("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;if(arguments.length<2?r=UV(t["[[NextMethod]]"],t["[[Iterator]]"]):r=UV(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]]),!$fe(r))throw new BV("iterator next must return an object");return r}});var KV=O((WWe,VV)=>{"use strict";d();p();f();var jV=Wt(),zO=ys(),WO=ke(),qV=Yr(),Tf=jV("%Promise%",!0),HO=AV(),Sc=$i(),Qfe=HT(),Yfe=Ao(),xV=XT(),MV=ZT(),Jfe=_c(),zfe=Os(),Cl=an(),Hfe=jV("%AsyncFromSyncIteratorPrototype%",!0)||{next:function(t){if(!Tf)throw new zO("This environment does not support Promises.");var r=this;Cl.assert(r,"[[SyncIteratorRecord]]");var n=arguments.length;return new Tf(function(i){var a=Cl.get(r,"[[SyncIteratorRecord]]"),o;n>0?o=MV(a,t):o=MV(a),i(HO(o))})},return:function(){if(!Tf)throw new zO("This environment does not support Promises.");var e=this;Cl.assert(e,"[[SyncIteratorRecord]]");var t=arguments.length>0,r=t?arguments[0]:void 0;return new Tf(function(n,i){var a=Cl.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],o=xV(a,"return");if(typeof o=="undefined"){var u=Qfe(r,!0);Sc(n,void 0,[u]);return}var l;if(t?l=Sc(o,a,[r]):l=Sc(o,a),!qV(l)){Sc(i,void 0,[new WO("Iterator `return` method returned a non-object value.")]);return}n(HO(l))})},throw:function(){if(!Tf)throw new zO("This environment does not support Promises.");var e=this;Cl.assert(e,"[[SyncIteratorRecord]]");var t=arguments.length>0,r=t?arguments[0]:void 0;return new Tf(function(n,i){var a=Cl.get(e,"[[SyncIteratorRecord]]")["[[Iterator]]"],o=xV(a,"throw");if(typeof o=="undefined"){Sc(i,void 0,[r]);return}var u;if(t?u=Sc(o,a,[r]):u=Sc(o,a),!qV(u)){Sc(i,void 0,[new WO("Iterator `throw` method returned a non-object value.")]);return}n(HO(u))})}};VV.exports=function(t){if(!zfe(t))throw new WO("Assertion failed: `syncIteratorRecord` must be an Iterator Record");var r=Jfe(Hfe);Cl.set(r,"[[SyncIteratorRecord]]",t);var n=Yfe(r,"next");return{"[[Iterator]]":r,"[[NextMethod]]":n,"[[Done]]":!1}}});var wm=O((t6e,GV)=>{"use strict";d();p();f();var $V=ke(),Wfe=Yr(),Xfe=$i(),Zfe=Ao(),epe=ua();GV.exports=function(t,r){if(!epe(r))throw new $V("method must be a function");var n=Xfe(r,t);if(!Wfe(n))throw new $V("iterator must return an object");var i=Zfe(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var JV=O((a6e,YV)=>{"use strict";d();p();f();var QV=Jr(),tpe=QV("String.prototype.valueOf"),rpe=function(t){try{return tpe(t),!0}catch(r){return!1}},npe=QV("Object.prototype.toString"),ipe="[object String]",ape=_m()();YV.exports=function(t){return typeof t=="string"?!0:!t||typeof t!="object"?!1:ape?rpe(t):npe(t)===ipe}});var WV=O((c6e,HV)=>{"use strict";d();p();f();var ope=vc()(),zV=Wt(),spe=Jr(),upe=JV(),cpe=zV("%Symbol.iterator%",!0),lpe=spe("String.prototype.slice"),dpe=zV("%String%"),fpe=Sm();HV.exports=function(t,r){var n;return ope?n=t.GetMethod(r,cpe):fpe(r)?n=function(){var i=-1,a=this;return{next:function(){return i+=1,{done:i>=a.length,value:a[i]}}}}:upe(r)&&(n=function(){var i=0;return{next:function(){var a=t.AdvanceStringIndex(dpe(r),i,!0),o=lpe(r,i,a);i=a;var u=a>r.length;return{done:u,value:u?void 0:o}}}}),n}});var ZO=O((p6e,tK)=>{"use strict";d();p();f();var ppe=Wt(),XO=ke(),XV=ppe("%Symbol.asyncIterator%",!0),mpe=Do(),hpe=vc()(),ype=hV(),Npe=KV(),ZV=wm(),eK=XT(),Tpe={AdvanceStringIndex:ype,GetMethod:eK},Epe=WV();tK.exports=function(t,r){if(r!=="SYNC"&&r!=="ASYNC")throw new XO("Assertion failed: `kind` must be one of 'sync' or 'async', got "+mpe(r));var n;if(r==="ASYNC"&&hpe&&XV&&(n=eK(t,XV)),typeof n=="undefined"){var i=Epe(Tpe,t);if(r==="ASYNC"){if(typeof i=="undefined")throw new XO("iterator method is `undefined`");var a=ZV(t,i);return Npe(a)}n=i}if(typeof n=="undefined")throw new XO("iterator method is `undefined`");return ZV(t,n)}});var eD=O((N6e,nK)=>{"use strict";d();p();f();var rK=ys(),Oc=an(),Pm=function e(t,r){if(!(this instanceof e))return new e(t,r);if(t!=="normal"&&t!=="break"&&t!=="continue"&&t!=="return"&&t!=="throw")throw new rK('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');Oc.set(this,"[[Type]]",t),Oc.set(this,"[[Value]]",r)};Pm.prototype.type=function(){return Oc.get(this,"[[Type]]")};Pm.prototype.value=function(){return Oc.get(this,"[[Value]]")};Pm.prototype["?"]=function(){var t=Oc.get(this,"[[Type]]"),r=Oc.get(this,"[[Value]]");if(t==="throw")throw r;return r};Pm.prototype["!"]=function(){var t=Oc.get(this,"[[Type]]");if(t!=="normal")throw new rK('Assertion failed: Completion Record is not of type "normal"');return Oc.get(this,"[[Value]]")};nK.exports=Pm});var Ef=O((I6e,oK)=>{"use strict";d();p();f();var eE=ke(),iK=Yr(),gpe=$i(),aK=eD(),Ipe=XT(),vpe=ua(),_pe=Os();oK.exports=function(t,r){if(!_pe(t))throw new eE("Assertion failed: `iteratorRecord` must be an Iterator Record");if(!iK(t["[[Iterator]]"]))throw new eE("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");if(!vpe(r)&&!(r instanceof aK))throw new eE("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");var n=r instanceof aK?function(){return r["?"]()}:r,i=t["[[Iterator]]"],a;try{a=Ipe(i,"return")}catch(l){throw n(),n=null,l}if(typeof a=="undefined")return n();var o;try{o=gpe(a,i,[])}catch(l){throw n(),n=null,l}var u=n();if(n=null,!iK(o))throw new eE("iterator .return must return an object");return u}});var tE=O((O6e,sK)=>{"use strict";d();p();f();var Spe=ke(),Ope=WT(),Dpe=ZT(),bpe=Os();sK.exports=function(t){if(!bpe(t))throw new Spe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=Dpe(t),n=Ope(r);return n===!0?!1:r}});var Dc=O((R6e,uK)=>{"use strict";d();p();f();var Ape=Wt(),Rpe=Ape("%String%"),wpe=ke();uK.exports=function(t){if(typeof t=="symbol")throw new wpe("Cannot convert a Symbol value to a string");return Rpe(t)}});var tD=O((L6e,lK)=>{"use strict";d();p();f();var cK=_s();lK.exports=function(t,r){return t===r||cK(t)&&cK(r)}});var fK=O((k6e,dK)=>{"use strict";d();p();f();var rE=function(t,r){this.key=t,this.value=r,this.next=null,this.prev=null};rE.empty={};rE.prototype.isRemoved=function(){return this.key===rE.empty};dK.exports=rE});var nE=O((j6e,pK)=>{"use strict";d();p();f();pK.exports=function(t){return t===null||typeof t!="function"&&typeof t!="object"}});var NK=O((G6e,yK)=>{"use strict";d();p();f();var hK=Wt(),Ppe=hK("%Object.preventExtensions%",!0),Fpe=hK("%Object.isExtensible%",!0),mK=nE();yK.exports=Ppe?function(t){return!mK(t)&&Fpe(t)}:function(t){return!mK(t)}});var rD=O((z6e,TK)=>{"use strict";d();p();f();var Fm=ke(),Lpe=Yr(),Cpe=Nf(),Bpe=NK(),Upe=Ll();TK.exports=function(t,r,n,i){if(!Lpe(t))throw new Fm("Assertion failed: `homeObject` is not an Object");if(!Upe(r))throw new Fm("Assertion failed: `key` is not a Property Key or a Private Name");if(typeof n!="function")throw new Fm("Assertion failed: `closure` is not a function");if(typeof i!="boolean")throw new Fm("Assertion failed: `enumerable` is not a Boolean");if(!Bpe(t))throw new Fm("Assertion failed: `homeObject` is not an ordinary, extensible object, with no non-configurable properties");var a={"[[Value]]":n,"[[Writable]]":!0,"[[Enumerable]]":i,"[[Configurable]]":!0};Cpe(t,r,a)}});var iE=O(nD=>{"use strict";d();p();f();var kpe=an(),qpe=Dc(),xpe=ca(),EK=function(t){return kpe.has(t,"[[es6map]]")};nD.isMap=EK;nD.requireMapSlot=function(t,r){if(xpe(t)!=="Object"||!EK(t))throw new TypeError("Method Map.prototype."+r+" called on incompatible receiver "+qpe(t))}});var iD=O(oE=>{"use strict";d();p();f();var Mpe=vc()(),jpe=Wt(),Vpe=an(),Kpe=MT(),$pe=KT(),Gpe=rD(),Qpe=_c(),aE=ca(),gK=jpe("%Object.create%",!0),Ype=!({__proto__:null}instanceof Object);oE.emptyObject=function(){return gK?gK(null):Ype?{__proto__:null}:{}};oE.emulateES6construct=function(e,t,r,n){if(aE(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;aE(i)!=="Object"&&(i=r);var a=Qpe(i);return $pe(Kpe(n),function(o){var u=o[0],l=o[1];Vpe.set(a,u,l)}),a};var Lm=Mpe&&aE(Symbol.iterator)==="Symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(Lm="@@iterator");oE.addIterator=function(e,t){var r=t||function(){return this};Gpe(e,Lm,r,!1),!e[Lm]&&aE(Lm)==="Symbol"&&(e[Lm]=r)}});var oD=O((s4e,vK)=>{"use strict";d();p();f();var Va=an(),Jpe=UT(),zpe=Wt(),aD=HT(),Hpe=rD(),Wpe=_c(),Xpe=iE().requireMapSlot,Zpe=iD().addIterator,Cm=function(t,r){Xpe(t,"[[MapIterator]]"),Va.set(this,"[[isMapIterator]]",!0);var n=Va.get(t,"[[head]]");Va.set(this,"[[i]]",n),Va.set(this,"[[head]]",n),Va.set(this,"[[kind]]",r)},IK=zpe("%IteratorPrototype%",!0);IK&&(Cm.prototype=Wpe(IK));Zpe(Cm.prototype);Hpe(Cm.prototype,"next",function(){if(!Va.has(this,"[[isMapIterator]]"))throw new TypeError("Not a MapIterator");var t=Va.get(this,"[[i]]"),r=Va.get(this,"[[kind]]"),n=Va.get(this,"[[head]]");if(typeof t=="undefined")return aD(void 0,!0);for(;t.isRemoved()&&t!==n;)t=t.prev;for(var i;t.next!==n;)if(t=t.next,!t.isRemoved())return r==="key"?i=t.key:r==="value"?i=t.value:i=[t.key,t.value],Va.set(this,"[[i]]",t),aD(i,!1);return Va.set(this,"[[i]]",void 0),aD(void 0,!0)},!1);Jpe(Cm.prototype,"Map Iterator");vK.exports=Cm});var sD=O((d4e,SK)=>{"use strict";d();p();f();var _K=Symbol.iterator;SK.exports=function(t){if(t!=null&&typeof t[_K]!="undefined")return t[_K]()}});var bK=O(sE=>{"use strict";d();p();f();var OK=$i(),eme=mf(),tme=ua(),rme=Ef(),nme=tE(),ime=Dc(),uD=ca(),ame=sD(),ome=oD(),sme=iE().isMap;sE.fastkey=function(t){switch(uD(t)){case"String":return"$"+t;case"Null":case"Undefined":case"Boolean":case"Number":return ime(t);default:return null}};var DK=function(t,r,n){for(var i=new ome(t,"key+value"),a=i.next();!a.done;a=i.next())typeof n=="undefined"?r(a.value[1],a.value[0],t):OK(r,n,[a.value[1],a.value[0],t])};sE.forEach=DK;sE.addIterableToMap=function(t,r){if(eme(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var AK=mn(),dE=Rm(),ume=Wt(),qr=an(),cme=jO(),uE=tD(),bc=fK(),cD=oD(),fD=bK(),pD=iD(),Ro=iE().requireMapSlot,cE=fD.fastkey,lme=fD.forEach,dme=fD.addIterableToMap,RK=pD.emptyObject,fme=pD.emulateES6construct,pme=pD.addIterator,lE=ume("%Map%",!0),mme=dE("%Map.prototype.delete%",!0),lD=dE("%Map.prototype.get%",!0),dD=dE("%Map.prototype.has%",!0),hme=dE("%Map.prototype.set%",!0),gf,wK=function e(){if(!(this instanceof e))throw new TypeError('Constructor Map requires "new"');if(this&&qr.has(this,"[[es6map]]"))throw new TypeError("Bad construction");var t=fme(this,e,gf,{"[[es6map]]":!0,"[[head]]":null,"[[map]]":lE?new lE:null,"[[size]]":0,"[[storage]]":RK()}),r=new bc(null,null);return r.next=r,r.prev=r,qr.set(t,"[[head]]",r),arguments.length>0&&dme(t,arguments[0]),t};gf=wK.prototype;AK.supportsDescriptors&&Object.defineProperty(gf,"size",{configurable:!0,enumerable:!1,get:function(){return Ro(this,"size"),qr.get(this,"[[size]]")}});AK(gf,{get:function(t){Ro(this,"get");var r,n=cE(t,!0);if(n!==null)return r=qr.get(this,"[[storage]]")[n],r?r.value:void 0;var i=qr.get(this,"[[map]]");if(i)return r=lD(i,t),r?r.value:void 0;for(var a=qr.get(this,"[[head]]"),o=a;(o=o.next)!==a;)if(uE(o.key,t))return o.value},has:function(t){Ro(this,"has");var r=cE(t,!0),n=qr.get(this,"[[storage]]");if(r!==null)return typeof n[r]!="undefined";var i=qr.get(this,"[[map]]");if(i)return dD(i,t);for(var a=qr.get(this,"[[head]]"),o=a;(o=o.next)!==a;)if(uE(o.key,t))return!0;return!1},set:function(t,r){Ro(this,"set");var n=qr.get(this,"[[head]]"),i=n,a,o=cE(t,!0);if(o!==null){var u=qr.get(this,"[[storage]]");if(typeof u[o]=="undefined")a=new bc(t,r),u[o]=a,i=n.prev;else return u[o].value=r,this}else{var l=qr.get(this,"[[map]]");l&&(dD(l,t)?lD(l,t).value=r:(a=new bc(t,r),hme(l,t,a),i=n.prev))}for(;(i=i.next)!==n;)if(uE(i.key,t))return i.value=r,this;return a=a||new bc(t,r),cme(-0,t)&&(a.key=0),a.next=n,a.prev=n.prev,a.prev.next=a,a.next.prev=a,qr.set(this,"[[size]]",qr.get(this,"[[size]]")+1),this},delete:function(e){Ro(this,"delete");var t=qr.get(this,"[[head]]"),r=t,n=cE(e,!0);if(n!==null){var i=qr.get(this,"[[storage]]");if(typeof i[n]=="undefined")return!1;r=i[n].prev,delete i[n]}else{var a=qr.get(this,"[[map]]");if(a){if(!dD(a,e))return!1;r=lD(a,e).prev,mme(a,e)}}for(;(r=r.next)!==t;)if(uE(r.key,e))return r.key=bc.empty,r.value=bc.empty,r.prev.next=r.next,r.next.prev=r.prev,qr.set(this,"[[size]]",qr.get(this,"[[size]]")-1),!0;return!1},clear:function(){Ro(this,"clear"),qr.set(this,"[[map]]",lE?new lE:null),qr.set(this,"[[size]]",0),qr.set(this,"[[storage]]",RK());for(var t=qr.get(this,"[[head]]"),r=t,n=r.next;(r=n)!==t;)r.key=bc.empty,r.value=bc.empty,n=r.next,r.next=t,r.prev=t;t.next=t,t.prev=t},keys:function(){return Ro(this,"keys"),new cD(this,"key")},values:function(){return Ro(this,"values"),new cD(this,"value")},entries:function(){return Ro(this,"entries"),new cD(this,"key+value")},forEach:function(t){Ro(this,"forEach"),lme(this,t,arguments.length>1?arguments[1]:void 0)}});pme(gf,gf.entries);PK.exports=wK});var yD=O(hD=>{"use strict";d();p();f();var yme=an(),Nme=Dc(),Tme=ca(),FK=function(t){return yme.has(t,"[[es6set]]")};hD.isSet=FK;hD.requireSetSlot=function(t,r){if(Tme(t)!=="Object"||!FK(t))throw new TypeError("Method Set.prototype."+r+" called on incompatible receiver "+Nme(t))}});var ND=O(Bl=>{"use strict";d();p();f();var Eme=Wt(),gme=Rm(),Ime=$n(),Bm=an(),CK=$i(),vme=ZO(),_me=mf(),Sme=ua(),Ome=Ef(),Dme=tE(),bme=Dc(),BK=mD(),Ame=Ime(BK.prototype.forEach),LK=gme("%String.prototype.slice%"),Rme=Eme("%Number%"),wme=yD().isSet,UK={};Bl.SET_ITEM=UK;Bl.fastkey=function(t){switch(typeof t){case"string":return"$"+t;case"null":case"undefined":case"boolean":return bme(t);case"number":return"n"+t;default:return null}};var Pme=function(t){return t==="null"?null:t==="undefined"?void 0:t==="true"?!0:t==="false"?!1:t[0]==="$"?LK(t,1):Rme(LK(t,1))},kK=function(t,r){for(var n in t)t[n]===UK&&r(n)};Bl.iterateStorage=kK;var qK=function(t){if(!Bm.get(t,"[[setData]]")){var r=new BK;kK(Bm.get(t,"[[storage]]"),function(n){var i=Pme(n);r.set(i,i)}),Bm.set(t,"[[setData]]",r)}Bm.set(t,"[[storage]]",null)};Bl.ensureSet=qK;var xK=function(t,r,n){qK(t),Ame(Bm.get(t,"[[setData]]"),function(i,a){typeof n=="undefined"?r(a,a,t):CK(r,n,[a,a,t])})};Bl.forEach=xK;Bl.addIterableToSet=function(t,r){if(_me(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var ED=mn(),oi=an(),MK=LO(),jK=Yj(),vf=ND(),gD=YT(),Ac=yD().requireSetSlot,TD=vf.fastkey,Fme=vf.forEach,Lme=vf.addIterableToSet,VK=vf.SET_ITEM,If=vf.ensureSet,Cme=vf.iterateStorage,KK=gD.emptyObject,Bme=gD.emulateES6construct,Ume=gD.addIterator,Ds,$K=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');if(this&&oi.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var t=Bme(this,e,Ds,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":KK()});if(!oi.has(t,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&Lme(t,arguments[0]),t};Ds=$K.prototype;ED.supportsDescriptors&&Object.defineProperty(Ds,"size",{configurable:!0,enumerable:!1,get:function(){Ac(this,"size");var e=oi.get(this,"[[storage]]");if(e){var t=0;return Cme(e,function(){t+=1}),t}return If(this),oi.get(this,"[[setData]]").size}});ED(Ds,{add:function(t){Ac(this,"has");var r,n=oi.get(this,"[[storage]]");return n&&(r=TD(t))!==null?n[r]!==VK&&(n[r]=VK):(If(this),oi.get(this,"[[setData]]").set(t,t)),this},has:function(t){Ac(this,"has");var r,n=oi.get(this,"[[storage]]");return n&&(r=TD(t))!==null?!!n[r]:(If(this),oi.get(this,"[[setData]]").has(t))},delete:function(e){Ac(this,"delete");var t,r=oi.get(this,"[[storage]]");if(r&&(t=TD(e))!==null){var n=!!r[t];return n&&delete r[t],n}return If(this),oi.get(this,"[[setData]]").delete(e)},clear:function(){Ac(this,"clear");var t=oi.get(this,"[[storage]]");t&&oi.set(this,"[[storage]]",KK());var r=oi.get(this,"[[setData]]");r&&r.clear()},values:function(){return Ac(this,"values"),If(this),new jK(oi.get(this,"[[setData]]").values())},entries:function(){return Ac(this,"entries"),If(this),new jK(oi.get(this,"[[setData]]").entries())},forEach:function(t){Ac(this,"forEach"),Fme(this,t,arguments.length>1?arguments[1]:void 0)}});ED(Ds,{keys:Ds.values});Ume(Ds,Ds.values);typeof Set=="function"&&MK&&MK(Ds,Set.prototype);GK.exports=$K});var ID=O((B4e,YK)=>{"use strict";d();p();f();var km=function(){return typeof function(){}.name=="string"},Um=Object.getOwnPropertyDescriptor;if(Um)try{Um([],"length")}catch(e){Um=null}km.functionsHaveConfigurableNames=function(){if(!km()||!Um)return!1;var t=Um(function(){},"name");return!!t&&!!t.configurable};var kme=Function.prototype.bind;km.boundFunctionsHaveNames=function(){return km()&&typeof kme=="function"&&function(){}.bind().name!==""};YK.exports=km});var vD=O(Rc=>{"use strict";d();p();f();var qme=ID(),xme=function(e){return function(){try{return e()}catch(t){return!1}}};Rc.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};Rc.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var e=new Set([1,2,3,4]);return e.delete(0),e.add(-0),e.has(0)?(e=new Set([1,2,3,4]),e.delete(-0),e.add(0),e.has(-0)):!1};Rc.setSupportsChaining=function(){var e=new Set;return e.add(1)===e};var Mme=xme(function(){if(!Object.setPrototypeOf)return!0;var e=function r(n){var i=new Set(n);return Object.setPrototypeOf(i,r.prototype),i};Object.setPrototypeOf(e,Set),Object.setPrototypeOf(e.prototype,Set.prototype);var t=new e([]);return t.add(1,2),t instanceof e}),jme=function(){try{return!(Set()instanceof Set)}catch(e){return e instanceof TypeError}};Rc.setCompliantConstructor=function(){return Set.length===0&&Mme()&&jme()};Rc.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};Rc.setHasCorrectName=function(){return qme?Set.prototype.has.name==="has":!0};Rc.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var $a=O((K4e,JK)=>{"use strict";d();p();f();var Vme=eO(),Kme=mn(),fE=an(),$me=QK(),Gme=ND().addIterableToSet,wc=vD(),Ka;JK.exports=function(){if(typeof Set=="function"&&!wc.setCompliantConstructor()&&wc.setUsesSameValueZero()){var t=Set;if(!Ka||!(t===Ka||fE.get(Ka,"[[OrigSet]]")===t)){var r=t.prototype;Ka=function(){if(!(this instanceof Ka))throw new TypeError('Constructor Set requires "new"');if(this&&fE.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new t;return fE.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&Gme(i,arguments[0]),delete i.constructor,Vme(i,Ka.prototype),i},fE.set(Ka,"[[OrigSet]]",Set),Ka.prototype=r,Kme(Ka.prototype,{constructor:Ka},{constructor:function(){return!0}})}return Ka}return typeof Set!="function"||wc.isGoogleTranslate()||wc.setHasOldFirefoxInterface()||!wc.setHasCorrectName()||!wc.setKeysIsValues()||!wc.setSupportsChaining()||!wc.setUsesSameValueZero()?$me:Set}});var HK=O((Y4e,zK)=>{"use strict";d();p();f();zK.exports=function(t){return t===null||typeof t!="function"&&typeof t!="object"}});var ZK=O((W4e,XK)=>{"use strict";d();p();f();var WK=Jr(),Qme=WK("Date.prototype.getDay"),Yme=function(t){try{return Qme(t),!0}catch(r){return!1}},Jme=WK("Object.prototype.toString"),zme="[object Date]",Hme=_m()();XK.exports=function(t){return typeof t!="object"||t===null?!1:Hme?Yme(t):Jme(t)===zme}});var a$=O((t8e,i$)=>{"use strict";d();p();f();var e$=Jr(),Wme=_m()(),Xme=Ns(),Zme=_o(),OD;Wme?(t$=e$("RegExp.prototype.exec"),_D={},pE=function(){throw _D},SD={toString:pE,valueOf:pE},typeof Symbol.toPrimitive=="symbol"&&(SD[Symbol.toPrimitive]=pE),OD=function(t){if(!t||typeof t!="object")return!1;var r=Zme(t,"lastIndex"),n=r&&Xme(r,"value");if(!n)return!1;try{t$(t,SD)}catch(i){return i===_D}}):(r$=e$("Object.prototype.toString"),n$="[object RegExp]",OD=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:r$(t)===n$});var t$,_D,pE,SD,r$,n$;i$.exports=OD});var mE=O((a8e,o$)=>{"use strict";d();p();f();var ehe=Jr(),the=a$(),rhe=ehe("RegExp.prototype.exec"),nhe=ke();o$.exports=function(t){if(!the(t))throw new nhe("`regex` must be a RegExp");return function(n){return rhe(t,n)!==null}}});var d$=O((c8e,DD)=>{"use strict";d();p();f();var l$=Jr(),ihe=l$("Object.prototype.toString"),ahe=vc()(),ohe=mE();ahe?(s$=l$("Symbol.prototype.toString"),u$=ohe(/^Symbol\(.*\)$/),c$=function(t){return typeof t.valueOf()!="symbol"?!1:u$(s$(t))},DD.exports=function(t){if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||ihe(t)!=="[object Symbol]")return!1;try{return c$(t)}catch(r){return!1}}):DD.exports=function(t){return!1};var s$,u$,c$});var AD=O((p8e,m$)=>{"use strict";d();p();f();var she=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",bD=HK(),p$=Om(),uhe=ZK(),f$=d$(),che=function(t,r){if(typeof t=="undefined"||t===null)throw new TypeError("Cannot call method on "+t);if(typeof r!="string"||r!=="number"&&r!=="string")throw new TypeError('hint must be "string" or "number"');var n=r==="string"?["toString","valueOf"]:["valueOf","toString"],i,a,o;for(o=0;o1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number"));var n;if(she&&(Symbol.toPrimitive?n=lhe(t,Symbol.toPrimitive):f$(t)&&(n=Symbol.prototype.valueOf)),typeof n!="undefined"){var i=n.call(t,r);if(bD(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return r==="default"&&(uhe(t)||f$(t))&&(r="string"),che(t,r==="default"?"number":r)}});var N$=O((N8e,y$)=>{"use strict";d();p();f();var h$=AD();y$.exports=function(t){return arguments.length>1?h$(t,arguments[1]):h$(t)}});var RD=O((I8e,g$)=>{"use strict";d();p();f();var dhe=xT(),fhe=Dc(),phe=Jr(),T$=phe("String.prototype.replace"),E$=/^\s$/.test("\u180E"),mhe=E$?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,hhe=E$?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;g$.exports=function(){var t=fhe(dhe(this));return T$(T$(t,mhe,""),hhe,"")}});var wD=O((O8e,v$)=>{"use strict";d();p();f();var yhe=RD(),I$="\u200B",_f="\u180E";v$.exports=function(){return String.prototype.trim&&I$.trim()===I$&&_f.trim()===_f&&("_"+_f).trim()==="_"+_f&&(_f+"_").trim()===_f+"_"?String.prototype.trim:yhe}});var O$=O((R8e,S$)=>{"use strict";d();p();f();var Nhe=Ol()(),_$=cT(),The=wD();S$.exports=function(){var t=The();return String.prototype.trim!==t&&(Nhe?_$(String.prototype,"trim",t,!0):_$(String.prototype,"trim",t)),t}});var PD=O((L8e,A$)=>{"use strict";d();p();f();var Ehe=$n(),ghe=mn(),Ihe=xT(),vhe=RD(),D$=wD(),_he=O$(),She=Ehe(D$()),b$=function(t){return Ihe(t),She(t)};ghe(b$,{getPolyfill:D$,implementation:vhe,shim:_he});A$.exports=b$});var L$=O((k8e,F$)=>{"use strict";d();p();f();var P$=Wt(),Ohe=P$("%RegExp%"),Dhe=ke(),R$=P$("%parseInt%"),bhe=Jr(),hE=mE(),w$=bhe("String.prototype.slice"),Ahe=hE(/^0b[01]+$/i),Rhe=hE(/^0o[0-7]+$/i),whe=hE(/^[-+]0x[0-9a-f]+$/i),Phe=["\x85","\u200B","\uFFFE"].join(""),Fhe=new Ohe("["+Phe+"]","g"),Lhe=hE(Fhe),Che=PD();F$.exports=function e(t){if(typeof t!="string")throw new Dhe("Assertion failed: `argument` is not a String");if(Ahe(t))return+R$(w$(t,2),2);if(Rhe(t))return+R$(w$(t,2),8);if(Lhe(t)||whe(t))return NaN;var r=Che(t);return r!==t?e(r):+t}});var Sf=O((j8e,B$)=>{"use strict";d();p();f();var Bhe=Wt(),C$=ke(),Uhe=Bhe("%Number%"),khe=nE(),qhe=N$(),xhe=L$();B$.exports=function(t){var r=khe(t)?t:qhe(t,Uhe);if(typeof r=="symbol")throw new C$("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new C$("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?xhe(r):+r}});var k$=O((G8e,U$)=>{"use strict";d();p();f();var Mhe=Nm();U$.exports=function(t){return typeof t=="bigint"?t:Mhe(t)}});var M$=O((z8e,x$)=>{"use strict";d();p();f();var q$=k$(),jhe=ke();x$.exports=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new jhe("argument must be a Number or a BigInt");var r=t<0?-q$(-t):q$(t);return r===0?0:r}});var qm=O((Z8e,j$)=>{"use strict";d();p();f();var Vhe=Sf(),Khe=M$(),$he=_s(),Ghe=zT();j$.exports=function(t){var r=Vhe(t);return $he(r)||r===0?0:Ghe(r)?Khe(r):r}});var Of=O((n9e,V$)=>{"use strict";d();p();f();V$.exports=Number.isNaN||function(t){return t!==t}});var Ga=O((s9e,G$)=>{"use strict";d();p();f();var Qhe=typeof Map=="function"&&Map.prototype?Map:null,FD=typeof Set=="function"&&Set.prototype?Set:null,yE;FD||(yE=function(t){return!1});var K$=Qhe?Map.prototype.has:null,$$=FD?Set.prototype.has:null;!yE&&!$$&&(yE=function(t){return!1});G$.exports=yE||function(t){if(!t||typeof t!="object")return!1;try{if($$.call(t),K$)try{K$.call(t)}catch(r){return!0}return t instanceof FD}catch(r){}return!1}});var Pc=O((d9e,Y$)=>{"use strict";d();p();f();var xm=an(),Yhe=ys(),Q$=typeof StopIteration=="object"?StopIteration:null;Y$.exports=function(t){if(!Q$)throw new Yhe("this environment lacks StopIteration");xm.set(t,"[[Done]]",!1);var r={next:function(){var i=xm.get(this,"[[Iterator]]"),a=!!xm.get(i,"[[Done]]");try{return{done:a,value:a?void 0:i.next()}}catch(o){if(xm.set(i,"[[Done]]",!0),o!==Q$)throw o;return{done:!0,value:void 0}}}};return xm.set(r,"[[Iterator]]",t),r}});var H$=O((h9e,z$)=>{"use strict";d();p();f();var Jhe=Pl(),NE=ke(),LD=Ao(),J$=ua(),zhe=qm(),Hhe=Sf(),Whe=ca(),Xhe=Of(),Zhe=$n(),eye=Ga(),tye=Pc();z$.exports=function(t){if(Whe(t)!=="Object")throw new NE("obj is not an Object");var r=LD(t,"size"),n=Hhe(r);if(Xhe(n))throw new NE("size is not a non-NaN Number");var i=zhe(n);if(i<0)throw new Jhe("set size must be non-negative");var a=LD(t,"has");if(!J$(a))throw new NE("has is not a function");var o=LD(t,"keys");if(!J$(o))throw new NE("keys is not a function");if(eye(t)&&typeof StopIteration=="object"){var u=Zhe(o);o=function(){return tye(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var TE=O((E9e,W$)=>{"use strict";d();p();f();var rye=ke(),nye=Ao(),iye=WT(),aye=ZT(),oye=Os();W$.exports=function(t){if(!oye(t))throw new rye("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;try{r=aye(t)}catch(a){throw t["[[Done]]"]=!0,a}var n;try{n=iye(r)}catch(a){throw t["[[Done]]"]=!0,a}if(n)return t["[[Done]]"]=!0,"DONE";var i;try{i=nye(r,"value")}catch(a){throw t["[[Done]]"]=!0,a}return i}});var eG=O((_9e,Z$)=>{"use strict";d();p();f();var X$=TypeError;Z$.exports=function(t){if(!t||typeof t.next!="function")throw new X$("iterator must be an object with a `next` method");if(arguments.length>1){var r=arguments[1];if(typeof r!="function")throw new X$("`callback`, if provided, must be a function")}for(var n=r||[],i;(i=t.next())&&!i.done;)r?r(i.value):n.push(i.value);if(!r)return n}});var CD=O((b9e,rG)=>{"use strict";d();p();f();var sye=sD(),uye=TypeError,tG=eG();rG.exports=function(t){var r=sye(t);if(!r)throw new uye("non-iterable value provided");return arguments.length>1?tG(r,arguments[1]):tG(r)}});var Vm=O((P9e,dG)=>{"use strict";d();p();f();var Df=$a()(),Mm=$n(),jm=Rm(),nG=_o(),cye=CD(),iG=jm("Set.prototype.forEach",!0),lye=Mm(Df.prototype.forEach),lG=function(e,t){if(iG)try{return iG(e,t)}catch(r){}try{return lye(e,t)}catch(r){}cye(e,t)},aG=jm("Set.prototype.add",!0),dye=Df.prototype.add&&Mm(Df.prototype.add),fye=function(e,t){if(aG)try{return aG(e,t)}catch(r){}return dye(e,t)},oG=jm("Set.prototype.has",!0),pye=Mm(Df.prototype.has),mye=function(e,t){if(oG)try{return oG(e,t)}catch(r){}return pye(e,t)},sG=jm("Set.prototype.delete",!0),hye=Mm(Df.prototype.delete),yye=function(e,t){if(sG)try{return sG(e,t)}catch(r){}return hye(e,t)},uG=jm("Set.prototype.size",!0),cG=nG?Mm(nG(Df.prototype,"size").get):null,Nye=function(t){var r=0;return lG(t,function(){r+=1}),r},Tye=function(e){if(uG)try{return uG(e)}catch(t){}if(cG)try{return cG(e)}catch(t){}return Nye(e)};dG.exports={add:fye,delete:yye,forEach:lG,has:mye,size:Tye}});var NG=O((B9e,yG)=>{"use strict";d();p();f();var Eye=ke(),fG=$a()(),gye=$i(),Iye=wm(),vye=H$(),_ye=TE(),Sye=tD(),Oye=yf(),Dye=Jr(),bye=Ga(),Aye=kT(),BD=Vm(),pG=BD.forEach,mG=BD.add,Rye=BD.size,wye=Dye(".Array.prototype.push"),hG={};yG.exports=function(t){var r=this;if(!bye(r)&&!(r instanceof fG))throw new Eye("Method Set.prototype.difference called on incompatible receiver "+r);var n=vye(t),i=Rye(r),a=new fG;if(i<=n["[[Size]]"])pG(r,function(h){var N=Oye(gye(n["[[Has]]"],n["[[SetObject]]"],[h]));N||mG(a,h)});else{var o=Iye(n["[[SetObject]]"],n["[[Keys]]"]),u=[];pG(r,function(h){wye(u,h)});for(var l;!o["[[Done]]"];)if(l=_ye(o),!o["[[Done]]"]){l===0&&(l=0);for(var m=0;m{"use strict";d();p();f();var EE=$a()(),Pye=NG();TG.exports=function(){if(typeof EE.prototype.difference=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new EE([1]).difference(r),r.size=2147483648,new EE([1]).difference(r),!t)return EE.prototype.difference}return Pye}});var UD=O((K9e,gG)=>{"use strict";d();p();f();gG.exports=global});var kD=O((Y9e,IG)=>{"use strict";d();p();f();var Fye=UD();IG.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?Fye:global}});var _G=O((W9e,vG)=>{"use strict";d();p();f();var Lye=mn(),Cye=_o(),Bye=kD();vG.exports=function(){var t=Bye();if(Lye.supportsDescriptors){var r=Cye(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var qD=O((t5e,DG)=>{"use strict";d();p();f();var Uye=mn(),kye=UD(),SG=kD(),qye=_G(),xye=SG(),OG=function(){return xye};Uye(OG,{getPolyfill:SG,implementation:kye,shim:qye});DG.exports=OG});var Gm=O((a5e,bG)=>{"use strict";d();p();f();var Km=$n(),Fc=mn(),$m=$i(),Mye=Nf(),jye=qD()(),Vye=Ol(),xD=Pc(),Kye=$a(),Ul=vD(),$ye=YT().addIterator,Qa=function(){return!0},Gye=function(e){return Fc(jye,{Set:e},{Set:Qa}),e};bG.exports=function(){if(typeof Set=="function"&&(Ul.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,Fc(Set.prototype,{keys:Set.prototype.values},{keys:Qa})),Ul.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&Vye()){var t=Km(Set.prototype.size);Mye(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return t(this)}})}var r=Km(Set.prototype.entries),n=Km(Set.prototype.values);if(Fc(Set.prototype,{entries:function(){return xD(r(this))},values:function(){return xD(n(this))}},{entries:Qa,values:Qa}),typeof Set.prototype.forEach!="function"){var i=Km(Set.prototype.iterator);Fc(Set.prototype,{forEach:function(N){for(var T=xD(i(this)),D=arguments.length>1?arguments[1]:void 0,R=Km(N,D),C=T.next();!C.done;)R(C.value,C.value,this),C=T.next()}},{forEach:Qa})}}var a=typeof Set=="function"?Set:null;(typeof Set!="function"||!Ul.setCompliantConstructor())&&(a=Kye(),Gye(a));var o=a.prototype,u=o.add,l=o.has,m=o.delete;return Ul.setUsesSameValueZero()?Ul.setSupportsChaining()||Fc(a.prototype,{add:function(N){return $m(u,this,[N]),this}},{add:Qa}):Fc(a.prototype,{add:function(N){return $m(u,this,[N===0?0:N]),this},delete:function(N){return $m(m,this,[N===0?0:N])},has:function(N){return $m(l,this,[N===0?0:N])}},{add:Qa,delete:Qa,has:Qa}),Ul.setKeysIsValues()||Fc(a.prototype,{keys:a.prototype.values},{keys:Qa}),Ul.setHasCorrectName()||Fc(a.prototype,{has:function(N){return $m(l,this,N)}},{has:Qa}),Object.getPrototypeOf&&$ye(Object.getPrototypeOf(new a().values())),a}});var RG=O((c5e,AG)=>{"use strict";d();p();f();var Qye=EG(),Yye=mn(),Jye=Gm();AG.exports=function(){Jye();var t=Qye();return Yye(Set.prototype,{difference:t},{difference:function(){return Set.prototype.difference!==t}}),t}});var MD=O(()=>{"use strict";d();p();f();RG()()});var IE=O(gE=>{"use strict";d();p();f();var zye=vc()(),Hye=an(),Wye=MT(),Xye=KT(),Zye=Wt(),eNe=Nf(),tNe=_c(),wG=ca(),PG=Zye("%Object.create%",!0),rNe=!({__proto__:null}instanceof Object);gE.emptyObject=function(){return PG?PG(null):rNe?{__proto__:null}:{}};gE.emulateES6construct=function(e,t,r,n){if(wG(e)!=="Object")throw new TypeError("Constructor requires `new`: "+t.name);var i=t.prototype;wG(i)!=="Object"&&(i=r);var a=tNe(i);return Xye(Wye(n),function(o){var u=o[0],l=o[1];Hye.set(a,u,l)}),a};var Qm=zye&&typeof Symbol.iterator=="symbol"?Symbol.iterator:"_es6-shim iterator_";typeof[]["@@iterator"]=="function"&&(Qm="@@iterator");gE.addIterator=function(e,t){var r=t||function(){return this};eNe(e,Qm,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0}),!e[Qm]&&typeof Qm=="symbol"&&(e[Qm]=r)}});var CG=O((v5e,LG)=>{"use strict";d();p();f();var nNe=mn(),iNe=UT(),vE=an(),aNe=Wt(),oNe=_c(),sNe=IE().addIterator,Ym=function(t){vE.set(this,"[[isSetIterator]]",!0),vE.set(this,"[[it]]",t)},FG=aNe("%IteratorPrototype%",!0);FG&&(Ym.prototype=oNe(FG));sNe(Ym.prototype);nNe(Ym.prototype,{next:function(){if(!vE.has(this,"[[isSetIterator]]"))throw new TypeError("Not a SetIterator");return vE.get(this,"[[it]]").next()}});iNe(Ym.prototype,"Set Iterator");LG.exports=Ym});var VD=O(jD=>{"use strict";d();p();f();var uNe=an(),cNe=Dc(),lNe=ca(),BG=function(t){return uNe.has(t,"[[es6set]]")};jD.isSet=BG;jD.requireSetSlot=function(t,r){if(lNe(t)!=="Object"||!BG(t))throw new TypeError("Method Set.prototype."+r+" called on incompatible receiver "+cNe(t))}});var KD=O(kl=>{"use strict";d();p();f();var dNe=Wt(),fNe=Jr(),pNe=$n(),Jm=an(),kG=$i(),mNe=ZO(),hNe=mf(),yNe=ua(),NNe=Ef(),TNe=tE(),ENe=Dc(),qG=mD(),gNe=pNe(qG.prototype.forEach),UG=fNe("%String.prototype.slice%"),INe=dNe("%Number%"),vNe=VD().isSet,xG={};kl.SET_ITEM=xG;kl.fastkey=function(t){switch(typeof t){case"string":return"$"+t;case"null":case"undefined":case"boolean":return ENe(t);case"number":return"n"+t;default:return null}};var _Ne=function(t){return t==="null"?null:t==="undefined"?void 0:t==="true"?!0:t==="false"?!1:t[0]==="$"?UG(t,1):INe(UG(t,1))},MG=function(t,r){for(var n in t)t[n]===xG&&r(n)};kl.iterateStorage=MG;var jG=function(t){if(!Jm.get(t,"[[setData]]")){var r=new qG;MG(Jm.get(t,"[[storage]]"),function(n){var i=_Ne(n);r.set(i,i)}),Jm.set(t,"[[setData]]",r)}Jm.set(t,"[[storage]]",null)};kl.ensureSet=jG;var VG=function(t,r,n){jG(t),gNe(Jm.get(t,"[[setData]]"),function(i,a){typeof n=="undefined"?r(a,a,t):kG(r,n,[a,a,t])})};kl.forEach=VG;kl.addIterableToSet=function(t,r){if(hNe(r)||typeof r=="string")for(var n=0;n{"use strict";d();p();f();var GD=mn(),si=an(),KG=LO(),$G=CG(),Af=KD(),QD=IE(),Lc=VD().requireSetSlot,$D=Af.fastkey,SNe=Af.forEach,ONe=Af.addIterableToSet,GG=Af.SET_ITEM,bf=Af.ensureSet,DNe=Af.iterateStorage,QG=QD.emptyObject,bNe=QD.emulateES6construct,ANe=QD.addIterator,bs,YG=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');if(this&&si.has(this,"[[es6set]]"))throw new TypeError("Bad construction");var t=bNe(this,e,bs,{"[[es6set]]":!0,"[[setData]]":null,"[[storage]]":QG()});if(!si.has(t,"[[es6set]]"))throw new TypeError("bad set");return arguments.length>0&&ONe(t,arguments[0]),t};bs=YG.prototype;GD.supportsDescriptors&&Object.defineProperty(bs,"size",{configurable:!0,enumerable:!1,get:function(){Lc(this,"size");var e=si.get(this,"[[storage]]");if(e){var t=0;return DNe(e,function(){t+=1}),t}return bf(this),si.get(this,"[[setData]]").size}});GD(bs,{add:function(t){Lc(this,"has");var r,n=si.get(this,"[[storage]]");return n&&(r=$D(t))!==null?n[r]!==GG&&(n[r]=GG):(bf(this),si.get(this,"[[setData]]").set(t,t)),this},has:function(t){Lc(this,"has");var r,n=si.get(this,"[[storage]]");return n&&(r=$D(t))!==null?!!n[r]:(bf(this),si.get(this,"[[setData]]").has(t))},delete:function(e){Lc(this,"delete");var t,r=si.get(this,"[[storage]]");if(r&&(t=$D(e))!==null){var n=!!r[t];return n&&delete r[t],n}return bf(this),si.get(this,"[[setData]]").delete(e)},clear:function(){Lc(this,"clear");var t=si.get(this,"[[storage]]");t&&si.set(this,"[[storage]]",QG());var r=si.get(this,"[[setData]]");r&&r.clear()},values:function(){return Lc(this,"values"),bf(this),new $G(si.get(this,"[[setData]]").values())},entries:function(){return Lc(this,"entries"),bf(this),new $G(si.get(this,"[[setData]]").entries())},forEach:function(t){Lc(this,"forEach"),SNe(this,t,arguments.length>1?arguments[1]:void 0)}});GD(bs,{keys:bs.values});ANe(bs,bs.values);typeof Set=="function"&&KG&&KG(bs,Set.prototype);JG.exports=YG});var YD=O(Cc=>{"use strict";d();p();f();var RNe=ID(),wNe=function(e){return function(){try{return e()}catch(t){return!1}}};Cc.isGoogleTranslate=function(){return!!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys)};Cc.setUsesSameValueZero=function(){if(!Set.prototype.delete||!Set.prototype.add||!Set.prototype.has)return!1;var e=new Set([1,2,3,4]);return e.delete(0),e.add(-0),e.has(0)?(e=new Set([1,2,3,4]),e.delete(-0),e.add(0),e.has(-0)):!1};Cc.setSupportsChaining=function(){var e=new Set;return e.add(1)===e};var PNe=wNe(function(){if(!Object.setPrototypeOf)return!0;var e=function r(n){var i=new Set(n);return Object.setPrototypeOf(i,r.prototype),i};Object.setPrototypeOf(e,Set),Object.setPrototypeOf(e.prototype,Set.prototype);var t=new e([]);return t.add(1,2),t instanceof e}),FNe=function(){try{return!(Set()instanceof Set)}catch(e){return e instanceof TypeError}};Cc.setCompliantConstructor=function(){return Set.length===0&&PNe()&&FNe()};Cc.setKeysIsValues=function(){return Set.prototype.keys===Set.prototype.values};Cc.setHasCorrectName=function(){return RNe?Set.prototype.has.name==="has":!0};Cc.setHasOldFirefoxInterface=function(){return new Set().size!==0||typeof Set.prototype.values!="function"||typeof Set.prototype.forEach!="function"}});var zm=O((V5e,HG)=>{"use strict";d();p();f();var LNe=eO(),CNe=mn(),_E=an(),BNe=zG(),UNe=KD().addIterableToSet,Bc=YD(),Ya;HG.exports=function(){if(typeof Set=="function"&&!Bc.setCompliantConstructor()&&Bc.setUsesSameValueZero()){var t=Set;if(!Ya||!(t===Ya||_E.get(Ya,"[[OrigSet]]")===t)){var r=t.prototype;Ya=function(){if(!(this instanceof Ya))throw new TypeError('Constructor Set requires "new"');if(this&&_E.has(this,"[[SetCompliantConstructorShim]]"))throw new TypeError("Bad construction");var i=new t;return _E.set(i,"[[SetCompliantConstructorShim]]",!0),arguments.length>0&&UNe(i,arguments[0]),delete i.constructor,LNe(i,Ya.prototype),i},_E.set(Ya,"[[OrigSet]]",Set),Ya.prototype=r,CNe(Ya.prototype,{constructor:Ya},{constructor:function(){return!0}})}return Ya}return typeof Set!="function"||Bc.isGoogleTranslate()||Bc.setHasOldFirefoxInterface()||!Bc.setHasCorrectName()||!Bc.setKeysIsValues()||!Bc.setSupportsChaining()||!Bc.setUsesSameValueZero()?BNe:Set}});var JD=O((Q5e,WG)=>{"use strict";d();p();f();WG.exports=Sm()});var SE=O((H5e,XG)=>{"use strict";d();p();f();var kNe=Wt(),qNe=Jr(),xNe=ke(),MNe=JD(),jNe=kNe("%Reflect.apply%",!0)||qNe("Function.prototype.apply");XG.exports=function(t,r){var n=arguments.length>2?arguments[2]:[];if(!MNe(n))throw new xNe("Assertion failed: optional `argumentsList`, if provided, must be a List");return jNe(t,r,n)}});var Hm=O((eXe,e2)=>{"use strict";d();p();f();var ZG=ke(),VNe=Do(),KNe=Ll(),$Ne=Yr();e2.exports=function(t,r){if(!$Ne(t))throw new ZG("Assertion failed: Type(O) is not Object");if(!KNe(r))throw new ZG("Assertion failed: P is not a Property Key, got "+VNe(r));return t[r]}});var zD=O((iXe,t2)=>{"use strict";d();p();f();t2.exports=Om()});var i2=O((uXe,n2)=>{"use strict";d();p();f();var r2=ke(),GNe=Yr(),QNe=SE(),YNe=Hm(),JNe=zD();n2.exports=function(t,r){if(!JNe(r))throw new r2("method must be a function");var n=QNe(r,t);if(!GNe(n))throw new r2("iterator must return an object");var i=YNe(n,"next");return{"[[Iterator]]":n,"[[NextMethod]]":i,"[[Done]]":!1}}});var s2=O((fXe,o2)=>{"use strict";d();p();f();var a2=AD();o2.exports=function(t){return arguments.length>1?a2(t,arguments[1]):a2(t)}});var f2=O((yXe,d2)=>{"use strict";d();p();f();var l2=Wt(),zNe=l2("%RegExp%"),HNe=ke(),u2=l2("%parseInt%"),WNe=Jr(),OE=mE(),c2=WNe("String.prototype.slice"),XNe=OE(/^0b[01]+$/i),ZNe=OE(/^0o[0-7]+$/i),eTe=OE(/^[-+]0x[0-9a-f]+$/i),tTe=["\x85","\u200B","\uFFFE"].join(""),rTe=new zNe("["+tTe+"]","g"),nTe=OE(rTe),iTe=PD();d2.exports=function e(t){if(typeof t!="string")throw new HNe("Assertion failed: `argument` is not a String");if(XNe(t))return+u2(c2(t,2),2);if(ZNe(t))return+u2(c2(t,2),8);if(nTe(t)||eTe(t))return NaN;var r=iTe(t);return r!==t?e(r):+t}});var HD=O((gXe,m2)=>{"use strict";d();p();f();var aTe=Wt(),p2=ke(),oTe=aTe("%Number%"),sTe=nE(),uTe=s2(),cTe=f2();m2.exports=function(t){var r=sTe(t)?t:uTe(t,oTe);if(typeof r=="symbol")throw new p2("Cannot convert a Symbol value to a number");if(typeof r=="bigint")throw new p2("Conversion from 'BigInt' to 'number' is not allowed.");return typeof r=="string"?cTe(r):+r}});var y2=O((SXe,h2)=>{"use strict";d();p();f();var lTe=Nm();h2.exports=function(t){return typeof t=="bigint"?t:lTe(t)}});var E2=O((AXe,T2)=>{"use strict";d();p();f();var N2=y2(),dTe=ke();T2.exports=function(t){if(typeof t!="number"&&typeof t!="bigint")throw new dTe("argument must be a Number or a BigInt");var r=t<0?-N2(-t):N2(t);return r===0?0:r}});var I2=O((FXe,g2)=>{"use strict";d();p();f();var fTe=HD(),pTe=E2(),mTe=_s(),hTe=zT();g2.exports=function(t){var r=fTe(t);return mTe(r)||r===0?0:hTe(r)?pTe(r):r}});var S2=O((UXe,_2)=>{"use strict";d();p();f();var yTe=Pl(),DE=ke(),WD=Hm(),v2=zD(),NTe=I2(),TTe=HD(),ETe=Of(),gTe=Yr(),ITe=$n(),vTe=Ga(),_Te=Pc();_2.exports=function(t){if(!gTe(t))throw new DE("obj is not an Object");var r=WD(t,"size"),n=TTe(r);if(ETe(n))throw new DE("`size` is not a non-NaN Number");var i=NTe(n);if(i<0)throw new yTe("set size must be non-negative");var a=WD(t,"has");if(!v2(a))throw new DE("has is not a function");var o=WD(t,"keys");if(!v2(o))throw new DE("keys is not a function");if(vTe(t)&&typeof StopIteration=="object"){var u=ITe(o);o=function(){return _Te(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var XD=O((MXe,O2)=>{"use strict";d();p();f();O2.exports=function(t){return!!t}});var b2=O(($Xe,D2)=>{"use strict";d();p();f();var STe=ke(),OTe=Yr(),DTe=Hm(),bTe=XD();D2.exports=function(t){if(!OTe(t))throw new STe("Assertion failed: Type(iterResult) is not Object");return bTe(DTe(t,"done"))}});var P2=O((JXe,w2)=>{"use strict";d();p();f();var A2=ke(),ATe=Yr(),R2=SE(),RTe=Os();w2.exports=function(t){if(!RTe(t))throw new A2("Assertion failed: `iteratorRecord` must be an Iterator Record");var r;try{arguments.length<2?r=R2(t["[[NextMethod]]"],t["[[Iterator]]"]):r=R2(t["[[NextMethod]]"],t["[[Iterator]]"],[arguments[1]])}catch(n){throw t["[[Done]]"]=!0,n}if(!ATe(r))throw t["[[Done]]"]=!0,new A2("iterator next must return an object");return r}});var L2=O((XXe,F2)=>{"use strict";d();p();f();var wTe=ke(),PTe=b2(),FTe=P2(),LTe=Os();F2.exports=function(t){if(!LTe(t))throw new wTe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=FTe(t);try{var n=PTe(r)}catch(i){throw t["[[Done]]"]=!0,i}return n?(t["[[Done]]"]=!0,!1):r}});var B2=O((r7e,C2)=>{"use strict";d();p();f();var CTe=ke(),BTe=Yr(),UTe=Hm();C2.exports=function(t){if(!BTe(t))throw new CTe("Assertion failed: Type(iterResult) is not Object");return UTe(t,"value")}});var k2=O((o7e,U2)=>{"use strict";d();p();f();var kTe=ke(),qTe=L2(),xTe=B2(),MTe=Os();U2.exports=function(t){if(!MTe(t))throw new kTe("Assertion failed: `iteratorRecord` must be an Iterator Record");var r=qTe(t);if(!r||r==="DONE")return r;var n;try{n=xTe(r)}catch(i){throw t["[[Done]]"]=!0,i}return n}});var x2=O((l7e,q2)=>{"use strict";d();p();f();q2.exports=function(t){return t===0?0:t}});var V2=O((m7e,j2)=>{"use strict";d();p();f();var M2=_s();j2.exports=function(t,r){return t===r?t===0?1/t===1/r:!0:M2(t)&&M2(r)}});var $2=O((T7e,K2)=>{"use strict";d();p();f();K2.exports=function(t,r){for(var n=0;n{"use strict";d();p();f();var jTe=ke(),VTe=x2(),KTe=JD(),$Te=V2(),GTe=$2();G2.exports=function(t,r){if(!KTe(t)&&t!=="EMPTY")throw new jTe("Assertion failed: `setData` must be a List or ~EMPTY~");var n=VTe(r);return GTe(t,function(i){return $Te(i,n)})}});var rQ=O((D7e,tQ)=>{"use strict";d();p();f();var Rf=zm()(),Wm=$n(),Xm=Jr(),Y2=_o(),QTe=CD(),J2=Xm("Set.prototype.forEach",!0),YTe=Wm(Rf.prototype.forEach),eQ=function(e,t){if(J2)try{return J2(e,t)}catch(r){}try{return YTe(e,t)}catch(r){}QTe(e,t)},z2=Xm("Set.prototype.add",!0),JTe=Rf.prototype.add&&Wm(Rf.prototype.add),zTe=function(e,t){if(z2)try{return z2(e,t)}catch(r){}return JTe(e,t)},H2=Xm("Set.prototype.has",!0),HTe=Wm(Rf.prototype.has),WTe=function(e,t){if(H2)try{return H2(e,t)}catch(r){}return HTe(e,t)},W2=Xm("Set.prototype.delete",!0),XTe=Wm(Rf.prototype.delete),ZTe=function(e,t){if(W2)try{return W2(e,t)}catch(r){}return XTe(e,t)},X2=Xm("Set.prototype.size",!0),Z2=Y2?Wm(Y2(Rf.prototype,"size").get):null,eEe=function(t){var r=0;return eQ(t,function(){r+=1}),r},tEe=function(e){if(X2)try{return X2(e)}catch(t){}if(Z2)try{return Z2(e)}catch(t){}return eEe(e)};tQ.exports={add:zTe,delete:ZTe,forEach:eQ,has:WTe,size:tEe}});var oQ=O((w7e,aQ)=>{"use strict";d();p();f();var rEe=ke(),ZD=zm()(),nEe=SE(),iEe=i2(),aEe=S2(),oEe=k2(),nQ=Q2(),sEe=XD(),uEe=kT(),cEe=$n(),lEe=Rm(),dEe=Ga(),eb=rQ(),fEe=eb.forEach,pEe=eb.add,mEe=eb.size,iQ=lEe("Array.prototype.push"),hEe=cEe(ZD.prototype.has);aQ.exports=function(t){var r=this;if(!dEe(r)&&!(r instanceof ZD))throw new rEe("Method Set.prototype.intersection called on incompatible receiver "+r);var n=aEe(t),i=[],a=mEe(r);if(a<=n["[[Size]]"]){var o=0;fEe(r,function(T){if(o{"use strict";d();p();f();var bE=zm()(),yEe=oQ();sQ.exports=function(){if(typeof bE.prototype.intersection=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new bE([1]).intersection(r),r.size=2147483648,new bE([1]).intersection(r),!t)return bE.prototype.intersection}return yEe}});var lQ=O((q7e,cQ)=>{"use strict";d();p();f();var Zm=$n(),Uc=mn(),eh=$i(),NEe=Nf(),TEe=qD()(),EEe=Ol(),tb=Pc(),gEe=zm(),ql=YD(),IEe=IE().addIterator,Ja=function(){return!0},vEe=function(e){return Uc(TEe,{Set:e},{Set:Ja}),e};cQ.exports=function(){if(typeof Set=="function"&&(ql.isGoogleTranslate()&&(delete Set.prototype.remove,delete Set.prototype.items,delete Set.prototype.map,Uc(Set.prototype,{keys:Set.prototype.values},{keys:Ja})),ql.setHasOldFirefoxInterface())){if(typeof new Set().size=="function"&&EEe()){var t=Zm(Set.prototype.size);NEe(Set.prototype,"size",{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Get]]":function(){return t(this)}})}var r=Zm(Set.prototype.entries),n=Zm(Set.prototype.values);if(Uc(Set.prototype,{entries:function(){return tb(r(this))},values:function(){return tb(n(this))}},{entries:Ja,values:Ja}),typeof Set.prototype.forEach!="function"){var i=Zm(Set.prototype.iterator);Uc(Set.prototype,{forEach:function(N){for(var T=tb(i(this)),D=arguments.length>1?arguments[1]:void 0,R=Zm(N,D),C=T.next();!C.done;)R(C.value,C.value,this),C=T.next()}},{forEach:Ja})}}var a=typeof Set=="function"?Set:null;(typeof Set!="function"||!ql.setCompliantConstructor())&&(a=gEe(),vEe(a));var o=a.prototype,u=o.add,l=o.has,m=o.delete;return ql.setUsesSameValueZero()?ql.setSupportsChaining()||Uc(a.prototype,{add:function(N){return eh(u,this,[N]),this}},{add:Ja}):Uc(a.prototype,{add:function(N){return eh(u,this,[N===0?0:N]),this},delete:function(N){return eh(m,this,[N===0?0:N])},has:function(N){return eh(l,this,[N===0?0:N])}},{add:Ja,delete:Ja,has:Ja}),ql.setKeysIsValues()||Uc(a.prototype,{keys:a.prototype.values},{keys:Ja}),ql.setHasCorrectName()||Uc(a.prototype,{has:function(N){return eh(l,this,N)}},{has:Ja}),Object.getPrototypeOf&&IEe(Object.getPrototypeOf(new a().values())),a}});var fQ=O((V7e,dQ)=>{"use strict";d();p();f();var _Ee=uQ(),SEe=mn(),OEe=lQ();dQ.exports=function(){OEe();var t=_Ee();return SEe(Set.prototype,{intersection:t},{intersection:function(){return Set.prototype.intersection!==t}}),t}});var rb=O(()=>{"use strict";d();p();f();fQ()()});var hQ=O((W7e,mQ)=>{"use strict";d();p();f();var DEe=Pl(),AE=ke(),nb=Ao(),pQ=ua(),bEe=qm(),AEe=Sf(),REe=ca(),wEe=Of(),PEe=$n(),FEe=Ga(),LEe=Pc();mQ.exports=function(t){if(REe(t)!=="Object")throw new AE("obj is not an Object");var r=nb(t,"size"),n=AEe(r);if(wEe(n))throw new AE("size is not a non-NaN Number");var i=bEe(n);if(i<0)throw new DEe("set size must be non-negative");var a=nb(t,"has");if(!pQ(a))throw new AE("has is not a function");var o=nb(t,"keys");if(!pQ(o))throw new AE("keys is not a function");if(FEe(t)&&typeof StopIteration=="object"){var u=PEe(o);o=function(){return LEe(u(this))}}return{"[[SetObject]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var ib=O((tZe,yQ)=>{"use strict";d();p();f();var CEe=eD();yQ.exports=function(t){return new CEe("normal",t)}});var EQ=O((aZe,TQ)=>{"use strict";d();p();f();var BEe=ke(),UEe=$a()(),kEe=$i(),qEe=wm(),xEe=hQ(),MEe=Ef(),jEe=TE(),VEe=ib(),KEe=yf(),$Ee=Ga(),ab=Vm(),GEe=ab.forEach,QEe=ab.has,NQ=ab.size;TQ.exports=function(t){var r=this;if(!$Ee(r)&&!(r instanceof UEe))throw new BEe("Method Set.prototype.isDisjointFrom called on incompatible receiver "+r);var n=xEe(t),i=NQ(r);if(i<=n["[[Size]]"])try{GEe(r,function(u){var l=0;if(l{"use strict";d();p();f();var RE=$a()(),YEe=EQ();gQ.exports=function(){if(typeof RE.prototype.isDisjointFrom=="function"){var t=!1,r={size:1/0,has:function(){},keys:function(){return t=!0,[].values()}};if(new RE([1]).isDisjointFrom(r),r.size=2147483648,new RE([1]).isDisjointFrom(r),!t)return RE.prototype.isDisjointFrom}return YEe}});var _Q=O((pZe,vQ)=>{"use strict";d();p();f();var JEe=IQ(),zEe=mn(),HEe=Gm();vQ.exports=function(){HEe();var t=JEe();return zEe(Set.prototype,{isDisjointFrom:t},{isDisjointFrom:function(){return Set.prototype.isDisjointFrom!==t}}),t}});var ob=O(()=>{"use strict";d();p();f();_Q()()});var DQ=O((vZe,OQ)=>{"use strict";d();p();f();var WEe=Pl(),wE=ke(),sb=Ao(),SQ=ua(),XEe=qm(),ZEe=Sf(),ege=ca(),tge=Of(),rge=$n(),nge=Ga(),ige=Pc();OQ.exports=function(t){if(ege(t)!=="Object")throw new wE("obj is not an Object");var r=sb(t,"size"),n=ZEe(r);if(tge(n))throw new wE("size is not a non-NaN Number");var i=XEe(n);if(i<0)throw new WEe("set size must be non-negative");var a=sb(t,"has");if(!SQ(a))throw new wE("has is not a function");var o=sb(t,"keys");if(!SQ(o))throw new wE("keys is not a function");if(nge(t)&&typeof StopIteration=="object"){var u=rge(o);o=function(){return ige(u(this))}}return{"[[Set]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var wQ=O((DZe,RQ)=>{"use strict";d();p();f();var age=ke(),oge=$a()(),sge=$i(),uge=DQ(),cge=yf(),lge=Ga(),AQ=Vm(),dge=AQ.forEach,bQ=AQ.size;RQ.exports=function(t){var r=this;if(!lge(r)&&!(r instanceof oge))throw new age("Method Set.prototype.isSubsetOf called on incompatible receiver "+r);var n=uge(t),i=bQ(r);if(i>n["[[Size]]"])return!1;try{var a=0;dge(r,function(o){if(a{"use strict";d();p();f();var PQ=$a()(),fge=wQ();FQ.exports=function(){return typeof PQ.prototype.isSubsetOf=="function"?PQ.prototype.isSubsetOf:fge}});var BQ=O((CZe,CQ)=>{"use strict";d();p();f();var pge=LQ(),mge=mn(),hge=Gm();CQ.exports=function(){hge();var t=pge();return mge(Set.prototype,{isSubsetOf:t},{isSubsetOf:function(){return Set.prototype.isSubsetOf!==t}}),t}});var ub=O(()=>{"use strict";d();p();f();BQ()()});var qQ=O((KZe,kQ)=>{"use strict";d();p();f();var yge=Pl(),PE=ke(),cb=Ao(),UQ=ua(),Nge=qm(),Tge=Sf(),Ege=ca(),gge=Of(),Ige=$n(),vge=Ga(),_ge=Pc();kQ.exports=function(t){if(Ege(t)!=="Object")throw new PE("obj is not an Object");var r=cb(t,"size"),n=Tge(r);if(gge(n))throw new PE("size is not a non-NaN Number");var i=Nge(n);if(i<0)throw new yge("set size must be non-negative");var a=cb(t,"has");if(!UQ(a))throw new PE("has is not a function");var o=cb(t,"keys");if(!UQ(o))throw new PE("keys is not a function");if(vge(t)&&typeof StopIteration=="object"){var u=Ige(o);o=function(){return _ge(u(this))}}return{"[[Set]]":t,"[[Size]]":i,"[[Has]]":a,"[[Keys]]":o}}});var jQ=O((YZe,MQ)=>{"use strict";d();p();f();var Sge=ke(),Oge=$a()(),Dge=wm(),bge=qQ(),Age=Ef(),Rge=TE(),wge=ib(),Pge=Ga(),xQ=Vm(),Fge=xQ.has,Lge=xQ.size;MQ.exports=function(t){var r=this;if(!Pge(r)&&!(r instanceof Oge))throw new Sge("Method Set.prototype.isSupersetOf called on incompatible receiver "+r);var n=bge(t),i=Lge(r);if(i{"use strict";d();p();f();var VQ=$a()(),Cge=jQ();KQ.exports=function(){return typeof VQ.prototype.isSupersetOf=="function"?VQ.prototype.isSupersetOf:Cge}});var QQ=O((tet,GQ)=>{"use strict";d();p();f();var Bge=$Q(),Uge=mn(),kge=Gm();GQ.exports=function(){kge();var t=Bge();return Uge(Set.prototype,{isSupersetOf:t},{isSupersetOf:function(){return Set.prototype.isSupersetOf!==t}}),t}});var lb=O(()=>{"use strict";d();p();f();QQ()()});var YQ=O(wf=>{"use strict";d();p();f();Object.defineProperty(wf,"__esModule",{value:!0});wf.versionInfo=wf.version=void 0;var qge="16.9.0";wf.version=qge;var xge=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});wf.versionInfo=xge});var ui=O(db=>{"use strict";d();p();f();Object.defineProperty(db,"__esModule",{value:!0});db.devAssert=Mge;function Mge(e,t){if(!!!e)throw new Error(t)}});var FE=O(fb=>{"use strict";d();p();f();Object.defineProperty(fb,"__esModule",{value:!0});fb.isPromise=jge;function jge(e){return typeof(e==null?void 0:e.then)=="function"}});var wo=O(pb=>{"use strict";d();p();f();Object.defineProperty(pb,"__esModule",{value:!0});pb.isObjectLike=Vge;function Vge(e){return typeof e=="object"&&e!==null}});var Zn=O(mb=>{"use strict";d();p();f();Object.defineProperty(mb,"__esModule",{value:!0});mb.invariant=Kge;function Kge(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var LE=O(hb=>{"use strict";d();p();f();Object.defineProperty(hb,"__esModule",{value:!0});hb.getLocation=Qge;var $ge=Zn(),Gge=/\r\n|[\n\r]/g;function Qge(e,t){let r=0,n=1;for(let i of e.body.matchAll(Gge)){if(typeof i.index=="number"||(0,$ge.invariant)(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}});var yb=O(CE=>{"use strict";d();p();f();Object.defineProperty(CE,"__esModule",{value:!0});CE.printLocation=Jge;CE.printSourceLocation=zQ;var Yge=LE();function Jge(e){return zQ(e.source,(0,Yge.getLocation)(e.source,e.start))}function zQ(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,u=t.line===1?r:0,l=t.column+u,m=`${e.name}:${o}:${l} @@ -40,7 +40,7 @@ class URL { `),N+=r,(h||m)&&(N+=` `),'"""'+N+'"""'}});var oh=O(ah=>{"use strict";d();p();f();Object.defineProperty(ah,"__esModule",{value:!0});ah.TokenKind=void 0;var Db;ah.TokenKind=Db;(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"})(Db||(ah.TokenKind=Db={}))});var qE=O(uh=>{"use strict";d();p();f();Object.defineProperty(uh,"__esModule",{value:!0});uh.Lexer=void 0;uh.isPunctuatorTokenKind=dIe;var za=BE(),rY=Po(),lIe=ih(),Ml=UE(),wt=oh(),Ab=class{constructor(t){let r=new rY.Token(wt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,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!==wt.TokenKind.EOF)do if(t.next)t=t.next;else{let r=fIe(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===wt.TokenKind.COMMENT);return t}};uh.Lexer=Ab;function dIe(e){return e===wt.TokenKind.BANG||e===wt.TokenKind.DOLLAR||e===wt.TokenKind.AMP||e===wt.TokenKind.PAREN_L||e===wt.TokenKind.PAREN_R||e===wt.TokenKind.SPREAD||e===wt.TokenKind.COLON||e===wt.TokenKind.EQUALS||e===wt.TokenKind.AT||e===wt.TokenKind.BRACKET_L||e===wt.TokenKind.BRACKET_R||e===wt.TokenKind.BRACE_L||e===wt.TokenKind.PIPE||e===wt.TokenKind.BRACE_R}function Lf(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function kE(e,t){return nY(e.charCodeAt(t))&&iY(e.charCodeAt(t+1))}function nY(e){return e>=55296&&e<=56319}function iY(e){return e>=56320&&e<=57343}function jl(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return wt.TokenKind.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function hn(e,t,r,n,i){let a=e.line,o=1+r-e.lineStart;return new rY.Token(t,r,n,a,o,i)}function fIe(e,t){let r=e.source.body,n=r.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function TIe(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,za.syntaxError)(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function EIe(e,t){let r=e.source.body,n=r.length,i=e.lineStart,a=t+3,o=a,u="",l=[];for(;a{"use strict";d();p();f();Object.defineProperty(Rb,"__esModule",{value:!0});Rb.inspect=vIe;var IIe=10,aY=2;function vIe(e){return xE(e,[])}function xE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return _Ie(e,t);default:return String(e)}}function _Ie(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(SIe(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:xE(n,r)}else if(Array.isArray(e))return DIe(e,r);return OIe(e,r)}function SIe(e){return typeof e.toJSON=="function"}function OIe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>aY?"["+bIe(e)+"]":"{ "+r.map(([i,a])=>i+": "+xE(a,t)).join(", ")+" }"}function DIe(e,t){if(e.length===0)return"[]";if(t.length>aY)return"[Array]";let r=Math.min(IIe,e.length),n=e.length-r,i=[];for(let a=0;a1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function bIe(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var ch=O(ME=>{"use strict";d();p();f();Object.defineProperty(ME,"__esModule",{value:!0});ME.instanceOf=void 0;var AIe=ur(),RIe=globalThis.process&&E.env.NODE_ENV==="production",wIe=RIe?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let i=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===a){let o=(0,AIe.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`));return e.line+=l.length-1,e.lineStart=i,h}if(m===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){u+=r.slice(o,a),o=a+1,a+=4;continue}if(m===10||m===13){u+=r.slice(o,a),l.push(u),m===13&&r.charCodeAt(a+1)===10?a+=2:++a,u="",o=a,i=a;continue}if(Lf(m))++a;else if(kE(r,a))a+=2;else throw(0,za.syntaxError)(e.source,a,`Invalid character within String: ${jl(e,a)}.`)}throw(0,za.syntaxError)(e.source,a,"Unterminated string.")}function gIe(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i{"use strict";d();p();f();Object.defineProperty(Rb,"__esModule",{value:!0});Rb.inspect=vIe;var IIe=10,aY=2;function vIe(e){return xE(e,[])}function xE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return _Ie(e,t);default:return String(e)}}function _Ie(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(SIe(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:xE(n,r)}else if(Array.isArray(e))return DIe(e,r);return OIe(e,r)}function SIe(e){return typeof e.toJSON=="function"}function OIe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>aY?"["+bIe(e)+"]":"{ "+r.map(([i,a])=>i+": "+xE(a,t)).join(", ")+" }"}function DIe(e,t){if(e.length===0)return"[]";if(t.length>aY)return"[Array]";let r=Math.min(IIe,e.length),n=e.length-r,i=[];for(let a=0;a1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function bIe(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var ch=O(ME=>{"use strict";d();p();f();Object.defineProperty(ME,"__esModule",{value:!0});ME.instanceOf=void 0;var AIe=cr(),RIe=globalThis.process&&E.env.NODE_ENV==="production",wIe=RIe?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;let i=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(i===a){let o=(0,AIe.inspect)(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 @@ -51,7 +51,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};ME.instanceOf=wIe});var VE=O(lh=>{"use strict";d();p();f();Object.defineProperty(lh,"__esModule",{value:!0});lh.Source=void 0;lh.isSource=LIe;var wb=ui(),PIe=ur(),FIe=ch(),jE=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,wb.devAssert)(!1,`Body must be a string. Received: ${(0,PIe.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,wb.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,wb.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};lh.Source=jE;function LIe(e){return(0,FIe.instanceOf)(e,jE)}});var Cf=O(kc=>{"use strict";d();p();f();Object.defineProperty(kc,"__esModule",{value:!0});kc.Parser=void 0;kc.parse=BIe;kc.parseConstValue=kIe;kc.parseType=qIe;kc.parseValue=UIe;var Vl=BE(),dh=Po(),CIe=Ff(),mt=jt(),sY=qE(),oY=VE(),Oe=oh();function BIe(e,t){return new Kl(e,t).parseDocument()}function UIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(Oe.TokenKind.EOF),n}function kIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(Oe.TokenKind.EOF),n}function qIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(Oe.TokenKind.EOF),n}var Kl=class{constructor(t,r={}){let n=(0,oY.isSource)(t)?t:new oY.Source(t);this._lexer=new sY.Lexer(n),this._options=r,this._tokenCounter=0}parseName(){let t=this.expectToken(Oe.TokenKind.NAME);return this.node(t,{kind:mt.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:mt.Kind.DOCUMENT,definitions:this.many(Oe.TokenKind.SOF,this.parseDefinition,Oe.TokenKind.EOF)})}parseDefinition(){if(this.peek(Oe.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===Oe.TokenKind.NAME){switch(r.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,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Oe.TokenKind.BRACE_L))return this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:dh.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType(),n;return this.peek(Oe.TokenKind.NAME)&&(n=this.parseName()),this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Oe.TokenKind.NAME);switch(t.value){case"query":return dh.OperationTypeNode.QUERY;case"mutation":return dh.OperationTypeNode.MUTATION;case"subscription":return dh.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseVariableDefinition,Oe.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:mt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Oe.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Oe.TokenKind.DOLLAR),this.node(t,{kind:mt.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:mt.Kind.SELECTION_SET,selections:this.many(Oe.TokenKind.BRACE_L,this.parseSelection,Oe.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Oe.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,i;return this.expectOptionalToken(Oe.TokenKind.COLON)?(n=r,i=this.parseName()):i=r,this.node(t,{kind:mt.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Oe.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Oe.TokenKind.PAREN_L,r,Oe.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Oe.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(Oe.TokenKind.NAME)?this.node(t,{kind:mt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:mt.Kind.INLINE_FRAGMENT,typeCondition:r?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:mt.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:mt.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 r=this._lexer.token;switch(r.kind){case Oe.TokenKind.BRACKET_L:return this.parseList(t);case Oe.TokenKind.BRACE_L:return this.parseObject(t);case Oe.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.INT,value:r.value});case Oe.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.FLOAT,value:r.value});case Oe.TokenKind.STRING:case Oe.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Oe.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:mt.Kind.NULL});default:return this.node(r,{kind:mt.Kind.ENUM,value:r.value})}case Oe.TokenKind.DOLLAR:if(t)if(this.expectToken(Oe.TokenKind.DOLLAR),this._lexer.token.kind===Oe.TokenKind.NAME){let n=this._lexer.token.value;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);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:mt.Kind.STRING,value:t.value,block:t.kind===Oe.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:mt.Kind.LIST,values:this.any(Oe.TokenKind.BRACKET_L,r,Oe.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:mt.Kind.OBJECT,fields:this.any(Oe.TokenKind.BRACE_L,r,Oe.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(Oe.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(Oe.TokenKind.AT),this.node(r,{kind:mt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(Oe.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(Oe.TokenKind.BRACKET_R),r=this.node(t,{kind:mt.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(Oe.TokenKind.BANG)?this.node(t,{kind:mt.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:mt.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Oe.TokenKind.STRING)||this.peek(Oe.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);return this.node(t,{kind:mt.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(Oe.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:mt.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Oe.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseFieldDefinition,Oe.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Oe.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseInputValueDef,Oe.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(Oe.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Oe.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:mt.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.delimitedMany(Oe.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:mt.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseEnumValueDefinition,Oe.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,`${KE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseInputValueDef,Oe.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Oe.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 r=this.parseConstDirectives(),n=this.optionalMany(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Oe.TokenKind.AT);let n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:mt.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Oe.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(CIe.DirectiveLocation,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new dh.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected ${uY(t)}, found ${KE(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===Oe.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${KE(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===Oe.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t!=null?t:this._lexer.token;return(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected ${KE(r)}.`)}any(t,r,n){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(t,r,n){this.expectToken(t);let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(t!==void 0&&r.kind!==Oe.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};kc.Parser=Kl;function KE(e){let t=e.value;return uY(e.kind)+(t!=null?` "${t}"`:"")}function uY(e){return(0,sY.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var qc=O(Pb=>{"use strict";d();p();f();Object.defineProperty(Pb,"__esModule",{value:!0});Pb.didYouMean=MIe;var xIe=5;function MIe(e,t){let[r,n]=t?[e,t]:[void 0,e],i=" Did you mean ";r&&(i+=r+" ");let a=n.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,xIe),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var cY=O(Fb=>{"use strict";d();p();f();Object.defineProperty(Fb,"__esModule",{value:!0});Fb.identityFunc=jIe;function jIe(e){return e}});var xc=O(Lb=>{"use strict";d();p();f();Object.defineProperty(Lb,"__esModule",{value:!0});Lb.keyMap=VIe;function VIe(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var fh=O(Cb=>{"use strict";d();p();f();Object.defineProperty(Cb,"__esModule",{value:!0});Cb.keyValMap=KIe;function KIe(e,t,r){let n=Object.create(null);for(let i of e)n[t(i)]=r(i);return n}});var Ub=O(Bb=>{"use strict";d();p();f();Object.defineProperty(Bb,"__esModule",{value:!0});Bb.mapValue=$Ie;function $Ie(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var ph=O(qb=>{"use strict";d();p();f();Object.defineProperty(qb,"__esModule",{value:!0});qb.naturalCompare=GIe;function GIe(e,t){let r=0,n=0;for(;r0);let u=0;do++n,u=u*10+a-kb,a=t.charCodeAt(n);while($E(a)&&u>0);if(ou)return 1}else{if(ia)return 1;++r,++n}}return e.length-t.length}var kb=48,QIe=57;function $E(e){return!isNaN(e)&&kb<=e&&e<=QIe}});var Mc=O(Mb=>{"use strict";d();p();f();Object.defineProperty(Mb,"__esModule",{value:!0});Mb.suggestionList=JIe;var YIe=ph();function JIe(e,t){let r=Object.create(null),n=new xb(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=n.measure(a,i);o!==void 0&&(r[a]=o)}return Object.keys(r).sort((a,o)=>{let u=r[a]-r[o];return u!==0?u:(0,YIe.naturalCompare)(a,o)})}var xb=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=lY(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,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let i=lY(n),a=this._inputArray;if(i.lengthr)return;let l=this._rows;for(let h=0;h<=u;h++)l[0][h]=h;for(let h=1;h<=o;h++){let N=l[(h-1)%3],T=l[h%3],D=T[0]=h;for(let R=1;R<=u;R++){let C=i[h-1]===a[R-1]?0:1,M=Math.min(N[R]+1,T[R-1]+1,N[R-1]+C);if(h>1&&R>1&&i[h-1]===a[R-2]&&i[h-2]===a[R-1]){let Y=l[(h-2)%3][R-2];M=Math.min(M,Y+1)}Mr)return}let m=l[o%3][u];return m<=r?m:void 0}};function lY(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";d();p();f();Object.defineProperty(jb,"__esModule",{value:!0});jb.toObjMap=zIe;function zIe(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var dY=O(Vb=>{"use strict";d();p();f();Object.defineProperty(Vb,"__esModule",{value:!0});Vb.printString=HIe;function HIe(e){return`"${e.replace(WIe,XIe)}"`}var WIe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function XIe(e){return ZIe[e.charCodeAt(0)]}var ZIe=["\\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 $l=O(jc=>{"use strict";d();p();f();Object.defineProperty(jc,"__esModule",{value:!0});jc.BREAK=void 0;jc.getEnterLeaveForKind=QE;jc.getVisitFn=ive;jc.visit=rve;jc.visitInParallel=nve;var eve=ui(),tve=ur(),Kb=Po(),fY=jt(),Bf=Object.freeze({});jc.BREAK=Bf;function rve(e,t,r=Kb.QueryDocumentKeys){let n=new Map;for(let Y of Object.values(fY.Kind))n.set(Y,QE(t,Y));let i,a=Array.isArray(e),o=[e],u=-1,l=[],m=e,h,N,T=[],D=[];do{u++;let Y=u===o.length,ee=Y&&l.length!==0;if(Y){if(h=D.length===0?void 0:T[T.length-1],m=N,N=D.pop(),ee)if(a){m=m.slice();let Ne=0;for(let[_e,Le]of l){let Ve=_e-Ne;Le===null?(m.splice(Ve,1),Ne++):m[Ve]=Le}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(let[Ne,_e]of l)m[Ne]=_e}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(N){if(h=a?u:o[u],m=N[h],m==null)continue;T.push(h)}let ae;if(!Array.isArray(m)){var R,C;(0,Kb.isNode)(m)||(0,eve.devAssert)(!1,`Invalid AST Node: ${(0,tve.inspect)(m)}.`);let Ne=Y?(R=n.get(m.kind))===null||R===void 0?void 0:R.leave:(C=n.get(m.kind))===null||C===void 0?void 0:C.enter;if(ae=Ne==null?void 0:Ne.call(t,m,h,N,T,D),ae===Bf)break;if(ae===!1){if(!Y){T.pop();continue}}else if(ae!==void 0&&(l.push([h,ae]),!Y))if((0,Kb.isNode)(ae))m=ae;else{T.pop();continue}}if(ae===void 0&&ee&&l.push([h,m]),Y)T.pop();else{var M;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(m),o=a?m:(M=r[m.kind])!==null&&M!==void 0?M:[],u=-1,l=[],N&&D.push(N),N=m}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function nve(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(fY.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";d();p();f();Object.defineProperty($b,"__esModule",{value:!0});$b.print=uve;var ave=ih(),ove=dY(),sve=$l();function uve(e){return(0,sve.visit)(e,lve)}var cve=80,lve={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` +spurious results.`)}}return!1};ME.instanceOf=wIe});var VE=O(lh=>{"use strict";d();p();f();Object.defineProperty(lh,"__esModule",{value:!0});lh.Source=void 0;lh.isSource=LIe;var wb=ui(),PIe=cr(),FIe=ch(),jE=class{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||(0,wb.devAssert)(!1,`Body must be a string. Received: ${(0,PIe.inspect)(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,wb.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,wb.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};lh.Source=jE;function LIe(e){return(0,FIe.instanceOf)(e,jE)}});var Cf=O(kc=>{"use strict";d();p();f();Object.defineProperty(kc,"__esModule",{value:!0});kc.Parser=void 0;kc.parse=BIe;kc.parseConstValue=kIe;kc.parseType=qIe;kc.parseValue=UIe;var Vl=BE(),dh=Po(),CIe=Ff(),mt=jt(),sY=qE(),oY=VE(),Oe=oh();function BIe(e,t){return new Kl(e,t).parseDocument()}function UIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(Oe.TokenKind.EOF),n}function kIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseConstValueLiteral();return r.expectToken(Oe.TokenKind.EOF),n}function qIe(e,t){let r=new Kl(e,t);r.expectToken(Oe.TokenKind.SOF);let n=r.parseTypeReference();return r.expectToken(Oe.TokenKind.EOF),n}var Kl=class{constructor(t,r={}){let n=(0,oY.isSource)(t)?t:new oY.Source(t);this._lexer=new sY.Lexer(n),this._options=r,this._tokenCounter=0}parseName(){let t=this.expectToken(Oe.TokenKind.NAME);return this.node(t,{kind:mt.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:mt.Kind.DOCUMENT,definitions:this.many(Oe.TokenKind.SOF,this.parseDefinition,Oe.TokenKind.EOF)})}parseDefinition(){if(this.peek(Oe.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===Oe.TokenKind.NAME){switch(r.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,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Oe.TokenKind.BRACE_L))return this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:dh.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType(),n;return this.peek(Oe.TokenKind.NAME)&&(n=this.parseName()),this.node(t,{kind:mt.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Oe.TokenKind.NAME);switch(t.value){case"query":return dh.OperationTypeNode.QUERY;case"mutation":return dh.OperationTypeNode.MUTATION;case"subscription":return dh.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseVariableDefinition,Oe.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:mt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Oe.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Oe.TokenKind.DOLLAR),this.node(t,{kind:mt.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:mt.Kind.SELECTION_SET,selections:this.many(Oe.TokenKind.BRACE_L,this.parseSelection,Oe.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Oe.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,r=this.parseName(),n,i;return this.expectOptionalToken(Oe.TokenKind.COLON)?(n=r,i=this.parseName()):i=r,this.node(t,{kind:mt.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Oe.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Oe.TokenKind.PAREN_L,r,Oe.TokenKind.PAREN_R)}parseArgument(t=!1){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Oe.TokenKind.SPREAD);let r=this.expectOptionalKeyword("on");return!r&&this.peek(Oe.TokenKind.NAME)?this.node(t,{kind:mt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:mt.Kind.INLINE_FRAGMENT,typeCondition:r?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:mt.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:mt.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 r=this._lexer.token;switch(r.kind){case Oe.TokenKind.BRACKET_L:return this.parseList(t);case Oe.TokenKind.BRACE_L:return this.parseObject(t);case Oe.TokenKind.INT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.INT,value:r.value});case Oe.TokenKind.FLOAT:return this.advanceLexer(),this.node(r,{kind:mt.Kind.FLOAT,value:r.value});case Oe.TokenKind.STRING:case Oe.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Oe.TokenKind.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!0});case"false":return this.node(r,{kind:mt.Kind.BOOLEAN,value:!1});case"null":return this.node(r,{kind:mt.Kind.NULL});default:return this.node(r,{kind:mt.Kind.ENUM,value:r.value})}case Oe.TokenKind.DOLLAR:if(t)if(this.expectToken(Oe.TokenKind.DOLLAR),this._lexer.token.kind===Oe.TokenKind.NAME){let n=this._lexer.token.value;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);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:mt.Kind.STRING,value:t.value,block:t.kind===Oe.TokenKind.BLOCK_STRING})}parseList(t){let r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:mt.Kind.LIST,values:this.any(Oe.TokenKind.BRACKET_L,r,Oe.TokenKind.BRACKET_R)})}parseObject(t){let r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:mt.Kind.OBJECT,fields:this.any(Oe.TokenKind.BRACE_L,r,Oe.TokenKind.BRACE_R)})}parseObjectField(t){let r=this._lexer.token,n=this.parseName();return this.expectToken(Oe.TokenKind.COLON),this.node(r,{kind:mt.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){let r=[];for(;this.peek(Oe.TokenKind.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let r=this._lexer.token;return this.expectToken(Oe.TokenKind.AT),this.node(r,{kind:mt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,r;if(this.expectOptionalToken(Oe.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(Oe.TokenKind.BRACKET_R),r=this.node(t,{kind:mt.Kind.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(Oe.TokenKind.BANG)?this.node(t,{kind:mt.Kind.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:mt.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Oe.TokenKind.STRING)||this.peek(Oe.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);return this.node(t,{kind:mt.Kind.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,r=this.parseOperationType();this.expectToken(Oe.TokenKind.COLON);let n=this.parseNamedType();return this.node(t,{kind:mt.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Oe.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseFieldDefinition,Oe.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Oe.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Oe.TokenKind.PAREN_L,this.parseInputValueDef,Oe.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(Oe.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Oe.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:mt.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Oe.TokenKind.EQUALS)?this.delimitedMany(Oe.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:mt.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseEnumValueDefinition,Oe.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:mt.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Vl.syntaxError)(this._lexer.source,this._lexer.token.start,`${KE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Oe.TokenKind.BRACE_L,this.parseInputValueDef,Oe.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Oe.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 r=this.parseConstDirectives(),n=this.optionalMany(Oe.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Oe.TokenKind.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:mt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Oe.TokenKind.AT);let n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:mt.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Oe.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(CIe.DirectiveLocation,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new dh.Location(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){let r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected ${uY(t)}, found ${KE(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let r=this._lexer.token;if(r.kind===Oe.TokenKind.NAME&&r.value===t)this.advanceLexer();else throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Expected "${t}", found ${KE(r)}.`)}expectOptionalKeyword(t){let r=this._lexer.token;return r.kind===Oe.TokenKind.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let r=t!=null?t:this._lexer.token;return(0,Vl.syntaxError)(this._lexer.source,r.start,`Unexpected ${KE(r)}.`)}any(t,r,n){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(t,r,n){if(this.expectOptionalToken(t)){let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(t,r,n){this.expectToken(t);let i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(t,r){this.expectOptionalToken(t);let n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){let{maxTokens:t}=this._options,r=this._lexer.advance();if(t!==void 0&&r.kind!==Oe.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,Vl.syntaxError)(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};kc.Parser=Kl;function KE(e){let t=e.value;return uY(e.kind)+(t!=null?` "${t}"`:"")}function uY(e){return(0,sY.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var qc=O(Pb=>{"use strict";d();p();f();Object.defineProperty(Pb,"__esModule",{value:!0});Pb.didYouMean=MIe;var xIe=5;function MIe(e,t){let[r,n]=t?[e,t]:[void 0,e],i=" Did you mean ";r&&(i+=r+" ");let a=n.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,xIe),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var cY=O(Fb=>{"use strict";d();p();f();Object.defineProperty(Fb,"__esModule",{value:!0});Fb.identityFunc=jIe;function jIe(e){return e}});var xc=O(Lb=>{"use strict";d();p();f();Object.defineProperty(Lb,"__esModule",{value:!0});Lb.keyMap=VIe;function VIe(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}});var fh=O(Cb=>{"use strict";d();p();f();Object.defineProperty(Cb,"__esModule",{value:!0});Cb.keyValMap=KIe;function KIe(e,t,r){let n=Object.create(null);for(let i of e)n[t(i)]=r(i);return n}});var Ub=O(Bb=>{"use strict";d();p();f();Object.defineProperty(Bb,"__esModule",{value:!0});Bb.mapValue=$Ie;function $Ie(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}});var ph=O(qb=>{"use strict";d();p();f();Object.defineProperty(qb,"__esModule",{value:!0});qb.naturalCompare=GIe;function GIe(e,t){let r=0,n=0;for(;r0);let u=0;do++n,u=u*10+a-kb,a=t.charCodeAt(n);while($E(a)&&u>0);if(ou)return 1}else{if(ia)return 1;++r,++n}}return e.length-t.length}var kb=48,QIe=57;function $E(e){return!isNaN(e)&&kb<=e&&e<=QIe}});var Mc=O(Mb=>{"use strict";d();p();f();Object.defineProperty(Mb,"__esModule",{value:!0});Mb.suggestionList=JIe;var YIe=ph();function JIe(e,t){let r=Object.create(null),n=new xb(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=n.measure(a,i);o!==void 0&&(r[a]=o)}return Object.keys(r).sort((a,o)=>{let u=r[a]-r[o];return u!==0?u:(0,YIe.naturalCompare)(a,o)})}var xb=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=lY(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,r){if(this._input===t)return 0;let n=t.toLowerCase();if(this._inputLowerCase===n)return 1;let i=lY(n),a=this._inputArray;if(i.lengthr)return;let l=this._rows;for(let h=0;h<=u;h++)l[0][h]=h;for(let h=1;h<=o;h++){let N=l[(h-1)%3],T=l[h%3],D=T[0]=h;for(let R=1;R<=u;R++){let C=i[h-1]===a[R-1]?0:1,M=Math.min(N[R]+1,T[R-1]+1,N[R-1]+C);if(h>1&&R>1&&i[h-1]===a[R-2]&&i[h-2]===a[R-1]){let G=l[(h-2)%3][R-2];M=Math.min(M,G+1)}Mr)return}let m=l[o%3][u];return m<=r?m:void 0}};function lY(e){let t=e.length,r=new Array(t);for(let n=0;n{"use strict";d();p();f();Object.defineProperty(jb,"__esModule",{value:!0});jb.toObjMap=zIe;function zIe(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}});var dY=O(Vb=>{"use strict";d();p();f();Object.defineProperty(Vb,"__esModule",{value:!0});Vb.printString=HIe;function HIe(e){return`"${e.replace(WIe,XIe)}"`}var WIe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function XIe(e){return ZIe[e.charCodeAt(0)]}var ZIe=["\\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 $l=O(jc=>{"use strict";d();p();f();Object.defineProperty(jc,"__esModule",{value:!0});jc.BREAK=void 0;jc.getEnterLeaveForKind=QE;jc.getVisitFn=ive;jc.visit=rve;jc.visitInParallel=nve;var eve=ui(),tve=cr(),Kb=Po(),fY=jt(),Bf=Object.freeze({});jc.BREAK=Bf;function rve(e,t,r=Kb.QueryDocumentKeys){let n=new Map;for(let G of Object.values(fY.Kind))n.set(G,QE(t,G));let i,a=Array.isArray(e),o=[e],u=-1,l=[],m=e,h,N,T=[],D=[];do{u++;let G=u===o.length,ee=G&&l.length!==0;if(G){if(h=D.length===0?void 0:T[T.length-1],m=N,N=D.pop(),ee)if(a){m=m.slice();let Ne=0;for(let[Ie,Le]of l){let Ve=Ie-Ne;Le===null?(m.splice(Ve,1),Ne++):m[Ve]=Le}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(let[Ne,Ie]of l)m[Ne]=Ie}u=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(N){if(h=a?u:o[u],m=N[h],m==null)continue;T.push(h)}let ae;if(!Array.isArray(m)){var R,C;(0,Kb.isNode)(m)||(0,eve.devAssert)(!1,`Invalid AST Node: ${(0,tve.inspect)(m)}.`);let Ne=G?(R=n.get(m.kind))===null||R===void 0?void 0:R.leave:(C=n.get(m.kind))===null||C===void 0?void 0:C.enter;if(ae=Ne==null?void 0:Ne.call(t,m,h,N,T,D),ae===Bf)break;if(ae===!1){if(!G){T.pop();continue}}else if(ae!==void 0&&(l.push([h,ae]),!G))if((0,Kb.isNode)(ae))m=ae;else{T.pop();continue}}if(ae===void 0&&ee&&l.push([h,m]),G)T.pop();else{var M;i={inArray:a,index:u,keys:o,edits:l,prev:i},a=Array.isArray(m),o=a?m:(M=r[m.kind])!==null&&M!==void 0?M:[],u=-1,l=[],N&&D.push(N),N=m}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function nve(e){let t=new Array(e.length).fill(null),r=Object.create(null);for(let n of Object.values(fY.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";d();p();f();Object.defineProperty($b,"__esModule",{value:!0});$b.print=uve;var ave=ih(),ove=dY(),sve=$l();function uve(e){return(0,sve.visit)(e,lve)}var cve=80,lve={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` `)},OperationDefinition:{leave(e){let t=kt("(",Ge(e.variableDefinitions,", "),")"),r=Ge([e.operation,Ge([e.name,t]),Ge(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+kt(" = ",r)+kt(" ",Ge(n," "))},SelectionSet:{leave:({selections:e})=>Ha(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=kt("",e,": ")+t,o=a+kt("(",Ge(r,", "),")");return o.length>cve&&(o=a+kt(`( `,YE(Ge(r,` @@ -78,15 +78,15 @@ spurious results.`)}}return!1};ME.instanceOf=wIe});var VE=O(lh=>{"use strict";d( `)),` }`)}function kt(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function YE(e){return kt(" ",e.replace(/\n/g,` `))}function pY(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(` -`)))!==null&&t!==void 0?t:!1}});var Yb=O(Qb=>{"use strict";d();p();f();Object.defineProperty(Qb,"__esModule",{value:!0});Qb.valueFromASTUntyped=Gb;var dve=fh(),As=jt();function Gb(e,t){switch(e.kind){case As.Kind.NULL:return null;case As.Kind.INT:return parseInt(e.value,10);case As.Kind.FLOAT:return parseFloat(e.value);case As.Kind.STRING:case As.Kind.ENUM:case As.Kind.BOOLEAN:return e.value;case As.Kind.LIST:return e.values.map(r=>Gb(r,t));case As.Kind.OBJECT:return(0,dve.keyValMap)(e.fields,r=>r.name.value,r=>Gb(r.value,t));case As.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var mh=O(zE=>{"use strict";d();p();f();Object.defineProperty(zE,"__esModule",{value:!0});zE.assertEnumValueName=fve;zE.assertName=yY;var mY=ui(),JE=at(),hY=UE();function yY(e){if(e!=null||(0,mY.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,mY.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new JE.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";d();p();f();Object.defineProperty(He,"__esModule",{value:!0});He.GraphQLUnionType=He.GraphQLScalarType=He.GraphQLObjectType=He.GraphQLNonNull=He.GraphQLList=He.GraphQLInterfaceType=He.GraphQLInputObjectType=He.GraphQLEnumType=void 0;He.argsToArgsConfig=RY;He.assertAbstractType=Fve;He.assertCompositeType=Pve;He.assertEnumType=Sve;He.assertInputObjectType=Ove;He.assertInputType=Ave;He.assertInterfaceType=vve;He.assertLeafType=wve;He.assertListType=Dve;He.assertNamedType=Uve;He.assertNonNullType=bve;He.assertNullableType=Cve;He.assertObjectType=Ive;He.assertOutputType=Rve;He.assertScalarType=gve;He.assertType=Eve;He.assertUnionType=_ve;He.assertWrappingType=Lve;He.defineArguments=bY;He.getNamedType=kve;He.getNullableType=Bve;He.isAbstractType=_Y;He.isCompositeType=vY;He.isEnumType=Jl;He.isInputObjectType=yh;He.isInputType=Jb;He.isInterfaceType=Ql;He.isLeafType=IY;He.isListType=sg;He.isNamedType=SY;He.isNonNullType=Kc;He.isNullableType=Hb;He.isObjectType=kf;He.isOutputType=zb;He.isRequiredArgument=qve;He.isRequiredInputField=jve;He.isScalarType=Gl;He.isType=og;He.isUnionType=Yl;He.isWrappingType=Nh;He.resolveObjMapThunk=Xb;He.resolveReadonlyArrayThunk=Wb;var Bn=ui(),pve=qc(),NY=cY(),Sr=ur(),Vc=ch(),mve=wo(),hve=xc(),gY=fh(),ag=Ub(),yve=Mc(),Fo=GE(),hh=at(),Nve=jt(),TY=Gi(),Tve=Yb(),Lo=mh();function og(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)||sg(e)||Kc(e)}function Eve(e){if(!og(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL type.`);return e}function Gl(e){return(0,Vc.instanceOf)(e,ZE)}function gve(e){if(!Gl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Scalar type.`);return e}function kf(e){return(0,Vc.instanceOf)(e,eg)}function Ive(e){if(!kf(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Object type.`);return e}function Ql(e){return(0,Vc.instanceOf)(e,tg)}function vve(e){if(!Ql(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Interface type.`);return e}function Yl(e){return(0,Vc.instanceOf)(e,rg)}function _ve(e){if(!Yl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Union type.`);return e}function Jl(e){return(0,Vc.instanceOf)(e,ng)}function Sve(e){if(!Jl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Enum type.`);return e}function yh(e){return(0,Vc.instanceOf)(e,ig)}function Ove(e){if(!yh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Input Object type.`);return e}function sg(e){return(0,Vc.instanceOf)(e,WE)}function Dve(e){if(!sg(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL List type.`);return e}function Kc(e){return(0,Vc.instanceOf)(e,XE)}function bve(e){if(!Kc(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function Jb(e){return Gl(e)||Jl(e)||yh(e)||Nh(e)&&Jb(e.ofType)}function Ave(e){if(!Jb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL input type.`);return e}function zb(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||Nh(e)&&zb(e.ofType)}function Rve(e){if(!zb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL output type.`);return e}function IY(e){return Gl(e)||Jl(e)}function wve(e){if(!IY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL leaf type.`);return e}function vY(e){return kf(e)||Ql(e)||Yl(e)}function Pve(e){if(!vY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL composite type.`);return e}function _Y(e){return Ql(e)||Yl(e)}function Fve(e){if(!_Y(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL abstract type.`);return e}var WE=class{constructor(t){og(t)||(0,Bn.devAssert)(!1,`Expected ${(0,Sr.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};He.GraphQLList=WE;var XE=class{constructor(t){Hb(t)||(0,Bn.devAssert)(!1,`Expected ${(0,Sr.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()}};He.GraphQLNonNull=XE;function Nh(e){return sg(e)||Kc(e)}function Lve(e){if(!Nh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Hb(e){return og(e)&&!Kc(e)}function Cve(e){if(!Hb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL nullable type.`);return e}function Bve(e){if(e)return Kc(e)?e.ofType:e}function SY(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)}function Uve(e){if(!SY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL named type.`);return e}function kve(e){if(e){let t=e;for(;Nh(t);)t=t.ofType;return t}}function Wb(e){return typeof e=="function"?e():e}function Xb(e){return typeof e=="function"?e():e}var ZE=class{constructor(t){var r,n,i,a;let o=(r=t.parseValue)!==null&&r!==void 0?r:NY.identityFunc;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:NY.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,Tve.valueFromASTUntyped)(u,l)),this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,Bn.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Sr.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Bn.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,Bn.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()}};He.GraphQLScalarType=ZE;var eg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>DY(t),this._interfaces=()=>OY(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Sr.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:AY(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLObjectType=eg;function OY(e){var t;let r=Wb((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,Bn.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function DY(e){let t=Xb(e.fields);return Uf(t)||(0,Bn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ag.mapValue)(t,(r,n)=>{var i;Uf(r)||(0,Bn.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,Bn.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Sr.inspect)(r.resolve)}.`);let a=(i=r.args)!==null&&i!==void 0?i:{};return Uf(a)||(0,Bn.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,args:bY(a),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}})}function bY(e){return Object.entries(e).map(([t,r])=>({name:(0,Lo.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function Uf(e){return(0,mve.isObjectLike)(e)&&!Array.isArray(e)}function AY(e){return(0,ag.mapValue)(e,t=>({description:t.description,type:t.type,args:RY(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function RY(e){return(0,gY.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 qve(e){return Kc(e.type)&&e.defaultValue===void 0}var tg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=DY.bind(void 0,t),this._interfaces=OY.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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:AY(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLInterfaceType=tg;var rg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=xve.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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()}};He.GraphQLUnionType=rg;function xve(e){let t=Wb(e.types);return Array.isArray(t)||(0,Bn.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var ng=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:EY(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=EY(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,hve.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new hh.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Sr.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Sr.inspect)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+HE(this,n))}let r=this.getValue(t);if(r==null)throw new hh.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+HE(this,t));return r.value}parseLiteral(t,r){if(t.kind!==Nve.Kind.ENUM){let i=(0,TY.print)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+HE(this,i),{nodes:t})}let n=this.getValue(t.value);if(n==null){let i=(0,TY.print)(t);throw new hh.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+HE(this,i),{nodes:t})}return n.value}toConfig(){let t=(0,gY.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLEnumType=ng;function HE(e,t){let r=e.getValues().map(i=>i.name),n=(0,yve.suggestionList)(t,r);return(0,pve.didYouMean)("the enum value",n)}function EY(e,t){return Uf(t)||(0,Bn.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Uf(n)||(0,Bn.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Sr.inspect)(n)}.`),{name:(0,Lo.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,Fo.toObjMap)(n.extensions),astNode:n.astNode}))}var ig=class{constructor(t){var r,n;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=Mve.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,ag.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLInputObjectType=ig;function Mve(e){let t=Xb(e.fields);return Uf(t)||(0,Bn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ag.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,Bn.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function jve(e){return Kc(e.type)&&e.defaultValue===void 0}});var Eh=O(Th=>{"use strict";d();p();f();Object.defineProperty(Th,"__esModule",{value:!0});Th.doTypesOverlap=Vve;Th.isEqualType=Zb;Th.isTypeSubTypeOf=ug;var ei=Vt();function Zb(e,t){return e===t?!0:(0,ei.isNonNullType)(e)&&(0,ei.isNonNullType)(t)||(0,ei.isListType)(e)&&(0,ei.isListType)(t)?Zb(e.ofType,t.ofType):!1}function ug(e,t,r){return t===r?!0:(0,ei.isNonNullType)(r)?(0,ei.isNonNullType)(t)?ug(e,t.ofType,r.ofType):!1:(0,ei.isNonNullType)(t)?ug(e,t.ofType,r):(0,ei.isListType)(r)?(0,ei.isListType)(t)?ug(e,t.ofType,r.ofType):!1:(0,ei.isListType)(t)?!1:(0,ei.isAbstractType)(r)&&((0,ei.isInterfaceType)(t)||(0,ei.isObjectType)(t))&&e.isSubType(r,t)}function Vve(e,t,r){return t===r?!0:(0,ei.isAbstractType)(t)?(0,ei.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,ei.isAbstractType)(r)?e.isSubType(r,t):!1}});var Co=O(Sn=>{"use strict";d();p();f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.GraphQLString=Sn.GraphQLInt=Sn.GraphQLID=Sn.GraphQLFloat=Sn.GraphQLBoolean=Sn.GRAPHQL_MIN_INT=Sn.GRAPHQL_MAX_INT=void 0;Sn.isSpecifiedScalarType=Kve;Sn.specifiedScalarTypes=void 0;var Wa=ur(),wY=wo(),Un=at(),zl=jt(),gh=Gi(),Ih=Vt(),cg=2147483647;Sn.GRAPHQL_MAX_INT=cg;var lg=-2147483648;Sn.GRAPHQL_MIN_INT=lg;var PY=new Ih.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=vh(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new Un.GraphQLError(`Int cannot represent non-integer value: ${(0,Wa.inspect)(t)}`);if(r>cg||rcg||ecg||te.name===t)}function vh(e){if((0,wY.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,wY.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Si=O(on=>{"use strict";d();p();f();Object.defineProperty(on,"__esModule",{value:!0});on.GraphQLSpecifiedByDirective=on.GraphQLSkipDirective=on.GraphQLOneOfDirective=on.GraphQLIncludeDirective=on.GraphQLDirective=on.GraphQLDeprecatedDirective=on.DEFAULT_DEPRECATION_REASON=void 0;on.assertDirective=zve;on.isDirective=qY;on.isSpecifiedDirective=Hve;on.specifiedDirectives=void 0;var kY=ui(),$ve=ur(),Gve=ch(),Qve=wo(),Yve=GE(),da=Ff(),Jve=mh(),_h=Vt(),dg=Co();function qY(e){return(0,Gve.instanceOf)(e,Rs)}function zve(e){if(!qY(e))throw new Error(`Expected ${(0,$ve.inspect)(e)} to be a GraphQL directive.`);return e}var Rs=class{constructor(t){var r,n;this.name=(0,Jve.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Yve.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,kY.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(n=t.args)!==null&&n!==void 0?n:{};(0,Qve.isObjectLike)(i)&&!Array.isArray(i)||(0,kY.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,_h.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,_h.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};on.GraphQLDirective=Rs;var xY=new Rs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(dg.GraphQLBoolean),description:"Included when true."}}});on.GraphQLIncludeDirective=xY;var MY=new Rs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(dg.GraphQLBoolean),description:"Skipped when true."}}});on.GraphQLSkipDirective=MY;var jY="No longer supported";on.DEFAULT_DEPRECATION_REASON=jY;var VY=new Rs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[da.DirectiveLocation.FIELD_DEFINITION,da.DirectiveLocation.ARGUMENT_DEFINITION,da.DirectiveLocation.INPUT_FIELD_DEFINITION,da.DirectiveLocation.ENUM_VALUE],args:{reason:{type:dg.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:jY}}});on.GraphQLDeprecatedDirective=VY;var KY=new Rs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[da.DirectiveLocation.SCALAR],args:{url:{type:new _h.GraphQLNonNull(dg.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});on.GraphQLSpecifiedByDirective=KY;var $Y=new Rs({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[da.DirectiveLocation.INPUT_OBJECT],args:{}});on.GraphQLOneOfDirective=$Y;var GY=Object.freeze([xY,MY,VY,KY,$Y]);on.specifiedDirectives=GY;function Hve(e){return GY.some(({name:t})=>t===e.name)}});var fg=O(e0=>{"use strict";d();p();f();Object.defineProperty(e0,"__esModule",{value:!0});e0.isIterableObject=Wve;function Wve(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Dh=O(t0=>{"use strict";d();p();f();Object.defineProperty(t0,"__esModule",{value:!0});t0.astFromValue=Oh;var QY=ur(),Xve=Zn(),Zve=fg(),e_e=wo(),fa=jt(),Sh=Vt(),t_e=Co();function Oh(e,t){if((0,Sh.isNonNullType)(t)){let r=Oh(e,t.ofType);return(r==null?void 0:r.kind)===fa.Kind.NULL?null:r}if(e===null)return{kind:fa.Kind.NULL};if(e===void 0)return null;if((0,Sh.isListType)(t)){let r=t.ofType;if((0,Zve.isIterableObject)(e)){let n=[];for(let i of e){let a=Oh(i,r);a!=null&&n.push(a)}return{kind:fa.Kind.LIST,values:n}}return Oh(e,r)}if((0,Sh.isInputObjectType)(t)){if(!(0,e_e.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=Oh(e[n.name],n.type);i&&r.push({kind:fa.Kind.OBJECT_FIELD,name:{kind:fa.Kind.NAME,value:n.name},value:i})}return{kind:fa.Kind.OBJECT,fields:r}}if((0,Sh.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:fa.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return YY.test(n)?{kind:fa.Kind.INT,value:n}:{kind:fa.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,Sh.isEnumType)(t)?{kind:fa.Kind.ENUM,value:r}:t===t_e.GraphQLID&&YY.test(r)?{kind:fa.Kind.INT,value:r}:{kind:fa.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,QY.inspect)(r)}.`)}(0,Xve.invariant)(!1,"Unexpected input type: "+(0,QY.inspect)(t))}var YY=/^-?(?:0|[1-9][0-9]*)$/});var ma=O(cr=>{"use strict";d();p();f();Object.defineProperty(cr,"__esModule",{value:!0});cr.introspectionTypes=cr.__TypeKind=cr.__Type=cr.__Schema=cr.__InputValue=cr.__Field=cr.__EnumValue=cr.__DirectiveLocation=cr.__Directive=cr.TypeNameMetaFieldDef=cr.TypeMetaFieldDef=cr.TypeKind=cr.SchemaMetaFieldDef=void 0;cr.isIntrospectionType=c_e;var r_e=ur(),n_e=Zn(),On=Ff(),i_e=Gi(),a_e=Dh(),Ke=Vt(),Nr=Co(),r0=new Ke.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:Nr.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(pa))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ke.GraphQLNonNull(pa),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:pa,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:pa,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(n0))),resolve:e=>e.getDirectives()}})});cr.__Schema=r0;var n0=new Ke.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 Yb=O(Qb=>{"use strict";d();p();f();Object.defineProperty(Qb,"__esModule",{value:!0});Qb.valueFromASTUntyped=Gb;var dve=fh(),As=jt();function Gb(e,t){switch(e.kind){case As.Kind.NULL:return null;case As.Kind.INT:return parseInt(e.value,10);case As.Kind.FLOAT:return parseFloat(e.value);case As.Kind.STRING:case As.Kind.ENUM:case As.Kind.BOOLEAN:return e.value;case As.Kind.LIST:return e.values.map(r=>Gb(r,t));case As.Kind.OBJECT:return(0,dve.keyValMap)(e.fields,r=>r.name.value,r=>Gb(r.value,t));case As.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var mh=O(zE=>{"use strict";d();p();f();Object.defineProperty(zE,"__esModule",{value:!0});zE.assertEnumValueName=fve;zE.assertName=yY;var mY=ui(),JE=at(),hY=UE();function yY(e){if(e!=null||(0,mY.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,mY.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new JE.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";d();p();f();Object.defineProperty(He,"__esModule",{value:!0});He.GraphQLUnionType=He.GraphQLScalarType=He.GraphQLObjectType=He.GraphQLNonNull=He.GraphQLList=He.GraphQLInterfaceType=He.GraphQLInputObjectType=He.GraphQLEnumType=void 0;He.argsToArgsConfig=RY;He.assertAbstractType=Fve;He.assertCompositeType=Pve;He.assertEnumType=Sve;He.assertInputObjectType=Ove;He.assertInputType=Ave;He.assertInterfaceType=vve;He.assertLeafType=wve;He.assertListType=Dve;He.assertNamedType=Uve;He.assertNonNullType=bve;He.assertNullableType=Cve;He.assertObjectType=Ive;He.assertOutputType=Rve;He.assertScalarType=gve;He.assertType=Eve;He.assertUnionType=_ve;He.assertWrappingType=Lve;He.defineArguments=bY;He.getNamedType=kve;He.getNullableType=Bve;He.isAbstractType=_Y;He.isCompositeType=vY;He.isEnumType=Jl;He.isInputObjectType=yh;He.isInputType=Jb;He.isInterfaceType=Ql;He.isLeafType=IY;He.isListType=sg;He.isNamedType=SY;He.isNonNullType=Kc;He.isNullableType=Hb;He.isObjectType=kf;He.isOutputType=zb;He.isRequiredArgument=qve;He.isRequiredInputField=jve;He.isScalarType=Gl;He.isType=og;He.isUnionType=Yl;He.isWrappingType=Nh;He.resolveObjMapThunk=Xb;He.resolveReadonlyArrayThunk=Wb;var Bn=ui(),pve=qc(),NY=cY(),Sr=cr(),Vc=ch(),mve=wo(),hve=xc(),gY=fh(),ag=Ub(),yve=Mc(),Fo=GE(),hh=at(),Nve=jt(),TY=Gi(),Tve=Yb(),Lo=mh();function og(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)||sg(e)||Kc(e)}function Eve(e){if(!og(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL type.`);return e}function Gl(e){return(0,Vc.instanceOf)(e,ZE)}function gve(e){if(!Gl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Scalar type.`);return e}function kf(e){return(0,Vc.instanceOf)(e,eg)}function Ive(e){if(!kf(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Object type.`);return e}function Ql(e){return(0,Vc.instanceOf)(e,tg)}function vve(e){if(!Ql(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Interface type.`);return e}function Yl(e){return(0,Vc.instanceOf)(e,rg)}function _ve(e){if(!Yl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Union type.`);return e}function Jl(e){return(0,Vc.instanceOf)(e,ng)}function Sve(e){if(!Jl(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Enum type.`);return e}function yh(e){return(0,Vc.instanceOf)(e,ig)}function Ove(e){if(!yh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Input Object type.`);return e}function sg(e){return(0,Vc.instanceOf)(e,WE)}function Dve(e){if(!sg(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL List type.`);return e}function Kc(e){return(0,Vc.instanceOf)(e,XE)}function bve(e){if(!Kc(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function Jb(e){return Gl(e)||Jl(e)||yh(e)||Nh(e)&&Jb(e.ofType)}function Ave(e){if(!Jb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL input type.`);return e}function zb(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||Nh(e)&&zb(e.ofType)}function Rve(e){if(!zb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL output type.`);return e}function IY(e){return Gl(e)||Jl(e)}function wve(e){if(!IY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL leaf type.`);return e}function vY(e){return kf(e)||Ql(e)||Yl(e)}function Pve(e){if(!vY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL composite type.`);return e}function _Y(e){return Ql(e)||Yl(e)}function Fve(e){if(!_Y(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL abstract type.`);return e}var WE=class{constructor(t){og(t)||(0,Bn.devAssert)(!1,`Expected ${(0,Sr.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};He.GraphQLList=WE;var XE=class{constructor(t){Hb(t)||(0,Bn.devAssert)(!1,`Expected ${(0,Sr.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()}};He.GraphQLNonNull=XE;function Nh(e){return sg(e)||Kc(e)}function Lve(e){if(!Nh(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL wrapping type.`);return e}function Hb(e){return og(e)&&!Kc(e)}function Cve(e){if(!Hb(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL nullable type.`);return e}function Bve(e){if(e)return Kc(e)?e.ofType:e}function SY(e){return Gl(e)||kf(e)||Ql(e)||Yl(e)||Jl(e)||yh(e)}function Uve(e){if(!SY(e))throw new Error(`Expected ${(0,Sr.inspect)(e)} to be a GraphQL named type.`);return e}function kve(e){if(e){let t=e;for(;Nh(t);)t=t.ofType;return t}}function Wb(e){return typeof e=="function"?e():e}function Xb(e){return typeof e=="function"?e():e}var ZE=class{constructor(t){var r,n,i,a;let o=(r=t.parseValue)!==null&&r!==void 0?r:NY.identityFunc;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(n=t.serialize)!==null&&n!==void 0?n:NY.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,Tve.valueFromASTUntyped)(u,l)),this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,Bn.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Sr.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Bn.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,Bn.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()}};He.GraphQLScalarType=ZE;var eg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=()=>DY(t),this._interfaces=()=>OY(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Sr.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:AY(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLObjectType=eg;function OY(e){var t;let r=Wb((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(r)||(0,Bn.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function DY(e){let t=Xb(e.fields);return Uf(t)||(0,Bn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ag.mapValue)(t,(r,n)=>{var i;Uf(r)||(0,Bn.devAssert)(!1,`${e.name}.${n} field config must be an object.`),r.resolve==null||typeof r.resolve=="function"||(0,Bn.devAssert)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,Sr.inspect)(r.resolve)}.`);let a=(i=r.args)!==null&&i!==void 0?i:{};return Uf(a)||(0,Bn.devAssert)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,args:bY(a),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}})}function bY(e){return Object.entries(e).map(([t,r])=>({name:(0,Lo.assertName)(t),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function Uf(e){return(0,mve.isObjectLike)(e)&&!Array.isArray(e)}function AY(e){return(0,ag.mapValue)(e,t=>({description:t.description,type:t.type,args:RY(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function RY(e){return(0,gY.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 qve(e){return Kc(e.type)&&e.defaultValue===void 0}var tg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._fields=DY.bind(void 0,t),this._interfaces=OY.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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:AY(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};He.GraphQLInterfaceType=tg;var rg=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._types=xve.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Bn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Sr.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()}};He.GraphQLUnionType=rg;function xve(e){let t=Wb(e.types);return Array.isArray(t)||(0,Bn.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var ng=class{constructor(t){var r;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._values=typeof t.values=="function"?t.values:EY(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=EY(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,hve.keyMap)(this.getValues(),r=>r.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(n=>[n.value,n])));let r=this._valueLookup.get(t);if(r===void 0)throw new hh.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Sr.inspect)(t)}`);return r.name}parseValue(t){if(typeof t!="string"){let n=(0,Sr.inspect)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${n}.`+HE(this,n))}let r=this.getValue(t);if(r==null)throw new hh.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+HE(this,t));return r.value}parseLiteral(t,r){if(t.kind!==Nve.Kind.ENUM){let i=(0,TY.print)(t);throw new hh.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+HE(this,i),{nodes:t})}let n=this.getValue(t.value);if(n==null){let i=(0,TY.print)(t);throw new hh.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+HE(this,i),{nodes:t})}return n.value}toConfig(){let t=(0,gY.keyValMap)(this.getValues(),r=>r.name,r=>({description:r.description,value:r.value,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLEnumType=ng;function HE(e,t){let r=e.getValues().map(i=>i.name),n=(0,yve.suggestionList)(t,r);return(0,pve.didYouMean)("the enum value",n)}function EY(e,t){return Uf(t)||(0,Bn.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([r,n])=>(Uf(n)||(0,Bn.devAssert)(!1,`${e}.${r} must refer to an object with a "value" key representing an internal value but got: ${(0,Sr.inspect)(n)}.`),{name:(0,Lo.assertEnumValueName)(r),description:n.description,value:n.value!==void 0?n.value:r,deprecationReason:n.deprecationReason,extensions:(0,Fo.toObjMap)(n.extensions),astNode:n.astNode}))}var ig=class{constructor(t){var r,n;this.name=(0,Lo.assertName)(t.name),this.description=t.description,this.extensions=(0,Fo.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this.isOneOf=(n=t.isOneOf)!==null&&n!==void 0?n:!1,this._fields=Mve.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,ag.mapValue)(this.getFields(),r=>({description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.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()}};He.GraphQLInputObjectType=ig;function Mve(e){let t=Xb(e.fields);return Uf(t)||(0,Bn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ag.mapValue)(t,(r,n)=>(!("resolve"in r)||(0,Bn.devAssert)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Lo.assertName)(n),description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:(0,Fo.toObjMap)(r.extensions),astNode:r.astNode}))}function jve(e){return Kc(e.type)&&e.defaultValue===void 0}});var Eh=O(Th=>{"use strict";d();p();f();Object.defineProperty(Th,"__esModule",{value:!0});Th.doTypesOverlap=Vve;Th.isEqualType=Zb;Th.isTypeSubTypeOf=ug;var ei=Vt();function Zb(e,t){return e===t?!0:(0,ei.isNonNullType)(e)&&(0,ei.isNonNullType)(t)||(0,ei.isListType)(e)&&(0,ei.isListType)(t)?Zb(e.ofType,t.ofType):!1}function ug(e,t,r){return t===r?!0:(0,ei.isNonNullType)(r)?(0,ei.isNonNullType)(t)?ug(e,t.ofType,r.ofType):!1:(0,ei.isNonNullType)(t)?ug(e,t.ofType,r):(0,ei.isListType)(r)?(0,ei.isListType)(t)?ug(e,t.ofType,r.ofType):!1:(0,ei.isListType)(t)?!1:(0,ei.isAbstractType)(r)&&((0,ei.isInterfaceType)(t)||(0,ei.isObjectType)(t))&&e.isSubType(r,t)}function Vve(e,t,r){return t===r?!0:(0,ei.isAbstractType)(t)?(0,ei.isAbstractType)(r)?e.getPossibleTypes(t).some(n=>e.isSubType(r,n)):e.isSubType(t,r):(0,ei.isAbstractType)(r)?e.isSubType(r,t):!1}});var Co=O(Sn=>{"use strict";d();p();f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.GraphQLString=Sn.GraphQLInt=Sn.GraphQLID=Sn.GraphQLFloat=Sn.GraphQLBoolean=Sn.GRAPHQL_MIN_INT=Sn.GRAPHQL_MAX_INT=void 0;Sn.isSpecifiedScalarType=Kve;Sn.specifiedScalarTypes=void 0;var Wa=cr(),wY=wo(),Un=at(),zl=jt(),gh=Gi(),Ih=Vt(),cg=2147483647;Sn.GRAPHQL_MAX_INT=cg;var lg=-2147483648;Sn.GRAPHQL_MIN_INT=lg;var PY=new Ih.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=vh(e);if(typeof t=="boolean")return t?1:0;let r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),typeof r!="number"||!Number.isInteger(r))throw new Un.GraphQLError(`Int cannot represent non-integer value: ${(0,Wa.inspect)(t)}`);if(r>cg||rcg||ecg||te.name===t)}function vh(e){if((0,wY.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,wY.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Si=O(on=>{"use strict";d();p();f();Object.defineProperty(on,"__esModule",{value:!0});on.GraphQLSpecifiedByDirective=on.GraphQLSkipDirective=on.GraphQLOneOfDirective=on.GraphQLIncludeDirective=on.GraphQLDirective=on.GraphQLDeprecatedDirective=on.DEFAULT_DEPRECATION_REASON=void 0;on.assertDirective=zve;on.isDirective=qY;on.isSpecifiedDirective=Hve;on.specifiedDirectives=void 0;var kY=ui(),$ve=cr(),Gve=ch(),Qve=wo(),Yve=GE(),da=Ff(),Jve=mh(),_h=Vt(),dg=Co();function qY(e){return(0,Gve.instanceOf)(e,Rs)}function zve(e){if(!qY(e))throw new Error(`Expected ${(0,$ve.inspect)(e)} to be a GraphQL directive.`);return e}var Rs=class{constructor(t){var r,n;this.name=(0,Jve.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(r=t.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=(0,Yve.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,kY.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(n=t.args)!==null&&n!==void 0?n:{};(0,Qve.isObjectLike)(i)&&!Array.isArray(i)||(0,kY.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,_h.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,_h.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};on.GraphQLDirective=Rs;var xY=new Rs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(dg.GraphQLBoolean),description:"Included when true."}}});on.GraphQLIncludeDirective=xY;var MY=new Rs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[da.DirectiveLocation.FIELD,da.DirectiveLocation.FRAGMENT_SPREAD,da.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new _h.GraphQLNonNull(dg.GraphQLBoolean),description:"Skipped when true."}}});on.GraphQLSkipDirective=MY;var jY="No longer supported";on.DEFAULT_DEPRECATION_REASON=jY;var VY=new Rs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[da.DirectiveLocation.FIELD_DEFINITION,da.DirectiveLocation.ARGUMENT_DEFINITION,da.DirectiveLocation.INPUT_FIELD_DEFINITION,da.DirectiveLocation.ENUM_VALUE],args:{reason:{type:dg.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:jY}}});on.GraphQLDeprecatedDirective=VY;var KY=new Rs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[da.DirectiveLocation.SCALAR],args:{url:{type:new _h.GraphQLNonNull(dg.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});on.GraphQLSpecifiedByDirective=KY;var $Y=new Rs({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[da.DirectiveLocation.INPUT_OBJECT],args:{}});on.GraphQLOneOfDirective=$Y;var GY=Object.freeze([xY,MY,VY,KY,$Y]);on.specifiedDirectives=GY;function Hve(e){return GY.some(({name:t})=>t===e.name)}});var fg=O(eA=>{"use strict";d();p();f();Object.defineProperty(eA,"__esModule",{value:!0});eA.isIterableObject=Wve;function Wve(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Dh=O(tA=>{"use strict";d();p();f();Object.defineProperty(tA,"__esModule",{value:!0});tA.astFromValue=Oh;var QY=cr(),Xve=Zn(),Zve=fg(),e_e=wo(),fa=jt(),Sh=Vt(),t_e=Co();function Oh(e,t){if((0,Sh.isNonNullType)(t)){let r=Oh(e,t.ofType);return(r==null?void 0:r.kind)===fa.Kind.NULL?null:r}if(e===null)return{kind:fa.Kind.NULL};if(e===void 0)return null;if((0,Sh.isListType)(t)){let r=t.ofType;if((0,Zve.isIterableObject)(e)){let n=[];for(let i of e){let a=Oh(i,r);a!=null&&n.push(a)}return{kind:fa.Kind.LIST,values:n}}return Oh(e,r)}if((0,Sh.isInputObjectType)(t)){if(!(0,e_e.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=Oh(e[n.name],n.type);i&&r.push({kind:fa.Kind.OBJECT_FIELD,name:{kind:fa.Kind.NAME,value:n.name},value:i})}return{kind:fa.Kind.OBJECT,fields:r}}if((0,Sh.isLeafType)(t)){let r=t.serialize(e);if(r==null)return null;if(typeof r=="boolean")return{kind:fa.Kind.BOOLEAN,value:r};if(typeof r=="number"&&Number.isFinite(r)){let n=String(r);return YY.test(n)?{kind:fa.Kind.INT,value:n}:{kind:fa.Kind.FLOAT,value:n}}if(typeof r=="string")return(0,Sh.isEnumType)(t)?{kind:fa.Kind.ENUM,value:r}:t===t_e.GraphQLID&&YY.test(r)?{kind:fa.Kind.INT,value:r}:{kind:fa.Kind.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${(0,QY.inspect)(r)}.`)}(0,Xve.invariant)(!1,"Unexpected input type: "+(0,QY.inspect)(t))}var YY=/^-?(?:0|[1-9][0-9]*)$/});var ma=O(lr=>{"use strict";d();p();f();Object.defineProperty(lr,"__esModule",{value:!0});lr.introspectionTypes=lr.__TypeKind=lr.__Type=lr.__Schema=lr.__InputValue=lr.__Field=lr.__EnumValue=lr.__DirectiveLocation=lr.__Directive=lr.TypeNameMetaFieldDef=lr.TypeMetaFieldDef=lr.TypeKind=lr.SchemaMetaFieldDef=void 0;lr.isIntrospectionType=c_e;var r_e=cr(),n_e=Zn(),On=Ff(),i_e=Gi(),a_e=Dh(),Ke=Vt(),Er=Co(),rA=new Ke.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:Er.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(pa))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ke.GraphQLNonNull(pa),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:pa,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:pa,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(nA))),resolve:e=>e.getDirectives()}})});lr.__Schema=rA;var nA=new Ke.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 Ke.GraphQLNonNull(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(i0))),resolve:e=>e.locations},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});cr.__Directive=n0;var i0=new Ke.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:On.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:On.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:On.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:On.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:On.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:On.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:On.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:On.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:On.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:On.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:On.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:On.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:On.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:On.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:On.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:On.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:On.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:On.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:On.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});cr.__DirectiveLocation=i0;var pa=new Ke.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ke.GraphQLNonNull(s0),resolve(e){if((0,Ke.isScalarType)(e))return Dn.SCALAR;if((0,Ke.isObjectType)(e))return Dn.OBJECT;if((0,Ke.isInterfaceType)(e))return Dn.INTERFACE;if((0,Ke.isUnionType)(e))return Dn.UNION;if((0,Ke.isEnumType)(e))return Dn.ENUM;if((0,Ke.isInputObjectType)(e))return Dn.INPUT_OBJECT;if((0,Ke.isListType)(e))return Dn.LIST;if((0,Ke.isNonNullType)(e))return Dn.NON_NULL;(0,n_e.invariant)(!1,`Unexpected type: "${(0,r_e.inspect)(e)}".`)}},name:{type:Nr.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Nr.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Nr.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(a0)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e,t,r,{schema:n}){if((0,Ke.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(o0)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(bh)),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:pa,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Nr.GraphQLBoolean,resolve:e=>{if((0,Ke.isInputObjectType)(e))return e.isOneOf}}})});cr.__Type=pa;var a0=new Ke.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Nr.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__Field=a0;var bh=new Ke.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},defaultValue:{type:Nr.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,a_e.astFromValue)(r,t);return n?(0,i_e.print)(n):null}},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__InputValue=bh;var o0=new Ke.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Nr.GraphQLString),resolve:e=>e.name},description:{type:Nr.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ke.GraphQLNonNull(Nr.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Nr.GraphQLString,resolve:e=>e.deprecationReason}})});cr.__EnumValue=o0;var Dn;cr.TypeKind=Dn;(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"})(Dn||(cr.TypeKind=Dn={}));var s0=new Ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Dn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Dn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Dn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Dn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Dn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Dn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Dn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Dn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});cr.__TypeKind=s0;var o_e={name:"__schema",type:new Ke.GraphQLNonNull(r0),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.SchemaMetaFieldDef=o_e;var s_e={name:"__type",type:pa,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ke.GraphQLNonNull(Nr.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.TypeMetaFieldDef=s_e;var u_e={name:"__typename",type:new Ke.GraphQLNonNull(Nr.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};cr.TypeNameMetaFieldDef=u_e;var JY=Object.freeze([r0,n0,i0,pa,a0,bh,o0,s0]);cr.introspectionTypes=JY;function c_e(e){return JY.some(({name:t})=>e.name===t)}});var Hl=O(qf=>{"use strict";d();p();f();Object.defineProperty(qf,"__esModule",{value:!0});qf.GraphQLSchema=void 0;qf.assertSchema=m_e;qf.isSchema=HY;var pg=ui(),c0=ur(),l_e=ch(),d_e=wo(),f_e=GE(),u0=Po(),Xa=Vt(),zY=Si(),p_e=ma();function HY(e){return(0,l_e.instanceOf)(e,mg)}function m_e(e){if(!HY(e))throw new Error(`Expected ${(0,c0.inspect)(e)} to be a GraphQL schema.`);return e}var mg=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,d_e.isObjectLike)(t)||(0,pg.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,pg.devAssert)(!1,`"types" must be Array if provided but got: ${(0,c0.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,pg.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,c0.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,f_e.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:zY.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Za(a,i);this._queryType!=null&&Za(this._queryType,i),this._mutationType!=null&&Za(this._mutationType,i),this._subscriptionType!=null&&Za(this._subscriptionType,i);for(let a of this._directives)if((0,zY.isDirective)(a))for(let o of a.args)Za(o.type,i);Za(p_e.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,pg.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,Xa.isInterfaceType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Xa.isObjectType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case u0.OperationTypeNode.QUERY:return this.getQueryType();case u0.OperationTypeNode.MUTATION:return this.getMutationType();case u0.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Xa.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r!=null?r:{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Xa.isUnionType)(t))for(let i of t.getTypes())n[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)n[a.name]=!0;for(let a of i.interfaces)n[a.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.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}}};qf.GraphQLSchema=mg;function Za(e,t){let r=(0,Xa.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Xa.isUnionType)(r))for(let n of r.getTypes())Za(n,t);else if((0,Xa.isObjectType)(r)||(0,Xa.isInterfaceType)(r)){for(let n of r.getInterfaces())Za(n,t);for(let n of Object.values(r.getFields())){Za(n.type,t);for(let i of n.args)Za(i.type,t)}}else if((0,Xa.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Za(n.type,t)}return t}});var Rh=O(hg=>{"use strict";d();p();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.assertValidSchema=T_e;hg.validateSchema=rJ;var ti=ur(),h_e=at(),l0=Po(),WY=Eh(),zr=Vt(),tJ=Si(),y_e=ma(),N_e=Hl();function rJ(e){if((0,N_e.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new f0(e);E_e(t),g_e(t),I_e(t);let r=t.getErrors();return e.__validationErrors=r,r}function T_e(e){let t=rJ(e);if(t.length!==0)throw new Error(t.map(r=>r.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 Ke.GraphQLNonNull(Er.GraphQLString),resolve:e=>e.name},description:{type:Er.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ke.GraphQLNonNull(Er.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(iA))),resolve:e=>e.locations},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Er.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}}})});lr.__Directive=nA;var iA=new Ke.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:On.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:On.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:On.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:On.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:On.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:On.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:On.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:On.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:On.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:On.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:On.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:On.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:On.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:On.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:On.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:On.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:On.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:On.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:On.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});lr.__DirectiveLocation=iA;var pa=new Ke.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Ke.GraphQLNonNull(sA),resolve(e){if((0,Ke.isScalarType)(e))return Dn.SCALAR;if((0,Ke.isObjectType)(e))return Dn.OBJECT;if((0,Ke.isInterfaceType)(e))return Dn.INTERFACE;if((0,Ke.isUnionType)(e))return Dn.UNION;if((0,Ke.isEnumType)(e))return Dn.ENUM;if((0,Ke.isInputObjectType)(e))return Dn.INPUT_OBJECT;if((0,Ke.isListType)(e))return Dn.LIST;if((0,Ke.isNonNullType)(e))return Dn.NON_NULL;(0,n_e.invariant)(!1,`Unexpected type: "${(0,r_e.inspect)(e)}".`)}},name:{type:Er.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Er.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Er.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(aA)),args:{includeDeprecated:{type:Er.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},interfaces:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e){if((0,Ke.isObjectType)(e)||(0,Ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(pa)),resolve(e,t,r,{schema:n}){if((0,Ke.isAbstractType)(e))return n.getPossibleTypes(e)}},enumValues:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(oA)),args:{includeDeprecated:{type:Er.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isEnumType)(e)){let r=e.getValues();return t?r:r.filter(n=>n.deprecationReason==null)}}},inputFields:{type:new Ke.GraphQLList(new Ke.GraphQLNonNull(bh)),args:{includeDeprecated:{type:Er.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ke.isInputObjectType)(e)){let r=Object.values(e.getFields());return t?r:r.filter(n=>n.deprecationReason==null)}}},ofType:{type:pa,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Er.GraphQLBoolean,resolve:e=>{if((0,Ke.isInputObjectType)(e))return e.isOneOf}}})});lr.__Type=pa;var aA=new Ke.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Er.GraphQLString),resolve:e=>e.name},description:{type:Er.GraphQLString,resolve:e=>e.description},args:{type:new Ke.GraphQLNonNull(new Ke.GraphQLList(new Ke.GraphQLNonNull(bh))),args:{includeDeprecated:{type:Er.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(r=>r.deprecationReason==null)}},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},isDeprecated:{type:new Ke.GraphQLNonNull(Er.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Er.GraphQLString,resolve:e=>e.deprecationReason}})});lr.__Field=aA;var bh=new Ke.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Er.GraphQLString),resolve:e=>e.name},description:{type:Er.GraphQLString,resolve:e=>e.description},type:{type:new Ke.GraphQLNonNull(pa),resolve:e=>e.type},defaultValue:{type:Er.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=(0,a_e.astFromValue)(r,t);return n?(0,i_e.print)(n):null}},isDeprecated:{type:new Ke.GraphQLNonNull(Er.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Er.GraphQLString,resolve:e=>e.deprecationReason}})});lr.__InputValue=bh;var oA=new Ke.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Ke.GraphQLNonNull(Er.GraphQLString),resolve:e=>e.name},description:{type:Er.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ke.GraphQLNonNull(Er.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Er.GraphQLString,resolve:e=>e.deprecationReason}})});lr.__EnumValue=oA;var Dn;lr.TypeKind=Dn;(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"})(Dn||(lr.TypeKind=Dn={}));var sA=new Ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Dn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Dn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Dn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Dn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Dn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Dn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Dn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Dn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});lr.__TypeKind=sA;var o_e={name:"__schema",type:new Ke.GraphQLNonNull(rA),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};lr.SchemaMetaFieldDef=o_e;var s_e={name:"__type",type:pa,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ke.GraphQLNonNull(Er.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};lr.TypeMetaFieldDef=s_e;var u_e={name:"__typename",type:new Ke.GraphQLNonNull(Er.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};lr.TypeNameMetaFieldDef=u_e;var JY=Object.freeze([rA,nA,iA,pa,aA,bh,oA,sA]);lr.introspectionTypes=JY;function c_e(e){return JY.some(({name:t})=>e.name===t)}});var Hl=O(qf=>{"use strict";d();p();f();Object.defineProperty(qf,"__esModule",{value:!0});qf.GraphQLSchema=void 0;qf.assertSchema=m_e;qf.isSchema=HY;var pg=ui(),cA=cr(),l_e=ch(),d_e=wo(),f_e=GE(),uA=Po(),Xa=Vt(),zY=Si(),p_e=ma();function HY(e){return(0,l_e.instanceOf)(e,mg)}function m_e(e){if(!HY(e))throw new Error(`Expected ${(0,cA.inspect)(e)} to be a GraphQL schema.`);return e}var mg=class{constructor(t){var r,n;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,d_e.isObjectLike)(t)||(0,pg.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,pg.devAssert)(!1,`"types" must be Array if provided but got: ${(0,cA.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,pg.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,cA.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,f_e.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(r=t.extensionASTNodes)!==null&&r!==void 0?r:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(n=t.directives)!==null&&n!==void 0?n:zY.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Za(a,i);this._queryType!=null&&Za(this._queryType,i),this._mutationType!=null&&Za(this._mutationType,i),this._subscriptionType!=null&&Za(this._subscriptionType,i);for(let a of this._directives)if((0,zY.isDirective)(a))for(let o of a.args)Za(o.type,i);Za(p_e.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,pg.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,Xa.isInterfaceType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Xa.isObjectType)(a)){for(let u of a.getInterfaces())if((0,Xa.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case uA.OperationTypeNode.QUERY:return this.getQueryType();case uA.OperationTypeNode.MUTATION:return this.getMutationType();case uA.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Xa.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let r=this._implementationsMap[t.name];return r!=null?r:{objects:[],interfaces:[]}}isSubType(t,r){let n=this._subTypeMap[t.name];if(n===void 0){if(n=Object.create(null),(0,Xa.isUnionType)(t))for(let i of t.getTypes())n[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)n[a.name]=!0;for(let a of i.interfaces)n[a.name]=!0}this._subTypeMap[t.name]=n}return n[r.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(r=>r.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}}};qf.GraphQLSchema=mg;function Za(e,t){let r=(0,Xa.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,Xa.isUnionType)(r))for(let n of r.getTypes())Za(n,t);else if((0,Xa.isObjectType)(r)||(0,Xa.isInterfaceType)(r)){for(let n of r.getInterfaces())Za(n,t);for(let n of Object.values(r.getFields())){Za(n.type,t);for(let i of n.args)Za(i.type,t)}}else if((0,Xa.isInputObjectType)(r))for(let n of Object.values(r.getFields()))Za(n.type,t)}return t}});var Rh=O(hg=>{"use strict";d();p();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.assertValidSchema=T_e;hg.validateSchema=rJ;var ti=cr(),h_e=at(),lA=Po(),WY=Eh(),zr=Vt(),tJ=Si(),y_e=ma(),N_e=Hl();function rJ(e){if((0,N_e.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new fA(e);E_e(t),g_e(t),I_e(t);let r=t.getErrors();return e.__validationErrors=r,r}function T_e(e){let t=rJ(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` -`))}var f0=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new h_e.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function E_e(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,zr.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ti.inspect)(r)}.`,(n=d0(t,l0.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let i=t.getMutationType();if(i&&!(0,zr.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ti.inspect)(i)}.`,(a=d0(t,l0.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,zr.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ti.inspect)(o)}.`,(u=d0(t,l0.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function d0(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n==null?void 0:n.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function g_e(e){for(let r of e.schema.getDirectives()){if(!(0,tJ.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ti.inspect)(r)}.`,r==null?void 0:r.astNode);continue}Wl(e,r);for(let n of r.args)if(Wl(e,n),(0,zr.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ti.inspect)(n.type)}.`,n.astNode),(0,zr.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[p0(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function Wl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function I_e(e){let t=A_e(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,zr.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ti.inspect)(n)}.`,n.astNode);continue}(0,y_e.isIntrospectionType)(n)||Wl(e,n),(0,zr.isObjectType)(n)||(0,zr.isInterfaceType)(n)?(XY(e,n),ZY(e,n)):(0,zr.isUnionType)(n)?S_e(e,n):(0,zr.isEnumType)(n)?O_e(e,n):(0,zr.isInputObjectType)(n)&&(D_e(e,n),t(n))}}function XY(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of r){if(Wl(e,o),!(0,zr.isOutputType)(o.type)){var n;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,ti.inspect)(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}for(let u of o.args){let l=u.name;if(Wl(e,u),!(0,zr.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,ti.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,zr.isRequiredArgument)(u)&&u.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[p0(u.astNode),(a=u.astNode)===null||a===void 0?void 0:a.type])}}}}function ZY(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,zr.isInterfaceType)(n)){e.reportError(`Type ${(0,ti.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ti.inspect)(n)}.`,Ah(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ah(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Ah(t,n));continue}r[n.name]=!0,__e(e,t,n),v_e(e,t,n)}}function v_e(e,t,r){let n=t.getFields();for(let l of Object.values(r.getFields())){let m=l.name,h=n[m];if(!h){e.reportError(`Interface field ${r.name}.${m} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,WY.isTypeSubTypeOf)(e.schema,h.type,l.type)){var i,a;e.reportError(`Interface field ${r.name}.${m} expects type ${(0,ti.inspect)(l.type)} but ${t.name}.${m} is type ${(0,ti.inspect)(h.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}for(let N of l.args){let T=N.name,D=h.args.find(R=>R.name===T);if(!D){e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expected but ${t.name}.${m} does not provide it.`,[N.astNode,h.astNode]);continue}if(!(0,WY.isEqualType)(N.type,D.type)){var o,u;e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expects type ${(0,ti.inspect)(N.type)} but ${t.name}.${m}(${T}:) is type ${(0,ti.inspect)(D.type)}.`,[(o=N.astNode)===null||o===void 0?void 0:o.type,(u=D.astNode)===null||u===void 0?void 0:u.type])}}for(let N of h.args){let T=N.name;!l.args.find(R=>R.name===T)&&(0,zr.isRequiredArgument)(N)&&e.reportError(`Object field ${t.name}.${m} includes required argument ${T} that is missing from the Interface field ${r.name}.${m}.`,[N.astNode,l.astNode])}}}function __e(e,t,r){let n=t.getInterfaces();for(let i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...Ah(r,i),...Ah(t,r)])}function S_e(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,eJ(t,i.name));continue}n[i.name]=!0,(0,zr.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ti.inspect)(i)}.`,eJ(t,String(i)))}}function O_e(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)Wl(e,n)}function D_e(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(Wl(e,a),!(0,zr.isInputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,ti.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}if((0,zr.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[p0(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&b_e(t,a,e)}}function b_e(e,t,r){if((0,zr.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function A_e(e){let t=Object.create(null),r=[],n=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,n[a.name]=r.length;let o=Object.values(a.getFields());for(let u of o)if((0,zr.isNonNullType)(u.type)&&(0,zr.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,m=n[l.name];if(r.push(u),m===void 0)i(l);else{let h=r.slice(m),N=h.map(T=>T.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${N}".`,h.map(T=>T.astNode))}r.pop()}n[a.name]=void 0}}function Ah(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function eJ(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function p0(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===tJ.GraphQLDeprecatedDirective.name)}});var Bo=O(y0=>{"use strict";d();p();f();Object.defineProperty(y0,"__esModule",{value:!0});y0.typeFromAST=h0;var m0=jt(),nJ=Vt();function h0(e,t){switch(t.kind){case m0.Kind.LIST_TYPE:{let r=h0(e,t.type);return r&&new nJ.GraphQLList(r)}case m0.Kind.NON_NULL_TYPE:{let r=h0(e,t.type);return r&&new nJ.GraphQLNonNull(r)}case m0.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var yg=O(wh=>{"use strict";d();p();f();Object.defineProperty(wh,"__esModule",{value:!0});wh.TypeInfo=void 0;wh.visitWithTypeInfo=P_e;var R_e=Po(),Hr=jt(),iJ=$l(),Wr=Vt(),xf=ma(),aJ=Bo(),N0=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:w_e,r&&((0,Wr.isInputType)(r)&&this._inputTypeStack.push(r),(0,Wr.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,Wr.isOutputType)(r)&&this._typeStack.push(r))}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 r=this._schema;switch(t.kind){case Hr.Kind.SELECTION_SET:{let i=(0,Wr.getNamedType)(this.getType());this._parentTypeStack.push((0,Wr.isCompositeType)(i)?i:void 0);break}case Hr.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(r,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Wr.isOutputType)(o)?o:void 0);break}case Hr.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case Hr.Kind.OPERATION_DEFINITION:{let i=r.getRootType(t.operation);this._typeStack.push((0,Wr.isObjectType)(i)?i:void 0);break}case Hr.Kind.INLINE_FRAGMENT:case Hr.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,aJ.typeFromAST)(r,i):(0,Wr.getNamedType)(this.getType());this._typeStack.push((0,Wr.isOutputType)(a)?a:void 0);break}case Hr.Kind.VARIABLE_DEFINITION:{let i=(0,aJ.typeFromAST)(r,t.type);this._inputTypeStack.push((0,Wr.isInputType)(i)?i:void 0);break}case Hr.Kind.ARGUMENT:{var n;let i,a,o=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.LIST:{let i=(0,Wr.getNullableType)(this.getInputType()),a=(0,Wr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.OBJECT_FIELD:{let i=(0,Wr.getNamedType)(this.getInputType()),a,o;(0,Wr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.ENUM:{let i=(0,Wr.getNamedType)(this.getInputType()),a;(0,Wr.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Hr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Hr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Hr.Kind.DIRECTIVE:this._directive=null;break;case Hr.Kind.OPERATION_DEFINITION:case Hr.Kind.INLINE_FRAGMENT:case Hr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Hr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Hr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Hr.Kind.LIST:case Hr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Hr.Kind.ENUM:this._enumValue=null;break;default:}}};wh.TypeInfo=N0;function w_e(e,t,r){let n=r.name.value;if(n===xf.SchemaMetaFieldDef.name&&e.getQueryType()===t)return xf.SchemaMetaFieldDef;if(n===xf.TypeMetaFieldDef.name&&e.getQueryType()===t)return xf.TypeMetaFieldDef;if(n===xf.TypeNameMetaFieldDef.name&&(0,Wr.isCompositeType)(t))return xf.TypeNameMetaFieldDef;if((0,Wr.isObjectType)(t)||(0,Wr.isInterfaceType)(t))return t.getFields()[n]}function P_e(e,t){return{enter(...r){let n=r[0];e.enter(n);let i=(0,iJ.getEnterLeaveForKind)(t,n.kind).enter;if(i){let a=i.apply(t,r);return a!==void 0&&(e.leave(n),(0,R_e.isNode)(a)&&e.enter(a)),a}},leave(...r){let n=r[0],i=(0,iJ.getEnterLeaveForKind)(t,n.kind).leave,a;return i&&(a=i.apply(t,r)),e.leave(n),a}}}});var Xl=O(ha=>{"use strict";d();p();f();Object.defineProperty(ha,"__esModule",{value:!0});ha.isConstValueNode=T0;ha.isDefinitionNode=F_e;ha.isExecutableDefinitionNode=oJ;ha.isSelectionNode=L_e;ha.isTypeDefinitionNode=cJ;ha.isTypeExtensionNode=dJ;ha.isTypeNode=C_e;ha.isTypeSystemDefinitionNode=uJ;ha.isTypeSystemExtensionNode=lJ;ha.isValueNode=sJ;var Kt=jt();function F_e(e){return oJ(e)||uJ(e)||lJ(e)}function oJ(e){return e.kind===Kt.Kind.OPERATION_DEFINITION||e.kind===Kt.Kind.FRAGMENT_DEFINITION}function L_e(e){return e.kind===Kt.Kind.FIELD||e.kind===Kt.Kind.FRAGMENT_SPREAD||e.kind===Kt.Kind.INLINE_FRAGMENT}function sJ(e){return e.kind===Kt.Kind.VARIABLE||e.kind===Kt.Kind.INT||e.kind===Kt.Kind.FLOAT||e.kind===Kt.Kind.STRING||e.kind===Kt.Kind.BOOLEAN||e.kind===Kt.Kind.NULL||e.kind===Kt.Kind.ENUM||e.kind===Kt.Kind.LIST||e.kind===Kt.Kind.OBJECT}function T0(e){return sJ(e)&&(e.kind===Kt.Kind.LIST?e.values.some(T0):e.kind===Kt.Kind.OBJECT?e.fields.some(t=>T0(t.value)):e.kind!==Kt.Kind.VARIABLE)}function C_e(e){return e.kind===Kt.Kind.NAMED_TYPE||e.kind===Kt.Kind.LIST_TYPE||e.kind===Kt.Kind.NON_NULL_TYPE}function uJ(e){return e.kind===Kt.Kind.SCHEMA_DEFINITION||cJ(e)||e.kind===Kt.Kind.DIRECTIVE_DEFINITION}function cJ(e){return e.kind===Kt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Kt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Kt.Kind.UNION_TYPE_DEFINITION||e.kind===Kt.Kind.ENUM_TYPE_DEFINITION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function lJ(e){return e.kind===Kt.Kind.SCHEMA_EXTENSION||dJ(e)}function dJ(e){return e.kind===Kt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Kt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Kt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Kt.Kind.UNION_TYPE_EXTENSION||e.kind===Kt.Kind.ENUM_TYPE_EXTENSION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var g0=O(E0=>{"use strict";d();p();f();Object.defineProperty(E0,"__esModule",{value:!0});E0.ExecutableDefinitionsRule=k_e;var B_e=at(),fJ=jt(),U_e=Xl();function k_e(e){return{Document(t){for(let r of t.definitions)if(!(0,U_e.isExecutableDefinitionNode)(r)){let n=r.kind===fJ.Kind.SCHEMA_DEFINITION||r.kind===fJ.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new B_e.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var v0=O(I0=>{"use strict";d();p();f();Object.defineProperty(I0,"__esModule",{value:!0});I0.FieldsOnCorrectTypeRule=j_e;var pJ=qc(),q_e=ph(),x_e=Mc(),M_e=at(),Ph=Vt();function j_e(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,pJ.didYouMean)("to use an inline fragment on",V_e(i,r,a));o===""&&(o=(0,pJ.didYouMean)(K_e(r,a))),e.reportError(new M_e.GraphQLError(`Cannot query field "${a}" on type "${r.name}".`+o,{nodes:t}))}}}}function V_e(e,t,r){if(!(0,Ph.isAbstractType)(t))return[];let n=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[r]){n.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var a;u.getFields()[r]&&(n.add(u),i[u.name]=((a=i[u.name])!==null&&a!==void 0?a:0)+1)}}return[...n].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Ph.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Ph.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,q_e.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function K_e(e,t){if((0,Ph.isObjectType)(e)||(0,Ph.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,x_e.suggestionList)(t,r)}return[]}});var S0=O(_0=>{"use strict";d();p();f();Object.defineProperty(_0,"__esModule",{value:!0});_0.FragmentsOnCompositeTypesRule=$_e;var mJ=at(),hJ=Gi(),yJ=Vt(),NJ=Bo();function $_e(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,NJ.typeFromAST)(e.getSchema(),r);if(n&&!(0,yJ.isCompositeType)(n)){let i=(0,hJ.print)(r);e.reportError(new mJ.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,NJ.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,yJ.isCompositeType)(r)){let n=(0,hJ.print)(t.typeCondition);e.reportError(new mJ.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var O0=O(Ng=>{"use strict";d();p();f();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.KnownArgumentNamesOnDirectivesRule=IJ;Ng.KnownArgumentNamesRule=Y_e;var TJ=qc(),EJ=Mc(),gJ=at(),G_e=jt(),Q_e=Si();function Y_e(e){return G(q({},IJ(e)),{Argument(t){let r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){let a=t.name.value,o=n.args.map(l=>l.name),u=(0,EJ.suggestionList)(a,o);e.reportError(new gJ.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${n.name}".`+(0,TJ.didYouMean)(u),{nodes:t}))}}})}function IJ(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Q_e.specifiedDirectives;for(let o of n)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===G_e.Kind.DIRECTIVE_DEFINITION){var a;let u=(a=o.arguments)!==null&&a!==void 0?a:[];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 m of o.arguments){let h=m.name.value;if(!l.includes(h)){let N=(0,EJ.suggestionList)(h,l);e.reportError(new gJ.GraphQLError(`Unknown argument "${h}" on directive "@${u}".`+(0,TJ.didYouMean)(N),{nodes:m}))}}return!1}}}});var R0=O(A0=>{"use strict";d();p();f();Object.defineProperty(A0,"__esModule",{value:!0});A0.KnownDirectivesRule=H_e;var J_e=ur(),D0=Zn(),vJ=at(),b0=Po(),bn=Ff(),Rr=jt(),z_e=Si();function H_e(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():z_e.specifiedDirectives;for(let a of n)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===Rr.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,u,l,m){let h=a.name.value,N=t[h];if(!N){e.reportError(new vJ.GraphQLError(`Unknown directive "@${h}".`,{nodes:a}));return}let T=W_e(m);T&&!N.includes(T)&&e.reportError(new vJ.GraphQLError(`Directive "@${h}" may not be used on ${T}.`,{nodes:a}))}}}function W_e(e){let t=e[e.length-1];switch("kind"in t||(0,D0.invariant)(!1),t.kind){case Rr.Kind.OPERATION_DEFINITION:return X_e(t.operation);case Rr.Kind.FIELD:return bn.DirectiveLocation.FIELD;case Rr.Kind.FRAGMENT_SPREAD:return bn.DirectiveLocation.FRAGMENT_SPREAD;case Rr.Kind.INLINE_FRAGMENT:return bn.DirectiveLocation.INLINE_FRAGMENT;case Rr.Kind.FRAGMENT_DEFINITION:return bn.DirectiveLocation.FRAGMENT_DEFINITION;case Rr.Kind.VARIABLE_DEFINITION:return bn.DirectiveLocation.VARIABLE_DEFINITION;case Rr.Kind.SCHEMA_DEFINITION:case Rr.Kind.SCHEMA_EXTENSION:return bn.DirectiveLocation.SCHEMA;case Rr.Kind.SCALAR_TYPE_DEFINITION:case Rr.Kind.SCALAR_TYPE_EXTENSION:return bn.DirectiveLocation.SCALAR;case Rr.Kind.OBJECT_TYPE_DEFINITION:case Rr.Kind.OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.OBJECT;case Rr.Kind.FIELD_DEFINITION:return bn.DirectiveLocation.FIELD_DEFINITION;case Rr.Kind.INTERFACE_TYPE_DEFINITION:case Rr.Kind.INTERFACE_TYPE_EXTENSION:return bn.DirectiveLocation.INTERFACE;case Rr.Kind.UNION_TYPE_DEFINITION:case Rr.Kind.UNION_TYPE_EXTENSION:return bn.DirectiveLocation.UNION;case Rr.Kind.ENUM_TYPE_DEFINITION:case Rr.Kind.ENUM_TYPE_EXTENSION:return bn.DirectiveLocation.ENUM;case Rr.Kind.ENUM_VALUE_DEFINITION:return bn.DirectiveLocation.ENUM_VALUE;case Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Rr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.INPUT_OBJECT;case Rr.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,D0.invariant)(!1),r.kind===Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION?bn.DirectiveLocation.INPUT_FIELD_DEFINITION:bn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,D0.invariant)(!1,"Unexpected kind: "+(0,J_e.inspect)(t.kind))}}function X_e(e){switch(e){case b0.OperationTypeNode.QUERY:return bn.DirectiveLocation.QUERY;case b0.OperationTypeNode.MUTATION:return bn.DirectiveLocation.MUTATION;case b0.OperationTypeNode.SUBSCRIPTION:return bn.DirectiveLocation.SUBSCRIPTION}}});var P0=O(w0=>{"use strict";d();p();f();Object.defineProperty(w0,"__esModule",{value:!0});w0.KnownFragmentNamesRule=eSe;var Z_e=at();function eSe(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Z_e.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var C0=O(L0=>{"use strict";d();p();f();Object.defineProperty(L0,"__esModule",{value:!0});L0.KnownTypeNamesRule=oSe;var tSe=qc(),rSe=Mc(),nSe=at(),F0=Xl(),iSe=ma(),aSe=Co();function oSe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let a of e.getDocument().definitions)(0,F0.isTypeDefinitionNode)(a)&&(n[a.name.value]=!0);let i=[...Object.keys(r),...Object.keys(n)];return{NamedType(a,o,u,l,m){let h=a.name.value;if(!r[h]&&!n[h]){var N;let T=(N=m[2])!==null&&N!==void 0?N:u,D=T!=null&&sSe(T);if(D&&_J.includes(h))return;let R=(0,rSe.suggestionList)(h,D?_J.concat(i):i);e.reportError(new nSe.GraphQLError(`Unknown type "${h}".`+(0,tSe.didYouMean)(R),{nodes:a}))}}}}var _J=[...aSe.specifiedScalarTypes,...iSe.introspectionTypes].map(e=>e.name);function sSe(e){return"kind"in e&&((0,F0.isTypeSystemDefinitionNode)(e)||(0,F0.isTypeSystemExtensionNode)(e))}});var U0=O(B0=>{"use strict";d();p();f();Object.defineProperty(B0,"__esModule",{value:!0});B0.LoneAnonymousOperationRule=lSe;var uSe=at(),cSe=jt();function lSe(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===cSe.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new uSe.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var q0=O(k0=>{"use strict";d();p();f();Object.defineProperty(k0,"__esModule",{value:!0});k0.LoneSchemaDefinitionRule=dSe;var SJ=at();function dSe(e){var t,r,n;let i=e.getSchema(),a=(t=(r=(n=i==null?void 0:i.astNode)!==null&&n!==void 0?n:i==null?void 0:i.getQueryType())!==null&&r!==void 0?r:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(a){e.reportError(new SJ.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new SJ.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var M0=O(x0=>{"use strict";d();p();f();Object.defineProperty(x0,"__esModule",{value:!0});x0.MaxIntrospectionDepthRule=mSe;var fSe=at(),OJ=jt(),pSe=3;function mSe(e){function t(r,n=Object.create(null),i=0){if(r.kind===OJ.Kind.FRAGMENT_SPREAD){let a=r.name.value;if(n[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return n[a]=!0,t(o,n,i)}finally{n[a]=void 0}}if(r.kind===OJ.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(i++,i>=pSe))return!0;if("selectionSet"in r&&r.selectionSet){for(let a of r.selectionSet.selections)if(t(a,n,i))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new fSe.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var V0=O(j0=>{"use strict";d();p();f();Object.defineProperty(j0,"__esModule",{value:!0});j0.NoFragmentCyclesRule=ySe;var hSe=at();function ySe(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let u=e.getFragmentSpreads(a.selectionSet);if(u.length!==0){n[o]=r.length;for(let l of u){let m=l.name.value,h=n[m];if(r.push(l),h===void 0){let N=e.getFragment(m);N&&i(N)}else{let N=r.slice(h),T=N.slice(0,-1).map(D=>'"'+D.name.value+'"').join(", ");e.reportError(new hSe.GraphQLError(`Cannot spread fragment "${m}" within itself`+(T!==""?` via ${T}.`:"."),{nodes:N}))}r.pop()}n[o]=void 0}}}});var $0=O(K0=>{"use strict";d();p();f();Object.defineProperty(K0,"__esModule",{value:!0});K0.NoUndefinedVariablesRule=TSe;var NSe=at();function TSe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i}of n){let a=i.name.value;t[a]!==!0&&e.reportError(new NSe.GraphQLError(r.name?`Variable "$${a}" is not defined by operation "${r.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var Q0=O(G0=>{"use strict";d();p();f();Object.defineProperty(G0,"__esModule",{value:!0});G0.NoUnusedFragmentsRule=gSe;var ESe=at();function gSe(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))n[a.name.value]=!0;for(let i of r){let a=i.name.value;n[a]!==!0&&e.reportError(new ESe.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var J0=O(Y0=>{"use strict";d();p();f();Object.defineProperty(Y0,"__esModule",{value:!0});Y0.NoUnusedVariablesRule=vSe;var ISe=at();function vSe(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(let{node:a}of i)n[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;n[o]!==!0&&e.reportError(new ISe.GraphQLError(r.name?`Variable "$${o}" is never used in operation "${r.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(r){t.push(r)}}}});var W0=O(H0=>{"use strict";d();p();f();Object.defineProperty(H0,"__esModule",{value:!0});H0.sortValueNode=z0;var _Se=ph(),ws=jt();function z0(e){switch(e.kind){case ws.Kind.OBJECT:return G(q({},e),{fields:SSe(e.fields)});case ws.Kind.LIST:return G(q({},e),{values:e.values.map(z0)});case ws.Kind.INT:case ws.Kind.FLOAT:case ws.Kind.STRING:case ws.Kind.BOOLEAN:case ws.Kind.NULL:case ws.Kind.ENUM:case ws.Kind.VARIABLE:return e}}function SSe(e){return e.map(t=>G(q({},t),{value:z0(t.value)})).sort((t,r)=>(0,_Se.naturalCompare)(t.name.value,r.name.value))}});var iA=O(nA=>{"use strict";d();p();f();Object.defineProperty(nA,"__esModule",{value:!0});nA.OverlappingFieldsCanBeMergedRule=ASe;var DJ=ur(),OSe=at(),X0=jt(),DSe=Gi(),Oi=Vt(),bSe=W0(),AJ=Bo();function RJ(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+RJ(r)).join(" and "):e}function ASe(e){let t=new tA,r=new Map;return{SelectionSet(n){let i=RSe(e,r,t,e.getParentType(),n);for(let[[a,o],u,l]of i){let m=RJ(o);e.reportError(new OSe.GraphQLError(`Fields "${a}" conflict because ${m}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function RSe(e,t,r,n,i){let a=[],[o,u]=gg(e,t,n,i);if(PSe(e,a,t,r,o),u.length!==0)for(let l=0;l1)for(let u=0;u[a.value,o]));return r.every(a=>{let o=a.value,u=i.get(a.name.value);return u===void 0?!1:bJ(o)===bJ(u)})}function bJ(e){return(0,DSe.print)((0,bSe.sortValueNode)(e))}function Z0(e,t){return(0,Oi.isListType)(e)?(0,Oi.isListType)(t)?Z0(e.ofType,t.ofType):!0:(0,Oi.isListType)(t)?!0:(0,Oi.isNonNullType)(e)?(0,Oi.isNonNullType)(t)?Z0(e.ofType,t.ofType):!0:(0,Oi.isNonNullType)(t)?!0:(0,Oi.isLeafType)(e)||(0,Oi.isLeafType)(t)?e!==t:!1}function gg(e,t,r,n){let i=t.get(n);if(i)return i;let a=Object.create(null),o=Object.create(null);PJ(e,r,n,a,o);let u=[a,Object.keys(o)];return t.set(n,u),u}function eA(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let i=(0,AJ.typeFromAST)(e.getSchema(),r.typeCondition);return gg(e,t,i,r.selectionSet)}function PJ(e,t,r,n,i){for(let a of r.selections)switch(a.kind){case X0.Kind.FIELD:{let o=a.name.value,u;((0,Oi.isObjectType)(t)||(0,Oi.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=a.alias?a.alias.value:o;n[l]||(n[l]=[]),n[l].push([t,a,u]);break}case X0.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case X0.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,u=o?(0,AJ.typeFromAST)(e.getSchema(),o):t;PJ(e,u,a.selectionSet,n,i);break}}}function LSe(e,t,r,n){if(e.length>0)return[[t,e.map(([i])=>i)],[r,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}var tA=class{constructor(){this._data=new Map}has(t,r,n){var i;let[a,o]=t{"use strict";d();p();f();Object.defineProperty(oA,"__esModule",{value:!0});oA.PossibleFragmentSpreadsRule=BSe;var Ig=ur(),FJ=at(),aA=Vt(),LJ=Eh(),CSe=Bo();function BSe(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,aA.isCompositeType)(r)&&(0,aA.isCompositeType)(n)&&!(0,LJ.doTypesOverlap)(e.getSchema(),r,n)){let i=(0,Ig.inspect)(n),a=(0,Ig.inspect)(r);e.reportError(new FJ.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=USe(e,r),i=e.getParentType();if(n&&i&&!(0,LJ.doTypesOverlap)(e.getSchema(),n,i)){let a=(0,Ig.inspect)(i),o=(0,Ig.inspect)(n);e.reportError(new FJ.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function USe(e,t){let r=e.getFragment(t);if(r){let n=(0,CSe.typeFromAST)(e.getSchema(),r.typeCondition);if((0,aA.isCompositeType)(n))return n}}});var cA=O(uA=>{"use strict";d();p();f();Object.defineProperty(uA,"__esModule",{value:!0});uA.PossibleTypeExtensionsRule=MSe;var kSe=qc(),BJ=ur(),UJ=Zn(),qSe=Mc(),CJ=at(),Fr=jt(),xSe=Xl(),Mf=Vt();function MSe(e){let t=e.getSchema(),r=Object.create(null);for(let i of e.getDocument().definitions)(0,xSe.isTypeDefinitionNode)(i)&&(r[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){let a=i.name.value,o=r[a],u=t==null?void 0:t.getType(a),l;if(o?l=jSe[o.kind]:u&&(l=VSe(u)),l){if(l!==i.kind){let m=KSe(i.kind);e.reportError(new CJ.GraphQLError(`Cannot extend non-${m} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let m=Object.keys(q(q({},r),t==null?void 0:t.getTypeMap())),h=(0,qSe.suggestionList)(a,m);e.reportError(new CJ.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,kSe.didYouMean)(h),{nodes:i.name}))}}}var jSe={[Fr.Kind.SCALAR_TYPE_DEFINITION]:Fr.Kind.SCALAR_TYPE_EXTENSION,[Fr.Kind.OBJECT_TYPE_DEFINITION]:Fr.Kind.OBJECT_TYPE_EXTENSION,[Fr.Kind.INTERFACE_TYPE_DEFINITION]:Fr.Kind.INTERFACE_TYPE_EXTENSION,[Fr.Kind.UNION_TYPE_DEFINITION]:Fr.Kind.UNION_TYPE_EXTENSION,[Fr.Kind.ENUM_TYPE_DEFINITION]:Fr.Kind.ENUM_TYPE_EXTENSION,[Fr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION};function VSe(e){if((0,Mf.isScalarType)(e))return Fr.Kind.SCALAR_TYPE_EXTENSION;if((0,Mf.isObjectType)(e))return Fr.Kind.OBJECT_TYPE_EXTENSION;if((0,Mf.isInterfaceType)(e))return Fr.Kind.INTERFACE_TYPE_EXTENSION;if((0,Mf.isUnionType)(e))return Fr.Kind.UNION_TYPE_EXTENSION;if((0,Mf.isEnumType)(e))return Fr.Kind.ENUM_TYPE_EXTENSION;if((0,Mf.isInputObjectType)(e))return Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,UJ.invariant)(!1,"Unexpected type: "+(0,BJ.inspect)(e))}function KSe(e){switch(e){case Fr.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Fr.Kind.OBJECT_TYPE_EXTENSION:return"object";case Fr.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Fr.Kind.UNION_TYPE_EXTENSION:return"union";case Fr.Kind.ENUM_TYPE_EXTENSION:return"enum";case Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,UJ.invariant)(!1,"Unexpected kind: "+(0,BJ.inspect)(e))}}});var dA=O(vg=>{"use strict";d();p();f();Object.defineProperty(vg,"__esModule",{value:!0});vg.ProvidedRequiredArgumentsOnDirectivesRule=jJ;vg.ProvidedRequiredArgumentsRule=QSe;var qJ=ur(),kJ=xc(),xJ=at(),MJ=jt(),$Se=Gi(),lA=Vt(),GSe=Si();function QSe(e){return G(q({},jJ(e)),{Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(a=>a.name.value));for(let a of n.args)if(!i.has(a.name)&&(0,lA.isRequiredArgument)(a)){let o=(0,qJ.inspect)(a.type);e.reportError(new xJ.GraphQLError(`Field "${n.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function jJ(e){var t;let r=Object.create(null),n=e.getSchema(),i=(t=n==null?void 0:n.getDirectives())!==null&&t!==void 0?t:GSe.specifiedDirectives;for(let u of i)r[u.name]=(0,kJ.keyMap)(u.args.filter(lA.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let u of a)if(u.kind===MJ.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];r[u.name.value]=(0,kJ.keyMap)(l.filter(YSe),m=>m.name.value)}return{Directive:{leave(u){let l=u.name.value,m=r[l];if(m){var h;let N=(h=u.arguments)!==null&&h!==void 0?h:[],T=new Set(N.map(D=>D.name.value));for(let[D,R]of Object.entries(m))if(!T.has(D)){let C=(0,lA.isType)(R.type)?(0,qJ.inspect)(R.type):(0,$Se.print)(R.type);e.reportError(new xJ.GraphQLError(`Directive "@${l}" argument "${D}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function YSe(e){return e.type.kind===MJ.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var pA=O(fA=>{"use strict";d();p();f();Object.defineProperty(fA,"__esModule",{value:!0});fA.ScalarLeafsRule=JSe;var VJ=ur(),KJ=at(),$J=Vt();function JSe(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r){if((0,$J.isLeafType)((0,$J.getNamedType)(r))){if(n){let i=t.name.value,a=(0,VJ.inspect)(r);e.reportError(new KJ.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:n}))}}else if(!n){let i=t.name.value,a=(0,VJ.inspect)(r);e.reportError(new KJ.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var hA=O(mA=>{"use strict";d();p();f();Object.defineProperty(mA,"__esModule",{value:!0});mA.printPathArray=zSe;function zSe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Fh=O(_g=>{"use strict";d();p();f();Object.defineProperty(_g,"__esModule",{value:!0});_g.addPath=HSe;_g.pathToArray=WSe;function HSe(e,t,r){return{prev:e,key:t,typename:r}}function WSe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var NA=O(yA=>{"use strict";d();p();f();Object.defineProperty(yA,"__esModule",{value:!0});yA.coerceInputValue=iOe;var XSe=qc(),Sg=ur(),ZSe=Zn(),eOe=fg(),tOe=wo(),eo=Fh(),rOe=hA(),nOe=Mc(),Ps=at(),Lh=Vt();function iOe(e,t,r=aOe){return Ch(e,t,r,void 0)}function aOe(e,t,r){let n="Invalid value "+(0,Sg.inspect)(t);throw e.length>0&&(n+=` at "value${(0,rOe.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function Ch(e,t,r,n){if((0,Lh.isNonNullType)(t)){if(e!=null)return Ch(e,t.ofType,r,n);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected non-nullable type "${(0,Sg.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Lh.isListType)(t)){let i=t.ofType;return(0,eOe.isIterableObject)(e)?Array.from(e,(a,o)=>{let u=(0,eo.addPath)(n,o,void 0);return Ch(a,i,r,u)}):[Ch(e,i,r,n)]}if((0,Lh.isInputObjectType)(t)){if(!(0,tOe.isObjectLike)(e)){r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Lh.isNonNullType)(o.type)){let l=(0,Sg.inspect)(o.type);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ch(u,o.type,r,(0,eo.addPath)(n,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let u=(0,nOe.suggestionList)(o,Object.keys(t.getFields()));r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,XSe.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&r((0,eo.pathToArray)(n).concat(u),l,new Ps.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,Lh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof Ps.GraphQLError?r((0,eo.pathToArray)(n),e,a):r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,ZSe.invariant)(!1,"Unexpected input type: "+(0,Sg.inspect)(t))}});var Uh=O(TA=>{"use strict";d();p();f();Object.defineProperty(TA,"__esModule",{value:!0});TA.valueFromAST=Bh;var oOe=ur(),sOe=Zn(),uOe=xc(),jf=jt(),Zl=Vt();function Bh(e,t,r){if(e){if(e.kind===jf.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let i=r[n];return i===null&&(0,Zl.isNonNullType)(t)?void 0:i}if((0,Zl.isNonNullType)(t))return e.kind===jf.Kind.NULL?void 0:Bh(e,t.ofType,r);if(e.kind===jf.Kind.NULL)return null;if((0,Zl.isListType)(t)){let n=t.ofType;if(e.kind===jf.Kind.LIST){let a=[];for(let o of e.values)if(GJ(o,r)){if((0,Zl.isNonNullType)(n))return;a.push(null)}else{let u=Bh(o,n,r);if(u===void 0)return;a.push(u)}return a}let i=Bh(e,n,r);return i===void 0?void 0:[i]}if((0,Zl.isInputObjectType)(t)){if(e.kind!==jf.Kind.OBJECT)return;let n=Object.create(null),i=(0,uOe.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||GJ(o.value,r)){if(a.defaultValue!==void 0)n[a.name]=a.defaultValue;else if((0,Zl.isNonNullType)(a.type))return;continue}let u=Bh(o.value,a.type,r);if(u===void 0)return;n[a.name]=u}if(t.isOneOf){let a=Object.keys(n);if(a.length!==1||n[a[0]]===null)return}return n}if((0,Zl.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(i){return}return n===void 0?void 0:n}(0,sOe.invariant)(!1,"Unexpected input type: "+(0,oOe.inspect)(t))}}function GJ(e,t){return e.kind===jf.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var $f=O(kh=>{"use strict";d();p();f();Object.defineProperty(kh,"__esModule",{value:!0});kh.getArgumentValues=zJ;kh.getDirectiveValues=hOe;kh.getVariableValues=pOe;var Vf=ur(),cOe=xc(),lOe=hA(),Fs=at(),QJ=jt(),YJ=Gi(),Kf=Vt(),dOe=NA(),fOe=Bo(),JJ=Uh();function pOe(e,t,r,n){let i=[],a=n==null?void 0:n.maxErrors;try{let o=mOe(e,t,r,u=>{if(a!=null&&i.length>=a)throw new Fs.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 mOe(e,t,r,n){let i={};for(let a of t){let o=a.variable.name.value,u=(0,fOe.typeFromAST)(e,a.type);if(!(0,Kf.isInputType)(u)){let m=(0,YJ.print)(a.type);n(new Fs.GraphQLError(`Variable "$${o}" expected value of type "${m}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!HJ(r,o)){if(a.defaultValue)i[o]=(0,JJ.valueFromAST)(a.defaultValue,u);else if((0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of required type "${m}" was not provided.`,{nodes:a}))}continue}let l=r[o];if(l===null&&(0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of non-null type "${m}" must not be null.`,{nodes:a}));continue}i[o]=(0,dOe.coerceInputValue)(l,u,(m,h,N)=>{let T=`Variable "$${o}" got invalid value `+(0,Vf.inspect)(h);m.length>0&&(T+=` at "${o}${(0,lOe.printPathArray)(m)}"`),n(new Fs.GraphQLError(T+"; "+N.message,{nodes:a,originalError:N}))})}return i}function zJ(e,t,r){var n;let i={},a=(n=t.arguments)!==null&&n!==void 0?n:[],o=(0,cOe.keyMap)(a,u=>u.name.value);for(let u of e.args){let l=u.name,m=u.type,h=o[l];if(!h){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was not provided.`,{nodes:t});continue}let N=h.value,T=N.kind===QJ.Kind.NULL;if(N.kind===QJ.Kind.VARIABLE){let R=N.name.value;if(r==null||!HJ(r,R)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:N});continue}T=r[R]==null}if(T&&(0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of non-null type "${(0,Vf.inspect)(m)}" must not be null.`,{nodes:N});let D=(0,JJ.valueFromAST)(N,m,r);if(D===void 0)throw new Fs.GraphQLError(`Argument "${l}" has invalid value ${(0,YJ.print)(N)}.`,{nodes:N});i[l]=D}return i}function hOe(e,t,r){var n;let i=(n=t.directives)===null||n===void 0?void 0:n.find(a=>a.name.value===e.name);if(i)return zJ(e,i,r)}function HJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var bg=O(Dg=>{"use strict";d();p();f();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.collectFields=TOe;Dg.collectSubfields=EOe;var EA=jt(),yOe=Vt(),WJ=Si(),NOe=Bo(),XJ=$f();function TOe(e,t,r,n,i){let a=new Map;return Og(e,t,r,n,i,a,new Set),a}function EOe(e,t,r,n,i){let a=new Map,o=new Set;for(let u of i)u.selectionSet&&Og(e,t,r,n,u.selectionSet,a,o);return a}function Og(e,t,r,n,i,a,o){for(let u of i.selections)switch(u.kind){case EA.Kind.FIELD:{if(!gA(r,u))continue;let l=gOe(u),m=a.get(l);m!==void 0?m.push(u):a.set(l,[u]);break}case EA.Kind.INLINE_FRAGMENT:{if(!gA(r,u)||!ZJ(e,u,n))continue;Og(e,t,r,n,u.selectionSet,a,o);break}case EA.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!gA(r,u))continue;o.add(l);let m=t[l];if(!m||!ZJ(e,m,n))continue;Og(e,t,r,n,m.selectionSet,a,o);break}}}function gA(e,t){let r=(0,XJ.getDirectiveValues)(WJ.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,XJ.getDirectiveValues)(WJ.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function ZJ(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,NOe.typeFromAST)(e,n);return i===r?!0:(0,yOe.isAbstractType)(i)?e.isSubType(i,r):!1}function gOe(e){return e.alias?e.alias.value:e.name.value}});var vA=O(IA=>{"use strict";d();p();f();Object.defineProperty(IA,"__esModule",{value:!0});IA.SingleFieldSubscriptionsRule=_Oe;var ez=at(),IOe=jt(),vOe=bg();function _Oe(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let m of o.definitions)m.kind===IOe.Kind.FRAGMENT_DEFINITION&&(u[m.name.value]=m);let l=(0,vOe.collectFields)(r,u,a,n,t.selectionSet);if(l.size>1){let N=[...l.values()].slice(1).flat();e.reportError(new ez.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:N}))}for(let m of l.values())m[0].name.value.startsWith("__")&&e.reportError(new ez.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:m}))}}}}}});var Ag=O(_A=>{"use strict";d();p();f();Object.defineProperty(_A,"__esModule",{value:!0});_A.groupBy=SOe;function SOe(e,t){let r=new Map;for(let n of e){let i=t(n),a=r.get(i);a===void 0?r.set(i,[n]):a.push(n)}return r}});var OA=O(SA=>{"use strict";d();p();f();Object.defineProperty(SA,"__esModule",{value:!0});SA.UniqueArgumentDefinitionNamesRule=bOe;var OOe=Ag(),DOe=at();function bOe(e){return{DirectiveDefinition(n){var i;let a=(i=n.arguments)!==null&&i!==void 0?i:[];return r(`@${n.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var i;let a=n.name.value,o=(i=n.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let m=l.name.value,h=(u=l.arguments)!==null&&u!==void 0?u:[];r(`${a}.${m}`,h)}return!1}function r(n,i){let a=(0,OOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new DOe.GraphQLError(`Argument "${n}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var bA=O(DA=>{"use strict";d();p();f();Object.defineProperty(DA,"__esModule",{value:!0});DA.UniqueArgumentNamesRule=wOe;var AOe=Ag(),ROe=at();function wOe(e){return{Field:t,Directive:t};function t(r){var n;let i=(n=r.arguments)!==null&&n!==void 0?n:[],a=(0,AOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new ROe.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var RA=O(AA=>{"use strict";d();p();f();Object.defineProperty(AA,"__esModule",{value:!0});AA.UniqueDirectiveNamesRule=POe;var tz=at();function POe(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;if(r!=null&&r.getDirective(i)){e.reportError(new tz.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[i]?e.reportError(new tz.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}});var FA=O(PA=>{"use strict";d();p();f();Object.defineProperty(PA,"__esModule",{value:!0});PA.UniqueDirectivesPerLocationRule=COe;var FOe=at(),wA=jt(),rz=Xl(),LOe=Si();function COe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():LOe.specifiedDirectives;for(let u of n)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===wA.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===wA.Kind.SCHEMA_DEFINITION||u.kind===wA.Kind.SCHEMA_EXTENSION)l=a;else if((0,rz.isTypeDefinitionNode)(u)||(0,rz.isTypeExtensionNode)(u)){let m=u.name.value;l=o[m],l===void 0&&(o[m]=l=Object.create(null))}else l=Object.create(null);for(let m of u.directives){let h=m.name.value;t[h]&&(l[h]?e.reportError(new FOe.GraphQLError(`The directive "@${h}" can only be used once at this location.`,{nodes:[l[h],m]})):l[h]=m)}}}}});var CA=O(LA=>{"use strict";d();p();f();Object.defineProperty(LA,"__esModule",{value:!0});LA.UniqueEnumValueNamesRule=UOe;var nz=at(),BOe=Vt();function UOe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value,T=r[u];(0,BOe.isEnumType)(T)&&T.getValue(N)?e.reportError(new nz.GraphQLError(`Enum value "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new nz.GraphQLError(`Enum value "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}});var kA=O(UA=>{"use strict";d();p();f();Object.defineProperty(UA,"__esModule",{value:!0});UA.UniqueFieldDefinitionNamesRule=kOe;var iz=at(),BA=Vt();function kOe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value;qOe(r[u],N)?e.reportError(new iz.GraphQLError(`Field "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new iz.GraphQLError(`Field "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}function qOe(e,t){return(0,BA.isObjectType)(e)||(0,BA.isInterfaceType)(e)||(0,BA.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var xA=O(qA=>{"use strict";d();p();f();Object.defineProperty(qA,"__esModule",{value:!0});qA.UniqueFragmentNamesRule=MOe;var xOe=at();function MOe(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new xOe.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var jA=O(MA=>{"use strict";d();p();f();Object.defineProperty(MA,"__esModule",{value:!0});MA.UniqueInputFieldNamesRule=KOe;var jOe=Zn(),VOe=at();function KOe(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,jOe.invariant)(!1),r=n}},ObjectField(n){let i=n.name.value;r[i]?e.reportError(new VOe.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name}}}});var KA=O(VA=>{"use strict";d();p();f();Object.defineProperty(VA,"__esModule",{value:!0});VA.UniqueOperationNamesRule=GOe;var $Oe=at();function GOe(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new $Oe.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var GA=O($A=>{"use strict";d();p();f();Object.defineProperty($A,"__esModule",{value:!0});$A.UniqueOperationTypesRule=QOe;var az=at();function QOe(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let u=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let m=l.operation,h=r[m];n[m]?e.reportError(new az.GraphQLError(`Type for ${m} already defined in the schema. It cannot be redefined.`,{nodes:l})):h?e.reportError(new az.GraphQLError(`There can be only one ${m} type in schema.`,{nodes:[h,l]})):r[m]=l}return!1}}});var YA=O(QA=>{"use strict";d();p();f();Object.defineProperty(QA,"__esModule",{value:!0});QA.UniqueTypeNamesRule=YOe;var oz=at();function YOe(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){let a=i.name.value;if(r!=null&&r.getType(a)){e.reportError(new oz.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new oz.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var zA=O(JA=>{"use strict";d();p();f();Object.defineProperty(JA,"__esModule",{value:!0});JA.UniqueVariableNamesRule=HOe;var JOe=Ag(),zOe=at();function HOe(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=(0,JOe.groupBy)(n,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new zOe.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var XA=O(WA=>{"use strict";d();p();f();Object.defineProperty(WA,"__esModule",{value:!0});WA.ValuesOfCorrectTypeRule=eDe;var WOe=qc(),qh=ur(),XOe=xc(),ZOe=Mc(),ko=at(),HA=jt(),Rg=Gi(),Uo=Vt();function eDe(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,Uo.getNullableType)(e.getParentInputType());if(!(0,Uo.isListType)(n))return ed(e,r),!1},ObjectValue(r){let n=(0,Uo.getNamedType)(e.getInputType());if(!(0,Uo.isInputObjectType)(n))return ed(e,r),!1;let i=(0,XOe.keyMap)(r.fields,a=>a.name.value);for(let a of Object.values(n.getFields()))if(!i[a.name]&&(0,Uo.isRequiredInputField)(a)){let u=(0,qh.inspect)(a.type);e.reportError(new ko.GraphQLError(`Field "${n.name}.${a.name}" of required type "${u}" was not provided.`,{nodes:r}))}n.isOneOf&&tDe(e,r,n,i,t)},ObjectField(r){let n=(0,Uo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Uo.isInputObjectType)(n)){let a=(0,ZOe.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new ko.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,WOe.didYouMean)(a),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,Uo.isNonNullType)(n)&&e.reportError(new ko.GraphQLError(`Expected value of type "${(0,qh.inspect)(n)}", found ${(0,Rg.print)(r)}.`,{nodes:r}))},EnumValue:r=>ed(e,r),IntValue:r=>ed(e,r),FloatValue:r=>ed(e,r),StringValue:r=>ed(e,r),BooleanValue:r=>ed(e,r)}}function ed(e,t){let r=e.getInputType();if(!r)return;let n=(0,Uo.getNamedType)(r);if(!(0,Uo.isLeafType)(n)){let i=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${i}", found ${(0,Rg.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let a=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Rg.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,qh.inspect)(r);i instanceof ko.GraphQLError?e.reportError(i):e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Rg.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function tDe(e,t,r,n,i){var a;let o=Object.keys(n);if(o.length!==1){e.reportError(new ko.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=n[o[0]])===null||a===void 0?void 0:a.value,m=!l||l.kind===HA.Kind.NULL,h=(l==null?void 0:l.kind)===HA.Kind.VARIABLE;if(m){e.reportError(new ko.GraphQLError(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(h){let N=l.name.value;i[N].type.kind!==HA.Kind.NON_NULL_TYPE&&e.reportError(new ko.GraphQLError(`Variable "${N}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}});var eR=O(ZA=>{"use strict";d();p();f();Object.defineProperty(ZA,"__esModule",{value:!0});ZA.VariablesAreInputTypesRule=oDe;var rDe=at(),nDe=Gi(),iDe=Vt(),aDe=Bo();function oDe(e){return{VariableDefinition(t){let r=(0,aDe.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,iDe.isInputType)(r)){let n=t.variable.name.value,i=(0,nDe.print)(t.type);e.reportError(new rDe.GraphQLError(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var rR=O(tR=>{"use strict";d();p();f();Object.defineProperty(tR,"__esModule",{value:!0});tR.VariablesInAllowedPositionRule=lDe;var sz=ur(),sDe=at(),uDe=jt(),uz=Vt(),cz=Eh(),cDe=Bo();function lDe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i,type:a,defaultValue:o}of n){let u=i.name.value,l=t[u];if(l&&a){let m=e.getSchema(),h=(0,cDe.typeFromAST)(m,l.type);if(h&&!dDe(m,h,l.defaultValue,a,o)){let N=(0,sz.inspect)(h),T=(0,sz.inspect)(a);e.reportError(new sDe.GraphQLError(`Variable "$${u}" of type "${N}" used in position expecting type "${T}".`,{nodes:[l,i]}))}}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function dDe(e,t,r,n,i){if((0,uz.isNonNullType)(n)&&!(0,uz.isNonNullType)(t)){if(!(r!=null&&r.kind!==uDe.Kind.NULL)&&!(i!==void 0))return!1;let u=n.ofType;return(0,cz.isTypeSubTypeOf)(e,t,u)}return(0,cz.isTypeSubTypeOf)(e,t,n)}});var nR=O($c=>{"use strict";d();p();f();Object.defineProperty($c,"__esModule",{value:!0});$c.specifiedSDLRules=$c.specifiedRules=$c.recommendedRules=void 0;var fDe=g0(),pDe=v0(),mDe=S0(),lz=O0(),dz=R0(),hDe=P0(),fz=C0(),yDe=U0(),NDe=q0(),TDe=M0(),EDe=V0(),gDe=$0(),IDe=Q0(),vDe=J0(),_De=iA(),SDe=sA(),ODe=cA(),pz=dA(),DDe=pA(),bDe=vA(),ADe=OA(),mz=bA(),RDe=RA(),hz=FA(),wDe=CA(),PDe=kA(),FDe=xA(),yz=jA(),LDe=KA(),CDe=GA(),BDe=YA(),UDe=zA(),kDe=XA(),qDe=eR(),xDe=rR(),Nz=Object.freeze([TDe.MaxIntrospectionDepthRule]);$c.recommendedRules=Nz;var MDe=Object.freeze([fDe.ExecutableDefinitionsRule,LDe.UniqueOperationNamesRule,yDe.LoneAnonymousOperationRule,bDe.SingleFieldSubscriptionsRule,fz.KnownTypeNamesRule,mDe.FragmentsOnCompositeTypesRule,qDe.VariablesAreInputTypesRule,DDe.ScalarLeafsRule,pDe.FieldsOnCorrectTypeRule,FDe.UniqueFragmentNamesRule,hDe.KnownFragmentNamesRule,IDe.NoUnusedFragmentsRule,SDe.PossibleFragmentSpreadsRule,EDe.NoFragmentCyclesRule,UDe.UniqueVariableNamesRule,gDe.NoUndefinedVariablesRule,vDe.NoUnusedVariablesRule,dz.KnownDirectivesRule,hz.UniqueDirectivesPerLocationRule,lz.KnownArgumentNamesRule,mz.UniqueArgumentNamesRule,kDe.ValuesOfCorrectTypeRule,pz.ProvidedRequiredArgumentsRule,xDe.VariablesInAllowedPositionRule,_De.OverlappingFieldsCanBeMergedRule,yz.UniqueInputFieldNamesRule,...Nz]);$c.specifiedRules=MDe;var jDe=Object.freeze([NDe.LoneSchemaDefinitionRule,CDe.UniqueOperationTypesRule,BDe.UniqueTypeNamesRule,wDe.UniqueEnumValueNamesRule,PDe.UniqueFieldDefinitionNamesRule,ADe.UniqueArgumentDefinitionNamesRule,RDe.UniqueDirectiveNamesRule,fz.KnownTypeNamesRule,dz.KnownDirectivesRule,hz.UniqueDirectivesPerLocationRule,ODe.PossibleTypeExtensionsRule,lz.KnownArgumentNamesOnDirectivesRule,mz.UniqueArgumentNamesRule,yz.UniqueInputFieldNamesRule,pz.ProvidedRequiredArgumentsOnDirectivesRule]);$c.specifiedSDLRules=jDe});var oR=O(Gc=>{"use strict";d();p();f();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ValidationContext=Gc.SDLValidationContext=Gc.ASTValidationContext=void 0;var Tz=jt(),VDe=$l(),Ez=yg(),xh=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===Tz.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],i;for(;i=n.pop();)for(let a of i.selections)a.kind===Tz.Kind.FRAGMENT_SPREAD?r.push(a):a.selectionSet&&n.push(a.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let u=o.name.value;if(n[u]!==!0){n[u]=!0;let l=this.getFragment(u);l&&(r.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Gc.ASTValidationContext=xh;var iR=class extends xh{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gc.SDLValidationContext=iR;var aR=class extends xh{constructor(t,r,n,i){super(r,i),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],i=new Ez.TypeInfo(this._schema);(0,VDe.visit)(t,(0,Ez.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){n.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}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()}};Gc.ValidationContext=aR});var Qf=O(Gf=>{"use strict";d();p();f();Object.defineProperty(Gf,"__esModule",{value:!0});Gf.assertValidSDL=YDe;Gf.assertValidSDLExtension=JDe;Gf.validate=QDe;Gf.validateSDL=sR;var KDe=ui(),$De=at(),wg=$l(),GDe=Rh(),gz=yg(),Iz=nR(),vz=oR();function QDe(e,t,r=Iz.specifiedRules,n,i=new gz.TypeInfo(e)){var a;let o=(a=n==null?void 0:n.maxErrors)!==null&&a!==void 0?a:100;t||(0,KDe.devAssert)(!1,"Must provide document."),(0,GDe.assertValidSchema)(e);let u=Object.freeze({}),l=[],m=new vz.ValidationContext(e,t,i,N=>{if(l.length>=o)throw l.push(new $De.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(N)}),h=(0,wg.visitInParallel)(r.map(N=>N(m)));try{(0,wg.visit)(t,(0,gz.visitWithTypeInfo)(i,h))}catch(N){if(N!==u)throw N}return l}function sR(e,t,r=Iz.specifiedSDLRules){let n=[],i=new vz.SDLValidationContext(e,t,o=>{n.push(o)}),a=r.map(o=>o(i));return(0,wg.visit)(e,(0,wg.visitInParallel)(a)),n}function YDe(e){let t=sR(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` +`))}var fA=class{constructor(t){this._errors=[],this.schema=t}reportError(t,r){let n=Array.isArray(r)?r.filter(Boolean):r;this._errors.push(new h_e.GraphQLError(t,{nodes:n}))}getErrors(){return this._errors}};function E_e(e){let t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,zr.isObjectType)(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${(0,ti.inspect)(r)}.`,(n=dA(t,lA.OperationTypeNode.QUERY))!==null&&n!==void 0?n:r.astNode)}let i=t.getMutationType();if(i&&!(0,zr.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ti.inspect)(i)}.`,(a=dA(t,lA.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,zr.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ti.inspect)(o)}.`,(u=dA(t,lA.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function dA(e,t){var r;return(r=[e.astNode,...e.extensionASTNodes].flatMap(n=>{var i;return(i=n==null?void 0:n.operationTypes)!==null&&i!==void 0?i:[]}).find(n=>n.operation===t))===null||r===void 0?void 0:r.type}function g_e(e){for(let r of e.schema.getDirectives()){if(!(0,tJ.isDirective)(r)){e.reportError(`Expected directive but got: ${(0,ti.inspect)(r)}.`,r==null?void 0:r.astNode);continue}Wl(e,r);for(let n of r.args)if(Wl(e,n),(0,zr.isInputType)(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,ti.inspect)(n.type)}.`,n.astNode),(0,zr.isRequiredArgument)(n)&&n.deprecationReason!=null){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[pA(n.astNode),(t=n.astNode)===null||t===void 0?void 0:t.type])}}}function Wl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function I_e(e){let t=A_e(e),r=e.schema.getTypeMap();for(let n of Object.values(r)){if(!(0,zr.isNamedType)(n)){e.reportError(`Expected GraphQL named type but got: ${(0,ti.inspect)(n)}.`,n.astNode);continue}(0,y_e.isIntrospectionType)(n)||Wl(e,n),(0,zr.isObjectType)(n)||(0,zr.isInterfaceType)(n)?(XY(e,n),ZY(e,n)):(0,zr.isUnionType)(n)?S_e(e,n):(0,zr.isEnumType)(n)?O_e(e,n):(0,zr.isInputObjectType)(n)&&(D_e(e,n),t(n))}}function XY(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of r){if(Wl(e,o),!(0,zr.isOutputType)(o.type)){var n;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,ti.inspect)(o.type)}.`,(n=o.astNode)===null||n===void 0?void 0:n.type)}for(let u of o.args){let l=u.name;if(Wl(e,u),!(0,zr.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,ti.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,zr.isRequiredArgument)(u)&&u.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[pA(u.astNode),(a=u.astNode)===null||a===void 0?void 0:a.type])}}}}function ZY(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!(0,zr.isInterfaceType)(n)){e.reportError(`Type ${(0,ti.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ti.inspect)(n)}.`,Ah(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ah(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,Ah(t,n));continue}r[n.name]=!0,__e(e,t,n),v_e(e,t,n)}}function v_e(e,t,r){let n=t.getFields();for(let l of Object.values(r.getFields())){let m=l.name,h=n[m];if(!h){e.reportError(`Interface field ${r.name}.${m} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,WY.isTypeSubTypeOf)(e.schema,h.type,l.type)){var i,a;e.reportError(`Interface field ${r.name}.${m} expects type ${(0,ti.inspect)(l.type)} but ${t.name}.${m} is type ${(0,ti.inspect)(h.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=h.astNode)===null||a===void 0?void 0:a.type])}for(let N of l.args){let T=N.name,D=h.args.find(R=>R.name===T);if(!D){e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expected but ${t.name}.${m} does not provide it.`,[N.astNode,h.astNode]);continue}if(!(0,WY.isEqualType)(N.type,D.type)){var o,u;e.reportError(`Interface field argument ${r.name}.${m}(${T}:) expects type ${(0,ti.inspect)(N.type)} but ${t.name}.${m}(${T}:) is type ${(0,ti.inspect)(D.type)}.`,[(o=N.astNode)===null||o===void 0?void 0:o.type,(u=D.astNode)===null||u===void 0?void 0:u.type])}}for(let N of h.args){let T=N.name;!l.args.find(R=>R.name===T)&&(0,zr.isRequiredArgument)(N)&&e.reportError(`Object field ${t.name}.${m} includes required argument ${T} that is missing from the Interface field ${r.name}.${m}.`,[N.astNode,l.astNode])}}}function __e(e,t,r){let n=t.getInterfaces();for(let i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...Ah(r,i),...Ah(t,r)])}function S_e(e,t){let r=t.getTypes();r.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,eJ(t,i.name));continue}n[i.name]=!0,(0,zr.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ti.inspect)(i)}.`,eJ(t,String(i)))}}function O_e(e,t){let r=t.getValues();r.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let n of r)Wl(e,n)}function D_e(e,t){let r=Object.values(t.getFields());r.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let a of r){if(Wl(e,a),!(0,zr.isInputType)(a.type)){var n;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,ti.inspect)(a.type)}.`,(n=a.astNode)===null||n===void 0?void 0:n.type)}if((0,zr.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[pA(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&b_e(t,a,e)}}function b_e(e,t,r){if((0,zr.isNonNullType)(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(n=t.astNode)===null||n===void 0?void 0:n.type)}t.defaultValue!==void 0&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function A_e(e){let t=Object.create(null),r=[],n=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,n[a.name]=r.length;let o=Object.values(a.getFields());for(let u of o)if((0,zr.isNonNullType)(u.type)&&(0,zr.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,m=n[l.name];if(r.push(u),m===void 0)i(l);else{let h=r.slice(m),N=h.map(T=>T.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${N}".`,h.map(T=>T.astNode))}r.pop()}n[a.name]=void 0}}function Ah(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function eJ(e,t){let{astNode:r,extensionASTNodes:n}=e;return(r!=null?[r,...n]:n).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function pA(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(r=>r.name.value===tJ.GraphQLDeprecatedDirective.name)}});var Bo=O(yA=>{"use strict";d();p();f();Object.defineProperty(yA,"__esModule",{value:!0});yA.typeFromAST=hA;var mA=jt(),nJ=Vt();function hA(e,t){switch(t.kind){case mA.Kind.LIST_TYPE:{let r=hA(e,t.type);return r&&new nJ.GraphQLList(r)}case mA.Kind.NON_NULL_TYPE:{let r=hA(e,t.type);return r&&new nJ.GraphQLNonNull(r)}case mA.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var yg=O(wh=>{"use strict";d();p();f();Object.defineProperty(wh,"__esModule",{value:!0});wh.TypeInfo=void 0;wh.visitWithTypeInfo=P_e;var R_e=Po(),Hr=jt(),iJ=$l(),Wr=Vt(),xf=ma(),aJ=Bo(),NA=class{constructor(t,r,n){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:w_e,r&&((0,Wr.isInputType)(r)&&this._inputTypeStack.push(r),(0,Wr.isCompositeType)(r)&&this._parentTypeStack.push(r),(0,Wr.isOutputType)(r)&&this._typeStack.push(r))}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 r=this._schema;switch(t.kind){case Hr.Kind.SELECTION_SET:{let i=(0,Wr.getNamedType)(this.getType());this._parentTypeStack.push((0,Wr.isCompositeType)(i)?i:void 0);break}case Hr.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(r,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Wr.isOutputType)(o)?o:void 0);break}case Hr.Kind.DIRECTIVE:this._directive=r.getDirective(t.name.value);break;case Hr.Kind.OPERATION_DEFINITION:{let i=r.getRootType(t.operation);this._typeStack.push((0,Wr.isObjectType)(i)?i:void 0);break}case Hr.Kind.INLINE_FRAGMENT:case Hr.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,aJ.typeFromAST)(r,i):(0,Wr.getNamedType)(this.getType());this._typeStack.push((0,Wr.isOutputType)(a)?a:void 0);break}case Hr.Kind.VARIABLE_DEFINITION:{let i=(0,aJ.typeFromAST)(r,t.type);this._inputTypeStack.push((0,Wr.isInputType)(i)?i:void 0);break}case Hr.Kind.ARGUMENT:{var n;let i,a,o=(n=this.getDirective())!==null&&n!==void 0?n:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.LIST:{let i=(0,Wr.getNullableType)(this.getInputType()),a=(0,Wr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.OBJECT_FIELD:{let i=(0,Wr.getNamedType)(this.getInputType()),a,o;(0,Wr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Wr.isInputType)(a)?a:void 0);break}case Hr.Kind.ENUM:{let i=(0,Wr.getNamedType)(this.getInputType()),a;(0,Wr.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Hr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Hr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Hr.Kind.DIRECTIVE:this._directive=null;break;case Hr.Kind.OPERATION_DEFINITION:case Hr.Kind.INLINE_FRAGMENT:case Hr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Hr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Hr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Hr.Kind.LIST:case Hr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Hr.Kind.ENUM:this._enumValue=null;break;default:}}};wh.TypeInfo=NA;function w_e(e,t,r){let n=r.name.value;if(n===xf.SchemaMetaFieldDef.name&&e.getQueryType()===t)return xf.SchemaMetaFieldDef;if(n===xf.TypeMetaFieldDef.name&&e.getQueryType()===t)return xf.TypeMetaFieldDef;if(n===xf.TypeNameMetaFieldDef.name&&(0,Wr.isCompositeType)(t))return xf.TypeNameMetaFieldDef;if((0,Wr.isObjectType)(t)||(0,Wr.isInterfaceType)(t))return t.getFields()[n]}function P_e(e,t){return{enter(...r){let n=r[0];e.enter(n);let i=(0,iJ.getEnterLeaveForKind)(t,n.kind).enter;if(i){let a=i.apply(t,r);return a!==void 0&&(e.leave(n),(0,R_e.isNode)(a)&&e.enter(a)),a}},leave(...r){let n=r[0],i=(0,iJ.getEnterLeaveForKind)(t,n.kind).leave,a;return i&&(a=i.apply(t,r)),e.leave(n),a}}}});var Xl=O(ha=>{"use strict";d();p();f();Object.defineProperty(ha,"__esModule",{value:!0});ha.isConstValueNode=TA;ha.isDefinitionNode=F_e;ha.isExecutableDefinitionNode=oJ;ha.isSelectionNode=L_e;ha.isTypeDefinitionNode=cJ;ha.isTypeExtensionNode=dJ;ha.isTypeNode=C_e;ha.isTypeSystemDefinitionNode=uJ;ha.isTypeSystemExtensionNode=lJ;ha.isValueNode=sJ;var Kt=jt();function F_e(e){return oJ(e)||uJ(e)||lJ(e)}function oJ(e){return e.kind===Kt.Kind.OPERATION_DEFINITION||e.kind===Kt.Kind.FRAGMENT_DEFINITION}function L_e(e){return e.kind===Kt.Kind.FIELD||e.kind===Kt.Kind.FRAGMENT_SPREAD||e.kind===Kt.Kind.INLINE_FRAGMENT}function sJ(e){return e.kind===Kt.Kind.VARIABLE||e.kind===Kt.Kind.INT||e.kind===Kt.Kind.FLOAT||e.kind===Kt.Kind.STRING||e.kind===Kt.Kind.BOOLEAN||e.kind===Kt.Kind.NULL||e.kind===Kt.Kind.ENUM||e.kind===Kt.Kind.LIST||e.kind===Kt.Kind.OBJECT}function TA(e){return sJ(e)&&(e.kind===Kt.Kind.LIST?e.values.some(TA):e.kind===Kt.Kind.OBJECT?e.fields.some(t=>TA(t.value)):e.kind!==Kt.Kind.VARIABLE)}function C_e(e){return e.kind===Kt.Kind.NAMED_TYPE||e.kind===Kt.Kind.LIST_TYPE||e.kind===Kt.Kind.NON_NULL_TYPE}function uJ(e){return e.kind===Kt.Kind.SCHEMA_DEFINITION||cJ(e)||e.kind===Kt.Kind.DIRECTIVE_DEFINITION}function cJ(e){return e.kind===Kt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Kt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Kt.Kind.UNION_TYPE_DEFINITION||e.kind===Kt.Kind.ENUM_TYPE_DEFINITION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function lJ(e){return e.kind===Kt.Kind.SCHEMA_EXTENSION||dJ(e)}function dJ(e){return e.kind===Kt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Kt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Kt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Kt.Kind.UNION_TYPE_EXTENSION||e.kind===Kt.Kind.ENUM_TYPE_EXTENSION||e.kind===Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var gA=O(EA=>{"use strict";d();p();f();Object.defineProperty(EA,"__esModule",{value:!0});EA.ExecutableDefinitionsRule=k_e;var B_e=at(),fJ=jt(),U_e=Xl();function k_e(e){return{Document(t){for(let r of t.definitions)if(!(0,U_e.isExecutableDefinitionNode)(r)){let n=r.kind===fJ.Kind.SCHEMA_DEFINITION||r.kind===fJ.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new B_e.GraphQLError(`The ${n} definition is not executable.`,{nodes:r}))}return!1}}}});var vA=O(IA=>{"use strict";d();p();f();Object.defineProperty(IA,"__esModule",{value:!0});IA.FieldsOnCorrectTypeRule=j_e;var pJ=qc(),q_e=ph(),x_e=Mc(),M_e=at(),Ph=Vt();function j_e(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,pJ.didYouMean)("to use an inline fragment on",V_e(i,r,a));o===""&&(o=(0,pJ.didYouMean)(K_e(r,a))),e.reportError(new M_e.GraphQLError(`Cannot query field "${a}" on type "${r.name}".`+o,{nodes:t}))}}}}function V_e(e,t,r){if(!(0,Ph.isAbstractType)(t))return[];let n=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[r]){n.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var a;u.getFields()[r]&&(n.add(u),i[u.name]=((a=i[u.name])!==null&&a!==void 0?a:0)+1)}}return[...n].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Ph.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Ph.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,q_e.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function K_e(e,t){if((0,Ph.isObjectType)(e)||(0,Ph.isInterfaceType)(e)){let r=Object.keys(e.getFields());return(0,x_e.suggestionList)(t,r)}return[]}});var SA=O(_A=>{"use strict";d();p();f();Object.defineProperty(_A,"__esModule",{value:!0});_A.FragmentsOnCompositeTypesRule=$_e;var mJ=at(),hJ=Gi(),yJ=Vt(),NJ=Bo();function $_e(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let n=(0,NJ.typeFromAST)(e.getSchema(),r);if(n&&!(0,yJ.isCompositeType)(n)){let i=(0,hJ.print)(r);e.reportError(new mJ.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:r}))}}},FragmentDefinition(t){let r=(0,NJ.typeFromAST)(e.getSchema(),t.typeCondition);if(r&&!(0,yJ.isCompositeType)(r)){let n=(0,hJ.print)(t.typeCondition);e.reportError(new mJ.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}});var OA=O(Ng=>{"use strict";d();p();f();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.KnownArgumentNamesOnDirectivesRule=IJ;Ng.KnownArgumentNamesRule=Y_e;var TJ=qc(),EJ=Mc(),gJ=at(),G_e=jt(),Q_e=Si();function Y_e(e){return Q(q({},IJ(e)),{Argument(t){let r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){let a=t.name.value,o=n.args.map(l=>l.name),u=(0,EJ.suggestionList)(a,o);e.reportError(new gJ.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${n.name}".`+(0,TJ.didYouMean)(u),{nodes:t}))}}})}function IJ(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Q_e.specifiedDirectives;for(let o of n)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===G_e.Kind.DIRECTIVE_DEFINITION){var a;let u=(a=o.arguments)!==null&&a!==void 0?a:[];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 m of o.arguments){let h=m.name.value;if(!l.includes(h)){let N=(0,EJ.suggestionList)(h,l);e.reportError(new gJ.GraphQLError(`Unknown argument "${h}" on directive "@${u}".`+(0,TJ.didYouMean)(N),{nodes:m}))}}return!1}}}});var RA=O(AA=>{"use strict";d();p();f();Object.defineProperty(AA,"__esModule",{value:!0});AA.KnownDirectivesRule=H_e;var J_e=cr(),DA=Zn(),vJ=at(),bA=Po(),bn=Ff(),Rr=jt(),z_e=Si();function H_e(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():z_e.specifiedDirectives;for(let a of n)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===Rr.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,u,l,m){let h=a.name.value,N=t[h];if(!N){e.reportError(new vJ.GraphQLError(`Unknown directive "@${h}".`,{nodes:a}));return}let T=W_e(m);T&&!N.includes(T)&&e.reportError(new vJ.GraphQLError(`Directive "@${h}" may not be used on ${T}.`,{nodes:a}))}}}function W_e(e){let t=e[e.length-1];switch("kind"in t||(0,DA.invariant)(!1),t.kind){case Rr.Kind.OPERATION_DEFINITION:return X_e(t.operation);case Rr.Kind.FIELD:return bn.DirectiveLocation.FIELD;case Rr.Kind.FRAGMENT_SPREAD:return bn.DirectiveLocation.FRAGMENT_SPREAD;case Rr.Kind.INLINE_FRAGMENT:return bn.DirectiveLocation.INLINE_FRAGMENT;case Rr.Kind.FRAGMENT_DEFINITION:return bn.DirectiveLocation.FRAGMENT_DEFINITION;case Rr.Kind.VARIABLE_DEFINITION:return bn.DirectiveLocation.VARIABLE_DEFINITION;case Rr.Kind.SCHEMA_DEFINITION:case Rr.Kind.SCHEMA_EXTENSION:return bn.DirectiveLocation.SCHEMA;case Rr.Kind.SCALAR_TYPE_DEFINITION:case Rr.Kind.SCALAR_TYPE_EXTENSION:return bn.DirectiveLocation.SCALAR;case Rr.Kind.OBJECT_TYPE_DEFINITION:case Rr.Kind.OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.OBJECT;case Rr.Kind.FIELD_DEFINITION:return bn.DirectiveLocation.FIELD_DEFINITION;case Rr.Kind.INTERFACE_TYPE_DEFINITION:case Rr.Kind.INTERFACE_TYPE_EXTENSION:return bn.DirectiveLocation.INTERFACE;case Rr.Kind.UNION_TYPE_DEFINITION:case Rr.Kind.UNION_TYPE_EXTENSION:return bn.DirectiveLocation.UNION;case Rr.Kind.ENUM_TYPE_DEFINITION:case Rr.Kind.ENUM_TYPE_EXTENSION:return bn.DirectiveLocation.ENUM;case Rr.Kind.ENUM_VALUE_DEFINITION:return bn.DirectiveLocation.ENUM_VALUE;case Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Rr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return bn.DirectiveLocation.INPUT_OBJECT;case Rr.Kind.INPUT_VALUE_DEFINITION:{let r=e[e.length-3];return"kind"in r||(0,DA.invariant)(!1),r.kind===Rr.Kind.INPUT_OBJECT_TYPE_DEFINITION?bn.DirectiveLocation.INPUT_FIELD_DEFINITION:bn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,DA.invariant)(!1,"Unexpected kind: "+(0,J_e.inspect)(t.kind))}}function X_e(e){switch(e){case bA.OperationTypeNode.QUERY:return bn.DirectiveLocation.QUERY;case bA.OperationTypeNode.MUTATION:return bn.DirectiveLocation.MUTATION;case bA.OperationTypeNode.SUBSCRIPTION:return bn.DirectiveLocation.SUBSCRIPTION}}});var PA=O(wA=>{"use strict";d();p();f();Object.defineProperty(wA,"__esModule",{value:!0});wA.KnownFragmentNamesRule=eSe;var Z_e=at();function eSe(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new Z_e.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}});var CA=O(LA=>{"use strict";d();p();f();Object.defineProperty(LA,"__esModule",{value:!0});LA.KnownTypeNamesRule=oSe;var tSe=qc(),rSe=Mc(),nSe=at(),FA=Xl(),iSe=ma(),aSe=Co();function oSe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let a of e.getDocument().definitions)(0,FA.isTypeDefinitionNode)(a)&&(n[a.name.value]=!0);let i=[...Object.keys(r),...Object.keys(n)];return{NamedType(a,o,u,l,m){let h=a.name.value;if(!r[h]&&!n[h]){var N;let T=(N=m[2])!==null&&N!==void 0?N:u,D=T!=null&&sSe(T);if(D&&_J.includes(h))return;let R=(0,rSe.suggestionList)(h,D?_J.concat(i):i);e.reportError(new nSe.GraphQLError(`Unknown type "${h}".`+(0,tSe.didYouMean)(R),{nodes:a}))}}}}var _J=[...aSe.specifiedScalarTypes,...iSe.introspectionTypes].map(e=>e.name);function sSe(e){return"kind"in e&&((0,FA.isTypeSystemDefinitionNode)(e)||(0,FA.isTypeSystemExtensionNode)(e))}});var UA=O(BA=>{"use strict";d();p();f();Object.defineProperty(BA,"__esModule",{value:!0});BA.LoneAnonymousOperationRule=lSe;var uSe=at(),cSe=jt();function lSe(e){let t=0;return{Document(r){t=r.definitions.filter(n=>n.kind===cSe.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new uSe.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}});var qA=O(kA=>{"use strict";d();p();f();Object.defineProperty(kA,"__esModule",{value:!0});kA.LoneSchemaDefinitionRule=dSe;var SJ=at();function dSe(e){var t,r,n;let i=e.getSchema(),a=(t=(r=(n=i==null?void 0:i.astNode)!==null&&n!==void 0?n:i==null?void 0:i.getQueryType())!==null&&r!==void 0?r:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(a){e.reportError(new SJ.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new SJ.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var MA=O(xA=>{"use strict";d();p();f();Object.defineProperty(xA,"__esModule",{value:!0});xA.MaxIntrospectionDepthRule=mSe;var fSe=at(),OJ=jt(),pSe=3;function mSe(e){function t(r,n=Object.create(null),i=0){if(r.kind===OJ.Kind.FRAGMENT_SPREAD){let a=r.name.value;if(n[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return n[a]=!0,t(o,n,i)}finally{n[a]=void 0}}if(r.kind===OJ.Kind.FIELD&&(r.name.value==="fields"||r.name.value==="interfaces"||r.name.value==="possibleTypes"||r.name.value==="inputFields")&&(i++,i>=pSe))return!0;if("selectionSet"in r&&r.selectionSet){for(let a of r.selectionSet.selections)if(t(a,n,i))return!0}return!1}return{Field(r){if((r.name.value==="__schema"||r.name.value==="__type")&&t(r))return e.reportError(new fSe.GraphQLError("Maximum introspection depth exceeded",{nodes:[r]})),!1}}}});var VA=O(jA=>{"use strict";d();p();f();Object.defineProperty(jA,"__esModule",{value:!0});jA.NoFragmentCyclesRule=ySe;var hSe=at();function ySe(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let u=e.getFragmentSpreads(a.selectionSet);if(u.length!==0){n[o]=r.length;for(let l of u){let m=l.name.value,h=n[m];if(r.push(l),h===void 0){let N=e.getFragment(m);N&&i(N)}else{let N=r.slice(h),T=N.slice(0,-1).map(D=>'"'+D.name.value+'"').join(", ");e.reportError(new hSe.GraphQLError(`Cannot spread fragment "${m}" within itself`+(T!==""?` via ${T}.`:"."),{nodes:N}))}r.pop()}n[o]=void 0}}}});var $A=O(KA=>{"use strict";d();p();f();Object.defineProperty(KA,"__esModule",{value:!0});KA.NoUndefinedVariablesRule=TSe;var NSe=at();function TSe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i}of n){let a=i.name.value;t[a]!==!0&&e.reportError(new NSe.GraphQLError(r.name?`Variable "$${a}" is not defined by operation "${r.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(r){t[r.variable.name.value]=!0}}}});var QA=O(GA=>{"use strict";d();p();f();Object.defineProperty(GA,"__esModule",{value:!0});GA.NoUnusedFragmentsRule=gSe;var ESe=at();function gSe(e){let t=[],r=[];return{OperationDefinition(n){return t.push(n),!1},FragmentDefinition(n){return r.push(n),!1},Document:{leave(){let n=Object.create(null);for(let i of t)for(let a of e.getRecursivelyReferencedFragments(i))n[a.name.value]=!0;for(let i of r){let a=i.name.value;n[a]!==!0&&e.reportError(new ESe.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var JA=O(YA=>{"use strict";d();p();f();Object.defineProperty(YA,"__esModule",{value:!0});YA.NoUnusedVariablesRule=vSe;var ISe=at();function vSe(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(let{node:a}of i)n[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;n[o]!==!0&&e.reportError(new ISe.GraphQLError(r.name?`Variable "$${o}" is never used in operation "${r.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(r){t.push(r)}}}});var WA=O(HA=>{"use strict";d();p();f();Object.defineProperty(HA,"__esModule",{value:!0});HA.sortValueNode=zA;var _Se=ph(),ws=jt();function zA(e){switch(e.kind){case ws.Kind.OBJECT:return Q(q({},e),{fields:SSe(e.fields)});case ws.Kind.LIST:return Q(q({},e),{values:e.values.map(zA)});case ws.Kind.INT:case ws.Kind.FLOAT:case ws.Kind.STRING:case ws.Kind.BOOLEAN:case ws.Kind.NULL:case ws.Kind.ENUM:case ws.Kind.VARIABLE:return e}}function SSe(e){return e.map(t=>Q(q({},t),{value:zA(t.value)})).sort((t,r)=>(0,_Se.naturalCompare)(t.name.value,r.name.value))}});var i0=O(n0=>{"use strict";d();p();f();Object.defineProperty(n0,"__esModule",{value:!0});n0.OverlappingFieldsCanBeMergedRule=ASe;var DJ=cr(),OSe=at(),XA=jt(),DSe=Gi(),Oi=Vt(),bSe=WA(),AJ=Bo();function RJ(e){return Array.isArray(e)?e.map(([t,r])=>`subfields "${t}" conflict because `+RJ(r)).join(" and "):e}function ASe(e){let t=new t0,r=new Map;return{SelectionSet(n){let i=RSe(e,r,t,e.getParentType(),n);for(let[[a,o],u,l]of i){let m=RJ(o);e.reportError(new OSe.GraphQLError(`Fields "${a}" conflict because ${m}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function RSe(e,t,r,n,i){let a=[],[o,u]=gg(e,t,n,i);if(PSe(e,a,t,r,o),u.length!==0)for(let l=0;l1)for(let u=0;u[a.value,o]));return r.every(a=>{let o=a.value,u=i.get(a.name.value);return u===void 0?!1:bJ(o)===bJ(u)})}function bJ(e){return(0,DSe.print)((0,bSe.sortValueNode)(e))}function ZA(e,t){return(0,Oi.isListType)(e)?(0,Oi.isListType)(t)?ZA(e.ofType,t.ofType):!0:(0,Oi.isListType)(t)?!0:(0,Oi.isNonNullType)(e)?(0,Oi.isNonNullType)(t)?ZA(e.ofType,t.ofType):!0:(0,Oi.isNonNullType)(t)?!0:(0,Oi.isLeafType)(e)||(0,Oi.isLeafType)(t)?e!==t:!1}function gg(e,t,r,n){let i=t.get(n);if(i)return i;let a=Object.create(null),o=Object.create(null);PJ(e,r,n,a,o);let u=[a,Object.keys(o)];return t.set(n,u),u}function e0(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let i=(0,AJ.typeFromAST)(e.getSchema(),r.typeCondition);return gg(e,t,i,r.selectionSet)}function PJ(e,t,r,n,i){for(let a of r.selections)switch(a.kind){case XA.Kind.FIELD:{let o=a.name.value,u;((0,Oi.isObjectType)(t)||(0,Oi.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=a.alias?a.alias.value:o;n[l]||(n[l]=[]),n[l].push([t,a,u]);break}case XA.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case XA.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,u=o?(0,AJ.typeFromAST)(e.getSchema(),o):t;PJ(e,u,a.selectionSet,n,i);break}}}function LSe(e,t,r,n){if(e.length>0)return[[t,e.map(([i])=>i)],[r,...e.map(([,i])=>i).flat()],[n,...e.map(([,,i])=>i).flat()]]}var t0=class{constructor(){this._data=new Map}has(t,r,n){var i;let[a,o]=t{"use strict";d();p();f();Object.defineProperty(o0,"__esModule",{value:!0});o0.PossibleFragmentSpreadsRule=BSe;var Ig=cr(),FJ=at(),a0=Vt(),LJ=Eh(),CSe=Bo();function BSe(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();if((0,a0.isCompositeType)(r)&&(0,a0.isCompositeType)(n)&&!(0,LJ.doTypesOverlap)(e.getSchema(),r,n)){let i=(0,Ig.inspect)(n),a=(0,Ig.inspect)(r);e.reportError(new FJ.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=USe(e,r),i=e.getParentType();if(n&&i&&!(0,LJ.doTypesOverlap)(e.getSchema(),n,i)){let a=(0,Ig.inspect)(i),o=(0,Ig.inspect)(n);e.reportError(new FJ.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function USe(e,t){let r=e.getFragment(t);if(r){let n=(0,CSe.typeFromAST)(e.getSchema(),r.typeCondition);if((0,a0.isCompositeType)(n))return n}}});var c0=O(u0=>{"use strict";d();p();f();Object.defineProperty(u0,"__esModule",{value:!0});u0.PossibleTypeExtensionsRule=MSe;var kSe=qc(),BJ=cr(),UJ=Zn(),qSe=Mc(),CJ=at(),Fr=jt(),xSe=Xl(),Mf=Vt();function MSe(e){let t=e.getSchema(),r=Object.create(null);for(let i of e.getDocument().definitions)(0,xSe.isTypeDefinitionNode)(i)&&(r[i.name.value]=i);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(i){let a=i.name.value,o=r[a],u=t==null?void 0:t.getType(a),l;if(o?l=jSe[o.kind]:u&&(l=VSe(u)),l){if(l!==i.kind){let m=KSe(i.kind);e.reportError(new CJ.GraphQLError(`Cannot extend non-${m} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let m=Object.keys(q(q({},r),t==null?void 0:t.getTypeMap())),h=(0,qSe.suggestionList)(a,m);e.reportError(new CJ.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,kSe.didYouMean)(h),{nodes:i.name}))}}}var jSe={[Fr.Kind.SCALAR_TYPE_DEFINITION]:Fr.Kind.SCALAR_TYPE_EXTENSION,[Fr.Kind.OBJECT_TYPE_DEFINITION]:Fr.Kind.OBJECT_TYPE_EXTENSION,[Fr.Kind.INTERFACE_TYPE_DEFINITION]:Fr.Kind.INTERFACE_TYPE_EXTENSION,[Fr.Kind.UNION_TYPE_DEFINITION]:Fr.Kind.UNION_TYPE_EXTENSION,[Fr.Kind.ENUM_TYPE_DEFINITION]:Fr.Kind.ENUM_TYPE_EXTENSION,[Fr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION};function VSe(e){if((0,Mf.isScalarType)(e))return Fr.Kind.SCALAR_TYPE_EXTENSION;if((0,Mf.isObjectType)(e))return Fr.Kind.OBJECT_TYPE_EXTENSION;if((0,Mf.isInterfaceType)(e))return Fr.Kind.INTERFACE_TYPE_EXTENSION;if((0,Mf.isUnionType)(e))return Fr.Kind.UNION_TYPE_EXTENSION;if((0,Mf.isEnumType)(e))return Fr.Kind.ENUM_TYPE_EXTENSION;if((0,Mf.isInputObjectType)(e))return Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,UJ.invariant)(!1,"Unexpected type: "+(0,BJ.inspect)(e))}function KSe(e){switch(e){case Fr.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Fr.Kind.OBJECT_TYPE_EXTENSION:return"object";case Fr.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Fr.Kind.UNION_TYPE_EXTENSION:return"union";case Fr.Kind.ENUM_TYPE_EXTENSION:return"enum";case Fr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,UJ.invariant)(!1,"Unexpected kind: "+(0,BJ.inspect)(e))}}});var d0=O(vg=>{"use strict";d();p();f();Object.defineProperty(vg,"__esModule",{value:!0});vg.ProvidedRequiredArgumentsOnDirectivesRule=jJ;vg.ProvidedRequiredArgumentsRule=QSe;var qJ=cr(),kJ=xc(),xJ=at(),MJ=jt(),$Se=Gi(),l0=Vt(),GSe=Si();function QSe(e){return Q(q({},jJ(e)),{Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let i=new Set((r=t.arguments)===null||r===void 0?void 0:r.map(a=>a.name.value));for(let a of n.args)if(!i.has(a.name)&&(0,l0.isRequiredArgument)(a)){let o=(0,qJ.inspect)(a.type);e.reportError(new xJ.GraphQLError(`Field "${n.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function jJ(e){var t;let r=Object.create(null),n=e.getSchema(),i=(t=n==null?void 0:n.getDirectives())!==null&&t!==void 0?t:GSe.specifiedDirectives;for(let u of i)r[u.name]=(0,kJ.keyMap)(u.args.filter(l0.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let u of a)if(u.kind===MJ.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];r[u.name.value]=(0,kJ.keyMap)(l.filter(YSe),m=>m.name.value)}return{Directive:{leave(u){let l=u.name.value,m=r[l];if(m){var h;let N=(h=u.arguments)!==null&&h!==void 0?h:[],T=new Set(N.map(D=>D.name.value));for(let[D,R]of Object.entries(m))if(!T.has(D)){let C=(0,l0.isType)(R.type)?(0,qJ.inspect)(R.type):(0,$Se.print)(R.type);e.reportError(new xJ.GraphQLError(`Directive "@${l}" argument "${D}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function YSe(e){return e.type.kind===MJ.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var p0=O(f0=>{"use strict";d();p();f();Object.defineProperty(f0,"__esModule",{value:!0});f0.ScalarLeafsRule=JSe;var VJ=cr(),KJ=at(),$J=Vt();function JSe(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r){if((0,$J.isLeafType)((0,$J.getNamedType)(r))){if(n){let i=t.name.value,a=(0,VJ.inspect)(r);e.reportError(new KJ.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:n}))}}else if(!n){let i=t.name.value,a=(0,VJ.inspect)(r);e.reportError(new KJ.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var h0=O(m0=>{"use strict";d();p();f();Object.defineProperty(m0,"__esModule",{value:!0});m0.printPathArray=zSe;function zSe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Fh=O(_g=>{"use strict";d();p();f();Object.defineProperty(_g,"__esModule",{value:!0});_g.addPath=HSe;_g.pathToArray=WSe;function HSe(e,t,r){return{prev:e,key:t,typename:r}}function WSe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}});var N0=O(y0=>{"use strict";d();p();f();Object.defineProperty(y0,"__esModule",{value:!0});y0.coerceInputValue=iOe;var XSe=qc(),Sg=cr(),ZSe=Zn(),eOe=fg(),tOe=wo(),eo=Fh(),rOe=h0(),nOe=Mc(),Ps=at(),Lh=Vt();function iOe(e,t,r=aOe){return Ch(e,t,r,void 0)}function aOe(e,t,r){let n="Invalid value "+(0,Sg.inspect)(t);throw e.length>0&&(n+=` at "value${(0,rOe.printPathArray)(e)}"`),r.message=n+": "+r.message,r}function Ch(e,t,r,n){if((0,Lh.isNonNullType)(t)){if(e!=null)return Ch(e,t.ofType,r,n);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected non-nullable type "${(0,Sg.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Lh.isListType)(t)){let i=t.ofType;return(0,eOe.isIterableObject)(e)?Array.from(e,(a,o)=>{let u=(0,eo.addPath)(n,o,void 0);return Ch(a,i,r,u)}):[Ch(e,i,r,n)]}if((0,Lh.isInputObjectType)(t)){if(!(0,tOe.isObjectLike)(e)){r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Lh.isNonNullType)(o.type)){let l=(0,Sg.inspect)(o.type);r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ch(u,o.type,r,(0,eo.addPath)(n,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let u=(0,nOe.suggestionList)(o,Object.keys(t.getFields()));r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,XSe.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&r((0,eo.pathToArray)(n).concat(u),l,new Ps.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,Lh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof Ps.GraphQLError?r((0,eo.pathToArray)(n),e,a):r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&r((0,eo.pathToArray)(n),e,new Ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,ZSe.invariant)(!1,"Unexpected input type: "+(0,Sg.inspect)(t))}});var Uh=O(T0=>{"use strict";d();p();f();Object.defineProperty(T0,"__esModule",{value:!0});T0.valueFromAST=Bh;var oOe=cr(),sOe=Zn(),uOe=xc(),jf=jt(),Zl=Vt();function Bh(e,t,r){if(e){if(e.kind===jf.Kind.VARIABLE){let n=e.name.value;if(r==null||r[n]===void 0)return;let i=r[n];return i===null&&(0,Zl.isNonNullType)(t)?void 0:i}if((0,Zl.isNonNullType)(t))return e.kind===jf.Kind.NULL?void 0:Bh(e,t.ofType,r);if(e.kind===jf.Kind.NULL)return null;if((0,Zl.isListType)(t)){let n=t.ofType;if(e.kind===jf.Kind.LIST){let a=[];for(let o of e.values)if(GJ(o,r)){if((0,Zl.isNonNullType)(n))return;a.push(null)}else{let u=Bh(o,n,r);if(u===void 0)return;a.push(u)}return a}let i=Bh(e,n,r);return i===void 0?void 0:[i]}if((0,Zl.isInputObjectType)(t)){if(e.kind!==jf.Kind.OBJECT)return;let n=Object.create(null),i=(0,uOe.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||GJ(o.value,r)){if(a.defaultValue!==void 0)n[a.name]=a.defaultValue;else if((0,Zl.isNonNullType)(a.type))return;continue}let u=Bh(o.value,a.type,r);if(u===void 0)return;n[a.name]=u}if(t.isOneOf){let a=Object.keys(n);if(a.length!==1||n[a[0]]===null)return}return n}if((0,Zl.isLeafType)(t)){let n;try{n=t.parseLiteral(e,r)}catch(i){return}return n===void 0?void 0:n}(0,sOe.invariant)(!1,"Unexpected input type: "+(0,oOe.inspect)(t))}}function GJ(e,t){return e.kind===jf.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var $f=O(kh=>{"use strict";d();p();f();Object.defineProperty(kh,"__esModule",{value:!0});kh.getArgumentValues=zJ;kh.getDirectiveValues=hOe;kh.getVariableValues=pOe;var Vf=cr(),cOe=xc(),lOe=h0(),Fs=at(),QJ=jt(),YJ=Gi(),Kf=Vt(),dOe=N0(),fOe=Bo(),JJ=Uh();function pOe(e,t,r,n){let i=[],a=n==null?void 0:n.maxErrors;try{let o=mOe(e,t,r,u=>{if(a!=null&&i.length>=a)throw new Fs.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 mOe(e,t,r,n){let i={};for(let a of t){let o=a.variable.name.value,u=(0,fOe.typeFromAST)(e,a.type);if(!(0,Kf.isInputType)(u)){let m=(0,YJ.print)(a.type);n(new Fs.GraphQLError(`Variable "$${o}" expected value of type "${m}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!HJ(r,o)){if(a.defaultValue)i[o]=(0,JJ.valueFromAST)(a.defaultValue,u);else if((0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of required type "${m}" was not provided.`,{nodes:a}))}continue}let l=r[o];if(l===null&&(0,Kf.isNonNullType)(u)){let m=(0,Vf.inspect)(u);n(new Fs.GraphQLError(`Variable "$${o}" of non-null type "${m}" must not be null.`,{nodes:a}));continue}i[o]=(0,dOe.coerceInputValue)(l,u,(m,h,N)=>{let T=`Variable "$${o}" got invalid value `+(0,Vf.inspect)(h);m.length>0&&(T+=` at "${o}${(0,lOe.printPathArray)(m)}"`),n(new Fs.GraphQLError(T+"; "+N.message,{nodes:a,originalError:N}))})}return i}function zJ(e,t,r){var n;let i={},a=(n=t.arguments)!==null&&n!==void 0?n:[],o=(0,cOe.keyMap)(a,u=>u.name.value);for(let u of e.args){let l=u.name,m=u.type,h=o[l];if(!h){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was not provided.`,{nodes:t});continue}let N=h.value,T=N.kind===QJ.Kind.NULL;if(N.kind===QJ.Kind.VARIABLE){let R=N.name.value;if(r==null||!HJ(r,R)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of required type "${(0,Vf.inspect)(m)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:N});continue}T=r[R]==null}if(T&&(0,Kf.isNonNullType)(m))throw new Fs.GraphQLError(`Argument "${l}" of non-null type "${(0,Vf.inspect)(m)}" must not be null.`,{nodes:N});let D=(0,JJ.valueFromAST)(N,m,r);if(D===void 0)throw new Fs.GraphQLError(`Argument "${l}" has invalid value ${(0,YJ.print)(N)}.`,{nodes:N});i[l]=D}return i}function hOe(e,t,r){var n;let i=(n=t.directives)===null||n===void 0?void 0:n.find(a=>a.name.value===e.name);if(i)return zJ(e,i,r)}function HJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var bg=O(Dg=>{"use strict";d();p();f();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.collectFields=TOe;Dg.collectSubfields=EOe;var E0=jt(),yOe=Vt(),WJ=Si(),NOe=Bo(),XJ=$f();function TOe(e,t,r,n,i){let a=new Map;return Og(e,t,r,n,i,a,new Set),a}function EOe(e,t,r,n,i){let a=new Map,o=new Set;for(let u of i)u.selectionSet&&Og(e,t,r,n,u.selectionSet,a,o);return a}function Og(e,t,r,n,i,a,o){for(let u of i.selections)switch(u.kind){case E0.Kind.FIELD:{if(!g0(r,u))continue;let l=gOe(u),m=a.get(l);m!==void 0?m.push(u):a.set(l,[u]);break}case E0.Kind.INLINE_FRAGMENT:{if(!g0(r,u)||!ZJ(e,u,n))continue;Og(e,t,r,n,u.selectionSet,a,o);break}case E0.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!g0(r,u))continue;o.add(l);let m=t[l];if(!m||!ZJ(e,m,n))continue;Og(e,t,r,n,m.selectionSet,a,o);break}}}function g0(e,t){let r=(0,XJ.getDirectiveValues)(WJ.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,XJ.getDirectiveValues)(WJ.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function ZJ(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,NOe.typeFromAST)(e,n);return i===r?!0:(0,yOe.isAbstractType)(i)?e.isSubType(i,r):!1}function gOe(e){return e.alias?e.alias.value:e.name.value}});var v0=O(I0=>{"use strict";d();p();f();Object.defineProperty(I0,"__esModule",{value:!0});I0.SingleFieldSubscriptionsRule=_Oe;var ez=at(),IOe=jt(),vOe=bg();function _Oe(e){return{OperationDefinition(t){if(t.operation==="subscription"){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let i=t.name?t.name.value:null,a=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let m of o.definitions)m.kind===IOe.Kind.FRAGMENT_DEFINITION&&(u[m.name.value]=m);let l=(0,vOe.collectFields)(r,u,a,n,t.selectionSet);if(l.size>1){let N=[...l.values()].slice(1).flat();e.reportError(new ez.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:N}))}for(let m of l.values())m[0].name.value.startsWith("__")&&e.reportError(new ez.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:m}))}}}}}});var Ag=O(_0=>{"use strict";d();p();f();Object.defineProperty(_0,"__esModule",{value:!0});_0.groupBy=SOe;function SOe(e,t){let r=new Map;for(let n of e){let i=t(n),a=r.get(i);a===void 0?r.set(i,[n]):a.push(n)}return r}});var O0=O(S0=>{"use strict";d();p();f();Object.defineProperty(S0,"__esModule",{value:!0});S0.UniqueArgumentDefinitionNamesRule=bOe;var OOe=Ag(),DOe=at();function bOe(e){return{DirectiveDefinition(n){var i;let a=(i=n.arguments)!==null&&i!==void 0?i:[];return r(`@${n.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(n){var i;let a=n.name.value,o=(i=n.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let m=l.name.value,h=(u=l.arguments)!==null&&u!==void 0?u:[];r(`${a}.${m}`,h)}return!1}function r(n,i){let a=(0,OOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new DOe.GraphQLError(`Argument "${n}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var b0=O(D0=>{"use strict";d();p();f();Object.defineProperty(D0,"__esModule",{value:!0});D0.UniqueArgumentNamesRule=wOe;var AOe=Ag(),ROe=at();function wOe(e){return{Field:t,Directive:t};function t(r){var n;let i=(n=r.arguments)!==null&&n!==void 0?n:[],a=(0,AOe.groupBy)(i,o=>o.name.value);for(let[o,u]of a)u.length>1&&e.reportError(new ROe.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var R0=O(A0=>{"use strict";d();p();f();Object.defineProperty(A0,"__esModule",{value:!0});A0.UniqueDirectiveNamesRule=POe;var tz=at();function POe(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;if(r!=null&&r.getDirective(i)){e.reportError(new tz.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}));return}return t[i]?e.reportError(new tz.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}});var F0=O(P0=>{"use strict";d();p();f();Object.defineProperty(P0,"__esModule",{value:!0});P0.UniqueDirectivesPerLocationRule=COe;var FOe=at(),w0=jt(),rz=Xl(),LOe=Si();function COe(e){let t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():LOe.specifiedDirectives;for(let u of n)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 a=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=a;else if((0,rz.isTypeDefinitionNode)(u)||(0,rz.isTypeExtensionNode)(u)){let m=u.name.value;l=o[m],l===void 0&&(o[m]=l=Object.create(null))}else l=Object.create(null);for(let m of u.directives){let h=m.name.value;t[h]&&(l[h]?e.reportError(new FOe.GraphQLError(`The directive "@${h}" can only be used once at this location.`,{nodes:[l[h],m]})):l[h]=m)}}}}});var C0=O(L0=>{"use strict";d();p();f();Object.defineProperty(L0,"__esModule",{value:!0});L0.UniqueEnumValueNamesRule=UOe;var nz=at(),BOe=Vt();function UOe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value,T=r[u];(0,BOe.isEnumType)(T)&&T.getValue(N)?e.reportError(new nz.GraphQLError(`Enum value "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new nz.GraphQLError(`Enum value "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}});var k0=O(U0=>{"use strict";d();p();f();Object.defineProperty(U0,"__esModule",{value:!0});U0.UniqueFieldDefinitionNamesRule=kOe;var iz=at(),B0=Vt();function kOe(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var o;let u=a.name.value;n[u]||(n[u]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],m=n[u];for(let h of l){let N=h.name.value;qOe(r[u],N)?e.reportError(new iz.GraphQLError(`Field "${u}.${N}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):m[N]?e.reportError(new iz.GraphQLError(`Field "${u}.${N}" can only be defined once.`,{nodes:[m[N],h.name]})):m[N]=h.name}return!1}}function qOe(e,t){return(0,B0.isObjectType)(e)||(0,B0.isInterfaceType)(e)||(0,B0.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var x0=O(q0=>{"use strict";d();p();f();Object.defineProperty(q0,"__esModule",{value:!0});q0.UniqueFragmentNamesRule=MOe;var xOe=at();function MOe(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new xOe.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}});var j0=O(M0=>{"use strict";d();p();f();Object.defineProperty(M0,"__esModule",{value:!0});M0.UniqueInputFieldNamesRule=KOe;var jOe=Zn(),VOe=at();function KOe(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let n=t.pop();n||(0,jOe.invariant)(!1),r=n}},ObjectField(n){let i=n.name.value;r[i]?e.reportError(new VOe.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[r[i],n.name]})):r[i]=n.name}}}});var K0=O(V0=>{"use strict";d();p();f();Object.defineProperty(V0,"__esModule",{value:!0});V0.UniqueOperationNamesRule=GOe;var $Oe=at();function GOe(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new $Oe.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}});var G0=O($0=>{"use strict";d();p();f();Object.defineProperty($0,"__esModule",{value:!0});$0.UniqueOperationTypesRule=QOe;var az=at();function QOe(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var o;let u=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let m=l.operation,h=r[m];n[m]?e.reportError(new az.GraphQLError(`Type for ${m} already defined in the schema. It cannot be redefined.`,{nodes:l})):h?e.reportError(new az.GraphQLError(`There can be only one ${m} type in schema.`,{nodes:[h,l]})):r[m]=l}return!1}}});var Y0=O(Q0=>{"use strict";d();p();f();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.UniqueTypeNamesRule=YOe;var oz=at();function YOe(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){let a=i.name.value;if(r!=null&&r.getType(a)){e.reportError(new oz.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new oz.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var z0=O(J0=>{"use strict";d();p();f();Object.defineProperty(J0,"__esModule",{value:!0});J0.UniqueVariableNamesRule=HOe;var JOe=Ag(),zOe=at();function HOe(e){return{OperationDefinition(t){var r;let n=(r=t.variableDefinitions)!==null&&r!==void 0?r:[],i=(0,JOe.groupBy)(n,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new zOe.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var X0=O(W0=>{"use strict";d();p();f();Object.defineProperty(W0,"__esModule",{value:!0});W0.ValuesOfCorrectTypeRule=eDe;var WOe=qc(),qh=cr(),XOe=xc(),ZOe=Mc(),ko=at(),H0=jt(),Rg=Gi(),Uo=Vt();function eDe(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(r){t[r.variable.name.value]=r},ListValue(r){let n=(0,Uo.getNullableType)(e.getParentInputType());if(!(0,Uo.isListType)(n))return ed(e,r),!1},ObjectValue(r){let n=(0,Uo.getNamedType)(e.getInputType());if(!(0,Uo.isInputObjectType)(n))return ed(e,r),!1;let i=(0,XOe.keyMap)(r.fields,a=>a.name.value);for(let a of Object.values(n.getFields()))if(!i[a.name]&&(0,Uo.isRequiredInputField)(a)){let u=(0,qh.inspect)(a.type);e.reportError(new ko.GraphQLError(`Field "${n.name}.${a.name}" of required type "${u}" was not provided.`,{nodes:r}))}n.isOneOf&&tDe(e,r,n,i,t)},ObjectField(r){let n=(0,Uo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Uo.isInputObjectType)(n)){let a=(0,ZOe.suggestionList)(r.name.value,Object.keys(n.getFields()));e.reportError(new ko.GraphQLError(`Field "${r.name.value}" is not defined by type "${n.name}".`+(0,WOe.didYouMean)(a),{nodes:r}))}},NullValue(r){let n=e.getInputType();(0,Uo.isNonNullType)(n)&&e.reportError(new ko.GraphQLError(`Expected value of type "${(0,qh.inspect)(n)}", found ${(0,Rg.print)(r)}.`,{nodes:r}))},EnumValue:r=>ed(e,r),IntValue:r=>ed(e,r),FloatValue:r=>ed(e,r),StringValue:r=>ed(e,r),BooleanValue:r=>ed(e,r)}}function ed(e,t){let r=e.getInputType();if(!r)return;let n=(0,Uo.getNamedType)(r);if(!(0,Uo.isLeafType)(n)){let i=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${i}", found ${(0,Rg.print)(t)}.`,{nodes:t}));return}try{if(n.parseLiteral(t,void 0)===void 0){let a=(0,qh.inspect)(r);e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Rg.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,qh.inspect)(r);i instanceof ko.GraphQLError?e.reportError(i):e.reportError(new ko.GraphQLError(`Expected value of type "${a}", found ${(0,Rg.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function tDe(e,t,r,n,i){var a;let o=Object.keys(n);if(o.length!==1){e.reportError(new ko.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=n[o[0]])===null||a===void 0?void 0:a.value,m=!l||l.kind===H0.Kind.NULL,h=(l==null?void 0:l.kind)===H0.Kind.VARIABLE;if(m){e.reportError(new ko.GraphQLError(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(h){let N=l.name.value;i[N].type.kind!==H0.Kind.NON_NULL_TYPE&&e.reportError(new ko.GraphQLError(`Variable "${N}" must be non-nullable to be used for OneOf Input Object "${r.name}".`,{nodes:[t]}))}}});var eR=O(Z0=>{"use strict";d();p();f();Object.defineProperty(Z0,"__esModule",{value:!0});Z0.VariablesAreInputTypesRule=oDe;var rDe=at(),nDe=Gi(),iDe=Vt(),aDe=Bo();function oDe(e){return{VariableDefinition(t){let r=(0,aDe.typeFromAST)(e.getSchema(),t.type);if(r!==void 0&&!(0,iDe.isInputType)(r)){let n=t.variable.name.value,i=(0,nDe.print)(t.type);e.reportError(new rDe.GraphQLError(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var rR=O(tR=>{"use strict";d();p();f();Object.defineProperty(tR,"__esModule",{value:!0});tR.VariablesInAllowedPositionRule=lDe;var sz=cr(),sDe=at(),uDe=jt(),uz=Vt(),cz=Eh(),cDe=Bo();function lDe(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){let n=e.getRecursiveVariableUsages(r);for(let{node:i,type:a,defaultValue:o}of n){let u=i.name.value,l=t[u];if(l&&a){let m=e.getSchema(),h=(0,cDe.typeFromAST)(m,l.type);if(h&&!dDe(m,h,l.defaultValue,a,o)){let N=(0,sz.inspect)(h),T=(0,sz.inspect)(a);e.reportError(new sDe.GraphQLError(`Variable "$${u}" of type "${N}" used in position expecting type "${T}".`,{nodes:[l,i]}))}}}}},VariableDefinition(r){t[r.variable.name.value]=r}}}function dDe(e,t,r,n,i){if((0,uz.isNonNullType)(n)&&!(0,uz.isNonNullType)(t)){if(!(r!=null&&r.kind!==uDe.Kind.NULL)&&!(i!==void 0))return!1;let u=n.ofType;return(0,cz.isTypeSubTypeOf)(e,t,u)}return(0,cz.isTypeSubTypeOf)(e,t,n)}});var nR=O($c=>{"use strict";d();p();f();Object.defineProperty($c,"__esModule",{value:!0});$c.specifiedSDLRules=$c.specifiedRules=$c.recommendedRules=void 0;var fDe=gA(),pDe=vA(),mDe=SA(),lz=OA(),dz=RA(),hDe=PA(),fz=CA(),yDe=UA(),NDe=qA(),TDe=MA(),EDe=VA(),gDe=$A(),IDe=QA(),vDe=JA(),_De=i0(),SDe=s0(),ODe=c0(),pz=d0(),DDe=p0(),bDe=v0(),ADe=O0(),mz=b0(),RDe=R0(),hz=F0(),wDe=C0(),PDe=k0(),FDe=x0(),yz=j0(),LDe=K0(),CDe=G0(),BDe=Y0(),UDe=z0(),kDe=X0(),qDe=eR(),xDe=rR(),Nz=Object.freeze([TDe.MaxIntrospectionDepthRule]);$c.recommendedRules=Nz;var MDe=Object.freeze([fDe.ExecutableDefinitionsRule,LDe.UniqueOperationNamesRule,yDe.LoneAnonymousOperationRule,bDe.SingleFieldSubscriptionsRule,fz.KnownTypeNamesRule,mDe.FragmentsOnCompositeTypesRule,qDe.VariablesAreInputTypesRule,DDe.ScalarLeafsRule,pDe.FieldsOnCorrectTypeRule,FDe.UniqueFragmentNamesRule,hDe.KnownFragmentNamesRule,IDe.NoUnusedFragmentsRule,SDe.PossibleFragmentSpreadsRule,EDe.NoFragmentCyclesRule,UDe.UniqueVariableNamesRule,gDe.NoUndefinedVariablesRule,vDe.NoUnusedVariablesRule,dz.KnownDirectivesRule,hz.UniqueDirectivesPerLocationRule,lz.KnownArgumentNamesRule,mz.UniqueArgumentNamesRule,kDe.ValuesOfCorrectTypeRule,pz.ProvidedRequiredArgumentsRule,xDe.VariablesInAllowedPositionRule,_De.OverlappingFieldsCanBeMergedRule,yz.UniqueInputFieldNamesRule,...Nz]);$c.specifiedRules=MDe;var jDe=Object.freeze([NDe.LoneSchemaDefinitionRule,CDe.UniqueOperationTypesRule,BDe.UniqueTypeNamesRule,wDe.UniqueEnumValueNamesRule,PDe.UniqueFieldDefinitionNamesRule,ADe.UniqueArgumentDefinitionNamesRule,RDe.UniqueDirectiveNamesRule,fz.KnownTypeNamesRule,dz.KnownDirectivesRule,hz.UniqueDirectivesPerLocationRule,ODe.PossibleTypeExtensionsRule,lz.KnownArgumentNamesOnDirectivesRule,mz.UniqueArgumentNamesRule,yz.UniqueInputFieldNamesRule,pz.ProvidedRequiredArgumentsOnDirectivesRule]);$c.specifiedSDLRules=jDe});var oR=O(Gc=>{"use strict";d();p();f();Object.defineProperty(Gc,"__esModule",{value:!0});Gc.ValidationContext=Gc.SDLValidationContext=Gc.ASTValidationContext=void 0;var Tz=jt(),VDe=$l(),Ez=yg(),xh=class{constructor(t,r){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let r;if(this._fragments)r=this._fragments;else{r=Object.create(null);for(let n of this.getDocument().definitions)n.kind===Tz.Kind.FRAGMENT_DEFINITION&&(r[n.name.value]=n);this._fragments=r}return r[t]}getFragmentSpreads(t){let r=this._fragmentSpreads.get(t);if(!r){r=[];let n=[t],i;for(;i=n.pop();)for(let a of i.selections)a.kind===Tz.Kind.FRAGMENT_SPREAD?r.push(a):a.selectionSet&&n.push(a.selectionSet);this._fragmentSpreads.set(t,r)}return r}getRecursivelyReferencedFragments(t){let r=this._recursivelyReferencedFragments.get(t);if(!r){r=[];let n=Object.create(null),i=[t.selectionSet],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let u=o.name.value;if(n[u]!==!0){n[u]=!0;let l=this.getFragment(u);l&&(r.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,r)}return r}};Gc.ASTValidationContext=xh;var iR=class extends xh{constructor(t,r,n){super(t,n),this._schema=r}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Gc.SDLValidationContext=iR;var aR=class extends xh{constructor(t,r,n,i){super(r,i),this._schema=t,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let r=this._variableUsages.get(t);if(!r){let n=[],i=new Ez.TypeInfo(this._schema);(0,VDe.visit)(t,(0,Ez.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){n.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),r=n,this._variableUsages.set(t,r)}return r}getRecursiveVariableUsages(t){let r=this._recursiveVariableUsages.get(t);if(!r){r=this.getVariableUsages(t);for(let n of this.getRecursivelyReferencedFragments(t))r=r.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(t,r)}return r}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()}};Gc.ValidationContext=aR});var Qf=O(Gf=>{"use strict";d();p();f();Object.defineProperty(Gf,"__esModule",{value:!0});Gf.assertValidSDL=YDe;Gf.assertValidSDLExtension=JDe;Gf.validate=QDe;Gf.validateSDL=sR;var KDe=ui(),$De=at(),wg=$l(),GDe=Rh(),gz=yg(),Iz=nR(),vz=oR();function QDe(e,t,r=Iz.specifiedRules,n,i=new gz.TypeInfo(e)){var a;let o=(a=n==null?void 0:n.maxErrors)!==null&&a!==void 0?a:100;t||(0,KDe.devAssert)(!1,"Must provide document."),(0,GDe.assertValidSchema)(e);let u=Object.freeze({}),l=[],m=new vz.ValidationContext(e,t,i,N=>{if(l.length>=o)throw l.push(new $De.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(N)}),h=(0,wg.visitInParallel)(r.map(N=>N(m)));try{(0,wg.visit)(t,(0,gz.visitWithTypeInfo)(i,h))}catch(N){if(N!==u)throw N}return l}function sR(e,t,r=Iz.specifiedSDLRules){let n=[],i=new vz.SDLValidationContext(e,t,o=>{n.push(o)}),a=r.map(o=>o(i));return(0,wg.visit)(e,(0,wg.visitInParallel)(a)),n}function YDe(e){let t=sR(e);if(t.length!==0)throw new Error(t.map(r=>r.message).join(` `))}function JDe(e,t){let r=sR(e,t);if(r.length!==0)throw new Error(r.map(n=>n.message).join(` -`))}});var _z=O(uR=>{"use strict";d();p();f();Object.defineProperty(uR,"__esModule",{value:!0});uR.memoize3=zDe;function zDe(e){let t;return function(n,i,a){t===void 0&&(t=new WeakMap);let o=t.get(n);o===void 0&&(o=new WeakMap,t.set(n,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(a);return l===void 0&&(l=e(n,i,a),u.set(a,l)),l}}});var Sz=O(cR=>{"use strict";d();p();f();Object.defineProperty(cR,"__esModule",{value:!0});cR.promiseForObject=HDe;function HDe(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,i]of Object.keys(e).entries())r[i]=t[n];return r})}});var Oz=O(lR=>{"use strict";d();p();f();Object.defineProperty(lR,"__esModule",{value:!0});lR.promiseReduce=XDe;var WDe=FE();function XDe(e,t,r){let n=r;for(let i of e)n=(0,WDe.isPromise)(n)?n.then(a=>t(a,i)):t(n,i);return n}});var Dz=O(fR=>{"use strict";d();p();f();Object.defineProperty(fR,"__esModule",{value:!0});fR.toError=ebe;var ZDe=ur();function ebe(e){return e instanceof Error?e:new dR(e)}var dR=class extends Error{constructor(t){super("Unexpected error value: "+(0,ZDe.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var Pg=O(pR=>{"use strict";d();p();f();Object.defineProperty(pR,"__esModule",{value:!0});pR.locatedError=nbe;var tbe=Dz(),rbe=at();function nbe(e,t,r){var n;let i=(0,tbe.toError)(e);return ibe(i)?i:new rbe.GraphQLError(i.message,{nodes:(n=i.nodes)!==null&&n!==void 0?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}function ibe(e){return Array.isArray(e.path)}});var jh=O(Na=>{"use strict";d();p();f();Object.defineProperty(Na,"__esModule",{value:!0});Na.assertValidExecutionArguments=Cz;Na.buildExecutionContext=Bz;Na.buildResolveInfo=kz;Na.defaultTypeResolver=Na.defaultFieldResolver=void 0;Na.execute=Lz;Na.executeSync=dbe;Na.getFieldDef=xz;var hR=ui(),td=ur(),abe=Zn(),obe=fg(),TR=wo(),to=FE(),sbe=_z(),rd=Fh(),bz=Sz(),ube=Oz(),ya=at(),Lg=Pg(),mR=Po(),Az=jt(),Qc=Vt(),Yf=ma(),cbe=Rh(),Pz=bg(),Fz=$f(),lbe=(0,sbe.memoize3)((e,t,r)=>(0,Pz.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r));function Lz(e){arguments.length<2||(0,hR.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:i}=e;Cz(t,r,n);let a=Bz(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,u=fbe(a,o,i);return(0,to.isPromise)(u)?u.then(l=>Fg(l,a.errors),l=>(a.errors.push(l),Fg(null,a.errors))):Fg(u,a.errors)}catch(o){return a.errors.push(o),Fg(null,a.errors)}}function dbe(e){let t=Lz(e);if((0,to.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Fg(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Cz(e,t,r){t||(0,hR.devAssert)(!1,"Must provide document."),(0,cbe.assertValidSchema)(e),r==null||(0,TR.isObjectLike)(r)||(0,hR.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 Bz(e){var t,r;let{schema:n,document:i,rootValue:a,contextValue:o,variableValues:u,operationName:l,fieldResolver:m,typeResolver:h,subscribeFieldResolver:N}=e,T,D=Object.create(null);for(let M of i.definitions)switch(M.kind){case Az.Kind.OPERATION_DEFINITION:if(l==null){if(T!==void 0)return[new ya.GraphQLError("Must provide operation name if query contains multiple operations.")];T=M}else((t=M.name)===null||t===void 0?void 0:t.value)===l&&(T=M);break;case Az.Kind.FRAGMENT_DEFINITION:D[M.name.value]=M;break;default:}if(!T)return l!=null?[new ya.GraphQLError(`Unknown operation named "${l}".`)]:[new ya.GraphQLError("Must provide an operation.")];let R=(r=T.variableDefinitions)!==null&&r!==void 0?r:[],C=(0,Fz.getVariableValues)(n,R,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:n,fragments:D,rootValue:a,contextValue:o,operation:T,variableValues:C.coerced,fieldResolver:m!=null?m:NR,typeResolver:h!=null?h:qz,subscribeFieldResolver:N!=null?N:NR,errors:[]}}function fbe(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new ya.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Pz.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),a=void 0;switch(t.operation){case mR.OperationTypeNode.QUERY:return Cg(e,n,r,a,i);case mR.OperationTypeNode.MUTATION:return pbe(e,n,r,a,i);case mR.OperationTypeNode.SUBSCRIPTION:return Cg(e,n,r,a,i)}}function pbe(e,t,r,n,i){return(0,ube.promiseReduce)(i.entries(),(a,[o,u])=>{let l=(0,rd.addPath)(n,o,t.name),m=Uz(e,t,r,u,l);return m===void 0?a:(0,to.isPromise)(m)?m.then(h=>(a[o]=h,a)):(a[o]=m,a)},Object.create(null))}function Cg(e,t,r,n,i){let a=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let m=(0,rd.addPath)(n,u,t.name),h=Uz(e,t,r,l,m);h!==void 0&&(a[u]=h,(0,to.isPromise)(h)&&(o=!0))}}catch(u){if(o)return(0,bz.promiseForObject)(a).finally(()=>{throw u});throw u}return o?(0,bz.promiseForObject)(a):a}function Uz(e,t,r,n,i){var a;let o=xz(e.schema,t,n[0]);if(!o)return;let u=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,m=kz(e,o,n,t,i);try{let h=(0,Fz.getArgumentValues)(o,n[0],e.variableValues),N=e.contextValue,T=l(r,h,N,m),D;return(0,to.isPromise)(T)?D=T.then(R=>Mh(e,u,n,m,i,R)):D=Mh(e,u,n,m,i,T),(0,to.isPromise)(D)?D.then(void 0,R=>{let C=(0,Lg.locatedError)(R,n,(0,rd.pathToArray)(i));return Bg(C,u,e)}):D}catch(h){let N=(0,Lg.locatedError)(h,n,(0,rd.pathToArray)(i));return Bg(N,u,e)}}function kz(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Bg(e,t,r){if((0,Qc.isNonNullType)(t))throw e;return r.errors.push(e),null}function Mh(e,t,r,n,i,a){if(a instanceof Error)throw a;if((0,Qc.isNonNullType)(t)){let o=Mh(e,t.ofType,r,n,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return o}if(a==null)return null;if((0,Qc.isListType)(t))return mbe(e,t,r,n,i,a);if((0,Qc.isLeafType)(t))return hbe(t,a);if((0,Qc.isAbstractType)(t))return ybe(e,t,r,n,i,a);if((0,Qc.isObjectType)(t))return yR(e,t,r,n,i,a);(0,abe.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,td.inspect)(t))}function mbe(e,t,r,n,i,a){if(!(0,obe.isIterableObject)(a))throw new ya.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(a,(m,h)=>{let N=(0,rd.addPath)(i,h,void 0);try{let T;return(0,to.isPromise)(m)?T=m.then(D=>Mh(e,o,r,n,N,D)):T=Mh(e,o,r,n,N,m),(0,to.isPromise)(T)?(u=!0,T.then(void 0,D=>{let R=(0,Lg.locatedError)(D,r,(0,rd.pathToArray)(N));return Bg(R,o,e)})):T}catch(T){let D=(0,Lg.locatedError)(T,r,(0,rd.pathToArray)(N));return Bg(D,o,e)}});return u?Promise.all(l):l}function hbe(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,td.inspect)(e)}.serialize(${(0,td.inspect)(t)})\` to return non-nullable value, returned: ${(0,td.inspect)(r)}`);return r}function ybe(e,t,r,n,i,a){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,m=u(a,l,n,t);return(0,to.isPromise)(m)?m.then(h=>yR(e,Rz(h,e,t,r,n,a),r,n,i,a)):yR(e,Rz(m,e,t,r,n,a),r,n,i,a)}function Rz(e,t,r,n,i,a){if(e==null)throw new ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Qc.isObjectType)(e))throw new ya.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 ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,td.inspect)(a)}, received "${(0,td.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Qc.isObjectType)(o))throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,o))throw new ya.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${r.name}".`,{nodes:n});return o}function yR(e,t,r,n,i,a){let o=lbe(e,t,r);if(t.isTypeOf){let u=t.isTypeOf(a,e.contextValue,n);if((0,to.isPromise)(u))return u.then(l=>{if(!l)throw wz(t,a,r);return Cg(e,t,a,i,o)});if(!u)throw wz(t,a,r)}return Cg(e,t,a,i,o)}function wz(e,t,r){return new ya.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,td.inspect)(t)}.`,{nodes:r})}var qz=function(e,t,r,n){if((0,TR.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=r.schema.getPossibleTypes(n),a=[];for(let o=0;o{for(let u=0;u{"use strict";d();p();f();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.graphql=_be;Ug.graphqlSync=Sbe;var Nbe=ui(),Tbe=FE(),Ebe=Cf(),gbe=Rh(),Ibe=Qf(),vbe=jh();function _be(e){return new Promise(t=>t(Mz(e)))}function Sbe(e){let t=Mz(e);if((0,Tbe.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Mz(e){arguments.length<2||(0,Nbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l}=e,m=(0,gbe.validateSchema)(t);if(m.length>0)return{errors:m};let h;try{h=(0,Ebe.parse)(r)}catch(T){return{errors:[T]}}let N=(0,Ibe.validate)(t,h);return N.length>0?{errors:N}:(0,vbe.execute)({schema:t,document:h,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l})}});var $z=O(Ee=>{"use strict";d();p();f();Object.defineProperty(Ee,"__esModule",{value:!0});Object.defineProperty(Ee,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ro.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ee,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MAX_INT}});Object.defineProperty(Ee,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MIN_INT}});Object.defineProperty(Ee,"GraphQLBoolean",{enumerable:!0,get:function(){return Ls.GraphQLBoolean}});Object.defineProperty(Ee,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ro.GraphQLDeprecatedDirective}});Object.defineProperty(Ee,"GraphQLDirective",{enumerable:!0,get:function(){return ro.GraphQLDirective}});Object.defineProperty(Ee,"GraphQLEnumType",{enumerable:!0,get:function(){return dt.GraphQLEnumType}});Object.defineProperty(Ee,"GraphQLFloat",{enumerable:!0,get:function(){return Ls.GraphQLFloat}});Object.defineProperty(Ee,"GraphQLID",{enumerable:!0,get:function(){return Ls.GraphQLID}});Object.defineProperty(Ee,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ro.GraphQLIncludeDirective}});Object.defineProperty(Ee,"GraphQLInputObjectType",{enumerable:!0,get:function(){return dt.GraphQLInputObjectType}});Object.defineProperty(Ee,"GraphQLInt",{enumerable:!0,get:function(){return Ls.GraphQLInt}});Object.defineProperty(Ee,"GraphQLInterfaceType",{enumerable:!0,get:function(){return dt.GraphQLInterfaceType}});Object.defineProperty(Ee,"GraphQLList",{enumerable:!0,get:function(){return dt.GraphQLList}});Object.defineProperty(Ee,"GraphQLNonNull",{enumerable:!0,get:function(){return dt.GraphQLNonNull}});Object.defineProperty(Ee,"GraphQLObjectType",{enumerable:!0,get:function(){return dt.GraphQLObjectType}});Object.defineProperty(Ee,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ro.GraphQLOneOfDirective}});Object.defineProperty(Ee,"GraphQLScalarType",{enumerable:!0,get:function(){return dt.GraphQLScalarType}});Object.defineProperty(Ee,"GraphQLSchema",{enumerable:!0,get:function(){return ER.GraphQLSchema}});Object.defineProperty(Ee,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ro.GraphQLSkipDirective}});Object.defineProperty(Ee,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ro.GraphQLSpecifiedByDirective}});Object.defineProperty(Ee,"GraphQLString",{enumerable:!0,get:function(){return Ls.GraphQLString}});Object.defineProperty(Ee,"GraphQLUnionType",{enumerable:!0,get:function(){return dt.GraphQLUnionType}});Object.defineProperty(Ee,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Di.SchemaMetaFieldDef}});Object.defineProperty(Ee,"TypeKind",{enumerable:!0,get:function(){return Di.TypeKind}});Object.defineProperty(Ee,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Di.TypeMetaFieldDef}});Object.defineProperty(Ee,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Di.TypeNameMetaFieldDef}});Object.defineProperty(Ee,"__Directive",{enumerable:!0,get:function(){return Di.__Directive}});Object.defineProperty(Ee,"__DirectiveLocation",{enumerable:!0,get:function(){return Di.__DirectiveLocation}});Object.defineProperty(Ee,"__EnumValue",{enumerable:!0,get:function(){return Di.__EnumValue}});Object.defineProperty(Ee,"__Field",{enumerable:!0,get:function(){return Di.__Field}});Object.defineProperty(Ee,"__InputValue",{enumerable:!0,get:function(){return Di.__InputValue}});Object.defineProperty(Ee,"__Schema",{enumerable:!0,get:function(){return Di.__Schema}});Object.defineProperty(Ee,"__Type",{enumerable:!0,get:function(){return Di.__Type}});Object.defineProperty(Ee,"__TypeKind",{enumerable:!0,get:function(){return Di.__TypeKind}});Object.defineProperty(Ee,"assertAbstractType",{enumerable:!0,get:function(){return dt.assertAbstractType}});Object.defineProperty(Ee,"assertCompositeType",{enumerable:!0,get:function(){return dt.assertCompositeType}});Object.defineProperty(Ee,"assertDirective",{enumerable:!0,get:function(){return ro.assertDirective}});Object.defineProperty(Ee,"assertEnumType",{enumerable:!0,get:function(){return dt.assertEnumType}});Object.defineProperty(Ee,"assertEnumValueName",{enumerable:!0,get:function(){return Kz.assertEnumValueName}});Object.defineProperty(Ee,"assertInputObjectType",{enumerable:!0,get:function(){return dt.assertInputObjectType}});Object.defineProperty(Ee,"assertInputType",{enumerable:!0,get:function(){return dt.assertInputType}});Object.defineProperty(Ee,"assertInterfaceType",{enumerable:!0,get:function(){return dt.assertInterfaceType}});Object.defineProperty(Ee,"assertLeafType",{enumerable:!0,get:function(){return dt.assertLeafType}});Object.defineProperty(Ee,"assertListType",{enumerable:!0,get:function(){return dt.assertListType}});Object.defineProperty(Ee,"assertName",{enumerable:!0,get:function(){return Kz.assertName}});Object.defineProperty(Ee,"assertNamedType",{enumerable:!0,get:function(){return dt.assertNamedType}});Object.defineProperty(Ee,"assertNonNullType",{enumerable:!0,get:function(){return dt.assertNonNullType}});Object.defineProperty(Ee,"assertNullableType",{enumerable:!0,get:function(){return dt.assertNullableType}});Object.defineProperty(Ee,"assertObjectType",{enumerable:!0,get:function(){return dt.assertObjectType}});Object.defineProperty(Ee,"assertOutputType",{enumerable:!0,get:function(){return dt.assertOutputType}});Object.defineProperty(Ee,"assertScalarType",{enumerable:!0,get:function(){return dt.assertScalarType}});Object.defineProperty(Ee,"assertSchema",{enumerable:!0,get:function(){return ER.assertSchema}});Object.defineProperty(Ee,"assertType",{enumerable:!0,get:function(){return dt.assertType}});Object.defineProperty(Ee,"assertUnionType",{enumerable:!0,get:function(){return dt.assertUnionType}});Object.defineProperty(Ee,"assertValidSchema",{enumerable:!0,get:function(){return Vz.assertValidSchema}});Object.defineProperty(Ee,"assertWrappingType",{enumerable:!0,get:function(){return dt.assertWrappingType}});Object.defineProperty(Ee,"getNamedType",{enumerable:!0,get:function(){return dt.getNamedType}});Object.defineProperty(Ee,"getNullableType",{enumerable:!0,get:function(){return dt.getNullableType}});Object.defineProperty(Ee,"introspectionTypes",{enumerable:!0,get:function(){return Di.introspectionTypes}});Object.defineProperty(Ee,"isAbstractType",{enumerable:!0,get:function(){return dt.isAbstractType}});Object.defineProperty(Ee,"isCompositeType",{enumerable:!0,get:function(){return dt.isCompositeType}});Object.defineProperty(Ee,"isDirective",{enumerable:!0,get:function(){return ro.isDirective}});Object.defineProperty(Ee,"isEnumType",{enumerable:!0,get:function(){return dt.isEnumType}});Object.defineProperty(Ee,"isInputObjectType",{enumerable:!0,get:function(){return dt.isInputObjectType}});Object.defineProperty(Ee,"isInputType",{enumerable:!0,get:function(){return dt.isInputType}});Object.defineProperty(Ee,"isInterfaceType",{enumerable:!0,get:function(){return dt.isInterfaceType}});Object.defineProperty(Ee,"isIntrospectionType",{enumerable:!0,get:function(){return Di.isIntrospectionType}});Object.defineProperty(Ee,"isLeafType",{enumerable:!0,get:function(){return dt.isLeafType}});Object.defineProperty(Ee,"isListType",{enumerable:!0,get:function(){return dt.isListType}});Object.defineProperty(Ee,"isNamedType",{enumerable:!0,get:function(){return dt.isNamedType}});Object.defineProperty(Ee,"isNonNullType",{enumerable:!0,get:function(){return dt.isNonNullType}});Object.defineProperty(Ee,"isNullableType",{enumerable:!0,get:function(){return dt.isNullableType}});Object.defineProperty(Ee,"isObjectType",{enumerable:!0,get:function(){return dt.isObjectType}});Object.defineProperty(Ee,"isOutputType",{enumerable:!0,get:function(){return dt.isOutputType}});Object.defineProperty(Ee,"isRequiredArgument",{enumerable:!0,get:function(){return dt.isRequiredArgument}});Object.defineProperty(Ee,"isRequiredInputField",{enumerable:!0,get:function(){return dt.isRequiredInputField}});Object.defineProperty(Ee,"isScalarType",{enumerable:!0,get:function(){return dt.isScalarType}});Object.defineProperty(Ee,"isSchema",{enumerable:!0,get:function(){return ER.isSchema}});Object.defineProperty(Ee,"isSpecifiedDirective",{enumerable:!0,get:function(){return ro.isSpecifiedDirective}});Object.defineProperty(Ee,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ls.isSpecifiedScalarType}});Object.defineProperty(Ee,"isType",{enumerable:!0,get:function(){return dt.isType}});Object.defineProperty(Ee,"isUnionType",{enumerable:!0,get:function(){return dt.isUnionType}});Object.defineProperty(Ee,"isWrappingType",{enumerable:!0,get:function(){return dt.isWrappingType}});Object.defineProperty(Ee,"resolveObjMapThunk",{enumerable:!0,get:function(){return dt.resolveObjMapThunk}});Object.defineProperty(Ee,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return dt.resolveReadonlyArrayThunk}});Object.defineProperty(Ee,"specifiedDirectives",{enumerable:!0,get:function(){return ro.specifiedDirectives}});Object.defineProperty(Ee,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ls.specifiedScalarTypes}});Object.defineProperty(Ee,"validateSchema",{enumerable:!0,get:function(){return Vz.validateSchema}});var ER=Hl(),dt=Vt(),ro=Si(),Ls=Co(),Di=ma(),Vz=Rh(),Kz=mh()});var Qz=O(Jt=>{"use strict";d();p();f();Object.defineProperty(Jt,"__esModule",{value:!0});Object.defineProperty(Jt,"BREAK",{enumerable:!0,get:function(){return Vh.BREAK}});Object.defineProperty(Jt,"DirectiveLocation",{enumerable:!0,get:function(){return Pbe.DirectiveLocation}});Object.defineProperty(Jt,"Kind",{enumerable:!0,get:function(){return bbe.Kind}});Object.defineProperty(Jt,"Lexer",{enumerable:!0,get:function(){return Rbe.Lexer}});Object.defineProperty(Jt,"Location",{enumerable:!0,get:function(){return gR.Location}});Object.defineProperty(Jt,"OperationTypeNode",{enumerable:!0,get:function(){return gR.OperationTypeNode}});Object.defineProperty(Jt,"Source",{enumerable:!0,get:function(){return Obe.Source}});Object.defineProperty(Jt,"Token",{enumerable:!0,get:function(){return gR.Token}});Object.defineProperty(Jt,"TokenKind",{enumerable:!0,get:function(){return Abe.TokenKind}});Object.defineProperty(Jt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Vh.getEnterLeaveForKind}});Object.defineProperty(Jt,"getLocation",{enumerable:!0,get:function(){return Dbe.getLocation}});Object.defineProperty(Jt,"getVisitFn",{enumerable:!0,get:function(){return Vh.getVisitFn}});Object.defineProperty(Jt,"isConstValueNode",{enumerable:!0,get:function(){return qo.isConstValueNode}});Object.defineProperty(Jt,"isDefinitionNode",{enumerable:!0,get:function(){return qo.isDefinitionNode}});Object.defineProperty(Jt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return qo.isExecutableDefinitionNode}});Object.defineProperty(Jt,"isSelectionNode",{enumerable:!0,get:function(){return qo.isSelectionNode}});Object.defineProperty(Jt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeDefinitionNode}});Object.defineProperty(Jt,"isTypeExtensionNode",{enumerable:!0,get:function(){return qo.isTypeExtensionNode}});Object.defineProperty(Jt,"isTypeNode",{enumerable:!0,get:function(){return qo.isTypeNode}});Object.defineProperty(Jt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeSystemDefinitionNode}});Object.defineProperty(Jt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return qo.isTypeSystemExtensionNode}});Object.defineProperty(Jt,"isValueNode",{enumerable:!0,get:function(){return qo.isValueNode}});Object.defineProperty(Jt,"parse",{enumerable:!0,get:function(){return kg.parse}});Object.defineProperty(Jt,"parseConstValue",{enumerable:!0,get:function(){return kg.parseConstValue}});Object.defineProperty(Jt,"parseType",{enumerable:!0,get:function(){return kg.parseType}});Object.defineProperty(Jt,"parseValue",{enumerable:!0,get:function(){return kg.parseValue}});Object.defineProperty(Jt,"print",{enumerable:!0,get:function(){return wbe.print}});Object.defineProperty(Jt,"printLocation",{enumerable:!0,get:function(){return Gz.printLocation}});Object.defineProperty(Jt,"printSourceLocation",{enumerable:!0,get:function(){return Gz.printSourceLocation}});Object.defineProperty(Jt,"visit",{enumerable:!0,get:function(){return Vh.visit}});Object.defineProperty(Jt,"visitInParallel",{enumerable:!0,get:function(){return Vh.visitInParallel}});var Obe=VE(),Dbe=LE(),Gz=yb(),bbe=jt(),Abe=oh(),Rbe=qE(),kg=Cf(),wbe=Gi(),Vh=$l(),gR=Po(),qo=Xl(),Pbe=Ff()});var Yz=O(IR=>{"use strict";d();p();f();Object.defineProperty(IR,"__esModule",{value:!0});IR.isAsyncIterable=Fbe;function Fbe(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Jz=O(vR=>{"use strict";d();p();f();Object.defineProperty(vR,"__esModule",{value:!0});vR.mapAsyncIterator=Lbe;function Lbe(e,t){let r=e[Symbol.asyncIterator]();function n(a){return oa(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof r.return=="function")try{yield r.return()}catch(u){}throw o}})}return{next(){return oa(this,null,function*(){return n(yield r.next())})},return(){return oa(this,null,function*(){return typeof r.return=="function"?n(yield r.return()):{value:void 0,done:!0}})},throw(a){return oa(this,null,function*(){if(typeof r.throw=="function")return n(yield r.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var Xz=O(qg=>{"use strict";d();p();f();Object.defineProperty(qg,"__esModule",{value:!0});qg.createSourceEventStream=Wz;qg.subscribe=Mbe;var Cbe=ui(),Bbe=ur(),Hz=Yz(),zz=Fh(),_R=at(),Ube=Pg(),kbe=bg(),Kh=jh(),qbe=Jz(),xbe=$f();function Mbe(t){return oa(this,arguments,function*(e){arguments.length<2||(0,Cbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=yield Wz(e);if(!(0,Hz.isAsyncIterable)(r))return r;let n=i=>(0,Kh.execute)(G(q({},e),{rootValue:i}));return(0,qbe.mapAsyncIterator)(r,n)})}function jbe(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 Wz(...e){return oa(this,null,function*(){let t=jbe(e),{schema:r,document:n,variableValues:i}=t;(0,Kh.assertValidExecutionArguments)(r,n,i);let a=(0,Kh.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield Vbe(a);if(!(0,Hz.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Bbe.inspect)(o)}.`);return o}catch(o){if(o instanceof _R.GraphQLError)return{errors:[o]};throw o}})}function Vbe(e){return oa(this,null,function*(){let{schema:t,fragments:r,operation:n,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new _R.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let u=(0,kbe.collectFields)(t,r,i,o,n.selectionSet),[l,m]=[...u.entries()][0],h=(0,Kh.getFieldDef)(t,o,m[0]);if(!h){let R=m[0].name.value;throw new _R.GraphQLError(`The subscription field "${R}" is not defined.`,{nodes:m})}let N=(0,zz.addPath)(void 0,l,o.name),T=(0,Kh.buildResolveInfo)(e,h,m,o,N);try{var D;let R=(0,xbe.getArgumentValues)(h,m[0],i),C=e.contextValue,Y=yield((D=h.subscribe)!==null&&D!==void 0?D:e.subscribeFieldResolver)(a,R,C,T);if(Y instanceof Error)throw Y;return Y}catch(R){throw(0,Ube.locatedError)(R,m,(0,zz.pathToArray)(N))}})}});var eH=O(Ta=>{"use strict";d();p();f();Object.defineProperty(Ta,"__esModule",{value:!0});Object.defineProperty(Ta,"createSourceEventStream",{enumerable:!0,get:function(){return Zz.createSourceEventStream}});Object.defineProperty(Ta,"defaultFieldResolver",{enumerable:!0,get:function(){return xg.defaultFieldResolver}});Object.defineProperty(Ta,"defaultTypeResolver",{enumerable:!0,get:function(){return xg.defaultTypeResolver}});Object.defineProperty(Ta,"execute",{enumerable:!0,get:function(){return xg.execute}});Object.defineProperty(Ta,"executeSync",{enumerable:!0,get:function(){return xg.executeSync}});Object.defineProperty(Ta,"getArgumentValues",{enumerable:!0,get:function(){return SR.getArgumentValues}});Object.defineProperty(Ta,"getDirectiveValues",{enumerable:!0,get:function(){return SR.getDirectiveValues}});Object.defineProperty(Ta,"getVariableValues",{enumerable:!0,get:function(){return SR.getVariableValues}});Object.defineProperty(Ta,"responsePathAsArray",{enumerable:!0,get:function(){return Kbe.pathToArray}});Object.defineProperty(Ta,"subscribe",{enumerable:!0,get:function(){return Zz.subscribe}});var Kbe=Fh(),xg=jh(),Zz=Xz(),SR=$f()});var tH=O(bR=>{"use strict";d();p();f();Object.defineProperty(bR,"__esModule",{value:!0});bR.NoDeprecatedCustomRule=$be;var OR=Zn(),$h=at(),DR=Vt();function $be(e){return{Field(t){let r=e.getFieldDef(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getParentType();i!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getDirective();if(i!=null)e.reportError(new $h.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`Field "${a.name}.${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,DR.getNamedType)(e.getParentInputType());if((0,DR.isInputObjectType)(r)){let n=r.getFields()[t.name.value],i=n==null?void 0:n.deprecationReason;i!=null&&e.reportError(new $h.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=(0,DR.getNamedType)(e.getInputType());i!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var rH=O(AR=>{"use strict";d();p();f();Object.defineProperty(AR,"__esModule",{value:!0});AR.NoSchemaIntrospectionCustomRule=Jbe;var Gbe=at(),Qbe=Vt(),Ybe=ma();function Jbe(e){return{Field(t){let r=(0,Qbe.getNamedType)(e.getType());r&&(0,Ybe.isIntrospectionType)(r)&&e.reportError(new Gbe.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var iH=O(Tt=>{"use strict";d();p();f();Object.defineProperty(Tt,"__esModule",{value:!0});Object.defineProperty(Tt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Wbe.ExecutableDefinitionsRule}});Object.defineProperty(Tt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Xbe.FieldsOnCorrectTypeRule}});Object.defineProperty(Tt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Zbe.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return e0e.KnownArgumentNamesRule}});Object.defineProperty(Tt,"KnownDirectivesRule",{enumerable:!0,get:function(){return t0e.KnownDirectivesRule}});Object.defineProperty(Tt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return r0e.KnownFragmentNamesRule}});Object.defineProperty(Tt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return n0e.KnownTypeNamesRule}});Object.defineProperty(Tt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return i0e.LoneAnonymousOperationRule}});Object.defineProperty(Tt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return S0e.LoneSchemaDefinitionRule}});Object.defineProperty(Tt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return _0e.MaxIntrospectionDepthRule}});Object.defineProperty(Tt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return F0e.NoDeprecatedCustomRule}});Object.defineProperty(Tt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return a0e.NoFragmentCyclesRule}});Object.defineProperty(Tt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return L0e.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Tt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return o0e.NoUndefinedVariablesRule}});Object.defineProperty(Tt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return s0e.NoUnusedFragmentsRule}});Object.defineProperty(Tt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return u0e.NoUnusedVariablesRule}});Object.defineProperty(Tt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c0e.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return l0e.PossibleFragmentSpreadsRule}});Object.defineProperty(Tt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return P0e.PossibleTypeExtensionsRule}});Object.defineProperty(Tt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return d0e.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tt,"ScalarLeafsRule",{enumerable:!0,get:function(){return f0e.ScalarLeafsRule}});Object.defineProperty(Tt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return p0e.SingleFieldSubscriptionsRule}});Object.defineProperty(Tt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return R0e.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return m0e.UniqueArgumentNamesRule}});Object.defineProperty(Tt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return w0e.UniqueDirectiveNamesRule}});Object.defineProperty(Tt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return h0e.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return b0e.UniqueEnumValueNamesRule}});Object.defineProperty(Tt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return A0e.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return y0e.UniqueFragmentNamesRule}});Object.defineProperty(Tt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return N0e.UniqueInputFieldNamesRule}});Object.defineProperty(Tt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return T0e.UniqueOperationNamesRule}});Object.defineProperty(Tt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return O0e.UniqueOperationTypesRule}});Object.defineProperty(Tt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return D0e.UniqueTypeNamesRule}});Object.defineProperty(Tt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return E0e.UniqueVariableNamesRule}});Object.defineProperty(Tt,"ValidationContext",{enumerable:!0,get:function(){return Hbe.ValidationContext}});Object.defineProperty(Tt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return g0e.ValuesOfCorrectTypeRule}});Object.defineProperty(Tt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return I0e.VariablesAreInputTypesRule}});Object.defineProperty(Tt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return v0e.VariablesInAllowedPositionRule}});Object.defineProperty(Tt,"recommendedRules",{enumerable:!0,get:function(){return nH.recommendedRules}});Object.defineProperty(Tt,"specifiedRules",{enumerable:!0,get:function(){return nH.specifiedRules}});Object.defineProperty(Tt,"validate",{enumerable:!0,get:function(){return zbe.validate}});var zbe=Qf(),Hbe=oR(),nH=nR(),Wbe=g0(),Xbe=v0(),Zbe=S0(),e0e=O0(),t0e=R0(),r0e=P0(),n0e=C0(),i0e=U0(),a0e=V0(),o0e=$0(),s0e=Q0(),u0e=J0(),c0e=iA(),l0e=sA(),d0e=dA(),f0e=pA(),p0e=vA(),m0e=bA(),h0e=FA(),y0e=xA(),N0e=jA(),T0e=KA(),E0e=zA(),g0e=XA(),I0e=eR(),v0e=rR(),_0e=M0(),S0e=q0(),O0e=GA(),D0e=YA(),b0e=CA(),A0e=kA(),R0e=OA(),w0e=RA(),P0e=cA(),F0e=tH(),L0e=rH()});var aH=O(nd=>{"use strict";d();p();f();Object.defineProperty(nd,"__esModule",{value:!0});Object.defineProperty(nd,"GraphQLError",{enumerable:!0,get:function(){return RR.GraphQLError}});Object.defineProperty(nd,"formatError",{enumerable:!0,get:function(){return RR.formatError}});Object.defineProperty(nd,"locatedError",{enumerable:!0,get:function(){return B0e.locatedError}});Object.defineProperty(nd,"printError",{enumerable:!0,get:function(){return RR.printError}});Object.defineProperty(nd,"syntaxError",{enumerable:!0,get:function(){return C0e.syntaxError}});var RR=at(),C0e=BE(),B0e=Pg()});var PR=O(wR=>{"use strict";d();p();f();Object.defineProperty(wR,"__esModule",{value:!0});wR.getIntrospectionQuery=U0e;function U0e(e){let t=q({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?r:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` +`))}});var _z=O(uR=>{"use strict";d();p();f();Object.defineProperty(uR,"__esModule",{value:!0});uR.memoize3=zDe;function zDe(e){let t;return function(n,i,a){t===void 0&&(t=new WeakMap);let o=t.get(n);o===void 0&&(o=new WeakMap,t.set(n,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(a);return l===void 0&&(l=e(n,i,a),u.set(a,l)),l}}});var Sz=O(cR=>{"use strict";d();p();f();Object.defineProperty(cR,"__esModule",{value:!0});cR.promiseForObject=HDe;function HDe(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,i]of Object.keys(e).entries())r[i]=t[n];return r})}});var Oz=O(lR=>{"use strict";d();p();f();Object.defineProperty(lR,"__esModule",{value:!0});lR.promiseReduce=XDe;var WDe=FE();function XDe(e,t,r){let n=r;for(let i of e)n=(0,WDe.isPromise)(n)?n.then(a=>t(a,i)):t(n,i);return n}});var Dz=O(fR=>{"use strict";d();p();f();Object.defineProperty(fR,"__esModule",{value:!0});fR.toError=ebe;var ZDe=cr();function ebe(e){return e instanceof Error?e:new dR(e)}var dR=class extends Error{constructor(t){super("Unexpected error value: "+(0,ZDe.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var Pg=O(pR=>{"use strict";d();p();f();Object.defineProperty(pR,"__esModule",{value:!0});pR.locatedError=nbe;var tbe=Dz(),rbe=at();function nbe(e,t,r){var n;let i=(0,tbe.toError)(e);return ibe(i)?i:new rbe.GraphQLError(i.message,{nodes:(n=i.nodes)!==null&&n!==void 0?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}function ibe(e){return Array.isArray(e.path)}});var jh=O(Na=>{"use strict";d();p();f();Object.defineProperty(Na,"__esModule",{value:!0});Na.assertValidExecutionArguments=Cz;Na.buildExecutionContext=Bz;Na.buildResolveInfo=kz;Na.defaultTypeResolver=Na.defaultFieldResolver=void 0;Na.execute=Lz;Na.executeSync=dbe;Na.getFieldDef=xz;var hR=ui(),td=cr(),abe=Zn(),obe=fg(),TR=wo(),to=FE(),sbe=_z(),rd=Fh(),bz=Sz(),ube=Oz(),ya=at(),Lg=Pg(),mR=Po(),Az=jt(),Qc=Vt(),Yf=ma(),cbe=Rh(),Pz=bg(),Fz=$f(),lbe=(0,sbe.memoize3)((e,t,r)=>(0,Pz.collectSubfields)(e.schema,e.fragments,e.variableValues,t,r));function Lz(e){arguments.length<2||(0,hR.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:i}=e;Cz(t,r,n);let a=Bz(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,u=fbe(a,o,i);return(0,to.isPromise)(u)?u.then(l=>Fg(l,a.errors),l=>(a.errors.push(l),Fg(null,a.errors))):Fg(u,a.errors)}catch(o){return a.errors.push(o),Fg(null,a.errors)}}function dbe(e){let t=Lz(e);if((0,to.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Fg(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Cz(e,t,r){t||(0,hR.devAssert)(!1,"Must provide document."),(0,cbe.assertValidSchema)(e),r==null||(0,TR.isObjectLike)(r)||(0,hR.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 Bz(e){var t,r;let{schema:n,document:i,rootValue:a,contextValue:o,variableValues:u,operationName:l,fieldResolver:m,typeResolver:h,subscribeFieldResolver:N}=e,T,D=Object.create(null);for(let M of i.definitions)switch(M.kind){case Az.Kind.OPERATION_DEFINITION:if(l==null){if(T!==void 0)return[new ya.GraphQLError("Must provide operation name if query contains multiple operations.")];T=M}else((t=M.name)===null||t===void 0?void 0:t.value)===l&&(T=M);break;case Az.Kind.FRAGMENT_DEFINITION:D[M.name.value]=M;break;default:}if(!T)return l!=null?[new ya.GraphQLError(`Unknown operation named "${l}".`)]:[new ya.GraphQLError("Must provide an operation.")];let R=(r=T.variableDefinitions)!==null&&r!==void 0?r:[],C=(0,Fz.getVariableValues)(n,R,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:n,fragments:D,rootValue:a,contextValue:o,operation:T,variableValues:C.coerced,fieldResolver:m!=null?m:NR,typeResolver:h!=null?h:qz,subscribeFieldResolver:N!=null?N:NR,errors:[]}}function fbe(e,t,r){let n=e.schema.getRootType(t.operation);if(n==null)throw new ya.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Pz.collectFields)(e.schema,e.fragments,e.variableValues,n,t.selectionSet),a=void 0;switch(t.operation){case mR.OperationTypeNode.QUERY:return Cg(e,n,r,a,i);case mR.OperationTypeNode.MUTATION:return pbe(e,n,r,a,i);case mR.OperationTypeNode.SUBSCRIPTION:return Cg(e,n,r,a,i)}}function pbe(e,t,r,n,i){return(0,ube.promiseReduce)(i.entries(),(a,[o,u])=>{let l=(0,rd.addPath)(n,o,t.name),m=Uz(e,t,r,u,l);return m===void 0?a:(0,to.isPromise)(m)?m.then(h=>(a[o]=h,a)):(a[o]=m,a)},Object.create(null))}function Cg(e,t,r,n,i){let a=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let m=(0,rd.addPath)(n,u,t.name),h=Uz(e,t,r,l,m);h!==void 0&&(a[u]=h,(0,to.isPromise)(h)&&(o=!0))}}catch(u){if(o)return(0,bz.promiseForObject)(a).finally(()=>{throw u});throw u}return o?(0,bz.promiseForObject)(a):a}function Uz(e,t,r,n,i){var a;let o=xz(e.schema,t,n[0]);if(!o)return;let u=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,m=kz(e,o,n,t,i);try{let h=(0,Fz.getArgumentValues)(o,n[0],e.variableValues),N=e.contextValue,T=l(r,h,N,m),D;return(0,to.isPromise)(T)?D=T.then(R=>Mh(e,u,n,m,i,R)):D=Mh(e,u,n,m,i,T),(0,to.isPromise)(D)?D.then(void 0,R=>{let C=(0,Lg.locatedError)(R,n,(0,rd.pathToArray)(i));return Bg(C,u,e)}):D}catch(h){let N=(0,Lg.locatedError)(h,n,(0,rd.pathToArray)(i));return Bg(N,u,e)}}function kz(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Bg(e,t,r){if((0,Qc.isNonNullType)(t))throw e;return r.errors.push(e),null}function Mh(e,t,r,n,i,a){if(a instanceof Error)throw a;if((0,Qc.isNonNullType)(t)){let o=Mh(e,t.ofType,r,n,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return o}if(a==null)return null;if((0,Qc.isListType)(t))return mbe(e,t,r,n,i,a);if((0,Qc.isLeafType)(t))return hbe(t,a);if((0,Qc.isAbstractType)(t))return ybe(e,t,r,n,i,a);if((0,Qc.isObjectType)(t))return yR(e,t,r,n,i,a);(0,abe.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,td.inspect)(t))}function mbe(e,t,r,n,i,a){if(!(0,obe.isIterableObject)(a))throw new ya.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(a,(m,h)=>{let N=(0,rd.addPath)(i,h,void 0);try{let T;return(0,to.isPromise)(m)?T=m.then(D=>Mh(e,o,r,n,N,D)):T=Mh(e,o,r,n,N,m),(0,to.isPromise)(T)?(u=!0,T.then(void 0,D=>{let R=(0,Lg.locatedError)(D,r,(0,rd.pathToArray)(N));return Bg(R,o,e)})):T}catch(T){let D=(0,Lg.locatedError)(T,r,(0,rd.pathToArray)(N));return Bg(D,o,e)}});return u?Promise.all(l):l}function hbe(e,t){let r=e.serialize(t);if(r==null)throw new Error(`Expected \`${(0,td.inspect)(e)}.serialize(${(0,td.inspect)(t)})\` to return non-nullable value, returned: ${(0,td.inspect)(r)}`);return r}function ybe(e,t,r,n,i,a){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,m=u(a,l,n,t);return(0,to.isPromise)(m)?m.then(h=>yR(e,Rz(h,e,t,r,n,a),r,n,i,a)):yR(e,Rz(m,e,t,r,n,a),r,n,i,a)}function Rz(e,t,r,n,i,a){if(e==null)throw new ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if((0,Qc.isObjectType)(e))throw new ya.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 ya.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,td.inspect)(a)}, received "${(0,td.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!(0,Qc.isObjectType)(o))throw new ya.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,o))throw new ya.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${r.name}".`,{nodes:n});return o}function yR(e,t,r,n,i,a){let o=lbe(e,t,r);if(t.isTypeOf){let u=t.isTypeOf(a,e.contextValue,n);if((0,to.isPromise)(u))return u.then(l=>{if(!l)throw wz(t,a,r);return Cg(e,t,a,i,o)});if(!u)throw wz(t,a,r)}return Cg(e,t,a,i,o)}function wz(e,t,r){return new ya.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,td.inspect)(t)}.`,{nodes:r})}var qz=function(e,t,r,n){if((0,TR.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=r.schema.getPossibleTypes(n),a=[];for(let o=0;o{for(let u=0;u{"use strict";d();p();f();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.graphql=_be;Ug.graphqlSync=Sbe;var Nbe=ui(),Tbe=FE(),Ebe=Cf(),gbe=Rh(),Ibe=Qf(),vbe=jh();function _be(e){return new Promise(t=>t(Mz(e)))}function Sbe(e){let t=Mz(e);if((0,Tbe.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Mz(e){arguments.length<2||(0,Nbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:r,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l}=e,m=(0,gbe.validateSchema)(t);if(m.length>0)return{errors:m};let h;try{h=(0,Ebe.parse)(r)}catch(T){return{errors:[T]}}let N=(0,Ibe.validate)(t,h);return N.length>0?{errors:N}:(0,vbe.execute)({schema:t,document:h,rootValue:n,contextValue:i,variableValues:a,operationName:o,fieldResolver:u,typeResolver:l})}});var $z=O(Ee=>{"use strict";d();p();f();Object.defineProperty(Ee,"__esModule",{value:!0});Object.defineProperty(Ee,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ro.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Ee,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MAX_INT}});Object.defineProperty(Ee,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ls.GRAPHQL_MIN_INT}});Object.defineProperty(Ee,"GraphQLBoolean",{enumerable:!0,get:function(){return Ls.GraphQLBoolean}});Object.defineProperty(Ee,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ro.GraphQLDeprecatedDirective}});Object.defineProperty(Ee,"GraphQLDirective",{enumerable:!0,get:function(){return ro.GraphQLDirective}});Object.defineProperty(Ee,"GraphQLEnumType",{enumerable:!0,get:function(){return dt.GraphQLEnumType}});Object.defineProperty(Ee,"GraphQLFloat",{enumerable:!0,get:function(){return Ls.GraphQLFloat}});Object.defineProperty(Ee,"GraphQLID",{enumerable:!0,get:function(){return Ls.GraphQLID}});Object.defineProperty(Ee,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ro.GraphQLIncludeDirective}});Object.defineProperty(Ee,"GraphQLInputObjectType",{enumerable:!0,get:function(){return dt.GraphQLInputObjectType}});Object.defineProperty(Ee,"GraphQLInt",{enumerable:!0,get:function(){return Ls.GraphQLInt}});Object.defineProperty(Ee,"GraphQLInterfaceType",{enumerable:!0,get:function(){return dt.GraphQLInterfaceType}});Object.defineProperty(Ee,"GraphQLList",{enumerable:!0,get:function(){return dt.GraphQLList}});Object.defineProperty(Ee,"GraphQLNonNull",{enumerable:!0,get:function(){return dt.GraphQLNonNull}});Object.defineProperty(Ee,"GraphQLObjectType",{enumerable:!0,get:function(){return dt.GraphQLObjectType}});Object.defineProperty(Ee,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ro.GraphQLOneOfDirective}});Object.defineProperty(Ee,"GraphQLScalarType",{enumerable:!0,get:function(){return dt.GraphQLScalarType}});Object.defineProperty(Ee,"GraphQLSchema",{enumerable:!0,get:function(){return ER.GraphQLSchema}});Object.defineProperty(Ee,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ro.GraphQLSkipDirective}});Object.defineProperty(Ee,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ro.GraphQLSpecifiedByDirective}});Object.defineProperty(Ee,"GraphQLString",{enumerable:!0,get:function(){return Ls.GraphQLString}});Object.defineProperty(Ee,"GraphQLUnionType",{enumerable:!0,get:function(){return dt.GraphQLUnionType}});Object.defineProperty(Ee,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Di.SchemaMetaFieldDef}});Object.defineProperty(Ee,"TypeKind",{enumerable:!0,get:function(){return Di.TypeKind}});Object.defineProperty(Ee,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Di.TypeMetaFieldDef}});Object.defineProperty(Ee,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Di.TypeNameMetaFieldDef}});Object.defineProperty(Ee,"__Directive",{enumerable:!0,get:function(){return Di.__Directive}});Object.defineProperty(Ee,"__DirectiveLocation",{enumerable:!0,get:function(){return Di.__DirectiveLocation}});Object.defineProperty(Ee,"__EnumValue",{enumerable:!0,get:function(){return Di.__EnumValue}});Object.defineProperty(Ee,"__Field",{enumerable:!0,get:function(){return Di.__Field}});Object.defineProperty(Ee,"__InputValue",{enumerable:!0,get:function(){return Di.__InputValue}});Object.defineProperty(Ee,"__Schema",{enumerable:!0,get:function(){return Di.__Schema}});Object.defineProperty(Ee,"__Type",{enumerable:!0,get:function(){return Di.__Type}});Object.defineProperty(Ee,"__TypeKind",{enumerable:!0,get:function(){return Di.__TypeKind}});Object.defineProperty(Ee,"assertAbstractType",{enumerable:!0,get:function(){return dt.assertAbstractType}});Object.defineProperty(Ee,"assertCompositeType",{enumerable:!0,get:function(){return dt.assertCompositeType}});Object.defineProperty(Ee,"assertDirective",{enumerable:!0,get:function(){return ro.assertDirective}});Object.defineProperty(Ee,"assertEnumType",{enumerable:!0,get:function(){return dt.assertEnumType}});Object.defineProperty(Ee,"assertEnumValueName",{enumerable:!0,get:function(){return Kz.assertEnumValueName}});Object.defineProperty(Ee,"assertInputObjectType",{enumerable:!0,get:function(){return dt.assertInputObjectType}});Object.defineProperty(Ee,"assertInputType",{enumerable:!0,get:function(){return dt.assertInputType}});Object.defineProperty(Ee,"assertInterfaceType",{enumerable:!0,get:function(){return dt.assertInterfaceType}});Object.defineProperty(Ee,"assertLeafType",{enumerable:!0,get:function(){return dt.assertLeafType}});Object.defineProperty(Ee,"assertListType",{enumerable:!0,get:function(){return dt.assertListType}});Object.defineProperty(Ee,"assertName",{enumerable:!0,get:function(){return Kz.assertName}});Object.defineProperty(Ee,"assertNamedType",{enumerable:!0,get:function(){return dt.assertNamedType}});Object.defineProperty(Ee,"assertNonNullType",{enumerable:!0,get:function(){return dt.assertNonNullType}});Object.defineProperty(Ee,"assertNullableType",{enumerable:!0,get:function(){return dt.assertNullableType}});Object.defineProperty(Ee,"assertObjectType",{enumerable:!0,get:function(){return dt.assertObjectType}});Object.defineProperty(Ee,"assertOutputType",{enumerable:!0,get:function(){return dt.assertOutputType}});Object.defineProperty(Ee,"assertScalarType",{enumerable:!0,get:function(){return dt.assertScalarType}});Object.defineProperty(Ee,"assertSchema",{enumerable:!0,get:function(){return ER.assertSchema}});Object.defineProperty(Ee,"assertType",{enumerable:!0,get:function(){return dt.assertType}});Object.defineProperty(Ee,"assertUnionType",{enumerable:!0,get:function(){return dt.assertUnionType}});Object.defineProperty(Ee,"assertValidSchema",{enumerable:!0,get:function(){return Vz.assertValidSchema}});Object.defineProperty(Ee,"assertWrappingType",{enumerable:!0,get:function(){return dt.assertWrappingType}});Object.defineProperty(Ee,"getNamedType",{enumerable:!0,get:function(){return dt.getNamedType}});Object.defineProperty(Ee,"getNullableType",{enumerable:!0,get:function(){return dt.getNullableType}});Object.defineProperty(Ee,"introspectionTypes",{enumerable:!0,get:function(){return Di.introspectionTypes}});Object.defineProperty(Ee,"isAbstractType",{enumerable:!0,get:function(){return dt.isAbstractType}});Object.defineProperty(Ee,"isCompositeType",{enumerable:!0,get:function(){return dt.isCompositeType}});Object.defineProperty(Ee,"isDirective",{enumerable:!0,get:function(){return ro.isDirective}});Object.defineProperty(Ee,"isEnumType",{enumerable:!0,get:function(){return dt.isEnumType}});Object.defineProperty(Ee,"isInputObjectType",{enumerable:!0,get:function(){return dt.isInputObjectType}});Object.defineProperty(Ee,"isInputType",{enumerable:!0,get:function(){return dt.isInputType}});Object.defineProperty(Ee,"isInterfaceType",{enumerable:!0,get:function(){return dt.isInterfaceType}});Object.defineProperty(Ee,"isIntrospectionType",{enumerable:!0,get:function(){return Di.isIntrospectionType}});Object.defineProperty(Ee,"isLeafType",{enumerable:!0,get:function(){return dt.isLeafType}});Object.defineProperty(Ee,"isListType",{enumerable:!0,get:function(){return dt.isListType}});Object.defineProperty(Ee,"isNamedType",{enumerable:!0,get:function(){return dt.isNamedType}});Object.defineProperty(Ee,"isNonNullType",{enumerable:!0,get:function(){return dt.isNonNullType}});Object.defineProperty(Ee,"isNullableType",{enumerable:!0,get:function(){return dt.isNullableType}});Object.defineProperty(Ee,"isObjectType",{enumerable:!0,get:function(){return dt.isObjectType}});Object.defineProperty(Ee,"isOutputType",{enumerable:!0,get:function(){return dt.isOutputType}});Object.defineProperty(Ee,"isRequiredArgument",{enumerable:!0,get:function(){return dt.isRequiredArgument}});Object.defineProperty(Ee,"isRequiredInputField",{enumerable:!0,get:function(){return dt.isRequiredInputField}});Object.defineProperty(Ee,"isScalarType",{enumerable:!0,get:function(){return dt.isScalarType}});Object.defineProperty(Ee,"isSchema",{enumerable:!0,get:function(){return ER.isSchema}});Object.defineProperty(Ee,"isSpecifiedDirective",{enumerable:!0,get:function(){return ro.isSpecifiedDirective}});Object.defineProperty(Ee,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ls.isSpecifiedScalarType}});Object.defineProperty(Ee,"isType",{enumerable:!0,get:function(){return dt.isType}});Object.defineProperty(Ee,"isUnionType",{enumerable:!0,get:function(){return dt.isUnionType}});Object.defineProperty(Ee,"isWrappingType",{enumerable:!0,get:function(){return dt.isWrappingType}});Object.defineProperty(Ee,"resolveObjMapThunk",{enumerable:!0,get:function(){return dt.resolveObjMapThunk}});Object.defineProperty(Ee,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return dt.resolveReadonlyArrayThunk}});Object.defineProperty(Ee,"specifiedDirectives",{enumerable:!0,get:function(){return ro.specifiedDirectives}});Object.defineProperty(Ee,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ls.specifiedScalarTypes}});Object.defineProperty(Ee,"validateSchema",{enumerable:!0,get:function(){return Vz.validateSchema}});var ER=Hl(),dt=Vt(),ro=Si(),Ls=Co(),Di=ma(),Vz=Rh(),Kz=mh()});var Qz=O(Jt=>{"use strict";d();p();f();Object.defineProperty(Jt,"__esModule",{value:!0});Object.defineProperty(Jt,"BREAK",{enumerable:!0,get:function(){return Vh.BREAK}});Object.defineProperty(Jt,"DirectiveLocation",{enumerable:!0,get:function(){return Pbe.DirectiveLocation}});Object.defineProperty(Jt,"Kind",{enumerable:!0,get:function(){return bbe.Kind}});Object.defineProperty(Jt,"Lexer",{enumerable:!0,get:function(){return Rbe.Lexer}});Object.defineProperty(Jt,"Location",{enumerable:!0,get:function(){return gR.Location}});Object.defineProperty(Jt,"OperationTypeNode",{enumerable:!0,get:function(){return gR.OperationTypeNode}});Object.defineProperty(Jt,"Source",{enumerable:!0,get:function(){return Obe.Source}});Object.defineProperty(Jt,"Token",{enumerable:!0,get:function(){return gR.Token}});Object.defineProperty(Jt,"TokenKind",{enumerable:!0,get:function(){return Abe.TokenKind}});Object.defineProperty(Jt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Vh.getEnterLeaveForKind}});Object.defineProperty(Jt,"getLocation",{enumerable:!0,get:function(){return Dbe.getLocation}});Object.defineProperty(Jt,"getVisitFn",{enumerable:!0,get:function(){return Vh.getVisitFn}});Object.defineProperty(Jt,"isConstValueNode",{enumerable:!0,get:function(){return qo.isConstValueNode}});Object.defineProperty(Jt,"isDefinitionNode",{enumerable:!0,get:function(){return qo.isDefinitionNode}});Object.defineProperty(Jt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return qo.isExecutableDefinitionNode}});Object.defineProperty(Jt,"isSelectionNode",{enumerable:!0,get:function(){return qo.isSelectionNode}});Object.defineProperty(Jt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeDefinitionNode}});Object.defineProperty(Jt,"isTypeExtensionNode",{enumerable:!0,get:function(){return qo.isTypeExtensionNode}});Object.defineProperty(Jt,"isTypeNode",{enumerable:!0,get:function(){return qo.isTypeNode}});Object.defineProperty(Jt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return qo.isTypeSystemDefinitionNode}});Object.defineProperty(Jt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return qo.isTypeSystemExtensionNode}});Object.defineProperty(Jt,"isValueNode",{enumerable:!0,get:function(){return qo.isValueNode}});Object.defineProperty(Jt,"parse",{enumerable:!0,get:function(){return kg.parse}});Object.defineProperty(Jt,"parseConstValue",{enumerable:!0,get:function(){return kg.parseConstValue}});Object.defineProperty(Jt,"parseType",{enumerable:!0,get:function(){return kg.parseType}});Object.defineProperty(Jt,"parseValue",{enumerable:!0,get:function(){return kg.parseValue}});Object.defineProperty(Jt,"print",{enumerable:!0,get:function(){return wbe.print}});Object.defineProperty(Jt,"printLocation",{enumerable:!0,get:function(){return Gz.printLocation}});Object.defineProperty(Jt,"printSourceLocation",{enumerable:!0,get:function(){return Gz.printSourceLocation}});Object.defineProperty(Jt,"visit",{enumerable:!0,get:function(){return Vh.visit}});Object.defineProperty(Jt,"visitInParallel",{enumerable:!0,get:function(){return Vh.visitInParallel}});var Obe=VE(),Dbe=LE(),Gz=yb(),bbe=jt(),Abe=oh(),Rbe=qE(),kg=Cf(),wbe=Gi(),Vh=$l(),gR=Po(),qo=Xl(),Pbe=Ff()});var Yz=O(IR=>{"use strict";d();p();f();Object.defineProperty(IR,"__esModule",{value:!0});IR.isAsyncIterable=Fbe;function Fbe(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Jz=O(vR=>{"use strict";d();p();f();Object.defineProperty(vR,"__esModule",{value:!0});vR.mapAsyncIterator=Lbe;function Lbe(e,t){let r=e[Symbol.asyncIterator]();function n(a){return oa(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof r.return=="function")try{yield r.return()}catch(u){}throw o}})}return{next(){return oa(this,null,function*(){return n(yield r.next())})},return(){return oa(this,null,function*(){return typeof r.return=="function"?n(yield r.return()):{value:void 0,done:!0}})},throw(a){return oa(this,null,function*(){if(typeof r.throw=="function")return n(yield r.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var Xz=O(qg=>{"use strict";d();p();f();Object.defineProperty(qg,"__esModule",{value:!0});qg.createSourceEventStream=Wz;qg.subscribe=Mbe;var Cbe=ui(),Bbe=cr(),Hz=Yz(),zz=Fh(),_R=at(),Ube=Pg(),kbe=bg(),Kh=jh(),qbe=Jz(),xbe=$f();function Mbe(t){return oa(this,arguments,function*(e){arguments.length<2||(0,Cbe.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let r=yield Wz(e);if(!(0,Hz.isAsyncIterable)(r))return r;let n=i=>(0,Kh.execute)(Q(q({},e),{rootValue:i}));return(0,qbe.mapAsyncIterator)(r,n)})}function jbe(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 Wz(...e){return oa(this,null,function*(){let t=jbe(e),{schema:r,document:n,variableValues:i}=t;(0,Kh.assertValidExecutionArguments)(r,n,i);let a=(0,Kh.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield Vbe(a);if(!(0,Hz.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Bbe.inspect)(o)}.`);return o}catch(o){if(o instanceof _R.GraphQLError)return{errors:[o]};throw o}})}function Vbe(e){return oa(this,null,function*(){let{schema:t,fragments:r,operation:n,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new _R.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let u=(0,kbe.collectFields)(t,r,i,o,n.selectionSet),[l,m]=[...u.entries()][0],h=(0,Kh.getFieldDef)(t,o,m[0]);if(!h){let R=m[0].name.value;throw new _R.GraphQLError(`The subscription field "${R}" is not defined.`,{nodes:m})}let N=(0,zz.addPath)(void 0,l,o.name),T=(0,Kh.buildResolveInfo)(e,h,m,o,N);try{var D;let R=(0,xbe.getArgumentValues)(h,m[0],i),C=e.contextValue,G=yield((D=h.subscribe)!==null&&D!==void 0?D:e.subscribeFieldResolver)(a,R,C,T);if(G instanceof Error)throw G;return G}catch(R){throw(0,Ube.locatedError)(R,m,(0,zz.pathToArray)(N))}})}});var eH=O(Ta=>{"use strict";d();p();f();Object.defineProperty(Ta,"__esModule",{value:!0});Object.defineProperty(Ta,"createSourceEventStream",{enumerable:!0,get:function(){return Zz.createSourceEventStream}});Object.defineProperty(Ta,"defaultFieldResolver",{enumerable:!0,get:function(){return xg.defaultFieldResolver}});Object.defineProperty(Ta,"defaultTypeResolver",{enumerable:!0,get:function(){return xg.defaultTypeResolver}});Object.defineProperty(Ta,"execute",{enumerable:!0,get:function(){return xg.execute}});Object.defineProperty(Ta,"executeSync",{enumerable:!0,get:function(){return xg.executeSync}});Object.defineProperty(Ta,"getArgumentValues",{enumerable:!0,get:function(){return SR.getArgumentValues}});Object.defineProperty(Ta,"getDirectiveValues",{enumerable:!0,get:function(){return SR.getDirectiveValues}});Object.defineProperty(Ta,"getVariableValues",{enumerable:!0,get:function(){return SR.getVariableValues}});Object.defineProperty(Ta,"responsePathAsArray",{enumerable:!0,get:function(){return Kbe.pathToArray}});Object.defineProperty(Ta,"subscribe",{enumerable:!0,get:function(){return Zz.subscribe}});var Kbe=Fh(),xg=jh(),Zz=Xz(),SR=$f()});var tH=O(bR=>{"use strict";d();p();f();Object.defineProperty(bR,"__esModule",{value:!0});bR.NoDeprecatedCustomRule=$be;var OR=Zn(),$h=at(),DR=Vt();function $be(e){return{Field(t){let r=e.getFieldDef(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getParentType();i!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=e.getDirective();if(i!=null)e.reportError(new $h.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`Field "${a.name}.${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=(0,DR.getNamedType)(e.getParentInputType());if((0,DR.isInputObjectType)(r)){let n=r.getFields()[t.name.value],i=n==null?void 0:n.deprecationReason;i!=null&&e.reportError(new $h.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=r==null?void 0:r.deprecationReason;if(r&&n!=null){let i=(0,DR.getNamedType)(e.getInputType());i!=null||(0,OR.invariant)(!1),e.reportError(new $h.GraphQLError(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}});var rH=O(AR=>{"use strict";d();p();f();Object.defineProperty(AR,"__esModule",{value:!0});AR.NoSchemaIntrospectionCustomRule=Jbe;var Gbe=at(),Qbe=Vt(),Ybe=ma();function Jbe(e){return{Field(t){let r=(0,Qbe.getNamedType)(e.getType());r&&(0,Ybe.isIntrospectionType)(r)&&e.reportError(new Gbe.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var iH=O(Tt=>{"use strict";d();p();f();Object.defineProperty(Tt,"__esModule",{value:!0});Object.defineProperty(Tt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Wbe.ExecutableDefinitionsRule}});Object.defineProperty(Tt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Xbe.FieldsOnCorrectTypeRule}});Object.defineProperty(Tt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Zbe.FragmentsOnCompositeTypesRule}});Object.defineProperty(Tt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return eAe.KnownArgumentNamesRule}});Object.defineProperty(Tt,"KnownDirectivesRule",{enumerable:!0,get:function(){return tAe.KnownDirectivesRule}});Object.defineProperty(Tt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return rAe.KnownFragmentNamesRule}});Object.defineProperty(Tt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return nAe.KnownTypeNamesRule}});Object.defineProperty(Tt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return iAe.LoneAnonymousOperationRule}});Object.defineProperty(Tt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return SAe.LoneSchemaDefinitionRule}});Object.defineProperty(Tt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return _Ae.MaxIntrospectionDepthRule}});Object.defineProperty(Tt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return FAe.NoDeprecatedCustomRule}});Object.defineProperty(Tt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return aAe.NoFragmentCyclesRule}});Object.defineProperty(Tt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return LAe.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Tt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oAe.NoUndefinedVariablesRule}});Object.defineProperty(Tt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return sAe.NoUnusedFragmentsRule}});Object.defineProperty(Tt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return uAe.NoUnusedVariablesRule}});Object.defineProperty(Tt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return cAe.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Tt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return lAe.PossibleFragmentSpreadsRule}});Object.defineProperty(Tt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return PAe.PossibleTypeExtensionsRule}});Object.defineProperty(Tt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return dAe.ProvidedRequiredArgumentsRule}});Object.defineProperty(Tt,"ScalarLeafsRule",{enumerable:!0,get:function(){return fAe.ScalarLeafsRule}});Object.defineProperty(Tt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return pAe.SingleFieldSubscriptionsRule}});Object.defineProperty(Tt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return RAe.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return mAe.UniqueArgumentNamesRule}});Object.defineProperty(Tt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return wAe.UniqueDirectiveNamesRule}});Object.defineProperty(Tt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return hAe.UniqueDirectivesPerLocationRule}});Object.defineProperty(Tt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return bAe.UniqueEnumValueNamesRule}});Object.defineProperty(Tt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return AAe.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Tt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return yAe.UniqueFragmentNamesRule}});Object.defineProperty(Tt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return NAe.UniqueInputFieldNamesRule}});Object.defineProperty(Tt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return TAe.UniqueOperationNamesRule}});Object.defineProperty(Tt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return OAe.UniqueOperationTypesRule}});Object.defineProperty(Tt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return DAe.UniqueTypeNamesRule}});Object.defineProperty(Tt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return EAe.UniqueVariableNamesRule}});Object.defineProperty(Tt,"ValidationContext",{enumerable:!0,get:function(){return Hbe.ValidationContext}});Object.defineProperty(Tt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return gAe.ValuesOfCorrectTypeRule}});Object.defineProperty(Tt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return IAe.VariablesAreInputTypesRule}});Object.defineProperty(Tt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return vAe.VariablesInAllowedPositionRule}});Object.defineProperty(Tt,"recommendedRules",{enumerable:!0,get:function(){return nH.recommendedRules}});Object.defineProperty(Tt,"specifiedRules",{enumerable:!0,get:function(){return nH.specifiedRules}});Object.defineProperty(Tt,"validate",{enumerable:!0,get:function(){return zbe.validate}});var zbe=Qf(),Hbe=oR(),nH=nR(),Wbe=gA(),Xbe=vA(),Zbe=SA(),eAe=OA(),tAe=RA(),rAe=PA(),nAe=CA(),iAe=UA(),aAe=VA(),oAe=$A(),sAe=QA(),uAe=JA(),cAe=i0(),lAe=s0(),dAe=d0(),fAe=p0(),pAe=v0(),mAe=b0(),hAe=F0(),yAe=x0(),NAe=j0(),TAe=K0(),EAe=z0(),gAe=X0(),IAe=eR(),vAe=rR(),_Ae=MA(),SAe=qA(),OAe=G0(),DAe=Y0(),bAe=C0(),AAe=k0(),RAe=O0(),wAe=R0(),PAe=c0(),FAe=tH(),LAe=rH()});var aH=O(nd=>{"use strict";d();p();f();Object.defineProperty(nd,"__esModule",{value:!0});Object.defineProperty(nd,"GraphQLError",{enumerable:!0,get:function(){return RR.GraphQLError}});Object.defineProperty(nd,"formatError",{enumerable:!0,get:function(){return RR.formatError}});Object.defineProperty(nd,"locatedError",{enumerable:!0,get:function(){return BAe.locatedError}});Object.defineProperty(nd,"printError",{enumerable:!0,get:function(){return RR.printError}});Object.defineProperty(nd,"syntaxError",{enumerable:!0,get:function(){return CAe.syntaxError}});var RR=at(),CAe=BE(),BAe=Pg()});var PR=O(wR=>{"use strict";d();p();f();Object.defineProperty(wR,"__esModule",{value:!0});wR.getIntrospectionQuery=UAe;function UAe(e){let t=q({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?r:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${a} @@ -192,29 +192,29 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var oH=O(FR=>{"use strict";d();p();f();Object.defineProperty(FR,"__esModule",{value:!0});FR.getOperationAST=q0e;var k0e=jt();function q0e(e,t){let r=null;for(let i of e.definitions)if(i.kind===k0e.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=i}else if(((n=i.name)===null||n===void 0?void 0:n.value)===t)return i}return r}});var sH=O(LR=>{"use strict";d();p();f();Object.defineProperty(LR,"__esModule",{value:!0});LR.getOperationRootType=x0e;var Mg=at();function x0e(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new Mg.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new Mg.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new Mg.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new Mg.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var uH=O(CR=>{"use strict";d();p();f();Object.defineProperty(CR,"__esModule",{value:!0});CR.introspectionFromSchema=$0e;var M0e=Zn(),j0e=Cf(),V0e=jh(),K0e=PR();function $0e(e,t){let r=q({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),n=(0,j0e.parse)((0,K0e.getIntrospectionQuery)(r)),i=(0,V0e.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,M0e.invariant)(!1),i.data}});var lH=O(BR=>{"use strict";d();p();f();Object.defineProperty(BR,"__esModule",{value:!0});BR.buildClientSchema=W0e;var G0e=ui(),Qi=ur(),cH=wo(),jg=fh(),Q0e=Cf(),Yi=Vt(),Y0e=Si(),xo=ma(),J0e=Co(),z0e=Hl(),H0e=Uh();function W0e(e,t){(0,cH.isObjectLike)(e)&&(0,cH.isObjectLike)(e.__schema)||(0,G0e.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Qi.inspect)(e)}.`);let r=e.__schema,n=(0,jg.keyValMap)(r.types,Z=>Z.name,Z=>T(Z));for(let Z of[...J0e.specifiedScalarTypes,...xo.introspectionTypes])n[Z.name]&&(n[Z.name]=Z);let i=r.queryType?h(r.queryType):null,a=r.mutationType?h(r.mutationType):null,o=r.subscriptionType?h(r.subscriptionType):null,u=r.directives?r.directives.map(ot):[];return new z0e.GraphQLSchema({description:r.description,query:i,mutation:a,subscription:o,types:Object.values(n),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(Z){if(Z.kind===xo.TypeKind.LIST){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new Yi.GraphQLList(l(Se))}if(Z.kind===xo.TypeKind.NON_NULL){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let Ft=l(Se);return new Yi.GraphQLNonNull((0,Yi.assertNullableType)(Ft))}return m(Z)}function m(Z){let Se=Z.name;if(!Se)throw new Error(`Unknown type reference: ${(0,Qi.inspect)(Z)}.`);let Ft=n[Se];if(!Ft)throw new Error(`Invalid or incomplete schema, unknown type: ${Se}. Ensure that a full introspection query is used in order to build a client schema.`);return Ft}function h(Z){return(0,Yi.assertObjectType)(m(Z))}function N(Z){return(0,Yi.assertInterfaceType)(m(Z))}function T(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case xo.TypeKind.SCALAR:return D(Z);case xo.TypeKind.OBJECT:return C(Z);case xo.TypeKind.INTERFACE:return M(Z);case xo.TypeKind.UNION:return Y(Z);case xo.TypeKind.ENUM:return ee(Z);case xo.TypeKind.INPUT_OBJECT:return ae(Z)}let Se=(0,Qi.inspect)(Z);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Se}.`)}function D(Z){return new Yi.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function R(Z){if(Z.interfaces===null&&Z.kind===xo.TypeKind.INTERFACE)return[];if(!Z.interfaces){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return Z.interfaces.map(N)}function C(Z){return new Yi.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function M(Z){return new Yi.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function Y(Z){if(!Z.possibleTypes){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new Yi.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(h)})}function ee(Z){if(!Z.enumValues){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new Yi.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,jg.keyValMap)(Z.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ae(Z){if(!Z.inputFields){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new Yi.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>Le(Z.inputFields),isOneOf:Z.isOneOf})}function Ne(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,Qi.inspect)(Z)}.`);return(0,jg.keyValMap)(Z.fields,Se=>Se.name,_e)}function _e(Z){let Se=l(Z.type);if(!(0,Yi.isOutputType)(Se)){let Ft=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide output type for fields, but received: ${Ft}.`)}if(!Z.args){let Ft=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing field args: ${Ft}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:Se,args:Le(Z.args)}}function Le(Z){return(0,jg.keyValMap)(Z,Se=>Se.name,Ve)}function Ve(Z){let Se=l(Z.type);if(!(0,Yi.isInputType)(Se)){let pr=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${pr}.`)}let Ft=Z.defaultValue!=null?(0,H0e.valueFromAST)((0,Q0e.parseValue)(Z.defaultValue),Se):void 0;return{description:Z.description,type:Se,defaultValue:Ft,deprecationReason:Z.deprecationReason}}function ot(Z){if(!Z.args){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!Z.locations){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new Y0e.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:Le(Z.args)})}}});var kR=O(Kg=>{"use strict";d();p();f();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.extendSchema=nAe;Kg.extendSchemaImpl=TH;var X0e=ui(),Z0e=ur(),eAe=Zn(),tAe=xc(),Gh=Ub(),Ea=jt(),dH=Xl(),Lr=Vt(),Qh=Si(),yH=ma(),NH=Co(),fH=Hl(),rAe=Qf(),UR=$f(),pH=Uh();function nAe(e,t,r){(0,fH.assertSchema)(e),t!=null&&t.kind===Ea.Kind.DOCUMENT||(0,X0e.devAssert)(!1,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&(0,rAe.assertValidSDLExtension)(t,e);let n=e.toConfig(),i=TH(n,t,r);return n===i?e:new fH.GraphQLSchema(i)}function TH(e,t,r){var n,i,a,o;let u=[],l=Object.create(null),m=[],h,N=[];for(let oe of t.definitions)if(oe.kind===Ea.Kind.SCHEMA_DEFINITION)h=oe;else if(oe.kind===Ea.Kind.SCHEMA_EXTENSION)N.push(oe);else if((0,dH.isTypeDefinitionNode)(oe))u.push(oe);else if((0,dH.isTypeExtensionNode)(oe)){let Be=oe.name.value,Ie=l[Be];l[Be]=Ie?Ie.concat([oe]):[oe]}else oe.kind===Ea.Kind.DIRECTIVE_DEFINITION&&m.push(oe);if(Object.keys(l).length===0&&u.length===0&&m.length===0&&N.length===0&&h==null)return e;let T=Object.create(null);for(let oe of e.types)T[oe.name]=ee(oe);for(let oe of u){var D;let Be=oe.name.value;T[Be]=(D=mH[Be])!==null&&D!==void 0?D:Gr(oe)}let R=q(q({query:e.query&&M(e.query),mutation:e.mutation&&M(e.mutation),subscription:e.subscription&&M(e.subscription)},h&&Ft([h])),Ft(N));return G(q({description:(n=h)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value},R),{types:Object.values(T),directives:[...e.directives.map(Y),...m.map(vr)],extensions:Object.create(null),astNode:(a=h)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(o=r==null?void 0:r.assumeValid)!==null&&o!==void 0?o:!1});function C(oe){return(0,Lr.isListType)(oe)?new Lr.GraphQLList(C(oe.ofType)):(0,Lr.isNonNullType)(oe)?new Lr.GraphQLNonNull(C(oe.ofType)):M(oe)}function M(oe){return T[oe.name]}function Y(oe){let Be=oe.toConfig();return new Qh.GraphQLDirective(G(q({},Be),{args:(0,Gh.mapValue)(Be.args,Se)}))}function ee(oe){if((0,yH.isIntrospectionType)(oe)||(0,NH.isSpecifiedScalarType)(oe))return oe;if((0,Lr.isScalarType)(oe))return _e(oe);if((0,Lr.isObjectType)(oe))return Le(oe);if((0,Lr.isInterfaceType)(oe))return Ve(oe);if((0,Lr.isUnionType)(oe))return ot(oe);if((0,Lr.isEnumType)(oe))return Ne(oe);if((0,Lr.isInputObjectType)(oe))return ae(oe);(0,eAe.invariant)(!1,"Unexpected type: "+(0,Z0e.inspect)(oe))}function ae(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInputObjectType(G(q({},Ie),{fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Qt=>G(q({},Qt),{type:C(Qt.type)}))),$r(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ne(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[oe.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLEnumType(G(q({},Ie),{values:q(q({},Ie.values),Jn(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function _e(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[],Qt=Ie.specifiedByURL;for(let ie of Ce){var z;Qt=(z=hH(ie))!==null&&z!==void 0?z:Qt}return new Lr.GraphQLScalarType(G(q({},Ie),{specifiedByURL:Qt,extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Le(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLObjectType(G(q({},Ie),{interfaces:()=>[...oe.getInterfaces().map(M),...fn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Z)),mr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ve(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInterfaceType(G(q({},Ie),{interfaces:()=>[...oe.getInterfaces().map(M),...fn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(Ie.fields,Z)),mr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function ot(oe){var Be;let Ie=oe.toConfig(),Ce=(Be=l[Ie.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLUnionType(G(q({},Ie),{types:()=>[...oe.getTypes().map(M),...bt(Ce)],extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Z(oe){return G(q({},oe),{type:C(oe.type),args:oe.args&&(0,Gh.mapValue)(oe.args,Se)})}function Se(oe){return G(q({},oe),{type:C(oe.type)})}function Ft(oe){let Be={};for(let Ce of oe){var Ie;let Qt=(Ie=Ce.operationTypes)!==null&&Ie!==void 0?Ie:[];for(let z of Qt)Be[z.operation]=pr(z.type)}return Be}function pr(oe){var Be;let Ie=oe.name.value,Ce=(Be=mH[Ie])!==null&&Be!==void 0?Be:T[Ie];if(Ce===void 0)throw new Error(`Unknown type: "${Ie}".`);return Ce}function ar(oe){return oe.kind===Ea.Kind.LIST_TYPE?new Lr.GraphQLList(ar(oe.type)):oe.kind===Ea.Kind.NON_NULL_TYPE?new Lr.GraphQLNonNull(ar(oe.type)):pr(oe)}function vr(oe){var Be;return new Qh.GraphQLDirective({name:oe.name.value,description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,locations:oe.locations.map(({value:Ie})=>Ie),isRepeatable:oe.repeatable,args:tr(oe.arguments),astNode:oe})}function mr(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;Be[ie.name.value]={type:ar(ie.type),description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,args:tr(ie.arguments),deprecationReason:Vg(ie),astNode:ie}}}return Be}function tr(oe){let Be=oe!=null?oe:[],Ie=Object.create(null);for(let Qt of Be){var Ce;let z=ar(Qt.type);Ie[Qt.name.value]={type:z,description:(Ce=Qt.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,pH.valueFromAST)(Qt.defaultValue,z),deprecationReason:Vg(Qt),astNode:Qt}}return Ie}function $r(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;let Je=ar(ie.type);Be[ie.name.value]={type:Je,description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,pH.valueFromAST)(ie.defaultValue,Je),deprecationReason:Vg(ie),astNode:ie}}}return Be}function Jn(oe){let Be=Object.create(null);for(let Qt of oe){var Ie;let z=(Ie=Qt.values)!==null&&Ie!==void 0?Ie:[];for(let ie of z){var Ce;Be[ie.name.value]={description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:Vg(ie),astNode:ie}}}return Be}function fn(oe){return oe.flatMap(Be=>{var Ie,Ce;return(Ie=(Ce=Be.interfaces)===null||Ce===void 0?void 0:Ce.map(pr))!==null&&Ie!==void 0?Ie:[]})}function bt(oe){return oe.flatMap(Be=>{var Ie,Ce;return(Ie=(Ce=Be.types)===null||Ce===void 0?void 0:Ce.map(pr))!==null&&Ie!==void 0?Ie:[]})}function Gr(oe){var Be;let Ie=oe.name.value,Ce=(Be=l[Ie])!==null&&Be!==void 0?Be:[];switch(oe.kind){case Ea.Kind.OBJECT_TYPE_DEFINITION:{var Qt;let At=[oe,...Ce];return new Lr.GraphQLObjectType({name:Ie,description:(Qt=oe.description)===null||Qt===void 0?void 0:Qt.value,interfaces:()=>fn(At),fields:()=>mr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INTERFACE_TYPE_DEFINITION:{var z;let At=[oe,...Ce];return new Lr.GraphQLInterfaceType({name:Ie,description:(z=oe.description)===null||z===void 0?void 0:z.value,interfaces:()=>fn(At),fields:()=>mr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.ENUM_TYPE_DEFINITION:{var ie;let At=[oe,...Ce];return new Lr.GraphQLEnumType({name:Ie,description:(ie=oe.description)===null||ie===void 0?void 0:ie.value,values:Jn(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.UNION_TYPE_DEFINITION:{var Je;let At=[oe,...Ce];return new Lr.GraphQLUnionType({name:Ie,description:(Je=oe.description)===null||Je===void 0?void 0:Je.value,types:()=>bt(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.SCALAR_TYPE_DEFINITION:{var nt;return new Lr.GraphQLScalarType({name:Ie,description:(nt=oe.description)===null||nt===void 0?void 0:nt.value,specifiedByURL:hH(oe),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var xt;let At=[oe,...Ce];return new Lr.GraphQLInputObjectType({name:Ie,description:(xt=oe.description)===null||xt===void 0?void 0:xt.value,fields:()=>$r(At),astNode:oe,extensionASTNodes:Ce,isOneOf:iAe(oe)})}}}}var mH=(0,tAe.keyMap)([...NH.specifiedScalarTypes,...yH.introspectionTypes],e=>e.name);function Vg(e){let t=(0,UR.getDirectiveValues)(Qh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hH(e){let t=(0,UR.getDirectiveValues)(Qh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function iAe(e){return!!(0,UR.getDirectiveValues)(Qh.GraphQLOneOfDirective,e)}});var gH=O($g=>{"use strict";d();p();f();Object.defineProperty($g,"__esModule",{value:!0});$g.buildASTSchema=EH;$g.buildSchema=fAe;var aAe=ui(),oAe=jt(),sAe=Cf(),uAe=Si(),cAe=Hl(),lAe=Qf(),dAe=kR();function EH(e,t){e!=null&&e.kind===oAe.Kind.DOCUMENT||(0,aAe.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,lAe.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,dAe.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...uAe.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new cAe.GraphQLSchema(G(q({},n),{directives:i}))}function fAe(e,t){let r=(0,sAe.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return EH(r,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var _H=O(xR=>{"use strict";d();p();f();Object.defineProperty(xR,"__esModule",{value:!0});xR.lexicographicSortSchema=EAe;var pAe=ur(),mAe=Zn(),hAe=fh(),IH=ph(),ci=Vt(),yAe=Si(),NAe=ma(),TAe=Hl();function EAe(e){let t=e.toConfig(),r=(0,hAe.keyValMap)(qR(t.types),T=>T.name,N);return new TAe.GraphQLSchema(G(q({},t),{types:Object.values(r),directives:qR(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function n(T){return(0,ci.isListType)(T)?new ci.GraphQLList(n(T.ofType)):(0,ci.isNonNullType)(T)?new ci.GraphQLNonNull(n(T.ofType)):i(T)}function i(T){return r[T.name]}function a(T){return T&&i(T)}function o(T){let D=T.toConfig();return new yAe.GraphQLDirective(G(q({},D),{locations:vH(D.locations,R=>R),args:u(D.args)}))}function u(T){return Gg(T,D=>G(q({},D),{type:n(D.type)}))}function l(T){return Gg(T,D=>G(q({},D),{type:n(D.type),args:D.args&&u(D.args)}))}function m(T){return Gg(T,D=>G(q({},D),{type:n(D.type)}))}function h(T){return qR(T).map(i)}function N(T){if((0,ci.isScalarType)(T)||(0,NAe.isIntrospectionType)(T))return T;if((0,ci.isObjectType)(T)){let D=T.toConfig();return new ci.GraphQLObjectType(G(q({},D),{interfaces:()=>h(D.interfaces),fields:()=>l(D.fields)}))}if((0,ci.isInterfaceType)(T)){let D=T.toConfig();return new ci.GraphQLInterfaceType(G(q({},D),{interfaces:()=>h(D.interfaces),fields:()=>l(D.fields)}))}if((0,ci.isUnionType)(T)){let D=T.toConfig();return new ci.GraphQLUnionType(G(q({},D),{types:()=>h(D.types)}))}if((0,ci.isEnumType)(T)){let D=T.toConfig();return new ci.GraphQLEnumType(G(q({},D),{values:Gg(D.values,R=>R)}))}if((0,ci.isInputObjectType)(T)){let D=T.toConfig();return new ci.GraphQLInputObjectType(G(q({},D),{fields:()=>m(D.fields)}))}(0,mAe.invariant)(!1,"Unexpected type: "+(0,pAe.inspect)(T))}}function Gg(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(IH.naturalCompare))r[n]=t(e[n]);return r}function qR(e){return vH(e,t=>t.name)}function vH(e,t){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);return(0,IH.naturalCompare)(i,a)})}});var wH=O(Yh=>{"use strict";d();p();f();Object.defineProperty(Yh,"__esModule",{value:!0});Yh.printIntrospectionSchema=DAe;Yh.printSchema=OAe;Yh.printType=DH;var gAe=ur(),IAe=Zn(),vAe=ih(),jR=jt(),Qg=Gi(),Jf=Vt(),VR=Si(),SH=ma(),_Ae=Co(),SAe=Dh();function OAe(e){return OH(e,t=>!(0,VR.isSpecifiedDirective)(t),bAe)}function DAe(e){return OH(e,VR.isSpecifiedDirective,SH.isIntrospectionType)}function bAe(e){return!(0,_Ae.isSpecifiedScalarType)(e)&&!(0,SH.isIntrospectionType)(e)}function OH(e,t,r){let n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[AAe(e),...n.map(a=>UAe(a)),...i.map(a=>DH(a))].filter(Boolean).join(` + `}});var oH=O(FR=>{"use strict";d();p();f();Object.defineProperty(FR,"__esModule",{value:!0});FR.getOperationAST=qAe;var kAe=jt();function qAe(e,t){let r=null;for(let i of e.definitions)if(i.kind===kAe.Kind.OPERATION_DEFINITION){var n;if(t==null){if(r)return null;r=i}else if(((n=i.name)===null||n===void 0?void 0:n.value)===t)return i}return r}});var sH=O(LR=>{"use strict";d();p();f();Object.defineProperty(LR,"__esModule",{value:!0});LR.getOperationRootType=xAe;var Mg=at();function xAe(e,t){if(t.operation==="query"){let r=e.getQueryType();if(!r)throw new Mg.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if(t.operation==="mutation"){let r=e.getMutationType();if(!r)throw new Mg.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if(t.operation==="subscription"){let r=e.getSubscriptionType();if(!r)throw new Mg.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new Mg.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var uH=O(CR=>{"use strict";d();p();f();Object.defineProperty(CR,"__esModule",{value:!0});CR.introspectionFromSchema=$Ae;var MAe=Zn(),jAe=Cf(),VAe=jh(),KAe=PR();function $Ae(e,t){let r=q({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),n=(0,jAe.parse)((0,KAe.getIntrospectionQuery)(r)),i=(0,VAe.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,MAe.invariant)(!1),i.data}});var lH=O(BR=>{"use strict";d();p();f();Object.defineProperty(BR,"__esModule",{value:!0});BR.buildClientSchema=WAe;var GAe=ui(),Qi=cr(),cH=wo(),jg=fh(),QAe=Cf(),Yi=Vt(),YAe=Si(),xo=ma(),JAe=Co(),zAe=Hl(),HAe=Uh();function WAe(e,t){(0,cH.isObjectLike)(e)&&(0,cH.isObjectLike)(e.__schema)||(0,GAe.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Qi.inspect)(e)}.`);let r=e.__schema,n=(0,jg.keyValMap)(r.types,Z=>Z.name,Z=>T(Z));for(let Z of[...JAe.specifiedScalarTypes,...xo.introspectionTypes])n[Z.name]&&(n[Z.name]=Z);let i=r.queryType?h(r.queryType):null,a=r.mutationType?h(r.mutationType):null,o=r.subscriptionType?h(r.subscriptionType):null,u=r.directives?r.directives.map(ot):[];return new zAe.GraphQLSchema({description:r.description,query:i,mutation:a,subscription:o,types:Object.values(n),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(Z){if(Z.kind===xo.TypeKind.LIST){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");return new Yi.GraphQLList(l(Se))}if(Z.kind===xo.TypeKind.NON_NULL){let Se=Z.ofType;if(!Se)throw new Error("Decorated type deeper than introspection query.");let Ft=l(Se);return new Yi.GraphQLNonNull((0,Yi.assertNullableType)(Ft))}return m(Z)}function m(Z){let Se=Z.name;if(!Se)throw new Error(`Unknown type reference: ${(0,Qi.inspect)(Z)}.`);let Ft=n[Se];if(!Ft)throw new Error(`Invalid or incomplete schema, unknown type: ${Se}. Ensure that a full introspection query is used in order to build a client schema.`);return Ft}function h(Z){return(0,Yi.assertObjectType)(m(Z))}function N(Z){return(0,Yi.assertInterfaceType)(m(Z))}function T(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case xo.TypeKind.SCALAR:return D(Z);case xo.TypeKind.OBJECT:return C(Z);case xo.TypeKind.INTERFACE:return M(Z);case xo.TypeKind.UNION:return G(Z);case xo.TypeKind.ENUM:return ee(Z);case xo.TypeKind.INPUT_OBJECT:return ae(Z)}let Se=(0,Qi.inspect)(Z);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Se}.`)}function D(Z){return new Yi.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function R(Z){if(Z.interfaces===null&&Z.kind===xo.TypeKind.INTERFACE)return[];if(!Z.interfaces){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${Se}.`)}return Z.interfaces.map(N)}function C(Z){return new Yi.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function M(Z){return new Yi.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>R(Z),fields:()=>Ne(Z)})}function G(Z){if(!Z.possibleTypes){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${Se}.`)}return new Yi.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(h)})}function ee(Z){if(!Z.enumValues){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${Se}.`)}return new Yi.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,jg.keyValMap)(Z.enumValues,Se=>Se.name,Se=>({description:Se.description,deprecationReason:Se.deprecationReason}))})}function ae(Z){if(!Z.inputFields){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${Se}.`)}return new Yi.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>Le(Z.inputFields),isOneOf:Z.isOneOf})}function Ne(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,Qi.inspect)(Z)}.`);return(0,jg.keyValMap)(Z.fields,Se=>Se.name,Ie)}function Ie(Z){let Se=l(Z.type);if(!(0,Yi.isOutputType)(Se)){let Ft=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide output type for fields, but received: ${Ft}.`)}if(!Z.args){let Ft=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing field args: ${Ft}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:Se,args:Le(Z.args)}}function Le(Z){return(0,jg.keyValMap)(Z,Se=>Se.name,Ve)}function Ve(Z){let Se=l(Z.type);if(!(0,Yi.isInputType)(Se)){let hr=(0,Qi.inspect)(Se);throw new Error(`Introspection must provide input type for arguments, but received: ${hr}.`)}let Ft=Z.defaultValue!=null?(0,HAe.valueFromAST)((0,QAe.parseValue)(Z.defaultValue),Se):void 0;return{description:Z.description,type:Se,defaultValue:Ft,deprecationReason:Z.deprecationReason}}function ot(Z){if(!Z.args){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive args: ${Se}.`)}if(!Z.locations){let Se=(0,Qi.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${Se}.`)}return new YAe.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:Le(Z.args)})}}});var kR=O(Kg=>{"use strict";d();p();f();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.extendSchema=n0e;Kg.extendSchemaImpl=TH;var XAe=ui(),ZAe=cr(),e0e=Zn(),t0e=xc(),Gh=Ub(),Ea=jt(),dH=Xl(),Lr=Vt(),Qh=Si(),yH=ma(),NH=Co(),fH=Hl(),r0e=Qf(),UR=$f(),pH=Uh();function n0e(e,t,r){(0,fH.assertSchema)(e),t!=null&&t.kind===Ea.Kind.DOCUMENT||(0,XAe.devAssert)(!1,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&(0,r0e.assertValidSDLExtension)(t,e);let n=e.toConfig(),i=TH(n,t,r);return n===i?e:new fH.GraphQLSchema(i)}function TH(e,t,r){var n,i,a,o;let u=[],l=Object.create(null),m=[],h,N=[];for(let oe of t.definitions)if(oe.kind===Ea.Kind.SCHEMA_DEFINITION)h=oe;else if(oe.kind===Ea.Kind.SCHEMA_EXTENSION)N.push(oe);else if((0,dH.isTypeDefinitionNode)(oe))u.push(oe);else if((0,dH.isTypeExtensionNode)(oe)){let Be=oe.name.value,ve=l[Be];l[Be]=ve?ve.concat([oe]):[oe]}else oe.kind===Ea.Kind.DIRECTIVE_DEFINITION&&m.push(oe);if(Object.keys(l).length===0&&u.length===0&&m.length===0&&N.length===0&&h==null)return e;let T=Object.create(null);for(let oe of e.types)T[oe.name]=ee(oe);for(let oe of u){var D;let Be=oe.name.value;T[Be]=(D=mH[Be])!==null&&D!==void 0?D:Gr(oe)}let R=q(q({query:e.query&&M(e.query),mutation:e.mutation&&M(e.mutation),subscription:e.subscription&&M(e.subscription)},h&&Ft([h])),Ft(N));return Q(q({description:(n=h)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value},R),{types:Object.values(T),directives:[...e.directives.map(G),...m.map(vr)],extensions:Object.create(null),astNode:(a=h)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(o=r==null?void 0:r.assumeValid)!==null&&o!==void 0?o:!1});function C(oe){return(0,Lr.isListType)(oe)?new Lr.GraphQLList(C(oe.ofType)):(0,Lr.isNonNullType)(oe)?new Lr.GraphQLNonNull(C(oe.ofType)):M(oe)}function M(oe){return T[oe.name]}function G(oe){let Be=oe.toConfig();return new Qh.GraphQLDirective(Q(q({},Be),{args:(0,Gh.mapValue)(Be.args,Se)}))}function ee(oe){if((0,yH.isIntrospectionType)(oe)||(0,NH.isSpecifiedScalarType)(oe))return oe;if((0,Lr.isScalarType)(oe))return Ie(oe);if((0,Lr.isObjectType)(oe))return Le(oe);if((0,Lr.isInterfaceType)(oe))return Ve(oe);if((0,Lr.isUnionType)(oe))return ot(oe);if((0,Lr.isEnumType)(oe))return Ne(oe);if((0,Lr.isInputObjectType)(oe))return ae(oe);(0,e0e.invariant)(!1,"Unexpected type: "+(0,ZAe.inspect)(oe))}function ae(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[ve.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInputObjectType(Q(q({},ve),{fields:()=>q(q({},(0,Gh.mapValue)(ve.fields,Qt=>Q(q({},Qt),{type:C(Qt.type)}))),$r(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Ne(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[oe.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLEnumType(Q(q({},ve),{values:q(q({},ve.values),Jn(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Ie(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[ve.name])!==null&&Be!==void 0?Be:[],Qt=ve.specifiedByURL;for(let ie of Ce){var z;Qt=(z=hH(ie))!==null&&z!==void 0?z:Qt}return new Lr.GraphQLScalarType(Q(q({},ve),{specifiedByURL:Qt,extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Le(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[ve.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLObjectType(Q(q({},ve),{interfaces:()=>[...oe.getInterfaces().map(M),...fn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(ve.fields,Z)),yr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Ve(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[ve.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLInterfaceType(Q(q({},ve),{interfaces:()=>[...oe.getInterfaces().map(M),...fn(Ce)],fields:()=>q(q({},(0,Gh.mapValue)(ve.fields,Z)),yr(Ce)),extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function ot(oe){var Be;let ve=oe.toConfig(),Ce=(Be=l[ve.name])!==null&&Be!==void 0?Be:[];return new Lr.GraphQLUnionType(Q(q({},ve),{types:()=>[...oe.getTypes().map(M),...bt(Ce)],extensionASTNodes:ve.extensionASTNodes.concat(Ce)}))}function Z(oe){return Q(q({},oe),{type:C(oe.type),args:oe.args&&(0,Gh.mapValue)(oe.args,Se)})}function Se(oe){return Q(q({},oe),{type:C(oe.type)})}function Ft(oe){let Be={};for(let Ce of oe){var ve;let Qt=(ve=Ce.operationTypes)!==null&&ve!==void 0?ve:[];for(let z of Qt)Be[z.operation]=hr(z.type)}return Be}function hr(oe){var Be;let ve=oe.name.value,Ce=(Be=mH[ve])!==null&&Be!==void 0?Be:T[ve];if(Ce===void 0)throw new Error(`Unknown type: "${ve}".`);return Ce}function or(oe){return oe.kind===Ea.Kind.LIST_TYPE?new Lr.GraphQLList(or(oe.type)):oe.kind===Ea.Kind.NON_NULL_TYPE?new Lr.GraphQLNonNull(or(oe.type)):hr(oe)}function vr(oe){var Be;return new Qh.GraphQLDirective({name:oe.name.value,description:(Be=oe.description)===null||Be===void 0?void 0:Be.value,locations:oe.locations.map(({value:ve})=>ve),isRepeatable:oe.repeatable,args:tr(oe.arguments),astNode:oe})}function yr(oe){let Be=Object.create(null);for(let Qt of oe){var ve;let z=(ve=Qt.fields)!==null&&ve!==void 0?ve:[];for(let ie of z){var Ce;Be[ie.name.value]={type:or(ie.type),description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,args:tr(ie.arguments),deprecationReason:Vg(ie),astNode:ie}}}return Be}function tr(oe){let Be=oe!=null?oe:[],ve=Object.create(null);for(let Qt of Be){var Ce;let z=or(Qt.type);ve[Qt.name.value]={type:z,description:(Ce=Qt.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,pH.valueFromAST)(Qt.defaultValue,z),deprecationReason:Vg(Qt),astNode:Qt}}return ve}function $r(oe){let Be=Object.create(null);for(let Qt of oe){var ve;let z=(ve=Qt.fields)!==null&&ve!==void 0?ve:[];for(let ie of z){var Ce;let Je=or(ie.type);Be[ie.name.value]={type:Je,description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,pH.valueFromAST)(ie.defaultValue,Je),deprecationReason:Vg(ie),astNode:ie}}}return Be}function Jn(oe){let Be=Object.create(null);for(let Qt of oe){var ve;let z=(ve=Qt.values)!==null&&ve!==void 0?ve:[];for(let ie of z){var Ce;Be[ie.name.value]={description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:Vg(ie),astNode:ie}}}return Be}function fn(oe){return oe.flatMap(Be=>{var ve,Ce;return(ve=(Ce=Be.interfaces)===null||Ce===void 0?void 0:Ce.map(hr))!==null&&ve!==void 0?ve:[]})}function bt(oe){return oe.flatMap(Be=>{var ve,Ce;return(ve=(Ce=Be.types)===null||Ce===void 0?void 0:Ce.map(hr))!==null&&ve!==void 0?ve:[]})}function Gr(oe){var Be;let ve=oe.name.value,Ce=(Be=l[ve])!==null&&Be!==void 0?Be:[];switch(oe.kind){case Ea.Kind.OBJECT_TYPE_DEFINITION:{var Qt;let At=[oe,...Ce];return new Lr.GraphQLObjectType({name:ve,description:(Qt=oe.description)===null||Qt===void 0?void 0:Qt.value,interfaces:()=>fn(At),fields:()=>yr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INTERFACE_TYPE_DEFINITION:{var z;let At=[oe,...Ce];return new Lr.GraphQLInterfaceType({name:ve,description:(z=oe.description)===null||z===void 0?void 0:z.value,interfaces:()=>fn(At),fields:()=>yr(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.ENUM_TYPE_DEFINITION:{var ie;let At=[oe,...Ce];return new Lr.GraphQLEnumType({name:ve,description:(ie=oe.description)===null||ie===void 0?void 0:ie.value,values:Jn(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.UNION_TYPE_DEFINITION:{var Je;let At=[oe,...Ce];return new Lr.GraphQLUnionType({name:ve,description:(Je=oe.description)===null||Je===void 0?void 0:Je.value,types:()=>bt(At),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.SCALAR_TYPE_DEFINITION:{var nt;return new Lr.GraphQLScalarType({name:ve,description:(nt=oe.description)===null||nt===void 0?void 0:nt.value,specifiedByURL:hH(oe),astNode:oe,extensionASTNodes:Ce})}case Ea.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var xt;let At=[oe,...Ce];return new Lr.GraphQLInputObjectType({name:ve,description:(xt=oe.description)===null||xt===void 0?void 0:xt.value,fields:()=>$r(At),astNode:oe,extensionASTNodes:Ce,isOneOf:i0e(oe)})}}}}var mH=(0,t0e.keyMap)([...NH.specifiedScalarTypes,...yH.introspectionTypes],e=>e.name);function Vg(e){let t=(0,UR.getDirectiveValues)(Qh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hH(e){let t=(0,UR.getDirectiveValues)(Qh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function i0e(e){return!!(0,UR.getDirectiveValues)(Qh.GraphQLOneOfDirective,e)}});var gH=O($g=>{"use strict";d();p();f();Object.defineProperty($g,"__esModule",{value:!0});$g.buildASTSchema=EH;$g.buildSchema=f0e;var a0e=ui(),o0e=jt(),s0e=Cf(),u0e=Si(),c0e=Hl(),l0e=Qf(),d0e=kR();function EH(e,t){e!=null&&e.kind===o0e.Kind.DOCUMENT||(0,a0e.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,l0e.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,d0e.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...u0e.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new c0e.GraphQLSchema(Q(q({},n),{directives:i}))}function f0e(e,t){let r=(0,s0e.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return EH(r,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var _H=O(xR=>{"use strict";d();p();f();Object.defineProperty(xR,"__esModule",{value:!0});xR.lexicographicSortSchema=E0e;var p0e=cr(),m0e=Zn(),h0e=fh(),IH=ph(),ci=Vt(),y0e=Si(),N0e=ma(),T0e=Hl();function E0e(e){let t=e.toConfig(),r=(0,h0e.keyValMap)(qR(t.types),T=>T.name,N);return new T0e.GraphQLSchema(Q(q({},t),{types:Object.values(r),directives:qR(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function n(T){return(0,ci.isListType)(T)?new ci.GraphQLList(n(T.ofType)):(0,ci.isNonNullType)(T)?new ci.GraphQLNonNull(n(T.ofType)):i(T)}function i(T){return r[T.name]}function a(T){return T&&i(T)}function o(T){let D=T.toConfig();return new y0e.GraphQLDirective(Q(q({},D),{locations:vH(D.locations,R=>R),args:u(D.args)}))}function u(T){return Gg(T,D=>Q(q({},D),{type:n(D.type)}))}function l(T){return Gg(T,D=>Q(q({},D),{type:n(D.type),args:D.args&&u(D.args)}))}function m(T){return Gg(T,D=>Q(q({},D),{type:n(D.type)}))}function h(T){return qR(T).map(i)}function N(T){if((0,ci.isScalarType)(T)||(0,N0e.isIntrospectionType)(T))return T;if((0,ci.isObjectType)(T)){let D=T.toConfig();return new ci.GraphQLObjectType(Q(q({},D),{interfaces:()=>h(D.interfaces),fields:()=>l(D.fields)}))}if((0,ci.isInterfaceType)(T)){let D=T.toConfig();return new ci.GraphQLInterfaceType(Q(q({},D),{interfaces:()=>h(D.interfaces),fields:()=>l(D.fields)}))}if((0,ci.isUnionType)(T)){let D=T.toConfig();return new ci.GraphQLUnionType(Q(q({},D),{types:()=>h(D.types)}))}if((0,ci.isEnumType)(T)){let D=T.toConfig();return new ci.GraphQLEnumType(Q(q({},D),{values:Gg(D.values,R=>R)}))}if((0,ci.isInputObjectType)(T)){let D=T.toConfig();return new ci.GraphQLInputObjectType(Q(q({},D),{fields:()=>m(D.fields)}))}(0,m0e.invariant)(!1,"Unexpected type: "+(0,p0e.inspect)(T))}}function Gg(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(IH.naturalCompare))r[n]=t(e[n]);return r}function qR(e){return vH(e,t=>t.name)}function vH(e,t){return e.slice().sort((r,n)=>{let i=t(r),a=t(n);return(0,IH.naturalCompare)(i,a)})}});var wH=O(Yh=>{"use strict";d();p();f();Object.defineProperty(Yh,"__esModule",{value:!0});Yh.printIntrospectionSchema=D0e;Yh.printSchema=O0e;Yh.printType=DH;var g0e=cr(),I0e=Zn(),v0e=ih(),jR=jt(),Qg=Gi(),Jf=Vt(),VR=Si(),SH=ma(),_0e=Co(),S0e=Dh();function O0e(e){return OH(e,t=>!(0,VR.isSpecifiedDirective)(t),b0e)}function D0e(e){return OH(e,VR.isSpecifiedDirective,SH.isIntrospectionType)}function b0e(e){return!(0,_0e.isSpecifiedScalarType)(e)&&!(0,SH.isIntrospectionType)(e)}function OH(e,t,r){let n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[A0e(e),...n.map(a=>U0e(a)),...i.map(a=>DH(a))].filter(Boolean).join(` -`)}function AAe(e){if(e.description==null&&RAe(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ga(e)+`schema { +`)}function A0e(e){if(e.description==null&&R0e(e))return;let t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);let n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ga(e)+`schema { ${t.join(` `)} -}`}function RAe(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function DH(e){if((0,Jf.isScalarType)(e))return wAe(e);if((0,Jf.isObjectType)(e))return PAe(e);if((0,Jf.isInterfaceType)(e))return FAe(e);if((0,Jf.isUnionType)(e))return LAe(e);if((0,Jf.isEnumType)(e))return CAe(e);if((0,Jf.isInputObjectType)(e))return BAe(e);(0,IAe.invariant)(!1,"Unexpected type: "+(0,gAe.inspect)(e))}function wAe(e){return ga(e)+`scalar ${e.name}`+kAe(e)}function bH(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function PAe(e){return ga(e)+`type ${e.name}`+bH(e)+AH(e)}function FAe(e){return ga(e)+`interface ${e.name}`+bH(e)+AH(e)}function LAe(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return ga(e)+"union "+e.name+r}function CAe(e){let t=e.getValues().map((r,n)=>ga(r," ",!n)+" "+r.name+$R(r.deprecationReason));return ga(e)+`enum ${e.name}`+KR(t)}function BAe(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+MR(r));return ga(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+KR(t)}function AH(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+r.name+RH(r.args," ")+": "+String(r.type)+$R(r.deprecationReason));return KR(t)}function KR(e){return e.length!==0?` { +}`}function R0e(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;let n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function DH(e){if((0,Jf.isScalarType)(e))return w0e(e);if((0,Jf.isObjectType)(e))return P0e(e);if((0,Jf.isInterfaceType)(e))return F0e(e);if((0,Jf.isUnionType)(e))return L0e(e);if((0,Jf.isEnumType)(e))return C0e(e);if((0,Jf.isInputObjectType)(e))return B0e(e);(0,I0e.invariant)(!1,"Unexpected type: "+(0,g0e.inspect)(e))}function w0e(e){return ga(e)+`scalar ${e.name}`+k0e(e)}function bH(e){let t=e.getInterfaces();return t.length?" implements "+t.map(r=>r.name).join(" & "):""}function P0e(e){return ga(e)+`type ${e.name}`+bH(e)+AH(e)}function F0e(e){return ga(e)+`interface ${e.name}`+bH(e)+AH(e)}function L0e(e){let t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return ga(e)+"union "+e.name+r}function C0e(e){let t=e.getValues().map((r,n)=>ga(r," ",!n)+" "+r.name+$R(r.deprecationReason));return ga(e)+`enum ${e.name}`+KR(t)}function B0e(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+MR(r));return ga(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+KR(t)}function AH(e){let t=Object.values(e.getFields()).map((r,n)=>ga(r," ",!n)+" "+r.name+RH(r.args," ")+": "+String(r.type)+$R(r.deprecationReason));return KR(t)}function KR(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function RH(e,t=""){return e.length===0?"":e.every(r=>!r.description)?"("+e.map(MR).join(", ")+")":`( `+e.map((r,n)=>ga(r," "+t,!n)+" "+t+MR(r)).join(` `)+` -`+t+")"}function MR(e){let t=(0,SAe.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,Qg.print)(t)}`),r+$R(e.deprecationReason)}function UAe(e){return ga(e)+"directive @"+e.name+RH(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function $R(e){return e==null?"":e!==VR.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,Qg.print)({kind:jR.Kind.STRING,value:e})})`:" @deprecated"}function kAe(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,Qg.print)({kind:jR.Kind.STRING,value:e.specifiedByURL})})`}function ga(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let i=(0,Qg.print)({kind:jR.Kind.STRING,value:n,block:(0,vAe.isPrintableAsBlockString)(n)});return(t&&!r?` +`+t+")"}function MR(e){let t=(0,S0e.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,Qg.print)(t)}`),r+$R(e.deprecationReason)}function U0e(e){return ga(e)+"directive @"+e.name+RH(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function $R(e){return e==null?"":e!==VR.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,Qg.print)({kind:jR.Kind.STRING,value:e})})`:" @deprecated"}function k0e(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,Qg.print)({kind:jR.Kind.STRING,value:e.specifiedByURL})})`}function ga(e,t="",r=!0){let{description:n}=e;if(n==null)return"";let i=(0,Qg.print)({kind:jR.Kind.STRING,value:n,block:(0,v0e.isPrintableAsBlockString)(n)});return(t&&!r?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var PH=O(GR=>{"use strict";d();p();f();Object.defineProperty(GR,"__esModule",{value:!0});GR.concatAST=xAe;var qAe=jt();function xAe(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:qAe.Kind.DOCUMENT,definitions:t}}});var CH=O(QR=>{"use strict";d();p();f();Object.defineProperty(QR,"__esModule",{value:!0});QR.separateOperations=jAe;var Yg=jt(),MAe=$l();function jAe(e){let t=[],r=Object.create(null);for(let i of e.definitions)switch(i.kind){case Yg.Kind.OPERATION_DEFINITION:t.push(i);break;case Yg.Kind.FRAGMENT_DEFINITION:r[i.name.value]=FH(i.selectionSet);break;default:}let n=Object.create(null);for(let i of t){let a=new Set;for(let u of FH(i.selectionSet))LH(a,r,u);let o=i.name?i.name.value:"";n[o]={kind:Yg.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===Yg.Kind.FRAGMENT_DEFINITION&&a.has(u.name.value))}}return n}function LH(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let i of n)LH(e,t,i)}}function FH(e){let t=[];return(0,MAe.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var kH=O(JR=>{"use strict";d();p();f();Object.defineProperty(JR,"__esModule",{value:!0});JR.stripIgnoredCharacters=KAe;var VAe=ih(),BH=qE(),UH=VE(),YR=oh();function KAe(e){let t=(0,UH.isSource)(e)?e:new UH.Source(e),r=t.body,n=new BH.Lexer(t),i="",a=!1;for(;n.advance().kind!==YR.TokenKind.EOF;){let o=n.token,u=o.kind,l=!(0,BH.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===YR.TokenKind.SPREAD)&&(i+=" ");let m=r.slice(o.start,o.end);u===YR.TokenKind.BLOCK_STRING?i+=(0,VAe.printBlockString)(o.value,{minimize:!0}):i+=m,a=l}return i}});var xH=O(Jg=>{"use strict";d();p();f();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.assertValidName=YAe;Jg.isValidNameError=qH;var $Ae=ui(),GAe=at(),QAe=mh();function YAe(e){let t=qH(e);if(t)throw t;return e}function qH(e){if(typeof e=="string"||(0,$Ae.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new GAe.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,QAe.assertName)(e)}catch(t){return t}}});var YH=O(Mo=>{"use strict";d();p();f();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DangerousChangeType=Mo.BreakingChangeType=void 0;Mo.findBreakingChanges=ZAe;Mo.findDangerousChanges=eRe;var JAe=ur(),GH=Zn(),MH=xc(),zAe=Gi(),Xt=Vt(),HAe=Co(),WAe=Dh(),XAe=W0(),Xr;Mo.BreakingChangeType=Xr;(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"})(Xr||(Mo.BreakingChangeType=Xr={}));var no;Mo.DangerousChangeType=no;(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"})(no||(Mo.DangerousChangeType=no={}));function ZAe(e,t){return QH(e,t).filter(r=>r.type in Xr)}function eRe(e,t){return QH(e,t).filter(r=>r.type in no)}function QH(e,t){return[...rRe(e,t),...tRe(e,t)]}function tRe(e,t){let r=[],n=Cs(e.getDirectives(),t.getDirectives());for(let i of n.removed)r.push({type:Xr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of n.persisted){let o=Cs(i.args,a.args);for(let u of o.added)(0,Xt.isRequiredArgument)(u)&&r.push({type:Xr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)r.push({type:Xr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&r.push({type:Xr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)a.locations.includes(u)||r.push({type:Xr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return r}function rRe(e,t){let r=[],n=Cs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of n.removed)r.push({type:Xr.TYPE_REMOVED,description:(0,HAe.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of n.persisted)(0,Xt.isEnumType)(i)&&(0,Xt.isEnumType)(a)?r.push(...aRe(i,a)):(0,Xt.isUnionType)(i)&&(0,Xt.isUnionType)(a)?r.push(...iRe(i,a)):(0,Xt.isInputObjectType)(i)&&(0,Xt.isInputObjectType)(a)?r.push(...nRe(i,a)):(0,Xt.isObjectType)(i)&&(0,Xt.isObjectType)(a)?r.push(...VH(i,a),...jH(i,a)):(0,Xt.isInterfaceType)(i)&&(0,Xt.isInterfaceType)(a)?r.push(...VH(i,a),...jH(i,a)):i.constructor!==a.constructor&&r.push({type:Xr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${KH(i)} to ${KH(a)}.`});return r}function nRe(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.added)(0,Xt.isRequiredInputField)(i)?r.push({type:Xr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):r.push({type:no.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of n.removed)r.push({type:Xr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)zh(i.type,a.type)||r.push({type:Xr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function iRe(e,t){let r=[],n=Cs(e.getTypes(),t.getTypes());for(let i of n.added)r.push({type:no.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of n.removed)r.push({type:Xr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return r}function aRe(e,t){let r=[],n=Cs(e.getValues(),t.getValues());for(let i of n.added)r.push({type:no.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of n.removed)r.push({type:Xr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return r}function jH(e,t){let r=[],n=Cs(e.getInterfaces(),t.getInterfaces());for(let i of n.added)r.push({type:no.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of n.removed)r.push({type:Xr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return r}function VH(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.removed)r.push({type:Xr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)r.push(...oRe(e,i,a)),Jh(i.type,a.type)||r.push({type:Xr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function oRe(e,t,r){let n=[],i=Cs(t.args,r.args);for(let a of i.removed)n.push({type:Xr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!zh(a.type,o.type))n.push({type:Xr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=$H(a.defaultValue,a.type),m=$H(o.defaultValue,o.type);l!==m&&n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${m}.`})}for(let a of i.added)(0,Xt.isRequiredArgument)(a)?n.push({type:Xr.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):n.push({type:no.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return n}function Jh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&Jh(e.ofType,t.ofType)||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&Jh(e.ofType,t.ofType):(0,Xt.isNamedType)(t)&&e.name===t.name||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType)}function zh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&zh(e.ofType,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&zh(e.ofType,t.ofType)||!(0,Xt.isNonNullType)(t)&&zh(e.ofType,t):(0,Xt.isNamedType)(t)&&e.name===t.name}function KH(e){if((0,Xt.isScalarType)(e))return"a Scalar type";if((0,Xt.isObjectType)(e))return"an Object type";if((0,Xt.isInterfaceType)(e))return"an Interface type";if((0,Xt.isUnionType)(e))return"a Union type";if((0,Xt.isEnumType)(e))return"an Enum type";if((0,Xt.isInputObjectType)(e))return"an Input type";(0,GH.invariant)(!1,"Unexpected type: "+(0,JAe.inspect)(e))}function $H(e,t){let r=(0,WAe.astFromValue)(e,t);return r!=null||(0,GH.invariant)(!1),(0,zAe.print)((0,XAe.sortValueNode)(r))}function Cs(e,t){let r=[],n=[],i=[],a=(0,MH.keyMap)(e,({name:u})=>u),o=(0,MH.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?n.push(u):i.push([u,l])}for(let u of t)a[u.name]===void 0&&r.push(u);return{added:r,persisted:i,removed:n}}});var WH=O(zt=>{"use strict";d();p();f();Object.defineProperty(zt,"__esModule",{value:!0});Object.defineProperty(zt,"BreakingChangeType",{enumerable:!0,get:function(){return zg.BreakingChangeType}});Object.defineProperty(zt,"DangerousChangeType",{enumerable:!0,get:function(){return zg.DangerousChangeType}});Object.defineProperty(zt,"TypeInfo",{enumerable:!0,get:function(){return zH.TypeInfo}});Object.defineProperty(zt,"assertValidName",{enumerable:!0,get:function(){return HH.assertValidName}});Object.defineProperty(zt,"astFromValue",{enumerable:!0,get:function(){return NRe.astFromValue}});Object.defineProperty(zt,"buildASTSchema",{enumerable:!0,get:function(){return JH.buildASTSchema}});Object.defineProperty(zt,"buildClientSchema",{enumerable:!0,get:function(){return dRe.buildClientSchema}});Object.defineProperty(zt,"buildSchema",{enumerable:!0,get:function(){return JH.buildSchema}});Object.defineProperty(zt,"coerceInputValue",{enumerable:!0,get:function(){return TRe.coerceInputValue}});Object.defineProperty(zt,"concatAST",{enumerable:!0,get:function(){return ERe.concatAST}});Object.defineProperty(zt,"doTypesOverlap",{enumerable:!0,get:function(){return HR.doTypesOverlap}});Object.defineProperty(zt,"extendSchema",{enumerable:!0,get:function(){return fRe.extendSchema}});Object.defineProperty(zt,"findBreakingChanges",{enumerable:!0,get:function(){return zg.findBreakingChanges}});Object.defineProperty(zt,"findDangerousChanges",{enumerable:!0,get:function(){return zg.findDangerousChanges}});Object.defineProperty(zt,"getIntrospectionQuery",{enumerable:!0,get:function(){return sRe.getIntrospectionQuery}});Object.defineProperty(zt,"getOperationAST",{enumerable:!0,get:function(){return uRe.getOperationAST}});Object.defineProperty(zt,"getOperationRootType",{enumerable:!0,get:function(){return cRe.getOperationRootType}});Object.defineProperty(zt,"introspectionFromSchema",{enumerable:!0,get:function(){return lRe.introspectionFromSchema}});Object.defineProperty(zt,"isEqualType",{enumerable:!0,get:function(){return HR.isEqualType}});Object.defineProperty(zt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return HR.isTypeSubTypeOf}});Object.defineProperty(zt,"isValidNameError",{enumerable:!0,get:function(){return HH.isValidNameError}});Object.defineProperty(zt,"lexicographicSortSchema",{enumerable:!0,get:function(){return pRe.lexicographicSortSchema}});Object.defineProperty(zt,"printIntrospectionSchema",{enumerable:!0,get:function(){return zR.printIntrospectionSchema}});Object.defineProperty(zt,"printSchema",{enumerable:!0,get:function(){return zR.printSchema}});Object.defineProperty(zt,"printType",{enumerable:!0,get:function(){return zR.printType}});Object.defineProperty(zt,"separateOperations",{enumerable:!0,get:function(){return gRe.separateOperations}});Object.defineProperty(zt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return IRe.stripIgnoredCharacters}});Object.defineProperty(zt,"typeFromAST",{enumerable:!0,get:function(){return mRe.typeFromAST}});Object.defineProperty(zt,"valueFromAST",{enumerable:!0,get:function(){return hRe.valueFromAST}});Object.defineProperty(zt,"valueFromASTUntyped",{enumerable:!0,get:function(){return yRe.valueFromASTUntyped}});Object.defineProperty(zt,"visitWithTypeInfo",{enumerable:!0,get:function(){return zH.visitWithTypeInfo}});var sRe=PR(),uRe=oH(),cRe=sH(),lRe=uH(),dRe=lH(),JH=gH(),fRe=kR(),pRe=_H(),zR=wH(),mRe=Bo(),hRe=Uh(),yRe=Yb(),NRe=Dh(),zH=yg(),TRe=NA(),ERe=PH(),gRe=CH(),IRe=kH(),HR=Eh(),HH=xH(),zg=YH()});var ve=O(j=>{"use strict";d();p();f();Object.defineProperty(j,"__esModule",{value:!0});Object.defineProperty(j,"BREAK",{enumerable:!0,get:function(){return nr.BREAK}});Object.defineProperty(j,"BreakingChangeType",{enumerable:!0,get:function(){return ir.BreakingChangeType}});Object.defineProperty(j,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ge.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(j,"DangerousChangeType",{enumerable:!0,get:function(){return ir.DangerousChangeType}});Object.defineProperty(j,"DirectiveLocation",{enumerable:!0,get:function(){return nr.DirectiveLocation}});Object.defineProperty(j,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return _t.ExecutableDefinitionsRule}});Object.defineProperty(j,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _t.FieldsOnCorrectTypeRule}});Object.defineProperty(j,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return _t.FragmentsOnCompositeTypesRule}});Object.defineProperty(j,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MAX_INT}});Object.defineProperty(j,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MIN_INT}});Object.defineProperty(j,"GraphQLBoolean",{enumerable:!0,get:function(){return ge.GraphQLBoolean}});Object.defineProperty(j,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ge.GraphQLDeprecatedDirective}});Object.defineProperty(j,"GraphQLDirective",{enumerable:!0,get:function(){return ge.GraphQLDirective}});Object.defineProperty(j,"GraphQLEnumType",{enumerable:!0,get:function(){return ge.GraphQLEnumType}});Object.defineProperty(j,"GraphQLError",{enumerable:!0,get:function(){return Hh.GraphQLError}});Object.defineProperty(j,"GraphQLFloat",{enumerable:!0,get:function(){return ge.GraphQLFloat}});Object.defineProperty(j,"GraphQLID",{enumerable:!0,get:function(){return ge.GraphQLID}});Object.defineProperty(j,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ge.GraphQLIncludeDirective}});Object.defineProperty(j,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ge.GraphQLInputObjectType}});Object.defineProperty(j,"GraphQLInt",{enumerable:!0,get:function(){return ge.GraphQLInt}});Object.defineProperty(j,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ge.GraphQLInterfaceType}});Object.defineProperty(j,"GraphQLList",{enumerable:!0,get:function(){return ge.GraphQLList}});Object.defineProperty(j,"GraphQLNonNull",{enumerable:!0,get:function(){return ge.GraphQLNonNull}});Object.defineProperty(j,"GraphQLObjectType",{enumerable:!0,get:function(){return ge.GraphQLObjectType}});Object.defineProperty(j,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ge.GraphQLOneOfDirective}});Object.defineProperty(j,"GraphQLScalarType",{enumerable:!0,get:function(){return ge.GraphQLScalarType}});Object.defineProperty(j,"GraphQLSchema",{enumerable:!0,get:function(){return ge.GraphQLSchema}});Object.defineProperty(j,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ge.GraphQLSkipDirective}});Object.defineProperty(j,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ge.GraphQLSpecifiedByDirective}});Object.defineProperty(j,"GraphQLString",{enumerable:!0,get:function(){return ge.GraphQLString}});Object.defineProperty(j,"GraphQLUnionType",{enumerable:!0,get:function(){return ge.GraphQLUnionType}});Object.defineProperty(j,"Kind",{enumerable:!0,get:function(){return nr.Kind}});Object.defineProperty(j,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return _t.KnownArgumentNamesRule}});Object.defineProperty(j,"KnownDirectivesRule",{enumerable:!0,get:function(){return _t.KnownDirectivesRule}});Object.defineProperty(j,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return _t.KnownFragmentNamesRule}});Object.defineProperty(j,"KnownTypeNamesRule",{enumerable:!0,get:function(){return _t.KnownTypeNamesRule}});Object.defineProperty(j,"Lexer",{enumerable:!0,get:function(){return nr.Lexer}});Object.defineProperty(j,"Location",{enumerable:!0,get:function(){return nr.Location}});Object.defineProperty(j,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return _t.LoneAnonymousOperationRule}});Object.defineProperty(j,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return _t.LoneSchemaDefinitionRule}});Object.defineProperty(j,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return _t.MaxIntrospectionDepthRule}});Object.defineProperty(j,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return _t.NoDeprecatedCustomRule}});Object.defineProperty(j,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return _t.NoFragmentCyclesRule}});Object.defineProperty(j,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return _t.NoSchemaIntrospectionCustomRule}});Object.defineProperty(j,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return _t.NoUndefinedVariablesRule}});Object.defineProperty(j,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return _t.NoUnusedFragmentsRule}});Object.defineProperty(j,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return _t.NoUnusedVariablesRule}});Object.defineProperty(j,"OperationTypeNode",{enumerable:!0,get:function(){return nr.OperationTypeNode}});Object.defineProperty(j,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return _t.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(j,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return _t.PossibleFragmentSpreadsRule}});Object.defineProperty(j,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return _t.PossibleTypeExtensionsRule}});Object.defineProperty(j,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return _t.ProvidedRequiredArgumentsRule}});Object.defineProperty(j,"ScalarLeafsRule",{enumerable:!0,get:function(){return _t.ScalarLeafsRule}});Object.defineProperty(j,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ge.SchemaMetaFieldDef}});Object.defineProperty(j,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return _t.SingleFieldSubscriptionsRule}});Object.defineProperty(j,"Source",{enumerable:!0,get:function(){return nr.Source}});Object.defineProperty(j,"Token",{enumerable:!0,get:function(){return nr.Token}});Object.defineProperty(j,"TokenKind",{enumerable:!0,get:function(){return nr.TokenKind}});Object.defineProperty(j,"TypeInfo",{enumerable:!0,get:function(){return ir.TypeInfo}});Object.defineProperty(j,"TypeKind",{enumerable:!0,get:function(){return ge.TypeKind}});Object.defineProperty(j,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeMetaFieldDef}});Object.defineProperty(j,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeNameMetaFieldDef}});Object.defineProperty(j,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(j,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentNamesRule}});Object.defineProperty(j,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return _t.UniqueDirectiveNamesRule}});Object.defineProperty(j,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return _t.UniqueDirectivesPerLocationRule}});Object.defineProperty(j,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return _t.UniqueEnumValueNamesRule}});Object.defineProperty(j,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueFieldDefinitionNamesRule}});Object.defineProperty(j,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return _t.UniqueFragmentNamesRule}});Object.defineProperty(j,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return _t.UniqueInputFieldNamesRule}});Object.defineProperty(j,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return _t.UniqueOperationNamesRule}});Object.defineProperty(j,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return _t.UniqueOperationTypesRule}});Object.defineProperty(j,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return _t.UniqueTypeNamesRule}});Object.defineProperty(j,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return _t.UniqueVariableNamesRule}});Object.defineProperty(j,"ValidationContext",{enumerable:!0,get:function(){return _t.ValidationContext}});Object.defineProperty(j,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return _t.ValuesOfCorrectTypeRule}});Object.defineProperty(j,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return _t.VariablesAreInputTypesRule}});Object.defineProperty(j,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return _t.VariablesInAllowedPositionRule}});Object.defineProperty(j,"__Directive",{enumerable:!0,get:function(){return ge.__Directive}});Object.defineProperty(j,"__DirectiveLocation",{enumerable:!0,get:function(){return ge.__DirectiveLocation}});Object.defineProperty(j,"__EnumValue",{enumerable:!0,get:function(){return ge.__EnumValue}});Object.defineProperty(j,"__Field",{enumerable:!0,get:function(){return ge.__Field}});Object.defineProperty(j,"__InputValue",{enumerable:!0,get:function(){return ge.__InputValue}});Object.defineProperty(j,"__Schema",{enumerable:!0,get:function(){return ge.__Schema}});Object.defineProperty(j,"__Type",{enumerable:!0,get:function(){return ge.__Type}});Object.defineProperty(j,"__TypeKind",{enumerable:!0,get:function(){return ge.__TypeKind}});Object.defineProperty(j,"assertAbstractType",{enumerable:!0,get:function(){return ge.assertAbstractType}});Object.defineProperty(j,"assertCompositeType",{enumerable:!0,get:function(){return ge.assertCompositeType}});Object.defineProperty(j,"assertDirective",{enumerable:!0,get:function(){return ge.assertDirective}});Object.defineProperty(j,"assertEnumType",{enumerable:!0,get:function(){return ge.assertEnumType}});Object.defineProperty(j,"assertEnumValueName",{enumerable:!0,get:function(){return ge.assertEnumValueName}});Object.defineProperty(j,"assertInputObjectType",{enumerable:!0,get:function(){return ge.assertInputObjectType}});Object.defineProperty(j,"assertInputType",{enumerable:!0,get:function(){return ge.assertInputType}});Object.defineProperty(j,"assertInterfaceType",{enumerable:!0,get:function(){return ge.assertInterfaceType}});Object.defineProperty(j,"assertLeafType",{enumerable:!0,get:function(){return ge.assertLeafType}});Object.defineProperty(j,"assertListType",{enumerable:!0,get:function(){return ge.assertListType}});Object.defineProperty(j,"assertName",{enumerable:!0,get:function(){return ge.assertName}});Object.defineProperty(j,"assertNamedType",{enumerable:!0,get:function(){return ge.assertNamedType}});Object.defineProperty(j,"assertNonNullType",{enumerable:!0,get:function(){return ge.assertNonNullType}});Object.defineProperty(j,"assertNullableType",{enumerable:!0,get:function(){return ge.assertNullableType}});Object.defineProperty(j,"assertObjectType",{enumerable:!0,get:function(){return ge.assertObjectType}});Object.defineProperty(j,"assertOutputType",{enumerable:!0,get:function(){return ge.assertOutputType}});Object.defineProperty(j,"assertScalarType",{enumerable:!0,get:function(){return ge.assertScalarType}});Object.defineProperty(j,"assertSchema",{enumerable:!0,get:function(){return ge.assertSchema}});Object.defineProperty(j,"assertType",{enumerable:!0,get:function(){return ge.assertType}});Object.defineProperty(j,"assertUnionType",{enumerable:!0,get:function(){return ge.assertUnionType}});Object.defineProperty(j,"assertValidName",{enumerable:!0,get:function(){return ir.assertValidName}});Object.defineProperty(j,"assertValidSchema",{enumerable:!0,get:function(){return ge.assertValidSchema}});Object.defineProperty(j,"assertWrappingType",{enumerable:!0,get:function(){return ge.assertWrappingType}});Object.defineProperty(j,"astFromValue",{enumerable:!0,get:function(){return ir.astFromValue}});Object.defineProperty(j,"buildASTSchema",{enumerable:!0,get:function(){return ir.buildASTSchema}});Object.defineProperty(j,"buildClientSchema",{enumerable:!0,get:function(){return ir.buildClientSchema}});Object.defineProperty(j,"buildSchema",{enumerable:!0,get:function(){return ir.buildSchema}});Object.defineProperty(j,"coerceInputValue",{enumerable:!0,get:function(){return ir.coerceInputValue}});Object.defineProperty(j,"concatAST",{enumerable:!0,get:function(){return ir.concatAST}});Object.defineProperty(j,"createSourceEventStream",{enumerable:!0,get:function(){return jo.createSourceEventStream}});Object.defineProperty(j,"defaultFieldResolver",{enumerable:!0,get:function(){return jo.defaultFieldResolver}});Object.defineProperty(j,"defaultTypeResolver",{enumerable:!0,get:function(){return jo.defaultTypeResolver}});Object.defineProperty(j,"doTypesOverlap",{enumerable:!0,get:function(){return ir.doTypesOverlap}});Object.defineProperty(j,"execute",{enumerable:!0,get:function(){return jo.execute}});Object.defineProperty(j,"executeSync",{enumerable:!0,get:function(){return jo.executeSync}});Object.defineProperty(j,"extendSchema",{enumerable:!0,get:function(){return ir.extendSchema}});Object.defineProperty(j,"findBreakingChanges",{enumerable:!0,get:function(){return ir.findBreakingChanges}});Object.defineProperty(j,"findDangerousChanges",{enumerable:!0,get:function(){return ir.findDangerousChanges}});Object.defineProperty(j,"formatError",{enumerable:!0,get:function(){return Hh.formatError}});Object.defineProperty(j,"getArgumentValues",{enumerable:!0,get:function(){return jo.getArgumentValues}});Object.defineProperty(j,"getDirectiveValues",{enumerable:!0,get:function(){return jo.getDirectiveValues}});Object.defineProperty(j,"getEnterLeaveForKind",{enumerable:!0,get:function(){return nr.getEnterLeaveForKind}});Object.defineProperty(j,"getIntrospectionQuery",{enumerable:!0,get:function(){return ir.getIntrospectionQuery}});Object.defineProperty(j,"getLocation",{enumerable:!0,get:function(){return nr.getLocation}});Object.defineProperty(j,"getNamedType",{enumerable:!0,get:function(){return ge.getNamedType}});Object.defineProperty(j,"getNullableType",{enumerable:!0,get:function(){return ge.getNullableType}});Object.defineProperty(j,"getOperationAST",{enumerable:!0,get:function(){return ir.getOperationAST}});Object.defineProperty(j,"getOperationRootType",{enumerable:!0,get:function(){return ir.getOperationRootType}});Object.defineProperty(j,"getVariableValues",{enumerable:!0,get:function(){return jo.getVariableValues}});Object.defineProperty(j,"getVisitFn",{enumerable:!0,get:function(){return nr.getVisitFn}});Object.defineProperty(j,"graphql",{enumerable:!0,get:function(){return ZH.graphql}});Object.defineProperty(j,"graphqlSync",{enumerable:!0,get:function(){return ZH.graphqlSync}});Object.defineProperty(j,"introspectionFromSchema",{enumerable:!0,get:function(){return ir.introspectionFromSchema}});Object.defineProperty(j,"introspectionTypes",{enumerable:!0,get:function(){return ge.introspectionTypes}});Object.defineProperty(j,"isAbstractType",{enumerable:!0,get:function(){return ge.isAbstractType}});Object.defineProperty(j,"isCompositeType",{enumerable:!0,get:function(){return ge.isCompositeType}});Object.defineProperty(j,"isConstValueNode",{enumerable:!0,get:function(){return nr.isConstValueNode}});Object.defineProperty(j,"isDefinitionNode",{enumerable:!0,get:function(){return nr.isDefinitionNode}});Object.defineProperty(j,"isDirective",{enumerable:!0,get:function(){return ge.isDirective}});Object.defineProperty(j,"isEnumType",{enumerable:!0,get:function(){return ge.isEnumType}});Object.defineProperty(j,"isEqualType",{enumerable:!0,get:function(){return ir.isEqualType}});Object.defineProperty(j,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return nr.isExecutableDefinitionNode}});Object.defineProperty(j,"isInputObjectType",{enumerable:!0,get:function(){return ge.isInputObjectType}});Object.defineProperty(j,"isInputType",{enumerable:!0,get:function(){return ge.isInputType}});Object.defineProperty(j,"isInterfaceType",{enumerable:!0,get:function(){return ge.isInterfaceType}});Object.defineProperty(j,"isIntrospectionType",{enumerable:!0,get:function(){return ge.isIntrospectionType}});Object.defineProperty(j,"isLeafType",{enumerable:!0,get:function(){return ge.isLeafType}});Object.defineProperty(j,"isListType",{enumerable:!0,get:function(){return ge.isListType}});Object.defineProperty(j,"isNamedType",{enumerable:!0,get:function(){return ge.isNamedType}});Object.defineProperty(j,"isNonNullType",{enumerable:!0,get:function(){return ge.isNonNullType}});Object.defineProperty(j,"isNullableType",{enumerable:!0,get:function(){return ge.isNullableType}});Object.defineProperty(j,"isObjectType",{enumerable:!0,get:function(){return ge.isObjectType}});Object.defineProperty(j,"isOutputType",{enumerable:!0,get:function(){return ge.isOutputType}});Object.defineProperty(j,"isRequiredArgument",{enumerable:!0,get:function(){return ge.isRequiredArgument}});Object.defineProperty(j,"isRequiredInputField",{enumerable:!0,get:function(){return ge.isRequiredInputField}});Object.defineProperty(j,"isScalarType",{enumerable:!0,get:function(){return ge.isScalarType}});Object.defineProperty(j,"isSchema",{enumerable:!0,get:function(){return ge.isSchema}});Object.defineProperty(j,"isSelectionNode",{enumerable:!0,get:function(){return nr.isSelectionNode}});Object.defineProperty(j,"isSpecifiedDirective",{enumerable:!0,get:function(){return ge.isSpecifiedDirective}});Object.defineProperty(j,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ge.isSpecifiedScalarType}});Object.defineProperty(j,"isType",{enumerable:!0,get:function(){return ge.isType}});Object.defineProperty(j,"isTypeDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeDefinitionNode}});Object.defineProperty(j,"isTypeExtensionNode",{enumerable:!0,get:function(){return nr.isTypeExtensionNode}});Object.defineProperty(j,"isTypeNode",{enumerable:!0,get:function(){return nr.isTypeNode}});Object.defineProperty(j,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ir.isTypeSubTypeOf}});Object.defineProperty(j,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeSystemDefinitionNode}});Object.defineProperty(j,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return nr.isTypeSystemExtensionNode}});Object.defineProperty(j,"isUnionType",{enumerable:!0,get:function(){return ge.isUnionType}});Object.defineProperty(j,"isValidNameError",{enumerable:!0,get:function(){return ir.isValidNameError}});Object.defineProperty(j,"isValueNode",{enumerable:!0,get:function(){return nr.isValueNode}});Object.defineProperty(j,"isWrappingType",{enumerable:!0,get:function(){return ge.isWrappingType}});Object.defineProperty(j,"lexicographicSortSchema",{enumerable:!0,get:function(){return ir.lexicographicSortSchema}});Object.defineProperty(j,"locatedError",{enumerable:!0,get:function(){return Hh.locatedError}});Object.defineProperty(j,"parse",{enumerable:!0,get:function(){return nr.parse}});Object.defineProperty(j,"parseConstValue",{enumerable:!0,get:function(){return nr.parseConstValue}});Object.defineProperty(j,"parseType",{enumerable:!0,get:function(){return nr.parseType}});Object.defineProperty(j,"parseValue",{enumerable:!0,get:function(){return nr.parseValue}});Object.defineProperty(j,"print",{enumerable:!0,get:function(){return nr.print}});Object.defineProperty(j,"printError",{enumerable:!0,get:function(){return Hh.printError}});Object.defineProperty(j,"printIntrospectionSchema",{enumerable:!0,get:function(){return ir.printIntrospectionSchema}});Object.defineProperty(j,"printLocation",{enumerable:!0,get:function(){return nr.printLocation}});Object.defineProperty(j,"printSchema",{enumerable:!0,get:function(){return ir.printSchema}});Object.defineProperty(j,"printSourceLocation",{enumerable:!0,get:function(){return nr.printSourceLocation}});Object.defineProperty(j,"printType",{enumerable:!0,get:function(){return ir.printType}});Object.defineProperty(j,"recommendedRules",{enumerable:!0,get:function(){return _t.recommendedRules}});Object.defineProperty(j,"resolveObjMapThunk",{enumerable:!0,get:function(){return ge.resolveObjMapThunk}});Object.defineProperty(j,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ge.resolveReadonlyArrayThunk}});Object.defineProperty(j,"responsePathAsArray",{enumerable:!0,get:function(){return jo.responsePathAsArray}});Object.defineProperty(j,"separateOperations",{enumerable:!0,get:function(){return ir.separateOperations}});Object.defineProperty(j,"specifiedDirectives",{enumerable:!0,get:function(){return ge.specifiedDirectives}});Object.defineProperty(j,"specifiedRules",{enumerable:!0,get:function(){return _t.specifiedRules}});Object.defineProperty(j,"specifiedScalarTypes",{enumerable:!0,get:function(){return ge.specifiedScalarTypes}});Object.defineProperty(j,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ir.stripIgnoredCharacters}});Object.defineProperty(j,"subscribe",{enumerable:!0,get:function(){return jo.subscribe}});Object.defineProperty(j,"syntaxError",{enumerable:!0,get:function(){return Hh.syntaxError}});Object.defineProperty(j,"typeFromAST",{enumerable:!0,get:function(){return ir.typeFromAST}});Object.defineProperty(j,"validate",{enumerable:!0,get:function(){return _t.validate}});Object.defineProperty(j,"validateSchema",{enumerable:!0,get:function(){return ge.validateSchema}});Object.defineProperty(j,"valueFromAST",{enumerable:!0,get:function(){return ir.valueFromAST}});Object.defineProperty(j,"valueFromASTUntyped",{enumerable:!0,get:function(){return ir.valueFromASTUntyped}});Object.defineProperty(j,"version",{enumerable:!0,get:function(){return XH.version}});Object.defineProperty(j,"versionInfo",{enumerable:!0,get:function(){return XH.versionInfo}});Object.defineProperty(j,"visit",{enumerable:!0,get:function(){return nr.visit}});Object.defineProperty(j,"visitInParallel",{enumerable:!0,get:function(){return nr.visitInParallel}});Object.defineProperty(j,"visitWithTypeInfo",{enumerable:!0,get:function(){return ir.visitWithTypeInfo}});var XH=YQ(),ZH=jz(),ge=$z(),nr=Qz(),jo=eH(),_t=iH(),Hh=aH(),ir=WH()});var xr=O(w=>{"use strict";d();p();f();Object.defineProperty(w,"__esModule",{value:!0});w.FIELD=w.EXTENSIONS=w.EXTENDS=w.EXTERNAL=w.EXECUTION=w.ENUM_VALUE_UPPER=w.ENUM_VALUE=w.ENUM_UPPER=w.ENUM=w.ENTITY_UNION=w.ENTITIES_FIELD=w.ENTITIES=w.EDFS_REDIS_SUBSCRIBE=w.EDFS_REDIS_PUBLISH=w.EDFS_NATS_STREAM_CONFIGURATION=w.EDFS_PUBLISH_RESULT=w.EDFS_NATS_SUBSCRIBE=w.EDFS_NATS_REQUEST=w.EDFS_NATS_PUBLISH=w.EDFS_KAFKA_SUBSCRIBE=w.EDFS_KAFKA_PUBLISH=w.DIRECTIVE_DEFINITION=w.DESCRIPTION_OVERRIDE=w.DEPRECATED_DEFAULT_ARGUMENT_VALUE=w.DEPRECATED=w.DEFAULT_SUBSCRIPTION=w.DEFAULT_QUERY=w.DEFAULT_MUTATION=w.DEFAULT_EDFS_PROVIDER_ID=w.DEFAULT=w.COST=w.CONTEXT=w.CONNECT_FIELD_RESOLVER=w.CONSUMER_NAME=w.CONSUMER_INACTIVE_THRESHOLD=w.CONFIGURE_CHILD_DESCRIPTIONS=w.CONFIGURE_DESCRIPTION=w.CONDITION=w.COMPOSE_DIRECTIVE=w.CHANNELS=w.CHANNEL=w.BOOLEAN_SCALAR=w.BOOLEAN=w.ARGUMENT_DEFINITION_UPPER=w.AUTHENTICATED=w.ARGUMENT=w.ANY_SCALAR=w.AND_UPPER=w.ASSUMED_SIZE=w.AS=void 0;w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=w.NAME=w.NOT_APPLICABLE=w.PROVIDER_TYPE_REDIS=w.PROVIDER_TYPE_NATS=w.PROVIDER_TYPE_KAFKA=w.PROPAGATE=w.MUTATION_UPPER=w.MUTATION=w.NUMBER=w.LITERAL_PERIOD=w.LITERAL_NEW_LINE=w.LITERAL_SPACE=w.LITERAL_AT=w.LIST=w.LINK_PURPOSE=w.LINK_IMPORT=w.LIST_SIZE=w.LINK=w.LEVELS=w.LEFT_PARENTHESIS=w.KEY=w.INTERFACE_OBJECT=w.INTERFACE_UPPER=w.INTERFACE=w.INT_SCALAR=w.INPUT_VALUE=w.INPUT_OBJECT_UPPER=w.INPUT_OBJECT=w.INPUT_FIELD_DEFINITION_UPPER=w.INPUT_FIELD=w.INPUT=w.INLINE_FRAGMENT_UPPER=w.INLINE_FRAGMENT=w.INACCESSIBLE=w.IN_UPPER=w.IMPORT=w.ID_SCALAR=w.HYPHEN_JOIN=w.FROM=w.FRAGMENT_SPREAD_UPPER=w.FRAGMENT_DEFINITION_UPPER=w.FOR=w.FLOAT_SCALAR=w.FIRST_ORDINAL=w.FIELD_DEFINITION_UPPER=w.FIELDS=w.FIELD_SET_SCALAR=w.FIELD_UPPER=w.FIELD_PATH=void 0;w.SUBSCRIPTION_FIELD_CONDITION=w.SUBSCRIPTION=w.SUBJECTS=w.SUBJECT=w.STRING_SCALAR=w.STRING=w.STREAM_NAME=w.STREAM_CONFIGURATION=w.SPECIFIED_BY=w.SLICING_ARGUMENTS=w.SIZED_FIELDS=w.SHAREABLE=w.SERVICE_FIELD=w.SERVICE_OBJECT=w.SEMANTIC_NON_NULL=w.SELECTION_REPRESENTATION=w.SECURITY=w.SCOPE_SCALAR=w.SCOPES=w.SCHEMA_UPPER=w.SCHEMA=w.SCALAR_UPPER=w.SCALAR=w.RESOLVABLE=w.REQUIRES_SCOPES=w.REQUIRES=w.REQUIRE_ONE_SLICING_ARGUMENT=w.REQUIRE_FETCH_REASONS=w.REQUEST=w.REASON=w.QUOTATION_JOIN=w.QUERY_UPPER=w.QUERY=w.PUBLISH=w.PROVIDES=w.PROVIDER_ID=w.PARENT_EXTENSION_DATA_MAP=w.PARENT_DEFINITION_DATA_MAP=w.PARENT_DEFINITION_DATA=w.OVERRIDE=w.OR_UPPER=w.OBJECT_UPPER=w.OBJECT=w.OPERATION_TO_DEFAULT=w.ONE_OF=w.NULL=w.NOT_UPPER=w.NON_NULLABLE_STRING=w.NON_NULLABLE_INT=w.NON_NULLABLE_BOOLEAN=void 0;w.NON_REPEATABLE_FEDERATED_DIRECTIVES=w.INTERFACE_NODE_KINDS=w.OUTPUT_NODE_KINDS=w.INPUT_NODE_KINDS=w.IGNORED_FIELDS=w.INHERITABLE_DIRECTIVE_NAMES=w.PERSISTED_CLIENT_DIRECTIVES=w.AUTHORIZATION_DIRECTIVES=w.ROOT_TYPE_NAMES=w.EXECUTABLE_DIRECTIVE_LOCATIONS=w.WEIGHT=w.VARIABLE_DEFINITION_UPPER=w.VALUES=w.URL_LOWER=w.UNION_UPPER=w.UNION=w.TYPENAME=w.TOPICS=w.TOPIC=w.TAG=w.SUCCESS=w.SUBSCRIPTION_UPPER=w.SUBSCRIBE=w.SUBSCRIPTION_FILTER_VALUE=w.SUBSCRIPTION_FILTER_CONDITION=w.SUBSCRIPTION_FILTER=void 0;var Vo=ve();w.AS="as";w.ASSUMED_SIZE="assumedSize";w.AND_UPPER="AND";w.ANY_SCALAR="_Any";w.ARGUMENT="argument";w.AUTHENTICATED="authenticated";w.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";w.BOOLEAN="boolean";w.BOOLEAN_SCALAR="Boolean";w.CHANNEL="channel";w.CHANNELS="channels";w.COMPOSE_DIRECTIVE="composeDirective";w.CONDITION="condition";w.CONFIGURE_DESCRIPTION="openfed__configureDescription";w.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";w.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";w.CONSUMER_NAME="consumerName";w.CONNECT_FIELD_RESOLVER="connect__fieldResolver";w.CONTEXT="context";w.COST="cost";w.DEFAULT="default";w.DEFAULT_EDFS_PROVIDER_ID="default";w.DEFAULT_MUTATION="Mutation";w.DEFAULT_QUERY="Query";w.DEFAULT_SUBSCRIPTION="Subscription";w.DEPRECATED="deprecated";w.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";w.DESCRIPTION_OVERRIDE="descriptionOverride";w.DIRECTIVE_DEFINITION="directive definition";w.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";w.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";w.EDFS_NATS_PUBLISH="edfs__natsPublish";w.EDFS_NATS_REQUEST="edfs__natsRequest";w.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";w.EDFS_PUBLISH_RESULT="edfs__PublishResult";w.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";w.EDFS_REDIS_PUBLISH="edfs__redisPublish";w.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";w.ENTITIES="entities";w.ENTITIES_FIELD="_entities";w.ENTITY_UNION="_Entity";w.ENUM="Enum";w.ENUM_UPPER="ENUM";w.ENUM_VALUE="Enum Value";w.ENUM_VALUE_UPPER="ENUM_VALUE";w.EXECUTION="EXECUTION";w.EXTERNAL="external";w.EXTENDS="extends";w.EXTENSIONS="extensions";w.FIELD="field";w.FIELD_PATH="fieldPath";w.FIELD_UPPER="FIELD";w.FIELD_SET_SCALAR="openfed__FieldSet";w.FIELDS="fields";w.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";w.FIRST_ORDINAL="1st";w.FLOAT_SCALAR="Float";w.FOR="for";w.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";w.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";w.FROM="from";w.HYPHEN_JOIN=` +`}});var PH=O(GR=>{"use strict";d();p();f();Object.defineProperty(GR,"__esModule",{value:!0});GR.concatAST=x0e;var q0e=jt();function x0e(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:q0e.Kind.DOCUMENT,definitions:t}}});var CH=O(QR=>{"use strict";d();p();f();Object.defineProperty(QR,"__esModule",{value:!0});QR.separateOperations=j0e;var Yg=jt(),M0e=$l();function j0e(e){let t=[],r=Object.create(null);for(let i of e.definitions)switch(i.kind){case Yg.Kind.OPERATION_DEFINITION:t.push(i);break;case Yg.Kind.FRAGMENT_DEFINITION:r[i.name.value]=FH(i.selectionSet);break;default:}let n=Object.create(null);for(let i of t){let a=new Set;for(let u of FH(i.selectionSet))LH(a,r,u);let o=i.name?i.name.value:"";n[o]={kind:Yg.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===Yg.Kind.FRAGMENT_DEFINITION&&a.has(u.name.value))}}return n}function LH(e,t,r){if(!e.has(r)){e.add(r);let n=t[r];if(n!==void 0)for(let i of n)LH(e,t,i)}}function FH(e){let t=[];return(0,M0e.visit)(e,{FragmentSpread(r){t.push(r.name.value)}}),t}});var kH=O(JR=>{"use strict";d();p();f();Object.defineProperty(JR,"__esModule",{value:!0});JR.stripIgnoredCharacters=K0e;var V0e=ih(),BH=qE(),UH=VE(),YR=oh();function K0e(e){let t=(0,UH.isSource)(e)?e:new UH.Source(e),r=t.body,n=new BH.Lexer(t),i="",a=!1;for(;n.advance().kind!==YR.TokenKind.EOF;){let o=n.token,u=o.kind,l=!(0,BH.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===YR.TokenKind.SPREAD)&&(i+=" ");let m=r.slice(o.start,o.end);u===YR.TokenKind.BLOCK_STRING?i+=(0,V0e.printBlockString)(o.value,{minimize:!0}):i+=m,a=l}return i}});var xH=O(Jg=>{"use strict";d();p();f();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.assertValidName=Y0e;Jg.isValidNameError=qH;var $0e=ui(),G0e=at(),Q0e=mh();function Y0e(e){let t=qH(e);if(t)throw t;return e}function qH(e){if(typeof e=="string"||(0,$0e.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new G0e.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,Q0e.assertName)(e)}catch(t){return t}}});var YH=O(Mo=>{"use strict";d();p();f();Object.defineProperty(Mo,"__esModule",{value:!0});Mo.DangerousChangeType=Mo.BreakingChangeType=void 0;Mo.findBreakingChanges=Z0e;Mo.findDangerousChanges=eRe;var J0e=cr(),GH=Zn(),MH=xc(),z0e=Gi(),Xt=Vt(),H0e=Co(),W0e=Dh(),X0e=WA(),Xr;Mo.BreakingChangeType=Xr;(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"})(Xr||(Mo.BreakingChangeType=Xr={}));var no;Mo.DangerousChangeType=no;(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"})(no||(Mo.DangerousChangeType=no={}));function Z0e(e,t){return QH(e,t).filter(r=>r.type in Xr)}function eRe(e,t){return QH(e,t).filter(r=>r.type in no)}function QH(e,t){return[...rRe(e,t),...tRe(e,t)]}function tRe(e,t){let r=[],n=Cs(e.getDirectives(),t.getDirectives());for(let i of n.removed)r.push({type:Xr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of n.persisted){let o=Cs(i.args,a.args);for(let u of o.added)(0,Xt.isRequiredArgument)(u)&&r.push({type:Xr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)r.push({type:Xr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&r.push({type:Xr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)a.locations.includes(u)||r.push({type:Xr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return r}function rRe(e,t){let r=[],n=Cs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of n.removed)r.push({type:Xr.TYPE_REMOVED,description:(0,H0e.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of n.persisted)(0,Xt.isEnumType)(i)&&(0,Xt.isEnumType)(a)?r.push(...aRe(i,a)):(0,Xt.isUnionType)(i)&&(0,Xt.isUnionType)(a)?r.push(...iRe(i,a)):(0,Xt.isInputObjectType)(i)&&(0,Xt.isInputObjectType)(a)?r.push(...nRe(i,a)):(0,Xt.isObjectType)(i)&&(0,Xt.isObjectType)(a)?r.push(...VH(i,a),...jH(i,a)):(0,Xt.isInterfaceType)(i)&&(0,Xt.isInterfaceType)(a)?r.push(...VH(i,a),...jH(i,a)):i.constructor!==a.constructor&&r.push({type:Xr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${KH(i)} to ${KH(a)}.`});return r}function nRe(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.added)(0,Xt.isRequiredInputField)(i)?r.push({type:Xr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):r.push({type:no.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of n.removed)r.push({type:Xr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)zh(i.type,a.type)||r.push({type:Xr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function iRe(e,t){let r=[],n=Cs(e.getTypes(),t.getTypes());for(let i of n.added)r.push({type:no.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of n.removed)r.push({type:Xr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return r}function aRe(e,t){let r=[],n=Cs(e.getValues(),t.getValues());for(let i of n.added)r.push({type:no.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of n.removed)r.push({type:Xr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return r}function jH(e,t){let r=[],n=Cs(e.getInterfaces(),t.getInterfaces());for(let i of n.added)r.push({type:no.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of n.removed)r.push({type:Xr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return r}function VH(e,t){let r=[],n=Cs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of n.removed)r.push({type:Xr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of n.persisted)r.push(...oRe(e,i,a)),Jh(i.type,a.type)||r.push({type:Xr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return r}function oRe(e,t,r){let n=[],i=Cs(t.args,r.args);for(let a of i.removed)n.push({type:Xr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!zh(a.type,o.type))n.push({type:Xr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=$H(a.defaultValue,a.type),m=$H(o.defaultValue,o.type);l!==m&&n.push({type:no.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${m}.`})}for(let a of i.added)(0,Xt.isRequiredArgument)(a)?n.push({type:Xr.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):n.push({type:no.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return n}function Jh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&Jh(e.ofType,t.ofType)||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&Jh(e.ofType,t.ofType):(0,Xt.isNamedType)(t)&&e.name===t.name||(0,Xt.isNonNullType)(t)&&Jh(e,t.ofType)}function zh(e,t){return(0,Xt.isListType)(e)?(0,Xt.isListType)(t)&&zh(e.ofType,t.ofType):(0,Xt.isNonNullType)(e)?(0,Xt.isNonNullType)(t)&&zh(e.ofType,t.ofType)||!(0,Xt.isNonNullType)(t)&&zh(e.ofType,t):(0,Xt.isNamedType)(t)&&e.name===t.name}function KH(e){if((0,Xt.isScalarType)(e))return"a Scalar type";if((0,Xt.isObjectType)(e))return"an Object type";if((0,Xt.isInterfaceType)(e))return"an Interface type";if((0,Xt.isUnionType)(e))return"a Union type";if((0,Xt.isEnumType)(e))return"an Enum type";if((0,Xt.isInputObjectType)(e))return"an Input type";(0,GH.invariant)(!1,"Unexpected type: "+(0,J0e.inspect)(e))}function $H(e,t){let r=(0,W0e.astFromValue)(e,t);return r!=null||(0,GH.invariant)(!1),(0,z0e.print)((0,X0e.sortValueNode)(r))}function Cs(e,t){let r=[],n=[],i=[],a=(0,MH.keyMap)(e,({name:u})=>u),o=(0,MH.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?n.push(u):i.push([u,l])}for(let u of t)a[u.name]===void 0&&r.push(u);return{added:r,persisted:i,removed:n}}});var WH=O(zt=>{"use strict";d();p();f();Object.defineProperty(zt,"__esModule",{value:!0});Object.defineProperty(zt,"BreakingChangeType",{enumerable:!0,get:function(){return zg.BreakingChangeType}});Object.defineProperty(zt,"DangerousChangeType",{enumerable:!0,get:function(){return zg.DangerousChangeType}});Object.defineProperty(zt,"TypeInfo",{enumerable:!0,get:function(){return zH.TypeInfo}});Object.defineProperty(zt,"assertValidName",{enumerable:!0,get:function(){return HH.assertValidName}});Object.defineProperty(zt,"astFromValue",{enumerable:!0,get:function(){return NRe.astFromValue}});Object.defineProperty(zt,"buildASTSchema",{enumerable:!0,get:function(){return JH.buildASTSchema}});Object.defineProperty(zt,"buildClientSchema",{enumerable:!0,get:function(){return dRe.buildClientSchema}});Object.defineProperty(zt,"buildSchema",{enumerable:!0,get:function(){return JH.buildSchema}});Object.defineProperty(zt,"coerceInputValue",{enumerable:!0,get:function(){return TRe.coerceInputValue}});Object.defineProperty(zt,"concatAST",{enumerable:!0,get:function(){return ERe.concatAST}});Object.defineProperty(zt,"doTypesOverlap",{enumerable:!0,get:function(){return HR.doTypesOverlap}});Object.defineProperty(zt,"extendSchema",{enumerable:!0,get:function(){return fRe.extendSchema}});Object.defineProperty(zt,"findBreakingChanges",{enumerable:!0,get:function(){return zg.findBreakingChanges}});Object.defineProperty(zt,"findDangerousChanges",{enumerable:!0,get:function(){return zg.findDangerousChanges}});Object.defineProperty(zt,"getIntrospectionQuery",{enumerable:!0,get:function(){return sRe.getIntrospectionQuery}});Object.defineProperty(zt,"getOperationAST",{enumerable:!0,get:function(){return uRe.getOperationAST}});Object.defineProperty(zt,"getOperationRootType",{enumerable:!0,get:function(){return cRe.getOperationRootType}});Object.defineProperty(zt,"introspectionFromSchema",{enumerable:!0,get:function(){return lRe.introspectionFromSchema}});Object.defineProperty(zt,"isEqualType",{enumerable:!0,get:function(){return HR.isEqualType}});Object.defineProperty(zt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return HR.isTypeSubTypeOf}});Object.defineProperty(zt,"isValidNameError",{enumerable:!0,get:function(){return HH.isValidNameError}});Object.defineProperty(zt,"lexicographicSortSchema",{enumerable:!0,get:function(){return pRe.lexicographicSortSchema}});Object.defineProperty(zt,"printIntrospectionSchema",{enumerable:!0,get:function(){return zR.printIntrospectionSchema}});Object.defineProperty(zt,"printSchema",{enumerable:!0,get:function(){return zR.printSchema}});Object.defineProperty(zt,"printType",{enumerable:!0,get:function(){return zR.printType}});Object.defineProperty(zt,"separateOperations",{enumerable:!0,get:function(){return gRe.separateOperations}});Object.defineProperty(zt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return IRe.stripIgnoredCharacters}});Object.defineProperty(zt,"typeFromAST",{enumerable:!0,get:function(){return mRe.typeFromAST}});Object.defineProperty(zt,"valueFromAST",{enumerable:!0,get:function(){return hRe.valueFromAST}});Object.defineProperty(zt,"valueFromASTUntyped",{enumerable:!0,get:function(){return yRe.valueFromASTUntyped}});Object.defineProperty(zt,"visitWithTypeInfo",{enumerable:!0,get:function(){return zH.visitWithTypeInfo}});var sRe=PR(),uRe=oH(),cRe=sH(),lRe=uH(),dRe=lH(),JH=gH(),fRe=kR(),pRe=_H(),zR=wH(),mRe=Bo(),hRe=Uh(),yRe=Yb(),NRe=Dh(),zH=yg(),TRe=N0(),ERe=PH(),gRe=CH(),IRe=kH(),HR=Eh(),HH=xH(),zg=YH()});var _e=O(j=>{"use strict";d();p();f();Object.defineProperty(j,"__esModule",{value:!0});Object.defineProperty(j,"BREAK",{enumerable:!0,get:function(){return nr.BREAK}});Object.defineProperty(j,"BreakingChangeType",{enumerable:!0,get:function(){return ir.BreakingChangeType}});Object.defineProperty(j,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ge.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(j,"DangerousChangeType",{enumerable:!0,get:function(){return ir.DangerousChangeType}});Object.defineProperty(j,"DirectiveLocation",{enumerable:!0,get:function(){return nr.DirectiveLocation}});Object.defineProperty(j,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return _t.ExecutableDefinitionsRule}});Object.defineProperty(j,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _t.FieldsOnCorrectTypeRule}});Object.defineProperty(j,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return _t.FragmentsOnCompositeTypesRule}});Object.defineProperty(j,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MAX_INT}});Object.defineProperty(j,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ge.GRAPHQL_MIN_INT}});Object.defineProperty(j,"GraphQLBoolean",{enumerable:!0,get:function(){return ge.GraphQLBoolean}});Object.defineProperty(j,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ge.GraphQLDeprecatedDirective}});Object.defineProperty(j,"GraphQLDirective",{enumerable:!0,get:function(){return ge.GraphQLDirective}});Object.defineProperty(j,"GraphQLEnumType",{enumerable:!0,get:function(){return ge.GraphQLEnumType}});Object.defineProperty(j,"GraphQLError",{enumerable:!0,get:function(){return Hh.GraphQLError}});Object.defineProperty(j,"GraphQLFloat",{enumerable:!0,get:function(){return ge.GraphQLFloat}});Object.defineProperty(j,"GraphQLID",{enumerable:!0,get:function(){return ge.GraphQLID}});Object.defineProperty(j,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ge.GraphQLIncludeDirective}});Object.defineProperty(j,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ge.GraphQLInputObjectType}});Object.defineProperty(j,"GraphQLInt",{enumerable:!0,get:function(){return ge.GraphQLInt}});Object.defineProperty(j,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ge.GraphQLInterfaceType}});Object.defineProperty(j,"GraphQLList",{enumerable:!0,get:function(){return ge.GraphQLList}});Object.defineProperty(j,"GraphQLNonNull",{enumerable:!0,get:function(){return ge.GraphQLNonNull}});Object.defineProperty(j,"GraphQLObjectType",{enumerable:!0,get:function(){return ge.GraphQLObjectType}});Object.defineProperty(j,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ge.GraphQLOneOfDirective}});Object.defineProperty(j,"GraphQLScalarType",{enumerable:!0,get:function(){return ge.GraphQLScalarType}});Object.defineProperty(j,"GraphQLSchema",{enumerable:!0,get:function(){return ge.GraphQLSchema}});Object.defineProperty(j,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ge.GraphQLSkipDirective}});Object.defineProperty(j,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ge.GraphQLSpecifiedByDirective}});Object.defineProperty(j,"GraphQLString",{enumerable:!0,get:function(){return ge.GraphQLString}});Object.defineProperty(j,"GraphQLUnionType",{enumerable:!0,get:function(){return ge.GraphQLUnionType}});Object.defineProperty(j,"Kind",{enumerable:!0,get:function(){return nr.Kind}});Object.defineProperty(j,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return _t.KnownArgumentNamesRule}});Object.defineProperty(j,"KnownDirectivesRule",{enumerable:!0,get:function(){return _t.KnownDirectivesRule}});Object.defineProperty(j,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return _t.KnownFragmentNamesRule}});Object.defineProperty(j,"KnownTypeNamesRule",{enumerable:!0,get:function(){return _t.KnownTypeNamesRule}});Object.defineProperty(j,"Lexer",{enumerable:!0,get:function(){return nr.Lexer}});Object.defineProperty(j,"Location",{enumerable:!0,get:function(){return nr.Location}});Object.defineProperty(j,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return _t.LoneAnonymousOperationRule}});Object.defineProperty(j,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return _t.LoneSchemaDefinitionRule}});Object.defineProperty(j,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return _t.MaxIntrospectionDepthRule}});Object.defineProperty(j,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return _t.NoDeprecatedCustomRule}});Object.defineProperty(j,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return _t.NoFragmentCyclesRule}});Object.defineProperty(j,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return _t.NoSchemaIntrospectionCustomRule}});Object.defineProperty(j,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return _t.NoUndefinedVariablesRule}});Object.defineProperty(j,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return _t.NoUnusedFragmentsRule}});Object.defineProperty(j,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return _t.NoUnusedVariablesRule}});Object.defineProperty(j,"OperationTypeNode",{enumerable:!0,get:function(){return nr.OperationTypeNode}});Object.defineProperty(j,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return _t.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(j,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return _t.PossibleFragmentSpreadsRule}});Object.defineProperty(j,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return _t.PossibleTypeExtensionsRule}});Object.defineProperty(j,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return _t.ProvidedRequiredArgumentsRule}});Object.defineProperty(j,"ScalarLeafsRule",{enumerable:!0,get:function(){return _t.ScalarLeafsRule}});Object.defineProperty(j,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ge.SchemaMetaFieldDef}});Object.defineProperty(j,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return _t.SingleFieldSubscriptionsRule}});Object.defineProperty(j,"Source",{enumerable:!0,get:function(){return nr.Source}});Object.defineProperty(j,"Token",{enumerable:!0,get:function(){return nr.Token}});Object.defineProperty(j,"TokenKind",{enumerable:!0,get:function(){return nr.TokenKind}});Object.defineProperty(j,"TypeInfo",{enumerable:!0,get:function(){return ir.TypeInfo}});Object.defineProperty(j,"TypeKind",{enumerable:!0,get:function(){return ge.TypeKind}});Object.defineProperty(j,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeMetaFieldDef}});Object.defineProperty(j,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ge.TypeNameMetaFieldDef}});Object.defineProperty(j,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(j,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return _t.UniqueArgumentNamesRule}});Object.defineProperty(j,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return _t.UniqueDirectiveNamesRule}});Object.defineProperty(j,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return _t.UniqueDirectivesPerLocationRule}});Object.defineProperty(j,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return _t.UniqueEnumValueNamesRule}});Object.defineProperty(j,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return _t.UniqueFieldDefinitionNamesRule}});Object.defineProperty(j,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return _t.UniqueFragmentNamesRule}});Object.defineProperty(j,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return _t.UniqueInputFieldNamesRule}});Object.defineProperty(j,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return _t.UniqueOperationNamesRule}});Object.defineProperty(j,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return _t.UniqueOperationTypesRule}});Object.defineProperty(j,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return _t.UniqueTypeNamesRule}});Object.defineProperty(j,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return _t.UniqueVariableNamesRule}});Object.defineProperty(j,"ValidationContext",{enumerable:!0,get:function(){return _t.ValidationContext}});Object.defineProperty(j,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return _t.ValuesOfCorrectTypeRule}});Object.defineProperty(j,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return _t.VariablesAreInputTypesRule}});Object.defineProperty(j,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return _t.VariablesInAllowedPositionRule}});Object.defineProperty(j,"__Directive",{enumerable:!0,get:function(){return ge.__Directive}});Object.defineProperty(j,"__DirectiveLocation",{enumerable:!0,get:function(){return ge.__DirectiveLocation}});Object.defineProperty(j,"__EnumValue",{enumerable:!0,get:function(){return ge.__EnumValue}});Object.defineProperty(j,"__Field",{enumerable:!0,get:function(){return ge.__Field}});Object.defineProperty(j,"__InputValue",{enumerable:!0,get:function(){return ge.__InputValue}});Object.defineProperty(j,"__Schema",{enumerable:!0,get:function(){return ge.__Schema}});Object.defineProperty(j,"__Type",{enumerable:!0,get:function(){return ge.__Type}});Object.defineProperty(j,"__TypeKind",{enumerable:!0,get:function(){return ge.__TypeKind}});Object.defineProperty(j,"assertAbstractType",{enumerable:!0,get:function(){return ge.assertAbstractType}});Object.defineProperty(j,"assertCompositeType",{enumerable:!0,get:function(){return ge.assertCompositeType}});Object.defineProperty(j,"assertDirective",{enumerable:!0,get:function(){return ge.assertDirective}});Object.defineProperty(j,"assertEnumType",{enumerable:!0,get:function(){return ge.assertEnumType}});Object.defineProperty(j,"assertEnumValueName",{enumerable:!0,get:function(){return ge.assertEnumValueName}});Object.defineProperty(j,"assertInputObjectType",{enumerable:!0,get:function(){return ge.assertInputObjectType}});Object.defineProperty(j,"assertInputType",{enumerable:!0,get:function(){return ge.assertInputType}});Object.defineProperty(j,"assertInterfaceType",{enumerable:!0,get:function(){return ge.assertInterfaceType}});Object.defineProperty(j,"assertLeafType",{enumerable:!0,get:function(){return ge.assertLeafType}});Object.defineProperty(j,"assertListType",{enumerable:!0,get:function(){return ge.assertListType}});Object.defineProperty(j,"assertName",{enumerable:!0,get:function(){return ge.assertName}});Object.defineProperty(j,"assertNamedType",{enumerable:!0,get:function(){return ge.assertNamedType}});Object.defineProperty(j,"assertNonNullType",{enumerable:!0,get:function(){return ge.assertNonNullType}});Object.defineProperty(j,"assertNullableType",{enumerable:!0,get:function(){return ge.assertNullableType}});Object.defineProperty(j,"assertObjectType",{enumerable:!0,get:function(){return ge.assertObjectType}});Object.defineProperty(j,"assertOutputType",{enumerable:!0,get:function(){return ge.assertOutputType}});Object.defineProperty(j,"assertScalarType",{enumerable:!0,get:function(){return ge.assertScalarType}});Object.defineProperty(j,"assertSchema",{enumerable:!0,get:function(){return ge.assertSchema}});Object.defineProperty(j,"assertType",{enumerable:!0,get:function(){return ge.assertType}});Object.defineProperty(j,"assertUnionType",{enumerable:!0,get:function(){return ge.assertUnionType}});Object.defineProperty(j,"assertValidName",{enumerable:!0,get:function(){return ir.assertValidName}});Object.defineProperty(j,"assertValidSchema",{enumerable:!0,get:function(){return ge.assertValidSchema}});Object.defineProperty(j,"assertWrappingType",{enumerable:!0,get:function(){return ge.assertWrappingType}});Object.defineProperty(j,"astFromValue",{enumerable:!0,get:function(){return ir.astFromValue}});Object.defineProperty(j,"buildASTSchema",{enumerable:!0,get:function(){return ir.buildASTSchema}});Object.defineProperty(j,"buildClientSchema",{enumerable:!0,get:function(){return ir.buildClientSchema}});Object.defineProperty(j,"buildSchema",{enumerable:!0,get:function(){return ir.buildSchema}});Object.defineProperty(j,"coerceInputValue",{enumerable:!0,get:function(){return ir.coerceInputValue}});Object.defineProperty(j,"concatAST",{enumerable:!0,get:function(){return ir.concatAST}});Object.defineProperty(j,"createSourceEventStream",{enumerable:!0,get:function(){return jo.createSourceEventStream}});Object.defineProperty(j,"defaultFieldResolver",{enumerable:!0,get:function(){return jo.defaultFieldResolver}});Object.defineProperty(j,"defaultTypeResolver",{enumerable:!0,get:function(){return jo.defaultTypeResolver}});Object.defineProperty(j,"doTypesOverlap",{enumerable:!0,get:function(){return ir.doTypesOverlap}});Object.defineProperty(j,"execute",{enumerable:!0,get:function(){return jo.execute}});Object.defineProperty(j,"executeSync",{enumerable:!0,get:function(){return jo.executeSync}});Object.defineProperty(j,"extendSchema",{enumerable:!0,get:function(){return ir.extendSchema}});Object.defineProperty(j,"findBreakingChanges",{enumerable:!0,get:function(){return ir.findBreakingChanges}});Object.defineProperty(j,"findDangerousChanges",{enumerable:!0,get:function(){return ir.findDangerousChanges}});Object.defineProperty(j,"formatError",{enumerable:!0,get:function(){return Hh.formatError}});Object.defineProperty(j,"getArgumentValues",{enumerable:!0,get:function(){return jo.getArgumentValues}});Object.defineProperty(j,"getDirectiveValues",{enumerable:!0,get:function(){return jo.getDirectiveValues}});Object.defineProperty(j,"getEnterLeaveForKind",{enumerable:!0,get:function(){return nr.getEnterLeaveForKind}});Object.defineProperty(j,"getIntrospectionQuery",{enumerable:!0,get:function(){return ir.getIntrospectionQuery}});Object.defineProperty(j,"getLocation",{enumerable:!0,get:function(){return nr.getLocation}});Object.defineProperty(j,"getNamedType",{enumerable:!0,get:function(){return ge.getNamedType}});Object.defineProperty(j,"getNullableType",{enumerable:!0,get:function(){return ge.getNullableType}});Object.defineProperty(j,"getOperationAST",{enumerable:!0,get:function(){return ir.getOperationAST}});Object.defineProperty(j,"getOperationRootType",{enumerable:!0,get:function(){return ir.getOperationRootType}});Object.defineProperty(j,"getVariableValues",{enumerable:!0,get:function(){return jo.getVariableValues}});Object.defineProperty(j,"getVisitFn",{enumerable:!0,get:function(){return nr.getVisitFn}});Object.defineProperty(j,"graphql",{enumerable:!0,get:function(){return ZH.graphql}});Object.defineProperty(j,"graphqlSync",{enumerable:!0,get:function(){return ZH.graphqlSync}});Object.defineProperty(j,"introspectionFromSchema",{enumerable:!0,get:function(){return ir.introspectionFromSchema}});Object.defineProperty(j,"introspectionTypes",{enumerable:!0,get:function(){return ge.introspectionTypes}});Object.defineProperty(j,"isAbstractType",{enumerable:!0,get:function(){return ge.isAbstractType}});Object.defineProperty(j,"isCompositeType",{enumerable:!0,get:function(){return ge.isCompositeType}});Object.defineProperty(j,"isConstValueNode",{enumerable:!0,get:function(){return nr.isConstValueNode}});Object.defineProperty(j,"isDefinitionNode",{enumerable:!0,get:function(){return nr.isDefinitionNode}});Object.defineProperty(j,"isDirective",{enumerable:!0,get:function(){return ge.isDirective}});Object.defineProperty(j,"isEnumType",{enumerable:!0,get:function(){return ge.isEnumType}});Object.defineProperty(j,"isEqualType",{enumerable:!0,get:function(){return ir.isEqualType}});Object.defineProperty(j,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return nr.isExecutableDefinitionNode}});Object.defineProperty(j,"isInputObjectType",{enumerable:!0,get:function(){return ge.isInputObjectType}});Object.defineProperty(j,"isInputType",{enumerable:!0,get:function(){return ge.isInputType}});Object.defineProperty(j,"isInterfaceType",{enumerable:!0,get:function(){return ge.isInterfaceType}});Object.defineProperty(j,"isIntrospectionType",{enumerable:!0,get:function(){return ge.isIntrospectionType}});Object.defineProperty(j,"isLeafType",{enumerable:!0,get:function(){return ge.isLeafType}});Object.defineProperty(j,"isListType",{enumerable:!0,get:function(){return ge.isListType}});Object.defineProperty(j,"isNamedType",{enumerable:!0,get:function(){return ge.isNamedType}});Object.defineProperty(j,"isNonNullType",{enumerable:!0,get:function(){return ge.isNonNullType}});Object.defineProperty(j,"isNullableType",{enumerable:!0,get:function(){return ge.isNullableType}});Object.defineProperty(j,"isObjectType",{enumerable:!0,get:function(){return ge.isObjectType}});Object.defineProperty(j,"isOutputType",{enumerable:!0,get:function(){return ge.isOutputType}});Object.defineProperty(j,"isRequiredArgument",{enumerable:!0,get:function(){return ge.isRequiredArgument}});Object.defineProperty(j,"isRequiredInputField",{enumerable:!0,get:function(){return ge.isRequiredInputField}});Object.defineProperty(j,"isScalarType",{enumerable:!0,get:function(){return ge.isScalarType}});Object.defineProperty(j,"isSchema",{enumerable:!0,get:function(){return ge.isSchema}});Object.defineProperty(j,"isSelectionNode",{enumerable:!0,get:function(){return nr.isSelectionNode}});Object.defineProperty(j,"isSpecifiedDirective",{enumerable:!0,get:function(){return ge.isSpecifiedDirective}});Object.defineProperty(j,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ge.isSpecifiedScalarType}});Object.defineProperty(j,"isType",{enumerable:!0,get:function(){return ge.isType}});Object.defineProperty(j,"isTypeDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeDefinitionNode}});Object.defineProperty(j,"isTypeExtensionNode",{enumerable:!0,get:function(){return nr.isTypeExtensionNode}});Object.defineProperty(j,"isTypeNode",{enumerable:!0,get:function(){return nr.isTypeNode}});Object.defineProperty(j,"isTypeSubTypeOf",{enumerable:!0,get:function(){return ir.isTypeSubTypeOf}});Object.defineProperty(j,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return nr.isTypeSystemDefinitionNode}});Object.defineProperty(j,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return nr.isTypeSystemExtensionNode}});Object.defineProperty(j,"isUnionType",{enumerable:!0,get:function(){return ge.isUnionType}});Object.defineProperty(j,"isValidNameError",{enumerable:!0,get:function(){return ir.isValidNameError}});Object.defineProperty(j,"isValueNode",{enumerable:!0,get:function(){return nr.isValueNode}});Object.defineProperty(j,"isWrappingType",{enumerable:!0,get:function(){return ge.isWrappingType}});Object.defineProperty(j,"lexicographicSortSchema",{enumerable:!0,get:function(){return ir.lexicographicSortSchema}});Object.defineProperty(j,"locatedError",{enumerable:!0,get:function(){return Hh.locatedError}});Object.defineProperty(j,"parse",{enumerable:!0,get:function(){return nr.parse}});Object.defineProperty(j,"parseConstValue",{enumerable:!0,get:function(){return nr.parseConstValue}});Object.defineProperty(j,"parseType",{enumerable:!0,get:function(){return nr.parseType}});Object.defineProperty(j,"parseValue",{enumerable:!0,get:function(){return nr.parseValue}});Object.defineProperty(j,"print",{enumerable:!0,get:function(){return nr.print}});Object.defineProperty(j,"printError",{enumerable:!0,get:function(){return Hh.printError}});Object.defineProperty(j,"printIntrospectionSchema",{enumerable:!0,get:function(){return ir.printIntrospectionSchema}});Object.defineProperty(j,"printLocation",{enumerable:!0,get:function(){return nr.printLocation}});Object.defineProperty(j,"printSchema",{enumerable:!0,get:function(){return ir.printSchema}});Object.defineProperty(j,"printSourceLocation",{enumerable:!0,get:function(){return nr.printSourceLocation}});Object.defineProperty(j,"printType",{enumerable:!0,get:function(){return ir.printType}});Object.defineProperty(j,"recommendedRules",{enumerable:!0,get:function(){return _t.recommendedRules}});Object.defineProperty(j,"resolveObjMapThunk",{enumerable:!0,get:function(){return ge.resolveObjMapThunk}});Object.defineProperty(j,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ge.resolveReadonlyArrayThunk}});Object.defineProperty(j,"responsePathAsArray",{enumerable:!0,get:function(){return jo.responsePathAsArray}});Object.defineProperty(j,"separateOperations",{enumerable:!0,get:function(){return ir.separateOperations}});Object.defineProperty(j,"specifiedDirectives",{enumerable:!0,get:function(){return ge.specifiedDirectives}});Object.defineProperty(j,"specifiedRules",{enumerable:!0,get:function(){return _t.specifiedRules}});Object.defineProperty(j,"specifiedScalarTypes",{enumerable:!0,get:function(){return ge.specifiedScalarTypes}});Object.defineProperty(j,"stripIgnoredCharacters",{enumerable:!0,get:function(){return ir.stripIgnoredCharacters}});Object.defineProperty(j,"subscribe",{enumerable:!0,get:function(){return jo.subscribe}});Object.defineProperty(j,"syntaxError",{enumerable:!0,get:function(){return Hh.syntaxError}});Object.defineProperty(j,"typeFromAST",{enumerable:!0,get:function(){return ir.typeFromAST}});Object.defineProperty(j,"validate",{enumerable:!0,get:function(){return _t.validate}});Object.defineProperty(j,"validateSchema",{enumerable:!0,get:function(){return ge.validateSchema}});Object.defineProperty(j,"valueFromAST",{enumerable:!0,get:function(){return ir.valueFromAST}});Object.defineProperty(j,"valueFromASTUntyped",{enumerable:!0,get:function(){return ir.valueFromASTUntyped}});Object.defineProperty(j,"version",{enumerable:!0,get:function(){return XH.version}});Object.defineProperty(j,"versionInfo",{enumerable:!0,get:function(){return XH.versionInfo}});Object.defineProperty(j,"visit",{enumerable:!0,get:function(){return nr.visit}});Object.defineProperty(j,"visitInParallel",{enumerable:!0,get:function(){return nr.visitInParallel}});Object.defineProperty(j,"visitWithTypeInfo",{enumerable:!0,get:function(){return ir.visitWithTypeInfo}});var XH=YQ(),ZH=jz(),ge=$z(),nr=Qz(),jo=eH(),_t=iH(),Hh=aH(),ir=WH()});var xr=O(w=>{"use strict";d();p();f();Object.defineProperty(w,"__esModule",{value:!0});w.EXTENSIONS=w.EXTENDS=w.EXTERNAL=w.EXECUTION=w.ENUM_VALUE_UPPER=w.ENUM_VALUE=w.ENUM_UPPER=w.ENUM=w.ENTITY_UNION=w.ENTITIES_FIELD=w.ENTITIES=w.EDFS_REDIS_SUBSCRIBE=w.EDFS_REDIS_PUBLISH=w.EDFS_NATS_STREAM_CONFIGURATION=w.EDFS_PUBLISH_RESULT=w.EDFS_NATS_SUBSCRIBE=w.EDFS_NATS_REQUEST=w.EDFS_NATS_PUBLISH=w.EDFS_KAFKA_SUBSCRIBE=w.EDFS_KAFKA_PUBLISH=w.DIRECTIVE_DEFINITION=w.DESCRIPTION_OVERRIDE=w.DEPRECATED_DEFAULT_ARGUMENT_VALUE=w.DEPRECATED=w.DEFAULT_SUBSCRIPTION=w.DEFAULT_QUERY=w.DEFAULT_MUTATION=w.DEFAULT_EDFS_PROVIDER_ID=w.DEFAULT=w.COST=w.CONTEXT=w.CONNECT_FIELD_RESOLVER=w.CONSUMER_NAME=w.CONSUMER_INACTIVE_THRESHOLD=w.CONFIGURE_CHILD_DESCRIPTIONS=w.CONFIGURE_DESCRIPTION=w.CONDITION=w.COMPOSE_DIRECTIVE=w.CHANNELS=w.CHANNEL=w.BYPASS_IF_VALUES_NULL=w.BOOLEAN_SCALAR=w.BOOLEAN=w.ARGUMENT_DEFINITION_UPPER=w.AUTHENTICATED=w.ARGUMENT=w.ANY_SCALAR=w.AND_UPPER=w.ASSUMED_SIZE=w.AS=void 0;w.NAME=w.NOT_APPLICABLE=w.PROVIDER_TYPE_REDIS=w.PROVIDER_TYPE_NATS=w.PROVIDER_TYPE_KAFKA=w.PROPAGATE=w.MUTATION_UPPER=w.MUTATION=w.NUMBER=w.LITERAL_PERIOD=w.LITERAL_NEW_LINE=w.LITERAL_SPACE=w.LITERAL_AT=w.LIST=w.LINK_PURPOSE=w.LINK_IMPORT=w.LIST_SIZE=w.LINK=w.LEVELS=w.LEFT_PARENTHESIS=w.KEY=w.INTERFACE_OBJECT=w.INTERFACE_UPPER=w.INTERFACE=w.INT_SCALAR=w.INPUT_VALUE=w.INPUT_OBJECT_UPPER=w.INPUT_OBJECT=w.INPUT_FIELD_DEFINITION_UPPER=w.INPUT_FIELD=w.INPUT=w.INLINE_FRAGMENT_UPPER=w.INLINE_FRAGMENT=w.INACCESSIBLE=w.IN_UPPER=w.IMPORT=w.ID_SCALAR=w.HYPHEN_JOIN=w.FROM=w.FRAGMENT_SPREAD_UPPER=w.FRAGMENT_DEFINITION_UPPER=w.FOR=w.FLOAT_SCALAR=w.FIRST_ORDINAL=w.FIELD_DEFINITION_UPPER=w.FIELDS=w.FIELD_SET_SCALAR=w.FIELD_UPPER=w.FIELD_PATH=w.FIELD=void 0;w.SUBSCRIPTION=w.SUBJECTS=w.SUBJECT=w.STRING_SCALAR=w.STRING=w.STREAM_NAME=w.STREAM_CONFIGURATION=w.SPECIFIED_BY=w.SLICING_ARGUMENTS=w.SIZED_FIELDS=w.SHAREABLE=w.SERVICE_FIELD=w.SERVICE_OBJECT=w.SEMANTIC_NON_NULL=w.SELECTION_REPRESENTATION=w.SECURITY=w.SCOPE_SCALAR=w.SCOPES=w.SCHEMA_UPPER=w.SCHEMA=w.SCALAR_UPPER=w.SCALAR=w.RESOLVABLE=w.REQUIRES_SCOPES=w.REQUIRES=w.REQUIRE_ONE_SLICING_ARGUMENT=w.REQUIRE_FETCH_REASONS=w.REQUEST=w.REASON=w.QUOTATION_JOIN=w.QUERY_UPPER=w.QUERY=w.PUBLISH=w.PROVIDES=w.PROVIDER_ID=w.PARENT_EXTENSION_DATA_MAP=w.PARENT_DEFINITION_DATA_MAP=w.PARENT_DEFINITION_DATA=w.OVERRIDE=w.OR_UPPER=w.OBJECT_UPPER=w.OBJECT=w.OPERATION_TO_DEFAULT=w.ONE_OF=w.NULL=w.NOT_UPPER=w.NON_NULLABLE_STRING=w.NON_NULLABLE_INT=w.NON_NULLABLE_BOOLEAN=w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=void 0;w.NON_REPEATABLE_FEDERATED_DIRECTIVES=w.INTERFACE_NODE_KINDS=w.OUTPUT_NODE_KINDS=w.INPUT_NODE_KINDS=w.IGNORED_FIELDS=w.INHERITABLE_DIRECTIVE_NAMES=w.PERSISTED_CLIENT_DIRECTIVES=w.AUTHORIZATION_DIRECTIVES=w.ROOT_TYPE_NAMES=w.EXECUTABLE_DIRECTIVE_LOCATIONS=w.WEIGHT=w.VARIABLE_DEFINITION_UPPER=w.VALUES=w.URL_LOWER=w.UNION_UPPER=w.UNION=w.TYPENAME=w.TOPICS=w.TOPIC=w.TAG=w.SUCCESS=w.SUBSCRIPTION_UPPER=w.SUBSCRIBE=w.SUBSCRIPTION_FILTER_VALUE=w.SUBSCRIPTION_FILTER_CONDITION=w.SUBSCRIPTION_FILTER=w.SUBSCRIPTION_FIELD_CONDITION=void 0;var Vo=_e();w.AS="as";w.ASSUMED_SIZE="assumedSize";w.AND_UPPER="AND";w.ANY_SCALAR="_Any";w.ARGUMENT="argument";w.AUTHENTICATED="authenticated";w.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";w.BOOLEAN="boolean";w.BOOLEAN_SCALAR="Boolean";w.BYPASS_IF_VALUES_NULL="bypassIfValuesNull";w.CHANNEL="channel";w.CHANNELS="channels";w.COMPOSE_DIRECTIVE="composeDirective";w.CONDITION="condition";w.CONFIGURE_DESCRIPTION="openfed__configureDescription";w.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";w.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";w.CONSUMER_NAME="consumerName";w.CONNECT_FIELD_RESOLVER="connect__fieldResolver";w.CONTEXT="context";w.COST="cost";w.DEFAULT="default";w.DEFAULT_EDFS_PROVIDER_ID="default";w.DEFAULT_MUTATION="Mutation";w.DEFAULT_QUERY="Query";w.DEFAULT_SUBSCRIPTION="Subscription";w.DEPRECATED="deprecated";w.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";w.DESCRIPTION_OVERRIDE="descriptionOverride";w.DIRECTIVE_DEFINITION="directive definition";w.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";w.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";w.EDFS_NATS_PUBLISH="edfs__natsPublish";w.EDFS_NATS_REQUEST="edfs__natsRequest";w.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";w.EDFS_PUBLISH_RESULT="edfs__PublishResult";w.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";w.EDFS_REDIS_PUBLISH="edfs__redisPublish";w.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";w.ENTITIES="entities";w.ENTITIES_FIELD="_entities";w.ENTITY_UNION="_Entity";w.ENUM="Enum";w.ENUM_UPPER="ENUM";w.ENUM_VALUE="Enum Value";w.ENUM_VALUE_UPPER="ENUM_VALUE";w.EXECUTION="EXECUTION";w.EXTERNAL="external";w.EXTENDS="extends";w.EXTENSIONS="extensions";w.FIELD="field";w.FIELD_PATH="fieldPath";w.FIELD_UPPER="FIELD";w.FIELD_SET_SCALAR="openfed__FieldSet";w.FIELDS="fields";w.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";w.FIRST_ORDINAL="1st";w.FLOAT_SCALAR="Float";w.FOR="for";w.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";w.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";w.FROM="from";w.HYPHEN_JOIN=` -`;w.ID_SCALAR="ID";w.IMPORT="import";w.IN_UPPER="IN";w.INACCESSIBLE="inaccessible";w.INLINE_FRAGMENT="inlineFragment";w.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";w.INPUT="Input";w.INPUT_FIELD="Input field";w.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";w.INPUT_OBJECT="Input Object";w.INPUT_OBJECT_UPPER="INPUT_OBJECT";w.INPUT_VALUE="Input Value";w.INT_SCALAR="Int";w.INTERFACE="Interface";w.INTERFACE_UPPER="INTERFACE";w.INTERFACE_OBJECT="interfaceObject";w.KEY="key";w.LEFT_PARENTHESIS="(";w.LEVELS="levels";w.LINK="link";w.LIST_SIZE="listSize";w.LINK_IMPORT="link__Import";w.LINK_PURPOSE="link__Purpose";w.LIST="list";w.LITERAL_AT="@";w.LITERAL_SPACE=" ";w.LITERAL_NEW_LINE=` -`;w.LITERAL_PERIOD=".";w.NUMBER="number";w.MUTATION="Mutation";w.MUTATION_UPPER="MUTATION";w.PROPAGATE="propagate";w.PROVIDER_TYPE_KAFKA="kafka";w.PROVIDER_TYPE_NATS="nats";w.PROVIDER_TYPE_REDIS="redis";w.NOT_APPLICABLE="N/A";w.NAME="name";w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";w.NON_NULLABLE_BOOLEAN="Boolean!";w.NON_NULLABLE_INT="Int!";w.NON_NULLABLE_STRING="String!";w.NOT_UPPER="NOT";w.NULL="Null";w.ONE_OF="oneOf";w.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";w.OBJECT="Object";w.OBJECT_UPPER="OBJECT";w.OR_UPPER="OR";w.OVERRIDE="override";w.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";w.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";w.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";w.PROVIDER_ID="providerId";w.PROVIDES="provides";w.PUBLISH="publish";w.QUERY="Query";w.QUERY_UPPER="QUERY";w.QUOTATION_JOIN='", "';w.REASON="reason";w.REQUEST="request";w.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";w.REQUIRE_ONE_SLICING_ARGUMENT="requireOneSlicingArgument";w.REQUIRES="requires";w.REQUIRES_SCOPES="requiresScopes";w.RESOLVABLE="resolvable";w.SCALAR="Scalar";w.SCALAR_UPPER="SCALAR";w.SCHEMA="schema";w.SCHEMA_UPPER="SCHEMA";w.SCOPES="scopes";w.SCOPE_SCALAR="openfed__Scope";w.SECURITY="SECURITY";w.SELECTION_REPRESENTATION=" { ... }";w.SEMANTIC_NON_NULL="semanticNonNull";w.SERVICE_OBJECT="_Service";w.SERVICE_FIELD="_service";w.SHAREABLE="shareable";w.SIZED_FIELDS="sizedFields";w.SLICING_ARGUMENTS="slicingArguments";w.SPECIFIED_BY="specifiedBy";w.STREAM_CONFIGURATION="streamConfiguration";w.STREAM_NAME="streamName";w.STRING="string";w.STRING_SCALAR="String";w.SUBJECT="subject";w.SUBJECTS="subjects";w.SUBSCRIPTION="Subscription";w.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";w.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";w.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";w.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";w.SUBSCRIBE="subscribe";w.SUBSCRIPTION_UPPER="SUBSCRIPTION";w.SUCCESS="success";w.TAG="tag";w.TOPIC="topic";w.TOPICS="topics";w.TYPENAME="__typename";w.UNION="Union";w.UNION_UPPER="UNION";w.URL_LOWER="url";w.VALUES="values";w.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";w.WEIGHT="weight";w.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([w.FIELD_UPPER,w.FRAGMENT_DEFINITION_UPPER,w.FRAGMENT_SPREAD_UPPER,w.INLINE_FRAGMENT_UPPER,w.MUTATION_UPPER,w.QUERY_UPPER,w.SUBSCRIPTION_UPPER]);w.ROOT_TYPE_NAMES=new Set([w.MUTATION,w.QUERY,w.SUBSCRIPTION]);w.AUTHORIZATION_DIRECTIVES=new Set([w.AUTHENTICATED,w.REQUIRES_SCOPES]);w.PERSISTED_CLIENT_DIRECTIVES=new Set([w.DEPRECATED,w.ONE_OF,w.SEMANTIC_NON_NULL]);w.INHERITABLE_DIRECTIVE_NAMES=new Set([w.EXTERNAL,w.REQUIRE_FETCH_REASONS,w.SHAREABLE]);w.IGNORED_FIELDS=new Set([w.ENTITIES_FIELD,w.SERVICE_FIELD]);w.INPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INPUT_OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION]);w.OUTPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION,Vo.Kind.UNION_TYPE_DEFINITION]);w.INTERFACE_NODE_KINDS=new Set([Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_EXTENSION]);w.NON_REPEATABLE_FEDERATED_DIRECTIVES=new Set([w.INACCESSIBLE,w.ONE_OF,w.SEMANTIC_NON_NULL])});var kn=O(yn=>{"use strict";d();p();f();Object.defineProperty(yn,"__esModule",{value:!0});yn.operationTypeNodeToDefaultType=void 0;yn.isObjectLikeNodeEntity=vRe;yn.isNodeInterfaceObject=_Re;yn.stringToNameNode=Wg;yn.stringArrayToNameNodeArray=SRe;yn.setToNameNodeArray=ORe;yn.stringToNamedTypeNode=e3;yn.setToNamedTypeNodeArray=DRe;yn.nodeKindToDirectiveLocation=bRe;yn.isKindAbstract=ARe;yn.extractExecutableDirectiveLocations=RRe;yn.formatDescription=wRe;yn.lexicographicallySortArgumentNodes=t3;yn.lexicographicallySortSelectionSetNode=Hg;yn.lexicographicallySortDocumentNode=PRe;yn.parse=r3;yn.safeParse=FRe;var Ht=ve(),Mr=xr();function vRe(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.KEY)return!0;return!1}function _Re(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.INTERFACE_OBJECT)return!0;return!1}function Wg(e){return{kind:Ht.Kind.NAME,value:e}}function SRe(e){let t=[];for(let r of e)t.push(Wg(r));return t}function ORe(e){let t=[];for(let r of e)t.push(Wg(r));return t}function e3(e){return{kind:Ht.Kind.NAMED_TYPE,name:Wg(e)}}function DRe(e){let t=[];for(let r of e)t.push(e3(r));return t}function bRe(e){switch(e){case Ht.Kind.ARGUMENT:return Mr.ARGUMENT_DEFINITION_UPPER;case Ht.Kind.ENUM_TYPE_DEFINITION:case Ht.Kind.ENUM_TYPE_EXTENSION:return Mr.ENUM_UPPER;case Ht.Kind.ENUM_VALUE_DEFINITION:return Mr.ENUM_VALUE_UPPER;case Ht.Kind.FIELD_DEFINITION:return Mr.FIELD_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_DEFINITION:return Mr.FRAGMENT_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_SPREAD:return Mr.FRAGMENT_SPREAD_UPPER;case Ht.Kind.INLINE_FRAGMENT:return Mr.INLINE_FRAGMENT_UPPER;case Ht.Kind.INPUT_VALUE_DEFINITION:return Mr.INPUT_FIELD_DEFINITION_UPPER;case Ht.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ht.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Mr.INPUT_OBJECT_UPPER;case Ht.Kind.INTERFACE_TYPE_DEFINITION:case Ht.Kind.INTERFACE_TYPE_EXTENSION:return Mr.INTERFACE_UPPER;case Ht.Kind.OBJECT_TYPE_DEFINITION:case Ht.Kind.OBJECT_TYPE_EXTENSION:return Mr.OBJECT_UPPER;case Ht.Kind.SCALAR_TYPE_DEFINITION:case Ht.Kind.SCALAR_TYPE_EXTENSION:return Mr.SCALAR_UPPER;case Ht.Kind.SCHEMA_DEFINITION:case Ht.Kind.SCHEMA_EXTENSION:return Mr.SCHEMA_UPPER;case Ht.Kind.UNION_TYPE_DEFINITION:case Ht.Kind.UNION_TYPE_EXTENSION:return Mr.UNION_UPPER;default:return e}}yn.operationTypeNodeToDefaultType=new Map([[Ht.OperationTypeNode.MUTATION,Mr.MUTATION],[Ht.OperationTypeNode.QUERY,Mr.QUERY],[Ht.OperationTypeNode.SUBSCRIPTION,Mr.SUBSCRIPTION]]);function ARe(e){return e===Ht.Kind.INTERFACE_TYPE_DEFINITION||e===Ht.Kind.UNION_TYPE_DEFINITION}function RRe(e,t){for(let r of e){let n=r.value;Mr.EXECUTABLE_DIRECTIVE_LOCATIONS.has(n)&&t.add(n)}return t}function wRe(e){if(!e)return e;let t=e.value;if(e.block){let r=t.split(` +`;w.LITERAL_PERIOD=".";w.NUMBER="number";w.MUTATION="Mutation";w.MUTATION_UPPER="MUTATION";w.PROPAGATE="propagate";w.PROVIDER_TYPE_KAFKA="kafka";w.PROVIDER_TYPE_NATS="nats";w.PROVIDER_TYPE_REDIS="redis";w.NOT_APPLICABLE="N/A";w.NAME="name";w.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";w.NON_NULLABLE_BOOLEAN="Boolean!";w.NON_NULLABLE_INT="Int!";w.NON_NULLABLE_STRING="String!";w.NOT_UPPER="NOT";w.NULL="Null";w.ONE_OF="oneOf";w.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";w.OBJECT="Object";w.OBJECT_UPPER="OBJECT";w.OR_UPPER="OR";w.OVERRIDE="override";w.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";w.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";w.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";w.PROVIDER_ID="providerId";w.PROVIDES="provides";w.PUBLISH="publish";w.QUERY="Query";w.QUERY_UPPER="QUERY";w.QUOTATION_JOIN='", "';w.REASON="reason";w.REQUEST="request";w.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";w.REQUIRE_ONE_SLICING_ARGUMENT="requireOneSlicingArgument";w.REQUIRES="requires";w.REQUIRES_SCOPES="requiresScopes";w.RESOLVABLE="resolvable";w.SCALAR="Scalar";w.SCALAR_UPPER="SCALAR";w.SCHEMA="schema";w.SCHEMA_UPPER="SCHEMA";w.SCOPES="scopes";w.SCOPE_SCALAR="openfed__Scope";w.SECURITY="SECURITY";w.SELECTION_REPRESENTATION=" { ... }";w.SEMANTIC_NON_NULL="semanticNonNull";w.SERVICE_OBJECT="_Service";w.SERVICE_FIELD="_service";w.SHAREABLE="shareable";w.SIZED_FIELDS="sizedFields";w.SLICING_ARGUMENTS="slicingArguments";w.SPECIFIED_BY="specifiedBy";w.STREAM_CONFIGURATION="streamConfiguration";w.STREAM_NAME="streamName";w.STRING="string";w.STRING_SCALAR="String";w.SUBJECT="subject";w.SUBJECTS="subjects";w.SUBSCRIPTION="Subscription";w.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";w.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";w.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";w.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";w.SUBSCRIBE="subscribe";w.SUBSCRIPTION_UPPER="SUBSCRIPTION";w.SUCCESS="success";w.TAG="tag";w.TOPIC="topic";w.TOPICS="topics";w.TYPENAME="__typename";w.UNION="Union";w.UNION_UPPER="UNION";w.URL_LOWER="url";w.VALUES="values";w.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";w.WEIGHT="weight";w.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([w.FIELD_UPPER,w.FRAGMENT_DEFINITION_UPPER,w.FRAGMENT_SPREAD_UPPER,w.INLINE_FRAGMENT_UPPER,w.MUTATION_UPPER,w.QUERY_UPPER,w.SUBSCRIPTION_UPPER]);w.ROOT_TYPE_NAMES=new Set([w.MUTATION,w.QUERY,w.SUBSCRIPTION]);w.AUTHORIZATION_DIRECTIVES=new Set([w.AUTHENTICATED,w.REQUIRES_SCOPES]);w.PERSISTED_CLIENT_DIRECTIVES=new Set([w.DEPRECATED,w.ONE_OF,w.SEMANTIC_NON_NULL]);w.INHERITABLE_DIRECTIVE_NAMES=new Set([w.EXTERNAL,w.REQUIRE_FETCH_REASONS,w.SHAREABLE]);w.IGNORED_FIELDS=new Set([w.ENTITIES_FIELD,w.SERVICE_FIELD]);w.INPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INPUT_OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION]);w.OUTPUT_NODE_KINDS=new Set([Vo.Kind.ENUM_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.OBJECT_TYPE_DEFINITION,Vo.Kind.SCALAR_TYPE_DEFINITION,Vo.Kind.UNION_TYPE_DEFINITION]);w.INTERFACE_NODE_KINDS=new Set([Vo.Kind.INTERFACE_TYPE_DEFINITION,Vo.Kind.INTERFACE_TYPE_EXTENSION]);w.NON_REPEATABLE_FEDERATED_DIRECTIVES=new Set([w.INACCESSIBLE,w.ONE_OF,w.SEMANTIC_NON_NULL])});var kn=O(yn=>{"use strict";d();p();f();Object.defineProperty(yn,"__esModule",{value:!0});yn.operationTypeNodeToDefaultType=void 0;yn.isObjectLikeNodeEntity=vRe;yn.isNodeInterfaceObject=_Re;yn.stringToNameNode=Wg;yn.stringArrayToNameNodeArray=SRe;yn.setToNameNodeArray=ORe;yn.stringToNamedTypeNode=e3;yn.setToNamedTypeNodeArray=DRe;yn.nodeKindToDirectiveLocation=bRe;yn.isKindAbstract=ARe;yn.extractExecutableDirectiveLocations=RRe;yn.formatDescription=wRe;yn.lexicographicallySortArgumentNodes=t3;yn.lexicographicallySortSelectionSetNode=Hg;yn.lexicographicallySortDocumentNode=PRe;yn.parse=r3;yn.safeParse=FRe;var Ht=_e(),Mr=xr();function vRe(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.KEY)return!0;return!1}function _Re(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let r of e.directives)if(r.name.value===Mr.INTERFACE_OBJECT)return!0;return!1}function Wg(e){return{kind:Ht.Kind.NAME,value:e}}function SRe(e){let t=[];for(let r of e)t.push(Wg(r));return t}function ORe(e){let t=[];for(let r of e)t.push(Wg(r));return t}function e3(e){return{kind:Ht.Kind.NAMED_TYPE,name:Wg(e)}}function DRe(e){let t=[];for(let r of e)t.push(e3(r));return t}function bRe(e){switch(e){case Ht.Kind.ARGUMENT:return Mr.ARGUMENT_DEFINITION_UPPER;case Ht.Kind.ENUM_TYPE_DEFINITION:case Ht.Kind.ENUM_TYPE_EXTENSION:return Mr.ENUM_UPPER;case Ht.Kind.ENUM_VALUE_DEFINITION:return Mr.ENUM_VALUE_UPPER;case Ht.Kind.FIELD_DEFINITION:return Mr.FIELD_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_DEFINITION:return Mr.FRAGMENT_DEFINITION_UPPER;case Ht.Kind.FRAGMENT_SPREAD:return Mr.FRAGMENT_SPREAD_UPPER;case Ht.Kind.INLINE_FRAGMENT:return Mr.INLINE_FRAGMENT_UPPER;case Ht.Kind.INPUT_VALUE_DEFINITION:return Mr.INPUT_FIELD_DEFINITION_UPPER;case Ht.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ht.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Mr.INPUT_OBJECT_UPPER;case Ht.Kind.INTERFACE_TYPE_DEFINITION:case Ht.Kind.INTERFACE_TYPE_EXTENSION:return Mr.INTERFACE_UPPER;case Ht.Kind.OBJECT_TYPE_DEFINITION:case Ht.Kind.OBJECT_TYPE_EXTENSION:return Mr.OBJECT_UPPER;case Ht.Kind.SCALAR_TYPE_DEFINITION:case Ht.Kind.SCALAR_TYPE_EXTENSION:return Mr.SCALAR_UPPER;case Ht.Kind.SCHEMA_DEFINITION:case Ht.Kind.SCHEMA_EXTENSION:return Mr.SCHEMA_UPPER;case Ht.Kind.UNION_TYPE_DEFINITION:case Ht.Kind.UNION_TYPE_EXTENSION:return Mr.UNION_UPPER;default:return e}}yn.operationTypeNodeToDefaultType=new Map([[Ht.OperationTypeNode.MUTATION,Mr.MUTATION],[Ht.OperationTypeNode.QUERY,Mr.QUERY],[Ht.OperationTypeNode.SUBSCRIPTION,Mr.SUBSCRIPTION]]);function ARe(e){return e===Ht.Kind.INTERFACE_TYPE_DEFINITION||e===Ht.Kind.UNION_TYPE_DEFINITION}function RRe(e,t){for(let r of e){let n=r.value;Mr.EXECUTABLE_DIRECTIVE_LOCATIONS.has(n)&&t.add(n)}return t}function wRe(e){if(!e)return e;let t=e.value;if(e.block){let r=t.split(` `);r.length>1&&(t=r.map(n=>n.trimStart()).join(` -`))}return G(q({},e),{value:t,block:!0})}function t3(e){return e.arguments?e.arguments.sort((r,n)=>r.name.value.localeCompare(n.name.value)):e.arguments}function Hg(e){let t=e.selections;return G(q({},e),{selections:t.sort((r,n)=>{var a,o,u,l;return Mr.NAME in r?Mr.NAME in n?r.name.value.localeCompare(n.name.value):-1:Mr.NAME in n?1:((o=(a=r.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(u=n.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(r=>{switch(r.kind){case Ht.Kind.FIELD:return G(q({},r),{arguments:t3(r),selectionSet:r.selectionSet?Hg(r.selectionSet):r.selectionSet});case Ht.Kind.FRAGMENT_SPREAD:return r;case Ht.Kind.INLINE_FRAGMENT:return G(q({},r),{selectionSet:Hg(r.selectionSet)})}})})}function PRe(e){return G(q({},e),{definitions:e.definitions.map(t=>t.kind!==Ht.Kind.OPERATION_DEFINITION?t:G(q({},t),{selectionSet:Hg(t.selectionSet)}))})}function r3(e,t=!0){return(0,Ht.parse)(e,{noLocation:t})}function FRe(e,t=!0){try{return{documentNode:r3(e,t)}}catch(r){return{error:r}}}});var a3=O(Hf=>{"use strict";d();p();f();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.AccumulatorMap=void 0;Hf.mapValue=zf;Hf.extendSchemaImpl=LRe;var xe=ve(),Bs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};Hf.AccumulatorMap=Bs;function zf(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function LRe(e,t,r){var Be,Ie,Ce,Qt;let n=[],i=new Bs,a=new Bs,o=new Bs,u=new Bs,l=new Bs,m=new Bs,h=[],N,T=[],D=!1;for(let z of t.definitions){switch(z.kind){case xe.Kind.SCHEMA_DEFINITION:N=z;break;case xe.Kind.SCHEMA_EXTENSION:T.push(z);break;case xe.Kind.DIRECTIVE_DEFINITION:h.push(z);break;case xe.Kind.SCALAR_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.UNION_TYPE_DEFINITION:case xe.Kind.ENUM_TYPE_DEFINITION:case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:n.push(z);break;case xe.Kind.SCALAR_TYPE_EXTENSION:i.add(z.name.value,z);break;case xe.Kind.OBJECT_TYPE_EXTENSION:a.add(z.name.value,z);break;case xe.Kind.INTERFACE_TYPE_EXTENSION:o.add(z.name.value,z);break;case xe.Kind.UNION_TYPE_EXTENSION:u.add(z.name.value,z);break;case xe.Kind.ENUM_TYPE_EXTENSION:l.add(z.name.value,z);break;case xe.Kind.INPUT_OBJECT_TYPE_EXTENSION:m.add(z.name.value,z);break;default:continue}D=!0}if(!D)return e;let R=new Map;for(let z of e.types){let ie=ae(z);ie&&R.set(z.name,ie)}for(let z of n){let ie=z.name.value;R.set(ie,(Be=n3.get(ie))!=null?Be:oe(z))}for(let[z,ie]of a)R.set(z,new xe.GraphQLObjectType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));if(r!=null&&r.addInvalidExtensionOrphans){for(let[z,ie]of o)R.set(z,new xe.GraphQLInterfaceType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));for(let[z,ie]of l)R.set(z,new xe.GraphQLEnumType({name:z,values:fn(ie),extensionASTNodes:ie}));for(let[z,ie]of u)R.set(z,new xe.GraphQLUnionType({name:z,types:()=>Gr(ie),extensionASTNodes:ie}));for(let[z,ie]of i)R.set(z,new xe.GraphQLScalarType({name:z,extensionASTNodes:ie}));for(let[z,ie]of m)R.set(z,new xe.GraphQLInputObjectType({name:z,fields:()=>Jn(ie),extensionASTNodes:ie}))}let C=q(q({query:e.query&&Y(e.query),mutation:e.mutation&&Y(e.mutation),subscription:e.subscription&&Y(e.subscription)},N&&pr([N])),pr(T));return G(q({description:(Ce=(Ie=N==null?void 0:N.description)==null?void 0:Ie.value)!=null?Ce:e.description},C),{types:Array.from(R.values()),directives:[...e.directives.map(ee),...h.map(mr)],extensions:e.extensions,astNode:N!=null?N:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(T),assumeValid:(Qt=r==null?void 0:r.assumeValid)!=null?Qt:!1});function M(z){return(0,xe.isListType)(z)?new xe.GraphQLList(M(z.ofType)):(0,xe.isNonNullType)(z)?new xe.GraphQLNonNull(M(z.ofType)):Y(z)}function Y(z){return R.get(z.name)}function ee(z){if((0,xe.isSpecifiedDirective)(z))return z;let ie=z.toConfig();return new xe.GraphQLDirective(G(q({},ie),{args:zf(ie.args,Ft)}))}function ae(z){if((0,xe.isIntrospectionType)(z)||(0,xe.isSpecifiedScalarType)(z))return z;if((0,xe.isScalarType)(z))return Le(z);if((0,xe.isObjectType)(z))return Ve(z);if((0,xe.isInterfaceType)(z))return ot(z);if((0,xe.isUnionType)(z))return Z(z);if((0,xe.isEnumType)(z))return _e(z);if((0,xe.isInputObjectType)(z))return Ne(z)}function Ne(z){var nt;let ie=z.toConfig(),Je=(nt=m.get(ie.name))!=null?nt:[];return new xe.GraphQLInputObjectType(G(q({},ie),{fields:()=>q(q({},zf(ie.fields,xt=>G(q({},xt),{type:M(xt.type)}))),Jn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function _e(z){var nt;let ie=z.toConfig(),Je=(nt=l.get(z.name))!=null?nt:[];return new xe.GraphQLEnumType(G(q({},ie),{values:q(q({},ie.values),fn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Le(z){var xt,At;let ie=z.toConfig(),Je=(xt=i.get(ie.name))!=null?xt:[],nt=ie.specifiedByURL;for(let It of Je)nt=(At=i3(It))!=null?At:nt;return new xe.GraphQLScalarType(G(q({},ie),{specifiedByURL:nt,extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Ve(z){var nt;let ie=z.toConfig(),Je=(nt=a.get(ie.name))!=null?nt:[];return new xe.GraphQLObjectType(G(q({},ie),{interfaces:()=>[...z.getInterfaces().map(Y),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function ot(z){var nt;let ie=z.toConfig(),Je=(nt=o.get(ie.name))!=null?nt:[];return new xe.GraphQLInterfaceType(G(q({},ie),{interfaces:()=>[...z.getInterfaces().map(Y),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Z(z){var nt;let ie=z.toConfig(),Je=(nt=u.get(ie.name))!=null?nt:[];return new xe.GraphQLUnionType(G(q({},ie),{types:()=>[...z.getTypes().map(Y),...Gr(Je)],extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Se(z){return G(q({},z),{type:M(z.type),args:z.args&&zf(z.args,Ft)})}function Ft(z){return G(q({},z),{type:M(z.type)})}function pr(z){var Je;let ie={};for(let nt of z){let xt=(Je=nt.operationTypes)!=null?Je:[];for(let At of xt)ie[At.operation]=ar(At.type)}return ie}function ar(z){var nt;let ie=z.name.value,Je=(nt=n3.get(ie))!=null?nt:R.get(ie);if(Je===void 0)throw new Error(`Unknown type: "${ie}".`);return Je}function vr(z){return z.kind===xe.Kind.LIST_TYPE?new xe.GraphQLList(vr(z.type)):z.kind===xe.Kind.NON_NULL_TYPE?new xe.GraphQLNonNull(vr(z.type)):ar(z)}function mr(z){var ie;return new xe.GraphQLDirective({name:z.name.value,description:(ie=z.description)==null?void 0:ie.value,locations:z.locations.map(({value:Je})=>Je),isRepeatable:z.repeatable,args:$r(z.arguments),astNode:z})}function tr(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At)ie[It.name.value]={type:vr(It.type),description:(nt=It.description)==null?void 0:nt.value,args:$r(It.arguments),deprecationReason:Xg(It),astNode:It}}return ie}function $r(z){var nt;let ie=z!=null?z:[],Je=Object.create(null);for(let xt of ie){let At=vr(xt.type);Je[xt.name.value]={type:At,description:(nt=xt.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(xt.defaultValue,At),deprecationReason:Xg(xt),astNode:xt}}return Je}function Jn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At){let Bi=vr(It.type);ie[It.name.value]={type:Bi,description:(nt=It.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(It.defaultValue,Bi),deprecationReason:Xg(It),astNode:It}}}return ie}function fn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.values)!=null?Je:[];for(let It of At)ie[It.name.value]={description:(nt=It.description)==null?void 0:nt.value,deprecationReason:Xg(It),astNode:It}}return ie}function bt(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.interfaces)==null?void 0:Je.map(ar))!=null?nt:[]})}function Gr(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.types)==null?void 0:Je.map(ar))!=null?nt:[]})}function oe(z){var Je,nt,xt,At,It,Bi,kd,zn,fl,qd,Ba,In;let ie=z.name.value;switch(z.kind){case xe.Kind.OBJECT_TYPE_DEFINITION:{let Yt=(Je=a.get(ie))!=null?Je:[],pn=[z,...Yt];return a.delete(ie),new xe.GraphQLObjectType({name:ie,description:(nt=z.description)==null?void 0:nt.value,interfaces:()=>bt(pn),fields:()=>tr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INTERFACE_TYPE_DEFINITION:{let Yt=(xt=o.get(ie))!=null?xt:[],pn=[z,...Yt];return o.delete(ie),new xe.GraphQLInterfaceType({name:ie,description:(At=z.description)==null?void 0:At.value,interfaces:()=>bt(pn),fields:()=>tr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.ENUM_TYPE_DEFINITION:{let Yt=(It=l.get(ie))!=null?It:[],pn=[z,...Yt];return l.delete(ie),new xe.GraphQLEnumType({name:ie,description:(Bi=z.description)==null?void 0:Bi.value,values:fn(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.UNION_TYPE_DEFINITION:{let Yt=(kd=u.get(ie))!=null?kd:[],pn=[z,...Yt];return u.delete(ie),new xe.GraphQLUnionType({name:ie,description:(zn=z.description)==null?void 0:zn.value,types:()=>Gr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.SCALAR_TYPE_DEFINITION:{let Yt=(fl=i.get(ie))!=null?fl:[];return i.delete(ie),new xe.GraphQLScalarType({name:ie,description:(qd=z.description)==null?void 0:qd.value,specifiedByURL:i3(z),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Yt=(Ba=m.get(ie))!=null?Ba:[],pn=[z,...Yt];return m.delete(ie),new xe.GraphQLInputObjectType({name:ie,description:(In=z.description)==null?void 0:In.value,fields:()=>Jn(pn),astNode:z,extensionASTNodes:Yt})}}}}var n3=new Map([...xe.specifiedScalarTypes,...xe.introspectionTypes].map(e=>[e.name,e]));function Xg(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function i3(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var XR=O(WR=>{"use strict";d();p();f();Object.defineProperty(WR,"__esModule",{value:!0});WR.buildASTSchema=URe;var o3=ve(),CRe=Qf(),BRe=a3();function URe(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,CRe.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,BRe.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...o3.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new o3.GraphQLSchema(G(q({},n),{directives:i}))}});var Zg=O(Wf=>{"use strict";d();p();f();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.REQUIRED_FIELDSET_TYPE_NODE=Wf.REQUIRED_STRING_TYPE_NODE=void 0;var s3=ve(),u3=kn(),c3=xr();Wf.REQUIRED_STRING_TYPE_NODE={kind:s3.Kind.NON_NULL_TYPE,type:(0,u3.stringToNamedTypeNode)(c3.STRING_SCALAR)};Wf.REQUIRED_FIELDSET_TYPE_NODE={kind:s3.Kind.NON_NULL_TYPE,type:(0,u3.stringToNamedTypeNode)(c3.FIELD_SET_SCALAR)}});var Wh=O(Me=>{"use strict";d();p();f();Object.defineProperty(Me,"__esModule",{value:!0});Me.TAG_DEFINITION=Me.SUBSCRIPTION_FILTER_DEFINITION=Me.SPECIFIED_BY_DEFINITION=Me.SHAREABLE_DEFINITION=Me.SEMANTIC_NON_NULL_DEFINITION=Me.REQUIRES_SCOPES_DEFINITION=Me.REQUIRES_DEFINITION=Me.REQUIRE_FETCH_REASONS_DEFINITION=Me.PROVIDES_DEFINITION=Me.OVERRIDE_DEFINITION=Me.ONE_OF_DEFINITION=Me.LIST_SIZE_DEFINITION=Me.LINK_DEFINITION=Me.KEY_DEFINITION=Me.INTERFACE_OBJECT_DEFINITION=Me.INACCESSIBLE_DEFINITION=Me.EDFS_REDIS_SUBSCRIBE_DEFINITION=Me.EDFS_REDIS_PUBLISH_DEFINITION=Me.EDFS_NATS_SUBSCRIBE_DEFINITION=Me.EDFS_NATS_REQUEST_DEFINITION=Me.EDFS_NATS_PUBLISH_DEFINITION=Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Me.EDFS_KAFKA_PUBLISH_DEFINITION=Me.EXTERNAL_DEFINITION=Me.EXTENDS_DEFINITION=Me.DEPRECATED_DEFINITION=Me.COST_DEFINITION=Me.CONNECT_FIELD_RESOLVER_DEFINITION=Me.CONFIGURE_DESCRIPTION_DEFINITION=Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Me.COMPOSE_DIRECTIVE_DEFINITION=Me.AUTHENTICATED_DEFINITION=void 0;var de=ve(),se=kn(),Q=xr(),Gn=Zg();Me.AUTHENTICATED_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.AUTHENTICATED),repeatable:!1};Me.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.NAME),type:Gn.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Q.COMPOSE_DIRECTIVE),repeatable:!0};Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Me.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}},{directives:[],kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.DESCRIPTION_OVERRIDE),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.INPUT_OBJECT_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.SCHEMA_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.CONFIGURE_DESCRIPTION),repeatable:!1};Me.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CONTEXT),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.CONNECT_FIELD_RESOLVER),repeatable:!1};Me.COST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.WEIGHT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.COST),repeatable:!1};Me.DEPRECATED_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.REASON),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR),defaultValue:{kind:de.Kind.STRING,value:de.DEFAULT_DEPRECATION_REASON}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.DEPRECATED),repeatable:!1};Me.EXTENDS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.EXTENDS),repeatable:!1};Me.EXTERNAL_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.EXTERNAL),repeatable:!1};Me.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.TOPIC),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_KAFKA_PUBLISH),repeatable:!1};Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.TOPICS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Me.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECT),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_PUBLISH),repeatable:!1};Me.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_REQUEST),repeatable:!1};Me.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SUBJECTS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.STREAM_CONFIGURATION),type:(0,se.stringToNamedTypeNode)(Q.EDFS_NATS_STREAM_CONFIGURATION)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_NATS_SUBSCRIBE),repeatable:!1};Me.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CHANNEL),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_REDIS_PUBLISH),repeatable:!1};Me.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CHANNELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Q.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Me.INACCESSIBLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.INACCESSIBLE),repeatable:!1};Me.INTERFACE_OBJECT_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.INTERFACE_OBJECT),repeatable:!1};Me.KEY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.RESOLVABLE),type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.KEY),repeatable:!0};Me.LINK_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.URL_LOWER),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.AS),type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FOR),type:(0,se.stringToNamedTypeNode)(Q.LINK_PURPOSE)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.IMPORT),type:{kind:de.Kind.LIST_TYPE,type:(0,se.stringToNamedTypeNode)(Q.LINK_IMPORT)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Q.LINK),repeatable:!0};Me.LIST_SIZE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.ASSUMED_SIZE),type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SLICING_ARGUMENTS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SIZED_FIELDS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.REQUIRE_ONE_SLICING_ARGUMENT),type:(0,se.stringToNamedTypeNode)(Q.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.LIST_SIZE),repeatable:!1};Me.ONE_OF_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.INPUT_OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.ONE_OF),repeatable:!1};Me.OVERRIDE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FROM),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.OVERRIDE),repeatable:!1};Me.PROVIDES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.PROVIDES),repeatable:!1};Me.REQUIRE_FETCH_REASONS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.REQUIRE_FETCH_REASONS),repeatable:!0};Me.REQUIRES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.REQUIRES),repeatable:!1};Me.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.SCOPES),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.SCOPE_SCALAR)}}}}}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ENUM_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.REQUIRES_SCOPES),repeatable:!1};Me.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.LEVELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.INT_SCALAR)}}},defaultValue:{kind:de.Kind.LIST,values:[{kind:de.Kind.INT,value:"0"}]}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Q.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Q.SEMANTIC_NON_NULL),repeatable:!1};Me.SHAREABLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER,Q.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Q.SHAREABLE),repeatable:!0};Me.SPECIFIED_BY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.URL_LOWER),type:Gn.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Q.SPECIFIED_BY),repeatable:!1};Me.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.CONDITION),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.SUBSCRIPTION_FILTER_CONDITION)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Q.SUBSCRIPTION_FILTER),repeatable:!1};Me.TAG_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Q.NAME),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Q.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Q.ARGUMENT_DEFINITION_UPPER,Q.ENUM_UPPER,Q.ENUM_VALUE_UPPER,Q.FIELD_DEFINITION_UPPER,Q.INPUT_FIELD_DEFINITION_UPPER,Q.INPUT_OBJECT_UPPER,Q.INTERFACE_UPPER,Q.OBJECT_UPPER,Q.SCALAR_UPPER,Q.UNION_UPPER]),name:(0,se.stringToNameNode)(Q.TAG),repeatable:!0}});var Xh=O(eI=>{"use strict";d();p();f();Object.defineProperty(eI,"__esModule",{value:!0});eI.ExtensionType=void 0;var l3;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(l3||(eI.ExtensionType=l3={}))});var Xf=O(Yc=>{"use strict";d();p();f();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.MAX_INT32=Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=Yc.MAXIMUM_TYPE_NESTING=void 0;Yc.MAXIMUM_TYPE_NESTING=30;Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Yc.MAX_INT32=yr(2,31)-1});var An=O(Nn=>{"use strict";d();p();f();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getOrThrowError=qRe;Nn.getEntriesNotInHashSet=xRe;Nn.numberToOrdinal=MRe;Nn.addIterableToSet=d3;Nn.addOptionalIterableToSet=jRe;Nn.addSets=VRe;Nn.kindToNodeType=KRe;Nn.getValueOrDefault=$Re;Nn.add=GRe;Nn.generateSimpleDirective=QRe;Nn.generateRequiresScopesDirective=YRe;Nn.generateSemanticNonNullDirective=JRe;Nn.copyObjectValueMap=zRe;Nn.addNewObjectValueMapEntries=HRe;Nn.copyArrayValueMap=WRe;Nn.addMapEntries=XRe;Nn.getFirstEntry=ZRe;Nn.mergeSetValueMap=ewe;var Zt=ve(),qn=xr(),kRe=bi(),Zh=kn();function qRe(e,t,r){let n=e.get(t);if(n===void 0)throw(0,kRe.invalidKeyFatalError)(t,r);return n}function xRe(e,t){let r=[];for(let n of e)t.has(n)||r.push(n);return r}function MRe(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 d3({source:e,target:t}){for(let r of e)t.add(r)}function jRe({source:e,target:t}){if(e)for(let r of e)t.add(r)}function VRe(e,t){let r=new Set(e);for(let n of t)r.add(n);return r}function KRe(e){switch(e){case Zt.Kind.BOOLEAN:return qn.BOOLEAN_SCALAR;case Zt.Kind.ENUM:case Zt.Kind.ENUM_TYPE_DEFINITION:return qn.ENUM;case Zt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Zt.Kind.ENUM_VALUE_DEFINITION:return qn.ENUM_VALUE;case Zt.Kind.FIELD_DEFINITION:return qn.FIELD;case Zt.Kind.FLOAT:return qn.FLOAT_SCALAR;case Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return qn.INPUT_OBJECT;case Zt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Zt.Kind.INPUT_VALUE_DEFINITION:return qn.INPUT_VALUE;case Zt.Kind.INT:return qn.INT_SCALAR;case Zt.Kind.INTERFACE_TYPE_DEFINITION:return qn.INTERFACE;case Zt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Zt.Kind.NULL:return qn.NULL;case Zt.Kind.OBJECT:case Zt.Kind.OBJECT_TYPE_DEFINITION:return qn.OBJECT;case Zt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Zt.Kind.STRING:return qn.STRING_SCALAR;case Zt.Kind.SCALAR_TYPE_DEFINITION:return qn.SCALAR;case Zt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Zt.Kind.UNION_TYPE_DEFINITION:return qn.UNION;case Zt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function $Re(e,t,r){let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}function GRe(e,t){return e.has(t)?!1:(e.add(t),!0)}function QRe(e){return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(e)}}function YRe(e){let t=[];for(let r of e){let n=[];for(let i of r)n.push({kind:Zt.Kind.STRING,value:i});t.push({kind:Zt.Kind.LIST,values:n})}return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(qn.REQUIRES_SCOPES),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(qn.SCOPES),value:{kind:Zt.Kind.LIST,values:t}}]}}function JRe(e){let t=Array.from(e).sort((n,i)=>n-i),r=new Array;for(let n of t)r.push({kind:Zt.Kind.INT,value:n.toString()});return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(qn.SEMANTIC_NON_NULL),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(qn.LEVELS),value:{kind:Zt.Kind.LIST,values:r}}]}}function zRe(e){let t=new Map;for(let[r,n]of e)t.set(r,q({},n));return t}function HRe(e,t){for(let[r,n]of e)t.set(r,q({},n))}function WRe(e){let t=new Map;for(let[r,n]of e)t.set(r,[...n]);return t}function XRe({source:e,target:t}){for(let[r,n]of e)t.set(r,n)}function ZRe(e){let{value:t,done:r}=e.values().next();if(!r)return t}function ewe({source:e,target:t}){for(let[r,n]of e){let i=t.get(r);if(!i){t.set(r,new Set(n));continue}d3({source:n,target:i})}}});var tw={};nm(tw,{__addDisposableResource:()=>F3,__assign:()=>tI,__asyncDelegator:()=>S3,__asyncGenerator:()=>_3,__asyncValues:()=>O3,__await:()=>Zf,__awaiter:()=>N3,__classPrivateFieldGet:()=>R3,__classPrivateFieldIn:()=>P3,__classPrivateFieldSet:()=>w3,__createBinding:()=>nI,__decorate:()=>m3,__disposeResources:()=>L3,__esDecorate:()=>twe,__exportStar:()=>E3,__extends:()=>f3,__generator:()=>T3,__importDefault:()=>A3,__importStar:()=>b3,__makeTemplateObject:()=>D3,__metadata:()=>y3,__param:()=>h3,__propKey:()=>nwe,__read:()=>ew,__rest:()=>p3,__runInitializers:()=>rwe,__setFunctionName:()=>iwe,__spread:()=>g3,__spreadArray:()=>v3,__spreadArrays:()=>I3,__values:()=>rI,default:()=>swe});function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function p3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function h3(e,t){return function(r,n){t(r,n,e)}}function twe(e,t,r,n,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,D=r.length-1;D>=0;D--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(Y){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var M=(0,r[D])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function rwe(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ew(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function g3(){for(var e=[],t=0;t1||u(T,D)})})}function u(T,D){try{l(n[T](D))}catch(R){N(a[0][3],R)}}function l(T){T.value instanceof Zf?Promise.resolve(T.value.v).then(m,h):N(a[0][2],T)}function m(T){u("next",T)}function h(T){u("throw",T)}function N(T,D){T(D),a.shift(),a.length&&u(a[0][0],a[0][1])}}function S3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:Zf(e[i](o)),done:!1}:a?a(o):o}:a}}function O3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof rI=="function"?rI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function D3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function b3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&nI(t,e,r);return awe(t,e),t}function A3(e){return e&&e.__esModule?e:{default:e}}function R3(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function w3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="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 n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function P3(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 F3(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function L3(e){function t(n){e.error=e.hasError?new owe(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}var ZR,tI,nI,awe,owe,swe,rw=ja(()=>{"use strict";d();p();f();ZR=function(e,t){return ZR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ZR(e,t)};tI=function(){return tI=Object.assign||function(t){for(var r,n=1,i=arguments.length;niW,__assign:()=>iI,__asyncDelegator:()=>H3,__asyncGenerator:()=>z3,__asyncValues:()=>W3,__await:()=>ep,__awaiter:()=>K3,__classPrivateFieldGet:()=>tW,__classPrivateFieldIn:()=>nW,__classPrivateFieldSet:()=>rW,__createBinding:()=>oI,__decorate:()=>U3,__disposeResources:()=>aW,__esDecorate:()=>q3,__exportStar:()=>G3,__extends:()=>C3,__generator:()=>$3,__importDefault:()=>eW,__importStar:()=>Z3,__makeTemplateObject:()=>X3,__metadata:()=>V3,__param:()=>k3,__propKey:()=>M3,__read:()=>aw,__rest:()=>B3,__rewriteRelativeImportExtension:()=>oW,__runInitializers:()=>x3,__setFunctionName:()=>j3,__spread:()=>Q3,__spreadArray:()=>J3,__spreadArrays:()=>Y3,__values:()=>aI,default:()=>lwe});function C3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function B3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function k3(e,t){return function(r,n){t(r,n,e)}}function q3(e,t,r,n,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,D=r.length-1;D>=0;D--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(Y){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var M=(0,r[D])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function x3(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aw(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Q3(){for(var e=[],t=0;t1||l(D,C)})},R&&(i[D]=R(i[D])))}function l(D,R){try{m(n[D](R))}catch(C){T(a[0][3],C)}}function m(D){D.value instanceof ep?Promise.resolve(D.value.v).then(h,N):T(a[0][2],D)}function h(D){l("next",D)}function N(D){l("throw",D)}function T(D,R){D(R),a.shift(),a.length&&l(a[0][0],a[0][1])}}function H3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:ep(e[i](o)),done:!1}:a?a(o):o}:a}}function W3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof aI=="function"?aI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function X3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Z3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=iw(e),n=0;n{"use strict";d();p();f();nw=function(e,t){return nw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},nw(e,t)};iI=function(){return iI=Object.assign||function(t){for(var r,n=1,i=arguments.length;n{"use strict";d();p();f()});var tp=O(Ia=>{"use strict";d();p();f();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.asArray=void 0;Ia.isUrl=lW;Ia.isDocumentString=hwe;Ia.isValidPath=Nwe;Ia.compareStrings=dW;Ia.nodeToString=ow;Ia.compareNodes=Twe;Ia.isSome=Ewe;Ia.assertSome=gwe;var dwe=ve(),fwe=/^(https?|wss?|file):\/\//;function lW(e){if(typeof e!="string"||!fwe.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var pwe=e=>Array.isArray(e)?e:e?[e]:[];Ia.asArray=pwe;var mwe=/\.[a-z0-9]+$/i;function hwe(e){if(typeof e!="string"||mwe.test(e)||lW(e))return!1;try{return(0,dwe.parse)(e),!0}catch(t){if(!t.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()!==""&&e.includes(" "))throw new Error(`Failed to parse the GraphQL document. ${t.message} +`))}return Q(q({},e),{value:t,block:!0})}function t3(e){return e.arguments?e.arguments.sort((r,n)=>r.name.value.localeCompare(n.name.value)):e.arguments}function Hg(e){let t=e.selections;return Q(q({},e),{selections:t.sort((r,n)=>{var a,o,u,l;return Mr.NAME in r?Mr.NAME in n?r.name.value.localeCompare(n.name.value):-1:Mr.NAME in n?1:((o=(a=r.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(u=n.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(r=>{switch(r.kind){case Ht.Kind.FIELD:return Q(q({},r),{arguments:t3(r),selectionSet:r.selectionSet?Hg(r.selectionSet):r.selectionSet});case Ht.Kind.FRAGMENT_SPREAD:return r;case Ht.Kind.INLINE_FRAGMENT:return Q(q({},r),{selectionSet:Hg(r.selectionSet)})}})})}function PRe(e){return Q(q({},e),{definitions:e.definitions.map(t=>t.kind!==Ht.Kind.OPERATION_DEFINITION?t:Q(q({},t),{selectionSet:Hg(t.selectionSet)}))})}function r3(e,t=!0){return(0,Ht.parse)(e,{noLocation:t})}function FRe(e,t=!0){try{return{documentNode:r3(e,t)}}catch(r){return{error:r}}}});var a3=O(Hf=>{"use strict";d();p();f();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.AccumulatorMap=void 0;Hf.mapValue=zf;Hf.extendSchemaImpl=LRe;var xe=_e(),Bs=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};Hf.AccumulatorMap=Bs;function zf(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function LRe(e,t,r){var Be,ve,Ce,Qt;let n=[],i=new Bs,a=new Bs,o=new Bs,u=new Bs,l=new Bs,m=new Bs,h=[],N,T=[],D=!1;for(let z of t.definitions){switch(z.kind){case xe.Kind.SCHEMA_DEFINITION:N=z;break;case xe.Kind.SCHEMA_EXTENSION:T.push(z);break;case xe.Kind.DIRECTIVE_DEFINITION:h.push(z);break;case xe.Kind.SCALAR_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.UNION_TYPE_DEFINITION:case xe.Kind.ENUM_TYPE_DEFINITION:case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:n.push(z);break;case xe.Kind.SCALAR_TYPE_EXTENSION:i.add(z.name.value,z);break;case xe.Kind.OBJECT_TYPE_EXTENSION:a.add(z.name.value,z);break;case xe.Kind.INTERFACE_TYPE_EXTENSION:o.add(z.name.value,z);break;case xe.Kind.UNION_TYPE_EXTENSION:u.add(z.name.value,z);break;case xe.Kind.ENUM_TYPE_EXTENSION:l.add(z.name.value,z);break;case xe.Kind.INPUT_OBJECT_TYPE_EXTENSION:m.add(z.name.value,z);break;default:continue}D=!0}if(!D)return e;let R=new Map;for(let z of e.types){let ie=ae(z);ie&&R.set(z.name,ie)}for(let z of n){let ie=z.name.value;R.set(ie,(Be=n3.get(ie))!=null?Be:oe(z))}for(let[z,ie]of a)R.set(z,new xe.GraphQLObjectType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));if(r!=null&&r.addInvalidExtensionOrphans){for(let[z,ie]of o)R.set(z,new xe.GraphQLInterfaceType({name:z,interfaces:()=>bt(ie),fields:()=>tr(ie),extensionASTNodes:ie}));for(let[z,ie]of l)R.set(z,new xe.GraphQLEnumType({name:z,values:fn(ie),extensionASTNodes:ie}));for(let[z,ie]of u)R.set(z,new xe.GraphQLUnionType({name:z,types:()=>Gr(ie),extensionASTNodes:ie}));for(let[z,ie]of i)R.set(z,new xe.GraphQLScalarType({name:z,extensionASTNodes:ie}));for(let[z,ie]of m)R.set(z,new xe.GraphQLInputObjectType({name:z,fields:()=>Jn(ie),extensionASTNodes:ie}))}let C=q(q({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},N&&hr([N])),hr(T));return Q(q({description:(Ce=(ve=N==null?void 0:N.description)==null?void 0:ve.value)!=null?Ce:e.description},C),{types:Array.from(R.values()),directives:[...e.directives.map(ee),...h.map(yr)],extensions:e.extensions,astNode:N!=null?N:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(T),assumeValid:(Qt=r==null?void 0:r.assumeValid)!=null?Qt:!1});function M(z){return(0,xe.isListType)(z)?new xe.GraphQLList(M(z.ofType)):(0,xe.isNonNullType)(z)?new xe.GraphQLNonNull(M(z.ofType)):G(z)}function G(z){return R.get(z.name)}function ee(z){if((0,xe.isSpecifiedDirective)(z))return z;let ie=z.toConfig();return new xe.GraphQLDirective(Q(q({},ie),{args:zf(ie.args,Ft)}))}function ae(z){if((0,xe.isIntrospectionType)(z)||(0,xe.isSpecifiedScalarType)(z))return z;if((0,xe.isScalarType)(z))return Le(z);if((0,xe.isObjectType)(z))return Ve(z);if((0,xe.isInterfaceType)(z))return ot(z);if((0,xe.isUnionType)(z))return Z(z);if((0,xe.isEnumType)(z))return Ie(z);if((0,xe.isInputObjectType)(z))return Ne(z)}function Ne(z){var nt;let ie=z.toConfig(),Je=(nt=m.get(ie.name))!=null?nt:[];return new xe.GraphQLInputObjectType(Q(q({},ie),{fields:()=>q(q({},zf(ie.fields,xt=>Q(q({},xt),{type:M(xt.type)}))),Jn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Ie(z){var nt;let ie=z.toConfig(),Je=(nt=l.get(z.name))!=null?nt:[];return new xe.GraphQLEnumType(Q(q({},ie),{values:q(q({},ie.values),fn(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Le(z){var xt,At;let ie=z.toConfig(),Je=(xt=i.get(ie.name))!=null?xt:[],nt=ie.specifiedByURL;for(let It of Je)nt=(At=i3(It))!=null?At:nt;return new xe.GraphQLScalarType(Q(q({},ie),{specifiedByURL:nt,extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Ve(z){var nt;let ie=z.toConfig(),Je=(nt=a.get(ie.name))!=null?nt:[];return new xe.GraphQLObjectType(Q(q({},ie),{interfaces:()=>[...z.getInterfaces().map(G),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function ot(z){var nt;let ie=z.toConfig(),Je=(nt=o.get(ie.name))!=null?nt:[];return new xe.GraphQLInterfaceType(Q(q({},ie),{interfaces:()=>[...z.getInterfaces().map(G),...bt(Je)],fields:()=>q(q({},zf(ie.fields,Se)),tr(Je)),extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Z(z){var nt;let ie=z.toConfig(),Je=(nt=u.get(ie.name))!=null?nt:[];return new xe.GraphQLUnionType(Q(q({},ie),{types:()=>[...z.getTypes().map(G),...Gr(Je)],extensionASTNodes:ie.extensionASTNodes.concat(Je)}))}function Se(z){return Q(q({},z),{type:M(z.type),args:z.args&&zf(z.args,Ft)})}function Ft(z){return Q(q({},z),{type:M(z.type)})}function hr(z){var Je;let ie={};for(let nt of z){let xt=(Je=nt.operationTypes)!=null?Je:[];for(let At of xt)ie[At.operation]=or(At.type)}return ie}function or(z){var nt;let ie=z.name.value,Je=(nt=n3.get(ie))!=null?nt:R.get(ie);if(Je===void 0)throw new Error(`Unknown type: "${ie}".`);return Je}function vr(z){return z.kind===xe.Kind.LIST_TYPE?new xe.GraphQLList(vr(z.type)):z.kind===xe.Kind.NON_NULL_TYPE?new xe.GraphQLNonNull(vr(z.type)):or(z)}function yr(z){var ie;return new xe.GraphQLDirective({name:z.name.value,description:(ie=z.description)==null?void 0:ie.value,locations:z.locations.map(({value:Je})=>Je),isRepeatable:z.repeatable,args:$r(z.arguments),astNode:z})}function tr(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At)ie[It.name.value]={type:vr(It.type),description:(nt=It.description)==null?void 0:nt.value,args:$r(It.arguments),deprecationReason:Xg(It),astNode:It}}return ie}function $r(z){var nt;let ie=z!=null?z:[],Je=Object.create(null);for(let xt of ie){let At=vr(xt.type);Je[xt.name.value]={type:At,description:(nt=xt.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(xt.defaultValue,At),deprecationReason:Xg(xt),astNode:xt}}return Je}function Jn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.fields)!=null?Je:[];for(let It of At){let Bi=vr(It.type);ie[It.name.value]={type:Bi,description:(nt=It.description)==null?void 0:nt.value,defaultValue:(0,xe.valueFromAST)(It.defaultValue,Bi),deprecationReason:Xg(It),astNode:It}}}return ie}function fn(z){var Je,nt;let ie=Object.create(null);for(let xt of z){let At=(Je=xt.values)!=null?Je:[];for(let It of At)ie[It.name.value]={description:(nt=It.description)==null?void 0:nt.value,deprecationReason:Xg(It),astNode:It}}return ie}function bt(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.interfaces)==null?void 0:Je.map(or))!=null?nt:[]})}function Gr(z){return z.flatMap(ie=>{var Je,nt;return(nt=(Je=ie.types)==null?void 0:Je.map(or))!=null?nt:[]})}function oe(z){var Je,nt,xt,At,It,Bi,kd,zn,fl,qd,Ba,In;let ie=z.name.value;switch(z.kind){case xe.Kind.OBJECT_TYPE_DEFINITION:{let Yt=(Je=a.get(ie))!=null?Je:[],pn=[z,...Yt];return a.delete(ie),new xe.GraphQLObjectType({name:ie,description:(nt=z.description)==null?void 0:nt.value,interfaces:()=>bt(pn),fields:()=>tr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INTERFACE_TYPE_DEFINITION:{let Yt=(xt=o.get(ie))!=null?xt:[],pn=[z,...Yt];return o.delete(ie),new xe.GraphQLInterfaceType({name:ie,description:(At=z.description)==null?void 0:At.value,interfaces:()=>bt(pn),fields:()=>tr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.ENUM_TYPE_DEFINITION:{let Yt=(It=l.get(ie))!=null?It:[],pn=[z,...Yt];return l.delete(ie),new xe.GraphQLEnumType({name:ie,description:(Bi=z.description)==null?void 0:Bi.value,values:fn(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.UNION_TYPE_DEFINITION:{let Yt=(kd=u.get(ie))!=null?kd:[],pn=[z,...Yt];return u.delete(ie),new xe.GraphQLUnionType({name:ie,description:(zn=z.description)==null?void 0:zn.value,types:()=>Gr(pn),astNode:z,extensionASTNodes:Yt})}case xe.Kind.SCALAR_TYPE_DEFINITION:{let Yt=(fl=i.get(ie))!=null?fl:[];return i.delete(ie),new xe.GraphQLScalarType({name:ie,description:(qd=z.description)==null?void 0:qd.value,specifiedByURL:i3(z),astNode:z,extensionASTNodes:Yt})}case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let Yt=(Ba=m.get(ie))!=null?Ba:[],pn=[z,...Yt];return m.delete(ie),new xe.GraphQLInputObjectType({name:ie,description:(In=z.description)==null?void 0:In.value,fields:()=>Jn(pn),astNode:z,extensionASTNodes:Yt})}}}}var n3=new Map([...xe.specifiedScalarTypes,...xe.introspectionTypes].map(e=>[e.name,e]));function Xg(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function i3(e){let t=(0,xe.getDirectiveValues)(xe.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var XR=O(WR=>{"use strict";d();p();f();Object.defineProperty(WR,"__esModule",{value:!0});WR.buildASTSchema=URe;var o3=_e(),CRe=Qf(),BRe=a3();function URe(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,CRe.assertValidSDL)(e);let r={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},n=(0,BRe.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(let a of n.types)switch(a.name){case"Query":n.query=a;break;case"Mutation":n.mutation=a;break;case"Subscription":n.subscription=a;break}let i=[...n.directives,...o3.specifiedDirectives.filter(a=>n.directives.every(o=>o.name!==a.name))];return new o3.GraphQLSchema(Q(q({},n),{directives:i}))}});var Zg=O(Wf=>{"use strict";d();p();f();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.REQUIRED_FIELDSET_TYPE_NODE=Wf.REQUIRED_STRING_TYPE_NODE=void 0;var s3=_e(),u3=kn(),c3=xr();Wf.REQUIRED_STRING_TYPE_NODE={kind:s3.Kind.NON_NULL_TYPE,type:(0,u3.stringToNamedTypeNode)(c3.STRING_SCALAR)};Wf.REQUIRED_FIELDSET_TYPE_NODE={kind:s3.Kind.NON_NULL_TYPE,type:(0,u3.stringToNamedTypeNode)(c3.FIELD_SET_SCALAR)}});var Wh=O(Me=>{"use strict";d();p();f();Object.defineProperty(Me,"__esModule",{value:!0});Me.TAG_DEFINITION=Me.SUBSCRIPTION_FILTER_DEFINITION=Me.SPECIFIED_BY_DEFINITION=Me.SHAREABLE_DEFINITION=Me.SEMANTIC_NON_NULL_DEFINITION=Me.REQUIRES_SCOPES_DEFINITION=Me.REQUIRES_DEFINITION=Me.REQUIRE_FETCH_REASONS_DEFINITION=Me.PROVIDES_DEFINITION=Me.OVERRIDE_DEFINITION=Me.ONE_OF_DEFINITION=Me.LIST_SIZE_DEFINITION=Me.LINK_DEFINITION=Me.KEY_DEFINITION=Me.INTERFACE_OBJECT_DEFINITION=Me.INACCESSIBLE_DEFINITION=Me.EDFS_REDIS_SUBSCRIBE_DEFINITION=Me.EDFS_REDIS_PUBLISH_DEFINITION=Me.EDFS_NATS_SUBSCRIBE_DEFINITION=Me.EDFS_NATS_REQUEST_DEFINITION=Me.EDFS_NATS_PUBLISH_DEFINITION=Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Me.EDFS_KAFKA_PUBLISH_DEFINITION=Me.EXTERNAL_DEFINITION=Me.EXTENDS_DEFINITION=Me.DEPRECATED_DEFINITION=Me.COST_DEFINITION=Me.CONNECT_FIELD_RESOLVER_DEFINITION=Me.CONFIGURE_DESCRIPTION_DEFINITION=Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Me.COMPOSE_DIRECTIVE_DEFINITION=Me.AUTHENTICATED_DEFINITION=void 0;var de=_e(),se=kn(),Y=xr(),Gn=Zg();Me.AUTHENTICATED_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ENUM_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Y.AUTHENTICATED),repeatable:!1};Me.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.NAME),type:Gn.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Y.COMPOSE_DIRECTIVE),repeatable:!0};Me.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ENUM_UPPER,Y.INPUT_OBJECT_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Me.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROPAGATE),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.BOOLEAN_SCALAR)},defaultValue:{kind:de.Kind.BOOLEAN,value:!0}},{directives:[],kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.DESCRIPTION_OVERRIDE),type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ARGUMENT_DEFINITION_UPPER,Y.ENUM_UPPER,Y.ENUM_VALUE_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INTERFACE_UPPER,Y.INPUT_OBJECT_UPPER,Y.INPUT_FIELD_DEFINITION_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER,Y.SCHEMA_UPPER,Y.UNION_UPPER]),name:(0,se.stringToNameNode)(Y.CONFIGURE_DESCRIPTION),repeatable:!1};Me.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.CONTEXT),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Y.CONNECT_FIELD_RESOLVER),repeatable:!1};Me.COST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.WEIGHT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.INT_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ARGUMENT_DEFINITION_UPPER,Y.ENUM_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INPUT_FIELD_DEFINITION_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Y.COST),repeatable:!1};Me.DEPRECATED_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.REASON),type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR),defaultValue:{kind:de.Kind.STRING,value:de.DEFAULT_DEPRECATION_REASON}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ARGUMENT_DEFINITION_UPPER,Y.ENUM_VALUE_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INPUT_FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Y.DEPRECATED),repeatable:!1};Me.EXTENDS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.INTERFACE_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.EXTENDS),repeatable:!1};Me.EXTERNAL_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.EXTERNAL),repeatable:!1};Me.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.TOPIC),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_KAFKA_PUBLISH),repeatable:!1};Me.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.TOPICS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Me.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SUBJECT),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_NATS_PUBLISH),repeatable:!1};Me.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SUBJECT),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)},defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_NATS_REQUEST),repeatable:!1};Me.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SUBJECTS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.STREAM_CONFIGURATION),type:(0,se.stringToNamedTypeNode)(Y.EDFS_NATS_STREAM_CONFIGURATION)}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_NATS_SUBSCRIBE),repeatable:!1};Me.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.CHANNEL),type:Gn.REQUIRED_STRING_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_REDIS_PUBLISH),repeatable:!1};Me.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.CHANNELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:Gn.REQUIRED_STRING_TYPE_NODE}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.PROVIDER_ID),type:Gn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:de.Kind.STRING,value:Y.DEFAULT_EDFS_PROVIDER_ID}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Me.INACCESSIBLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ARGUMENT_DEFINITION_UPPER,Y.ENUM_UPPER,Y.ENUM_VALUE_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INPUT_FIELD_DEFINITION_UPPER,Y.INPUT_OBJECT_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER,Y.UNION_UPPER]),name:(0,se.stringToNameNode)(Y.INACCESSIBLE),repeatable:!1};Me.INTERFACE_OBJECT_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.INTERFACE_OBJECT),repeatable:!1};Me.KEY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.RESOLVABLE),type:(0,se.stringToNamedTypeNode)(Y.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.INTERFACE_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.KEY),repeatable:!0};Me.LINK_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.URL_LOWER),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.AS),type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.FOR),type:(0,se.stringToNamedTypeNode)(Y.LINK_PURPOSE)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.IMPORT),type:{kind:de.Kind.LIST_TYPE,type:(0,se.stringToNamedTypeNode)(Y.LINK_IMPORT)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.SCHEMA_UPPER]),name:(0,se.stringToNameNode)(Y.LINK),repeatable:!0};Me.LIST_SIZE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.ASSUMED_SIZE),type:(0,se.stringToNamedTypeNode)(Y.INT_SCALAR)},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SLICING_ARGUMENTS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SIZED_FIELDS),type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}}},{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.REQUIRE_ONE_SLICING_ARGUMENT),type:(0,se.stringToNamedTypeNode)(Y.BOOLEAN_SCALAR),defaultValue:{kind:de.Kind.BOOLEAN,value:!0}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Y.LIST_SIZE),repeatable:!1};Me.ONE_OF_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.INPUT_OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.ONE_OF),repeatable:!1};Me.OVERRIDE_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.FROM),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Y.OVERRIDE),repeatable:!1};Me.PROVIDES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.PROVIDES),repeatable:!1};Me.REQUIRE_FETCH_REASONS_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.REQUIRE_FETCH_REASONS),repeatable:!0};Me.REQUIRES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.FIELDS),type:Gn.REQUIRED_FIELDSET_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.REQUIRES),repeatable:!1};Me.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.SCOPES),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.SCOPE_SCALAR)}}}}}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ENUM_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Y.REQUIRES_SCOPES),repeatable:!1};Me.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.LEVELS),type:{kind:de.Kind.NON_NULL_TYPE,type:{kind:de.Kind.LIST_TYPE,type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.INT_SCALAR)}}},defaultValue:{kind:de.Kind.LIST,values:[{kind:de.Kind.INT,value:"0"}]}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:[(0,se.stringToNameNode)(Y.FIELD_DEFINITION_UPPER)],name:(0,se.stringToNameNode)(Y.SEMANTIC_NON_NULL),repeatable:!1};Me.SHAREABLE_DEFINITION={kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER,Y.OBJECT_UPPER]),name:(0,se.stringToNameNode)(Y.SHAREABLE),repeatable:!0};Me.SPECIFIED_BY_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.URL_LOWER),type:Gn.REQUIRED_STRING_TYPE_NODE}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.SCALAR_UPPER]),name:(0,se.stringToNameNode)(Y.SPECIFIED_BY),repeatable:!1};Me.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.CONDITION),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.SUBSCRIPTION_FILTER_CONDITION)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.FIELD_DEFINITION_UPPER]),name:(0,se.stringToNameNode)(Y.SUBSCRIPTION_FILTER),repeatable:!1};Me.TAG_DEFINITION={arguments:[{kind:de.Kind.INPUT_VALUE_DEFINITION,name:(0,se.stringToNameNode)(Y.NAME),type:{kind:de.Kind.NON_NULL_TYPE,type:(0,se.stringToNamedTypeNode)(Y.STRING_SCALAR)}}],kind:de.Kind.DIRECTIVE_DEFINITION,locations:(0,se.stringArrayToNameNodeArray)([Y.ARGUMENT_DEFINITION_UPPER,Y.ENUM_UPPER,Y.ENUM_VALUE_UPPER,Y.FIELD_DEFINITION_UPPER,Y.INPUT_FIELD_DEFINITION_UPPER,Y.INPUT_OBJECT_UPPER,Y.INTERFACE_UPPER,Y.OBJECT_UPPER,Y.SCALAR_UPPER,Y.UNION_UPPER]),name:(0,se.stringToNameNode)(Y.TAG),repeatable:!0}});var Xh=O(eI=>{"use strict";d();p();f();Object.defineProperty(eI,"__esModule",{value:!0});eI.ExtensionType=void 0;var l3;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(l3||(eI.ExtensionType=l3={}))});var Xf=O(Yc=>{"use strict";d();p();f();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.MAX_INT32=Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=Yc.MAXIMUM_TYPE_NESTING=void 0;Yc.MAXIMUM_TYPE_NESTING=30;Yc.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Yc.MAX_INT32=Tr(2,31)-1});var An=O(Nn=>{"use strict";d();p();f();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getOrThrowError=qRe;Nn.getEntriesNotInHashSet=xRe;Nn.numberToOrdinal=MRe;Nn.addIterableToSet=d3;Nn.addOptionalIterableToSet=jRe;Nn.addSets=VRe;Nn.kindToNodeType=KRe;Nn.getValueOrDefault=$Re;Nn.add=GRe;Nn.generateSimpleDirective=QRe;Nn.generateRequiresScopesDirective=YRe;Nn.generateSemanticNonNullDirective=JRe;Nn.copyObjectValueMap=zRe;Nn.addNewObjectValueMapEntries=HRe;Nn.copyArrayValueMap=WRe;Nn.addMapEntries=XRe;Nn.getFirstEntry=ZRe;Nn.mergeSetValueMap=ewe;var Zt=_e(),qn=xr(),kRe=bi(),Zh=kn();function qRe(e,t,r){let n=e.get(t);if(n===void 0)throw(0,kRe.invalidKeyFatalError)(t,r);return n}function xRe(e,t){let r=[];for(let n of e)t.has(n)||r.push(n);return r}function MRe(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 d3({source:e,target:t}){for(let r of e)t.add(r)}function jRe({source:e,target:t}){if(e)for(let r of e)t.add(r)}function VRe(e,t){let r=new Set(e);for(let n of t)r.add(n);return r}function KRe(e){switch(e){case Zt.Kind.BOOLEAN:return qn.BOOLEAN_SCALAR;case Zt.Kind.ENUM:case Zt.Kind.ENUM_TYPE_DEFINITION:return qn.ENUM;case Zt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Zt.Kind.ENUM_VALUE_DEFINITION:return qn.ENUM_VALUE;case Zt.Kind.FIELD_DEFINITION:return qn.FIELD;case Zt.Kind.FLOAT:return qn.FLOAT_SCALAR;case Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return qn.INPUT_OBJECT;case Zt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Zt.Kind.INPUT_VALUE_DEFINITION:return qn.INPUT_VALUE;case Zt.Kind.INT:return qn.INT_SCALAR;case Zt.Kind.INTERFACE_TYPE_DEFINITION:return qn.INTERFACE;case Zt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Zt.Kind.NULL:return qn.NULL;case Zt.Kind.OBJECT:case Zt.Kind.OBJECT_TYPE_DEFINITION:return qn.OBJECT;case Zt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Zt.Kind.STRING:return qn.STRING_SCALAR;case Zt.Kind.SCALAR_TYPE_DEFINITION:return qn.SCALAR;case Zt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Zt.Kind.UNION_TYPE_DEFINITION:return qn.UNION;case Zt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function $Re(e,t,r){let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}function GRe(e,t){return e.has(t)?!1:(e.add(t),!0)}function QRe(e){return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(e)}}function YRe(e){let t=[];for(let r of e){let n=[];for(let i of r)n.push({kind:Zt.Kind.STRING,value:i});t.push({kind:Zt.Kind.LIST,values:n})}return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(qn.REQUIRES_SCOPES),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(qn.SCOPES),value:{kind:Zt.Kind.LIST,values:t}}]}}function JRe(e){let t=Array.from(e).sort((n,i)=>n-i),r=new Array;for(let n of t)r.push({kind:Zt.Kind.INT,value:n.toString()});return{kind:Zt.Kind.DIRECTIVE,name:(0,Zh.stringToNameNode)(qn.SEMANTIC_NON_NULL),arguments:[{kind:Zt.Kind.ARGUMENT,name:(0,Zh.stringToNameNode)(qn.LEVELS),value:{kind:Zt.Kind.LIST,values:r}}]}}function zRe(e){let t=new Map;for(let[r,n]of e)t.set(r,q({},n));return t}function HRe(e,t){for(let[r,n]of e)t.set(r,q({},n))}function WRe(e){let t=new Map;for(let[r,n]of e)t.set(r,[...n]);return t}function XRe({source:e,target:t}){for(let[r,n]of e)t.set(r,n)}function ZRe(e){let{value:t,done:r}=e.values().next();if(!r)return t}function ewe({source:e,target:t}){for(let[r,n]of e){let i=t.get(r);if(!i){t.set(r,new Set(n));continue}d3({source:n,target:i})}}});var tw={};nm(tw,{__addDisposableResource:()=>F3,__assign:()=>tI,__asyncDelegator:()=>S3,__asyncGenerator:()=>_3,__asyncValues:()=>O3,__await:()=>Zf,__awaiter:()=>N3,__classPrivateFieldGet:()=>R3,__classPrivateFieldIn:()=>P3,__classPrivateFieldSet:()=>w3,__createBinding:()=>nI,__decorate:()=>m3,__disposeResources:()=>L3,__esDecorate:()=>twe,__exportStar:()=>E3,__extends:()=>f3,__generator:()=>T3,__importDefault:()=>A3,__importStar:()=>b3,__makeTemplateObject:()=>D3,__metadata:()=>y3,__param:()=>h3,__propKey:()=>nwe,__read:()=>ew,__rest:()=>p3,__runInitializers:()=>rwe,__setFunctionName:()=>iwe,__spread:()=>g3,__spreadArray:()=>v3,__spreadArrays:()=>I3,__values:()=>rI,default:()=>swe});function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function p3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function h3(e,t){return function(r,n){t(r,n,e)}}function twe(e,t,r,n,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,D=r.length-1;D>=0;D--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(G){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var M=(0,r[D])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function rwe(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ew(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function g3(){for(var e=[],t=0;t1||u(T,D)})})}function u(T,D){try{l(n[T](D))}catch(R){N(a[0][3],R)}}function l(T){T.value instanceof Zf?Promise.resolve(T.value.v).then(m,h):N(a[0][2],T)}function m(T){u("next",T)}function h(T){u("throw",T)}function N(T,D){T(D),a.shift(),a.length&&u(a[0][0],a[0][1])}}function S3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:Zf(e[i](o)),done:!1}:a?a(o):o}:a}}function O3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof rI=="function"?rI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function D3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function b3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&nI(t,e,r);return awe(t,e),t}function A3(e){return e&&e.__esModule?e:{default:e}}function R3(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function w3(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="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 n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function P3(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 F3(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function L3(e){function t(n){e.error=e.hasError?new owe(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}var ZR,tI,nI,awe,owe,swe,rw=ja(()=>{"use strict";d();p();f();ZR=function(e,t){return ZR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ZR(e,t)};tI=function(){return tI=Object.assign||function(t){for(var r,n=1,i=arguments.length;niW,__assign:()=>iI,__asyncDelegator:()=>H3,__asyncGenerator:()=>z3,__asyncValues:()=>W3,__await:()=>ep,__awaiter:()=>K3,__classPrivateFieldGet:()=>tW,__classPrivateFieldIn:()=>nW,__classPrivateFieldSet:()=>rW,__createBinding:()=>oI,__decorate:()=>U3,__disposeResources:()=>aW,__esDecorate:()=>q3,__exportStar:()=>G3,__extends:()=>C3,__generator:()=>$3,__importDefault:()=>eW,__importStar:()=>Z3,__makeTemplateObject:()=>X3,__metadata:()=>V3,__param:()=>k3,__propKey:()=>M3,__read:()=>aw,__rest:()=>B3,__rewriteRelativeImportExtension:()=>oW,__runInitializers:()=>x3,__setFunctionName:()=>j3,__spread:()=>Q3,__spreadArray:()=>J3,__spreadArrays:()=>Y3,__values:()=>aI,default:()=>lwe});function C3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nw(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function B3(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function k3(e,t){return function(r,n){t(r,n,e)}}function q3(e,t,r,n,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",m=!t&&e?n.static?e:e.prototype:null,h=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),N,T=!1,D=r.length-1;D>=0;D--){var R={};for(var C in n)R[C]=C==="access"?{}:n[C];for(var C in n.access)R.access[C]=n.access[C];R.addInitializer=function(G){if(T)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var M=(0,r[D])(u==="accessor"?{get:h.get,set:h.set}:h[l],R);if(u==="accessor"){if(M===void 0)continue;if(M===null||typeof M!="object")throw new TypeError("Object expected");(N=o(M.get))&&(h.get=N),(N=o(M.set))&&(h.set=N),(N=o(M.init))&&i.unshift(N)}else(N=o(M))&&(u==="field"?i.unshift(N):h[l]=N)}m&&Object.defineProperty(m,n.name,h),T=!0}function x3(e,t,r){for(var n=arguments.length>2,i=0;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aw(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Q3(){for(var e=[],t=0;t1||l(D,C)})},R&&(i[D]=R(i[D])))}function l(D,R){try{m(n[D](R))}catch(C){T(a[0][3],C)}}function m(D){D.value instanceof ep?Promise.resolve(D.value.v).then(h,N):T(a[0][2],D)}function h(D){l("next",D)}function N(D){l("throw",D)}function T(D,R){D(R),a.shift(),a.length&&l(a[0][0],a[0][1])}}function H3(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(o){return(r=!r)?{value:ep(e[i](o)),done:!1}:a?a(o):o}:a}}function W3(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof aI=="function"?aI(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(u,l){o=e[a](o),i(u,l,o.done,o.value)})}}function i(a,o,u,l){Promise.resolve(l).then(function(m){a({value:m,done:u})},o)}}function X3(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Z3(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=iw(e),n=0;n{"use strict";d();p();f();nw=function(e,t){return nw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},nw(e,t)};iI=function(){return iI=Object.assign||function(t){for(var r,n=1,i=arguments.length;n{"use strict";d();p();f()});var tp=O(Ia=>{"use strict";d();p();f();Object.defineProperty(Ia,"__esModule",{value:!0});Ia.asArray=void 0;Ia.isUrl=lW;Ia.isDocumentString=hwe;Ia.isValidPath=Nwe;Ia.compareStrings=dW;Ia.nodeToString=ow;Ia.compareNodes=Twe;Ia.isSome=Ewe;Ia.assertSome=gwe;var dwe=_e(),fwe=/^(https?|wss?|file):\/\//;function lW(e){if(typeof e!="string"||!fwe.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var pwe=e=>Array.isArray(e)?e:e?[e]:[];Ia.asArray=pwe;var mwe=/\.[a-z0-9]+$/i;function hwe(e){if(typeof e!="string"||mwe.test(e)||lW(e))return!1;try{return(0,dwe.parse)(e),!0}catch(t){if(!t.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()!==""&&e.includes(" "))throw new Error(`Failed to parse the GraphQL document. ${t.message} ${e}`)}return!1}var ywe=/[‘“!%^<>`\n]/;function Nwe(e){return typeof e=="string"&&!ywe.test(e)}function dW(e,t){return String(e)String(t)?1:0}function ow(e){var r,n;let t;return"alias"in e&&(t=(r=e.alias)==null?void 0:r.value),t==null&&"name"in e&&(t=(n=e.name)==null?void 0:n.value),t==null&&(t=e.kind),t}function Twe(e,t,r){let n=ow(e),i=ow(t);return typeof r=="function"?r(n,i):dW(n,i)}function Ewe(e){return e!=null}function gwe(e,t="Value should be something"){if(e==null)throw new Error(t)}});var ey=O(uI=>{"use strict";d();p();f();Object.defineProperty(uI,"__esModule",{value:!0});uI.inspect=void 0;var mW=3;function Iwe(e){return sI(e,[])}uI.inspect=Iwe;function sI(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return vwe(e,t);default:return String(e)}}function fW(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function vwe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?fW(e)+` -`+pW(e.errors,t):fW(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if(_we(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:sI(n,r)}else if(Array.isArray(e))return pW(e,r);return Swe(e,r)}function _we(e){return typeof e.toJSON=="function"}function Swe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>mW?"["+Owe(e)+"]":"{ "+r.map(([i,a])=>i+": "+sI(a,t)).join(", ")+" }"}function pW(e,t){if(e.length===0)return"[]";if(t.length>mW)return"[Array]";let r=e.length,n=[];for(let i=0;i{"use strict";d();p();f();Object.defineProperty(cI,"__esModule",{value:!0});cI.createGraphQLError=uw;cI.relocatedError=Awe;var sw=ve(),Dwe=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function bwe(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>Dwe.includes(t))}function uw(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&bwe(t.originalError)&&(t.originalError=uw(t.originalError.message,t.originalError)),sw.versionInfo.major>=17?new sw.GraphQLError(e,t):new sw.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)}function Awe(e,t){return uw(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var ty=O(Ai=>{"use strict";d();p();f();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.isPromise=dI;Ai.isActualPromise=yW;Ai.handleMaybePromise=Jc;Ai.fakePromise=Ko;Ai.createDeferredPromise=Rwe;Ai.iterateAsync=NW;Ai.iterateAsyncVoid=NW;Ai.fakeRejectPromise=id;Ai.mapMaybePromise=wwe;Ai.mapAsyncIterator=Pwe;Ai.promiseLikeFinally=TW;Ai.unfakePromise=EW;var fI=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function dI(e){return(e==null?void 0:e.then)!=null}function yW(e){let t=e;return t&&t.then&&t.catch&&t.finally}function Jc(e,t,r,n){let i=Ko().then(e).then(t,r);return n&&(i=i.finally(n)),EW(i)}function Ko(e){return e&&yW(e)?e:dI(e)?{then:(t,r)=>Ko(e.then(t,r)),catch:t=>Ko(e.then(r=>r,t)),finally:t=>Ko(t?TW(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},catch(){return this},finally(t){if(t)try{return Ko(t()).then(()=>e,()=>e)}catch(r){return id(r)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[fI]:"resolved"}}function Rwe(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,a){e=i,t=a}),get resolve(){return e},get reject(){return t}}}function NW(e,t,r){if((e==null?void 0:e.length)===0)return;let n=e[Symbol.iterator](),i=0;function a(){let{done:o,value:u}=n.next();if(o)return;let l=!1;function m(){l=!0}return Jc(function(){return t(u,m,i++)},function(N){if(N&&(r==null||r.push(N)),!l)return a()})}return a()}function id(e){return{then(t,r){if(r)try{return Ko(r(e))}catch(n){return id(n)}return this},catch(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},finally(t){if(t)try{t()}catch(r){return id(r)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[fI]:"rejected"}}function wwe(e,t,r){return Jc(()=>e,t,r)}function Pwe(e,t,r,n){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(n){let m;o=h=>(m||(m=Jc(n,()=>h,()=>h)),m)}typeof e.return=="function"&&(i=e.return,a=m=>{let h=()=>{throw m};return i.call(e).then(h,h)});function u(m){return m.done?o?o(m):m:Jc(()=>m.value,h=>Jc(()=>t(h),hW,a))}let l;if(r){let m,h=r;l=N=>(m||(m=Jc(()=>N,T=>Jc(()=>h(T),hW,a))),m)}return{next(){return e.next().then(u,l)},return(){let m=i?i.call(e).then(u,l):Ko({value:void 0,done:!0});return o?m.then(o):m},throw(m){return typeof e.throw=="function"?e.throw(m).then(u,l):a?a(m):id(m)},[Symbol.asyncIterator](){return this}}}function hW(e){return{value:e,done:!1}}function Fwe(e){return(e==null?void 0:e[fI])==="resolved"}function Lwe(e){return(e==null?void 0:e[fI])==="rejected"}function TW(e,t){return"finally"in e?e.finally(t):e.then(r=>{let n=t();return dI(n)?n.then(()=>r):r},r=>{let n=t();if(dI(n))return n.then(()=>{throw r});throw r})}function EW(e){if(Fwe(e))return e.__fakePromiseValue;if(Lwe(e))throw e.__fakeRejectError;return e}});var pI=O(zc=>{"use strict";d();p();f();Object.defineProperty(zc,"__esModule",{value:!0});zc.isPromise=void 0;zc.isIterableObject=Cwe;zc.isObjectLike=Bwe;zc.promiseReduce=Uwe;zc.hasOwnProperty=kwe;var gW=ty();Object.defineProperty(zc,"isPromise",{enumerable:!0,get:function(){return gW.isPromise}});function Cwe(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function Bwe(e){return typeof e=="object"&&e!==null}function Uwe(e,t,r){let n=r;for(let i of e)n=(0,gW.handleMaybePromise)(()=>n,a=>t(a,i));return n}function kwe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var dw=O(lw=>{"use strict";d();p();f();Object.defineProperty(lw,"__esModule",{value:!0});lw.getArgumentValues=xwe;var cw=ey(),ad=ve(),mI=lI(),qwe=pI();function xwe(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of required type "${(0,cw.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ad.Kind.NULL;if(N.kind===ad.Kind.VARIABLE){let R=N.name.value;if(r==null||!(0,qwe.hasOwnProperty)(r,R)){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of required type "${(0,cw.inspect)(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of non-null type "${(0,cw.inspect)(l)}" must not be null.`,{nodes:[N]});let D=(0,ad.valueFromAST)(N,l,r);if(D===void 0)throw(0,mI.createGraphQLError)(`Argument "${u}" has invalid value ${(0,ad.print)(N)}.`,{nodes:[N]});n[u]=D}return n}});var Hc=O(Us=>{"use strict";d();p();f();Object.defineProperty(Us,"__esModule",{value:!0});Us.memoize1=Mwe;Us.memoize2=jwe;Us.memoize3=Vwe;Us.memoize4=Kwe;Us.memoize5=$we;Us.memoize2of4=Gwe;Us.memoize2of5=Qwe;function Mwe(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function jwe(e){let t=new WeakMap;return function(n,i){let a=t.get(n);if(!a){a=new WeakMap,t.set(n,a);let u=e(n,i);return a.set(i,u),u}let o=a.get(i);if(o===void 0){let u=e(n,i);return a.set(i,u),u}return o}}function Vwe(e){let t=new WeakMap;return function(n,i,a){let o=t.get(n);if(!o){o=new WeakMap,t.set(n,o);let m=new WeakMap;o.set(i,m);let h=e(n,i,a);return m.set(a,h),h}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let m=e(n,i,a);return u.set(a,m),m}let l=u.get(a);if(l===void 0){let m=e(n,i,a);return u.set(a,m),m}return l}}function Kwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let N=new WeakMap;u.set(i,N);let T=new WeakMap;N.set(a,T);let D=e(n,i,a,o);return T.set(o,D),D}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let m=l.get(a);if(!m){let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let h=m.get(o);if(h===void 0){let N=e(n,i,a,o);return m.set(o,N),N}return h}}function $we(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let D=new WeakMap;l.set(i,D);let R=new WeakMap;D.set(a,R);let C=new WeakMap;R.set(o,C);let M=e(n,i,a,o,u);return C.set(u,M),M}let m=l.get(i);if(!m){m=new WeakMap,l.set(i,m);let D=new WeakMap;m.set(a,D);let R=new WeakMap;D.set(o,R);let C=e(n,i,a,o,u);return R.set(u,C),C}let h=m.get(a);if(!h){h=new WeakMap,m.set(a,h);let D=new WeakMap;h.set(o,D);let R=e(n,i,a,o,u);return D.set(u,R),R}let N=h.get(o);if(!N){N=new WeakMap,h.set(o,N);let D=e(n,i,a,o,u);return N.set(u,D),D}let T=N.get(u);if(T===void 0){let D=e(n,i,a,o,u);return N.set(u,D),D}return T}}function Gwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let m=e(n,i,a,o);return u.set(i,m),m}let l=u.get(i);if(l===void 0){let m=e(n,i,a,o);return u.set(i,m),m}return l}}function Qwe(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let h=e(n,i,a,o,u);return l.set(i,h),h}let m=l.get(i);if(m===void 0){let h=e(n,i,a,o,u);return l.set(i,h),h}return m}}});var pw=O(fw=>{"use strict";d();p();f();Object.defineProperty(fw,"__esModule",{value:!0});fw.getDirectiveExtensions=zwe;var IW=ve(),Ywe=dw(),Jwe=Hc();function zwe(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=(0,Jwe.memoize1)(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=(0,Ywe.getArgumentValues)(N,l)),l.arguments)for(let D of l.arguments){let R=D.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,IW.valueFromAST)(D.value,C.type))}T[R]==null&&(T[R]=(0,IW.valueFromASTUntyped)(D.value))}if(a.length>0&&h.length>0){let D=i(T);if(h.some(R=>i(R)===D))continue}h.push(T)}return n}});var mw=O(rp=>{"use strict";d();p();f();Object.defineProperty(rp,"__esModule",{value:!0});rp.getDirectivesInExtensions=Hwe;rp.getDirectiveInExtensions=Wwe;rp.getDirectives=Xwe;rp.getDirective=Zwe;var hI=pw();function Hwe(e,t=["directives"]){let r=(0,hI.getDirectiveExtensions)(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}function Wwe(e,t,r=["directives"]){return(0,hI.getDirectiveExtensions)(e,void 0,r)[t]}function Xwe(e,t,r=["directives"]){let n=(0,hI.getDirectiveExtensions)(t,e,r);return Object.entries(n).map(([i,a])=>a==null?void 0:a.map(o=>({name:i,args:o}))).flat(1/0).filter(Boolean)}function Zwe(e,t,r,n=["directives"]){return(0,hI.getDirectiveExtensions)(t,e,n)[r]}});var yw=O(hw=>{"use strict";d();p();f();Object.defineProperty(hw,"__esModule",{value:!0});hw.getFieldsWithDirectives=tPe;var ePe=ve();function tPe(e,t={}){let r={},n=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(n=[...n,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>n.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let u of a.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,m=`${o}.${l}`,h=u.directives.map(N=>({name:N.name.value,args:(N.arguments||[]).reduce((T,D)=>G(q({},T),{[D.name.value]:(0,ePe.valueFromASTUntyped)(D.value)}),{})}));r[m]=h}}}return r}});var vW=O(Tw=>{"use strict";d();p();f();Object.defineProperty(Tw,"__esModule",{value:!0});Tw.getArgumentsWithDirectives=nPe;var Nw=ve();function rPe(e){return e.kind===Nw.Kind.OBJECT_TYPE_DEFINITION||e.kind===Nw.Kind.OBJECT_TYPE_EXTENSION}function nPe(e){var n;let t={},r=e.definitions.filter(rPe);for(let i of r)if(i.fields!=null)for(let a of i.fields){let o=(n=a.arguments)==null?void 0:n.filter(l=>{var m;return(m=l.directives)==null?void 0:m.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let m=l.directives.map(h=>({name:h.name.value,args:(h.arguments||[]).reduce((N,T)=>G(q({},N),{[T.name.value]:(0,Nw.valueFromASTUntyped)(T.value)}),{})}));u[l.name.value]=m}}return t}});var gw=O(Ew=>{"use strict";d();p();f();Object.defineProperty(Ew,"__esModule",{value:!0});Ew.getImplementingTypes=iPe;function iPe(e,t){let r=t.getTypeMap(),n=[];for(let i in r){let a=r[i];"getInterfaces"in a&&a.getInterfaces().find(u=>u.name===e)&&n.push(a.name)}return n}});var yI=O(vw=>{"use strict";d();p();f();Object.defineProperty(vw,"__esModule",{value:!0});vw.astFromType=Iw;var aPe=ey(),od=ve();function Iw(e){if((0,od.isNonNullType)(e)){let t=Iw(e.ofType);if(t.kind===od.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,aPe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:od.Kind.NON_NULL_TYPE,type:t}}else if((0,od.isListType)(e))return{kind:od.Kind.LIST_TYPE,type:Iw(e.ofType)};return{kind:od.Kind.NAMED_TYPE,name:{kind:od.Kind.NAME,value:e.name}}}});var ry=O(_w=>{"use strict";d();p();f();Object.defineProperty(_w,"__esModule",{value:!0});_w.astFromValueUntyped=NI;var $o=ve();function NI(e){if(e===null)return{kind:$o.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=NI(r);n!=null&&t.push(n)}return{kind:$o.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return NI(e.toJSON());let t=[];for(let r in e){let n=e[r],i=NI(n);i&&t.push({kind:$o.Kind.OBJECT_FIELD,name:{kind:$o.Kind.NAME,value:r},value:i})}return{kind:$o.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:$o.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:$o.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return oPe.test(t)?{kind:$o.Kind.INT,value:t}:{kind:$o.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:$o.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var oPe=/^-?(?:0|[1-9][0-9]*)$/});var SW=O(Sw=>{"use strict";d();p();f();Object.defineProperty(Sw,"__esModule",{value:!0});Sw.astFromValue=ny;var sPe=ey(),Ji=ve(),uPe=ry(),_W=pI();function ny(e,t){if((0,Ji.isNonNullType)(t)){let r=ny(e,t.ofType);return(r==null?void 0:r.kind)===Ji.Kind.NULL?null:r}if(e===null)return{kind:Ji.Kind.NULL};if(e===void 0)return null;if((0,Ji.isListType)(t)){let r=t.ofType;if((0,_W.isIterableObject)(e)){let n=[];for(let i of e){let a=ny(i,r);a!=null&&n.push(a)}return{kind:Ji.Kind.LIST,values:n}}return ny(e,r)}if((0,Ji.isInputObjectType)(t)){if(!(0,_W.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ny(e[n.name],n.type);i&&r.push({kind:Ji.Kind.OBJECT_FIELD,name:{kind:Ji.Kind.NAME,value:n.name},value:i})}return{kind:Ji.Kind.OBJECT,fields:r}}if((0,Ji.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,Ji.isEnumType)(t)?{kind:Ji.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&cPe.test(r)?{kind:Ji.Kind.INT,value:r}:(0,uPe.astFromValueUntyped)(r)}console.assert(!1,"Unexpected input type: "+(0,sPe.inspect)(t))}var cPe=/^-?(?:0|[1-9][0-9]*)$/});var OW=O(Ow=>{"use strict";d();p();f();Object.defineProperty(Ow,"__esModule",{value:!0});Ow.getDescriptionNode=dPe;var lPe=ve();function dPe(e){var t;if((t=e.astNode)!=null&&t.description)return G(q({},e.astNode.description),{block:!0});if(e.description)return{kind:lPe.Kind.STRING,value:e.description,block:!0}}});var iy=O(va=>{"use strict";d();p();f();Object.defineProperty(va,"__esModule",{value:!0});va.getRootTypeMap=va.getRootTypes=va.getRootTypeNames=void 0;va.getDefinedRootType=pPe;var fPe=lI(),Dw=Hc();function pPe(e,t,r){let i=(0,va.getRootTypeMap)(e).get(t);if(i==null)throw(0,fPe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:r});return i}va.getRootTypeNames=(0,Dw.memoize1)(function(t){let r=(0,va.getRootTypes)(t);return new Set([...r].map(n=>n.name))});va.getRootTypes=(0,Dw.memoize1)(function(t){let r=(0,va.getRootTypeMap)(t);return new Set(r.values())});va.getRootTypeMap=(0,Dw.memoize1)(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r})});var Pw=O(Tn=>{"use strict";d();p();f();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getDocumentNodeFromSchema=bW;Tn.printSchemaWithDirectives=NPe;Tn.astFromSchema=AW;Tn.astFromDirective=RW;Tn.getDirectiveNodes=io;Tn.astFromArg=Aw;Tn.astFromObjectType=wW;Tn.astFromInterfaceType=PW;Tn.astFromUnionType=FW;Tn.astFromInputObjectType=LW;Tn.astFromEnumType=CW;Tn.astFromScalarType=BW;Tn.astFromField=Rw;Tn.astFromInputField=UW;Tn.astFromEnumValue=kW;Tn.makeDeprecatedDirective=qW;Tn.makeDirectiveNode=np;Tn.makeDirectiveNodes=ww;var Et=ve(),sd=yI(),bw=SW(),mPe=ry(),_a=OW(),DW=mw(),hPe=tp(),yPe=iy();function bW(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=AW(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,Et.isSpecifiedDirective)(u)||a.push(RW(u,e,r));for(let u in n){let l=n[u],m=(0,Et.isSpecifiedScalarType)(l),h=(0,Et.isIntrospectionType)(l);if(!(m||h))if((0,Et.isObjectType)(l))a.push(wW(l,e,r));else if((0,Et.isInterfaceType)(l))a.push(PW(l,e,r));else if((0,Et.isUnionType)(l))a.push(FW(l,e,r));else if((0,Et.isInputObjectType)(l))a.push(LW(l,e,r));else if((0,Et.isEnumType)(l))a.push(CW(l,e,r));else if((0,Et.isScalarType)(l))a.push(BW(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:Et.Kind.DOCUMENT,definitions:a}}function NPe(e,t={}){let r=bW(e,t);return(0,Et.print)(r)}function AW(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=(0,yPe.getRootTypeMap)(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=(0,sd.astFromType)(N);h!=null?h.type=T:r.set(m,{kind:Et.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(hPe.isSome),o=io(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?Et.Kind.SCHEMA_DEFINITION:Et.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,_a.getDescriptionNode)(e);return l&&(u.description=l),u}function RW(e,t,r){var n,i;return{kind:Et.Kind.DIRECTIVE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>Aw(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:Et.Kind.NAME,value:a})))||[]}}function io(e,t,r){let n=[],i=(0,DW.getDirectivesInExtensions)(e,r),a;i!=null&&(a=ww(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>Et.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=qW(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=np("specifiedBy",h)}return e.isOneOf&&l==null&&(l=np("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function Aw(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(n=(0,bw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0,directives:io(e,t,r)}}function wW(e,t,r){return{kind:Et.Kind.OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>Rw(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>(0,sd.astFromType)(n)),directives:io(e,t,r)}}function PW(e,t,r){let n={kind:Et.Kind.INTERFACE_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Rw(i,t,r)),directives:io(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>(0,sd.astFromType)(i))),n}function FW(e,t,r){return{kind:Et.Kind.UNION_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r),types:e.getTypes().map(n=>(0,sd.astFromType)(n))}}function LW(e,t,r){return{kind:Et.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>UW(n,t,r)),directives:io(e,t,r)}}function CW(e,t,r){return{kind:Et.Kind.ENUM_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>kW(n,t,r)),directives:io(e,t,r)}}function BW(e,t,r){let n=(0,DW.getDirectivesInExtensions)(e,r),i=ww(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(np("specifiedBy",o))}return{kind:Et.Kind.SCALAR_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:i}}function Rw(e,t,r){return{kind:Et.Kind.FIELD_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:e.args.map(n=>Aw(n,t,r)),type:(0,sd.astFromType)(e.type),directives:io(e,t,r)}}function UW(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),directives:io(e,t,r),defaultValue:(n=(0,bw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0}}function kW(e,t,r){return{kind:Et.Kind.ENUM_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r)}}function qW(e){return np("deprecated",{reason:e},Et.GraphQLDeprecatedDirective)}function np(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=(0,bw.astFromValue)(a,u.type))}o==null&&(o=(0,mPe.astFromValueUntyped)(a)),o!=null&&n.push({kind:Et.Kind.ARGUMENT,name:{kind:Et.Kind.NAME,value:i},value:o})}return{kind:Et.Kind.DIRECTIVE,name:{kind:Et.Kind.NAME,value:e},arguments:n}}function ww(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(np(n,i,a))}return r}});var MW=O(TI=>{"use strict";d();p();f();Object.defineProperty(TI,"__esModule",{value:!0});TI.validateGraphQlDocuments=TPe;TI.createDefaultRules=xW;var ay=ve();function TPe(e,t,r=xW()){var u;let n=new Set,i=new Map;for(let l of t)for(let m of l.definitions)m.kind===ay.Kind.FRAGMENT_DEFINITION?i.set(m.name.value,m):n.add(m);let a={kind:ay.Kind.DOCUMENT,definitions:Array.from([...n,...i.values()])},o=(0,ay.validate)(e,a,r);for(let l of o)if(l.stack=l.message,l.locations)for(let m of l.locations)l.stack+=` - at ${(u=l.source)==null?void 0:u.name}:${m.line}:${m.column}`;return o}function xW(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return ay.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),ay.specifiedRules.filter(t=>!e.includes(t.name))}});var jW=O(Fw=>{"use strict";d();p();f();Object.defineProperty(Fw,"__esModule",{value:!0});Fw.parseGraphQLJSON=vPe;var EPe=ve();function gPe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function IPe(e){return JSON.parse(gPe(e))}function vPe(e,t,r){let n=IPe(t);if(n.data&&(n=n.data),n.kind==="Document")return{location:e,document:n};if(n.__schema){let i=(0,EPe.buildClientSchema)(n,r);return{location:e,schema:i}}else if(typeof n=="string")return{location:e,rawSDL:n};throw new Error("Not valid JSON content")}});var Cw=O(Sa=>{"use strict";d();p();f();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.resetComments=SPe;Sa.collectComment=OPe;Sa.pushComment=oy;Sa.printComment=QW;Sa.printWithComments=RPe;Sa.getDescription=PPe;Sa.getComment=Lw;Sa.getLeadingCommentBlock=YW;Sa.dedentBlockStringValue=JW;Sa.getBlockStringIndentation=zW;var GW=ve(),_Pe=80,ip={};function SPe(){ip={}}function OPe(e){var r;let t=(r=e.name)==null?void 0:r.value;if(t!=null)switch(oy(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let n of e.values)oy(n,t,n.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let n of e.fields)if(oy(n,t,n.name.value),wPe(n)&&n.arguments)for(let i of n.arguments)oy(i,t,n.name.value,i.name.value)}break}}function oy(e,t,r,n){let i=Lw(e);if(typeof i!="string"||i.length===0)return;let a=[t];r&&(a.push(r),n&&a.push(n));let o=a.join(".");ip[o]||(ip[o]=[]),ip[o].push(i)}function QW(e){return` +`+pW(e.errors,t):fW(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if(_we(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:sI(n,r)}else if(Array.isArray(e))return pW(e,r);return Swe(e,r)}function _we(e){return typeof e.toJSON=="function"}function Swe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>mW?"["+Owe(e)+"]":"{ "+r.map(([i,a])=>i+": "+sI(a,t)).join(", ")+" }"}function pW(e,t){if(e.length===0)return"[]";if(t.length>mW)return"[Array]";let r=e.length,n=[];for(let i=0;i{"use strict";d();p();f();Object.defineProperty(cI,"__esModule",{value:!0});cI.createGraphQLError=uw;cI.relocatedError=Awe;var sw=_e(),Dwe=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function bwe(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>Dwe.includes(t))}function uw(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&bwe(t.originalError)&&(t.originalError=uw(t.originalError.message,t.originalError)),sw.versionInfo.major>=17?new sw.GraphQLError(e,t):new sw.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)}function Awe(e,t){return uw(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var ty=O(Ai=>{"use strict";d();p();f();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.isPromise=dI;Ai.isActualPromise=yW;Ai.handleMaybePromise=Jc;Ai.fakePromise=Ko;Ai.createDeferredPromise=Rwe;Ai.iterateAsync=NW;Ai.iterateAsyncVoid=NW;Ai.fakeRejectPromise=id;Ai.mapMaybePromise=wwe;Ai.mapAsyncIterator=Pwe;Ai.promiseLikeFinally=TW;Ai.unfakePromise=EW;var fI=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function dI(e){return(e==null?void 0:e.then)!=null}function yW(e){let t=e;return t&&t.then&&t.catch&&t.finally}function Jc(e,t,r,n){let i=Ko().then(e).then(t,r);return n&&(i=i.finally(n)),EW(i)}function Ko(e){return e&&yW(e)?e:dI(e)?{then:(t,r)=>Ko(e.then(t,r)),catch:t=>Ko(e.then(r=>r,t)),finally:t=>Ko(t?TW(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},catch(){return this},finally(t){if(t)try{return Ko(t()).then(()=>e,()=>e)}catch(r){return id(r)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[fI]:"resolved"}}function Rwe(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,a){e=i,t=a}),get resolve(){return e},get reject(){return t}}}function NW(e,t,r){if((e==null?void 0:e.length)===0)return;let n=e[Symbol.iterator](),i=0;function a(){let{done:o,value:u}=n.next();if(o)return;let l=!1;function m(){l=!0}return Jc(function(){return t(u,m,i++)},function(N){if(N&&(r==null||r.push(N)),!l)return a()})}return a()}function id(e){return{then(t,r){if(r)try{return Ko(r(e))}catch(n){return id(n)}return this},catch(t){if(t)try{return Ko(t(e))}catch(r){return id(r)}return this},finally(t){if(t)try{t()}catch(r){return id(r)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[fI]:"rejected"}}function wwe(e,t,r){return Jc(()=>e,t,r)}function Pwe(e,t,r,n){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(n){let m;o=h=>(m||(m=Jc(n,()=>h,()=>h)),m)}typeof e.return=="function"&&(i=e.return,a=m=>{let h=()=>{throw m};return i.call(e).then(h,h)});function u(m){return m.done?o?o(m):m:Jc(()=>m.value,h=>Jc(()=>t(h),hW,a))}let l;if(r){let m,h=r;l=N=>(m||(m=Jc(()=>N,T=>Jc(()=>h(T),hW,a))),m)}return{next(){return e.next().then(u,l)},return(){let m=i?i.call(e).then(u,l):Ko({value:void 0,done:!0});return o?m.then(o):m},throw(m){return typeof e.throw=="function"?e.throw(m).then(u,l):a?a(m):id(m)},[Symbol.asyncIterator](){return this}}}function hW(e){return{value:e,done:!1}}function Fwe(e){return(e==null?void 0:e[fI])==="resolved"}function Lwe(e){return(e==null?void 0:e[fI])==="rejected"}function TW(e,t){return"finally"in e?e.finally(t):e.then(r=>{let n=t();return dI(n)?n.then(()=>r):r},r=>{let n=t();if(dI(n))return n.then(()=>{throw r});throw r})}function EW(e){if(Fwe(e))return e.__fakePromiseValue;if(Lwe(e))throw e.__fakeRejectError;return e}});var pI=O(zc=>{"use strict";d();p();f();Object.defineProperty(zc,"__esModule",{value:!0});zc.isPromise=void 0;zc.isIterableObject=Cwe;zc.isObjectLike=Bwe;zc.promiseReduce=Uwe;zc.hasOwnProperty=kwe;var gW=ty();Object.defineProperty(zc,"isPromise",{enumerable:!0,get:function(){return gW.isPromise}});function Cwe(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function Bwe(e){return typeof e=="object"&&e!==null}function Uwe(e,t,r){let n=r;for(let i of e)n=(0,gW.handleMaybePromise)(()=>n,a=>t(a,i));return n}function kwe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var dw=O(lw=>{"use strict";d();p();f();Object.defineProperty(lw,"__esModule",{value:!0});lw.getArgumentValues=xwe;var cw=ey(),ad=_e(),mI=lI(),qwe=pI();function xwe(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>Q(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of required type "${(0,cw.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ad.Kind.NULL;if(N.kind===ad.Kind.VARIABLE){let R=N.name.value;if(r==null||!(0,qwe.hasOwnProperty)(r,R)){if(m!==void 0)n[u]=m;else if((0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of required type "${(0,cw.inspect)(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ad.isNonNullType)(l))throw(0,mI.createGraphQLError)(`Argument "${u}" of non-null type "${(0,cw.inspect)(l)}" must not be null.`,{nodes:[N]});let D=(0,ad.valueFromAST)(N,l,r);if(D===void 0)throw(0,mI.createGraphQLError)(`Argument "${u}" has invalid value ${(0,ad.print)(N)}.`,{nodes:[N]});n[u]=D}return n}});var Hc=O(Us=>{"use strict";d();p();f();Object.defineProperty(Us,"__esModule",{value:!0});Us.memoize1=Mwe;Us.memoize2=jwe;Us.memoize3=Vwe;Us.memoize4=Kwe;Us.memoize5=$we;Us.memoize2of4=Gwe;Us.memoize2of5=Qwe;function Mwe(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function jwe(e){let t=new WeakMap;return function(n,i){let a=t.get(n);if(!a){a=new WeakMap,t.set(n,a);let u=e(n,i);return a.set(i,u),u}let o=a.get(i);if(o===void 0){let u=e(n,i);return a.set(i,u),u}return o}}function Vwe(e){let t=new WeakMap;return function(n,i,a){let o=t.get(n);if(!o){o=new WeakMap,t.set(n,o);let m=new WeakMap;o.set(i,m);let h=e(n,i,a);return m.set(a,h),h}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let m=e(n,i,a);return u.set(a,m),m}let l=u.get(a);if(l===void 0){let m=e(n,i,a);return u.set(a,m),m}return l}}function Kwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let N=new WeakMap;u.set(i,N);let T=new WeakMap;N.set(a,T);let D=e(n,i,a,o);return T.set(o,D),D}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let m=l.get(a);if(!m){let N=new WeakMap;l.set(a,N);let T=e(n,i,a,o);return N.set(o,T),T}let h=m.get(o);if(h===void 0){let N=e(n,i,a,o);return m.set(o,N),N}return h}}function $we(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let D=new WeakMap;l.set(i,D);let R=new WeakMap;D.set(a,R);let C=new WeakMap;R.set(o,C);let M=e(n,i,a,o,u);return C.set(u,M),M}let m=l.get(i);if(!m){m=new WeakMap,l.set(i,m);let D=new WeakMap;m.set(a,D);let R=new WeakMap;D.set(o,R);let C=e(n,i,a,o,u);return R.set(u,C),C}let h=m.get(a);if(!h){h=new WeakMap,m.set(a,h);let D=new WeakMap;h.set(o,D);let R=e(n,i,a,o,u);return D.set(u,R),R}let N=h.get(o);if(!N){N=new WeakMap,h.set(o,N);let D=e(n,i,a,o,u);return N.set(u,D),D}let T=N.get(u);if(T===void 0){let D=e(n,i,a,o,u);return N.set(u,D),D}return T}}function Gwe(e){let t=new WeakMap;return function(n,i,a,o){let u=t.get(n);if(!u){u=new WeakMap,t.set(n,u);let m=e(n,i,a,o);return u.set(i,m),m}let l=u.get(i);if(l===void 0){let m=e(n,i,a,o);return u.set(i,m),m}return l}}function Qwe(e){let t=new WeakMap;return function(n,i,a,o,u){let l=t.get(n);if(!l){l=new WeakMap,t.set(n,l);let h=e(n,i,a,o,u);return l.set(i,h),h}let m=l.get(i);if(m===void 0){let h=e(n,i,a,o,u);return l.set(i,h),h}return m}}});var pw=O(fw=>{"use strict";d();p();f();Object.defineProperty(fw,"__esModule",{value:!0});fw.getDirectiveExtensions=zwe;var IW=_e(),Ywe=dw(),Jwe=Hc();function zwe(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=(0,Jwe.memoize1)(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=(0,Ywe.getArgumentValues)(N,l)),l.arguments)for(let D of l.arguments){let R=D.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,IW.valueFromAST)(D.value,C.type))}T[R]==null&&(T[R]=(0,IW.valueFromASTUntyped)(D.value))}if(a.length>0&&h.length>0){let D=i(T);if(h.some(R=>i(R)===D))continue}h.push(T)}return n}});var mw=O(rp=>{"use strict";d();p();f();Object.defineProperty(rp,"__esModule",{value:!0});rp.getDirectivesInExtensions=Hwe;rp.getDirectiveInExtensions=Wwe;rp.getDirectives=Xwe;rp.getDirective=Zwe;var hI=pw();function Hwe(e,t=["directives"]){let r=(0,hI.getDirectiveExtensions)(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}function Wwe(e,t,r=["directives"]){return(0,hI.getDirectiveExtensions)(e,void 0,r)[t]}function Xwe(e,t,r=["directives"]){let n=(0,hI.getDirectiveExtensions)(t,e,r);return Object.entries(n).map(([i,a])=>a==null?void 0:a.map(o=>({name:i,args:o}))).flat(1/0).filter(Boolean)}function Zwe(e,t,r,n=["directives"]){return(0,hI.getDirectiveExtensions)(t,e,n)[r]}});var yw=O(hw=>{"use strict";d();p();f();Object.defineProperty(hw,"__esModule",{value:!0});hw.getFieldsWithDirectives=tPe;var ePe=_e();function tPe(e,t={}){let r={},n=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(n=[...n,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>n.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let u of a.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,m=`${o}.${l}`,h=u.directives.map(N=>({name:N.name.value,args:(N.arguments||[]).reduce((T,D)=>Q(q({},T),{[D.name.value]:(0,ePe.valueFromASTUntyped)(D.value)}),{})}));r[m]=h}}}return r}});var vW=O(Tw=>{"use strict";d();p();f();Object.defineProperty(Tw,"__esModule",{value:!0});Tw.getArgumentsWithDirectives=nPe;var Nw=_e();function rPe(e){return e.kind===Nw.Kind.OBJECT_TYPE_DEFINITION||e.kind===Nw.Kind.OBJECT_TYPE_EXTENSION}function nPe(e){var n;let t={},r=e.definitions.filter(rPe);for(let i of r)if(i.fields!=null)for(let a of i.fields){let o=(n=a.arguments)==null?void 0:n.filter(l=>{var m;return(m=l.directives)==null?void 0:m.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let m=l.directives.map(h=>({name:h.name.value,args:(h.arguments||[]).reduce((N,T)=>Q(q({},N),{[T.name.value]:(0,Nw.valueFromASTUntyped)(T.value)}),{})}));u[l.name.value]=m}}return t}});var gw=O(Ew=>{"use strict";d();p();f();Object.defineProperty(Ew,"__esModule",{value:!0});Ew.getImplementingTypes=iPe;function iPe(e,t){let r=t.getTypeMap(),n=[];for(let i in r){let a=r[i];"getInterfaces"in a&&a.getInterfaces().find(u=>u.name===e)&&n.push(a.name)}return n}});var yI=O(vw=>{"use strict";d();p();f();Object.defineProperty(vw,"__esModule",{value:!0});vw.astFromType=Iw;var aPe=ey(),od=_e();function Iw(e){if((0,od.isNonNullType)(e)){let t=Iw(e.ofType);if(t.kind===od.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,aPe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:od.Kind.NON_NULL_TYPE,type:t}}else if((0,od.isListType)(e))return{kind:od.Kind.LIST_TYPE,type:Iw(e.ofType)};return{kind:od.Kind.NAMED_TYPE,name:{kind:od.Kind.NAME,value:e.name}}}});var ry=O(_w=>{"use strict";d();p();f();Object.defineProperty(_w,"__esModule",{value:!0});_w.astFromValueUntyped=NI;var $o=_e();function NI(e){if(e===null)return{kind:$o.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=NI(r);n!=null&&t.push(n)}return{kind:$o.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return NI(e.toJSON());let t=[];for(let r in e){let n=e[r],i=NI(n);i&&t.push({kind:$o.Kind.OBJECT_FIELD,name:{kind:$o.Kind.NAME,value:r},value:i})}return{kind:$o.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:$o.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:$o.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return oPe.test(t)?{kind:$o.Kind.INT,value:t}:{kind:$o.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:$o.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var oPe=/^-?(?:0|[1-9][0-9]*)$/});var SW=O(Sw=>{"use strict";d();p();f();Object.defineProperty(Sw,"__esModule",{value:!0});Sw.astFromValue=ny;var sPe=ey(),Ji=_e(),uPe=ry(),_W=pI();function ny(e,t){if((0,Ji.isNonNullType)(t)){let r=ny(e,t.ofType);return(r==null?void 0:r.kind)===Ji.Kind.NULL?null:r}if(e===null)return{kind:Ji.Kind.NULL};if(e===void 0)return null;if((0,Ji.isListType)(t)){let r=t.ofType;if((0,_W.isIterableObject)(e)){let n=[];for(let i of e){let a=ny(i,r);a!=null&&n.push(a)}return{kind:Ji.Kind.LIST,values:n}}return ny(e,r)}if((0,Ji.isInputObjectType)(t)){if(!(0,_W.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ny(e[n.name],n.type);i&&r.push({kind:Ji.Kind.OBJECT_FIELD,name:{kind:Ji.Kind.NAME,value:n.name},value:i})}return{kind:Ji.Kind.OBJECT,fields:r}}if((0,Ji.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,Ji.isEnumType)(t)?{kind:Ji.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&cPe.test(r)?{kind:Ji.Kind.INT,value:r}:(0,uPe.astFromValueUntyped)(r)}console.assert(!1,"Unexpected input type: "+(0,sPe.inspect)(t))}var cPe=/^-?(?:0|[1-9][0-9]*)$/});var OW=O(Ow=>{"use strict";d();p();f();Object.defineProperty(Ow,"__esModule",{value:!0});Ow.getDescriptionNode=dPe;var lPe=_e();function dPe(e){var t;if((t=e.astNode)!=null&&t.description)return Q(q({},e.astNode.description),{block:!0});if(e.description)return{kind:lPe.Kind.STRING,value:e.description,block:!0}}});var iy=O(va=>{"use strict";d();p();f();Object.defineProperty(va,"__esModule",{value:!0});va.getRootTypeMap=va.getRootTypes=va.getRootTypeNames=void 0;va.getDefinedRootType=pPe;var fPe=lI(),Dw=Hc();function pPe(e,t,r){let i=(0,va.getRootTypeMap)(e).get(t);if(i==null)throw(0,fPe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:r});return i}va.getRootTypeNames=(0,Dw.memoize1)(function(t){let r=(0,va.getRootTypes)(t);return new Set([...r].map(n=>n.name))});va.getRootTypes=(0,Dw.memoize1)(function(t){let r=(0,va.getRootTypeMap)(t);return new Set(r.values())});va.getRootTypeMap=(0,Dw.memoize1)(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r})});var Pw=O(Tn=>{"use strict";d();p();f();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getDocumentNodeFromSchema=bW;Tn.printSchemaWithDirectives=NPe;Tn.astFromSchema=AW;Tn.astFromDirective=RW;Tn.getDirectiveNodes=io;Tn.astFromArg=Aw;Tn.astFromObjectType=wW;Tn.astFromInterfaceType=PW;Tn.astFromUnionType=FW;Tn.astFromInputObjectType=LW;Tn.astFromEnumType=CW;Tn.astFromScalarType=BW;Tn.astFromField=Rw;Tn.astFromInputField=UW;Tn.astFromEnumValue=kW;Tn.makeDeprecatedDirective=qW;Tn.makeDirectiveNode=np;Tn.makeDirectiveNodes=ww;var Et=_e(),sd=yI(),bw=SW(),mPe=ry(),_a=OW(),DW=mw(),hPe=tp(),yPe=iy();function bW(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=AW(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,Et.isSpecifiedDirective)(u)||a.push(RW(u,e,r));for(let u in n){let l=n[u],m=(0,Et.isSpecifiedScalarType)(l),h=(0,Et.isIntrospectionType)(l);if(!(m||h))if((0,Et.isObjectType)(l))a.push(wW(l,e,r));else if((0,Et.isInterfaceType)(l))a.push(PW(l,e,r));else if((0,Et.isUnionType)(l))a.push(FW(l,e,r));else if((0,Et.isInputObjectType)(l))a.push(LW(l,e,r));else if((0,Et.isEnumType)(l))a.push(CW(l,e,r));else if((0,Et.isScalarType)(l))a.push(BW(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:Et.Kind.DOCUMENT,definitions:a}}function NPe(e,t={}){let r=bW(e,t);return(0,Et.print)(r)}function AW(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=(0,yPe.getRootTypeMap)(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=(0,sd.astFromType)(N);h!=null?h.type=T:r.set(m,{kind:Et.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(hPe.isSome),o=io(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?Et.Kind.SCHEMA_DEFINITION:Et.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,_a.getDescriptionNode)(e);return l&&(u.description=l),u}function RW(e,t,r){var n,i;return{kind:Et.Kind.DIRECTIVE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>Aw(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:Et.Kind.NAME,value:a})))||[]}}function io(e,t,r){let n=[],i=(0,DW.getDirectivesInExtensions)(e,r),a;i!=null&&(a=ww(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>Et.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=qW(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=np("specifiedBy",h)}return e.isOneOf&&l==null&&(l=np("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function Aw(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(n=(0,bw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0,directives:io(e,t,r)}}function wW(e,t,r){return{kind:Et.Kind.OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>Rw(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>(0,sd.astFromType)(n)),directives:io(e,t,r)}}function PW(e,t,r){let n={kind:Et.Kind.INTERFACE_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Rw(i,t,r)),directives:io(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>(0,sd.astFromType)(i))),n}function FW(e,t,r){return{kind:Et.Kind.UNION_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r),types:e.getTypes().map(n=>(0,sd.astFromType)(n))}}function LW(e,t,r){return{kind:Et.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>UW(n,t,r)),directives:io(e,t,r)}}function CW(e,t,r){return{kind:Et.Kind.ENUM_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>kW(n,t,r)),directives:io(e,t,r)}}function BW(e,t,r){let n=(0,DW.getDirectivesInExtensions)(e,r),i=ww(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(np("specifiedBy",o))}return{kind:Et.Kind.SCALAR_TYPE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:i}}function Rw(e,t,r){return{kind:Et.Kind.FIELD_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},arguments:e.args.map(n=>Aw(n,t,r)),type:(0,sd.astFromType)(e.type),directives:io(e,t,r)}}function UW(e,t,r){var n;return{kind:Et.Kind.INPUT_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},type:(0,sd.astFromType)(e.type),directives:io(e,t,r),defaultValue:(n=(0,bw.astFromValue)(e.defaultValue,e.type))!=null?n:void 0}}function kW(e,t,r){return{kind:Et.Kind.ENUM_VALUE_DEFINITION,description:(0,_a.getDescriptionNode)(e),name:{kind:Et.Kind.NAME,value:e.name},directives:io(e,t,r)}}function qW(e){return np("deprecated",{reason:e},Et.GraphQLDeprecatedDirective)}function np(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=(0,bw.astFromValue)(a,u.type))}o==null&&(o=(0,mPe.astFromValueUntyped)(a)),o!=null&&n.push({kind:Et.Kind.ARGUMENT,name:{kind:Et.Kind.NAME,value:i},value:o})}return{kind:Et.Kind.DIRECTIVE,name:{kind:Et.Kind.NAME,value:e},arguments:n}}function ww(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(np(n,i,a))}return r}});var MW=O(TI=>{"use strict";d();p();f();Object.defineProperty(TI,"__esModule",{value:!0});TI.validateGraphQlDocuments=TPe;TI.createDefaultRules=xW;var ay=_e();function TPe(e,t,r=xW()){var u;let n=new Set,i=new Map;for(let l of t)for(let m of l.definitions)m.kind===ay.Kind.FRAGMENT_DEFINITION?i.set(m.name.value,m):n.add(m);let a={kind:ay.Kind.DOCUMENT,definitions:Array.from([...n,...i.values()])},o=(0,ay.validate)(e,a,r);for(let l of o)if(l.stack=l.message,l.locations)for(let m of l.locations)l.stack+=` + at ${(u=l.source)==null?void 0:u.name}:${m.line}:${m.column}`;return o}function xW(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return ay.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),ay.specifiedRules.filter(t=>!e.includes(t.name))}});var jW=O(Fw=>{"use strict";d();p();f();Object.defineProperty(Fw,"__esModule",{value:!0});Fw.parseGraphQLJSON=vPe;var EPe=_e();function gPe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function IPe(e){return JSON.parse(gPe(e))}function vPe(e,t,r){let n=IPe(t);if(n.data&&(n=n.data),n.kind==="Document")return{location:e,document:n};if(n.__schema){let i=(0,EPe.buildClientSchema)(n,r);return{location:e,schema:i}}else if(typeof n=="string")return{location:e,rawSDL:n};throw new Error("Not valid JSON content")}});var Cw=O(Sa=>{"use strict";d();p();f();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.resetComments=SPe;Sa.collectComment=OPe;Sa.pushComment=oy;Sa.printComment=QW;Sa.printWithComments=RPe;Sa.getDescription=PPe;Sa.getComment=Lw;Sa.getLeadingCommentBlock=YW;Sa.dedentBlockStringValue=JW;Sa.getBlockStringIndentation=zW;var GW=_e(),_Pe=80,ip={};function SPe(){ip={}}function OPe(e){var r;let t=(r=e.name)==null?void 0:r.value;if(t!=null)switch(oy(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let n of e.values)oy(n,t,n.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let n of e.fields)if(oy(n,t,n.name.value),wPe(n)&&n.arguments)for(let i of n.arguments)oy(i,t,n.name.value,i.name.value)}break}}function oy(e,t,r,n){let i=Lw(e);if(typeof i!="string"||i.length===0)return;let a=[t];r&&(a.push(r),n&&a.push(n));let o=a.join(".");ip[o]||(ip[o]=[]),ip[o].push(i)}function QW(e){return` # `+e.replace(/\n/g,` # `)}function $e(e,t){return e?e.filter(r=>r).join(t||""):""}function VW(e){var t;return(t=e==null?void 0:e.some(r=>r.includes(` `)))!=null?t:!1}function DPe(e){return(t,r,n,i,a)=>{var h;let o=[],u=i.reduce((N,T)=>(["fields","arguments","values"].includes(T)&&N.name&&o.push(N.name.value),N[T]),a[0]),l=[...o,(h=u==null?void 0:u.name)==null?void 0:h.value].filter(Boolean).join("."),m=[];return t.kind.includes("Definition")&&ip[l]&&m.push(...ip[l]),$e([...m.map(QW),t.description,e(t,r,n,i,a)],` @@ -237,17 +237,17 @@ ${t?r:sy(r)} )`):jr("(",$e(t,", "),")"))+": "+r+jr(" ",$e(n," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:r,directives:n})=>$e([e+": "+t,jr("= ",r),$e(n," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["interface",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:r})=>$e(["union",e,$e(t," "),jr("= ",$e(r," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:r})=>$e(["enum",e,$e(t," "),ao(r)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>$e([e,$e(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:r})=>$e(["input",e,$e(t," "),ao(r)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:r,locations:n})=>"directive @"+e+(VW(t)?jr(`( `,sy($e(t,` `)),` -)`):jr("(",$e(t,", "),")"))+(r?" repeatable":"")+" on "+$e(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$e(["extend schema",$e(e," "),ao(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$e(["extend scalar",e,$e(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend type",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend interface",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>$e(["extend union",e,$e(t," "),jr("= ",$e(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>$e(["extend enum",e,$e(t," "),ao(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>$e(["extend input",e,$e(t," "),ao(r)]," ")}},APe=Object.keys(KW).reduce((e,t)=>G(q({},e),{[t]:{leave:DPe(KW[t].leave)}}),{});function RPe(e){return(0,GW.visit)(e,APe)}function wPe(e){return e.kind==="FieldDefinition"}function PPe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return Lw(e)}function Lw(e){let t=YW(e);if(t!==void 0)return JW(` +)`):jr("(",$e(t,", "),")"))+(r?" repeatable":"")+" on "+$e(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$e(["extend schema",$e(e," "),ao(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$e(["extend scalar",e,$e(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend type",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$e(["extend interface",e,jr("implements ",$e(t," & ")),$e(r," "),ao(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>$e(["extend union",e,$e(t," "),jr("= ",$e(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>$e(["extend enum",e,$e(t," "),ao(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>$e(["extend input",e,$e(t," "),ao(r)]," ")}},APe=Object.keys(KW).reduce((e,t)=>Q(q({},e),{[t]:{leave:DPe(KW[t].leave)}}),{});function RPe(e){return(0,GW.visit)(e,APe)}function wPe(e){return e.kind==="FieldDefinition"}function PPe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return Lw(e)}function Lw(e){let t=YW(e);if(t!==void 0)return JW(` ${t}`)}function YW(e){let t=e.loc;if(!t)return;let r=[],n=t.startToken.prev;for(;n!=null&&n.kind===GW.TokenKind.COMMENT&&n.next!=null&&n.prev!=null&&n.line+1===n.next.line&&n.line!==n.prev.line;){let i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join(` `):void 0}function JW(e){let t=e.split(/\r\n|[\n\r]/g),r=zW(t);if(r!==0)for(let n=1;n0&&$W(t[0]);)t.shift();for(;t.length>0&&$W(t[t.length-1]);)t.pop();return t.join(` -`)}function zW(e){let t=null;for(let r=1;r{"use strict";d();p();f();Object.defineProperty(uy,"__esModule",{value:!0});uy.parseGraphQLSDL=FPe;uy.transformCommentsToDescriptions=XW;uy.isDescribable=ZW;var Oa=ve(),WW=Cw();function FPe(e,t,r={}){let n;try{r.commentDescriptions&&t.includes("#")?(n=XW(t,r),r.noLocation&&(n=(0,Oa.parse)((0,Oa.print)(n),r))):n=(0,Oa.parse)(new Oa.Source(t,e),r)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")n={kind:Oa.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:n}}function XW(e,t={}){let r=(0,Oa.parse)(e,G(q({},t),{noLocation:!1}));return(0,Oa.visit)(r,{leave:i=>{if(ZW(i)){let a=(0,WW.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,WW.dedentBlockStringValue)(` +`)}function zW(e){let t=null;for(let r=1;r{"use strict";d();p();f();Object.defineProperty(uy,"__esModule",{value:!0});uy.parseGraphQLSDL=FPe;uy.transformCommentsToDescriptions=XW;uy.isDescribable=ZW;var Oa=_e(),WW=Cw();function FPe(e,t,r={}){let n;try{r.commentDescriptions&&t.includes("#")?(n=XW(t,r),r.noLocation&&(n=(0,Oa.parse)((0,Oa.print)(n),r))):n=(0,Oa.parse)(new Oa.Source(t,e),r)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")n={kind:Oa.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:n}}function XW(e,t={}){let r=(0,Oa.parse)(e,Q(q({},t),{noLocation:!1}));return(0,Oa.visit)(r,{leave:i=>{if(ZW(i)){let a=(0,WW.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,WW.dedentBlockStringValue)(` `+a),u=o.includes(` -`);return i.description?G(q({},i),{description:G(q({},i.description),{value:i.description.value+` -`+o,block:!0})}):G(q({},i),{description:{kind:Oa.Kind.STRING,value:o,block:u}})}}}})}function ZW(e){return(0,Oa.isTypeSystemDefinitionNode)(e)||e.kind===Oa.Kind.FIELD_DEFINITION||e.kind===Oa.Kind.INPUT_VALUE_DEFINITION||e.kind===Oa.Kind.ENUM_VALUE_DEFINITION}});var u6=O(qw=>{"use strict";d();p();f();Object.defineProperty(qw,"__esModule",{value:!0});qw.buildOperationNodeForField=CPe;var yt=ve(),LPe=ry(),i6=iy(),kw=[],EI=new Map;function a6(e){kw.push(e)}function t6(){kw=[]}function r6(){EI=new Map}function CPe({schema:e,kind:t,field:r,models:n,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){t6(),r6();let m=(0,i6.getRootTypeNames)(e),h=BPe({schema:e,fieldName:r,kind:t,models:n||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:m});return h.variableDefinitions=[...kw],t6(),r6(),h}function BPe({schema:e,fieldName:t,kind:r,models:n,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:m}){let h=(0,i6.getDefinedRootType)(e,r),N=h.getFields()[t],T=`${t}_${r}`;if(N.args)for(let D of N.args){let R=D.name;(!u||u.includes(R))&&a6(o6(D,R))}return{kind:yt.Kind.OPERATION_DEFINITION,operation:r,name:{kind:yt.Kind.NAME,value:T},variableDefinitions:[],selectionSet:{kind:yt.Kind.SELECTION_SET,selections:[s6({type:h,field:N,models:n,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:m})]}}}function Uw({parent:e,type:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D}){if(!(typeof T=="boolean"&&h>u)){if((0,yt.isUnionType)(t)){let R=t.getTypes();return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!Bw([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Uw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D})})).filter(C=>{var M,Y;return((Y=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:Y.length)>0})}}if((0,yt.isInterfaceType)(t)){let R=Object.values(m.getTypeMap()).filter(C=>(0,yt.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!Bw([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Uw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D})})).filter(C=>{var M,Y;return((Y=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:Y.length)>0})}}if((0,yt.isObjectType)(t)&&!D.has(t.name)){let R=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=r.includes(t.name);if(!n&&C&&!R)return{kind:yt.Kind.SELECTION_SET,selections:[{kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:"id"}}]};let M=t.getFields();return{kind:yt.Kind.SELECTION_SET,selections:Object.keys(M).filter(Y=>!Bw([...a,(0,yt.getNamedType)(M[Y].type)],{depth:l})).map(Y=>{let ee=typeof T=="object"?T[Y]:!0;return ee?s6({type:t,field:M[Y],models:r,path:[...i,Y],ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:ee,rootTypeNames:D}):null}).filter(Y=>{var ee,ae;return Y==null?!1:"selectionSet"in Y?!!((ae=(ee=Y.selectionSet)==null?void 0:ee.selections)!=null&&ae.length):!0})}}}}function o6(e,t){function r(i){return(0,yt.isListType)(i)?{kind:yt.Kind.LIST_TYPE,type:r(i.ofType)}:(0,yt.isNonNullType)(i)?{kind:yt.Kind.NON_NULL_TYPE,type:r(i.ofType)}:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:i.name}}}let n;try{let i=(0,yt.astFromValue)(e.defaultValue,e.type);i==null?n=void 0:n=i}catch(i){let a=(0,LPe.astFromValueUntyped)(e.defaultValue);a==null?n=void 0:n=a}return{kind:yt.Kind.VARIABLE_DEFINITION,variable:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:t||e.name}},type:r(e.type),defaultValue:n}}function n6(e,t){return[...t,e].join("_")}function s6({type:e,field:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D}){let R=(0,yt.getNamedType)(t.type),C=[],M=!1;if(t.args&&t.args.length&&(C=t.args.map(Ne=>{let _e=n6(Ne.name,i);return N&&!N.includes(_e)?((0,yt.isNonNullType)(Ne.type)&&(M=!0),null):(n||a6(o6(Ne,_e)),{kind:yt.Kind.ARGUMENT,name:{kind:yt.Kind.NAME,value:Ne.name},value:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:n6(Ne.name,i)}}})}).filter(Boolean)),M)return null;let Y=[...i,t.name],ee=Y.join("."),ae=t.name;return EI.has(ee)&&EI.get(ee)!==t.type.toString()&&(ae+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),EI.set(ee,t.type.toString()),!(0,yt.isScalarType)(R)&&!(0,yt.isEnumType)(R)?G(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{selectionSet:Uw({parent:e,type:R,models:r,firstCall:n,path:Y,ancestors:[...a,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h+1,argNames:N,selectedFields:T,rootTypeNames:D})||void 0,arguments:C}):G(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{arguments:C})}function Bw(e,t={depth:1}){let r=e[e.length-1];return(0,yt.isScalarType)(r)?!1:e.filter(i=>i.name===r.name).length>t.depth}});var l6=O(gI=>{"use strict";d();p();f();Object.defineProperty(gI,"__esModule",{value:!0});gI.DirectiveLocation=void 0;var c6;(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"})(c6||(gI.DirectiveLocation=c6={}))});var ud=O(II=>{"use strict";d();p();f();Object.defineProperty(II,"__esModule",{value:!0});II.MapperKind=void 0;var d6;(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"})(d6||(II.MapperKind=d6={}))});var Mw=O(xw=>{"use strict";d();p();f();Object.defineProperty(xw,"__esModule",{value:!0});xw.getObjectTypeFromTypeMap=kPe;var UPe=ve();function kPe(e,t){if(t){let r=e[t.name];if((0,UPe.isObjectType)(r))return r}}});var Kw=O(ap=>{"use strict";d();p();f();Object.defineProperty(ap,"__esModule",{value:!0});ap.createNamedStub=jw;ap.createStub=Vw;ap.isNamedStub=qPe;ap.getBuiltInForStub=xPe;var xn=ve();function jw(e,t){let r;return t==="object"?r=xn.GraphQLObjectType:t==="interface"?r=xn.GraphQLInterfaceType:r=xn.GraphQLInputObjectType,new r({name:e,fields:{_fake:{type:xn.GraphQLString}}})}function Vw(e,t){switch(e.kind){case xn.Kind.LIST_TYPE:return new xn.GraphQLList(Vw(e.type,t));case xn.Kind.NON_NULL_TYPE:return new xn.GraphQLNonNull(Vw(e.type,t));default:return t==="output"?jw(e.name.value,"object"):jw(e.name.value,"input")}}function qPe(e){if("getFields"in e){let t=e.getFields();for(let r in t)return t[r].name==="_fake"}return!1}function xPe(e){switch(e.name){case xn.GraphQLInt.name:return xn.GraphQLInt;case xn.GraphQLFloat.name:return xn.GraphQLFloat;case xn.GraphQLString.name:return xn.GraphQLString;case xn.GraphQLBoolean.name:return xn.GraphQLBoolean;case xn.GraphQLID.name:return xn.GraphQLID;default:return e}}});var vI=O($w=>{"use strict";d();p();f();Object.defineProperty($w,"__esModule",{value:!0});$w.rewireTypes=MPe;var En=ve(),f6=Kw();function MPe(e,t){let r=Object.create(null);for(let T in e)r[T]=e[T];let n=Object.create(null);for(let T in r){let D=r[T];if(D==null||T.startsWith("__"))continue;let R=D.name;if(!R.startsWith("__")){if(n[R]!=null){console.warn(`Duplicate schema type name ${R} found; keeping the existing one found in the schema`);continue}n[R]=D}}for(let T in n)n[T]=u(n[T]);let i=t.map(T=>a(T));return{typeMap:n,directives:i};function a(T){if((0,En.isSpecifiedDirective)(T))return T;let D=T.toConfig();return D.args=o(D.args),new En.GraphQLDirective(D)}function o(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,D[R]=C)}return D}function u(T){if((0,En.isObjectType)(T)){let D=T.toConfig(),R=G(q({},D),{fields:()=>l(D.fields),interfaces:()=>h(D.interfaces)});return new En.GraphQLObjectType(R)}else if((0,En.isInterfaceType)(T)){let D=T.toConfig(),R=G(q({},D),{fields:()=>l(D.fields)});return"interfaces"in R&&(R.interfaces=()=>h(D.interfaces)),new En.GraphQLInterfaceType(R)}else if((0,En.isUnionType)(T)){let D=T.toConfig(),R=G(q({},D),{types:()=>h(D.types)});return new En.GraphQLUnionType(R)}else if((0,En.isInputObjectType)(T)){let D=T.toConfig(),R=G(q({},D),{fields:()=>m(D.fields)});return new En.GraphQLInputObjectType(R)}else if((0,En.isEnumType)(T)){let D=T.toConfig();return new En.GraphQLEnumType(D)}else if((0,En.isScalarType)(T)){if((0,En.isSpecifiedScalarType)(T))return T;let D=T.toConfig();return new En.GraphQLScalarType(D)}throw new Error(`Unexpected schema type: ${T}`)}function l(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&C.args&&(C.type=M,C.args=o(C.args),D[R]=C)}return D}function m(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,D[R]=C)}return D}function h(T){let D=[];for(let R of T){let C=N(R);C!=null&&D.push(C)}return D}function N(T){if((0,En.isListType)(T)){let D=N(T.ofType);return D!=null?new En.GraphQLList(D):null}else if((0,En.isNonNullType)(T)){let D=N(T.ofType);return D!=null?new En.GraphQLNonNull(D):null}else if((0,En.isNamedType)(T)){let D=r[T.name];return D===void 0&&(D=(0,f6.isNamedStub)(T)?(0,f6.getBuiltInForStub)(T):u(T),n[D.name]=r[T.name]=D),D!=null?n[D.name]:null}return null}}});var Gw=O(sp=>{"use strict";d();p();f();Object.defineProperty(sp,"__esModule",{value:!0});sp.transformInputValue=op;sp.serializeInputValue=VPe;sp.parseInputValue=KPe;sp.parseInputValueLiteral=$Pe;var _I=ve(),jPe=tp();function op(e,t,r=null,n=null){if(t==null)return t;let i=(0,_I.getNullableType)(e);if((0,_I.isLeafType)(i))return r!=null?r(i,t):t;if((0,_I.isListType)(i))return(0,jPe.asArray)(t).map(a=>op(i.ofType,a,r,n));if((0,_I.isInputObjectType)(i)){let a=i.getFields(),o={};for(let u in t){let l=a[u];l!=null&&(o[u]=op(l.type,t[u],r,n))}return n!=null?n(i,o):o}}function VPe(e,t){return op(e,t,(r,n)=>{try{return r.serialize(n)}catch(i){return n}})}function KPe(e,t){return op(e,t,(r,n)=>{try{return r.parseValue(n)}catch(i){return n}})}function $Pe(e,t){return op(e,t,(r,n)=>r.parseLiteral(n,{}))}});var cp=O(OI=>{"use strict";d();p();f();Object.defineProperty(OI,"__esModule",{value:!0});OI.mapSchema=QPe;OI.correctASTNodes=cy;var ft=ve(),up=Mw(),qt=ud(),GPe=vI(),p6=Gw();function QPe(e,t={}){let r=y6(h6(Qw(m6(JPe(Qw(m6(e.getTypeMap(),e,p6.serializeInputValue),e,t,u=>(0,ft.isLeafType)(u)),e,t),e,p6.parseInputValue),e,t,u=>!(0,ft.isLeafType)(u)),e,t),e,t),n=e.getDirectives(),i=zPe(n,e,t),{typeMap:a,directives:o}=(0,GPe.rewireTypes)(r,i);return new ft.GraphQLSchema(G(q({},e.toConfig()),{query:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getQueryType())),mutation:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getMutationType())),subscription:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var YPe=["String","ID","Int","Float","Boolean"];function Qw(e,t,r,n=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!YPe.includes(a)){let o=e[a];if(o==null||!n(o)){i[a]=o;continue}let u=WPe(t,r,a);if(u==null){i[a]=o;continue}let l=u(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function JPe(e,t,r){let n=rFe(r);return n?Qw(e,t,{[qt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,u={};for(let l in o){let m=o[l],h=n(m,i.name,t,l);if(h===void 0)u[l]=m;else if(Array.isArray(h)){let[N,T]=h;u[N]=T===void 0?m:T}else h!==null&&(u[l]=h)}return cy(new ft.GraphQLEnumType(G(q({},a),{values:u})))}},i=>(0,ft.isEnumType)(i)):e}function m6(e,t,r){let n=y6(e,t,{[qt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=SI(e,i.type);if(a!=null)return G(q({},i),{defaultValue:r(a,i.defaultValue)})}});return h6(n,t,{[qt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=SI(n,i.type);if(a!=null)return G(q({},i),{defaultValue:r(a,i.defaultValue)})}})}function SI(e,t){if((0,ft.isListType)(t)){let r=SI(e,t.ofType);return r!=null?new ft.GraphQLList(r):null}else if((0,ft.isNonNullType)(t)){let r=SI(e,t.ofType);return r!=null?new ft.GraphQLNonNull(r):null}else if((0,ft.isNamedType)(t)){let r=e[t.name];return r!=null?r:null}return null}function h6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)&&!(0,ft.isInputObjectType)(a)){n[i]=a;continue}let o=ZPe(t,r,i);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=o(N,h,i,t);if(T===void 0)m[h]=N;else if(Array.isArray(T)){let[D,R]=T;R.astNode!=null&&(R.astNode=G(q({},R.astNode),{name:G(q({},R.astNode.name),{value:D})})),m[D]=R===void 0?N:R}else T!==null&&(m[h]=T)}(0,ft.isObjectType)(a)?n[i]=cy(new ft.GraphQLObjectType(G(q({},u),{fields:m}))):(0,ft.isInterfaceType)(a)?n[i]=cy(new ft.GraphQLInterfaceType(G(q({},u),{fields:m}))):n[i]=cy(new ft.GraphQLInputObjectType(G(q({},u),{fields:m})))}return n}function y6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)){n[i]=a;continue}let o=eFe(r);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=N.args;if(T==null){m[h]=N;continue}let D=Object.keys(T);if(!D.length){m[h]=N;continue}let R={};for(let C of D){let M=T[C],Y=o(M,h,i,t);if(Y===void 0)R[C]=M;else if(Array.isArray(Y)){let[ee,ae]=Y;R[ee]=ae}else Y!==null&&(R[C]=Y)}m[h]=G(q({},N),{args:R})}(0,ft.isObjectType)(a)?n[i]=new ft.GraphQLObjectType(G(q({},u),{fields:m})):(0,ft.isInterfaceType)(a)?n[i]=new ft.GraphQLInterfaceType(G(q({},u),{fields:m})):n[i]=new ft.GraphQLInputObjectType(G(q({},u),{fields:m}))}return n}function zPe(e,t,r){let n=tFe(r);if(n==null)return e.slice();let i=[];for(let a of e){let o=n(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function HPe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.TYPE];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.SUBSCRIPTION)):(0,ft.isInputObjectType)(r)?n.push(qt.MapperKind.INPUT_OBJECT_TYPE):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.INTERFACE_TYPE):(0,ft.isUnionType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.UNION_TYPE):(0,ft.isEnumType)(r)?n.push(qt.MapperKind.ENUM_TYPE):(0,ft.isScalarType)(r)&&n.push(qt.MapperKind.SCALAR_TYPE),n}function WPe(e,t,r){let n=HPe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function XPe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.FIELD];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.INTERFACE_FIELD):(0,ft.isInputObjectType)(r)&&n.push(qt.MapperKind.INPUT_OBJECT_FIELD),n}function ZPe(e,t,r){let n=XPe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function eFe(e){let t=e[qt.MapperKind.ARGUMENT];return t!=null?t:null}function tFe(e){let t=e[qt.MapperKind.DIRECTIVE];return t!=null?t:null}function rFe(e){let t=e[qt.MapperKind.ENUM_VALUE];return t!=null?t:null}function cy(e){if((0,ft.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLObjectType(t)}else if((0,ft.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.INTERFACE_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInterfaceType(t)}else if((0,ft.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{kind:ft.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{kind:ft.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInputObjectType(t)}else if((0,ft.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.values){let i=t.values[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=G(q({},t.astNode),{values:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>G(q({},r),{values:void 0}))),new ft.GraphQLEnumType(t)}else return e}});var N6=O(zw=>{"use strict";d();p();f();Object.defineProperty(zw,"__esModule",{value:!0});zw.filterSchema=iFe;var DI=ve(),oo=ud(),nFe=cp();function iFe({schema:e,typeFilter:t=()=>!0,fieldFilter:r=void 0,rootFieldFilter:n=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0,directiveFilter:l=void 0,enumValueFilter:m=void 0}){return(0,nFe.mapSchema)(e,{[oo.MapperKind.QUERY]:N=>Yw(N,"Query",n,u),[oo.MapperKind.MUTATION]:N=>Yw(N,"Mutation",n,u),[oo.MapperKind.SUBSCRIPTION]:N=>Yw(N,"Subscription",n,u),[oo.MapperKind.OBJECT_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLObjectType,N,i||r,u):null,[oo.MapperKind.INTERFACE_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLInterfaceType,N,a||r,u):null,[oo.MapperKind.INPUT_OBJECT_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLInputObjectType,N,o||r):null,[oo.MapperKind.UNION_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.ENUM_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.SCALAR_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.DIRECTIVE]:N=>l&&!l(N.name,N)?null:void 0,[oo.MapperKind.ENUM_VALUE]:(N,T,D,R)=>m&&!m(T,R,N)?null:void 0})}function Yw(e,t,r,n){if(r||n){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t,a,i.fields[a]))delete i.fields[a];else if(n&&o.args)for(let u in o.args)n(e.name,a,u,o.args[u])||delete o.args[u]}return new DI.GraphQLObjectType(i)}return e}function Jw(e,t,r,n){if(r||n){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t.name,a,i.fields[a]))delete i.fields[a];else if(n&&"args"in o)for(let u in o.args)n(t.name,a,u,o.args[u])||delete o.args[u]}return new e(i)}}});var E6=O(bI=>{"use strict";d();p();f();Object.defineProperty(bI,"__esModule",{value:!0});bI.healSchema=aFe;bI.healTypes=T6;var Go=ve();function aFe(e){return T6(e.getTypeMap(),e.getDirectives()),e}function T6(e,t){let r=Object.create(null);for(let m in e){let h=e[m];if(h==null||m.startsWith("__"))continue;let N=h.name;if(!N.startsWith("__")){if(r[N]!=null){console.warn(`Duplicate schema type name ${N} found; keeping the existing one found in the schema`);continue}r[N]=h}}for(let m in r){let h=r[m];e[m]=h}for(let m of t)m.args=m.args.filter(h=>(h.type=l(h.type),h.type!==null));for(let m in e){let h=e[m];!m.startsWith("__")&&m in r&&h!=null&&n(h)}for(let m in e)!m.startsWith("__")&&!(m in r)&&delete e[m];function n(m){if((0,Go.isObjectType)(m)){i(m),a(m);return}else if((0,Go.isInterfaceType)(m)){i(m),"getInterfaces"in m&&a(m);return}else if((0,Go.isUnionType)(m)){u(m);return}else if((0,Go.isInputObjectType)(m)){o(m);return}else if((0,Go.isLeafType)(m))return;throw new Error(`Unexpected schema type: ${m}`)}function i(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.args.map(D=>(D.type=l(D.type),D.type===null?null:D)).filter(Boolean),T.type=l(T.type),T.type===null&&delete h[N]}function a(m){if("getInterfaces"in m){let h=m.getInterfaces();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}}function o(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.type=l(T.type),T.type===null&&delete h[N]}function u(m){let h=m.getTypes();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}function l(m){if((0,Go.isListType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLList(h):null}else if((0,Go.isNonNullType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLNonNull(h):null}else if((0,Go.isNamedType)(m)){let h=e[m.name];if(h&&m!==h)return h}return m}}});var g6=O(Hw=>{"use strict";d();p();f();Object.defineProperty(Hw,"__esModule",{value:!0});Hw.getResolversFromSchema=oFe;var cd=ve();function oFe(e,t){var i,a;let r=Object.create(null),n=e.getTypeMap();for(let o in n)if(!o.startsWith("__")){let u=n[o];if((0,cd.isScalarType)(u)){if(!(0,cd.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,r[o]=new cd.GraphQLScalarType(l)}}else if((0,cd.isEnumType)(u)){r[o]={};let l=u.getValues();for(let m of l)r[o][m.name]=m.value}else if((0,cd.isInterfaceType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isUnionType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isObjectType)(u)){r[o]={},u.isTypeOf!=null&&(r[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let m in l){let h=l[m];if(h.subscribe!=null&&(r[o][m]=r[o][m]||{},r[o][m].subscribe=h.subscribe),h.resolve!=null&&((i=h.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=h.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}r[o][m]=r[o][m]||{},r[o][m].resolve=h.resolve}}}}return r}});var v6=O(Ww=>{"use strict";d();p();f();Object.defineProperty(Ww,"__esModule",{value:!0});Ww.forEachField=sFe;var I6=ve();function sFe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,I6.getNamedType)(i).name.startsWith("__")&&(0,I6.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];t(u,n,o)}}}}});var _6=O(Zw=>{"use strict";d();p();f();Object.defineProperty(Zw,"__esModule",{value:!0});Zw.forEachDefaultValue=uFe;var Xw=ve();function uFe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,Xw.getNamedType)(i).name.startsWith("__")){if((0,Xw.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,Xw.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}});var nP=O(rP=>{"use strict";d();p();f();Object.defineProperty(rP,"__esModule",{value:!0});rP.addTypes=lFe;var eP=ve(),tP=Mw(),cFe=vI();function lFe(e,t){let r=e.toConfig(),n={};for(let u of r.types)n[u.name]=u;let i={};for(let u of r.directives)i[u.name]=u;for(let u of t)(0,eP.isNamedType)(u)?n[u.name]=u:(0,eP.isDirective)(u)&&(i[u.name]=u);let{typeMap:a,directives:o}=(0,cFe.rewireTypes)(n,Object.values(i));return new eP.GraphQLSchema(G(q({},r),{query:(0,tP.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,tP.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,tP.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var O6=O(iP=>{"use strict";d();p();f();Object.defineProperty(iP,"__esModule",{value:!0});iP.pruneSchema=hFe;var gn=ve(),dFe=gw(),fFe=ud(),pFe=cp(),mFe=iy();function hFe(e,t={}){let{skipEmptyCompositeTypePruning:r,skipEmptyUnionPruning:n,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let m=yFe(l);if(i){let h=[];for(let N in l.getTypeMap()){if(N.startsWith("__"))continue;let T=l.getType(N);T&&i(T)&&h.push(N)}m=S6(h,l,m)}u=[],l=(0,pFe.mapSchema)(l,{[fFe.MapperKind.TYPE]:h=>!m.has(h.name)&&!(0,gn.isSpecifiedScalarType)(h)?((0,gn.isUnionType)(h)||(0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h)||(0,gn.isScalarType)(h))&&(o||(0,gn.isUnionType)(h)&&n&&!Object.keys(h.getTypes()).length||((0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h))&&r&&!Object.keys(h.getFields()).length||(0,gn.isInterfaceType)(h)&&a)?h:(u.push(h.name),m.delete(h.name),null):h})}while(u.length);return l}function yFe(e){let t=[];for(let r of(0,mFe.getRootTypes)(e))t.push(r.name);return S6(t,e)}function S6(e,t,r=new Set){let n=new Map;for(;e.length;){let i=e.pop();if(r.has(i)&&n[i]!==!0)continue;let a=t.getType(i);if(a){if((0,gn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,gn.isInterfaceType)(a)&&n[i]===!0&&(e.push(...(0,dFe.getImplementingTypes)(a.name,t)),n[i]=!1),(0,gn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>AI(t,o))),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,gn.isObjectType)(a)&&e.push(...l.args.flatMap(h=>{let N=[(0,gn.getNamedType)(h.type).name];return N.push(...AI(t,h)),N}));let m=(0,gn.getNamedType)(l.type);e.push(m.name),e.push(...AI(t,l)),(0,gn.isInterfaceType)(m)&&!(m.name in n)&&(n[m.name]=!0)}}e.push(...AI(t,a)),r.add(i)}}return r}function AI(e,t){var n,i;let r=new Set;if((n=t.astNode)!=null&&n.directives)for(let a of t.astNode.directives){let o=e.getDirective(a.name.value);if(o!=null&&o.args)for(let u of o.args){let l=(0,gn.getNamedType)(u.type);r.add(l.name)}}if((i=t.extensions)!=null&&i.directives)for(let a in t.extensions.directives){let o=e.getDirective(a);if(o!=null&&o.args)for(let u of o.args){let l=(0,gn.getNamedType)(u.type);r.add(l.name)}}return[...r]}});var oP=O(aP=>{"use strict";d();p();f();Object.defineProperty(aP,"__esModule",{value:!0});aP.mergeDeep=RI;var NFe=tp();function RI(e,t=!1,r=!1,n=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,a=!0,o=e.every(m=>{if(Array.isArray(m)){if(i===void 0)return i=m.length,!0;if(i===m.length)return!0}else a=!1;return!1});if(n&&o)return new Array(i).fill(null).map((m,h)=>RI(e.map(N=>N[h]),t,r,n));if(a)return e.flat(1);let u,l;t&&(l=e.find(m=>D6(m)),l&&(u==null&&(u={}),Object.setPrototypeOf(u,Object.create(Object.getPrototypeOf(l)))));for(let m of e)if(m!=null)if(D6(m)){if(l){let h=Object.getPrototypeOf(u),N=Object.getPrototypeOf(m);if(N)for(let T of Object.getOwnPropertyNames(N)){let D=Object.getOwnPropertyDescriptor(N,T);(0,NFe.isSome)(D)&&Object.defineProperty(h,T,D)}}for(let h in m)u==null&&(u={}),h in u?u[h]=RI([u[h],m[h]],t,r,n):u[h]=m[h]}else Array.isArray(m)&&Array.isArray(u)?u=RI([u,m],t,r,n):u=m;return u}function D6(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var b6=O(sP=>{"use strict";d();p();f();Object.defineProperty(sP,"__esModule",{value:!0});sP.parseSelectionSet=EFe;var TFe=ve();function EFe(e,t){return(0,TFe.parse)(e,t).definitions[0].selectionSet}});var A6=O(uP=>{"use strict";d();p();f();Object.defineProperty(uP,"__esModule",{value:!0});uP.getResponseKeyFromInfo=gFe;function gFe(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var R6=O(lp=>{"use strict";d();p();f();Object.defineProperty(lp,"__esModule",{value:!0});lp.appendObjectFields=vFe;lp.removeObjectFields=_Fe;lp.selectObjectFields=SFe;lp.modifyObjectFields=OFe;var wI=ve(),IFe=nP(),PI=ud(),ld=cp();function vFe(e,t,r){return e.getType(t)==null?(0,IFe.addTypes)(e,[new wI.GraphQLObjectType({name:t,fields:r})]):(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:n=>{if(n.name===t){let i=n.toConfig(),a=i.fields,o={};for(let u in a)o[u]=a[u];for(let u in r)o[u]=r[u];return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(G(q({},i),{fields:o})))}}})}function _Fe(e,t,r){let n={};return[(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),u=o.fields,l={};for(let m in u){let h=u[m];r(m,h)?n[m]=h:l[m]=h}return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(G(q({},o),{fields:l})))}}}),n]}function SFe(e,t,r){let n={};return(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];r(u,l)&&(n[u]=l)}}}}),n}function OFe(e,t,r,n){let i={};return[(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h];r(h,N)?i[h]=N:m[h]=N}for(let h in n){let N=n[h];m[h]=N}return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(G(q({},u),{fields:m})))}}}),i]}});var w6=O(cP=>{"use strict";d();p();f();Object.defineProperty(cP,"__esModule",{value:!0});cP.renameType=DFe;var Da=ve();function DFe(e,t){if((0,Da.isObjectType)(e))return new Da.GraphQLObjectType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isInterfaceType)(e))return new Da.GraphQLInterfaceType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isUnionType)(e))return new Da.GraphQLUnionType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isInputObjectType)(e))return new Da.GraphQLInputObjectType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isEnumType)(e))return new Da.GraphQLEnumType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));if((0,Da.isScalarType)(e))return new Da.GraphQLScalarType(G(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(q({},e.astNode),{name:G(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>G(q({},r),{name:G(q({},r.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var P6=O(FI=>{"use strict";d();p();f();Object.defineProperty(FI,"__esModule",{value:!0});FI.updateArgument=AFe;FI.createVariableNameGenerator=RFe;var dd=ve(),bFe=yI();function AFe(e,t,r,n,i,a,o){if(e[n]={kind:dd.Kind.ARGUMENT,name:{kind:dd.Kind.NAME,value:n},value:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}}},t[i]={kind:dd.Kind.VARIABLE_DEFINITION,variable:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}},type:(0,bFe.astFromType)(a)},o!==void 0){r[i]=o;return}i in r&&delete r[i]}function RFe(e){let t=0;return r=>{let n;do n=t===0?r:`_v${t.toString()}_${r}`,t++;while(n in e);return n}}});var F6=O(dP=>{"use strict";d();p();f();Object.defineProperty(dP,"__esModule",{value:!0});dP.implementsAbstractType=wFe;var lP=ve();function wFe(e,t,r){return r==null||t==null?!1:t===r?!0:(0,lP.isCompositeType)(t)&&(0,lP.isCompositeType)(r)?(0,lP.doTypesOverlap)(e,t,r):!1}});var C6=O(fP=>{"use strict";d();p();f();Object.defineProperty(fP,"__esModule",{value:!0});fP.observableToAsyncIterable=PFe;var L6=ty();function PFe(e){let t=[],r=[],n=!0,i=h=>{t.length!==0?t.shift()({value:h,done:!1}):r.push({value:h,done:!1})},a=h=>{t.length!==0?t.shift()({value:{errors:[h]},done:!1}):r.push({value:{errors:[h]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):r.push({done:!0})},u=()=>new Promise(h=>{if(r.length!==0){let N=r.shift();h(N)}else t.push(h)}),l=e.subscribe({next(h){return i(h)},error(h){return a(h)},complete(){return o()}}),m=()=>{if(n){n=!1,l.unsubscribe();for(let h of t)h({value:void 0,done:!0});t.length=0,r.length=0}};return{next(){return n?u():this.return()},return(){return m(),(0,L6.fakePromise)({value:void 0,done:!0})},throw(h){return m(),(0,L6.fakeRejectPromise)(h)},[Symbol.asyncIterator](){return this}}}});var B6=O(LI=>{"use strict";d();p();f();Object.defineProperty(LI,"__esModule",{value:!0});LI.AccumulatorMap=void 0;var pP=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};LI.AccumulatorMap=pP});var mP=O(dp=>{"use strict";d();p();f();Object.defineProperty(dp,"__esModule",{value:!0});dp.GraphQLStreamDirective=dp.GraphQLDeferDirective=void 0;var ba=ve();dp.GraphQLDeferDirective=new ba.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FRAGMENT_SPREAD,ba.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"}}});dp.GraphQLStreamDirective=new ba.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FIELD],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:ba.GraphQLInt,description:"Number of items to return immediately"}}})});var NP=O(ks=>{"use strict";d();p();f();Object.defineProperty(ks,"__esModule",{value:!0});ks.collectSubFields=void 0;ks.collectFields=CFe;ks.shouldIncludeNode=CI;ks.doesFragmentConditionMatch=hP;ks.getFieldEntryKey=U6;ks.getDeferValues=yP;var Qo=ve(),BI=B6(),FFe=mP(),LFe=Hc();function fp(e,t,r,n,i,a,o,u){for(let l of i.selections)switch(l.kind){case Qo.Kind.FIELD:{if(!CI(r,l))continue;a.add(U6(l),l);break}case Qo.Kind.INLINE_FRAGMENT:{if(!CI(r,l)||!hP(e,l,n))continue;let m=yP(r,l);if(m){let h=new BI.AccumulatorMap;fp(e,t,r,n,l.selectionSet,h,o,u),o.push({label:m.label,fields:h})}else fp(e,t,r,n,l.selectionSet,a,o,u);break}case Qo.Kind.FRAGMENT_SPREAD:{let m=l.name.value;if(!CI(r,l))continue;let h=yP(r,l);if(u.has(m)&&!h)continue;let N=t[m];if(!N||!hP(e,N,n))continue;if(h||u.add(m),h){let T=new BI.AccumulatorMap;fp(e,t,r,n,N.selectionSet,T,o,u),o.push({label:h.label,fields:T})}else fp(e,t,r,n,N.selectionSet,a,o,u);break}}}function CFe(e,t,r,n,i){let a=new BI.AccumulatorMap,o=[];return fp(e,t,r,n,i,a,o,new Set),{fields:a,patches:o}}function CI(e,t){let r=(0,Qo.getDirectiveValues)(Qo.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,Qo.getDirectiveValues)(Qo.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function hP(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,Qo.typeFromAST)(e,n);return i===r?!0:(0,Qo.isAbstractType)(i)?e.getPossibleTypes(i).includes(r):!1}function U6(e){return e.alias?e.alias.value:e.name.value}function yP(e,t){let r=(0,Qo.getDirectiveValues)(FFe.GraphQLDeferDirective,t,e);if(r&&r.if!==!1)return{label:typeof r.label=="string"?r.label:void 0}}ks.collectSubFields=(0,LFe.memoize5)(function(t,r,n,i,a){let o=new BI.AccumulatorMap,u=new Set,l=[],m={fields:o,patches:l};for(let h of a)h.selectionSet&&fp(t,r,n,i,h.selectionSet,o,l,u);return m})});var TP=O(ly=>{"use strict";d();p();f();Object.defineProperty(ly,"__esModule",{value:!0});ly.getOperationASTFromRequest=void 0;ly.getOperationASTFromDocument=k6;var BFe=ve(),UFe=Hc();function k6(e,t){let r=(0,BFe.getOperationAST)(e,t);if(!r)throw new Error(`Cannot infer operation ${t||""}`);return r}ly.getOperationASTFromRequest=(0,UFe.memoize1)(function(t){return k6(t.document,t.operationName)})});var M6=O(dy=>{"use strict";d();p();f();Object.defineProperty(dy,"__esModule",{value:!0});dy.visitData=gP;dy.visitErrors=qFe;dy.visitResult=xFe;var Wc=ve(),EP=NP(),kFe=TP();function gP(e,t,r){if(Array.isArray(e))return e.map(n=>gP(n,t,r));if(typeof e=="object"){let n=t!=null?t(e):e;if(n!=null)for(let i in n){let a=n[i];Object.defineProperty(n,i,{value:gP(a,t,r)})}return r!=null?r(n):n}return e}function qFe(e,t){return e.map(r=>t(r))}function xFe(e,t,r,n,i){let a=t.document.definitions.reduce((T,D)=>(D.kind===Wc.Kind.FRAGMENT_DEFINITION&&(T[D.name.value]=D),T),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,m=e.errors,h=m!=null&&i!=null,N=(0,kFe.getOperationASTFromRequest)(t);return l!=null&&N!=null&&(e.data=VFe(l,N,r,a,o,n,h?m:void 0,u)),m!=null&&i&&(e.errors=MFe(m,i,u)),e}function MFe(e,t,r){let n=r.segmentInfoMap,i=r.unpathedErrors,a=t.__unpathed;return e.map(o=>{let u=n.get(o),l=u==null?o:u.reduceRight((m,h)=>{let N=h.type.name,T=t[N];if(T==null)return m;let D=T[h.fieldName];return D==null?m:D(m,h.pathIndex)},o);return a&&i.has(o)?a(l):l})}function jFe(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function VFe(e,t,r,n,i,a,o,u){let l=jFe(r,t),{fields:m}=(0,EP.collectFields)(r,n,i,l,t.selectionSet);return IP(e,l,m,r,n,i,a,0,o,u)}function IP(e,t,r,n,i,a,o,u,l,m){var ee;let h=t.getFields(),N=o==null?void 0:o[t.name],T=N==null?void 0:N.__enter,D=T!=null?T(e):e,R,C=null;if(l!=null){R=$Fe(l,u),C=R.errorMap;for(let ae of R.unpathedErrors)m.unpathedErrors.add(ae)}for(let[ae,Ne]of r){let _e=Ne[0].name.value,Le=(ee=h[_e])==null?void 0:ee.type;if(Le==null)switch(_e){case"__typename":Le=Wc.TypeNameMetaFieldDef.type;break;case"__schema":Le=Wc.SchemaMetaFieldDef.type;break;case"__type":Le=Wc.TypeMetaFieldDef.type;break}let Ve=u+1,ot;C&&(ot=C[ae],ot!=null&&delete C[ae],GFe(t,_e,Ve,ot,m));let Z=x6(e[ae],Le,Ne,n,i,a,o,Ve,ot,m);q6(D,ae,Z,N,_e)}let M=D.__typename;if(M!=null&&q6(D,"__typename",M,N,"__typename"),C)for(let ae in C){let Ne=C[ae];for(let _e of Ne)m.unpathedErrors.add(_e)}let Y=N==null?void 0:N.__leave;return Y!=null?Y(D):D}function q6(e,t,r,n,i){if(n==null){e[t]=r;return}let a=n[i];if(a==null){e[t]=r;return}let o=a(r);if(o===void 0){delete e[t];return}e[t]=o}function KFe(e,t,r,n,i,a,o,u,l,m){return e.map(h=>x6(h,t,r,n,i,a,o,u+1,l,m))}function x6(e,t,r,n,i,a,o,u,l=[],m){if(e==null)return e;let h=(0,Wc.getNullableType)(t);if((0,Wc.isListType)(h))return KFe(e,h.ofType,r,n,i,a,o,u,l,m);if((0,Wc.isAbstractType)(h)){let D=n.getType(e.__typename),{fields:R,patches:C}=(0,EP.collectSubFields)(n,i,a,D,r);if(C.length){R=new Map(R);for(let M of C)for(let[Y,ee]of M.fields){let ae=R.get(Y);ae?ae.push(...ee):R.set(Y,ee)}}return IP(e,D,R,n,i,a,o,u,l,m)}else if((0,Wc.isObjectType)(h)){let{fields:D,patches:R}=(0,EP.collectSubFields)(n,i,a,h,r);if(R.length){D=new Map(D);for(let C of R)for(let[M,Y]of C.fields){let ee=D.get(M);ee?ee.push(...Y):D.set(M,Y)}}return IP(e,h,D,n,i,a,o,u,l,m)}let N=o==null?void 0:o[h.name];if(N==null)return e;let T=N(e);return T===void 0?e:T}function $Fe(e,t){var i;let r=Object.create(null),n=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){n.add(a);continue}o in r?r[o].push(a):r[o]=[a]}return{errorMap:r,unpathedErrors:n}}function GFe(e,t,r,n=[],i){for(let a of n){let o={type:e,fieldName:t,pathIndex:r},u=i.segmentInfoMap.get(a);u==null?i.segmentInfoMap.set(a,[o]):u.push(o)}}});var j6=O(_P=>{"use strict";d();p();f();Object.defineProperty(_P,"__esModule",{value:!0});_P.valueMatchesCriteria=vP;function vP(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((r,n)=>vP(r,t[n])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(r=>vP(e[r],t[r])):t instanceof RegExp?t.test(e):e===t}});var V6=O(SP=>{"use strict";d();p();f();Object.defineProperty(SP,"__esModule",{value:!0});SP.isAsyncIterable=QFe;function QFe(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var K6=O(OP=>{"use strict";d();p();f();Object.defineProperty(OP,"__esModule",{value:!0});OP.isDocumentNode=JFe;var YFe=ve();function JFe(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===YFe.Kind.DOCUMENT}});var $6=O(()=>{"use strict";d();p();f()});var J6=O(fy=>{"use strict";d();p();f();Object.defineProperty(fy,"__esModule",{value:!0});fy.getAsyncIteratorWithCancel=Q6;fy.getAsyncIterableWithCancel=Y6;fy.withCancel=Y6;var zFe=Hc();function HFe(e){return oa(this,null,function*(){return{value:e,done:!0}})}var G6=(0,zFe.memoize2)(function(t,r){return function(...i){return Reflect.apply(r,t,i)}});function Q6(e,t){return new Proxy(e,{has(r,n){return n==="return"?!0:Reflect.has(r,n)},get(r,n,i){let a=Reflect.get(r,n,i);if(n==="return"){let o=a||HFe;return function(l){return oa(this,null,function*(){let m=yield t(l);return Reflect.apply(o,r,[m])})}}else if(typeof a=="function")return G6(r,a);return a}})}function Y6(e,t){return new Proxy(e,{get(r,n,i){let a=Reflect.get(r,n,i);return Symbol.asyncIterator===n?function(){let u=Reflect.apply(a,r,[]);return Q6(u,t)}:typeof a=="function"?G6(r,a):a}})}});var z6=O(DP=>{"use strict";d();p();f();Object.defineProperty(DP,"__esModule",{value:!0});DP.fixSchemaAst=eLe;var WFe=ve(),XFe=Pw();function ZFe(e,t){let r=(0,XFe.getDocumentNodeFromSchema)(e);return(0,WFe.buildASTSchema)(r,q({},t||{}))}function eLe(e,t){let r;return(!e.astNode||!e.extensionASTNodes)&&(r=ZFe(e,t)),!e.astNode&&(r!=null&&r.astNode)&&(e.astNode=r.astNode),!e.extensionASTNodes&&(r!=null&&r.astNode)&&(e.extensionASTNodes=r.extensionASTNodes),e}});var H6=O(bP=>{"use strict";d();p();f();Object.defineProperty(bP,"__esModule",{value:!0});bP.extractExtensionsFromSchema=nLe;var tLe=tp(),qs=ud(),rLe=cp();function so(e,t){e=e||{};let a=e,{directives:r}=a,n=rk(a,["directives"]),i=q({},n);if(!t&&r!=null){let o={};for(let u in r)o[u]=[...(0,tLe.asArray)(r[u])];i.directives=o}return i}function nLe(e,t=!1){let r={schemaExtensions:so(e.extensions,t),types:{}};return(0,rLe.mapSchema)(e,{[qs.MapperKind.OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"object",extensions:so(n.extensions,t)},n),[qs.MapperKind.INTERFACE_TYPE]:n=>(r.types[n.name]={fields:{},type:"interface",extensions:so(n.extensions,t)},n),[qs.MapperKind.FIELD]:(n,i,a)=>{r.types[a].fields[i]={arguments:{},extensions:so(n.extensions,t)};let o=n.args;if(o!=null)for(let u in o)r.types[a].fields[i].arguments[u]=so(o[u].extensions,t);return n},[qs.MapperKind.ENUM_TYPE]:n=>(r.types[n.name]={values:{},type:"enum",extensions:so(n.extensions,t)},n),[qs.MapperKind.ENUM_VALUE]:(n,i,a,o)=>(r.types[i].values[o]=so(n.extensions,t),n),[qs.MapperKind.SCALAR_TYPE]:n=>(r.types[n.name]={type:"scalar",extensions:so(n.extensions,t)},n),[qs.MapperKind.UNION_TYPE]:n=>(r.types[n.name]={type:"union",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"input",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_FIELD]:(n,i,a)=>(r.types[a].fields[i]={extensions:so(n.extensions,t)},n)}),r}});var W6=O(py=>{"use strict";d();p();f();Object.defineProperty(py,"__esModule",{value:!0});py.addPath=iLe;py.pathToArray=aLe;py.printPathArray=oLe;function iLe(e,t,r){return{prev:e,key:t,typename:r}}function aLe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function oLe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Z6=O(RP=>{"use strict";d();p();f();Object.defineProperty(RP,"__esModule",{value:!0});RP.mergeIncrementalResult=X6;var sLe=oP();function X6({incrementalResult:e,executionResult:t}){var n;let r=["data",...(n=e.path)!=null?n:[]];if(e.items)for(let i of e.items)AP(t,r,i),r[r.length-1]++;e.data&&AP(t,r,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&AP(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{X6({incrementalResult:i,executionResult:t})})}function AP(e,t,r){let n=e,i;for(i=0;i{"use strict";d();p();f();Object.defineProperty(UI,"__esModule",{value:!0});UI.debugTimerStart=uLe;UI.debugTimerEnd=cLe;var e4=new Set;function uLe(e){var r,n;let t=((n=(r=globalThis.process)==null?void 0:r.env)==null?void 0:n.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(e4.add(e),console.time(e))}function cLe(e){e4.has(e)&&console.timeEnd(e)}});var i4=O(my=>{"use strict";d();p();f();Object.defineProperty(my,"__esModule",{value:!0});my.getAbortPromise=void 0;my.registerAbortSignalListener=n4;var lLe=ty(),r4=Hc(),dLe=(0,r4.memoize1)(function(t){let r=new Set;return t.addEventListener("abort",n=>{for(let i of r)i(n)},{once:!0}),r});function n4(e,t){if(e.aborted){t();return}dLe(e).add(t)}my.getAbortPromise=(0,r4.memoize1)(function(t){return t.aborted?(0,lLe.fakeRejectPromise)(t.reason):new Promise((r,n)=>{if(t.aborted){n(t.reason);return}n4(t,()=>{n(t.reason)})})})});var uo=O(Ue=>{"use strict";d();p();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createDeferred=Ue.fakePromise=Ue.mapMaybePromise=Ue.mapAsyncIterator=Ue.inspect=void 0;var Xe=(uW(),im(sW));Xe.__exportStar(cW(),Ue);Xe.__exportStar(tp(),Ue);Xe.__exportStar(mw(),Ue);Xe.__exportStar(yw(),Ue);Xe.__exportStar(vW(),Ue);Xe.__exportStar(gw(),Ue);Xe.__exportStar(Pw(),Ue);Xe.__exportStar(yw(),Ue);Xe.__exportStar(MW(),Ue);Xe.__exportStar(jW(),Ue);Xe.__exportStar(e6(),Ue);Xe.__exportStar(u6(),Ue);Xe.__exportStar(l6(),Ue);Xe.__exportStar(N6(),Ue);Xe.__exportStar(E6(),Ue);Xe.__exportStar(g6(),Ue);Xe.__exportStar(v6(),Ue);Xe.__exportStar(_6(),Ue);Xe.__exportStar(cp(),Ue);Xe.__exportStar(nP(),Ue);Xe.__exportStar(vI(),Ue);Xe.__exportStar(O6(),Ue);Xe.__exportStar(oP(),Ue);Xe.__exportStar(ud(),Ue);Xe.__exportStar(Kw(),Ue);Xe.__exportStar(b6(),Ue);Xe.__exportStar(A6(),Ue);Xe.__exportStar(R6(),Ue);Xe.__exportStar(w6(),Ue);Xe.__exportStar(Gw(),Ue);Xe.__exportStar(P6(),Ue);Xe.__exportStar(yI(),Ue);Xe.__exportStar(F6(),Ue);Xe.__exportStar(lI(),Ue);Xe.__exportStar(C6(),Ue);Xe.__exportStar(M6(),Ue);Xe.__exportStar(dw(),Ue);Xe.__exportStar(j6(),Ue);Xe.__exportStar(V6(),Ue);Xe.__exportStar(K6(),Ue);Xe.__exportStar(ry(),Ue);Xe.__exportStar($6(),Ue);Xe.__exportStar(J6(),Ue);Xe.__exportStar(iy(),Ue);Xe.__exportStar(Cw(),Ue);Xe.__exportStar(NP(),Ue);var fLe=ey();Object.defineProperty(Ue,"inspect",{enumerable:!0,get:function(){return fLe.inspect}});Xe.__exportStar(Hc(),Ue);Xe.__exportStar(z6(),Ue);Xe.__exportStar(TP(),Ue);Xe.__exportStar(H6(),Ue);Xe.__exportStar(W6(),Ue);Xe.__exportStar(pI(),Ue);Xe.__exportStar(mP(),Ue);Xe.__exportStar(Z6(),Ue);Xe.__exportStar(t4(),Ue);Xe.__exportStar(pw(),Ue);var kI=ty();Object.defineProperty(Ue,"mapAsyncIterator",{enumerable:!0,get:function(){return kI.mapAsyncIterator}});Object.defineProperty(Ue,"mapMaybePromise",{enumerable:!0,get:function(){return kI.mapMaybePromise}});Object.defineProperty(Ue,"fakePromise",{enumerable:!0,get:function(){return kI.fakePromise}});Object.defineProperty(Ue,"createDeferred",{enumerable:!0,get:function(){return kI.createDeferredPromise}});Xe.__exportStar(i4(),Ue)});var o4=O(qI=>{"use strict";d();p();f();Object.defineProperty(qI,"__esModule",{value:!0});qI.mergeResolvers=void 0;var pLe=uo();function a4(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 r=new Array;for(let i of e)Array.isArray(i)&&(i=a4(i)),typeof i=="object"&&i&&r.push(i);let n=(0,pLe.mergeDeep)(r,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete n[a]:n[a]&&delete n[a][o]}return n}qI.mergeResolvers=a4});var wP=O(xI=>{"use strict";d();p();f();Object.defineProperty(xI,"__esModule",{value:!0});xI.mergeArguments=void 0;var s4=uo();function mLe(e,t,r){let n=hLe([...t,...e].filter(s4.isSome),r);return r&&r.sort&&n.sort(s4.compareNodes),n}xI.mergeArguments=mLe;function hLe(e,t){return e.reduce((r,n)=>{let i=r.findIndex(a=>a.name.value===n.name.value);return i===-1?r.concat([n]):(t!=null&&t.reverseArguments||(r[i]=n),r)},[])}});var Aa=O(pp=>{"use strict";d();p();f();Object.defineProperty(pp,"__esModule",{value:!0});pp.mergeDirective=pp.mergeDirectives=void 0;var u4=ve(),yLe=uo();function NLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function c4(e,t){var r;return!!((r=t==null?void 0:t[e.name.value])!=null&&r.repeatable)}function TLe(e,t){return t.some(({value:r})=>r===e.value)}function l4(e,t){let r=[...t];for(let n of e){let i=r.findIndex(a=>a.name.value===n.name.value);if(i>-1){let a=r[i];if(a.value.kind==="ListValue"){let o=a.value.values,u=n.value.values;a.value.values=_Le(o,u,(l,m)=>{let h=l.value;return!h||!m.some(N=>N.value===h)})}else a.value=n.value}else r.push(n)}return r}function ELe(e,t){return e.map((r,n,i)=>{let a=i.findIndex(o=>o.name.value===r.name.value);if(a!==n&&!c4(r,t)){let o=i[a];return r.arguments=l4(r.arguments,o.arguments),null}return r}).filter(yLe.isSome)}function gLe(e=[],t=[],r,n){let i=r&&r.reverseDirectives,a=i?e:t,o=i?t:e,u=ELe([...a],n);for(let l of o)if(NLe(u,l)&&!c4(l,n)){let m=u.findIndex(N=>N.name.value===l.name.value),h=u[m];u[m].arguments=l4(l.arguments||[],h.arguments||[])}else u.push(l);return u}pp.mergeDirectives=gLe;function ILe(e,t){let r=(0,u4.print)(G(q({},e),{description:void 0})),n=(0,u4.print)(G(q({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(r.replace(i,"")===n.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +`);return i.description?Q(q({},i),{description:Q(q({},i.description),{value:i.description.value+` +`+o,block:!0})}):Q(q({},i),{description:{kind:Oa.Kind.STRING,value:o,block:u}})}}}})}function ZW(e){return(0,Oa.isTypeSystemDefinitionNode)(e)||e.kind===Oa.Kind.FIELD_DEFINITION||e.kind===Oa.Kind.INPUT_VALUE_DEFINITION||e.kind===Oa.Kind.ENUM_VALUE_DEFINITION}});var u6=O(qw=>{"use strict";d();p();f();Object.defineProperty(qw,"__esModule",{value:!0});qw.buildOperationNodeForField=CPe;var yt=_e(),LPe=ry(),i6=iy(),kw=[],EI=new Map;function a6(e){kw.push(e)}function t6(){kw=[]}function r6(){EI=new Map}function CPe({schema:e,kind:t,field:r,models:n,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){t6(),r6();let m=(0,i6.getRootTypeNames)(e),h=BPe({schema:e,fieldName:r,kind:t,models:n||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:m});return h.variableDefinitions=[...kw],t6(),r6(),h}function BPe({schema:e,fieldName:t,kind:r,models:n,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:m}){let h=(0,i6.getDefinedRootType)(e,r),N=h.getFields()[t],T=`${t}_${r}`;if(N.args)for(let D of N.args){let R=D.name;(!u||u.includes(R))&&a6(o6(D,R))}return{kind:yt.Kind.OPERATION_DEFINITION,operation:r,name:{kind:yt.Kind.NAME,value:T},variableDefinitions:[],selectionSet:{kind:yt.Kind.SELECTION_SET,selections:[s6({type:h,field:N,models:n,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:m})]}}}function Uw({parent:e,type:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D}){if(!(typeof T=="boolean"&&h>u)){if((0,yt.isUnionType)(t)){let R=t.getTypes();return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!Bw([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Uw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D})})).filter(C=>{var M,G;return((G=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:G.length)>0})}}if((0,yt.isInterfaceType)(t)){let R=Object.values(m.getTypeMap()).filter(C=>(0,yt.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:yt.Kind.SELECTION_SET,selections:R.filter(C=>!Bw([...a,C],{depth:l})).map(C=>({kind:yt.Kind.INLINE_FRAGMENT,typeCondition:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:C.name}},selectionSet:Uw({parent:t,type:C,models:r,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D})})).filter(C=>{var M,G;return((G=(M=C==null?void 0:C.selectionSet)==null?void 0:M.selections)==null?void 0:G.length)>0})}}if((0,yt.isObjectType)(t)&&!D.has(t.name)){let R=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=r.includes(t.name);if(!n&&C&&!R)return{kind:yt.Kind.SELECTION_SET,selections:[{kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:"id"}}]};let M=t.getFields();return{kind:yt.Kind.SELECTION_SET,selections:Object.keys(M).filter(G=>!Bw([...a,(0,yt.getNamedType)(M[G].type)],{depth:l})).map(G=>{let ee=typeof T=="object"?T[G]:!0;return ee?s6({type:t,field:M[G],models:r,path:[...i,G],ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:ee,rootTypeNames:D}):null}).filter(G=>{var ee,ae;return G==null?!1:"selectionSet"in G?!!((ae=(ee=G.selectionSet)==null?void 0:ee.selections)!=null&&ae.length):!0})}}}}function o6(e,t){function r(i){return(0,yt.isListType)(i)?{kind:yt.Kind.LIST_TYPE,type:r(i.ofType)}:(0,yt.isNonNullType)(i)?{kind:yt.Kind.NON_NULL_TYPE,type:r(i.ofType)}:{kind:yt.Kind.NAMED_TYPE,name:{kind:yt.Kind.NAME,value:i.name}}}let n;try{let i=(0,yt.astFromValue)(e.defaultValue,e.type);i==null?n=void 0:n=i}catch(i){let a=(0,LPe.astFromValueUntyped)(e.defaultValue);a==null?n=void 0:n=a}return{kind:yt.Kind.VARIABLE_DEFINITION,variable:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:t||e.name}},type:r(e.type),defaultValue:n}}function n6(e,t){return[...t,e].join("_")}function s6({type:e,field:t,models:r,firstCall:n,path:i,ancestors:a,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h,argNames:N,selectedFields:T,rootTypeNames:D}){let R=(0,yt.getNamedType)(t.type),C=[],M=!1;if(t.args&&t.args.length&&(C=t.args.map(Ne=>{let Ie=n6(Ne.name,i);return N&&!N.includes(Ie)?((0,yt.isNonNullType)(Ne.type)&&(M=!0),null):(n||a6(o6(Ne,Ie)),{kind:yt.Kind.ARGUMENT,name:{kind:yt.Kind.NAME,value:Ne.name},value:{kind:yt.Kind.VARIABLE,name:{kind:yt.Kind.NAME,value:n6(Ne.name,i)}}})}).filter(Boolean)),M)return null;let G=[...i,t.name],ee=G.join("."),ae=t.name;return EI.has(ee)&&EI.get(ee)!==t.type.toString()&&(ae+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),EI.set(ee,t.type.toString()),!(0,yt.isScalarType)(R)&&!(0,yt.isEnumType)(R)?Q(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{selectionSet:Uw({parent:e,type:R,models:r,firstCall:n,path:G,ancestors:[...a,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:m,depth:h+1,argNames:N,selectedFields:T,rootTypeNames:D})||void 0,arguments:C}):Q(q({kind:yt.Kind.FIELD,name:{kind:yt.Kind.NAME,value:t.name}},ae!==t.name&&{alias:{kind:yt.Kind.NAME,value:ae}}),{arguments:C})}function Bw(e,t={depth:1}){let r=e[e.length-1];return(0,yt.isScalarType)(r)?!1:e.filter(i=>i.name===r.name).length>t.depth}});var l6=O(gI=>{"use strict";d();p();f();Object.defineProperty(gI,"__esModule",{value:!0});gI.DirectiveLocation=void 0;var c6;(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"})(c6||(gI.DirectiveLocation=c6={}))});var ud=O(II=>{"use strict";d();p();f();Object.defineProperty(II,"__esModule",{value:!0});II.MapperKind=void 0;var d6;(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"})(d6||(II.MapperKind=d6={}))});var Mw=O(xw=>{"use strict";d();p();f();Object.defineProperty(xw,"__esModule",{value:!0});xw.getObjectTypeFromTypeMap=kPe;var UPe=_e();function kPe(e,t){if(t){let r=e[t.name];if((0,UPe.isObjectType)(r))return r}}});var Kw=O(ap=>{"use strict";d();p();f();Object.defineProperty(ap,"__esModule",{value:!0});ap.createNamedStub=jw;ap.createStub=Vw;ap.isNamedStub=qPe;ap.getBuiltInForStub=xPe;var xn=_e();function jw(e,t){let r;return t==="object"?r=xn.GraphQLObjectType:t==="interface"?r=xn.GraphQLInterfaceType:r=xn.GraphQLInputObjectType,new r({name:e,fields:{_fake:{type:xn.GraphQLString}}})}function Vw(e,t){switch(e.kind){case xn.Kind.LIST_TYPE:return new xn.GraphQLList(Vw(e.type,t));case xn.Kind.NON_NULL_TYPE:return new xn.GraphQLNonNull(Vw(e.type,t));default:return t==="output"?jw(e.name.value,"object"):jw(e.name.value,"input")}}function qPe(e){if("getFields"in e){let t=e.getFields();for(let r in t)return t[r].name==="_fake"}return!1}function xPe(e){switch(e.name){case xn.GraphQLInt.name:return xn.GraphQLInt;case xn.GraphQLFloat.name:return xn.GraphQLFloat;case xn.GraphQLString.name:return xn.GraphQLString;case xn.GraphQLBoolean.name:return xn.GraphQLBoolean;case xn.GraphQLID.name:return xn.GraphQLID;default:return e}}});var vI=O($w=>{"use strict";d();p();f();Object.defineProperty($w,"__esModule",{value:!0});$w.rewireTypes=MPe;var En=_e(),f6=Kw();function MPe(e,t){let r=Object.create(null);for(let T in e)r[T]=e[T];let n=Object.create(null);for(let T in r){let D=r[T];if(D==null||T.startsWith("__"))continue;let R=D.name;if(!R.startsWith("__")){if(n[R]!=null){console.warn(`Duplicate schema type name ${R} found; keeping the existing one found in the schema`);continue}n[R]=D}}for(let T in n)n[T]=u(n[T]);let i=t.map(T=>a(T));return{typeMap:n,directives:i};function a(T){if((0,En.isSpecifiedDirective)(T))return T;let D=T.toConfig();return D.args=o(D.args),new En.GraphQLDirective(D)}function o(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,D[R]=C)}return D}function u(T){if((0,En.isObjectType)(T)){let D=T.toConfig(),R=Q(q({},D),{fields:()=>l(D.fields),interfaces:()=>h(D.interfaces)});return new En.GraphQLObjectType(R)}else if((0,En.isInterfaceType)(T)){let D=T.toConfig(),R=Q(q({},D),{fields:()=>l(D.fields)});return"interfaces"in R&&(R.interfaces=()=>h(D.interfaces)),new En.GraphQLInterfaceType(R)}else if((0,En.isUnionType)(T)){let D=T.toConfig(),R=Q(q({},D),{types:()=>h(D.types)});return new En.GraphQLUnionType(R)}else if((0,En.isInputObjectType)(T)){let D=T.toConfig(),R=Q(q({},D),{fields:()=>m(D.fields)});return new En.GraphQLInputObjectType(R)}else if((0,En.isEnumType)(T)){let D=T.toConfig();return new En.GraphQLEnumType(D)}else if((0,En.isScalarType)(T)){if((0,En.isSpecifiedScalarType)(T))return T;let D=T.toConfig();return new En.GraphQLScalarType(D)}throw new Error(`Unexpected schema type: ${T}`)}function l(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&C.args&&(C.type=M,C.args=o(C.args),D[R]=C)}return D}function m(T){let D={};for(let R in T){let C=T[R],M=N(C.type);M!=null&&(C.type=M,D[R]=C)}return D}function h(T){let D=[];for(let R of T){let C=N(R);C!=null&&D.push(C)}return D}function N(T){if((0,En.isListType)(T)){let D=N(T.ofType);return D!=null?new En.GraphQLList(D):null}else if((0,En.isNonNullType)(T)){let D=N(T.ofType);return D!=null?new En.GraphQLNonNull(D):null}else if((0,En.isNamedType)(T)){let D=r[T.name];return D===void 0&&(D=(0,f6.isNamedStub)(T)?(0,f6.getBuiltInForStub)(T):u(T),n[D.name]=r[T.name]=D),D!=null?n[D.name]:null}return null}}});var Gw=O(sp=>{"use strict";d();p();f();Object.defineProperty(sp,"__esModule",{value:!0});sp.transformInputValue=op;sp.serializeInputValue=VPe;sp.parseInputValue=KPe;sp.parseInputValueLiteral=$Pe;var _I=_e(),jPe=tp();function op(e,t,r=null,n=null){if(t==null)return t;let i=(0,_I.getNullableType)(e);if((0,_I.isLeafType)(i))return r!=null?r(i,t):t;if((0,_I.isListType)(i))return(0,jPe.asArray)(t).map(a=>op(i.ofType,a,r,n));if((0,_I.isInputObjectType)(i)){let a=i.getFields(),o={};for(let u in t){let l=a[u];l!=null&&(o[u]=op(l.type,t[u],r,n))}return n!=null?n(i,o):o}}function VPe(e,t){return op(e,t,(r,n)=>{try{return r.serialize(n)}catch(i){return n}})}function KPe(e,t){return op(e,t,(r,n)=>{try{return r.parseValue(n)}catch(i){return n}})}function $Pe(e,t){return op(e,t,(r,n)=>r.parseLiteral(n,{}))}});var cp=O(OI=>{"use strict";d();p();f();Object.defineProperty(OI,"__esModule",{value:!0});OI.mapSchema=QPe;OI.correctASTNodes=cy;var ft=_e(),up=Mw(),qt=ud(),GPe=vI(),p6=Gw();function QPe(e,t={}){let r=y6(h6(Qw(m6(JPe(Qw(m6(e.getTypeMap(),e,p6.serializeInputValue),e,t,u=>(0,ft.isLeafType)(u)),e,t),e,p6.parseInputValue),e,t,u=>!(0,ft.isLeafType)(u)),e,t),e,t),n=e.getDirectives(),i=zPe(n,e,t),{typeMap:a,directives:o}=(0,GPe.rewireTypes)(r,i);return new ft.GraphQLSchema(Q(q({},e.toConfig()),{query:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getQueryType())),mutation:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getMutationType())),subscription:(0,up.getObjectTypeFromTypeMap)(a,(0,up.getObjectTypeFromTypeMap)(r,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var YPe=["String","ID","Int","Float","Boolean"];function Qw(e,t,r,n=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!YPe.includes(a)){let o=e[a];if(o==null||!n(o)){i[a]=o;continue}let u=WPe(t,r,a);if(u==null){i[a]=o;continue}let l=u(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function JPe(e,t,r){let n=rFe(r);return n?Qw(e,t,{[qt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,u={};for(let l in o){let m=o[l],h=n(m,i.name,t,l);if(h===void 0)u[l]=m;else if(Array.isArray(h)){let[N,T]=h;u[N]=T===void 0?m:T}else h!==null&&(u[l]=h)}return cy(new ft.GraphQLEnumType(Q(q({},a),{values:u})))}},i=>(0,ft.isEnumType)(i)):e}function m6(e,t,r){let n=y6(e,t,{[qt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=SI(e,i.type);if(a!=null)return Q(q({},i),{defaultValue:r(a,i.defaultValue)})}});return h6(n,t,{[qt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=SI(n,i.type);if(a!=null)return Q(q({},i),{defaultValue:r(a,i.defaultValue)})}})}function SI(e,t){if((0,ft.isListType)(t)){let r=SI(e,t.ofType);return r!=null?new ft.GraphQLList(r):null}else if((0,ft.isNonNullType)(t)){let r=SI(e,t.ofType);return r!=null?new ft.GraphQLNonNull(r):null}else if((0,ft.isNamedType)(t)){let r=e[t.name];return r!=null?r:null}return null}function h6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)&&!(0,ft.isInputObjectType)(a)){n[i]=a;continue}let o=ZPe(t,r,i);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=o(N,h,i,t);if(T===void 0)m[h]=N;else if(Array.isArray(T)){let[D,R]=T;R.astNode!=null&&(R.astNode=Q(q({},R.astNode),{name:Q(q({},R.astNode.name),{value:D})})),m[D]=R===void 0?N:R}else T!==null&&(m[h]=T)}(0,ft.isObjectType)(a)?n[i]=cy(new ft.GraphQLObjectType(Q(q({},u),{fields:m}))):(0,ft.isInterfaceType)(a)?n[i]=cy(new ft.GraphQLInterfaceType(Q(q({},u),{fields:m}))):n[i]=cy(new ft.GraphQLInputObjectType(Q(q({},u),{fields:m})))}return n}function y6(e,t,r){let n={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,ft.isObjectType)(a)&&!(0,ft.isInterfaceType)(a)){n[i]=a;continue}let o=eFe(r);if(o==null){n[i]=a;continue}let u=a.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h],T=N.args;if(T==null){m[h]=N;continue}let D=Object.keys(T);if(!D.length){m[h]=N;continue}let R={};for(let C of D){let M=T[C],G=o(M,h,i,t);if(G===void 0)R[C]=M;else if(Array.isArray(G)){let[ee,ae]=G;R[ee]=ae}else G!==null&&(R[C]=G)}m[h]=Q(q({},N),{args:R})}(0,ft.isObjectType)(a)?n[i]=new ft.GraphQLObjectType(Q(q({},u),{fields:m})):(0,ft.isInterfaceType)(a)?n[i]=new ft.GraphQLInterfaceType(Q(q({},u),{fields:m})):n[i]=new ft.GraphQLInputObjectType(Q(q({},u),{fields:m}))}return n}function zPe(e,t,r){let n=tFe(r);if(n==null)return e.slice();let i=[];for(let a of e){let o=n(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function HPe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.TYPE];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_OBJECT,qt.MapperKind.SUBSCRIPTION)):(0,ft.isInputObjectType)(r)?n.push(qt.MapperKind.INPUT_OBJECT_TYPE):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.INTERFACE_TYPE):(0,ft.isUnionType)(r)?n.push(qt.MapperKind.COMPOSITE_TYPE,qt.MapperKind.ABSTRACT_TYPE,qt.MapperKind.UNION_TYPE):(0,ft.isEnumType)(r)?n.push(qt.MapperKind.ENUM_TYPE):(0,ft.isScalarType)(r)&&n.push(qt.MapperKind.SCALAR_TYPE),n}function WPe(e,t,r){let n=HPe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function XPe(e,t){var i,a,o;let r=e.getType(t),n=[qt.MapperKind.FIELD];return(0,ft.isObjectType)(r)?(n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&n.push(qt.MapperKind.ROOT_FIELD,qt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,ft.isInterfaceType)(r)?n.push(qt.MapperKind.COMPOSITE_FIELD,qt.MapperKind.INTERFACE_FIELD):(0,ft.isInputObjectType)(r)&&n.push(qt.MapperKind.INPUT_OBJECT_FIELD),n}function ZPe(e,t,r){let n=XPe(e,r),i,a=[...n];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function eFe(e){let t=e[qt.MapperKind.ARGUMENT];return t!=null?t:null}function tFe(e){let t=e[qt.MapperKind.DIRECTIVE];return t!=null?t:null}function rFe(e){let t=e[qt.MapperKind.ENUM_VALUE];return t!=null?t:null}function cy(e){if((0,ft.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=Q(q({},t.astNode),{kind:ft.Kind.OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>Q(q({},r),{kind:ft.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLObjectType(t)}else if((0,ft.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=Q(q({},t.astNode),{kind:ft.Kind.INTERFACE_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>Q(q({},r),{kind:ft.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInterfaceType(t)}else if((0,ft.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.fields){let i=t.fields[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=Q(q({},t.astNode),{kind:ft.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>Q(q({},r),{kind:ft.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new ft.GraphQLInputObjectType(t)}else if((0,ft.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let r=[];for(let n in t.values){let i=t.values[n];i.astNode!=null&&r.push(i.astNode)}t.astNode=Q(q({},t.astNode),{values:r})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(r=>Q(q({},r),{values:void 0}))),new ft.GraphQLEnumType(t)}else return e}});var N6=O(zw=>{"use strict";d();p();f();Object.defineProperty(zw,"__esModule",{value:!0});zw.filterSchema=iFe;var DI=_e(),oo=ud(),nFe=cp();function iFe({schema:e,typeFilter:t=()=>!0,fieldFilter:r=void 0,rootFieldFilter:n=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0,directiveFilter:l=void 0,enumValueFilter:m=void 0}){return(0,nFe.mapSchema)(e,{[oo.MapperKind.QUERY]:N=>Yw(N,"Query",n,u),[oo.MapperKind.MUTATION]:N=>Yw(N,"Mutation",n,u),[oo.MapperKind.SUBSCRIPTION]:N=>Yw(N,"Subscription",n,u),[oo.MapperKind.OBJECT_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLObjectType,N,i||r,u):null,[oo.MapperKind.INTERFACE_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLInterfaceType,N,a||r,u):null,[oo.MapperKind.INPUT_OBJECT_TYPE]:N=>t(N.name,N)?Jw(DI.GraphQLInputObjectType,N,o||r):null,[oo.MapperKind.UNION_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.ENUM_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.SCALAR_TYPE]:N=>t(N.name,N)?void 0:null,[oo.MapperKind.DIRECTIVE]:N=>l&&!l(N.name,N)?null:void 0,[oo.MapperKind.ENUM_VALUE]:(N,T,D,R)=>m&&!m(T,R,N)?null:void 0})}function Yw(e,t,r,n){if(r||n){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t,a,i.fields[a]))delete i.fields[a];else if(n&&o.args)for(let u in o.args)n(e.name,a,u,o.args[u])||delete o.args[u]}return new DI.GraphQLObjectType(i)}return e}function Jw(e,t,r,n){if(r||n){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(r&&!r(t.name,a,i.fields[a]))delete i.fields[a];else if(n&&"args"in o)for(let u in o.args)n(t.name,a,u,o.args[u])||delete o.args[u]}return new e(i)}}});var E6=O(bI=>{"use strict";d();p();f();Object.defineProperty(bI,"__esModule",{value:!0});bI.healSchema=aFe;bI.healTypes=T6;var Go=_e();function aFe(e){return T6(e.getTypeMap(),e.getDirectives()),e}function T6(e,t){let r=Object.create(null);for(let m in e){let h=e[m];if(h==null||m.startsWith("__"))continue;let N=h.name;if(!N.startsWith("__")){if(r[N]!=null){console.warn(`Duplicate schema type name ${N} found; keeping the existing one found in the schema`);continue}r[N]=h}}for(let m in r){let h=r[m];e[m]=h}for(let m of t)m.args=m.args.filter(h=>(h.type=l(h.type),h.type!==null));for(let m in e){let h=e[m];!m.startsWith("__")&&m in r&&h!=null&&n(h)}for(let m in e)!m.startsWith("__")&&!(m in r)&&delete e[m];function n(m){if((0,Go.isObjectType)(m)){i(m),a(m);return}else if((0,Go.isInterfaceType)(m)){i(m),"getInterfaces"in m&&a(m);return}else if((0,Go.isUnionType)(m)){u(m);return}else if((0,Go.isInputObjectType)(m)){o(m);return}else if((0,Go.isLeafType)(m))return;throw new Error(`Unexpected schema type: ${m}`)}function i(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.args.map(D=>(D.type=l(D.type),D.type===null?null:D)).filter(Boolean),T.type=l(T.type),T.type===null&&delete h[N]}function a(m){if("getInterfaces"in m){let h=m.getInterfaces();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}}function o(m){let h=m.getFields();for(let[N,T]of Object.entries(h))T.type=l(T.type),T.type===null&&delete h[N]}function u(m){let h=m.getTypes();h.push(...h.splice(0).map(N=>l(N)).filter(Boolean))}function l(m){if((0,Go.isListType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLList(h):null}else if((0,Go.isNonNullType)(m)){let h=l(m.ofType);return h!=null?new Go.GraphQLNonNull(h):null}else if((0,Go.isNamedType)(m)){let h=e[m.name];if(h&&m!==h)return h}return m}}});var g6=O(Hw=>{"use strict";d();p();f();Object.defineProperty(Hw,"__esModule",{value:!0});Hw.getResolversFromSchema=oFe;var cd=_e();function oFe(e,t){var i,a;let r=Object.create(null),n=e.getTypeMap();for(let o in n)if(!o.startsWith("__")){let u=n[o];if((0,cd.isScalarType)(u)){if(!(0,cd.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,r[o]=new cd.GraphQLScalarType(l)}}else if((0,cd.isEnumType)(u)){r[o]={};let l=u.getValues();for(let m of l)r[o][m.name]=m.value}else if((0,cd.isInterfaceType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isUnionType)(u))u.resolveType!=null&&(r[o]={__resolveType:u.resolveType});else if((0,cd.isObjectType)(u)){r[o]={},u.isTypeOf!=null&&(r[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let m in l){let h=l[m];if(h.subscribe!=null&&(r[o][m]=r[o][m]||{},r[o][m].subscribe=h.subscribe),h.resolve!=null&&((i=h.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=h.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}r[o][m]=r[o][m]||{},r[o][m].resolve=h.resolve}}}}return r}});var v6=O(Ww=>{"use strict";d();p();f();Object.defineProperty(Ww,"__esModule",{value:!0});Ww.forEachField=sFe;var I6=_e();function sFe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,I6.getNamedType)(i).name.startsWith("__")&&(0,I6.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];t(u,n,o)}}}}});var _6=O(Zw=>{"use strict";d();p();f();Object.defineProperty(Zw,"__esModule",{value:!0});Zw.forEachDefaultValue=uFe;var Xw=_e();function uFe(e,t){let r=e.getTypeMap();for(let n in r){let i=r[n];if(!(0,Xw.getNamedType)(i).name.startsWith("__")){if((0,Xw.isObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,Xw.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let u=a[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}});var nP=O(rP=>{"use strict";d();p();f();Object.defineProperty(rP,"__esModule",{value:!0});rP.addTypes=lFe;var eP=_e(),tP=Mw(),cFe=vI();function lFe(e,t){let r=e.toConfig(),n={};for(let u of r.types)n[u.name]=u;let i={};for(let u of r.directives)i[u.name]=u;for(let u of t)(0,eP.isNamedType)(u)?n[u.name]=u:(0,eP.isDirective)(u)&&(i[u.name]=u);let{typeMap:a,directives:o}=(0,cFe.rewireTypes)(n,Object.values(i));return new eP.GraphQLSchema(Q(q({},r),{query:(0,tP.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,tP.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,tP.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var O6=O(iP=>{"use strict";d();p();f();Object.defineProperty(iP,"__esModule",{value:!0});iP.pruneSchema=hFe;var gn=_e(),dFe=gw(),fFe=ud(),pFe=cp(),mFe=iy();function hFe(e,t={}){let{skipEmptyCompositeTypePruning:r,skipEmptyUnionPruning:n,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let m=yFe(l);if(i){let h=[];for(let N in l.getTypeMap()){if(N.startsWith("__"))continue;let T=l.getType(N);T&&i(T)&&h.push(N)}m=S6(h,l,m)}u=[],l=(0,pFe.mapSchema)(l,{[fFe.MapperKind.TYPE]:h=>!m.has(h.name)&&!(0,gn.isSpecifiedScalarType)(h)?((0,gn.isUnionType)(h)||(0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h)||(0,gn.isScalarType)(h))&&(o||(0,gn.isUnionType)(h)&&n&&!Object.keys(h.getTypes()).length||((0,gn.isInputObjectType)(h)||(0,gn.isInterfaceType)(h)||(0,gn.isObjectType)(h))&&r&&!Object.keys(h.getFields()).length||(0,gn.isInterfaceType)(h)&&a)?h:(u.push(h.name),m.delete(h.name),null):h})}while(u.length);return l}function yFe(e){let t=[];for(let r of(0,mFe.getRootTypes)(e))t.push(r.name);return S6(t,e)}function S6(e,t,r=new Set){let n=new Map;for(;e.length;){let i=e.pop();if(r.has(i)&&n[i]!==!0)continue;let a=t.getType(i);if(a){if((0,gn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,gn.isInterfaceType)(a)&&n[i]===!0&&(e.push(...(0,dFe.getImplementingTypes)(a.name,t)),n[i]=!1),(0,gn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>AI(t,o))),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,gn.isObjectType)(a)&&e.push(...l.args.flatMap(h=>{let N=[(0,gn.getNamedType)(h.type).name];return N.push(...AI(t,h)),N}));let m=(0,gn.getNamedType)(l.type);e.push(m.name),e.push(...AI(t,l)),(0,gn.isInterfaceType)(m)&&!(m.name in n)&&(n[m.name]=!0)}}e.push(...AI(t,a)),r.add(i)}}return r}function AI(e,t){var n,i;let r=new Set;if((n=t.astNode)!=null&&n.directives)for(let a of t.astNode.directives){let o=e.getDirective(a.name.value);if(o!=null&&o.args)for(let u of o.args){let l=(0,gn.getNamedType)(u.type);r.add(l.name)}}if((i=t.extensions)!=null&&i.directives)for(let a in t.extensions.directives){let o=e.getDirective(a);if(o!=null&&o.args)for(let u of o.args){let l=(0,gn.getNamedType)(u.type);r.add(l.name)}}return[...r]}});var oP=O(aP=>{"use strict";d();p();f();Object.defineProperty(aP,"__esModule",{value:!0});aP.mergeDeep=RI;var NFe=tp();function RI(e,t=!1,r=!1,n=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,a=!0,o=e.every(m=>{if(Array.isArray(m)){if(i===void 0)return i=m.length,!0;if(i===m.length)return!0}else a=!1;return!1});if(n&&o)return new Array(i).fill(null).map((m,h)=>RI(e.map(N=>N[h]),t,r,n));if(a)return e.flat(1);let u,l;t&&(l=e.find(m=>D6(m)),l&&(u==null&&(u={}),Object.setPrototypeOf(u,Object.create(Object.getPrototypeOf(l)))));for(let m of e)if(m!=null)if(D6(m)){if(l){let h=Object.getPrototypeOf(u),N=Object.getPrototypeOf(m);if(N)for(let T of Object.getOwnPropertyNames(N)){let D=Object.getOwnPropertyDescriptor(N,T);(0,NFe.isSome)(D)&&Object.defineProperty(h,T,D)}}for(let h in m)u==null&&(u={}),h in u?u[h]=RI([u[h],m[h]],t,r,n):u[h]=m[h]}else Array.isArray(m)&&Array.isArray(u)?u=RI([u,m],t,r,n):u=m;return u}function D6(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var b6=O(sP=>{"use strict";d();p();f();Object.defineProperty(sP,"__esModule",{value:!0});sP.parseSelectionSet=EFe;var TFe=_e();function EFe(e,t){return(0,TFe.parse)(e,t).definitions[0].selectionSet}});var A6=O(uP=>{"use strict";d();p();f();Object.defineProperty(uP,"__esModule",{value:!0});uP.getResponseKeyFromInfo=gFe;function gFe(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var R6=O(lp=>{"use strict";d();p();f();Object.defineProperty(lp,"__esModule",{value:!0});lp.appendObjectFields=vFe;lp.removeObjectFields=_Fe;lp.selectObjectFields=SFe;lp.modifyObjectFields=OFe;var wI=_e(),IFe=nP(),PI=ud(),ld=cp();function vFe(e,t,r){return e.getType(t)==null?(0,IFe.addTypes)(e,[new wI.GraphQLObjectType({name:t,fields:r})]):(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:n=>{if(n.name===t){let i=n.toConfig(),a=i.fields,o={};for(let u in a)o[u]=a[u];for(let u in r)o[u]=r[u];return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(Q(q({},i),{fields:o})))}}})}function _Fe(e,t,r){let n={};return[(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),u=o.fields,l={};for(let m in u){let h=u[m];r(m,h)?n[m]=h:l[m]=h}return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(Q(q({},o),{fields:l})))}}}),n]}function SFe(e,t,r){let n={};return(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];r(u,l)&&(n[u]=l)}}}}),n}function OFe(e,t,r,n){let i={};return[(0,ld.mapSchema)(e,{[PI.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,m={};for(let h in l){let N=l[h];r(h,N)?i[h]=N:m[h]=N}for(let h in n){let N=n[h];m[h]=N}return(0,ld.correctASTNodes)(new wI.GraphQLObjectType(Q(q({},u),{fields:m})))}}}),i]}});var w6=O(cP=>{"use strict";d();p();f();Object.defineProperty(cP,"__esModule",{value:!0});cP.renameType=DFe;var Da=_e();function DFe(e,t){if((0,Da.isObjectType)(e))return new Da.GraphQLObjectType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));if((0,Da.isInterfaceType)(e))return new Da.GraphQLInterfaceType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));if((0,Da.isUnionType)(e))return new Da.GraphQLUnionType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));if((0,Da.isInputObjectType)(e))return new Da.GraphQLInputObjectType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));if((0,Da.isEnumType)(e))return new Da.GraphQLEnumType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));if((0,Da.isScalarType)(e))return new Da.GraphQLScalarType(Q(q({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(q({},e.astNode),{name:Q(q({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(r=>Q(q({},r),{name:Q(q({},r.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var P6=O(FI=>{"use strict";d();p();f();Object.defineProperty(FI,"__esModule",{value:!0});FI.updateArgument=AFe;FI.createVariableNameGenerator=RFe;var dd=_e(),bFe=yI();function AFe(e,t,r,n,i,a,o){if(e[n]={kind:dd.Kind.ARGUMENT,name:{kind:dd.Kind.NAME,value:n},value:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}}},t[i]={kind:dd.Kind.VARIABLE_DEFINITION,variable:{kind:dd.Kind.VARIABLE,name:{kind:dd.Kind.NAME,value:i}},type:(0,bFe.astFromType)(a)},o!==void 0){r[i]=o;return}i in r&&delete r[i]}function RFe(e){let t=0;return r=>{let n;do n=t===0?r:`_v${t.toString()}_${r}`,t++;while(n in e);return n}}});var F6=O(dP=>{"use strict";d();p();f();Object.defineProperty(dP,"__esModule",{value:!0});dP.implementsAbstractType=wFe;var lP=_e();function wFe(e,t,r){return r==null||t==null?!1:t===r?!0:(0,lP.isCompositeType)(t)&&(0,lP.isCompositeType)(r)?(0,lP.doTypesOverlap)(e,t,r):!1}});var C6=O(fP=>{"use strict";d();p();f();Object.defineProperty(fP,"__esModule",{value:!0});fP.observableToAsyncIterable=PFe;var L6=ty();function PFe(e){let t=[],r=[],n=!0,i=h=>{t.length!==0?t.shift()({value:h,done:!1}):r.push({value:h,done:!1})},a=h=>{t.length!==0?t.shift()({value:{errors:[h]},done:!1}):r.push({value:{errors:[h]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):r.push({done:!0})},u=()=>new Promise(h=>{if(r.length!==0){let N=r.shift();h(N)}else t.push(h)}),l=e.subscribe({next(h){return i(h)},error(h){return a(h)},complete(){return o()}}),m=()=>{if(n){n=!1,l.unsubscribe();for(let h of t)h({value:void 0,done:!0});t.length=0,r.length=0}};return{next(){return n?u():this.return()},return(){return m(),(0,L6.fakePromise)({value:void 0,done:!0})},throw(h){return m(),(0,L6.fakeRejectPromise)(h)},[Symbol.asyncIterator](){return this}}}});var B6=O(LI=>{"use strict";d();p();f();Object.defineProperty(LI,"__esModule",{value:!0});LI.AccumulatorMap=void 0;var pP=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,r){let n=this.get(t);n===void 0?this.set(t,[r]):n.push(r)}};LI.AccumulatorMap=pP});var mP=O(dp=>{"use strict";d();p();f();Object.defineProperty(dp,"__esModule",{value:!0});dp.GraphQLStreamDirective=dp.GraphQLDeferDirective=void 0;var ba=_e();dp.GraphQLDeferDirective=new ba.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FRAGMENT_SPREAD,ba.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"}}});dp.GraphQLStreamDirective=new ba.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[ba.DirectiveLocation.FIELD],args:{if:{type:new ba.GraphQLNonNull(ba.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:ba.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:ba.GraphQLInt,description:"Number of items to return immediately"}}})});var NP=O(ks=>{"use strict";d();p();f();Object.defineProperty(ks,"__esModule",{value:!0});ks.collectSubFields=void 0;ks.collectFields=CFe;ks.shouldIncludeNode=CI;ks.doesFragmentConditionMatch=hP;ks.getFieldEntryKey=U6;ks.getDeferValues=yP;var Qo=_e(),BI=B6(),FFe=mP(),LFe=Hc();function fp(e,t,r,n,i,a,o,u){for(let l of i.selections)switch(l.kind){case Qo.Kind.FIELD:{if(!CI(r,l))continue;a.add(U6(l),l);break}case Qo.Kind.INLINE_FRAGMENT:{if(!CI(r,l)||!hP(e,l,n))continue;let m=yP(r,l);if(m){let h=new BI.AccumulatorMap;fp(e,t,r,n,l.selectionSet,h,o,u),o.push({label:m.label,fields:h})}else fp(e,t,r,n,l.selectionSet,a,o,u);break}case Qo.Kind.FRAGMENT_SPREAD:{let m=l.name.value;if(!CI(r,l))continue;let h=yP(r,l);if(u.has(m)&&!h)continue;let N=t[m];if(!N||!hP(e,N,n))continue;if(h||u.add(m),h){let T=new BI.AccumulatorMap;fp(e,t,r,n,N.selectionSet,T,o,u),o.push({label:h.label,fields:T})}else fp(e,t,r,n,N.selectionSet,a,o,u);break}}}function CFe(e,t,r,n,i){let a=new BI.AccumulatorMap,o=[];return fp(e,t,r,n,i,a,o,new Set),{fields:a,patches:o}}function CI(e,t){let r=(0,Qo.getDirectiveValues)(Qo.GraphQLSkipDirective,t,e);if((r==null?void 0:r.if)===!0)return!1;let n=(0,Qo.getDirectiveValues)(Qo.GraphQLIncludeDirective,t,e);return(n==null?void 0:n.if)!==!1}function hP(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=(0,Qo.typeFromAST)(e,n);return i===r?!0:(0,Qo.isAbstractType)(i)?e.getPossibleTypes(i).includes(r):!1}function U6(e){return e.alias?e.alias.value:e.name.value}function yP(e,t){let r=(0,Qo.getDirectiveValues)(FFe.GraphQLDeferDirective,t,e);if(r&&r.if!==!1)return{label:typeof r.label=="string"?r.label:void 0}}ks.collectSubFields=(0,LFe.memoize5)(function(t,r,n,i,a){let o=new BI.AccumulatorMap,u=new Set,l=[],m={fields:o,patches:l};for(let h of a)h.selectionSet&&fp(t,r,n,i,h.selectionSet,o,l,u);return m})});var TP=O(ly=>{"use strict";d();p();f();Object.defineProperty(ly,"__esModule",{value:!0});ly.getOperationASTFromRequest=void 0;ly.getOperationASTFromDocument=k6;var BFe=_e(),UFe=Hc();function k6(e,t){let r=(0,BFe.getOperationAST)(e,t);if(!r)throw new Error(`Cannot infer operation ${t||""}`);return r}ly.getOperationASTFromRequest=(0,UFe.memoize1)(function(t){return k6(t.document,t.operationName)})});var M6=O(dy=>{"use strict";d();p();f();Object.defineProperty(dy,"__esModule",{value:!0});dy.visitData=gP;dy.visitErrors=qFe;dy.visitResult=xFe;var Wc=_e(),EP=NP(),kFe=TP();function gP(e,t,r){if(Array.isArray(e))return e.map(n=>gP(n,t,r));if(typeof e=="object"){let n=t!=null?t(e):e;if(n!=null)for(let i in n){let a=n[i];Object.defineProperty(n,i,{value:gP(a,t,r)})}return r!=null?r(n):n}return e}function qFe(e,t){return e.map(r=>t(r))}function xFe(e,t,r,n,i){let a=t.document.definitions.reduce((T,D)=>(D.kind===Wc.Kind.FRAGMENT_DEFINITION&&(T[D.name.value]=D),T),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,m=e.errors,h=m!=null&&i!=null,N=(0,kFe.getOperationASTFromRequest)(t);return l!=null&&N!=null&&(e.data=VFe(l,N,r,a,o,n,h?m:void 0,u)),m!=null&&i&&(e.errors=MFe(m,i,u)),e}function MFe(e,t,r){let n=r.segmentInfoMap,i=r.unpathedErrors,a=t.__unpathed;return e.map(o=>{let u=n.get(o),l=u==null?o:u.reduceRight((m,h)=>{let N=h.type.name,T=t[N];if(T==null)return m;let D=T[h.fieldName];return D==null?m:D(m,h.pathIndex)},o);return a&&i.has(o)?a(l):l})}function jFe(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function VFe(e,t,r,n,i,a,o,u){let l=jFe(r,t),{fields:m}=(0,EP.collectFields)(r,n,i,l,t.selectionSet);return IP(e,l,m,r,n,i,a,0,o,u)}function IP(e,t,r,n,i,a,o,u,l,m){var ee;let h=t.getFields(),N=o==null?void 0:o[t.name],T=N==null?void 0:N.__enter,D=T!=null?T(e):e,R,C=null;if(l!=null){R=$Fe(l,u),C=R.errorMap;for(let ae of R.unpathedErrors)m.unpathedErrors.add(ae)}for(let[ae,Ne]of r){let Ie=Ne[0].name.value,Le=(ee=h[Ie])==null?void 0:ee.type;if(Le==null)switch(Ie){case"__typename":Le=Wc.TypeNameMetaFieldDef.type;break;case"__schema":Le=Wc.SchemaMetaFieldDef.type;break;case"__type":Le=Wc.TypeMetaFieldDef.type;break}let Ve=u+1,ot;C&&(ot=C[ae],ot!=null&&delete C[ae],GFe(t,Ie,Ve,ot,m));let Z=x6(e[ae],Le,Ne,n,i,a,o,Ve,ot,m);q6(D,ae,Z,N,Ie)}let M=D.__typename;if(M!=null&&q6(D,"__typename",M,N,"__typename"),C)for(let ae in C){let Ne=C[ae];for(let Ie of Ne)m.unpathedErrors.add(Ie)}let G=N==null?void 0:N.__leave;return G!=null?G(D):D}function q6(e,t,r,n,i){if(n==null){e[t]=r;return}let a=n[i];if(a==null){e[t]=r;return}let o=a(r);if(o===void 0){delete e[t];return}e[t]=o}function KFe(e,t,r,n,i,a,o,u,l,m){return e.map(h=>x6(h,t,r,n,i,a,o,u+1,l,m))}function x6(e,t,r,n,i,a,o,u,l=[],m){if(e==null)return e;let h=(0,Wc.getNullableType)(t);if((0,Wc.isListType)(h))return KFe(e,h.ofType,r,n,i,a,o,u,l,m);if((0,Wc.isAbstractType)(h)){let D=n.getType(e.__typename),{fields:R,patches:C}=(0,EP.collectSubFields)(n,i,a,D,r);if(C.length){R=new Map(R);for(let M of C)for(let[G,ee]of M.fields){let ae=R.get(G);ae?ae.push(...ee):R.set(G,ee)}}return IP(e,D,R,n,i,a,o,u,l,m)}else if((0,Wc.isObjectType)(h)){let{fields:D,patches:R}=(0,EP.collectSubFields)(n,i,a,h,r);if(R.length){D=new Map(D);for(let C of R)for(let[M,G]of C.fields){let ee=D.get(M);ee?ee.push(...G):D.set(M,G)}}return IP(e,h,D,n,i,a,o,u,l,m)}let N=o==null?void 0:o[h.name];if(N==null)return e;let T=N(e);return T===void 0?e:T}function $Fe(e,t){var i;let r=Object.create(null),n=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){n.add(a);continue}o in r?r[o].push(a):r[o]=[a]}return{errorMap:r,unpathedErrors:n}}function GFe(e,t,r,n=[],i){for(let a of n){let o={type:e,fieldName:t,pathIndex:r},u=i.segmentInfoMap.get(a);u==null?i.segmentInfoMap.set(a,[o]):u.push(o)}}});var j6=O(_P=>{"use strict";d();p();f();Object.defineProperty(_P,"__esModule",{value:!0});_P.valueMatchesCriteria=vP;function vP(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((r,n)=>vP(r,t[n])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(r=>vP(e[r],t[r])):t instanceof RegExp?t.test(e):e===t}});var V6=O(SP=>{"use strict";d();p();f();Object.defineProperty(SP,"__esModule",{value:!0});SP.isAsyncIterable=QFe;function QFe(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var K6=O(OP=>{"use strict";d();p();f();Object.defineProperty(OP,"__esModule",{value:!0});OP.isDocumentNode=JFe;var YFe=_e();function JFe(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===YFe.Kind.DOCUMENT}});var $6=O(()=>{"use strict";d();p();f()});var J6=O(fy=>{"use strict";d();p();f();Object.defineProperty(fy,"__esModule",{value:!0});fy.getAsyncIteratorWithCancel=Q6;fy.getAsyncIterableWithCancel=Y6;fy.withCancel=Y6;var zFe=Hc();function HFe(e){return oa(this,null,function*(){return{value:e,done:!0}})}var G6=(0,zFe.memoize2)(function(t,r){return function(...i){return Reflect.apply(r,t,i)}});function Q6(e,t){return new Proxy(e,{has(r,n){return n==="return"?!0:Reflect.has(r,n)},get(r,n,i){let a=Reflect.get(r,n,i);if(n==="return"){let o=a||HFe;return function(l){return oa(this,null,function*(){let m=yield t(l);return Reflect.apply(o,r,[m])})}}else if(typeof a=="function")return G6(r,a);return a}})}function Y6(e,t){return new Proxy(e,{get(r,n,i){let a=Reflect.get(r,n,i);return Symbol.asyncIterator===n?function(){let u=Reflect.apply(a,r,[]);return Q6(u,t)}:typeof a=="function"?G6(r,a):a}})}});var z6=O(DP=>{"use strict";d();p();f();Object.defineProperty(DP,"__esModule",{value:!0});DP.fixSchemaAst=eLe;var WFe=_e(),XFe=Pw();function ZFe(e,t){let r=(0,XFe.getDocumentNodeFromSchema)(e);return(0,WFe.buildASTSchema)(r,q({},t||{}))}function eLe(e,t){let r;return(!e.astNode||!e.extensionASTNodes)&&(r=ZFe(e,t)),!e.astNode&&(r!=null&&r.astNode)&&(e.astNode=r.astNode),!e.extensionASTNodes&&(r!=null&&r.astNode)&&(e.extensionASTNodes=r.extensionASTNodes),e}});var H6=O(bP=>{"use strict";d();p();f();Object.defineProperty(bP,"__esModule",{value:!0});bP.extractExtensionsFromSchema=nLe;var tLe=tp(),qs=ud(),rLe=cp();function so(e,t){e=e||{};let a=e,{directives:r}=a,n=rk(a,["directives"]),i=q({},n);if(!t&&r!=null){let o={};for(let u in r)o[u]=[...(0,tLe.asArray)(r[u])];i.directives=o}return i}function nLe(e,t=!1){let r={schemaExtensions:so(e.extensions,t),types:{}};return(0,rLe.mapSchema)(e,{[qs.MapperKind.OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"object",extensions:so(n.extensions,t)},n),[qs.MapperKind.INTERFACE_TYPE]:n=>(r.types[n.name]={fields:{},type:"interface",extensions:so(n.extensions,t)},n),[qs.MapperKind.FIELD]:(n,i,a)=>{r.types[a].fields[i]={arguments:{},extensions:so(n.extensions,t)};let o=n.args;if(o!=null)for(let u in o)r.types[a].fields[i].arguments[u]=so(o[u].extensions,t);return n},[qs.MapperKind.ENUM_TYPE]:n=>(r.types[n.name]={values:{},type:"enum",extensions:so(n.extensions,t)},n),[qs.MapperKind.ENUM_VALUE]:(n,i,a,o)=>(r.types[i].values[o]=so(n.extensions,t),n),[qs.MapperKind.SCALAR_TYPE]:n=>(r.types[n.name]={type:"scalar",extensions:so(n.extensions,t)},n),[qs.MapperKind.UNION_TYPE]:n=>(r.types[n.name]={type:"union",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_TYPE]:n=>(r.types[n.name]={fields:{},type:"input",extensions:so(n.extensions,t)},n),[qs.MapperKind.INPUT_OBJECT_FIELD]:(n,i,a)=>(r.types[a].fields[i]={extensions:so(n.extensions,t)},n)}),r}});var W6=O(py=>{"use strict";d();p();f();Object.defineProperty(py,"__esModule",{value:!0});py.addPath=iLe;py.pathToArray=aLe;py.printPathArray=oLe;function iLe(e,t,r){return{prev:e,key:t,typename:r}}function aLe(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function oLe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Z6=O(RP=>{"use strict";d();p();f();Object.defineProperty(RP,"__esModule",{value:!0});RP.mergeIncrementalResult=X6;var sLe=oP();function X6({incrementalResult:e,executionResult:t}){var n;let r=["data",...(n=e.path)!=null?n:[]];if(e.items)for(let i of e.items)AP(t,r,i),r[r.length-1]++;e.data&&AP(t,r,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&AP(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{X6({incrementalResult:i,executionResult:t})})}function AP(e,t,r){let n=e,i;for(i=0;i{"use strict";d();p();f();Object.defineProperty(UI,"__esModule",{value:!0});UI.debugTimerStart=uLe;UI.debugTimerEnd=cLe;var e4=new Set;function uLe(e){var r,n;let t=((n=(r=globalThis.process)==null?void 0:r.env)==null?void 0:n.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(e4.add(e),console.time(e))}function cLe(e){e4.has(e)&&console.timeEnd(e)}});var i4=O(my=>{"use strict";d();p();f();Object.defineProperty(my,"__esModule",{value:!0});my.getAbortPromise=void 0;my.registerAbortSignalListener=n4;var lLe=ty(),r4=Hc(),dLe=(0,r4.memoize1)(function(t){let r=new Set;return t.addEventListener("abort",n=>{for(let i of r)i(n)},{once:!0}),r});function n4(e,t){if(e.aborted){t();return}dLe(e).add(t)}my.getAbortPromise=(0,r4.memoize1)(function(t){return t.aborted?(0,lLe.fakeRejectPromise)(t.reason):new Promise((r,n)=>{if(t.aborted){n(t.reason);return}n4(t,()=>{n(t.reason)})})})});var uo=O(Ue=>{"use strict";d();p();f();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createDeferred=Ue.fakePromise=Ue.mapMaybePromise=Ue.mapAsyncIterator=Ue.inspect=void 0;var Xe=(uW(),im(sW));Xe.__exportStar(cW(),Ue);Xe.__exportStar(tp(),Ue);Xe.__exportStar(mw(),Ue);Xe.__exportStar(yw(),Ue);Xe.__exportStar(vW(),Ue);Xe.__exportStar(gw(),Ue);Xe.__exportStar(Pw(),Ue);Xe.__exportStar(yw(),Ue);Xe.__exportStar(MW(),Ue);Xe.__exportStar(jW(),Ue);Xe.__exportStar(e6(),Ue);Xe.__exportStar(u6(),Ue);Xe.__exportStar(l6(),Ue);Xe.__exportStar(N6(),Ue);Xe.__exportStar(E6(),Ue);Xe.__exportStar(g6(),Ue);Xe.__exportStar(v6(),Ue);Xe.__exportStar(_6(),Ue);Xe.__exportStar(cp(),Ue);Xe.__exportStar(nP(),Ue);Xe.__exportStar(vI(),Ue);Xe.__exportStar(O6(),Ue);Xe.__exportStar(oP(),Ue);Xe.__exportStar(ud(),Ue);Xe.__exportStar(Kw(),Ue);Xe.__exportStar(b6(),Ue);Xe.__exportStar(A6(),Ue);Xe.__exportStar(R6(),Ue);Xe.__exportStar(w6(),Ue);Xe.__exportStar(Gw(),Ue);Xe.__exportStar(P6(),Ue);Xe.__exportStar(yI(),Ue);Xe.__exportStar(F6(),Ue);Xe.__exportStar(lI(),Ue);Xe.__exportStar(C6(),Ue);Xe.__exportStar(M6(),Ue);Xe.__exportStar(dw(),Ue);Xe.__exportStar(j6(),Ue);Xe.__exportStar(V6(),Ue);Xe.__exportStar(K6(),Ue);Xe.__exportStar(ry(),Ue);Xe.__exportStar($6(),Ue);Xe.__exportStar(J6(),Ue);Xe.__exportStar(iy(),Ue);Xe.__exportStar(Cw(),Ue);Xe.__exportStar(NP(),Ue);var fLe=ey();Object.defineProperty(Ue,"inspect",{enumerable:!0,get:function(){return fLe.inspect}});Xe.__exportStar(Hc(),Ue);Xe.__exportStar(z6(),Ue);Xe.__exportStar(TP(),Ue);Xe.__exportStar(H6(),Ue);Xe.__exportStar(W6(),Ue);Xe.__exportStar(pI(),Ue);Xe.__exportStar(mP(),Ue);Xe.__exportStar(Z6(),Ue);Xe.__exportStar(t4(),Ue);Xe.__exportStar(pw(),Ue);var kI=ty();Object.defineProperty(Ue,"mapAsyncIterator",{enumerable:!0,get:function(){return kI.mapAsyncIterator}});Object.defineProperty(Ue,"mapMaybePromise",{enumerable:!0,get:function(){return kI.mapMaybePromise}});Object.defineProperty(Ue,"fakePromise",{enumerable:!0,get:function(){return kI.fakePromise}});Object.defineProperty(Ue,"createDeferred",{enumerable:!0,get:function(){return kI.createDeferredPromise}});Xe.__exportStar(i4(),Ue)});var o4=O(qI=>{"use strict";d();p();f();Object.defineProperty(qI,"__esModule",{value:!0});qI.mergeResolvers=void 0;var pLe=uo();function a4(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 r=new Array;for(let i of e)Array.isArray(i)&&(i=a4(i)),typeof i=="object"&&i&&r.push(i);let n=(0,pLe.mergeDeep)(r,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete n[a]:n[a]&&delete n[a][o]}return n}qI.mergeResolvers=a4});var wP=O(xI=>{"use strict";d();p();f();Object.defineProperty(xI,"__esModule",{value:!0});xI.mergeArguments=void 0;var s4=uo();function mLe(e,t,r){let n=hLe([...t,...e].filter(s4.isSome),r);return r&&r.sort&&n.sort(s4.compareNodes),n}xI.mergeArguments=mLe;function hLe(e,t){return e.reduce((r,n)=>{let i=r.findIndex(a=>a.name.value===n.name.value);return i===-1?r.concat([n]):(t!=null&&t.reverseArguments||(r[i]=n),r)},[])}});var Aa=O(pp=>{"use strict";d();p();f();Object.defineProperty(pp,"__esModule",{value:!0});pp.mergeDirective=pp.mergeDirectives=void 0;var u4=_e(),yLe=uo();function NLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function c4(e,t){var r;return!!((r=t==null?void 0:t[e.name.value])!=null&&r.repeatable)}function TLe(e,t){return t.some(({value:r})=>r===e.value)}function l4(e,t){let r=[...t];for(let n of e){let i=r.findIndex(a=>a.name.value===n.name.value);if(i>-1){let a=r[i];if(a.value.kind==="ListValue"){let o=a.value.values,u=n.value.values;a.value.values=_Le(o,u,(l,m)=>{let h=l.value;return!h||!m.some(N=>N.value===h)})}else a.value=n.value}else r.push(n)}return r}function ELe(e,t){return e.map((r,n,i)=>{let a=i.findIndex(o=>o.name.value===r.name.value);if(a!==n&&!c4(r,t)){let o=i[a];return r.arguments=l4(r.arguments,o.arguments),null}return r}).filter(yLe.isSome)}function gLe(e=[],t=[],r,n){let i=r&&r.reverseDirectives,a=i?e:t,o=i?t:e,u=ELe([...a],n);for(let l of o)if(NLe(u,l)&&!c4(l,n)){let m=u.findIndex(N=>N.name.value===l.name.value),h=u[m];u[m].arguments=l4(l.arguments||[],h.arguments||[])}else u.push(l);return u}pp.mergeDirectives=gLe;function ILe(e,t){let r=(0,u4.print)(Q(q({},e),{description:void 0})),n=(0,u4.print)(Q(q({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(r.replace(i,"")===n.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${n} Received directive: - ${r}`)}function vLe(e,t){return t?(ILe(e,t),G(q({},e),{locations:[...t.locations,...e.locations.filter(r=>!TLe(r,t.locations))]})):e}pp.mergeDirective=vLe;function _Le(e,t,r){return e.concat(t.filter(n=>r(n,e)))}});var PP=O(MI=>{"use strict";d();p();f();Object.defineProperty(MI,"__esModule",{value:!0});MI.mergeEnumValues=void 0;var SLe=Aa(),OLe=uo();function DLe(e,t,r,n){if(r!=null&&r.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,SLe.mergeDirectives)(o.directives,l.directives,n)}else i.set(u,o)}let a=[...i.values()];return r&&r.sort&&a.sort(OLe.compareNodes),a}MI.mergeEnumValues=DLe});var FP=O(jI=>{"use strict";d();p();f();Object.defineProperty(jI,"__esModule",{value:!0});jI.mergeEnum=void 0;var bLe=ve(),ALe=Aa(),RLe=PP();function wLe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,ALe.mergeDirectives)(e.directives,t.directives,r,n),values:(0,RLe.mergeEnumValues)(e.values,t.values,r)}:r!=null&&r.convertExtensions?G(q({},e),{kind:bLe.Kind.ENUM_TYPE_DEFINITION}):e}jI.mergeEnum=wLe});var VI=O(sn=>{"use strict";d();p();f();Object.defineProperty(sn,"__esModule",{value:!0});sn.defaultStringComparator=sn.CompareVal=sn.printTypeNode=sn.isNonNullTypeNode=sn.isListTypeNode=sn.isWrappingTypeNode=sn.extractType=sn.isSourceTypes=sn.isStringTypes=void 0;var hy=ve();function PLe(e){return typeof e=="string"}sn.isStringTypes=PLe;function FLe(e){return e instanceof hy.Source}sn.isSourceTypes=FLe;function LLe(e){let t=e;for(;t.kind===hy.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}sn.extractType=LLe;function CLe(e){return e.kind!==hy.Kind.NAMED_TYPE}sn.isWrappingTypeNode=CLe;function d4(e){return e.kind===hy.Kind.LIST_TYPE}sn.isListTypeNode=d4;function f4(e){return e.kind===hy.Kind.NON_NULL_TYPE}sn.isNonNullTypeNode=f4;function LP(e){return d4(e)?`[${LP(e.type)}]`:f4(e)?`${LP(e.type)}!`:e.name.value}sn.printTypeNode=LP;var fd;(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"})(fd=sn.CompareVal||(sn.CompareVal={}));function BLe(e,t){return e==null&&t==null?fd.A_EQUALS_B:e==null?fd.A_SMALLER_THAN_B:t==null?fd.A_GREATER_THAN_B:et?fd.A_GREATER_THAN_B:fd.A_EQUALS_B}sn.defaultStringComparator=BLe});var Ny=O(KI=>{"use strict";d();p();f();Object.defineProperty(KI,"__esModule",{value:!0});KI.mergeFields=void 0;var Ri=VI(),ULe=Aa(),kLe=uo(),qLe=wP();function xLe(e,t){let r=e.findIndex(n=>n.name.value===t.name.value);return[r>-1?e[r]:null,r]}function MLe(e,t,r,n,i){let a=[];if(r!=null&&a.push(...r),t!=null)for(let o of t){let[u,l]=xLe(a,o);if(u&&!(n!=null&&n.ignoreFieldConflicts)){let m=(n==null?void 0:n.onFieldTypeConflict)&&n.onFieldTypeConflict(u,o,e,n==null?void 0:n.throwOnConflict)||jLe(e,u,o,n==null?void 0:n.throwOnConflict);m.arguments=(0,qLe.mergeArguments)(o.arguments||[],u.arguments||[],n),m.directives=(0,ULe.mergeDirectives)(o.directives,u.directives,n,i),m.description=o.description||u.description,a[l]=m}else a.push(o)}if(n&&n.sort&&a.sort(kLe.compareNodes),n&&n.exclusions){let o=n.exclusions;return a.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return a}KI.mergeFields=MLe;function jLe(e,t,r,n=!1){let i=(0,Ri.printTypeNode)(t.type),a=(0,Ri.printTypeNode)(r.type);if(i!==a){let o=(0,Ri.extractType)(t.type),u=(0,Ri.extractType)(r.type);if(o.name.value!==u.name.value)throw new Error(`Field "${r.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${u.name.value}"`);if(!yy(t.type,r.type,!n))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Ri.isNonNullTypeNode)(r.type)&&!(0,Ri.isNonNullTypeNode)(t.type)&&(t.type=r.type),t}function yy(e,t,r=!1){if(!(0,Ri.isWrappingTypeNode)(e)&&!(0,Ri.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Ri.isNonNullTypeNode)(t)){let n=(0,Ri.isNonNullTypeNode)(e)?e.type:e;return yy(n,t.type)}return(0,Ri.isNonNullTypeNode)(e)?yy(t,e,r):(0,Ri.isListTypeNode)(e)?(0,Ri.isListTypeNode)(t)&&yy(e.type,t.type)||(0,Ri.isNonNullTypeNode)(t)&&yy(e,t.type):!1}});var CP=O($I=>{"use strict";d();p();f();Object.defineProperty($I,"__esModule",{value:!0});$I.mergeInputType=void 0;var VLe=ve(),KLe=Ny(),$Le=Aa();function GLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,KLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,$Le.mergeDirectives)(e.directives,t.directives,r,n)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:VLe.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$I.mergeInputType=GLe});var Ty=O(GI=>{"use strict";d();p();f();Object.defineProperty(GI,"__esModule",{value:!0});GI.mergeNamedTypeArray=void 0;var QLe=uo();function YLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function JLe(e=[],t=[],r={}){let n=[...t,...e.filter(i=>!YLe(t,i))];return r&&r.sort&&n.sort(QLe.compareNodes),n}GI.mergeNamedTypeArray=JLe});var BP=O(QI=>{"use strict";d();p();f();Object.defineProperty(QI,"__esModule",{value:!0});QI.mergeInterface=void 0;var zLe=ve(),HLe=Ny(),WLe=Aa(),XLe=Ty();function ZLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,HLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,WLe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:e.interfaces?(0,XLe.mergeNamedTypeArray)(e.interfaces,t.interfaces,r):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:zLe.Kind.INTERFACE_TYPE_DEFINITION}):e}QI.mergeInterface=ZLe});var UP=O(YI=>{"use strict";d();p();f();Object.defineProperty(YI,"__esModule",{value:!0});YI.mergeType=void 0;var eCe=ve(),tCe=Ny(),rCe=Aa(),nCe=Ty();function iCe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,tCe.mergeFields)(e,e.fields,t.fields,r),directives:(0,rCe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:(0,nCe.mergeNamedTypeArray)(e.interfaces,t.interfaces,r)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?G(q({},e),{kind:eCe.Kind.OBJECT_TYPE_DEFINITION}):e}YI.mergeType=iCe});var kP=O(JI=>{"use strict";d();p();f();Object.defineProperty(JI,"__esModule",{value:!0});JI.mergeScalar=void 0;var aCe=ve(),oCe=Aa();function sCe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,oCe.mergeDirectives)(e.directives,t.directives,r,n)}:r!=null&&r.convertExtensions?G(q({},e),{kind:aCe.Kind.SCALAR_TYPE_DEFINITION}):e}JI.mergeScalar=sCe});var xP=O(zI=>{"use strict";d();p();f();Object.defineProperty(zI,"__esModule",{value:!0});zI.mergeUnion=void 0;var qP=ve(),uCe=Aa(),cCe=Ty();function lCe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,directives:(0,uCe.mergeDirectives)(e.directives,t.directives,r,n),kind:r!=null&&r.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?qP.Kind.UNION_TYPE_DEFINITION:qP.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,cCe.mergeNamedTypeArray)(e.types,t.types,r)}:r!=null&&r.convertExtensions?G(q({},e),{kind:qP.Kind.UNION_TYPE_DEFINITION}):e}zI.mergeUnion=lCe});var MP=O(pd=>{"use strict";d();p();f();Object.defineProperty(pd,"__esModule",{value:!0});pd.mergeSchemaDefs=pd.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Ey=ve(),dCe=Aa();pd.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function fCe(e=[],t=[]){let r=[];for(let n in pd.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===n)||t.find(a=>a.operation===n);i&&r.push(i)}return r}function pCe(e,t,r,n){return t?{kind:e.kind===Ey.Kind.SCHEMA_DEFINITION||t.kind===Ey.Kind.SCHEMA_DEFINITION?Ey.Kind.SCHEMA_DEFINITION:Ey.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,dCe.mergeDirectives)(e.directives,t.directives,r,n),operationTypes:fCe(e.operationTypes,t.operationTypes)}:r!=null&&r.convertExtensions?G(q({},e),{kind:Ey.Kind.SCHEMA_DEFINITION}):e}pd.mergeSchemaDefs=pCe});var jP=O(Yo=>{"use strict";d();p();f();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.mergeGraphQLNodes=Yo.isNamedDefinitionNode=Yo.schemaDefSymbol=void 0;var li=ve(),mCe=UP(),hCe=FP(),yCe=kP(),NCe=xP(),TCe=CP(),ECe=BP(),gCe=Aa(),ICe=MP(),vCe=uo();Yo.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function p4(e){return"name"in e}Yo.isNamedDefinitionNode=p4;function _Ce(e,t,r={}){var i,a,o;let n=r;for(let u of e)if(p4(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,vCe.collectComment)(u),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete n[l];else switch(u.kind){case li.Kind.OBJECT_TYPE_DEFINITION:case li.Kind.OBJECT_TYPE_EXTENSION:n[l]=(0,mCe.mergeType)(u,n[l],t,r);break;case li.Kind.ENUM_TYPE_DEFINITION:case li.Kind.ENUM_TYPE_EXTENSION:n[l]=(0,hCe.mergeEnum)(u,n[l],t,r);break;case li.Kind.UNION_TYPE_DEFINITION:case li.Kind.UNION_TYPE_EXTENSION:n[l]=(0,NCe.mergeUnion)(u,n[l],t,r);break;case li.Kind.SCALAR_TYPE_DEFINITION:case li.Kind.SCALAR_TYPE_EXTENSION:n[l]=(0,yCe.mergeScalar)(u,n[l],t,r);break;case li.Kind.INPUT_OBJECT_TYPE_DEFINITION:case li.Kind.INPUT_OBJECT_TYPE_EXTENSION:n[l]=(0,TCe.mergeInputType)(u,n[l],t,r);break;case li.Kind.INTERFACE_TYPE_DEFINITION:case li.Kind.INTERFACE_TYPE_EXTENSION:n[l]=(0,ECe.mergeInterface)(u,n[l],t,r);break;case li.Kind.DIRECTIVE_DEFINITION:n[l]=(0,gCe.mergeDirective)(u,n[l]);break}}else(u.kind===li.Kind.SCHEMA_DEFINITION||u.kind===li.Kind.SCHEMA_EXTENSION)&&(n[Yo.schemaDefSymbol]=(0,ICe.mergeSchemaDefs)(u,n[Yo.schemaDefSymbol],t));return n}Yo.mergeGraphQLNodes=_Ce});var y4=O(Np=>{"use strict";d();p();f();Object.defineProperty(Np,"__esModule",{value:!0});Np.mergeGraphQLTypes=Np.mergeTypeDefs=void 0;var Ra=ve(),VP=VI(),mp=jP(),yp=uo(),m4=MP();function SCe(e,t){(0,yp.resetComments)();let r={kind:Ra.Kind.DOCUMENT,definitions:h4(e,q({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},n;return t!=null&&t.commentDescriptions?n=(0,yp.printWithComments)(r):n=r,(0,yp.resetComments)(),n}Np.mergeTypeDefs=SCe;function hp(e,t,r=[],n=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")hp(e(),t,r,n,i);else if(Array.isArray(e))for(let a of e)hp(a,t,r,n,i);else if((0,Ra.isSchema)(e)){let a=(0,yp.getDocumentNodeFromSchema)(e,t);hp(a.definitions,t,r,n,i)}else if((0,VP.isStringTypes)(e)||(0,VP.isSourceTypes)(e)){let a=(0,Ra.parse)(e,t);hp(a.definitions,t,r,n,i)}else if(typeof e=="object"&&(0,Ra.isDefinitionNode)(e))e.kind===Ra.Kind.DIRECTIVE_DEFINITION?r.push(e):n.push(e);else if((0,yp.isDocumentNode)(e))hp(e.definitions,t,r,n,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:r,allNodes:n}}function h4(e,t){var u,l,m;(0,yp.resetComments)();let{allDirectives:r,allNodes:n}=hp(e,t),i=(0,mp.mergeGraphQLNodes)(r,t),a=(0,mp.mergeGraphQLNodes)(n,t,i);if(t!=null&&t.useSchemaDefinition){let h=a[mp.schemaDefSymbol]||{kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[]},N=h.operationTypes;for(let T in m4.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!N.find(R=>R.operation===T)){let R=m4.DEFAULT_OPERATION_TYPE_NAME_MAP[T],C=a[R];C!=null&&C.name!=null&&N.push({kind:Ra.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Ra.Kind.NAMED_TYPE,name:C.name},operation:T})}((u=h==null?void 0:h.operationTypes)==null?void 0:u.length)!=null&&h.operationTypes.length>0&&(a[mp.schemaDefSymbol]=h)}t!=null&&t.forceSchemaDefinition&&!((m=(l=a[mp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&m.length)&&(a[mp.schemaDefSymbol]={kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Ra.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Ra.Kind.NAMED_TYPE,name:{kind:Ra.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let h=typeof t.sort=="function"?t.sort:VP.defaultStringComparator;o.sort((N,T)=>{var D,R;return h((D=N.name)==null?void 0:D.value,(R=T.name)==null?void 0:R.value)})}return o}Np.mergeGraphQLTypes=h4});var N4=O(ri=>{"use strict";d();p();f();Object.defineProperty(ri,"__esModule",{value:!0});var wi=(rw(),im(tw));wi.__exportStar(wP(),ri);wi.__exportStar(Aa(),ri);wi.__exportStar(PP(),ri);wi.__exportStar(FP(),ri);wi.__exportStar(Ny(),ri);wi.__exportStar(CP(),ri);wi.__exportStar(BP(),ri);wi.__exportStar(Ty(),ri);wi.__exportStar(jP(),ri);wi.__exportStar(y4(),ri);wi.__exportStar(kP(),ri);wi.__exportStar(UP(),ri);wi.__exportStar(xP(),ri);wi.__exportStar(VI(),ri)});var E4=O(Xc=>{"use strict";d();p();f();Object.defineProperty(Xc,"__esModule",{value:!0});Xc.applyExtensions=Xc.mergeExtensions=Xc.extractExtensionsFromSchema=void 0;var T4=uo(),OCe=uo();Object.defineProperty(Xc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return OCe.extractExtensionsFromSchema}});function DCe(e){return(0,T4.mergeDeep)(e)}Xc.mergeExtensions=DCe;function Tp(e,t){e&&(e.extensions=(0,T4.mergeDeep)([e.extensions||{},t||{}]))}function bCe(e,t){Tp(e,t.schemaExtensions);for(let[r,n]of Object.entries(t.types||{})){let i=e.getType(r);if(i){if(Tp(i,n.extensions),n.type==="object"||n.type==="interface")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];if(u){Tp(u,o.extensions);for(let[l,m]of Object.entries(o.arguments))Tp(u.args.find(h=>h.name===l),m)}}else if(n.type==="input")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];Tp(u,o.extensions)}else if(n.type==="enum")for(let[a,o]of Object.entries(n.values)){let u=i.getValue(a);Tp(u,o)}}}return e}Xc.applyExtensions=bCe});var Iy=O(gy=>{"use strict";d();p();f();Object.defineProperty(gy,"__esModule",{value:!0});var KP=(rw(),im(tw));KP.__exportStar(o4(),gy);KP.__exportStar(N4(),gy);KP.__exportStar(E4(),gy)});var bi=O(K=>{"use strict";d();p();f();Object.defineProperty(K,"__esModule",{value:!0});K.noLinkDirectiveUrlError=K.semanticNonNullArgumentErrorMessage=K.invalidEventProviderIdErrorMessage=K.invalidNatsStreamConfigurationDefinitionErrorMessage=K.invalidEdfsPublishResultObjectErrorMessage=K.invalidNatsStreamInputErrorMessage=K.inlineFragmentInFieldSetErrorMessage=K.inaccessibleQueryRootTypeError=K.noSubgraphNameError=K.minimumSubgraphRequirementError=void 0;K.multipleNamedTypeDefinitionError=wCe;K.incompatibleInputValueDefaultValueTypeError=PCe;K.incompatibleMergedTypesError=FCe;K.incompatibleInputValueDefaultValuesError=LCe;K.incompatibleSharedEnumError=CCe;K.invalidSubgraphNamesError=BCe;K.duplicateDirectiveDefinitionError=UCe;K.duplicateEnumValueDefinitionError=kCe;K.duplicateFieldDefinitionError=qCe;K.duplicateInputFieldDefinitionError=xCe;K.duplicateImplementedInterfaceError=MCe;K.duplicateUnionMemberDefinitionError=jCe;K.duplicateTypeDefinitionError=VCe;K.duplicateOperationTypeDefinitionError=KCe;K.noBaseDefinitionForExtensionError=$Ce;K.noBaseScalarDefinitionError=GCe;K.noDefinedUnionMembersError=QCe;K.noDefinedEnumValuesError=YCe;K.operationDefinitionError=JCe;K.invalidFieldShareabilityError=zCe;K.undefinedDirectiveError=HCe;K.undefinedTypeError=WCe;K.invalidRepeatedDirectiveErrorMessage=XCe;K.invalidDirectiveError=ZCe;K.invalidCustomDirectiveError=eBe;K.invalidDirectiveLocationErrorMessage=tBe;K.invalidDirectiveLocationError=rBe;K.invalidRepeatedDirectiveError=nBe;K.undefinedRequiredArgumentsError=iBe;K.undefinedRequiredArgumentsErrorMessage=aBe;K.unexpectedArgumentProvisionError=oBe;K.unexpectedDirectiveArgumentErrorMessage=sBe;K.duplicateArgumentDefinitionError=uBe;K.duplicateDirectiveArgumentDefinitionsErrorMessage=cBe;K.invalidArgumentValueError=lBe;K.invalidArgumentValueErrorMessage=dBe;K.maximumTypeNestingExceededError=fBe;K.unexpectedKindFatalError=pBe;K.incompatibleParentKindFatalError=mBe;K.unexpectedEdgeFatalError=hBe;K.incompatibleParentTypeMergeError=NBe;K.unexpectedTypeNodeKindFatalError=TBe;K.invalidKeyFatalError=EBe;K.unexpectedParentKindForChildError=gBe;K.subgraphValidationError=IBe;K.duplicateSubgraphNamesError=vBe;K.invalidOperationTypeDefinitionError=_Be;K.invalidRootTypeDefinitionError=SBe;K.subgraphInvalidSyntaxError=OBe;K.invalidInterfaceImplementationError=DBe;K.invalidRequiredInputValueError=bBe;K.duplicateArgumentsError=ABe;K.noQueryRootTypeError=RBe;K.expectedEntityError=wBe;K.abstractTypeInKeyFieldSetErrorMessage=PBe;K.unknownTypeInFieldSetErrorMessage=FBe;K.invalidSelectionSetErrorMessage=LBe;K.invalidSelectionSetDefinitionErrorMessage=CBe;K.undefinedFieldInFieldSetErrorMessage=BBe;K.unparsableFieldSetErrorMessage=UBe;K.unparsableFieldSetSelectionErrorMessage=kBe;K.undefinedCompositeOutputTypeError=qBe;K.unexpectedArgumentErrorMessage=xBe;K.argumentsInKeyFieldSetErrorMessage=MBe;K.invalidProvidesOrRequiresDirectivesError=jBe;K.duplicateFieldInFieldSetErrorMessage=VBe;K.incompatibleTypeWithProvidesErrorMessage=KBe;K.invalidInlineFragmentTypeErrorMessage=$Be;K.inlineFragmentWithoutTypeConditionErrorMessage=GBe;K.unknownInlineFragmentTypeConditionErrorMessage=QBe;K.invalidInlineFragmentTypeConditionTypeErrorMessage=YBe;K.invalidInlineFragmentTypeConditionErrorMessage=JBe;K.invalidSelectionOnUnionErrorMessage=zBe;K.duplicateOverriddenFieldErrorMessage=HBe;K.duplicateOverriddenFieldsError=WBe;K.noFieldDefinitionsError=XBe;K.noInputValueDefinitionsError=ZBe;K.allChildDefinitionsAreInaccessibleError=eUe;K.equivalentSourceAndTargetOverrideErrorMessage=tUe;K.undefinedEntityInterfaceImplementationsError=rUe;K.orScopesLimitError=nUe;K.invalidEventDrivenGraphError=iUe;K.invalidRootTypeFieldEventsDirectivesErrorMessage=aUe;K.invalidEventDrivenMutationResponseTypeErrorMessage=oUe;K.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=sUe;K.invalidNatsStreamInputFieldsErrorMessage=uUe;K.invalidKeyFieldSetsEventDrivenErrorMessage=cUe;K.nonExternalKeyFieldNamesEventDrivenErrorMessage=lUe;K.nonKeyFieldNamesEventDrivenErrorMessage=dUe;K.nonEntityObjectExtensionsEventDrivenErrorMessage=fUe;K.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=pUe;K.invalidImplementedTypeError=mUe;K.selfImplementationError=hUe;K.invalidEventSubjectErrorMessage=yUe;K.invalidEventSubjectsErrorMessage=NUe;K.invalidEventSubjectsItemErrorMessage=TUe;K.invalidEventSubjectsArgumentErrorMessage=EUe;K.undefinedEventSubjectsArgumentErrorMessage=gUe;K.invalidEventDirectiveError=IUe;K.invalidReferencesOfInaccessibleTypeError=vUe;K.inaccessibleRequiredInputValueError=_Ue;K.invalidUnionMemberTypeError=SUe;K.invalidRootTypeError=OUe;K.invalidSubscriptionFilterLocationError=DUe;K.invalidSubscriptionFilterDirectiveError=bUe;K.subscriptionFilterNamedTypeErrorMessage=AUe;K.subscriptionFilterConditionDepthExceededErrorMessage=RUe;K.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=wUe;K.subscriptionFilterConditionInvalidInputFieldErrorMessage=PUe;K.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=FUe;K.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=LUe;K.subscriptionFilterArrayConditionInvalidLengthErrorMessage=CUe;K.invalidInputFieldTypeErrorMessage=BUe;K.subscriptionFieldConditionInvalidInputFieldErrorMessage=UUe;K.subscriptionFieldConditionInvalidValuesArrayErrorMessage=kUe;K.subscriptionFieldConditionEmptyValuesArrayErrorMessage=qUe;K.unknownFieldSubgraphNameError=xUe;K.invalidSubscriptionFieldConditionFieldPathErrorMessage=MUe;K.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=jUe;K.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=VUe;K.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=KUe;K.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=$Ue;K.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=GUe;K.unresolvablePathError=QUe;K.allExternalFieldInstancesError=YUe;K.externalInterfaceFieldsError=JUe;K.nonExternalConditionalFieldError=zUe;K.incompatibleFederatedFieldNamedTypeError=HUe;K.unknownNamedTypeErrorMessage=O4;K.unknownNamedTypeError=WUe;K.unknownFieldDataError=XUe;K.unexpectedNonCompositeOutputTypeError=ZUe;K.invalidExternalDirectiveError=eke;K.configureDescriptionNoDescriptionError=tke;K.configureDescriptionPropagationError=rke;K.duplicateDirectiveDefinitionArgumentErrorMessage=nke;K.duplicateDirectiveDefinitionLocationError=ike;K.duplicateDirectiveDefinitionLocationErrorMessage=ake;K.invalidDirectiveDefinitionLocationError=oke;K.invalidDirectiveDefinitionLocationErrorMessage=ske;K.invalidDirectiveDefinitionError=uke;K.typeNameAlreadyProvidedErrorMessage=cke;K.fieldAlreadyProvidedErrorMessage=lke;K.invalidInterfaceObjectImplementationDefinitionsError=dke;K.invalidNamedTypeError=fke;K.semanticNonNullLevelsNaNIndexErrorMessage=pke;K.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=mke;K.semanticNonNullLevelsNonNullErrorMessage=hke;K.semanticNonNullInconsistentLevelsError=yke;K.oneOfRequiredFieldsError=Nke;K.listSizeInvalidSlicingArgumentErrorMessage=Tke;K.listSizeSlicingArgumentNotIntErrorMessage=Eke;K.listSizeSizedFieldNotFoundErrorMessage=gke;K.listSizeSizedFieldNotListErrorMessage=Ike;K.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage=vke;K.listSizeSizedFieldsInvalidReturnTypeErrorMessage=_ke;K.listSizeSizedFieldsOnListsErrorMessage=Ske;K.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage=Oke;K.listSizeAssumedSizeSlicingArgDefaultErrorMessage=Dke;K.costOnInterfaceFieldErrorMessage=bke;K.unknownComposeDirectiveNameError=Ake;K.invalidComposeDirectiveNameError=Rke;K.noLeadingAtComposeDirectiveNameError=wke;K.unimportedComposeDirectiveNameError=Pke;K.invalidLinkDirectiveUrlError=Fke;K.noPathLinkDirectiveUrlError=Lke;K.noFeatureNameLinkDirectiveUrlError=Cke;K.noVersionLinkDirectiveUrlError=Bke;K.invalidVersionLinkDirectiveUrlError=Uke;K.nonIterableLinkDirectiveImportError=kke;K.invalidFieldLinkDirectiveImportObjectError=qke;K.noNameFieldLinkDirectiveImportObjectError=xke;K.unknownFieldLinkDirectiveImportObjectError=Mke;K.invalidLinkDirectiveImportObjectError=jke;K.invalidSubValueLinkDirectiveImportError=Vke;K.nonEqualCoreFeatureComposeDirectiveError=Kke;K.nonEqualComposeDirectiveMajorVersionError=$ke;K.unknownSubgraphNameError=Gke;var g4=ve(),We=xr(),I4=Xf(),Ep=An(),ACe=Zc(),RCe=Iy();K.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function wCe(e,t,r){return new Error(`The named type "${e}" is defined as both types "${t}" and "${r}". + ${r}`)}function vLe(e,t){return t?(ILe(e,t),Q(q({},e),{locations:[...t.locations,...e.locations.filter(r=>!TLe(r,t.locations))]})):e}pp.mergeDirective=vLe;function _Le(e,t,r){return e.concat(t.filter(n=>r(n,e)))}});var PP=O(MI=>{"use strict";d();p();f();Object.defineProperty(MI,"__esModule",{value:!0});MI.mergeEnumValues=void 0;var SLe=Aa(),OLe=uo();function DLe(e,t,r,n){if(r!=null&&r.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,SLe.mergeDirectives)(o.directives,l.directives,n)}else i.set(u,o)}let a=[...i.values()];return r&&r.sort&&a.sort(OLe.compareNodes),a}MI.mergeEnumValues=DLe});var FP=O(jI=>{"use strict";d();p();f();Object.defineProperty(jI,"__esModule",{value:!0});jI.mergeEnum=void 0;var bLe=_e(),ALe=Aa(),RLe=PP();function wLe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,ALe.mergeDirectives)(e.directives,t.directives,r,n),values:(0,RLe.mergeEnumValues)(e.values,t.values,r)}:r!=null&&r.convertExtensions?Q(q({},e),{kind:bLe.Kind.ENUM_TYPE_DEFINITION}):e}jI.mergeEnum=wLe});var VI=O(sn=>{"use strict";d();p();f();Object.defineProperty(sn,"__esModule",{value:!0});sn.defaultStringComparator=sn.CompareVal=sn.printTypeNode=sn.isNonNullTypeNode=sn.isListTypeNode=sn.isWrappingTypeNode=sn.extractType=sn.isSourceTypes=sn.isStringTypes=void 0;var hy=_e();function PLe(e){return typeof e=="string"}sn.isStringTypes=PLe;function FLe(e){return e instanceof hy.Source}sn.isSourceTypes=FLe;function LLe(e){let t=e;for(;t.kind===hy.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}sn.extractType=LLe;function CLe(e){return e.kind!==hy.Kind.NAMED_TYPE}sn.isWrappingTypeNode=CLe;function d4(e){return e.kind===hy.Kind.LIST_TYPE}sn.isListTypeNode=d4;function f4(e){return e.kind===hy.Kind.NON_NULL_TYPE}sn.isNonNullTypeNode=f4;function LP(e){return d4(e)?`[${LP(e.type)}]`:f4(e)?`${LP(e.type)}!`:e.name.value}sn.printTypeNode=LP;var fd;(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"})(fd=sn.CompareVal||(sn.CompareVal={}));function BLe(e,t){return e==null&&t==null?fd.A_EQUALS_B:e==null?fd.A_SMALLER_THAN_B:t==null?fd.A_GREATER_THAN_B:et?fd.A_GREATER_THAN_B:fd.A_EQUALS_B}sn.defaultStringComparator=BLe});var Ny=O(KI=>{"use strict";d();p();f();Object.defineProperty(KI,"__esModule",{value:!0});KI.mergeFields=void 0;var Ri=VI(),ULe=Aa(),kLe=uo(),qLe=wP();function xLe(e,t){let r=e.findIndex(n=>n.name.value===t.name.value);return[r>-1?e[r]:null,r]}function MLe(e,t,r,n,i){let a=[];if(r!=null&&a.push(...r),t!=null)for(let o of t){let[u,l]=xLe(a,o);if(u&&!(n!=null&&n.ignoreFieldConflicts)){let m=(n==null?void 0:n.onFieldTypeConflict)&&n.onFieldTypeConflict(u,o,e,n==null?void 0:n.throwOnConflict)||jLe(e,u,o,n==null?void 0:n.throwOnConflict);m.arguments=(0,qLe.mergeArguments)(o.arguments||[],u.arguments||[],n),m.directives=(0,ULe.mergeDirectives)(o.directives,u.directives,n,i),m.description=o.description||u.description,a[l]=m}else a.push(o)}if(n&&n.sort&&a.sort(kLe.compareNodes),n&&n.exclusions){let o=n.exclusions;return a.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return a}KI.mergeFields=MLe;function jLe(e,t,r,n=!1){let i=(0,Ri.printTypeNode)(t.type),a=(0,Ri.printTypeNode)(r.type);if(i!==a){let o=(0,Ri.extractType)(t.type),u=(0,Ri.extractType)(r.type);if(o.name.value!==u.name.value)throw new Error(`Field "${r.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${u.name.value}"`);if(!yy(t.type,r.type,!n))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Ri.isNonNullTypeNode)(r.type)&&!(0,Ri.isNonNullTypeNode)(t.type)&&(t.type=r.type),t}function yy(e,t,r=!1){if(!(0,Ri.isWrappingTypeNode)(e)&&!(0,Ri.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Ri.isNonNullTypeNode)(t)){let n=(0,Ri.isNonNullTypeNode)(e)?e.type:e;return yy(n,t.type)}return(0,Ri.isNonNullTypeNode)(e)?yy(t,e,r):(0,Ri.isListTypeNode)(e)?(0,Ri.isListTypeNode)(t)&&yy(e.type,t.type)||(0,Ri.isNonNullTypeNode)(t)&&yy(e,t.type):!1}});var CP=O($I=>{"use strict";d();p();f();Object.defineProperty($I,"__esModule",{value:!0});$I.mergeInputType=void 0;var VLe=_e(),KLe=Ny(),$Le=Aa();function GLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,KLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,$Le.mergeDirectives)(e.directives,t.directives,r,n)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?Q(q({},e),{kind:VLe.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$I.mergeInputType=GLe});var Ty=O(GI=>{"use strict";d();p();f();Object.defineProperty(GI,"__esModule",{value:!0});GI.mergeNamedTypeArray=void 0;var QLe=uo();function YLe(e,t){return!!e.find(r=>r.name.value===t.name.value)}function JLe(e=[],t=[],r={}){let n=[...t,...e.filter(i=>!YLe(t,i))];return r&&r.sort&&n.sort(QLe.compareNodes),n}GI.mergeNamedTypeArray=JLe});var BP=O(QI=>{"use strict";d();p();f();Object.defineProperty(QI,"__esModule",{value:!0});QI.mergeInterface=void 0;var zLe=_e(),HLe=Ny(),WLe=Aa(),XLe=Ty();function ZLe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,HLe.mergeFields)(e,e.fields,t.fields,r),directives:(0,WLe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:e.interfaces?(0,XLe.mergeNamedTypeArray)(e.interfaces,t.interfaces,r):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?Q(q({},e),{kind:zLe.Kind.INTERFACE_TYPE_DEFINITION}):e}QI.mergeInterface=ZLe});var UP=O(YI=>{"use strict";d();p();f();Object.defineProperty(YI,"__esModule",{value:!0});YI.mergeType=void 0;var eCe=_e(),tCe=Ny(),rCe=Aa(),nCe=Ty();function iCe(e,t,r,n){if(t)try{return{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,tCe.mergeFields)(e,e.fields,t.fields,r),directives:(0,rCe.mergeDirectives)(e.directives,t.directives,r,n),interfaces:(0,nCe.mergeNamedTypeArray)(e.interfaces,t.interfaces,r)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return r!=null&&r.convertExtensions?Q(q({},e),{kind:eCe.Kind.OBJECT_TYPE_DEFINITION}):e}YI.mergeType=iCe});var kP=O(JI=>{"use strict";d();p();f();Object.defineProperty(JI,"__esModule",{value:!0});JI.mergeScalar=void 0;var aCe=_e(),oCe=Aa();function sCe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,kind:r!=null&&r.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,oCe.mergeDirectives)(e.directives,t.directives,r,n)}:r!=null&&r.convertExtensions?Q(q({},e),{kind:aCe.Kind.SCALAR_TYPE_DEFINITION}):e}JI.mergeScalar=sCe});var xP=O(zI=>{"use strict";d();p();f();Object.defineProperty(zI,"__esModule",{value:!0});zI.mergeUnion=void 0;var qP=_e(),uCe=Aa(),cCe=Ty();function lCe(e,t,r,n){return t?{name:e.name,description:e.description||t.description,directives:(0,uCe.mergeDirectives)(e.directives,t.directives,r,n),kind:r!=null&&r.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?qP.Kind.UNION_TYPE_DEFINITION:qP.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,cCe.mergeNamedTypeArray)(e.types,t.types,r)}:r!=null&&r.convertExtensions?Q(q({},e),{kind:qP.Kind.UNION_TYPE_DEFINITION}):e}zI.mergeUnion=lCe});var MP=O(pd=>{"use strict";d();p();f();Object.defineProperty(pd,"__esModule",{value:!0});pd.mergeSchemaDefs=pd.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Ey=_e(),dCe=Aa();pd.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function fCe(e=[],t=[]){let r=[];for(let n in pd.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===n)||t.find(a=>a.operation===n);i&&r.push(i)}return r}function pCe(e,t,r,n){return t?{kind:e.kind===Ey.Kind.SCHEMA_DEFINITION||t.kind===Ey.Kind.SCHEMA_DEFINITION?Ey.Kind.SCHEMA_DEFINITION:Ey.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,dCe.mergeDirectives)(e.directives,t.directives,r,n),operationTypes:fCe(e.operationTypes,t.operationTypes)}:r!=null&&r.convertExtensions?Q(q({},e),{kind:Ey.Kind.SCHEMA_DEFINITION}):e}pd.mergeSchemaDefs=pCe});var jP=O(Yo=>{"use strict";d();p();f();Object.defineProperty(Yo,"__esModule",{value:!0});Yo.mergeGraphQLNodes=Yo.isNamedDefinitionNode=Yo.schemaDefSymbol=void 0;var li=_e(),mCe=UP(),hCe=FP(),yCe=kP(),NCe=xP(),TCe=CP(),ECe=BP(),gCe=Aa(),ICe=MP(),vCe=uo();Yo.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function p4(e){return"name"in e}Yo.isNamedDefinitionNode=p4;function _Ce(e,t,r={}){var i,a,o;let n=r;for(let u of e)if(p4(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,vCe.collectComment)(u),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete n[l];else switch(u.kind){case li.Kind.OBJECT_TYPE_DEFINITION:case li.Kind.OBJECT_TYPE_EXTENSION:n[l]=(0,mCe.mergeType)(u,n[l],t,r);break;case li.Kind.ENUM_TYPE_DEFINITION:case li.Kind.ENUM_TYPE_EXTENSION:n[l]=(0,hCe.mergeEnum)(u,n[l],t,r);break;case li.Kind.UNION_TYPE_DEFINITION:case li.Kind.UNION_TYPE_EXTENSION:n[l]=(0,NCe.mergeUnion)(u,n[l],t,r);break;case li.Kind.SCALAR_TYPE_DEFINITION:case li.Kind.SCALAR_TYPE_EXTENSION:n[l]=(0,yCe.mergeScalar)(u,n[l],t,r);break;case li.Kind.INPUT_OBJECT_TYPE_DEFINITION:case li.Kind.INPUT_OBJECT_TYPE_EXTENSION:n[l]=(0,TCe.mergeInputType)(u,n[l],t,r);break;case li.Kind.INTERFACE_TYPE_DEFINITION:case li.Kind.INTERFACE_TYPE_EXTENSION:n[l]=(0,ECe.mergeInterface)(u,n[l],t,r);break;case li.Kind.DIRECTIVE_DEFINITION:n[l]=(0,gCe.mergeDirective)(u,n[l]);break}}else(u.kind===li.Kind.SCHEMA_DEFINITION||u.kind===li.Kind.SCHEMA_EXTENSION)&&(n[Yo.schemaDefSymbol]=(0,ICe.mergeSchemaDefs)(u,n[Yo.schemaDefSymbol],t));return n}Yo.mergeGraphQLNodes=_Ce});var y4=O(Np=>{"use strict";d();p();f();Object.defineProperty(Np,"__esModule",{value:!0});Np.mergeGraphQLTypes=Np.mergeTypeDefs=void 0;var Ra=_e(),VP=VI(),mp=jP(),yp=uo(),m4=MP();function SCe(e,t){(0,yp.resetComments)();let r={kind:Ra.Kind.DOCUMENT,definitions:h4(e,q({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},n;return t!=null&&t.commentDescriptions?n=(0,yp.printWithComments)(r):n=r,(0,yp.resetComments)(),n}Np.mergeTypeDefs=SCe;function hp(e,t,r=[],n=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")hp(e(),t,r,n,i);else if(Array.isArray(e))for(let a of e)hp(a,t,r,n,i);else if((0,Ra.isSchema)(e)){let a=(0,yp.getDocumentNodeFromSchema)(e,t);hp(a.definitions,t,r,n,i)}else if((0,VP.isStringTypes)(e)||(0,VP.isSourceTypes)(e)){let a=(0,Ra.parse)(e,t);hp(a.definitions,t,r,n,i)}else if(typeof e=="object"&&(0,Ra.isDefinitionNode)(e))e.kind===Ra.Kind.DIRECTIVE_DEFINITION?r.push(e):n.push(e);else if((0,yp.isDocumentNode)(e))hp(e.definitions,t,r,n,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:r,allNodes:n}}function h4(e,t){var u,l,m;(0,yp.resetComments)();let{allDirectives:r,allNodes:n}=hp(e,t),i=(0,mp.mergeGraphQLNodes)(r,t),a=(0,mp.mergeGraphQLNodes)(n,t,i);if(t!=null&&t.useSchemaDefinition){let h=a[mp.schemaDefSymbol]||{kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[]},N=h.operationTypes;for(let T in m4.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!N.find(R=>R.operation===T)){let R=m4.DEFAULT_OPERATION_TYPE_NAME_MAP[T],C=a[R];C!=null&&C.name!=null&&N.push({kind:Ra.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Ra.Kind.NAMED_TYPE,name:C.name},operation:T})}((u=h==null?void 0:h.operationTypes)==null?void 0:u.length)!=null&&h.operationTypes.length>0&&(a[mp.schemaDefSymbol]=h)}t!=null&&t.forceSchemaDefinition&&!((m=(l=a[mp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&m.length)&&(a[mp.schemaDefSymbol]={kind:Ra.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Ra.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Ra.Kind.NAMED_TYPE,name:{kind:Ra.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let h=typeof t.sort=="function"?t.sort:VP.defaultStringComparator;o.sort((N,T)=>{var D,R;return h((D=N.name)==null?void 0:D.value,(R=T.name)==null?void 0:R.value)})}return o}Np.mergeGraphQLTypes=h4});var N4=O(ri=>{"use strict";d();p();f();Object.defineProperty(ri,"__esModule",{value:!0});var wi=(rw(),im(tw));wi.__exportStar(wP(),ri);wi.__exportStar(Aa(),ri);wi.__exportStar(PP(),ri);wi.__exportStar(FP(),ri);wi.__exportStar(Ny(),ri);wi.__exportStar(CP(),ri);wi.__exportStar(BP(),ri);wi.__exportStar(Ty(),ri);wi.__exportStar(jP(),ri);wi.__exportStar(y4(),ri);wi.__exportStar(kP(),ri);wi.__exportStar(UP(),ri);wi.__exportStar(xP(),ri);wi.__exportStar(VI(),ri)});var E4=O(Xc=>{"use strict";d();p();f();Object.defineProperty(Xc,"__esModule",{value:!0});Xc.applyExtensions=Xc.mergeExtensions=Xc.extractExtensionsFromSchema=void 0;var T4=uo(),OCe=uo();Object.defineProperty(Xc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return OCe.extractExtensionsFromSchema}});function DCe(e){return(0,T4.mergeDeep)(e)}Xc.mergeExtensions=DCe;function Tp(e,t){e&&(e.extensions=(0,T4.mergeDeep)([e.extensions||{},t||{}]))}function bCe(e,t){Tp(e,t.schemaExtensions);for(let[r,n]of Object.entries(t.types||{})){let i=e.getType(r);if(i){if(Tp(i,n.extensions),n.type==="object"||n.type==="interface")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];if(u){Tp(u,o.extensions);for(let[l,m]of Object.entries(o.arguments))Tp(u.args.find(h=>h.name===l),m)}}else if(n.type==="input")for(let[a,o]of Object.entries(n.fields)){let u=i.getFields()[a];Tp(u,o.extensions)}else if(n.type==="enum")for(let[a,o]of Object.entries(n.values)){let u=i.getValue(a);Tp(u,o)}}}return e}Xc.applyExtensions=bCe});var Iy=O(gy=>{"use strict";d();p();f();Object.defineProperty(gy,"__esModule",{value:!0});var KP=(rw(),im(tw));KP.__exportStar(o4(),gy);KP.__exportStar(N4(),gy);KP.__exportStar(E4(),gy)});var bi=O(K=>{"use strict";d();p();f();Object.defineProperty(K,"__esModule",{value:!0});K.noLinkDirectiveUrlError=K.semanticNonNullArgumentErrorMessage=K.invalidEventProviderIdErrorMessage=K.invalidNatsStreamConfigurationDefinitionErrorMessage=K.invalidEdfsPublishResultObjectErrorMessage=K.invalidNatsStreamInputErrorMessage=K.inlineFragmentInFieldSetErrorMessage=K.inaccessibleQueryRootTypeError=K.noSubgraphNameError=K.minimumSubgraphRequirementError=void 0;K.multipleNamedTypeDefinitionError=wCe;K.incompatibleInputValueDefaultValueTypeError=PCe;K.incompatibleMergedTypesError=FCe;K.incompatibleInputValueDefaultValuesError=LCe;K.incompatibleSharedEnumError=CCe;K.invalidSubgraphNamesError=BCe;K.duplicateDirectiveDefinitionError=UCe;K.duplicateEnumValueDefinitionError=kCe;K.duplicateFieldDefinitionError=qCe;K.duplicateInputFieldDefinitionError=xCe;K.duplicateImplementedInterfaceError=MCe;K.duplicateUnionMemberDefinitionError=jCe;K.duplicateTypeDefinitionError=VCe;K.duplicateOperationTypeDefinitionError=KCe;K.noBaseDefinitionForExtensionError=$Ce;K.noBaseScalarDefinitionError=GCe;K.noDefinedUnionMembersError=QCe;K.noDefinedEnumValuesError=YCe;K.operationDefinitionError=JCe;K.invalidFieldShareabilityError=zCe;K.undefinedDirectiveError=HCe;K.undefinedTypeError=WCe;K.invalidRepeatedDirectiveErrorMessage=XCe;K.invalidDirectiveError=ZCe;K.invalidCustomDirectiveError=eBe;K.invalidDirectiveLocationErrorMessage=tBe;K.invalidDirectiveLocationError=rBe;K.invalidRepeatedDirectiveError=nBe;K.undefinedRequiredArgumentsError=iBe;K.undefinedRequiredArgumentsErrorMessage=aBe;K.unexpectedArgumentProvisionError=oBe;K.unexpectedDirectiveArgumentErrorMessage=sBe;K.duplicateArgumentDefinitionError=uBe;K.duplicateDirectiveArgumentDefinitionsErrorMessage=cBe;K.invalidArgumentValueError=lBe;K.invalidArgumentValueErrorMessage=dBe;K.maximumTypeNestingExceededError=fBe;K.unexpectedKindFatalError=pBe;K.incompatibleParentKindFatalError=mBe;K.unexpectedEdgeFatalError=hBe;K.incompatibleParentTypeMergeError=NBe;K.unexpectedTypeNodeKindFatalError=TBe;K.invalidKeyFatalError=EBe;K.unexpectedParentKindForChildError=gBe;K.subgraphValidationError=IBe;K.duplicateSubgraphNamesError=vBe;K.invalidOperationTypeDefinitionError=_Be;K.invalidRootTypeDefinitionError=SBe;K.subgraphInvalidSyntaxError=OBe;K.invalidInterfaceImplementationError=DBe;K.invalidRequiredInputValueError=bBe;K.duplicateArgumentsError=ABe;K.noQueryRootTypeError=RBe;K.expectedEntityError=wBe;K.abstractTypeInKeyFieldSetErrorMessage=PBe;K.unknownTypeInFieldSetErrorMessage=FBe;K.invalidSelectionSetErrorMessage=LBe;K.invalidSelectionSetDefinitionErrorMessage=CBe;K.undefinedFieldInFieldSetErrorMessage=BBe;K.unparsableFieldSetErrorMessage=UBe;K.unparsableFieldSetSelectionErrorMessage=kBe;K.undefinedCompositeOutputTypeError=qBe;K.unexpectedArgumentErrorMessage=xBe;K.argumentsInKeyFieldSetErrorMessage=MBe;K.invalidProvidesOrRequiresDirectivesError=jBe;K.duplicateFieldInFieldSetErrorMessage=VBe;K.incompatibleTypeWithProvidesErrorMessage=KBe;K.invalidInlineFragmentTypeErrorMessage=$Be;K.inlineFragmentWithoutTypeConditionErrorMessage=GBe;K.unknownInlineFragmentTypeConditionErrorMessage=QBe;K.invalidInlineFragmentTypeConditionTypeErrorMessage=YBe;K.invalidInlineFragmentTypeConditionErrorMessage=JBe;K.invalidSelectionOnUnionErrorMessage=zBe;K.duplicateOverriddenFieldErrorMessage=HBe;K.duplicateOverriddenFieldsError=WBe;K.noFieldDefinitionsError=XBe;K.noInputValueDefinitionsError=ZBe;K.allChildDefinitionsAreInaccessibleError=eUe;K.equivalentSourceAndTargetOverrideErrorMessage=tUe;K.undefinedEntityInterfaceImplementationsError=rUe;K.orScopesLimitError=nUe;K.invalidEventDrivenGraphError=iUe;K.invalidRootTypeFieldEventsDirectivesErrorMessage=aUe;K.invalidEventDrivenMutationResponseTypeErrorMessage=oUe;K.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=sUe;K.invalidNatsStreamInputFieldsErrorMessage=uUe;K.invalidKeyFieldSetsEventDrivenErrorMessage=cUe;K.nonExternalKeyFieldNamesEventDrivenErrorMessage=lUe;K.nonKeyFieldNamesEventDrivenErrorMessage=dUe;K.nonEntityObjectExtensionsEventDrivenErrorMessage=fUe;K.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=pUe;K.invalidImplementedTypeError=mUe;K.selfImplementationError=hUe;K.invalidEventSubjectErrorMessage=yUe;K.invalidEventSubjectsErrorMessage=NUe;K.invalidEventSubjectsItemErrorMessage=TUe;K.invalidEventSubjectsArgumentErrorMessage=EUe;K.undefinedEventSubjectsArgumentErrorMessage=gUe;K.invalidEventDirectiveError=IUe;K.invalidReferencesOfInaccessibleTypeError=vUe;K.inaccessibleRequiredInputValueError=_Ue;K.invalidUnionMemberTypeError=SUe;K.invalidRootTypeError=OUe;K.invalidSubscriptionFilterLocationError=DUe;K.invalidSubscriptionFilterDirectiveError=bUe;K.subscriptionFilterNamedTypeErrorMessage=AUe;K.subscriptionFilterConditionDepthExceededErrorMessage=RUe;K.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=wUe;K.subscriptionFilterConditionInvalidInputFieldErrorMessage=PUe;K.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=FUe;K.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=LUe;K.subscriptionFilterArrayConditionInvalidLengthErrorMessage=CUe;K.invalidInputFieldTypeErrorMessage=BUe;K.subscriptionFieldConditionInvalidInputFieldErrorMessage=UUe;K.subscriptionFieldConditionInvalidValuesArrayErrorMessage=kUe;K.subscriptionFieldConditionEmptyValuesArrayErrorMessage=qUe;K.unknownFieldSubgraphNameError=xUe;K.invalidSubscriptionFieldConditionFieldPathErrorMessage=MUe;K.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=jUe;K.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=VUe;K.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=KUe;K.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=$Ue;K.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=GUe;K.unresolvablePathError=QUe;K.allExternalFieldInstancesError=YUe;K.externalInterfaceFieldsError=JUe;K.nonExternalConditionalFieldError=zUe;K.incompatibleFederatedFieldNamedTypeError=HUe;K.unknownNamedTypeErrorMessage=O4;K.unknownNamedTypeError=WUe;K.unknownFieldDataError=XUe;K.unexpectedNonCompositeOutputTypeError=ZUe;K.invalidExternalDirectiveError=eke;K.configureDescriptionNoDescriptionError=tke;K.configureDescriptionPropagationError=rke;K.duplicateDirectiveDefinitionArgumentErrorMessage=nke;K.duplicateDirectiveDefinitionLocationError=ike;K.duplicateDirectiveDefinitionLocationErrorMessage=ake;K.invalidDirectiveDefinitionLocationError=oke;K.invalidDirectiveDefinitionLocationErrorMessage=ske;K.invalidDirectiveDefinitionError=uke;K.typeNameAlreadyProvidedErrorMessage=cke;K.fieldAlreadyProvidedErrorMessage=lke;K.invalidInterfaceObjectImplementationDefinitionsError=dke;K.invalidNamedTypeError=fke;K.semanticNonNullLevelsNaNIndexErrorMessage=pke;K.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=mke;K.semanticNonNullLevelsNonNullErrorMessage=hke;K.semanticNonNullInconsistentLevelsError=yke;K.oneOfRequiredFieldsError=Nke;K.listSizeInvalidSlicingArgumentErrorMessage=Tke;K.listSizeSlicingArgumentNotIntErrorMessage=Eke;K.listSizeSizedFieldNotFoundErrorMessage=gke;K.listSizeSizedFieldNotListErrorMessage=Ike;K.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage=vke;K.listSizeSizedFieldsInvalidReturnTypeErrorMessage=_ke;K.listSizeSizedFieldsOnListsErrorMessage=Ske;K.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage=Oke;K.listSizeAssumedSizeSlicingArgDefaultErrorMessage=Dke;K.costOnInterfaceFieldErrorMessage=bke;K.unknownComposeDirectiveNameError=Ake;K.invalidComposeDirectiveNameError=Rke;K.noLeadingAtComposeDirectiveNameError=wke;K.unimportedComposeDirectiveNameError=Pke;K.invalidLinkDirectiveUrlError=Fke;K.noPathLinkDirectiveUrlError=Lke;K.noFeatureNameLinkDirectiveUrlError=Cke;K.noVersionLinkDirectiveUrlError=Bke;K.invalidVersionLinkDirectiveUrlError=Uke;K.nonIterableLinkDirectiveImportError=kke;K.invalidFieldLinkDirectiveImportObjectError=qke;K.noNameFieldLinkDirectiveImportObjectError=xke;K.unknownFieldLinkDirectiveImportObjectError=Mke;K.invalidLinkDirectiveImportObjectError=jke;K.invalidSubValueLinkDirectiveImportError=Vke;K.nonEqualCoreFeatureComposeDirectiveError=Kke;K.nonEqualComposeDirectiveMajorVersionError=$ke;K.unknownSubgraphNameError=Gke;var g4=_e(),We=xr(),I4=Xf(),Ep=An(),ACe=Zc(),RCe=Iy();K.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function wCe(e,t,r){return new Error(`The named type "${e}" is defined as both types "${t}" and "${r}". However, there must be only one type named "${e}".`)}function PCe(e,t,r,n){return new Error(`The ${e} of type "${r}" defined on coords "${t}" is incompatible with the default value of "${n}".`)}function FCe({actualType:e,coords:t,expectedType:r,isArgument:n}){return new Error(`Incompatible types when merging two instances of ${n?"field argument":We.FIELD} "${t}": Expected type "${r}" but received "${e}".`)}function LCe(e,t,r,n,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${n}". "However, the default value "${i}" is defined in the following subgraph`+(r.length>1?"s":"")+`: @@ -450,7 +450,7 @@ A federated graph only supports a single description; consequently, only one sub `+t.join(We.LITERAL_NEW_LINE)+'"')}function cke(e,t){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@provides" field set.`}function lke(e,t,r){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${r}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function dke(e,t,r){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(r.length>1?"s":"")+` of "${e}": "`+r.join(We.QUOTATION_JOIN)+'"')}function fke({data:e,namedTypeData:t,nodeType:r}){let n=(0,ACe.isFieldData)(e),i=n?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${r} "${i}" is invalid because it defines type `+(0,RCe.printTypeNode)(e.type)+`; however, ${(0,Ep.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(n?"output":"input")+" type.")}function pke(e){return`Index "${e}" is not a valid integer.`}function mke({maxIndex:e,typeString:t,value:r}){return`Index "${r}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function hke({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}K.semanticNonNullArgumentErrorMessage=`Argument "${We.LEVELS}" validation error.`;function yke(e){let t=`${e.renamedParentTypeName}.${e.name}`,r=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: `;for(let[n,i]of e.nullLevelsBySubgraphName)r+=` Subgraph "${n}" defines levels ${Array.from(i).sort((a,o)=>a-o)}. -`;return r+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(r)}function Nke({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(We.QUOTATION_JOIN)+'".')}function Tke(e,t){return` The "slicingArguments" value "${t}" on "${e}" does not reference a defined argument on this field.`}function Eke(e,t,r){return` The "slicingArguments" value "${t}" on "${e}" references an argument of type "${r}", but slicing arguments must be of type "Int" or "Int!".`}function gke(e,t,r){return` The "sizedFields" value "${t}" on "${e}" does not reference a defined field on the return type "${r}".`}function Ike(e,t,r,n){return` The "sizedFields" value "${t}" on "${e}" references field "${r}.${t}", which returns type "${n}". Sized fields must return a list type.`}function vke(e,t){return` The "@listSize" directive on "${e}" is invalid because the field returns type "${t}", which is not a list type, and no "sizedFields" argument is provided.`}function _ke(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" is not an object or interface type.`}function Ske(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" must not be a list.`}function Oke(e){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments". When both are used, "requireOneSlicingArgument" must be set to false.`}function Dke(e,t){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments", but slicing argument "${t}" has a default value. When "assumedSize" is used as a fallback for missing slicing arguments, none of the slicing arguments may have default values.`}function bke(e){return` The "@cost" directive at "${e}" is not permitted on fields or arguments of an Interface type. The cost of an interface field is derived from the costs of the corresponding fields on the concrete types that implement the interface.`}function Ake(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}" without a corresponding directive definition in the schema.`)}function Rke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a custom, user-defined directive.`)}function wke(e){return new Error(`A "@composeDirective" directive defines the "name" argument value "${e}" without a leading "@".`)}function Pke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a member of a core feature (imported through a "@link" directive).`)}K.noLinkDirectiveUrlError=new Error(' A "@link" directive was defined without a "url" argument.');function Fke(e){return new Error(` A "@link" directive defines the "url" argument value with invalid URL "${e}".`)}function Lke(e){return new Error(` A "@link" directive defines the "url" argument value without a path in URL "${e}".`)}function Cke(e){return new Error(` A "@link" directive defines the "url" argument value without a feature name component in URL "${e}".`)}function Bke(e){return new Error(` A "@link" directive defines the "url" argument value without a version component in URL "${e}".`)}function Uke({url:e,versionString:t}){return new Error(` A "@link" directive defines the "url" argument value with invalid version string "${t}" (not of the form "v1.2") in URL "${e}".`)}function kke(e){return new Error(` A "@link" directive defines the "import" value with non-iterable kind "${e}"`)}function qke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": field "${e}" must be a string.`)}function xke(e){return new Error(` A "@link" directive defines invalid sub-value "${e}": required field "name" is missing.`)}function Mke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": unknown field "${e}".`)}function jke({name:e,rename:t}){return new Error(` A "@link" directive imports "${e}" and renames to "${t}": if an import is not a directive, neither value should begin with "@"; otherwise, both values should be referenced with a leading "@".`)}function Vke(e){return new Error(` A "@link" directive defines invalid sub-value at index ${e}: values should be either strings or input object values of the form { name: "", as: "" }.`)}function Kke(e){return new Error(` Composed directive "${e}" is not linked by the same core feature in every subgraph.`)}function $ke(e){return new Error(` Composed directive "${e}" defines a major version mismatch across subgraphs.`)}function Gke(e){return new Error(`Internal Error: Expected subgraph "${e}" to be a valid record.`)}});var XI=O(WI=>{"use strict";d();p();f();Object.defineProperty(WI,"__esModule",{value:!0});WI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;WI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var ZI=O(Mn=>{"use strict";d();p();f();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.SUBSCRIPTION_FILTER_VALUE_DEFINITION=Mn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=Mn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=Mn.SCOPE_SCALAR_DEFINITION=Mn.LINK_PURPOSE_DEFINITION=Mn.LINK_IMPORT_DEFINITION=Mn.FIELD_SET_SCALAR_DEFINITION=Mn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var lr=ve(),Tr=kn(),Er=xr(),Qke=XI();Mn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.CONSUMER_INACTIVE_THRESHOLD),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.INT_SCALAR)},defaultValue:{kind:lr.Kind.INT,value:Qke.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.CONSUMER_NAME),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.STREAM_NAME),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}}]};Mn.FIELD_SET_SCALAR_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.FIELD_SET_SCALAR)};Mn.LINK_IMPORT_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.LINK_IMPORT)};Mn.LINK_PURPOSE_DEFINITION={kind:lr.Kind.ENUM_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.LINK_PURPOSE),values:[{directives:[],kind:lr.Kind.ENUM_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.EXECUTION)},{directives:[],kind:lr.Kind.ENUM_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SECURITY)}]};Mn.SCOPE_SCALAR_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SCOPE_SCALAR)};Mn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.FIELD_PATH),type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.STRING_SCALAR)}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.VALUES),type:{kind:lr.Kind.NON_NULL_TYPE,type:{kind:lr.Kind.LIST_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_VALUE)}}}],kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FIELD_CONDITION)};Mn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.AND_UPPER),type:{kind:lr.Kind.LIST_TYPE,type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.IN_UPPER),type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FIELD_CONDITION)},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.OR_UPPER),type:{kind:lr.Kind.LIST_TYPE,type:{kind:lr.Kind.NON_NULL_TYPE,type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:lr.Kind.INPUT_VALUE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.NOT_UPPER),type:(0,Tr.stringToNamedTypeNode)(Er.SUBSCRIPTION_FILTER_CONDITION)}],kind:lr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FILTER_CONDITION)};Mn.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:lr.Kind.SCALAR_TYPE_DEFINITION,name:(0,Tr.stringToNameNode)(Er.SUBSCRIPTION_FILTER_VALUE)}});var xs=O(Cr=>{"use strict";d();p();f();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IMPORT_VERSION_REGEX=Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=Cr.IGNORED_FEDERATED_TYPE_NAMES=Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=Cr.COMPOSITE_OUTPUT_NODE_KINDS=Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=Cr.STREAM_CONFIGURATION_FIELD_NAMES=Cr.EVENT_DIRECTIVE_NAMES=Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var Ze=xr(),ev=ve(),co=ZI();Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([Ze.ARGUMENT_DEFINITION_UPPER,Ze.ENUM_UPPER,Ze.ENUM_VALUE_UPPER,Ze.FIELD_DEFINITION_UPPER,Ze.INPUT_FIELD_DEFINITION_UPPER,Ze.INPUT_OBJECT_UPPER,Ze.INTERFACE_UPPER,Ze.OBJECT_UPPER,Ze.SCALAR_UPPER,Ze.SCHEMA_UPPER,Ze.UNION_UPPER]);Cr.EVENT_DIRECTIVE_NAMES=new Set([Ze.EDFS_KAFKA_PUBLISH,Ze.EDFS_KAFKA_SUBSCRIBE,Ze.EDFS_NATS_PUBLISH,Ze.EDFS_NATS_REQUEST,Ze.EDFS_NATS_SUBSCRIBE,Ze.EDFS_REDIS_PUBLISH,Ze.EDFS_REDIS_SUBSCRIBE]);Cr.STREAM_CONFIGURATION_FIELD_NAMES=new Set([Ze.CONSUMER_INACTIVE_THRESHOLD,Ze.CONSUMER_NAME,Ze.STREAM_NAME]);Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.IN_UPPER,Ze.NOT_UPPER,Ze.OR_UPPER]);Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.OR_UPPER]);Cr.COMPOSITE_OUTPUT_NODE_KINDS=new Set([ev.Kind.INTERFACE_TYPE_DEFINITION,ev.Kind.INTERFACE_TYPE_EXTENSION,ev.Kind.OBJECT_TYPE_DEFINITION,ev.Kind.OBJECT_TYPE_EXTENSION]);Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[Ze.CONNECT_FIELD_RESOLVER,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.EDFS_NATS_SUBSCRIBE,[co.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[Ze.KEY,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.LINK,[co.LINK_IMPORT_DEFINITION,co.LINK_PURPOSE_DEFINITION]],[Ze.PROVIDES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES_SCOPES,[co.SCOPE_SCALAR_DEFINITION]],[Ze.SUBSCRIPTION_FILTER,[co.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);Cr.IGNORED_FEDERATED_TYPE_NAMES=new Set([Ze.BOOLEAN_SCALAR,Ze.EDFS_NATS_STREAM_CONFIGURATION,Ze.FIELD_SET_SCALAR,Ze.ID_SCALAR,Ze.INT_SCALAR,Ze.FLOAT_SCALAR,Ze.LINK_IMPORT,Ze.LINK_PURPOSE,Ze.STRING_SCALAR,Ze.SUBSCRIPTION_FIELD_CONDITION,Ze.SUBSCRIPTION_FILTER_CONDITION,Ze.SUBSCRIPTION_FILTER_VALUE]);Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.AUTHENTICATED,Ze.DEPRECATED,Ze.INACCESSIBLE,Ze.ONE_OF,Ze.REQUIRES_SCOPES,Ze.SEMANTIC_NON_NULL,Ze.TAG]);Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.DEPRECATED,Ze.ONE_OF,Ze.SEMANTIC_NON_NULL]);Cr.IMPORT_VERSION_REGEX=/^v\d+\.\d+$/});var Jo=O(di=>{"use strict";d();p();f();Object.defineProperty(di,"__esModule",{value:!0});di.getMutableEnumNode=Hke;di.getMutableEnumValueNode=Wke;di.getMutableFieldNode=Xke;di.getMutableInputObjectNode=Zke;di.getMutableInputValueNode=eqe;di.getMutableInterfaceNode=tqe;di.getMutableObjectNode=rqe;di.getMutableScalarNode=nqe;di.getMutableTypeNode=GP;di.getMutableUnionNode=iqe;di.getTypeNodeNamedTypeName=QP;di.getNamedTypeNode=D4;di.extractDirectiveLocations=aqe;var wa=ve(),rv=kn(),tv=bi(),Yke=Xf(),Jke=xr(),zke=xs();function Hke(e){return{kind:wa.Kind.ENUM_TYPE_DEFINITION,name:q({},e)}}function Wke(e){return{directives:[],kind:e.kind,name:q({},e.name),description:(0,rv.formatDescription)(e.description)}}function Xke(e,t,r){return{arguments:[],directives:[],kind:e.kind,name:q({},e.name),type:GP(e.type,t,r),description:(0,rv.formatDescription)(e.description)}}function Zke(e){return{kind:wa.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:q({},e)}}function eqe(e,t,r){return{directives:[],kind:e.kind,name:q({},e.name),type:GP(e.type,t,r),defaultValue:e.defaultValue,description:(0,rv.formatDescription)(e.description)}}function tqe(e){return{kind:wa.Kind.INTERFACE_TYPE_DEFINITION,name:q({},e)}}function rqe(e){return{kind:wa.Kind.OBJECT_TYPE_DEFINITION,name:q({},e)}}function nqe(e){return{kind:wa.Kind.SCALAR_TYPE_DEFINITION,name:q({},e)}}function GP(e,t,r){let n={kind:e.kind},i=n;for(let a=0;a{"use strict";d();p();f();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.MAX_OR_SCOPES=Pa.EDFS_ARGS_REGEXP=Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Pa.BASE_SCALARS=Pa.DIRECTIVE_DEFINITION_BY_NAME=void 0;var pt=xr(),Ot=Wh();Pa.DIRECTIVE_DEFINITION_BY_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.CONFIGURE_DESCRIPTION,Ot.CONFIGURE_DESCRIPTION_DEFINITION],[pt.CONFIGURE_CHILD_DESCRIPTIONS,Ot.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[pt.CONNECT_FIELD_RESOLVER,Ot.CONNECT_FIELD_RESOLVER_DEFINITION],[pt.COST,Ot.COST_DEFINITION],[pt.DEPRECATED,Ot.DEPRECATED_DEFINITION],[pt.EDFS_KAFKA_PUBLISH,Ot.EDFS_KAFKA_PUBLISH_DEFINITION],[pt.EDFS_KAFKA_SUBSCRIBE,Ot.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[pt.EDFS_NATS_PUBLISH,Ot.EDFS_NATS_PUBLISH_DEFINITION],[pt.EDFS_NATS_REQUEST,Ot.EDFS_NATS_REQUEST_DEFINITION],[pt.EDFS_NATS_SUBSCRIBE,Ot.EDFS_NATS_SUBSCRIBE_DEFINITION],[pt.EDFS_REDIS_PUBLISH,Ot.EDFS_REDIS_PUBLISH_DEFINITION],[pt.EDFS_REDIS_SUBSCRIBE,Ot.EDFS_REDIS_SUBSCRIBE_DEFINITION],[pt.EXTENDS,Ot.EXTENDS_DEFINITION],[pt.EXTERNAL,Ot.EXTERNAL_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.KEY,Ot.KEY_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.LIST_SIZE,Ot.LIST_SIZE_DEFINITION],[pt.ONE_OF,Ot.ONE_OF_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.PROVIDES,Ot.PROVIDES_DEFINITION],[pt.REQUIRE_FETCH_REASONS,Ot.REQUIRE_FETCH_REASONS_DEFINITION],[pt.REQUIRES,Ot.REQUIRES_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SEMANTIC_NON_NULL,Ot.SEMANTIC_NON_NULL_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION],[pt.SPECIFIED_BY,Ot.SPECIFIED_BY_DEFINITION],[pt.SUBSCRIPTION_FILTER,Ot.SUBSCRIPTION_FILTER_DEFINITION],[pt.TAG,Ot.TAG_DEFINITION]]);Pa.BASE_SCALARS=new Set(["_Any","_Entities",pt.BOOLEAN_SCALAR,pt.FLOAT_SCALAR,pt.ID_SCALAR,pt.INT_SCALAR,pt.FIELD_SET_SCALAR,pt.SCOPE_SCALAR,pt.STRING_SCALAR]);Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION]]);Pa.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Pa.MAX_OR_SCOPES=16});var nv=O(md=>{"use strict";d();p();f();Object.defineProperty(md,"__esModule",{value:!0});md.newParentTagData=lqe;md.newChildTagData=dqe;md.validateImplicitFieldSets=fqe;md.newContractTagOptionsFromArrays=pqe;md.getDescriptionFromString=mqe;var Pi=ve(),oqe=Jo(),sqe=zo(),uqe=kn(),b4=An(),cqe=xr();function lqe(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function dqe(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function fqe({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:r,implicitKeys:n,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let u=(0,b4.getValueOrDefault)(r.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,m]of r.documentNodeByKeyFieldSet){if(u.has(l))continue;let h=[i],N=[],T=[],D=-1,R=!0,C=!0;(0,Pi.visit)(m,{Argument:{enter(){return C=!1,Pi.BREAK}},Field:{enter(M){let Y=h[D];if(R)return C=!1,Pi.BREAK;let ee=M.name.value;if(ee===cqe.TYPENAME)return;let ae=Y.fieldDataByName.get(ee);if(!ae||ae.argumentDataByName.size||N[D].has(ee))return C=!1,Pi.BREAK;let{isUnconditionallyProvided:Ne}=(0,b4.getOrThrowError)(ae.externalFieldDataBySubgraphName,t,`${ae.originalParentTypeName}.${ee}.externalFieldDataBySubgraphName`),_e=e.get(`${ae.renamedParentTypeName}.${ee}`);if(_e){if(_e.providedBy.length>0)T.push(..._e.providedBy);else if(_e.requiredBy.length>0)return C=!1,Pi.BREAK}else if(!Ne)return C=!1,Pi.BREAK;N[D].add(ee);let Le=(0,oqe.getTypeNodeNamedTypeName)(ae.node.type);if(sqe.BASE_SCALARS.has(Le))return;let Ve=a.get(Le);if(!Ve)return C=!1,Pi.BREAK;if(Ve.kind===Pi.Kind.OBJECT_TYPE_DEFINITION){R=!0,h.push(Ve);return}if((0,uqe.isKindAbstract)(Ve.kind))return C=!1,Pi.BREAK}},InlineFragment:{enter(){return C=!1,Pi.BREAK}},SelectionSet:{enter(){if(!R||(D+=1,R=!1,D<0||D>=h.length))return C=!1,Pi.BREAK;N.push(new Set)},leave(){if(R)return C=!1,Pi.BREAK;D-=1,h.pop(),N.pop()}}}),C&&(n.push(G(q({fieldName:"",selectionSet:l},T.length>0?{conditions:T}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function pqe(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function mqe(e){if(e)return{block:!0,kind:Pi.Kind.STRING,value:e}}});var YP=O(_y=>{"use strict";d();p();f();Object.defineProperty(_y,"__esModule",{value:!0});_y.isArgumentValueValid=vy;_y.validateCustomDirective=w4;_y.validateDirectives=Tqe;var el=bi(),hqe=kn(),A4=Jo(),yqe=Zc(),un=ve(),Fi=xr(),Nqe=Iy(),R4=An();function vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r}){if(e.kind===un.Kind.NULL)return r.kind!==un.Kind.NON_NULL_TYPE;switch(r.kind){case un.Kind.LIST_TYPE:{if(e.kind!==un.Kind.LIST)return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:(0,A4.getNamedTypeNode)(r.type)});for(let n of e.values)if(!vy({argumentValue:n,parentDefinitionDataByTypeName:t,typeNode:r.type}))return!1;return!0}case un.Kind.NAMED_TYPE:switch(r.name.value){case Fi.BOOLEAN_SCALAR:return e.kind===un.Kind.BOOLEAN;case Fi.FLOAT_SCALAR:return e.kind===un.Kind.FLOAT||e.kind===un.Kind.INT;case Fi.ID_SCALAR:return e.kind===un.Kind.STRING||e.kind===un.Kind.INT;case Fi.INT_SCALAR:return e.kind===un.Kind.INT;case Fi.FIELD_SET_SCALAR:case Fi.SCOPE_SCALAR:case Fi.STRING_SCALAR:return e.kind===un.Kind.STRING;case Fi.LINK_IMPORT:return!0;case Fi.LINK_PURPOSE:return e.kind!==un.Kind.ENUM?!1:e.value===Fi.SECURITY||e.value===Fi.EXECUTION;case Fi.SUBSCRIPTION_FIELD_CONDITION:case Fi.SUBSCRIPTION_FILTER_CONDITION:return e.kind===un.Kind.OBJECT;default:{let n=t.get(r.name.value);if(!n)return!1;if(n.kind===un.Kind.SCALAR_TYPE_DEFINITION)return!0;if(n.kind===un.Kind.ENUM_TYPE_DEFINITION){if(e.kind!==un.Kind.ENUM&&e.kind!==un.Kind.STRING)return!1;let i=n.enumValueDataByName.get(e.value);return i?!i.directivesByName.has(Fi.INACCESSIBLE):!1}return n.kind!==un.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:e.kind===un.Kind.OBJECT}}default:return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r.type})}}function w4({argumentDataByName:e,directiveNode:t,parentDefinitionDataByTypeName:r,requiredArgumentNames:n}){if(!t.arguments||t.arguments.length<1)return n.length<1?{success:!0}:{errors:[(0,el.undefinedRequiredArgumentsError)(n)],success:!1};let i=[],a=new Set,o=new Set,u=new Set;for(let m of t.arguments){let h=m.name.value;if(a.has(h)){o.add(h);continue}a.add(h);let N=e.get(h);if(!N){u.add(h);continue}vy({argumentValue:m.value,parentDefinitionDataByTypeName:r,typeNode:N.type})||i.push((0,el.invalidArgumentValueError)({argumentName:h,expectedTypeString:(0,Nqe.printTypeNode)(N.type),value:(0,un.print)(m.value)}))}o.size>0&&i.push((0,el.duplicateArgumentDefinitionError)([...o])),u.size>0&&i.push((0,el.unexpectedArgumentProvisionError)([...u]));let l=(0,R4.getEntriesNotInHashSet)(n,a);return l.length>0&&i.push((0,el.undefinedRequiredArgumentsError)(l)),i.length>0?{errors:i,success:!1}:{success:!0}}function Tqe({data:e,directiveCoords:t,directiveDefinitionData:{argumentDataByName:r,isComposed:n,isRepeatable:i,locations:a,name:o,node:u,requiredArgumentNames:l},directiveNodes:m,parentDefinitionDataByTypeName:h}){var R;let N=[],T=(0,hqe.nodeKindToDirectiveLocation)(e.kind);a.has(T)||N.push((0,el.invalidDirectiveLocationError)({directiveCoords:t,directiveName:o,location:T})),m.length>1&&!i&&!n&&N.push((0,el.invalidRepeatedDirectiveError)({directiveCoords:t,directiveName:o}));let D=[...l];for(let C of(R=u.arguments)!=null?R:[]){if(!C.defaultValue)continue;let M=r.get(C.name.value);if(!M)continue;let Y=h.get((0,A4.getTypeNodeNamedTypeName)(M.type));Y&&(0,yqe.sanitizeDefaultValue)({data:M,namedTypeData:Y,node:C})}for(let C=0;C0?{errors:N,success:!1}:{success:!0}}});var zP=O(iv=>{"use strict";d();p();f();Object.defineProperty(iv,"__esModule",{value:!0});iv.Warning=void 0;var JP=class extends Error{constructor(r){super(r.message);S(this,"subgraph");this.name="Warning",this.subgraph=r.subgraph}};iv.Warning=JP});var hd=O(fi=>{"use strict";d();p();f();Object.defineProperty(fi,"__esModule",{value:!0});fi.invalidOverrideTargetSubgraphNameWarning=Eqe;fi.externalInterfaceFieldsWarning=gqe;fi.nonExternalConditionalFieldWarning=Iqe;fi.unimplementedInterfaceOutputTypeWarning=vqe;fi.invalidExternalFieldWarning=_qe;fi.requiresDefinedOnNonEntityFieldWarning=Sqe;fi.consumerInactiveThresholdInvalidValueWarning=Oqe;fi.externalEntityExtensionKeyFieldWarning=Dqe;fi.fieldAlreadyProvidedWarning=bqe;fi.singleSubgraphInputFieldOneOfWarning=Aqe;fi.singleFederatedInputFieldOneOfWarning=Rqe;fi.composedOneOfDirectiveWarning=wqe;fi.invalidRepeatedComposedDirectiveWarning=Pqe;var zi=zP(),HP=xr();function Eqe(e,t,r,n){return new zi.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(r.length>1?"s":"")+': "'+r.join(HP.QUOTATION_JOIN)+`". +`;return r+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(r)}function Nke({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(We.QUOTATION_JOIN)+'".')}function Tke(e,t){return` The "slicingArguments" value "${t}" on "${e}" does not reference a defined argument on this field.`}function Eke(e,t,r){return` The "slicingArguments" value "${t}" on "${e}" references an argument of type "${r}", but slicing arguments must be of type "Int" or "Int!".`}function gke(e,t,r){return` The "sizedFields" value "${t}" on "${e}" does not reference a defined field on the return type "${r}".`}function Ike(e,t,r,n){return` The "sizedFields" value "${t}" on "${e}" references field "${r}.${t}", which returns type "${n}". Sized fields must return a list type.`}function vke(e,t){return` The "@listSize" directive on "${e}" is invalid because the field returns type "${t}", which is not a list type, and no "sizedFields" argument is provided.`}function _ke(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" is not an object or interface type.`}function Ske(e,t){return` The "sizedFields" argument on "${e}" is invalid because the return type "${t}" must not be a list.`}function Oke(e){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments". When both are used, "requireOneSlicingArgument" must be set to false.`}function Dke(e,t){return` The "@listSize" directive on "${e}" defines both "assumedSize" and "slicingArguments", but slicing argument "${t}" has a default value. When "assumedSize" is used as a fallback for missing slicing arguments, none of the slicing arguments may have default values.`}function bke(e){return` The "@cost" directive at "${e}" is not permitted on fields or arguments of an Interface type. The cost of an interface field is derived from the costs of the corresponding fields on the concrete types that implement the interface.`}function Ake(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}" without a corresponding directive definition in the schema.`)}function Rke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a custom, user-defined directive.`)}function wke(e){return new Error(`A "@composeDirective" directive defines the "name" argument value "${e}" without a leading "@".`)}function Pke(e){return new Error(` A "@composeDirective" directive defines the "name" argument value "${e}", which is not a member of a core feature (imported through a "@link" directive).`)}K.noLinkDirectiveUrlError=new Error(' A "@link" directive was defined without a "url" argument.');function Fke(e){return new Error(` A "@link" directive defines the "url" argument value with invalid URL "${e}".`)}function Lke(e){return new Error(` A "@link" directive defines the "url" argument value without a path in URL "${e}".`)}function Cke(e){return new Error(` A "@link" directive defines the "url" argument value without a feature name component in URL "${e}".`)}function Bke(e){return new Error(` A "@link" directive defines the "url" argument value without a version component in URL "${e}".`)}function Uke({url:e,versionString:t}){return new Error(` A "@link" directive defines the "url" argument value with invalid version string "${t}" (not of the form "v1.2") in URL "${e}".`)}function kke(e){return new Error(` A "@link" directive defines the "import" value with non-iterable kind "${e}"`)}function qke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": field "${e}" must be a string.`)}function xke(e){return new Error(` A "@link" directive defines invalid sub-value "${e}": required field "name" is missing.`)}function Mke({fieldName:e,value:t}){return new Error(` A "@link" directive defines invalid sub-value "${t}": unknown field "${e}".`)}function jke({name:e,rename:t}){return new Error(` A "@link" directive imports "${e}" and renames to "${t}": if an import is not a directive, neither value should begin with "@"; otherwise, both values should be referenced with a leading "@".`)}function Vke(e){return new Error(` A "@link" directive defines invalid sub-value at index ${e}: values should be either strings or input object values of the form { name: "", as: "" }.`)}function Kke(e){return new Error(` Composed directive "${e}" is not linked by the same core feature in every subgraph.`)}function $ke(e){return new Error(` Composed directive "${e}" defines a major version mismatch across subgraphs.`)}function Gke(e){return new Error(`Internal Error: Expected subgraph "${e}" to be a valid record.`)}});var XI=O(WI=>{"use strict";d();p();f();Object.defineProperty(WI,"__esModule",{value:!0});WI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;WI.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var ZI=O(Mn=>{"use strict";d();p();f();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.SUBSCRIPTION_FILTER_VALUE_DEFINITION=Mn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=Mn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=Mn.SCOPE_SCALAR_DEFINITION=Mn.LINK_PURPOSE_DEFINITION=Mn.LINK_IMPORT_DEFINITION=Mn.FIELD_SET_SCALAR_DEFINITION=Mn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var ar=_e(),dr=kn(),fr=xr(),Qke=XI();Mn.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ar.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.INT_SCALAR)},defaultValue:{kind:ar.Kind.INT,value:Qke.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.CONSUMER_NAME),type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.STRING_SCALAR)}},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.STREAM_NAME),type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.STRING_SCALAR)}}]};Mn.FIELD_SET_SCALAR_DEFINITION={kind:ar.Kind.SCALAR_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.FIELD_SET_SCALAR)};Mn.LINK_IMPORT_DEFINITION={kind:ar.Kind.SCALAR_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.LINK_IMPORT)};Mn.LINK_PURPOSE_DEFINITION={kind:ar.Kind.ENUM_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.LINK_PURPOSE),values:[{directives:[],kind:ar.Kind.ENUM_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.EXECUTION)},{directives:[],kind:ar.Kind.ENUM_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.SECURITY)}]};Mn.SCOPE_SCALAR_DEFINITION={kind:ar.Kind.SCALAR_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.SCOPE_SCALAR)};Mn.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.BYPASS_IF_VALUES_NULL),type:(0,dr.stringToNamedTypeNode)(fr.BOOLEAN_SCALAR)},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.FIELD_PATH),type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.STRING_SCALAR)}},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.VALUES),type:{kind:ar.Kind.NON_NULL_TYPE,type:{kind:ar.Kind.LIST_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ar.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.SUBSCRIPTION_FIELD_CONDITION)};Mn.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.AND_UPPER),type:{kind:ar.Kind.LIST_TYPE,type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.IN_UPPER),type:(0,dr.stringToNamedTypeNode)(fr.SUBSCRIPTION_FIELD_CONDITION)},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.OR_UPPER),type:{kind:ar.Kind.LIST_TYPE,type:{kind:ar.Kind.NON_NULL_TYPE,type:(0,dr.stringToNamedTypeNode)(fr.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ar.Kind.INPUT_VALUE_DEFINITION,name:(0,dr.stringToNameNode)(fr.NOT_UPPER),type:(0,dr.stringToNamedTypeNode)(fr.SUBSCRIPTION_FILTER_CONDITION)}],kind:ar.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.SUBSCRIPTION_FILTER_CONDITION)};Mn.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ar.Kind.SCALAR_TYPE_DEFINITION,name:(0,dr.stringToNameNode)(fr.SUBSCRIPTION_FILTER_VALUE)}});var xs=O(Cr=>{"use strict";d();p();f();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.IMPORT_VERSION_REGEX=Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=Cr.IGNORED_FEDERATED_TYPE_NAMES=Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=Cr.COMPOSITE_OUTPUT_NODE_KINDS=Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=Cr.STREAM_CONFIGURATION_FIELD_NAMES=Cr.EVENT_DIRECTIVE_NAMES=Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var Ze=xr(),ev=_e(),co=ZI();Cr.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([Ze.ARGUMENT_DEFINITION_UPPER,Ze.ENUM_UPPER,Ze.ENUM_VALUE_UPPER,Ze.FIELD_DEFINITION_UPPER,Ze.INPUT_FIELD_DEFINITION_UPPER,Ze.INPUT_OBJECT_UPPER,Ze.INTERFACE_UPPER,Ze.OBJECT_UPPER,Ze.SCALAR_UPPER,Ze.SCHEMA_UPPER,Ze.UNION_UPPER]);Cr.EVENT_DIRECTIVE_NAMES=new Set([Ze.EDFS_KAFKA_PUBLISH,Ze.EDFS_KAFKA_SUBSCRIBE,Ze.EDFS_NATS_PUBLISH,Ze.EDFS_NATS_REQUEST,Ze.EDFS_NATS_SUBSCRIBE,Ze.EDFS_REDIS_PUBLISH,Ze.EDFS_REDIS_SUBSCRIBE]);Cr.STREAM_CONFIGURATION_FIELD_NAMES=new Set([Ze.CONSUMER_INACTIVE_THRESHOLD,Ze.CONSUMER_NAME,Ze.STREAM_NAME]);Cr.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.IN_UPPER,Ze.NOT_UPPER,Ze.OR_UPPER]);Cr.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([Ze.AND_UPPER,Ze.OR_UPPER]);Cr.COMPOSITE_OUTPUT_NODE_KINDS=new Set([ev.Kind.INTERFACE_TYPE_DEFINITION,ev.Kind.INTERFACE_TYPE_EXTENSION,ev.Kind.OBJECT_TYPE_DEFINITION,ev.Kind.OBJECT_TYPE_EXTENSION]);Cr.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[Ze.CONNECT_FIELD_RESOLVER,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.EDFS_NATS_SUBSCRIBE,[co.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[Ze.KEY,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.LINK,[co.LINK_IMPORT_DEFINITION,co.LINK_PURPOSE_DEFINITION]],[Ze.PROVIDES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES,[co.FIELD_SET_SCALAR_DEFINITION]],[Ze.REQUIRES_SCOPES,[co.SCOPE_SCALAR_DEFINITION]],[Ze.SUBSCRIPTION_FILTER,[co.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,co.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);Cr.IGNORED_FEDERATED_TYPE_NAMES=new Set([Ze.BOOLEAN_SCALAR,Ze.EDFS_NATS_STREAM_CONFIGURATION,Ze.FIELD_SET_SCALAR,Ze.ID_SCALAR,Ze.INT_SCALAR,Ze.FLOAT_SCALAR,Ze.LINK_IMPORT,Ze.LINK_PURPOSE,Ze.STRING_SCALAR,Ze.SUBSCRIPTION_FIELD_CONDITION,Ze.SUBSCRIPTION_FILTER_CONDITION,Ze.SUBSCRIPTION_FILTER_VALUE]);Cr.ROUTER_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.AUTHENTICATED,Ze.DEPRECATED,Ze.INACCESSIBLE,Ze.ONE_OF,Ze.REQUIRES_SCOPES,Ze.SEMANTIC_NON_NULL,Ze.TAG]);Cr.CLIENT_FEDERATED_DIRECTIVE_NAMES=new Set([Ze.DEPRECATED,Ze.ONE_OF,Ze.SEMANTIC_NON_NULL]);Cr.IMPORT_VERSION_REGEX=/^v\d+\.\d+$/});var Jo=O(di=>{"use strict";d();p();f();Object.defineProperty(di,"__esModule",{value:!0});di.getMutableEnumNode=Hke;di.getMutableEnumValueNode=Wke;di.getMutableFieldNode=Xke;di.getMutableInputObjectNode=Zke;di.getMutableInputValueNode=eqe;di.getMutableInterfaceNode=tqe;di.getMutableObjectNode=rqe;di.getMutableScalarNode=nqe;di.getMutableTypeNode=GP;di.getMutableUnionNode=iqe;di.getTypeNodeNamedTypeName=QP;di.getNamedTypeNode=D4;di.extractDirectiveLocations=aqe;var wa=_e(),rv=kn(),tv=bi(),Yke=Xf(),Jke=xr(),zke=xs();function Hke(e){return{kind:wa.Kind.ENUM_TYPE_DEFINITION,name:q({},e)}}function Wke(e){return{directives:[],kind:e.kind,name:q({},e.name),description:(0,rv.formatDescription)(e.description)}}function Xke(e,t,r){return{arguments:[],directives:[],kind:e.kind,name:q({},e.name),type:GP(e.type,t,r),description:(0,rv.formatDescription)(e.description)}}function Zke(e){return{kind:wa.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:q({},e)}}function eqe(e,t,r){return{directives:[],kind:e.kind,name:q({},e.name),type:GP(e.type,t,r),defaultValue:e.defaultValue,description:(0,rv.formatDescription)(e.description)}}function tqe(e){return{kind:wa.Kind.INTERFACE_TYPE_DEFINITION,name:q({},e)}}function rqe(e){return{kind:wa.Kind.OBJECT_TYPE_DEFINITION,name:q({},e)}}function nqe(e){return{kind:wa.Kind.SCALAR_TYPE_DEFINITION,name:q({},e)}}function GP(e,t,r){let n={kind:e.kind},i=n;for(let a=0;a{"use strict";d();p();f();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.MAX_OR_SCOPES=Pa.EDFS_ARGS_REGEXP=Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Pa.BASE_SCALARS=Pa.DIRECTIVE_DEFINITION_BY_NAME=void 0;var pt=xr(),Ot=Wh();Pa.DIRECTIVE_DEFINITION_BY_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.CONFIGURE_DESCRIPTION,Ot.CONFIGURE_DESCRIPTION_DEFINITION],[pt.CONFIGURE_CHILD_DESCRIPTIONS,Ot.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[pt.CONNECT_FIELD_RESOLVER,Ot.CONNECT_FIELD_RESOLVER_DEFINITION],[pt.COST,Ot.COST_DEFINITION],[pt.DEPRECATED,Ot.DEPRECATED_DEFINITION],[pt.EDFS_KAFKA_PUBLISH,Ot.EDFS_KAFKA_PUBLISH_DEFINITION],[pt.EDFS_KAFKA_SUBSCRIBE,Ot.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[pt.EDFS_NATS_PUBLISH,Ot.EDFS_NATS_PUBLISH_DEFINITION],[pt.EDFS_NATS_REQUEST,Ot.EDFS_NATS_REQUEST_DEFINITION],[pt.EDFS_NATS_SUBSCRIBE,Ot.EDFS_NATS_SUBSCRIBE_DEFINITION],[pt.EDFS_REDIS_PUBLISH,Ot.EDFS_REDIS_PUBLISH_DEFINITION],[pt.EDFS_REDIS_SUBSCRIBE,Ot.EDFS_REDIS_SUBSCRIBE_DEFINITION],[pt.EXTENDS,Ot.EXTENDS_DEFINITION],[pt.EXTERNAL,Ot.EXTERNAL_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.KEY,Ot.KEY_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.LIST_SIZE,Ot.LIST_SIZE_DEFINITION],[pt.ONE_OF,Ot.ONE_OF_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.PROVIDES,Ot.PROVIDES_DEFINITION],[pt.REQUIRE_FETCH_REASONS,Ot.REQUIRE_FETCH_REASONS_DEFINITION],[pt.REQUIRES,Ot.REQUIRES_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SEMANTIC_NON_NULL,Ot.SEMANTIC_NON_NULL_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION],[pt.SPECIFIED_BY,Ot.SPECIFIED_BY_DEFINITION],[pt.SUBSCRIPTION_FILTER,Ot.SUBSCRIPTION_FILTER_DEFINITION],[pt.TAG,Ot.TAG_DEFINITION]]);Pa.BASE_SCALARS=new Set(["_Any","_Entities",pt.BOOLEAN_SCALAR,pt.FLOAT_SCALAR,pt.ID_SCALAR,pt.INT_SCALAR,pt.FIELD_SET_SCALAR,pt.SCOPE_SCALAR,pt.STRING_SCALAR]);Pa.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[pt.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[pt.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[pt.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[pt.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[pt.LINK,Ot.LINK_DEFINITION],[pt.OVERRIDE,Ot.OVERRIDE_DEFINITION],[pt.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[pt.SHAREABLE,Ot.SHAREABLE_DEFINITION]]);Pa.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Pa.MAX_OR_SCOPES=16});var nv=O(md=>{"use strict";d();p();f();Object.defineProperty(md,"__esModule",{value:!0});md.newParentTagData=lqe;md.newChildTagData=dqe;md.validateImplicitFieldSets=fqe;md.newContractTagOptionsFromArrays=pqe;md.getDescriptionFromString=mqe;var Pi=_e(),oqe=Jo(),sqe=zo(),uqe=kn(),b4=An(),cqe=xr();function lqe(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function dqe(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function fqe({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:r,implicitKeys:n,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let u=(0,b4.getValueOrDefault)(r.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,m]of r.documentNodeByKeyFieldSet){if(u.has(l))continue;let h=[i],N=[],T=[],D=-1,R=!0,C=!0;(0,Pi.visit)(m,{Argument:{enter(){return C=!1,Pi.BREAK}},Field:{enter(M){let G=h[D];if(R)return C=!1,Pi.BREAK;let ee=M.name.value;if(ee===cqe.TYPENAME)return;let ae=G.fieldDataByName.get(ee);if(!ae||ae.argumentDataByName.size||N[D].has(ee))return C=!1,Pi.BREAK;let{isUnconditionallyProvided:Ne}=(0,b4.getOrThrowError)(ae.externalFieldDataBySubgraphName,t,`${ae.originalParentTypeName}.${ee}.externalFieldDataBySubgraphName`),Ie=e.get(`${ae.renamedParentTypeName}.${ee}`);if(Ie){if(Ie.providedBy.length>0)T.push(...Ie.providedBy);else if(Ie.requiredBy.length>0)return C=!1,Pi.BREAK}else if(!Ne)return C=!1,Pi.BREAK;N[D].add(ee);let Le=(0,oqe.getTypeNodeNamedTypeName)(ae.node.type);if(sqe.BASE_SCALARS.has(Le))return;let Ve=a.get(Le);if(!Ve)return C=!1,Pi.BREAK;if(Ve.kind===Pi.Kind.OBJECT_TYPE_DEFINITION){R=!0,h.push(Ve);return}if((0,uqe.isKindAbstract)(Ve.kind))return C=!1,Pi.BREAK}},InlineFragment:{enter(){return C=!1,Pi.BREAK}},SelectionSet:{enter(){if(!R||(D+=1,R=!1,D<0||D>=h.length))return C=!1,Pi.BREAK;N.push(new Set)},leave(){if(R)return C=!1,Pi.BREAK;D-=1,h.pop(),N.pop()}}}),C&&(n.push(Q(q({fieldName:"",selectionSet:l},T.length>0?{conditions:T}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function pqe(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function mqe(e){if(e)return{block:!0,kind:Pi.Kind.STRING,value:e}}});var YP=O(_y=>{"use strict";d();p();f();Object.defineProperty(_y,"__esModule",{value:!0});_y.isArgumentValueValid=vy;_y.validateCustomDirective=w4;_y.validateDirectives=Tqe;var el=bi(),hqe=kn(),A4=Jo(),yqe=Zc(),un=_e(),Fi=xr(),Nqe=Iy(),R4=An();function vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r}){if(e.kind===un.Kind.NULL)return r.kind!==un.Kind.NON_NULL_TYPE;switch(r.kind){case un.Kind.LIST_TYPE:{if(e.kind!==un.Kind.LIST)return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:(0,A4.getNamedTypeNode)(r.type)});for(let n of e.values)if(!vy({argumentValue:n,parentDefinitionDataByTypeName:t,typeNode:r.type}))return!1;return!0}case un.Kind.NAMED_TYPE:switch(r.name.value){case Fi.BOOLEAN_SCALAR:return e.kind===un.Kind.BOOLEAN;case Fi.FLOAT_SCALAR:return e.kind===un.Kind.FLOAT||e.kind===un.Kind.INT;case Fi.ID_SCALAR:return e.kind===un.Kind.STRING||e.kind===un.Kind.INT;case Fi.INT_SCALAR:return e.kind===un.Kind.INT;case Fi.FIELD_SET_SCALAR:case Fi.SCOPE_SCALAR:case Fi.STRING_SCALAR:return e.kind===un.Kind.STRING;case Fi.LINK_IMPORT:return!0;case Fi.LINK_PURPOSE:return e.kind!==un.Kind.ENUM?!1:e.value===Fi.SECURITY||e.value===Fi.EXECUTION;case Fi.SUBSCRIPTION_FIELD_CONDITION:case Fi.SUBSCRIPTION_FILTER_CONDITION:return e.kind===un.Kind.OBJECT;default:{let n=t.get(r.name.value);if(!n)return!1;if(n.kind===un.Kind.SCALAR_TYPE_DEFINITION)return!0;if(n.kind===un.Kind.ENUM_TYPE_DEFINITION){if(e.kind!==un.Kind.ENUM&&e.kind!==un.Kind.STRING)return!1;let i=n.enumValueDataByName.get(e.value);return i?!i.directivesByName.has(Fi.INACCESSIBLE):!1}return n.kind!==un.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:e.kind===un.Kind.OBJECT}}default:return vy({argumentValue:e,parentDefinitionDataByTypeName:t,typeNode:r.type})}}function w4({argumentDataByName:e,directiveNode:t,parentDefinitionDataByTypeName:r,requiredArgumentNames:n}){if(!t.arguments||t.arguments.length<1)return n.length<1?{success:!0}:{errors:[(0,el.undefinedRequiredArgumentsError)(n)],success:!1};let i=[],a=new Set,o=new Set,u=new Set;for(let m of t.arguments){let h=m.name.value;if(a.has(h)){o.add(h);continue}a.add(h);let N=e.get(h);if(!N){u.add(h);continue}vy({argumentValue:m.value,parentDefinitionDataByTypeName:r,typeNode:N.type})||i.push((0,el.invalidArgumentValueError)({argumentName:h,expectedTypeString:(0,Nqe.printTypeNode)(N.type),value:(0,un.print)(m.value)}))}o.size>0&&i.push((0,el.duplicateArgumentDefinitionError)([...o])),u.size>0&&i.push((0,el.unexpectedArgumentProvisionError)([...u]));let l=(0,R4.getEntriesNotInHashSet)(n,a);return l.length>0&&i.push((0,el.undefinedRequiredArgumentsError)(l)),i.length>0?{errors:i,success:!1}:{success:!0}}function Tqe({data:e,directiveCoords:t,directiveDefinitionData:{argumentDataByName:r,isComposed:n,isRepeatable:i,locations:a,name:o,node:u,requiredArgumentNames:l},directiveNodes:m,parentDefinitionDataByTypeName:h}){var R;let N=[],T=(0,hqe.nodeKindToDirectiveLocation)(e.kind);a.has(T)||N.push((0,el.invalidDirectiveLocationError)({directiveCoords:t,directiveName:o,location:T})),m.length>1&&!i&&!n&&N.push((0,el.invalidRepeatedDirectiveError)({directiveCoords:t,directiveName:o}));let D=[...l];for(let C of(R=u.arguments)!=null?R:[]){if(!C.defaultValue)continue;let M=r.get(C.name.value);if(!M)continue;let G=h.get((0,A4.getTypeNodeNamedTypeName)(M.type));G&&(0,yqe.sanitizeDefaultValue)({data:M,namedTypeData:G,node:C})}for(let C=0;C0?{errors:N,success:!1}:{success:!0}}});var zP=O(iv=>{"use strict";d();p();f();Object.defineProperty(iv,"__esModule",{value:!0});iv.Warning=void 0;var JP=class extends Error{constructor(r){super(r.message);S(this,"subgraph");this.name="Warning",this.subgraph=r.subgraph}};iv.Warning=JP});var hd=O(fi=>{"use strict";d();p();f();Object.defineProperty(fi,"__esModule",{value:!0});fi.invalidOverrideTargetSubgraphNameWarning=Eqe;fi.externalInterfaceFieldsWarning=gqe;fi.nonExternalConditionalFieldWarning=Iqe;fi.unimplementedInterfaceOutputTypeWarning=vqe;fi.invalidExternalFieldWarning=_qe;fi.requiresDefinedOnNonEntityFieldWarning=Sqe;fi.consumerInactiveThresholdInvalidValueWarning=Oqe;fi.externalEntityExtensionKeyFieldWarning=Dqe;fi.fieldAlreadyProvidedWarning=bqe;fi.singleSubgraphInputFieldOneOfWarning=Aqe;fi.singleFederatedInputFieldOneOfWarning=Rqe;fi.composedOneOfDirectiveWarning=wqe;fi.invalidRepeatedComposedDirectiveWarning=Pqe;var zi=zP(),HP=xr();function Eqe(e,t,r,n){return new zi.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(r.length>1?"s":"")+': "'+r.join(HP.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:n}})}function av(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: @@ -465,37 +465,37 @@ The following field coordinates that form part of that field set are declared "@ "`+r.join(HP.QUOTATION_JOIN)+`" Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:n}})}function bqe(e,t,r,n){return new zi.Warning({message:av(n)+`The field "${e}" is unconditionally provided by subgraph "${n}" and should not form part of any "@${t}" field set. However, "${e}" forms part of the "@${t}" field set defined "${r}". -Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:n}})}function Aqe({fieldName:e,subgraphName:t,typeName:r}){return new zi.Warning({message:`The directive "@oneOf" is defined on Input Object "${r}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Rqe({fieldName:e,typeName:t}){return new zi.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}function wqe(e){return new zi.Warning({message:'A "@composeDirective" directive defines the "name" argument value "@oneOf". The "@oneOf" directive is now considered built-in and will be automatically included in the federated. schema. Consider removing the inclusion of "@oneOf" within any "@composeDirective" directives.',subgraph:{name:e}})}function Pqe({directiveCoords:e,directiveName:t,printedDirective:r}){return new zi.Warning({message:`The definition for the composed directive "@${t}" is not defined as repeatable. However, the directive "@${t}" is declared on "${e}" multiple times with incompatible arguments. The federated graph will only propagate "${r}". Consider updating the directive definition for "${t}" to be repeatable.`,subgraph:{name:""}})}});var Zc=O(ut=>{"use strict";d();p();f();Object.defineProperty(ut,"__esModule",{value:!0});ut.MergeMethod=void 0;ut.newFederatedDirectivesData=Uqe;ut.isNodeExternalOrShareable=kqe;ut.isTypeRequired=qqe;ut.isTypeNodeListType=L4;ut.areDefaultValuesCompatible=C4;ut.compareAndValidateInputDefaultValues=xqe;ut.isTypeNameRootType=Mqe;ut.getRenamedRootTypeName=jqe;ut.childMapToValueArray=Kqe;ut.setLongestDescription=$qe;ut.isParentDataRootType=B4;ut.isInterfaceDefinitionData=Gqe;ut.setParentDataExtensionType=Qqe;ut.upsertDeprecatedDirective=Yqe;ut.upsertTagDirectives=Jqe;ut.propagateAuthDirectives=zqe;ut.propagateFieldAuthDirectives=Hqe;ut.generateDeprecatedDirective=ZP;ut.getNodeCoords=U4;ut.extractUniqueDirectiveNodes=k4;ut.getRouterSchemaDirectiveNodes=sv;ut.getClientFederatedDirectiveNodes=XP;ut.getClientSchemaFieldNodeByFieldData=Wqe;ut.routerSchemaFieldNodeFromData=Xqe;ut.routerSchemaInputValueNodeFromData=q4;ut.routerSchemaNodeFromData=Zqe;ut.propagateDirectiveDefinitionNodeFromData=txe;ut.newInvalidFieldNames=rxe;ut.validateExternalAndShareable=nxe;ut.isTypeValidImplementation=ov;ut.isNodeDataInaccessible=x4;ut.isLeafKind=ixe;ut.getSubscriptionFilterValue=axe;ut.getParentTypeName=oxe;ut.newConditionalFieldData=sxe;ut.getDefinitionDataCoords=uxe;ut.isParentDataCompositeOutputType=cxe;ut.newExternalFieldData=lxe;ut.getInitialFederatedDescription=dxe;ut.areKindsEqual=fxe;ut.isFieldData=uv;ut.isInputObjectDefinitionData=pxe;ut.isInputNodeKind=mxe;ut.isOutputNodeKind=hxe;ut.isInterfaceNode=yxe;ut.isEnumData=M4;ut.sanitizeDefaultValue=Nxe;var Ye=ve(),WP=Xh(),tl=kn(),F4=bi(),$t=xr(),Ms=An(),Fqe=nv(),Lqe=YP(),Cqe=hd(),Bqe=xs();function Uqe(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function kqe(e,t,r){var i;let n={isExternal:r.has($t.EXTERNAL),isShareable:t||r.has($t.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return n;for(let a of e.directives){let o=a.name.value;if(o===$t.EXTERNAL){n.isExternal=!0;continue}o===$t.SHAREABLE&&(n.isShareable=!0)}return n}function qqe(e){return e.kind===Ye.Kind.NON_NULL_TYPE}function L4(e){switch(e.kind){case Ye.Kind.LIST_TYPE:return!0;case Ye.Kind.NON_NULL_TYPE:return L4(e.type);default:return!1}}function C4(e,t){switch(e.kind){case Ye.Kind.LIST_TYPE:return t.kind===Ye.Kind.LIST||t.kind===Ye.Kind.NULL;case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NULL)return!0;switch(e.name.value){case $t.BOOLEAN_SCALAR:return t.kind===Ye.Kind.BOOLEAN;case $t.FLOAT_SCALAR:return t.kind===Ye.Kind.INT||t.kind===Ye.Kind.FLOAT;case $t.INT_SCALAR:return t.kind===Ye.Kind.INT;case $t.STRING_SCALAR:return t.kind===Ye.Kind.STRING;default:return!0}case Ye.Kind.NON_NULL_TYPE:return t.kind===Ye.Kind.NULL?!1:C4(e.type,t)}}function xqe({existingData:e,incomingData:t}){if(!e.defaultValue)return{success:!0};if(!t.defaultValue)return e.includeDefaultValue=!1,{success:!0};let r=(0,Ye.print)(e.defaultValue),n=(0,Ye.print)(t.defaultValue);return r==n?{success:!0}:{error:(0,F4.incompatibleInputValueDefaultValuesError)(`${e.kind===Ye.Kind.ARGUMENT?$t.ARGUMENT:$t.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,n),success:!1}}function Mqe(e,t){return $t.ROOT_TYPE_NAMES.has(e)||t.has(e)}function jqe(e,t){let r=t.get(e);if(!r)return e;switch(r){case Ye.OperationTypeNode.MUTATION:return $t.MUTATION;case Ye.OperationTypeNode.SUBSCRIPTION:return $t.SUBSCRIPTION;default:return $t.QUERY}}function Vqe(e){for(let t of e.argumentDataByName.values()){for(let r of t.directivesByName.values())t.node.directives.push(...r);e.node.arguments.push(t.node)}}function Kqe(e){var r;let t=[];for(let n of e.values()){uv(n)&&Vqe(n);for(let[i,a]of n.directivesByName){if(i===$t.DEPRECATED){let o=a[0];if(!o)continue;if((r=o.arguments)!=null&&r.length){n.node.directives.push(o);continue}n.node.directives.push(G(q({},o),{arguments:[{kind:Ye.Kind.ARGUMENT,value:{kind:Ye.Kind.STRING,value:Ye.DEFAULT_DEPRECATION_REASON},name:(0,tl.stringToNameNode)($t.REASON)}]}));continue}n.node.directives.push(...a)}t.push(n.node)}return t}function $qe(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:r}of t.configureDescriptionDataBySubgraphName.values())if(!r)return}(!e.description||e.description.value.length0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(t.requiredScopes)]))}function Hqe(e,t){if(!t)return;let r=t.fieldAuthDataByFieldName.get(e.name);r&&(r.originalData.requiresAuthentication&&e.federatedDirectivesData.directivesByName.set($t.AUTHENTICATED,[(0,Ms.generateSimpleDirective)($t.AUTHENTICATED)]),r.originalData.requiredScopes.length>0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(r.originalData.requiredScopes)]))}function ZP(e){return{kind:Ye.Kind.DIRECTIVE,name:(0,tl.stringToNameNode)($t.DEPRECATED),arguments:[{kind:Ye.Kind.ARGUMENT,name:(0,tl.stringToNameNode)($t.REASON),value:{kind:Ye.Kind.STRING,value:e||$t.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function U4(e){switch(e.kind){case Ye.Kind.ARGUMENT:case Ye.Kind.FIELD_DEFINITION:case Ye.Kind.INPUT_VALUE_DEFINITION:case Ye.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}function k4(e){let t=[],r=new Set;for(let n of e){let i=(0,Ye.print)(n);r.has(i)||(r.add(i),t.push(n))}return t}function sv({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){var u;let n=[...e.federatedDirectivesData.tagDirectiveByName.values()];e.federatedDirectivesData.isDeprecated&&n.push(ZP(e.federatedDirectivesData.deprecatedReason));let i=U4(e),a=[],o=[];for(let[l,m]of e.federatedDirectivesData.directivesByName){if(l===$t.SEMANTIC_NON_NULL&&uv(e)){n.push((0,Ms.generateSemanticNonNullDirective)((u=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?u:new Set([0])));continue}let h=t.get(l);if(!h||!h.isComposed&&!Bqe.ROUTER_FEDERATED_DIRECTIVE_NAMES.has(l)||h.isComposed&&!h.isReferenced)continue;if(m.length<2){n.push(...m);continue}let N=k4(m),T=(0,Lqe.validateDirectives)({data:e,directiveCoords:i,directiveDefinitionData:h,directiveNodes:N,parentDefinitionDataByTypeName:r});if(!T.success){a.push(...T.errors);continue}if(N.length>1&&h.isComposed&&!h.isRepeatable){o.push((0,Cqe.invalidRepeatedComposedDirectiveWarning)({directiveCoords:i,directiveName:l,printedDirective:(0,Ye.print)(N[0])})),n.push(N[0]);continue}n.push(...N)}return a.length>0?{errors:a,success:!1}:{nodes:n,success:!0,warnings:o}}function XP(e){var r;let t=[];e.federatedDirectivesData.isDeprecated&&t.push(ZP(e.federatedDirectivesData.deprecatedReason));for(let[n,i]of e.federatedDirectivesData.directivesByName){if(n===$t.SEMANTIC_NON_NULL&&uv(e)){t.push((0,Ms.generateSemanticNonNullDirective)((r=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?r:new Set([0])));continue}$t.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(i[0])}return t}function Wqe(e){let t=XP(e),r=[];for(let n of e.argumentDataByName.values())x4(n)||r.push(G(q({},n.node),{directives:XP(n)}));return G(q({},e.node),{directives:t,arguments:r})}function Xqe({argumentNodes:e,data:t,description:r,federatedDirectiveDataByName:n,parentDefinitionDataByTypeName:i}){t.node.arguments=e,t.node.description=r,t.node.name=(0,tl.stringToNameNode)(t.name),t.node.type=t.type;let a=sv({federatedDirectiveDataByName:n,data:t,parentDefinitionDataByTypeName:i});return a.success?(t.node.directives=a.nodes,{node:t.node,success:!0,warnings:a.warnings}):a}function q4({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name),e.node.type=e.type,e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue);let i=sv({data:e,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function Zqe({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name);let i=sv({federatedDirectiveDataByName:r,data:e,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function exe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=[],i=[],a=[],o=[];for(let[u,l]of e.argumentDataByName){let m=(0,Ms.getEntriesNotInHashSet)(e.subgraphNames,l.subgraphNames);if(m.length>0){l.requiredSubgraphNames.size>0&&a.push({inputValueName:u,missingSubgraphs:m,requiredSubgraphs:[...l.requiredSubgraphNames]}),e.optionalArgumentNames.delete(u);continue}let h=q4({data:l,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});if(!h.success){n.push(...h.errors);continue}o.push(h.node),i.push(...h.warnings)}return a.length>0&&n.push((0,F4.invalidRequiredInputValueError)($t.DIRECTIVE_DEFINITION,`@${e.name}`,a)),n.length>0?{errors:n,success:!1}:{nodes:o,success:!0,warnings:i}}function txe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=exe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});return n.success?(e.node={arguments:n.nodes,kind:Ye.Kind.DIRECTIVE_DEFINITION,locations:(0,tl.setToNameNodeArray)(e.locations),name:(0,tl.stringToNameNode)(e.name),repeatable:e.isRepeatable,description:e.description},{success:!0}):n}function rxe(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function nxe(e,t){let r=e.isShareableBySubgraphName.size,n=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let u=e.externalFieldDataBySubgraphName.get(a);if(u&&!u.isUnconditionallyProvided){n.push(a);continue}o||(i+=1)}switch(i){case 0:r===n.length&&t.subgraphNamesByExternalFieldName.set(e.name,n);return;case 1:if(r===1)return;r-n.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var P4;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(P4||(ut.MergeMethod=P4={}));function ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n}){if(n.kind===Ye.Kind.NON_NULL_TYPE)return t.kind!==Ye.Kind.NON_NULL_TYPE?!1:ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type});if(t.kind===Ye.Kind.NON_NULL_TYPE)return ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n});switch(n.kind){case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NAMED_TYPE){let i=n.name.value,a=t.name.value;if(i===a)return!0;let o=r.get(i),u=e.get(i);return!!(u!=null&&u.has(a)||o!=null&&o.has(a))}return!1;default:return t.kind===Ye.Kind.LIST_TYPE?ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type}):!1}}function x4(e){return e.federatedDirectivesData.directivesByName.has($t.INACCESSIBLE)||e.directivesByName.has($t.INACCESSIBLE)}function ixe(e){return e===Ye.Kind.SCALAR_TYPE_DEFINITION||e===Ye.Kind.ENUM_TYPE_DEFINITION}function axe(e){switch(e.kind){case Ye.Kind.BOOLEAN:return e.value;case Ye.Kind.ENUM:case Ye.Kind.STRING:return e.value;case Ye.Kind.FLOAT:case Ye.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case Ye.Kind.NULL:return null}}function oxe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function sxe(){return{providedBy:[],requiredBy:[]}}function uxe(e,t){switch(e.kind){case Ye.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case Ye.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case Ye.Kind.ARGUMENT:case Ye.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case Ye.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function cxe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ye.Kind.INTERFACE_TYPE_DEFINITION}function lxe(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function dxe(e){let{value:t,done:r}=e.configureDescriptionDataBySubgraphName.values().next();if(r)return e.description;if(t.propagate)return(0,Fqe.getDescriptionFromString)(t.description)||e.description}function fxe(e,t){return e.kind===t.kind}function uv(e){return e.kind===Ye.Kind.FIELD_DEFINITION}function pxe(e){return e.kind===Ye.Kind.INPUT_OBJECT_TYPE_DEFINITION}function mxe(e){return $t.INPUT_NODE_KINDS.has(e)}function hxe(e){return $t.OUTPUT_NODE_KINDS.has(e)}function yxe(e){return $t.INTERFACE_NODE_KINDS.has(e.kind)}function M4(e){return e.kind===Ye.Kind.ENUM_TYPE_DEFINITION}function Nxe({data:e,namedTypeData:t,node:r}){e.defaultValue&&M4(t)&&(e.defaultValue=(0,Ye.visit)(e.defaultValue,{StringValue:{enter(n){return{kind:Ye.Kind.ENUM,value:n.value}}}}),r&&(r.defaultValue=e.defaultValue))}});var Oy=O(Sy=>{"use strict";d();p();f();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.newDirectiveArgumentData=_xe;Sy.newDirectiveDefinitionData=Sxe;Sy.copyDirectiveDefinitionData=Oxe;var Txe=xr(),j4=ve(),Exe=Zc(),gxe=Jo(),Ixe=kn(),vxe=An();function _xe({configureDescriptionDataBySubgraphName:e,directive:t,defaultValue:r,description:n,directivesByName:i,name:a,namedTypeKind:o,node:u,requiredSubgraphNames:l,subgraphNames:m,typeNode:h}){return{configureDescriptionDataBySubgraphName:e!=null?e:new Map,directivesByName:i!=null?i:new Map,federatedCoords:t,federatedDirectivesData:(0,Exe.newFederatedDirectivesData)(),includeDefaultValue:!!r,kind:j4.Kind.ARGUMENT,name:a,namedTypeKind:o,namedTypeName:(0,gxe.getTypeNodeNamedTypeName)(h),node:u!=null?u:{directives:[],defaultValue:r,description:n,name:(0,Ixe.stringToNameNode)(a),kind:j4.Kind.INPUT_VALUE_DEFINITION,type:h},originalCoords:t,requiredSubgraphNames:l!=null?l:new Set,subgraphNames:m!=null?m:new Set,type:h,defaultValue:r,description:n}}function Sxe({argumentDataByName:e,description:t,isComposed:r,isReferenced:n,isRepeatable:i,locations:a,name:o,node:u,optionalArgumentNames:l,requiredArgumentNames:m,subgraphNames:h}){return{argumentDataByName:e!=null?e:new Map,description:t,executableLocations:a.intersection(Txe.EXECUTABLE_DIRECTIVE_LOCATIONS),isComposed:!!r,isReferenced:!!n,isRepeatable:!!i,locations:a,majorVersion:-1,minorVersion:-1,name:o,optionalArgumentNames:l!=null?l:new Set,node:u,requiredArgumentNames:m!=null?m:new Set,subgraphNames:h!=null?h:new Set}}function Oxe({argumentDataByName:e,description:t,executableLocations:r,isComposed:n,isReferenced:i,isRepeatable:a,locations:o,name:u,node:l,minorVersion:m,majorVersion:h,optionalArgumentNames:N,requiredArgumentNames:T,subgraphNames:D}){return{argumentDataByName:(0,vxe.copyObjectValueMap)(e),description:t?q({},t):void 0,executableLocations:new Set(r),isComposed:n,isReferenced:i,isRepeatable:a,locations:new Set(o),majorVersion:h,minorVersion:m,name:u,node:q({},l),optionalArgumentNames:new Set(N),requiredArgumentNames:new Set(T),subgraphNames:new Set(D)}}});var cv=O(je=>{"use strict";d();p();f();Object.defineProperty(je,"__esModule",{value:!0});je.TAG_DEFINITION_DATA=je.SUBSCRIPTION_FILTER_DEFINITION_DATA=je.SHAREABLE_DEFINITION_DATA=je.SPECIFIED_BY_DEFINITION_DATA=je.SEMANTIC_NON_NULL_DEFINITION_DATA=je.REQUIRES_SCOPES_DEFINITION_DATA=je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=je.REDIS_SUBSCRIBE_DEFINITION_DATA=je.REDIS_PUBLISH_DEFINITION_DATA=je.REQUIRES_DEFINITION_DATA=je.PROVIDES_DEFINITION_DATA=je.LIST_SIZE_DEFINITION_DATA=je.LINK_DEFINITION_DATA=je.KEY_DEFINITION_DATA=je.OVERRIDE_DEFINITION_DATA=je.ONE_OF_DEFINITION_DATA=je.NATS_SUBSCRIBE_DEFINITION_DATA=je.NATS_REQUEST_DEFINITION_DATA=je.NATS_PUBLISH_DEFINITION_DATA=je.KAFKA_SUBSCRIBE_DEFINITION_DATA=je.KAFKA_PUBLISH_DEFINITION_DATA=je.INTERFACE_OBJECT_DEFINITION_DATA=je.INACCESSIBLE_DEFINITION_DATA=je.EXTERNAL_DEFINITION_DATA=je.EXTENDS_DEFINITION_DATA=je.DEPRECATED_DEFINITION_DATA=je.COST_DEFINITION_DATA=je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=je.COMPOSE_DIRECTIVE_DEFINITION_DATA=je.AUTHENTICATED_DEFINITION_DATA=void 0;var pi=kn(),De=ve(),B=xr(),er=Wh(),wr=Zg(),Pe=Oy();je.AUTHENTICATED_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.AUTHENTICATED,node:er.AUTHENTICATED_DEFINITION});je.COMPOSE_DIRECTIVE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Pe.newDirectiveArgumentData)({directive:`@${B.COMPOSE_DIRECTIVE}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.COMPOSE_DIRECTIVE,node:er.COMPOSE_DIRECTIVE_DEFINITION,requiredArgumentNames:new Set([B.NAME])});je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})],[B.DESCRIPTION_OVERRIDE,(0,Pe.newDirectiveArgumentData)({directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.DESCRIPTION_OVERRIDE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.INPUT_OBJECT_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.SCHEMA_UPPER,B.UNION_UPPER]),name:B.CONFIGURE_DESCRIPTION,node:er.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE,B.DESCRIPTION_OVERRIDE])});je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_CHILD_DESCRIPTIONS}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})]]),locations:new Set([B.ENUM_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.CONFIGURE_CHILD_DESCRIPTIONS,node:er.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE])});je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONTEXT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.CONNECT_FIELD_RESOLVER}`,name:B.CONTEXT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.CONNECT_FIELD_RESOLVER,node:er.CONNECT_FIELD_RESOLVER_DEFINITION,requiredArgumentNames:new Set([B.CONTEXT])});je.COST_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.WEIGHT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.COST}`,name:B.WEIGHT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)}})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.COST,node:er.COST_DEFINITION,requiredArgumentNames:new Set([B.WEIGHT])});je.DEPRECATED_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.REASON,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:De.DEFAULT_DEPRECATION_REASON},directive:`@${B.DEPRECATED}`,name:B.REASON,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER]),name:B.DEPRECATED,node:er.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([B.REASON])});je.EXTENDS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.EXTENDS,node:er.EXTENDS_DEFINITION});je.EXTERNAL_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.EXTERNAL,node:er.EXTERNAL_DEFINITION});je.INACCESSIBLE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.INACCESSIBLE,node:er.INACCESSIBLE_DEFINITION});je.INTERFACE_OBJECT_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.OBJECT_UPPER]),name:B.INTERFACE_OBJECT,node:er.INTERFACE_OBJECT_DEFINITION});je.KAFKA_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPIC,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.TOPIC,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_PUBLISH,node:er.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPIC])});je.KAFKA_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPICS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.TOPICS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_SUBSCRIBE,node:er.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPICS])});je.NATS_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isComposed:!0,locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_PUBLISH,node:er.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_REQUEST_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_REQUEST}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_REQUEST}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_REQUEST,node:er.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECTS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.SUBJECTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.STREAM_CONFIGURATION,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.STREAM_CONFIGURATION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.EDFS_NATS_STREAM_CONFIGURATION)})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_SUBSCRIBE,node:er.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID,B.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([B.SUBJECTS])});je.ONE_OF_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({locations:new Set([B.INPUT_OBJECT_UPPER]),name:B.ONE_OF,node:er.ONE_OF_DEFINITION});je.OVERRIDE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FROM,(0,Pe.newDirectiveArgumentData)({directive:`@${B.OVERRIDE}`,name:B.FROM,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.OVERRIDE,node:er.OVERRIDE_DEFINITION,requiredArgumentNames:new Set([B.FROM])});je.KEY_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.KEY}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})],[B.RESOLVABLE,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.KEY}`,name:B.RESOLVABLE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)})]]),isRepeatable:!0,locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.KEY,node:er.KEY_DEFINITION,optionalArgumentNames:new Set([B.RESOLVABLE]),requiredArgumentNames:new Set([B.FIELDS])});je.LINK_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.AS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.AS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})],[B.FOR,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.FOR,namedTypeKind:De.Kind.ENUM_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.LINK_PURPOSE)})],[B.IMPORT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.IMPORT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:(0,pi.stringToNamedTypeNode)(B.LINK_IMPORT)}})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.LINK,node:er.LINK_DEFINITION,optionalArgumentNames:new Set([B.AS,B.FOR,B.IMPORT]),requiredArgumentNames:new Set([B.URL_LOWER])});je.LIST_SIZE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.ASSUMED_SIZE,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.ASSUMED_SIZE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)})],[B.SLICING_ARGUMENTS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SLICING_ARGUMENTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.SIZED_FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SIZED_FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.REQUIRE_ONE_SLICING_ARGUMENT,(0,Pe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.REQUIRE_ONE_SLICING_ARGUMENT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR),defaultValue:{kind:De.Kind.BOOLEAN,value:!0}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.LIST_SIZE,node:er.LIST_SIZE_DEFINITION,optionalArgumentNames:new Set([B.ASSUMED_SIZE,B.SLICING_ARGUMENTS,B.SIZED_FIELDS,B.REQUIRE_ONE_SLICING_ARGUMENT])});je.PROVIDES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.PROVIDES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.PROVIDES,node:er.PROVIDES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REQUIRES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.REQUIRES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.REQUIRES,node:er.REQUIRES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REDIS_PUBLISH_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNEL,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.CHANNEL,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_PUBLISH,node:er.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNEL])});je.REDIS_SUBSCRIBE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNELS,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.CHANNELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Pe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_SUBSCRIBE,node:er.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNELS])});je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.REQUIRE_FETCH_REASONS,node:er.REQUIRE_FETCH_REASONS_DEFINITION});je.REQUIRES_SCOPES_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SCOPES,(0,Pe.newDirectiveArgumentData)({directive:`@${B.REQUIRES_SCOPES}`,name:B.SCOPES,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.SCOPE_SCALAR)}}}}}})]]),locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.REQUIRES_SCOPES,node:er.REQUIRES_SCOPES_DEFINITION,requiredArgumentNames:new Set([B.SCOPES])});je.SEMANTIC_NON_NULL_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.LEVELS,(0,Pe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.LIST,values:[{kind:De.Kind.INT,value:"0"}]},directive:`@${B.SEMANTIC_NON_NULL}`,name:B.LEVELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)}}}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SEMANTIC_NON_NULL,node:er.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([B.LEVELS])});je.SPECIFIED_BY_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Pe.newDirectiveArgumentData)({directive:`@${B.SPECIFIED_BY}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.SCALAR_UPPER]),name:B.SPECIFIED_BY,node:er.SPECIFIED_BY_DEFINITION,requiredArgumentNames:new Set([B.URL_LOWER])});je.SHAREABLE_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.SHAREABLE,node:er.SHAREABLE_DEFINITION});je.SUBSCRIPTION_FILTER_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONDITION,(0,Pe.newDirectiveArgumentData)({directive:`@${B.SUBSCRIPTION_FILTER}`,name:B.CONDITION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.SUBSCRIPTION_FILTER_CONDITION)}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SUBSCRIPTION_FILTER,node:er.SUBSCRIPTION_FILTER_DEFINITION,requiredArgumentNames:new Set([B.CONDITION])});je.TAG_DEFINITION_DATA=(0,Pe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Pe.newDirectiveArgumentData)({directive:`@${B.TAG}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.TAG,node:er.TAG_DEFINITION,requiredArgumentNames:new Set([B.NAME])})});var K4=O(V4=>{"use strict";d();p();f();Object.defineProperty(V4,"__esModule",{value:!0})});var G4=O($4=>{"use strict";d();p();f();Object.defineProperty($4,"__esModule",{value:!0})});var Y4=O(Q4=>{"use strict";d();p();f();Object.defineProperty(Q4,"__esModule",{value:!0})});var z4=O(J4=>{"use strict";d();p();f();Object.defineProperty(J4,"__esModule",{value:!0})});var Fa=O((eF,H4)=>{"use strict";d();p();f();var Dy=function(e){return e&&e.Math===Math&&e};H4.exports=Dy(typeof globalThis=="object"&&globalThis)||Dy(typeof window=="object"&&window)||Dy(typeof self=="object"&&self)||Dy(typeof global=="object"&&global)||Dy(typeof eF=="object"&&eF)||function(){return this}()||Function("return this")()});var js=O((STt,W4)=>{"use strict";d();p();f();W4.exports=function(e){try{return!!e()}catch(t){return!0}}});var rl=O((ATt,X4)=>{"use strict";d();p();f();var Dxe=js();X4.exports=!Dxe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var tF=O((FTt,Z4)=>{"use strict";d();p();f();var bxe=js();Z4.exports=!bxe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var yd=O((UTt,e8)=>{"use strict";d();p();f();var Axe=tF(),lv=Function.prototype.call;e8.exports=Axe?lv.bind(lv):function(){return lv.apply(lv,arguments)}});var i8=O(n8=>{"use strict";d();p();f();var t8={}.propertyIsEnumerable,r8=Object.getOwnPropertyDescriptor,Rxe=r8&&!t8.call({1:2},1);n8.f=Rxe?function(t){var r=r8(this,t);return!!r&&r.enumerable}:t8});var rF=O(($Tt,a8)=>{"use strict";d();p();f();a8.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Hi=O((JTt,u8)=>{"use strict";d();p();f();var o8=tF(),s8=Function.prototype,nF=s8.call,wxe=o8&&s8.bind.bind(nF,nF);u8.exports=o8?wxe:function(e){return function(){return nF.apply(e,arguments)}}});var d8=O((XTt,l8)=>{"use strict";d();p();f();var c8=Hi(),Pxe=c8({}.toString),Fxe=c8("".slice);l8.exports=function(e){return Fxe(Pxe(e),8,-1)}});var p8=O((rEt,f8)=>{"use strict";d();p();f();var Lxe=Hi(),Cxe=js(),Bxe=d8(),iF=Object,Uxe=Lxe("".split);f8.exports=Cxe(function(){return!iF("z").propertyIsEnumerable(0)})?function(e){return Bxe(e)==="String"?Uxe(e,""):iF(e)}:iF});var aF=O((oEt,m8)=>{"use strict";d();p();f();m8.exports=function(e){return e==null}});var oF=O((lEt,h8)=>{"use strict";d();p();f();var kxe=aF(),qxe=TypeError;h8.exports=function(e){if(kxe(e))throw new qxe("Can't call method on "+e);return e}});var dv=O((mEt,y8)=>{"use strict";d();p();f();var xxe=p8(),Mxe=oF();y8.exports=function(e){return xxe(Mxe(e))}});var lo=O((TEt,N8)=>{"use strict";d();p();f();var sF=typeof document=="object"&&document.all;N8.exports=typeof sF=="undefined"&&sF!==void 0?function(e){return typeof e=="function"||e===sF}:function(e){return typeof e=="function"}});var gp=O((vEt,T8)=>{"use strict";d();p();f();var jxe=lo();T8.exports=function(e){return typeof e=="object"?e!==null:jxe(e)}});var fv=O((DEt,E8)=>{"use strict";d();p();f();var uF=Fa(),Vxe=lo(),Kxe=function(e){return Vxe(e)?e:void 0};E8.exports=function(e,t){return arguments.length<2?Kxe(uF[e]):uF[e]&&uF[e][t]}});var I8=O((wEt,g8)=>{"use strict";d();p();f();var $xe=Hi();g8.exports=$xe({}.isPrototypeOf)});var O8=O((CEt,S8)=>{"use strict";d();p();f();var Gxe=Fa(),v8=Gxe.navigator,_8=v8&&v8.userAgent;S8.exports=_8?String(_8):""});var F8=O((qEt,P8)=>{"use strict";d();p();f();var w8=Fa(),cF=O8(),D8=w8.process,b8=w8.Deno,A8=D8&&D8.versions||b8&&b8.version,R8=A8&&A8.v8,fo,pv;R8&&(fo=R8.split("."),pv=fo[0]>0&&fo[0]<4?1:+(fo[0]+fo[1]));!pv&&cF&&(fo=cF.match(/Edge\/(\d+)/),(!fo||fo[1]>=74)&&(fo=cF.match(/Chrome\/(\d+)/),fo&&(pv=+fo[1])));P8.exports=pv});var lF=O((VEt,C8)=>{"use strict";d();p();f();var L8=F8(),Qxe=js(),Yxe=Fa(),Jxe=Yxe.String;C8.exports=!!Object.getOwnPropertySymbols&&!Qxe(function(){var e=Symbol("symbol detection");return!Jxe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&L8&&L8<41})});var dF=O((QEt,B8)=>{"use strict";d();p();f();var zxe=lF();B8.exports=zxe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fF=O((HEt,U8)=>{"use strict";d();p();f();var Hxe=fv(),Wxe=lo(),Xxe=I8(),Zxe=dF(),eMe=Object;U8.exports=Zxe?function(e){return typeof e=="symbol"}:function(e){var t=Hxe("Symbol");return Wxe(t)&&Xxe(t.prototype,eMe(e))}});var q8=O((egt,k8)=>{"use strict";d();p();f();var tMe=String;k8.exports=function(e){try{return tMe(e)}catch(t){return"Object"}}});var mv=O((igt,x8)=>{"use strict";d();p();f();var rMe=lo(),nMe=q8(),iMe=TypeError;x8.exports=function(e){if(rMe(e))return e;throw new iMe(nMe(e)+" is not a function")}});var pF=O((ugt,M8)=>{"use strict";d();p();f();var aMe=mv(),oMe=aF();M8.exports=function(e,t){var r=e[t];return oMe(r)?void 0:aMe(r)}});var V8=O((fgt,j8)=>{"use strict";d();p();f();var mF=yd(),hF=lo(),yF=gp(),sMe=TypeError;j8.exports=function(e,t){var r,n;if(t==="string"&&hF(r=e.toString)&&!yF(n=mF(r,e))||hF(r=e.valueOf)&&!yF(n=mF(r,e))||t!=="string"&&hF(r=e.toString)&&!yF(n=mF(r,e)))return n;throw new sMe("Can't convert object to primitive value")}});var $8=O((ygt,K8)=>{"use strict";d();p();f();K8.exports=!1});var hv=O((ggt,Q8)=>{"use strict";d();p();f();var G8=Fa(),uMe=Object.defineProperty;Q8.exports=function(e,t){try{uMe(G8,e,{value:t,configurable:!0,writable:!0})}catch(r){G8[e]=t}return t}});var yv=O((Sgt,z8)=>{"use strict";d();p();f();var cMe=$8(),lMe=Fa(),dMe=hv(),Y8="__core-js_shared__",J8=z8.exports=lMe[Y8]||dMe(Y8,{});(J8.versions||(J8.versions=[])).push({version:"3.41.0",mode:cMe?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var NF=O((Agt,W8)=>{"use strict";d();p();f();var H8=yv();W8.exports=function(e,t){return H8[e]||(H8[e]=t||{})}});var Z8=O((Fgt,X8)=>{"use strict";d();p();f();var fMe=oF(),pMe=Object;X8.exports=function(e){return pMe(fMe(e))}});var nl=O((Ugt,e9)=>{"use strict";d();p();f();var mMe=Hi(),hMe=Z8(),yMe=mMe({}.hasOwnProperty);e9.exports=Object.hasOwn||function(t,r){return yMe(hMe(t),r)}});var TF=O((Mgt,t9)=>{"use strict";d();p();f();var NMe=Hi(),TMe=0,EMe=Math.random(),gMe=NMe(1 .toString);t9.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gMe(++TMe+EMe,36)}});var i9=O(($gt,n9)=>{"use strict";d();p();f();var IMe=Fa(),vMe=NF(),r9=nl(),_Me=TF(),SMe=lF(),OMe=dF(),Ip=IMe.Symbol,EF=vMe("wks"),DMe=OMe?Ip.for||Ip:Ip&&Ip.withoutSetter||_Me;n9.exports=function(e){return r9(EF,e)||(EF[e]=SMe&&r9(Ip,e)?Ip[e]:DMe("Symbol."+e)),EF[e]}});var u9=O((Jgt,s9)=>{"use strict";d();p();f();var bMe=yd(),a9=gp(),o9=fF(),AMe=pF(),RMe=V8(),wMe=i9(),PMe=TypeError,FMe=wMe("toPrimitive");s9.exports=function(e,t){if(!a9(e)||o9(e))return e;var r=AMe(e,FMe),n;if(r){if(t===void 0&&(t="default"),n=bMe(r,e,t),!a9(n)||o9(n))return n;throw new PMe("Can't convert object to primitive value")}return t===void 0&&(t="number"),RMe(e,t)}});var gF=O((Xgt,c9)=>{"use strict";d();p();f();var LMe=u9(),CMe=fF();c9.exports=function(e){var t=LMe(e,"string");return CMe(t)?t:t+""}});var f9=O((rIt,d9)=>{"use strict";d();p();f();var BMe=Fa(),l9=gp(),IF=BMe.document,UMe=l9(IF)&&l9(IF.createElement);d9.exports=function(e){return UMe?IF.createElement(e):{}}});var vF=O((oIt,p9)=>{"use strict";d();p();f();var kMe=rl(),qMe=js(),xMe=f9();p9.exports=!kMe&&!qMe(function(){return Object.defineProperty(xMe("div"),"a",{get:function(){return 7}}).a!==7})});var _F=O(h9=>{"use strict";d();p();f();var MMe=rl(),jMe=yd(),VMe=i8(),KMe=rF(),$Me=dv(),GMe=gF(),QMe=nl(),YMe=vF(),m9=Object.getOwnPropertyDescriptor;h9.f=MMe?m9:function(t,r){if(t=$Me(t),r=GMe(r),YMe)try{return m9(t,r)}catch(n){}if(QMe(t,r))return KMe(!jMe(VMe.f,t,r),t[r])}});var N9=O((mIt,y9)=>{"use strict";d();p();f();var JMe=rl(),zMe=js();y9.exports=JMe&&zMe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var by=O((TIt,T9)=>{"use strict";d();p();f();var HMe=gp(),WMe=String,XMe=TypeError;T9.exports=function(e){if(HMe(e))return e;throw new XMe(WMe(e)+" is not an object")}});var Tv=O(g9=>{"use strict";d();p();f();var ZMe=rl(),e1e=vF(),t1e=N9(),Nv=by(),E9=gF(),r1e=TypeError,SF=Object.defineProperty,n1e=Object.getOwnPropertyDescriptor,OF="enumerable",DF="configurable",bF="writable";g9.f=ZMe?t1e?function(t,r,n){if(Nv(t),r=E9(r),Nv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&bF in n&&!n[bF]){var i=n1e(t,r);i&&i[bF]&&(t[r]=n.value,n={configurable:DF in n?n[DF]:i[DF],enumerable:OF in n?n[OF]:i[OF],writable:!1})}return SF(t,r,n)}:SF:function(t,r,n){if(Nv(t),r=E9(r),Nv(n),e1e)try{return SF(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new r1e("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var AF=O((DIt,I9)=>{"use strict";d();p();f();var i1e=rl(),a1e=Tv(),o1e=rF();I9.exports=i1e?function(e,t,r){return a1e.f(e,t,o1e(1,r))}:function(e,t,r){return e[t]=r,e}});var S9=O((wIt,_9)=>{"use strict";d();p();f();var RF=rl(),s1e=nl(),v9=Function.prototype,u1e=RF&&Object.getOwnPropertyDescriptor,wF=s1e(v9,"name"),c1e=wF&&function(){}.name==="something",l1e=wF&&(!RF||RF&&u1e(v9,"name").configurable);_9.exports={EXISTS:wF,PROPER:c1e,CONFIGURABLE:l1e}});var D9=O((CIt,O9)=>{"use strict";d();p();f();var d1e=Hi(),f1e=lo(),PF=yv(),p1e=d1e(Function.toString);f1e(PF.inspectSource)||(PF.inspectSource=function(e){return p1e(e)});O9.exports=PF.inspectSource});var R9=O((qIt,A9)=>{"use strict";d();p();f();var m1e=Fa(),h1e=lo(),b9=m1e.WeakMap;A9.exports=h1e(b9)&&/native code/.test(String(b9))});var F9=O((VIt,P9)=>{"use strict";d();p();f();var y1e=NF(),N1e=TF(),w9=y1e("keys");P9.exports=function(e){return w9[e]||(w9[e]=N1e(e))}});var FF=O((QIt,L9)=>{"use strict";d();p();f();L9.exports={}});var k9=O((HIt,U9)=>{"use strict";d();p();f();var T1e=R9(),B9=Fa(),E1e=gp(),g1e=AF(),LF=nl(),CF=yv(),I1e=F9(),v1e=FF(),C9="Object already initialized",BF=B9.TypeError,_1e=B9.WeakMap,Ev,Ay,gv,S1e=function(e){return gv(e)?Ay(e):Ev(e,{})},O1e=function(e){return function(t){var r;if(!E1e(t)||(r=Ay(t)).type!==e)throw new BF("Incompatible receiver, "+e+" required");return r}};T1e||CF.state?(po=CF.state||(CF.state=new _1e),po.get=po.get,po.has=po.has,po.set=po.set,Ev=function(e,t){if(po.has(e))throw new BF(C9);return t.facade=e,po.set(e,t),t},Ay=function(e){return po.get(e)||{}},gv=function(e){return po.has(e)}):(Nd=I1e("state"),v1e[Nd]=!0,Ev=function(e,t){if(LF(e,Nd))throw new BF(C9);return t.facade=e,g1e(e,Nd,t),t},Ay=function(e){return LF(e,Nd)?e[Nd]:{}},gv=function(e){return LF(e,Nd)});var po,Nd;U9.exports={set:Ev,get:Ay,has:gv,enforce:S1e,getterFor:O1e}});var j9=O((evt,M9)=>{"use strict";d();p();f();var kF=Hi(),D1e=js(),b1e=lo(),Iv=nl(),UF=rl(),A1e=S9().CONFIGURABLE,R1e=D9(),x9=k9(),w1e=x9.enforce,P1e=x9.get,q9=String,vv=Object.defineProperty,F1e=kF("".slice),L1e=kF("".replace),C1e=kF([].join),B1e=UF&&!D1e(function(){return vv(function(){},"length",{value:8}).length!==8}),U1e=String(String).split("String"),k1e=M9.exports=function(e,t,r){F1e(q9(t),0,7)==="Symbol("&&(t="["+L1e(q9(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Iv(e,"name")||A1e&&e.name!==t)&&(UF?vv(e,"name",{value:t,configurable:!0}):e.name=t),B1e&&r&&Iv(r,"arity")&&e.length!==r.arity&&vv(e,"length",{value:r.arity});try{r&&Iv(r,"constructor")&&r.constructor?UF&&vv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=w1e(e);return Iv(n,"source")||(n.source=C1e(U1e,typeof t=="string"?t:"")),e};Function.prototype.toString=k1e(function(){return b1e(this)&&P1e(this).source||R1e(this)},"toString")});var K9=O((ivt,V9)=>{"use strict";d();p();f();var q1e=lo(),x1e=Tv(),M1e=j9(),j1e=hv();V9.exports=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(q1e(r)&&M1e(r,a,n),n.global)i?e[t]=r:j1e(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=r:x1e.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var G9=O((uvt,$9)=>{"use strict";d();p();f();var V1e=Math.ceil,K1e=Math.floor;$9.exports=Math.trunc||function(t){var r=+t;return(r>0?K1e:V1e)(r)}});var _v=O((fvt,Q9)=>{"use strict";d();p();f();var $1e=G9();Q9.exports=function(e){var t=+e;return t!==t||t===0?0:$1e(t)}});var J9=O((yvt,Y9)=>{"use strict";d();p();f();var G1e=_v(),Q1e=Math.max,Y1e=Math.min;Y9.exports=function(e,t){var r=G1e(e);return r<0?Q1e(r+t,0):Y1e(r,t)}});var H9=O((gvt,z9)=>{"use strict";d();p();f();var J1e=_v(),z1e=Math.min;z9.exports=function(e){var t=J1e(e);return t>0?z1e(t,9007199254740991):0}});var X9=O((Svt,W9)=>{"use strict";d();p();f();var H1e=H9();W9.exports=function(e){return H1e(e.length)}});var t5=O((Avt,e5)=>{"use strict";d();p();f();var W1e=dv(),X1e=J9(),Z1e=X9(),Z9=function(e){return function(t,r,n){var i=W1e(t),a=Z1e(i);if(a===0)return!e&&-1;var o=X1e(n,a),u;if(e&&r!==r){for(;a>o;)if(u=i[o++],u!==u)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===r)return e||o||0;return!e&&-1}};e5.exports={includes:Z9(!0),indexOf:Z9(!1)}});var i5=O((Fvt,n5)=>{"use strict";d();p();f();var eje=Hi(),qF=nl(),tje=dv(),rje=t5().indexOf,nje=FF(),r5=eje([].push);n5.exports=function(e,t){var r=tje(e),n=0,i=[],a;for(a in r)!qF(nje,a)&&qF(r,a)&&r5(i,a);for(;t.length>n;)qF(r,a=t[n++])&&(~rje(i,a)||r5(i,a));return i}});var o5=O((Uvt,a5)=>{"use strict";d();p();f();a5.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var u5=O(s5=>{"use strict";d();p();f();var ije=i5(),aje=o5(),oje=aje.concat("length","prototype");s5.f=Object.getOwnPropertyNames||function(t){return ije(t,oje)}});var l5=O(c5=>{"use strict";d();p();f();c5.f=Object.getOwnPropertySymbols});var f5=O((Jvt,d5)=>{"use strict";d();p();f();var sje=fv(),uje=Hi(),cje=u5(),lje=l5(),dje=by(),fje=uje([].concat);d5.exports=sje("Reflect","ownKeys")||function(t){var r=cje.f(dje(t)),n=lje.f;return n?fje(r,n(t)):r}});var h5=O((Xvt,m5)=>{"use strict";d();p();f();var p5=nl(),pje=f5(),mje=_F(),hje=Tv();m5.exports=function(e,t,r){for(var n=pje(t),i=hje.f,a=mje.f,o=0;o{"use strict";d();p();f();var yje=js(),Nje=lo(),Tje=/#|\.prototype\./,Ry=function(e,t){var r=gje[Eje(e)];return r===vje?!0:r===Ije?!1:Nje(t)?yje(t):!!t},Eje=Ry.normalize=function(e){return String(e).replace(Tje,".").toLowerCase()},gje=Ry.data={},Ije=Ry.NATIVE="N",vje=Ry.POLYFILL="P";y5.exports=Ry});var xF=O((o_t,T5)=>{"use strict";d();p();f();var Sv=Fa(),_je=_F().f,Sje=AF(),Oje=K9(),Dje=hv(),bje=h5(),Aje=N5();T5.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,a,o,u,l,m,h;if(n?o=Sv:i?o=Sv[r]||Dje(r,{}):o=Sv[r]&&Sv[r].prototype,o)for(u in t){if(m=t[u],e.dontCallGetSet?(h=_je(o,u),l=h&&h.value):l=o[u],a=Aje(n?u:r+(i?".":"#")+u,e.forced),!a&&l!==void 0){if(typeof m==typeof l)continue;bje(m,l)}(e.sham||l&&l.sham)&&Sje(m,"sham",!0),Oje(o,u,m,e)}}});var wy=O((l_t,E5)=>{"use strict";d();p();f();var MF=Hi(),Ov=Set.prototype;E5.exports={Set,add:MF(Ov.add),has:MF(Ov.has),remove:MF(Ov.delete),proto:Ov}});var jF=O((m_t,g5)=>{"use strict";d();p();f();var Rje=wy().has;g5.exports=function(e){return Rje(e),e}});var v5=O((T_t,I5)=>{"use strict";d();p();f();var wje=Hi(),Pje=mv();I5.exports=function(e,t,r){try{return wje(Pje(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var VF=O((v_t,_5)=>{"use strict";d();p();f();var Fje=v5(),Lje=wy();_5.exports=Fje(Lje.proto,"size","get")||function(e){return e.size}});var KF=O((D_t,S5)=>{"use strict";d();p();f();var Cje=yd();S5.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,a,o;!(a=Cje(i,n)).done;)if(o=t(a.value),o!==void 0)return o}});var w5=O((w_t,R5)=>{"use strict";d();p();f();var O5=Hi(),Bje=KF(),D5=wy(),Uje=D5.Set,b5=D5.proto,kje=O5(b5.forEach),A5=O5(b5.keys),qje=A5(new Uje).next;R5.exports=function(e,t,r){return r?Bje({iterator:A5(e),next:qje},t):kje(e,t)}});var F5=O((C_t,P5)=>{"use strict";d();p();f();P5.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var $F=O((q_t,q5)=>{"use strict";d();p();f();var L5=mv(),U5=by(),C5=yd(),xje=_v(),Mje=F5(),B5="Invalid size",jje=RangeError,Vje=TypeError,Kje=Math.max,k5=function(e,t){this.set=e,this.size=Kje(t,0),this.has=L5(e.has),this.keys=L5(e.keys)};k5.prototype={getIterator:function(){return Mje(U5(C5(this.keys,this.set)))},includes:function(e){return C5(this.has,this.set,e)}};q5.exports=function(e){U5(e);var t=+e.size;if(t!==t)throw new Vje(B5);var r=xje(t);if(r<0)throw new jje(B5);return new k5(e,r)}});var M5=O((V_t,x5)=>{"use strict";d();p();f();var $je=jF(),Gje=VF(),Qje=w5(),Yje=$F();x5.exports=function(t){var r=$je(this),n=Yje(t);return Gje(r)>n.size?!1:Qje(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var GF=O((Q_t,K5)=>{"use strict";d();p();f();var Jje=fv(),j5=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},V5=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};K5.exports=function(e,t){var r=Jje("Set");try{new r()[e](j5(0));try{return new r()[e](j5(-1)),!1}catch(i){if(!t)return!0;try{return new r()[e](V5(-1/0)),!1}catch(a){var n=new r;return n.add(1),n.add(2),t(n[e](V5(1/0)))}}}catch(i){return!1}}});var $5=O(()=>{"use strict";d();p();f();var zje=xF(),Hje=M5(),Wje=GF(),Xje=!Wje("isSubsetOf",function(e){return e});zje({target:"Set",proto:!0,real:!0,forced:Xje},{isSubsetOf:Hje})});var G5=O(()=>{"use strict";d();p();f();$5()});var J5=O((oSt,Y5)=>{"use strict";d();p();f();var Zje=yd(),Q5=by(),eVe=pF();Y5.exports=function(e,t,r){var n,i;Q5(e);try{if(n=eVe(e,"return"),!n){if(t==="throw")throw r;return r}n=Zje(n,e)}catch(a){i=!0,n=a}if(t==="throw")throw r;if(i)throw n;return Q5(n),r}});var H5=O((lSt,z5)=>{"use strict";d();p();f();var tVe=jF(),rVe=wy().has,nVe=VF(),iVe=$F(),aVe=KF(),oVe=J5();z5.exports=function(t){var r=tVe(this),n=iVe(t);if(nVe(r){"use strict";d();p();f();var sVe=xF(),uVe=H5(),cVe=GF(),lVe=!cVe("isSupersetOf",function(e){return!e});sVe({target:"Set",proto:!0,real:!0,forced:lVe},{isSupersetOf:uVe})});var X5=O(()=>{"use strict";d();p();f();W5()});var vp=O(Zr=>{"use strict";d();p();f();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.subtractSet=fVe;Zr.mapToArrayOfValues=pVe;Zr.kindToConvertedTypeString=mVe;Zr.fieldDatasToSimpleFieldDatas=hVe;Zr.isNodeLeaf=yVe;Zr.newEntityInterfaceFederationData=NVe;Zr.upsertEntityInterfaceFederationData=TVe;Zr.upsertEntityData=gVe;Zr.updateEntityData=Z5;Zr.newFieldAuthorizationData=IVe;Zr.newAuthorizationData=vVe;Zr.addScopes=QF;Zr.mergeRequiredScopesByAND=Av;Zr.mergeRequiredScopesByOR=YF;Zr.upsertFieldAuthorizationData=eX;Zr.upsertAuthorizationData=OVe;Zr.upsertAuthorizationConfiguration=DVe;Zr.isObjectNodeKind=bVe;Zr.isCompositeOutputNodeKind=AVe;Zr.isObjectDefinitionData=RVe;var gr=ve(),Li=xr(),Dv=An(),bv=zo();G5();X5();var dVe=xs();function fVe(e,t){for(let r of e)t.delete(r)}function pVe(e){let t=[];for(let r of e.values())t.push(r);return t}function mVe(e){switch(e){case gr.Kind.BOOLEAN:return Li.BOOLEAN_SCALAR;case gr.Kind.ENUM:case gr.Kind.ENUM_TYPE_DEFINITION:case gr.Kind.ENUM_TYPE_EXTENSION:return Li.ENUM;case gr.Kind.ENUM_VALUE_DEFINITION:return Li.ENUM_VALUE;case gr.Kind.FIELD_DEFINITION:return Li.FIELD;case gr.Kind.FLOAT:return Li.FLOAT_SCALAR;case gr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case gr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Li.INPUT_OBJECT;case gr.Kind.INPUT_VALUE_DEFINITION:return Li.INPUT_VALUE;case gr.Kind.INT:return Li.INT_SCALAR;case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_EXTENSION:return Li.INTERFACE;case gr.Kind.NULL:return Li.NULL;case gr.Kind.OBJECT:case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.OBJECT_TYPE_EXTENSION:return Li.OBJECT;case gr.Kind.STRING:return Li.STRING_SCALAR;case gr.Kind.SCALAR_TYPE_DEFINITION:case gr.Kind.SCALAR_TYPE_EXTENSION:return Li.SCALAR;case gr.Kind.UNION_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_EXTENSION:return Li.UNION;default:return e}}function hVe(e){let t=[];for(let{name:r,namedTypeName:n}of e)t.push({name:r,namedTypeName:n});return t}function yVe(e){if(!e)return!0;switch(e){case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function NVe(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function TVe(e,t,r){(0,Dv.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(r,t),e.fieldDatasBySubgraphName.set(r,t.fieldDatas),(0,Dv.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,Dv.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(r)}function EVe({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:r}){let n=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:u}]of e)u||i.set(a,o);return{keyFieldSetDatasBySubgraphName:n,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:r}}function gVe({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}){let i=e.get(n);i?Z5({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:r}):e.set(n,EVe({keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}))}function Z5({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:r}){e.subgraphNames.add(r);let n=e.keyFieldSetDatasBySubgraphName.get(r);if(!n){e.keyFieldSetDatasBySubgraphName.set(r,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=n.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}n.set(i,a)}}function IVe(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function vVe(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function QF(e,t){for(let r=e.length-1;r>-1;r--){if(e[r].isSubsetOf(t))return;e[r].isSupersetOf(t)&&e.splice(r,1)}e.push(t)}function Av(e,t){if(e.length<1||t.length<1){for(let n of t)e.push(new Set(n));return e}let r=[];for(let n of t)for(let i of e){let a=(0,Dv.addSets)(n,i);QF(r,a)}return r}function YF(e,t){for(let r of t)QF(e,r);return e.length<=bv.MAX_OR_SCOPES}function eX(e,t){var i,a;let r=t.fieldName,n=e.get(r);return n?((i=n.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=n.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!YF(n.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||n.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>bv.MAX_OR_SCOPES||n.originalData.requiredScopes.length*t.originalData.requiredScopes.length>bv.MAX_OR_SCOPES?!1:(n.inheritedData.requiredScopes=Av(n.inheritedData.requiredScopes,t.inheritedData.requiredScopes),n.originalData.requiredScopes=Av(n.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(r,tX(t)),!0)}function _Ve(e){let t=new Map;for(let[r,n]of e)t.set(r,tX(n));return t}function tX(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function SVe(e){return{fieldAuthDataByFieldName:_Ve(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function OVe(e,t,r){let n=e.get(t.typeName);if(!n){e.set(t.typeName,SVe(t));return}n.requiresAuthentication||(n.requiresAuthentication=t.requiresAuthentication),!YF(n.requiredScopesByOR,t.requiredScopes)||n.requiredScopes.length*t.requiredScopes.length>bv.MAX_OR_SCOPES?r.add(t.typeName):n.requiredScopes=Av(n.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)eX(n.fieldAuthDataByFieldName,a)||r.add(`${t.typeName}.${i}`)}function DVe(e,t){let r=t.typeName;for(let[n,i]of t.fieldAuthDataByFieldName){let a=`${r}.${n}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(u=>[...u]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(u=>[...u])):e.set(a,{argumentNames:[],typeName:r,fieldName:n,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(u=>[...u]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(u=>[...u])})}}function bVe(e){return e===gr.Kind.OBJECT_TYPE_DEFINITION||e===gr.Kind.OBJECT_TYPE_EXTENSION}function AVe(e){return dVe.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function RVe(e){return e?e.kind===gr.Kind.OBJECT_TYPE_DEFINITION:!1}});var _p=O(mi=>{"use strict";d();p();f();Object.defineProperty(mi,"__esModule",{value:!0});mi.FEDERATED_DIRECTIVE_DATAS=void 0;mi.newFieldSetData=PVe;mi.extractFieldSetValue=FVe;mi.getNormalizedFieldSet=LVe;mi.getInitialFieldCoordsPath=CVe;mi.validateKeyFieldSets=BVe;mi.getConditionalFieldSetDirectiveName=UVe;mi.isNodeQuery=kVe;mi.validateArgumentTemplateReferences=qVe;mi.initializeDirectiveDefinitionDatas=xVe;mi.upsertFederatedDirectiveData=MVe;mi.extractLinkArgs=$Ve;var fr=ve(),nX=kn(),Gt=bi(),iX=zo(),JF=Jo(),Pt=cv(),lt=xr(),Ho=An(),wVe=xs(),rX=Oy();function PVe(){return{provides:new Map,requires:new Map}}function FVe(e,t,r){if(!r||r.length>1)return;let n=r[0].arguments;if(!n||n.length!==1)return;let i=n[0];i.name.value!==lt.FIELDS||i.value.kind!==fr.Kind.STRING||t.set(e,i.value.value)}function LVe(e){return(0,fr.print)((0,nX.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function CVe(e,t){return e?[t]:[]}function BVe(e,t,r){let n=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=n?void 0:e.internalGraph.addEntityDataNode(t.name),u=e.internalGraph.addOrUpdateNode(t.name),l=0;for(let[m,{documentNode:h,isUnresolvable:N,rawFieldSet:T}]of r){n&&(n.resolvable||(n.resolvable=!N)),l+=1;let D=[],R=[t],C=[],M=[],Y=new Set,ee=-1,ae=!0,Ne="",_e=!1;if((0,fr.visit)(h,{Argument:{enter(Le){return D.push((0,Gt.unexpectedArgumentErrorMessage)(T,`${R[ee].name}.${Ne}`,Le.name.value)),fr.BREAK}},Field:{enter(Le){let Ve=R[ee],ot=Ve.name;if(ae){let mr=`${ot}.${Ne}`,tr=Ve.fieldDataByName.get(Ne);if(!tr)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,mr,Ne)),fr.BREAK;let $r=(0,JF.getTypeNodeNamedTypeName)(tr.node.type),Jn=e.parentDefinitionDataByTypeName.get($r),fn=Jn?Jn.kind:fr.Kind.SCALAR_TYPE_DEFINITION;return D.push((0,Gt.invalidSelectionSetErrorMessage)(T,[mr],$r,(0,Ho.kindToNodeType)(fn))),fr.BREAK}let Z=Le.name.value,Se=`${ot}.${Z}`;if(Ne=Z,Z===lt.TYPENAME)return;let Ft=Ve.fieldDataByName.get(Z);if(!Ft)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Z)),fr.BREAK;if(Ft.argumentDataByName.size)return D.push((0,Gt.argumentsInKeyFieldSetErrorMessage)(T,Se)),fr.BREAK;if(C[ee].has(Z))return D.push((0,Gt.duplicateFieldInFieldSetErrorMessage)(T,Se)),fr.BREAK;let pr=Ft.externalFieldDataBySubgraphName.get(e.subgraphName);if(!e.isSubgraphEventDrivenGraph&&(pr!=null&&pr.isDefinedExternal)&&!pr.isUnconditionallyProvided&&!e.conditionalFieldDataByCoords.get(Se)&&!e.options.ignoreExternalKeys){_e=!0;let tr=u.headToTailEdges.get(Z);tr&&(tr.isExternal=!0)}(0,Ho.getValueOrDefault)((0,Ho.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(m),M.push(Z),Ft.isShareableBySubgraphName.set(e.subgraphName,!0),C[ee].add(Z),(0,Ho.getValueOrDefault)(e.keyFieldNamesByParentTypeName,ot,()=>new Set).add(Z);let ar=(0,JF.getTypeNodeNamedTypeName)(Ft.node.type);if(iX.BASE_SCALARS.has(ar)){Y.add(M.join(lt.LITERAL_PERIOD)),M.pop();return}let vr=e.parentDefinitionDataByTypeName.get(ar);if(!vr)return D.push((0,Gt.unknownTypeInFieldSetErrorMessage)(T,Se,ar)),fr.BREAK;if(vr.kind===fr.Kind.OBJECT_TYPE_DEFINITION){ae=!0,R.push(vr);return}if((0,nX.isKindAbstract)(vr.kind))return D.push((0,Gt.abstractTypeInKeyFieldSetErrorMessage)(T,Se,ar,(0,Ho.kindToNodeType)(vr.kind))),fr.BREAK;Y.add(M.join(lt.LITERAL_PERIOD)),M.pop()}},InlineFragment:{enter(){return D.push(Gt.inlineFragmentInFieldSetErrorMessage),fr.BREAK}},SelectionSet:{enter(){if(!ae){let Le=R[ee],ot=`${Le.name}.${Ne}`;if(Ne===lt.TYPENAME)return D.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],lt.STRING_SCALAR,(0,Ho.kindToNodeType)(fr.Kind.SCALAR_TYPE_DEFINITION))),fr.BREAK;let Z=Le.fieldDataByName.get(Ne);if(!Z)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Ne)),fr.BREAK;let Se=(0,JF.getTypeNodeNamedTypeName)(Z.node.type),Ft=e.parentDefinitionDataByTypeName.get(Se),pr=Ft?Ft.kind:fr.Kind.SCALAR_TYPE_DEFINITION;return D.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],Se,(0,Ho.kindToNodeType)(pr))),fr.BREAK}if(ee+=1,ae=!1,ee<0||ee>=R.length)return D.push((0,Gt.unparsableFieldSetSelectionErrorMessage)(T,Ne)),fr.BREAK;C.push(new Set)},leave(){if(ae){let Ve=R[ee].name,ot=R[ee+1],Z=`${Ve}.${Ne}`;D.push((0,Gt.invalidSelectionSetErrorMessage)(T,[Z],ot.name,(0,Ho.kindToNodeType)(ot.kind))),ae=!1}ee-=1,R.pop(),C.pop()}}}),D.length>0){e.errors.push((0,Gt.invalidDirectiveError)(lt.KEY,i,(0,Ho.numberToOrdinal)(l),D));continue}a.push(q({fieldName:"",selectionSet:m},N?{disableEntityResolver:!0}:{})),u.satisfiedFieldSets.add(m),_e&&u.externalFieldSets.add(m),!N&&(o==null||o.addTargetSubgraphByFieldSet(m,e.subgraphName))}if(a.length>0)return a}function UVe(e){return e?lt.PROVIDES:lt.REQUIRES}function kVe(e,t){return e===lt.QUERY||t===fr.OperationTypeNode.QUERY}function qVe(e,t,r){let n=e.matchAll(iX.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of n){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)r.push((0,Gt.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)r.push((0,Gt.invalidEventSubjectsArgumentErrorMessage)(o))}function xVe(){return new Map([[lt.AUTHENTICATED,Pt.AUTHENTICATED_DEFINITION_DATA],[lt.COMPOSE_DIRECTIVE,Pt.COMPOSE_DIRECTIVE_DEFINITION_DATA],[lt.CONFIGURE_DESCRIPTION,Pt.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[lt.CONFIGURE_CHILD_DESCRIPTIONS,Pt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[lt.CONNECT_FIELD_RESOLVER,Pt.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[lt.COST,Pt.COST_DEFINITION_DATA],[lt.DEPRECATED,Pt.DEPRECATED_DEFINITION_DATA],[lt.EDFS_KAFKA_PUBLISH,Pt.KAFKA_PUBLISH_DEFINITION_DATA],[lt.EDFS_KAFKA_SUBSCRIBE,Pt.KAFKA_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_NATS_PUBLISH,Pt.NATS_PUBLISH_DEFINITION_DATA],[lt.EDFS_NATS_REQUEST,Pt.NATS_REQUEST_DEFINITION_DATA],[lt.EDFS_NATS_SUBSCRIBE,Pt.NATS_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_REDIS_PUBLISH,Pt.REDIS_PUBLISH_DEFINITION_DATA],[lt.EDFS_REDIS_SUBSCRIBE,Pt.REDIS_SUBSCRIBE_DEFINITION_DATA],[lt.EXTENDS,Pt.EXTENDS_DEFINITION_DATA],[lt.EXTERNAL,Pt.EXTERNAL_DEFINITION_DATA],[lt.INACCESSIBLE,Pt.INACCESSIBLE_DEFINITION_DATA],[lt.INTERFACE_OBJECT,Pt.INTERFACE_OBJECT_DEFINITION_DATA],[lt.KEY,Pt.KEY_DEFINITION_DATA],[lt.LINK,Pt.LINK_DEFINITION_DATA],[lt.LIST_SIZE,Pt.LIST_SIZE_DEFINITION_DATA],[lt.ONE_OF,Pt.ONE_OF_DEFINITION_DATA],[lt.OVERRIDE,Pt.OVERRIDE_DEFINITION_DATA],[lt.PROVIDES,Pt.PROVIDES_DEFINITION_DATA],[lt.REQUIRE_FETCH_REASONS,Pt.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[lt.REQUIRES,Pt.REQUIRES_DEFINITION_DATA],[lt.REQUIRES_SCOPES,Pt.REQUIRES_SCOPES_DEFINITION_DATA],[lt.SEMANTIC_NON_NULL,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA],[lt.SHAREABLE,Pt.SHAREABLE_DEFINITION_DATA],[lt.SPECIFIED_BY,Pt.SPECIFIED_BY_DEFINITION_DATA],[lt.SUBSCRIPTION_FILTER,Pt.SUBSCRIPTION_FILTER_DEFINITION_DATA],[lt.TAG,Pt.TAG_DEFINITION_DATA]])}mi.FEDERATED_DIRECTIVE_DATAS=[Pt.AUTHENTICATED_DEFINITION_DATA,Pt.DEPRECATED_DEFINITION_DATA,Pt.INACCESSIBLE_DEFINITION_DATA,Pt.ONE_OF_DEFINITION_DATA,Pt.REQUIRES_SCOPES_DEFINITION_DATA,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA,Pt.TAG_DEFINITION_DATA];function MVe({executableDirectiveDatasByName:e,existingDataByName:t,incomingDataByName:r}){for(let[n,i]of r){let a=t.get(n),o=(0,rX.copyDirectiveDefinitionData)(i);if(!a){if(!i.isComposed){(0,Ho.getValueOrDefault)(e,n,()=>[]).push(o);continue}t.set(n,o),e.delete(n);continue}i.isComposed&&a.minorVersion0?{errors:r,success:!1}:{import:t,success:!0}}function KVe(e){let t=[],r=[];for(let n=0;n0?{errors:r,success:!1}:{imports:t,success:!0}}function $Ve(e){var i;let t=[],r=new Map,n=e.get(lt.LINK);if(!n)return{success:!0,importDataByDirectiveName:r};for(let a of n){if(!a.arguments)continue;let o=[],u=-1,l=-1,m="";for(let h of a.arguments)switch(h.name.value){case lt.URL_LOWER:{let T=jVe(h);if(!T.success)return{errors:[T.error],success:!1};m=T.coreUrl,u=T.majorVersion,l=T.minorVersion;break}case lt.IMPORT:{switch(h.value.kind){case fr.Kind.STRING:{o.push({name:h.value.value,coreUrl:"",majorVersion:-1,minorVersion:-1});break}case fr.Kind.LIST:{let T=KVe(h.value.values);if(!T.success)return T;o=T.imports;break}default:return{errors:[(0,Gt.nonIterableLinkDirectiveImportError)(h.value.kind)],success:!1}}break}}if(!m)return{errors:[Gt.noLinkDirectiveUrlError],success:!1};for(let h of o)h.coreUrl=m,h.majorVersion=u,h.minorVersion=l,r.set((i=h.rename)!=null?i:h.name,h)}return t.length>0?{errors:t,success:!1}:{importDataByDirectiveName:r,success:!0}}});var Rv=O(gd=>{"use strict";d();p();f();Object.defineProperty(gd,"__esModule",{value:!0});gd.DivergentType=void 0;gd.getLeastRestrictiveMergedTypeNode=QVe;gd.getMostRestrictiveMergedTypeNode=YVe;gd.renameNamedTypeName=JVe;var Td=ve(),oX=bi(),GVe=Jo(),aX=kn(),sX=Xf(),Ed;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Ed||(gd.DivergentType=Ed={}));function uX(e,t,r,n,i){t=(0,GVe.getMutableTypeNode)(t,r,i);let a={kind:e.kind},o=Ed.NONE,u=a;for(let l=0;l{"use strict";d();p();f();Object.defineProperty(HF,"__esModule",{value:!0});HF.renameRootTypes=WVe;var zVe=ve(),zF=kn(),HVe=Rv(),il=xr(),Id=An();function WVe(e,t){let r,n=!1,i;(0,zVe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(n&&(o===il.SERVICE_FIELD||o===il.ENTITIES_FIELD))return r.fieldDataByName.delete(o),!1;let u=r.name,l=(0,Id.getOrThrowError)(r.fieldDataByName,o,`${u}.fieldDataByFieldName`),m=t.operationTypes.get(l.namedTypeName);if(m){let h=(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,m,il.OPERATION_TO_DEFAULT);l.namedTypeName!==h&&(0,HVe.renameNamedTypeName)(l,h,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA)},leave(){r=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o)))},leave(){r=void 0,n=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o))},leave(){r=void 0,n=!1,i=void 0}}})}});var cX=O((Sp,Py)=>{"use strict";d();p();f();(function(){var e,t="4.18.1",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,m="__lodash_placeholder__",h=1,N=2,T=4,D=1,R=2,C=1,M=2,Y=4,ee=8,ae=16,Ne=32,_e=64,Le=128,Ve=256,ot=512,Z=30,Se="...",Ft=800,pr=16,ar=1,vr=2,mr=3,tr=1/0,$r=9007199254740991,Jn=17976931348623157e292,fn=NaN,bt=4294967295,Gr=bt-1,oe=bt>>>1,Be=[["ary",Le],["bind",C],["bindKey",M],["curry",ee],["curryRight",ae],["flip",ot],["partial",Ne],["partialRight",_e],["rearg",Ve]],Ie="[object Arguments]",Ce="[object Array]",Qt="[object AsyncFunction]",z="[object Boolean]",ie="[object Date]",Je="[object DOMException]",nt="[object Error]",xt="[object Function]",At="[object GeneratorFunction]",It="[object Map]",Bi="[object Number]",kd="[object Null]",zn="[object Object]",fl="[object Promise]",qd="[object Proxy]",Ba="[object RegExp]",In="[object Set]",Yt="[object String]",pn="[object Symbol]",S_="[object Undefined]",Ti="[object WeakMap]",O_="[object WeakSet]",P="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",k="[object Float64Array]",$="[object Int8Array]",te="[object Int16Array]",ce="[object Int32Array]",gt="[object Uint8Array]",Or="[object Uint8ClampedArray]",hr="[object Uint16Array]",Dr="[object Uint32Array]",dr=/\b__p \+= '';/g,NZ=/\b(__p \+=) '' \+/g,TZ=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_C=/&(?:amp|lt|gt|quot|#39);/g,SC=/[&<>"']/g,EZ=RegExp(_C.source),gZ=RegExp(SC.source),IZ=/<%-([\s\S]+?)%>/g,vZ=/<%([\s\S]+?)%>/g,OC=/<%=([\s\S]+?)%>/g,_Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SZ=/^\w*$/,OZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D_=/[\\^$.*+?()[\]{}|]/g,DZ=RegExp(D_.source),b_=/^\s+/,bZ=/\s/,AZ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,RZ=/\{\n\/\* \[wrapped with (.+)\] \*/,wZ=/,? & /,PZ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DC=/[()=,{}\[\]\/\s]/,FZ=/\\(\\)?/g,LZ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bC=/\w*$/,CZ=/^[-+]0x[0-9a-f]+$/i,BZ=/^0b[01]+$/i,UZ=/^\[object .+?Constructor\]$/,kZ=/^0o[0-7]+$/i,qZ=/^(?:0|[1-9]\d*)$/,xZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lN=/($^)/,MZ=/['\n\r\u2028\u2029\\]/g,dN="\\ud800-\\udfff",jZ="\\u0300-\\u036f",VZ="\\ufe20-\\ufe2f",KZ="\\u20d0-\\u20ff",AC=jZ+VZ+KZ,RC="\\u2700-\\u27bf",wC="a-z\\xdf-\\xf6\\xf8-\\xff",$Z="\\xac\\xb1\\xd7\\xf7",GZ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",QZ="\\u2000-\\u206f",YZ=" \\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",PC="A-Z\\xc0-\\xd6\\xd8-\\xde",FC="\\ufe0e\\ufe0f",LC=$Z+GZ+QZ+YZ,A_="['\u2019]",JZ="["+dN+"]",CC="["+LC+"]",fN="["+AC+"]",BC="\\d+",zZ="["+RC+"]",UC="["+wC+"]",kC="[^"+dN+LC+BC+RC+wC+PC+"]",R_="\\ud83c[\\udffb-\\udfff]",HZ="(?:"+fN+"|"+R_+")",qC="[^"+dN+"]",w_="(?:\\ud83c[\\udde6-\\uddff]){2}",P_="[\\ud800-\\udbff][\\udc00-\\udfff]",xd="["+PC+"]",xC="\\u200d",MC="(?:"+UC+"|"+kC+")",WZ="(?:"+xd+"|"+kC+")",jC="(?:"+A_+"(?:d|ll|m|re|s|t|ve))?",VC="(?:"+A_+"(?:D|LL|M|RE|S|T|VE))?",KC=HZ+"?",$C="["+FC+"]?",XZ="(?:"+xC+"(?:"+[qC,w_,P_].join("|")+")"+$C+KC+")*",ZZ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",GC=$C+KC+XZ,tee="(?:"+[zZ,w_,P_].join("|")+")"+GC,ree="(?:"+[qC+fN+"?",fN,w_,P_,JZ].join("|")+")",nee=RegExp(A_,"g"),iee=RegExp(fN,"g"),F_=RegExp(R_+"(?="+R_+")|"+ree+GC,"g"),aee=RegExp([xd+"?"+UC+"+"+jC+"(?="+[CC,xd,"$"].join("|")+")",WZ+"+"+VC+"(?="+[CC,xd+MC,"$"].join("|")+")",xd+"?"+MC+"+"+jC,xd+"+"+VC,eee,ZZ,BC,tee].join("|"),"g"),oee=RegExp("["+xC+dN+AC+FC+"]"),see=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uee=["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"],cee=-1,Ar={};Ar[b]=Ar[k]=Ar[$]=Ar[te]=Ar[ce]=Ar[gt]=Ar[Or]=Ar[hr]=Ar[Dr]=!0,Ar[Ie]=Ar[Ce]=Ar[P]=Ar[z]=Ar[_]=Ar[ie]=Ar[nt]=Ar[xt]=Ar[It]=Ar[Bi]=Ar[zn]=Ar[Ba]=Ar[In]=Ar[Yt]=Ar[Ti]=!1;var br={};br[Ie]=br[Ce]=br[P]=br[_]=br[z]=br[ie]=br[b]=br[k]=br[$]=br[te]=br[ce]=br[It]=br[Bi]=br[zn]=br[Ba]=br[In]=br[Yt]=br[pn]=br[gt]=br[Or]=br[hr]=br[Dr]=!0,br[nt]=br[xt]=br[Ti]=!1;var lee={\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"},dee={"&":"&","<":"<",">":">",'"':""","'":"'"},fee={"&":"&","<":"<",">":">",""":'"',"'":"'"},pee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mee=parseFloat,hee=parseInt,QC=typeof global=="object"&&global&&global.Object===Object&&global,yee=typeof self=="object"&&self&&self.Object===Object&&self,Pn=QC||yee||Function("return this")(),L_=typeof Sp=="object"&&Sp&&!Sp.nodeType&&Sp,pl=L_&&typeof Py=="object"&&Py&&!Py.nodeType&&Py,YC=pl&&pl.exports===L_,C_=YC&&QC.process,Zi=function(){try{var J=pl&&pl.require&&pl.require("util").types;return J||C_&&C_.binding&&C_.binding("util")}catch(ue){}}(),JC=Zi&&Zi.isArrayBuffer,zC=Zi&&Zi.isDate,HC=Zi&&Zi.isMap,WC=Zi&&Zi.isRegExp,XC=Zi&&Zi.isSet,ZC=Zi&&Zi.isTypedArray;function Ui(J,ue,re){switch(re.length){case 0:return J.call(ue);case 1:return J.call(ue,re[0]);case 2:return J.call(ue,re[0],re[1]);case 3:return J.call(ue,re[0],re[1],re[2])}return J.apply(ue,re)}function Nee(J,ue,re,qe){for(var ht=-1,rr=J==null?0:J.length;++ht-1}function B_(J,ue,re){for(var qe=-1,ht=J==null?0:J.length;++qe-1;);return re}function sB(J,ue){for(var re=J.length;re--&&Md(ue,J[re],0)>-1;);return re}function Dee(J,ue){for(var re=J.length,qe=0;re--;)J[re]===ue&&++qe;return qe}var bee=x_(lee),Aee=x_(dee);function Ree(J){return"\\"+pee[J]}function wee(J,ue){return J==null?e:J[ue]}function jd(J){return oee.test(J)}function Pee(J){return see.test(J)}function Fee(J){for(var ue,re=[];!(ue=J.next()).done;)re.push(ue.value);return re}function K_(J){var ue=-1,re=Array(J.size);return J.forEach(function(qe,ht){re[++ue]=[ht,qe]}),re}function uB(J,ue){return function(re){return J(ue(re))}}function lc(J,ue){for(var re=-1,qe=J.length,ht=0,rr=[];++re-1}function Ete(s,c){var y=this.__data__,v=wN(y,s);return v<0?(++this.size,y.push([s,c])):y[v][1]=c,this}os.prototype.clear=hte,os.prototype.delete=yte,os.prototype.get=Nte,os.prototype.has=Tte,os.prototype.set=Ete;function ss(s){var c=-1,y=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function ra(s,c,y,v,A,L){var x,V=c&h,H=c&N,fe=c&T;if(y&&(x=A?y(s,v,A,L):y(s)),x!==e)return x;if(!Br(s))return s;var pe=Nt(s);if(pe){if(x=_re(s),!V)return Ei(s,x)}else{var ye=Wn(s),be=ye==xt||ye==At;if(Nc(s))return $B(s,V);if(ye==zn||ye==Ie||be&&!A){if(x=H||be?{}:cU(s),!V)return H?fre(s,Bte(x,s)):dre(s,gB(x,s))}else{if(!br[ye])return A?s:{};x=Sre(s,ye,V)}}L||(L=new ka);var ze=L.get(s);if(ze)return ze;L.set(s,x),qU(s)?s.forEach(function(it){x.add(ra(it,c,y,it,s,L))}):UU(s)&&s.forEach(function(it,Lt){x.set(Lt,ra(it,c,y,Lt,s,L))});var ct=fe?H?hS:mS:H?Ii:Fn,St=pe?e:ct(s);return ki(St||s,function(it,Lt){St&&(Lt=it,it=s[Lt]),Yp(x,Lt,ra(it,c,y,Lt,s,L))}),x}function Ute(s){var c=Fn(s);return function(y){return IB(y,s,c)}}function IB(s,c,y){var v=y.length;if(s==null)return!v;for(s=_r(s);v--;){var A=y[v],L=c[A],x=s[A];if(x===e&&!(A in s)||!L(x))return!1}return!0}function vB(s,c,y){if(typeof s!="function")throw new ea(i);return em(function(){s.apply(e,y)},c)}function Jp(s,c,y,v){var A=-1,L=pN,x=!0,V=s.length,H=[],fe=c.length;if(!V)return H;y&&(c=Pr(c,qi(y))),v?(L=B_,x=!1):c.length>=r&&(L=jp,x=!1,c=new yl(c));e:for(;++AA?0:A+y),v=v===e||v>A?A:vt(v),v<0&&(v+=A),v=y>v?0:MU(v);y0&&y(V)?c>1?Kn(V,c-1,y,v,A):cc(A,V):v||(A[A.length]=V)}return A}var H_=HB(),OB=HB(!0);function Io(s,c){return s&&H_(s,c,Fn)}function W_(s,c){return s&&OB(s,c,Fn)}function FN(s,c){return uc(c,function(y){return ds(s[y])})}function Tl(s,c){c=hc(c,s);for(var y=0,v=c.length;s!=null&&yc}function xte(s,c){return s!=null&&or.call(s,c)}function Mte(s,c){return s!=null&&c in _r(s)}function jte(s,c,y){return s>=Hn(c,y)&&s<_n(c,y)}function Z_(s,c,y){for(var v=y?B_:pN,A=s[0].length,L=s.length,x=L,V=re(L),H=1/0,fe=[];x--;){var pe=s[x];x&&c&&(pe=Pr(pe,qi(c))),H=Hn(pe.length,H),V[x]=!y&&(c||A>=120&&pe.length>=120)?new yl(x&&pe):e}pe=s[0];var ye=-1,be=V[0];e:for(;++ye-1;)V!==s&&_N.call(V,H,1),_N.call(s,H,1);return s}function UB(s,c){for(var y=s?c.length:0,v=y-1;y--;){var A=c[y];if(y==v||A!==L){var L=A;ls(A)?_N.call(s,A,1):sS(s,A)}}return s}function iS(s,c){return s+DN(yB()*(c-s+1))}function ere(s,c,y,v){for(var A=-1,L=_n(ON((c-s)/(y||1)),0),x=re(L);L--;)x[v?L:++A]=s,s+=y;return x}function aS(s,c){var y="";if(!s||c<1||c>$r)return y;do c%2&&(y+=s),c=DN(c/2),c&&(s+=s);while(c);return y}function Rt(s,c){return vS(fU(s,c,vi),s+"")}function tre(s){return EB(Wd(s))}function rre(s,c){var y=Wd(s);return KN(y,Nl(c,0,y.length))}function Wp(s,c,y,v){if(!Br(s))return s;c=hc(c,s);for(var A=-1,L=c.length,x=L-1,V=s;V!=null&&++AA?0:A+c),y=y>A?A:y,y<0&&(y+=A),A=c>y?0:y-c>>>0,c>>>=0;for(var L=re(A);++v>>1,x=s[L];x!==null&&!Mi(x)&&(y?x<=c:x=r){var fe=c?null:yre(s);if(fe)return hN(fe);x=!1,A=jp,H=new yl}else H=c?[]:V;e:for(;++v=v?s:na(s,c,y)}var KB=Yee||function(s){return Pn.clearTimeout(s)};function $B(s,c){if(c)return s.slice();var y=s.length,v=dB?dB(y):new s.constructor(y);return s.copy(v),v}function dS(s){var c=new s.constructor(s.byteLength);return new IN(c).set(new IN(s)),c}function sre(s,c){var y=c?dS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.byteLength)}function ure(s){var c=new s.constructor(s.source,bC.exec(s));return c.lastIndex=s.lastIndex,c}function cre(s){return Qp?_r(Qp.call(s)):{}}function GB(s,c){var y=c?dS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.length)}function QB(s,c){if(s!==c){var y=s!==e,v=s===null,A=s===s,L=Mi(s),x=c!==e,V=c===null,H=c===c,fe=Mi(c);if(!V&&!fe&&!L&&s>c||L&&x&&H&&!V&&!fe||v&&x&&H||!y&&H||!A)return 1;if(!v&&!L&&!fe&&s=V)return H;var fe=y[v];return H*(fe=="desc"?-1:1)}}return s.index-c.index}function YB(s,c,y,v){for(var A=-1,L=s.length,x=y.length,V=-1,H=c.length,fe=_n(L-x,0),pe=re(H+fe),ye=!v;++V1?y[A-1]:e,x=A>2?y[2]:e;for(L=s.length>3&&typeof L=="function"?(A--,L):e,x&&ii(y[0],y[1],x)&&(L=A<3?e:L,A=1),c=_r(c);++v-1?A[L?c[x]:x]:e}}function ZB(s){return cs(function(c){var y=c.length,v=y,A=ta.prototype.thru;for(s&&c.reverse();v--;){var L=c[v];if(typeof L!="function")throw new ea(i);if(A&&!x&&jN(L)=="wrapper")var x=new ta([],!0)}for(v=x?v:y;++v1&&Mt.reverse(),pe&&HV))return!1;var fe=L.get(s),pe=L.get(c);if(fe&&pe)return fe==c&&pe==s;var ye=-1,be=!0,ze=y&R?new yl:e;for(L.set(s,c),L.set(c,s);++ye1?"& ":"")+c[v],c=c.join(y>2?", ":" "),s.replace(AZ,`{ +Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:n}})}function Aqe({fieldName:e,subgraphName:t,typeName:r}){return new zi.Warning({message:`The directive "@oneOf" is defined on Input Object "${r}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function Rqe({fieldName:e,typeName:t}){return new zi.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}function wqe(e){return new zi.Warning({message:'A "@composeDirective" directive defines the "name" argument value "@oneOf". The "@oneOf" directive is now considered built-in and will be automatically included in the federated. schema. Consider removing the inclusion of "@oneOf" within any "@composeDirective" directives.',subgraph:{name:e}})}function Pqe({directiveCoords:e,directiveName:t,printedDirective:r}){return new zi.Warning({message:`The definition for the composed directive "@${t}" is not defined as repeatable. However, the directive "@${t}" is declared on "${e}" multiple times with incompatible arguments. The federated graph will only propagate "${r}". Consider updating the directive definition for "${t}" to be repeatable.`,subgraph:{name:""}})}});var Zc=O(ut=>{"use strict";d();p();f();Object.defineProperty(ut,"__esModule",{value:!0});ut.MergeMethod=void 0;ut.newFederatedDirectivesData=Uqe;ut.isNodeExternalOrShareable=kqe;ut.isTypeRequired=qqe;ut.isTypeNodeListType=L4;ut.areDefaultValuesCompatible=C4;ut.compareAndValidateInputDefaultValues=xqe;ut.isTypeNameRootType=Mqe;ut.getRenamedRootTypeName=jqe;ut.childMapToValueArray=Kqe;ut.setLongestDescription=$qe;ut.isParentDataRootType=B4;ut.isInterfaceDefinitionData=Gqe;ut.setParentDataExtensionType=Qqe;ut.upsertDeprecatedDirective=Yqe;ut.upsertTagDirectives=Jqe;ut.propagateAuthDirectives=zqe;ut.propagateFieldAuthDirectives=Hqe;ut.generateDeprecatedDirective=ZP;ut.getNodeCoords=U4;ut.extractUniqueDirectiveNodes=k4;ut.getRouterSchemaDirectiveNodes=sv;ut.getClientFederatedDirectiveNodes=XP;ut.getClientSchemaFieldNodeByFieldData=Wqe;ut.routerSchemaFieldNodeFromData=Xqe;ut.routerSchemaInputValueNodeFromData=q4;ut.routerSchemaNodeFromData=Zqe;ut.propagateDirectiveDefinitionNodeFromData=txe;ut.newInvalidFieldNames=rxe;ut.validateExternalAndShareable=nxe;ut.isTypeValidImplementation=ov;ut.isNodeDataInaccessible=x4;ut.isLeafKind=ixe;ut.getSubscriptionFilterValue=axe;ut.getParentTypeName=oxe;ut.newConditionalFieldData=sxe;ut.getDefinitionDataCoords=uxe;ut.isParentDataCompositeOutputType=cxe;ut.newExternalFieldData=lxe;ut.getInitialFederatedDescription=dxe;ut.areKindsEqual=fxe;ut.isFieldData=uv;ut.isInputObjectDefinitionData=pxe;ut.isInputNodeKind=mxe;ut.isOutputNodeKind=hxe;ut.isInterfaceNode=yxe;ut.isEnumData=M4;ut.sanitizeDefaultValue=Nxe;var Ye=_e(),WP=Xh(),tl=kn(),F4=bi(),$t=xr(),Ms=An(),Fqe=nv(),Lqe=YP(),Cqe=hd(),Bqe=xs();function Uqe(){return{deprecatedReason:"",directivesByName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function kqe(e,t,r){var i;let n={isExternal:r.has($t.EXTERNAL),isShareable:t||r.has($t.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return n;for(let a of e.directives){let o=a.name.value;if(o===$t.EXTERNAL){n.isExternal=!0;continue}o===$t.SHAREABLE&&(n.isShareable=!0)}return n}function qqe(e){return e.kind===Ye.Kind.NON_NULL_TYPE}function L4(e){switch(e.kind){case Ye.Kind.LIST_TYPE:return!0;case Ye.Kind.NON_NULL_TYPE:return L4(e.type);default:return!1}}function C4(e,t){switch(e.kind){case Ye.Kind.LIST_TYPE:return t.kind===Ye.Kind.LIST||t.kind===Ye.Kind.NULL;case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NULL)return!0;switch(e.name.value){case $t.BOOLEAN_SCALAR:return t.kind===Ye.Kind.BOOLEAN;case $t.FLOAT_SCALAR:return t.kind===Ye.Kind.INT||t.kind===Ye.Kind.FLOAT;case $t.INT_SCALAR:return t.kind===Ye.Kind.INT;case $t.STRING_SCALAR:return t.kind===Ye.Kind.STRING;default:return!0}case Ye.Kind.NON_NULL_TYPE:return t.kind===Ye.Kind.NULL?!1:C4(e.type,t)}}function xqe({existingData:e,incomingData:t}){if(!e.defaultValue)return{success:!0};if(!t.defaultValue)return e.includeDefaultValue=!1,{success:!0};let r=(0,Ye.print)(e.defaultValue),n=(0,Ye.print)(t.defaultValue);return r==n?{success:!0}:{error:(0,F4.incompatibleInputValueDefaultValuesError)(`${e.kind===Ye.Kind.ARGUMENT?$t.ARGUMENT:$t.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,n),success:!1}}function Mqe(e,t){return $t.ROOT_TYPE_NAMES.has(e)||t.has(e)}function jqe(e,t){let r=t.get(e);if(!r)return e;switch(r){case Ye.OperationTypeNode.MUTATION:return $t.MUTATION;case Ye.OperationTypeNode.SUBSCRIPTION:return $t.SUBSCRIPTION;default:return $t.QUERY}}function Vqe(e){for(let t of e.argumentDataByName.values()){for(let r of t.directivesByName.values())t.node.directives.push(...r);e.node.arguments.push(t.node)}}function Kqe(e){var r;let t=[];for(let n of e.values()){uv(n)&&Vqe(n);for(let[i,a]of n.directivesByName){if(i===$t.DEPRECATED){let o=a[0];if(!o)continue;if((r=o.arguments)!=null&&r.length){n.node.directives.push(o);continue}n.node.directives.push(Q(q({},o),{arguments:[{kind:Ye.Kind.ARGUMENT,value:{kind:Ye.Kind.STRING,value:Ye.DEFAULT_DEPRECATION_REASON},name:(0,tl.stringToNameNode)($t.REASON)}]}));continue}n.node.directives.push(...a)}t.push(n.node)}return t}function $qe(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:r}of t.configureDescriptionDataBySubgraphName.values())if(!r)return}(!e.description||e.description.value.length0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(t.requiredScopes)]))}function Hqe(e,t){if(!t)return;let r=t.fieldAuthDataByFieldName.get(e.name);r&&(r.originalData.requiresAuthentication&&e.federatedDirectivesData.directivesByName.set($t.AUTHENTICATED,[(0,Ms.generateSimpleDirective)($t.AUTHENTICATED)]),r.originalData.requiredScopes.length>0&&e.federatedDirectivesData.directivesByName.set($t.REQUIRES_SCOPES,[(0,Ms.generateRequiresScopesDirective)(r.originalData.requiredScopes)]))}function ZP(e){return{kind:Ye.Kind.DIRECTIVE,name:(0,tl.stringToNameNode)($t.DEPRECATED),arguments:[{kind:Ye.Kind.ARGUMENT,name:(0,tl.stringToNameNode)($t.REASON),value:{kind:Ye.Kind.STRING,value:e||$t.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function U4(e){switch(e.kind){case Ye.Kind.ARGUMENT:case Ye.Kind.FIELD_DEFINITION:case Ye.Kind.INPUT_VALUE_DEFINITION:case Ye.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}function k4(e){let t=[],r=new Set;for(let n of e){let i=(0,Ye.print)(n);r.has(i)||(r.add(i),t.push(n))}return t}function sv({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){var u;let n=[...e.federatedDirectivesData.tagDirectiveByName.values()];e.federatedDirectivesData.isDeprecated&&n.push(ZP(e.federatedDirectivesData.deprecatedReason));let i=U4(e),a=[],o=[];for(let[l,m]of e.federatedDirectivesData.directivesByName){if(l===$t.SEMANTIC_NON_NULL&&uv(e)){n.push((0,Ms.generateSemanticNonNullDirective)((u=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?u:new Set([0])));continue}let h=t.get(l);if(!h||!h.isComposed&&!Bqe.ROUTER_FEDERATED_DIRECTIVE_NAMES.has(l)||h.isComposed&&!h.isReferenced)continue;if(m.length<2){n.push(...m);continue}let N=k4(m),T=(0,Lqe.validateDirectives)({data:e,directiveCoords:i,directiveDefinitionData:h,directiveNodes:N,parentDefinitionDataByTypeName:r});if(!T.success){a.push(...T.errors);continue}if(N.length>1&&h.isComposed&&!h.isRepeatable){o.push((0,Cqe.invalidRepeatedComposedDirectiveWarning)({directiveCoords:i,directiveName:l,printedDirective:(0,Ye.print)(N[0])})),n.push(N[0]);continue}n.push(...N)}return a.length>0?{errors:a,success:!1}:{nodes:n,success:!0,warnings:o}}function XP(e){var r;let t=[];e.federatedDirectivesData.isDeprecated&&t.push(ZP(e.federatedDirectivesData.deprecatedReason));for(let[n,i]of e.federatedDirectivesData.directivesByName){if(n===$t.SEMANTIC_NON_NULL&&uv(e)){t.push((0,Ms.generateSemanticNonNullDirective)((r=(0,Ms.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?r:new Set([0])));continue}$t.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(i[0])}return t}function Wqe(e){let t=XP(e),r=[];for(let n of e.argumentDataByName.values())x4(n)||r.push(Q(q({},n.node),{directives:XP(n)}));return Q(q({},e.node),{directives:t,arguments:r})}function Xqe({argumentNodes:e,data:t,description:r,federatedDirectiveDataByName:n,parentDefinitionDataByTypeName:i}){t.node.arguments=e,t.node.description=r,t.node.name=(0,tl.stringToNameNode)(t.name),t.node.type=t.type;let a=sv({federatedDirectiveDataByName:n,data:t,parentDefinitionDataByTypeName:i});return a.success?(t.node.directives=a.nodes,{node:t.node,success:!0,warnings:a.warnings}):a}function q4({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name),e.node.type=e.type,e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue);let i=sv({data:e,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function Zqe({data:e,description:t,federatedDirectiveDataByName:r,parentDefinitionDataByTypeName:n}){e.node.description=t,e.node.name=(0,tl.stringToNameNode)(e.name);let i=sv({federatedDirectiveDataByName:r,data:e,parentDefinitionDataByTypeName:n});return i.success?(e.node.directives=i.nodes,{node:e.node,success:!0,warnings:i.warnings}):i}function exe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=[],i=[],a=[],o=[];for(let[u,l]of e.argumentDataByName){let m=(0,Ms.getEntriesNotInHashSet)(e.subgraphNames,l.subgraphNames);if(m.length>0){l.requiredSubgraphNames.size>0&&a.push({inputValueName:u,missingSubgraphs:m,requiredSubgraphs:[...l.requiredSubgraphNames]}),e.optionalArgumentNames.delete(u);continue}let h=q4({data:l,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});if(!h.success){n.push(...h.errors);continue}o.push(h.node),i.push(...h.warnings)}return a.length>0&&n.push((0,F4.invalidRequiredInputValueError)($t.DIRECTIVE_DEFINITION,`@${e.name}`,a)),n.length>0?{errors:n,success:!1}:{nodes:o,success:!0,warnings:i}}function txe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r}){let n=exe({data:e,federatedDirectiveDataByName:t,parentDefinitionDataByTypeName:r});return n.success?(e.node={arguments:n.nodes,kind:Ye.Kind.DIRECTIVE_DEFINITION,locations:(0,tl.setToNameNodeArray)(e.locations),name:(0,tl.stringToNameNode)(e.name),repeatable:e.isRepeatable,description:e.description},{success:!0}):n}function rxe(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function nxe(e,t){let r=e.isShareableBySubgraphName.size,n=new Array,i=0;for(let[a,o]of e.isShareableBySubgraphName){let u=e.externalFieldDataBySubgraphName.get(a);if(u&&!u.isUnconditionallyProvided){n.push(a);continue}o||(i+=1)}switch(i){case 0:r===n.length&&t.subgraphNamesByExternalFieldName.set(e.name,n);return;case 1:if(r===1)return;r-n.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var P4;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(P4||(ut.MergeMethod=P4={}));function ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n}){if(n.kind===Ye.Kind.NON_NULL_TYPE)return t.kind!==Ye.Kind.NON_NULL_TYPE?!1:ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type});if(t.kind===Ye.Kind.NON_NULL_TYPE)return ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n});switch(n.kind){case Ye.Kind.NAMED_TYPE:if(t.kind===Ye.Kind.NAMED_TYPE){let i=n.name.value,a=t.name.value;if(i===a)return!0;let o=r.get(i),u=e.get(i);return!!(u!=null&&u.has(a)||o!=null&&o.has(a))}return!1;default:return t.kind===Ye.Kind.LIST_TYPE?ov({concreteTypeNamesByAbstractTypeName:e,implementationType:t.type,interfaceImplementationTypeNamesByInterfaceTypeName:r,originalType:n.type}):!1}}function x4(e){return e.federatedDirectivesData.directivesByName.has($t.INACCESSIBLE)||e.directivesByName.has($t.INACCESSIBLE)}function ixe(e){return e===Ye.Kind.SCALAR_TYPE_DEFINITION||e===Ye.Kind.ENUM_TYPE_DEFINITION}function axe(e){switch(e.kind){case Ye.Kind.BOOLEAN:return e.value;case Ye.Kind.ENUM:case Ye.Kind.STRING:return e.value;case Ye.Kind.FLOAT:case Ye.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case Ye.Kind.NULL:return null}}function oxe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function sxe(){return{providedBy:[],requiredBy:[]}}function uxe(e,t){switch(e.kind){case Ye.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case Ye.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case Ye.Kind.ARGUMENT:case Ye.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case Ye.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function cxe(e){return e.kind===Ye.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ye.Kind.INTERFACE_TYPE_DEFINITION}function lxe(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function dxe(e){let{value:t,done:r}=e.configureDescriptionDataBySubgraphName.values().next();if(r)return e.description;if(t.propagate)return(0,Fqe.getDescriptionFromString)(t.description)||e.description}function fxe(e,t){return e.kind===t.kind}function uv(e){return e.kind===Ye.Kind.FIELD_DEFINITION}function pxe(e){return e.kind===Ye.Kind.INPUT_OBJECT_TYPE_DEFINITION}function mxe(e){return $t.INPUT_NODE_KINDS.has(e)}function hxe(e){return $t.OUTPUT_NODE_KINDS.has(e)}function yxe(e){return $t.INTERFACE_NODE_KINDS.has(e.kind)}function M4(e){return e.kind===Ye.Kind.ENUM_TYPE_DEFINITION}function Nxe({data:e,namedTypeData:t,node:r}){e.defaultValue&&M4(t)&&(e.defaultValue=(0,Ye.visit)(e.defaultValue,{StringValue:{enter(n){return{kind:Ye.Kind.ENUM,value:n.value}}}}),r&&(r.defaultValue=e.defaultValue))}});var Oy=O(Sy=>{"use strict";d();p();f();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.newDirectiveArgumentData=_xe;Sy.newDirectiveDefinitionData=Sxe;Sy.copyDirectiveDefinitionData=Oxe;var Txe=xr(),j4=_e(),Exe=Zc(),gxe=Jo(),Ixe=kn(),vxe=An();function _xe({configureDescriptionDataBySubgraphName:e,directive:t,defaultValue:r,description:n,directivesByName:i,name:a,namedTypeKind:o,node:u,requiredSubgraphNames:l,subgraphNames:m,typeNode:h}){return{configureDescriptionDataBySubgraphName:e!=null?e:new Map,directivesByName:i!=null?i:new Map,federatedCoords:t,federatedDirectivesData:(0,Exe.newFederatedDirectivesData)(),includeDefaultValue:!!r,kind:j4.Kind.ARGUMENT,name:a,namedTypeKind:o,namedTypeName:(0,gxe.getTypeNodeNamedTypeName)(h),node:u!=null?u:{directives:[],defaultValue:r,description:n,name:(0,Ixe.stringToNameNode)(a),kind:j4.Kind.INPUT_VALUE_DEFINITION,type:h},originalCoords:t,requiredSubgraphNames:l!=null?l:new Set,subgraphNames:m!=null?m:new Set,type:h,defaultValue:r,description:n}}function Sxe({argumentDataByName:e,description:t,isComposed:r,isReferenced:n,isRepeatable:i,locations:a,name:o,node:u,optionalArgumentNames:l,requiredArgumentNames:m,subgraphNames:h}){return{argumentDataByName:e!=null?e:new Map,description:t,executableLocations:a.intersection(Txe.EXECUTABLE_DIRECTIVE_LOCATIONS),isComposed:!!r,isReferenced:!!n,isRepeatable:!!i,locations:a,majorVersion:-1,minorVersion:-1,name:o,optionalArgumentNames:l!=null?l:new Set,node:u,requiredArgumentNames:m!=null?m:new Set,subgraphNames:h!=null?h:new Set}}function Oxe({argumentDataByName:e,description:t,executableLocations:r,isComposed:n,isReferenced:i,isRepeatable:a,locations:o,name:u,node:l,minorVersion:m,majorVersion:h,optionalArgumentNames:N,requiredArgumentNames:T,subgraphNames:D}){return{argumentDataByName:(0,vxe.copyObjectValueMap)(e),description:t?q({},t):void 0,executableLocations:new Set(r),isComposed:n,isReferenced:i,isRepeatable:a,locations:new Set(o),majorVersion:h,minorVersion:m,name:u,node:q({},l),optionalArgumentNames:new Set(N),requiredArgumentNames:new Set(T),subgraphNames:new Set(D)}}});var cv=O(je=>{"use strict";d();p();f();Object.defineProperty(je,"__esModule",{value:!0});je.TAG_DEFINITION_DATA=je.SUBSCRIPTION_FILTER_DEFINITION_DATA=je.SHAREABLE_DEFINITION_DATA=je.SPECIFIED_BY_DEFINITION_DATA=je.SEMANTIC_NON_NULL_DEFINITION_DATA=je.REQUIRES_SCOPES_DEFINITION_DATA=je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=je.REDIS_SUBSCRIBE_DEFINITION_DATA=je.REDIS_PUBLISH_DEFINITION_DATA=je.REQUIRES_DEFINITION_DATA=je.PROVIDES_DEFINITION_DATA=je.LIST_SIZE_DEFINITION_DATA=je.LINK_DEFINITION_DATA=je.KEY_DEFINITION_DATA=je.OVERRIDE_DEFINITION_DATA=je.ONE_OF_DEFINITION_DATA=je.NATS_SUBSCRIBE_DEFINITION_DATA=je.NATS_REQUEST_DEFINITION_DATA=je.NATS_PUBLISH_DEFINITION_DATA=je.KAFKA_SUBSCRIBE_DEFINITION_DATA=je.KAFKA_PUBLISH_DEFINITION_DATA=je.INTERFACE_OBJECT_DEFINITION_DATA=je.INACCESSIBLE_DEFINITION_DATA=je.EXTERNAL_DEFINITION_DATA=je.EXTENDS_DEFINITION_DATA=je.DEPRECATED_DEFINITION_DATA=je.COST_DEFINITION_DATA=je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=je.COMPOSE_DIRECTIVE_DEFINITION_DATA=je.AUTHENTICATED_DEFINITION_DATA=void 0;var pi=kn(),De=_e(),B=xr(),er=Wh(),wr=Zg(),Fe=Oy();je.AUTHENTICATED_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.AUTHENTICATED,node:er.AUTHENTICATED_DEFINITION});je.COMPOSE_DIRECTIVE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Fe.newDirectiveArgumentData)({directive:`@${B.COMPOSE_DIRECTIVE}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.COMPOSE_DIRECTIVE,node:er.COMPOSE_DIRECTIVE_DEFINITION,requiredArgumentNames:new Set([B.NAME])});je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})],[B.DESCRIPTION_OVERRIDE,(0,Fe.newDirectiveArgumentData)({directive:`@${B.CONFIGURE_DESCRIPTION}`,name:B.DESCRIPTION_OVERRIDE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.INPUT_OBJECT_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.SCHEMA_UPPER,B.UNION_UPPER]),name:B.CONFIGURE_DESCRIPTION,node:er.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE,B.DESCRIPTION_OVERRIDE])});je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.PROPAGATE,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.CONFIGURE_CHILD_DESCRIPTIONS}`,name:B.PROPAGATE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)}})]]),locations:new Set([B.ENUM_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.CONFIGURE_CHILD_DESCRIPTIONS,node:er.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([B.PROPAGATE])});je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONTEXT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.CONNECT_FIELD_RESOLVER}`,name:B.CONTEXT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.CONNECT_FIELD_RESOLVER,node:er.CONNECT_FIELD_RESOLVER_DEFINITION,requiredArgumentNames:new Set([B.CONTEXT])});je.COST_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.WEIGHT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.COST}`,name:B.WEIGHT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)}})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.COST,node:er.COST_DEFINITION,requiredArgumentNames:new Set([B.WEIGHT])});je.DEPRECATED_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.REASON,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:De.DEFAULT_DEPRECATION_REASON},directive:`@${B.DEPRECATED}`,name:B.REASON,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})]]),locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER]),name:B.DEPRECATED,node:er.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([B.REASON])});je.EXTENDS_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.EXTENDS,node:er.EXTENDS_DEFINITION});je.EXTERNAL_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.EXTERNAL,node:er.EXTERNAL_DEFINITION});je.INACCESSIBLE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.INACCESSIBLE,node:er.INACCESSIBLE_DEFINITION});je.INTERFACE_OBJECT_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.OBJECT_UPPER]),name:B.INTERFACE_OBJECT,node:er.INTERFACE_OBJECT_DEFINITION});je.KAFKA_PUBLISH_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPIC,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.TOPIC,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_KAFKA_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_PUBLISH,node:er.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPIC])});je.KAFKA_SUBSCRIBE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.TOPICS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.TOPICS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_KAFKA_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_KAFKA_SUBSCRIBE,node:er.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.TOPICS])});je.NATS_PUBLISH_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isComposed:!0,locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_PUBLISH,node:er.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_REQUEST_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_REQUEST}`,name:B.SUBJECT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_NATS_REQUEST}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_REQUEST,node:er.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.SUBJECT])});je.NATS_SUBSCRIBE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SUBJECTS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.SUBJECTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.STREAM_CONFIGURATION,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_NATS_SUBSCRIBE}`,name:B.STREAM_CONFIGURATION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.EDFS_NATS_STREAM_CONFIGURATION)})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_NATS_SUBSCRIBE,node:er.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID,B.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([B.SUBJECTS])});je.ONE_OF_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({locations:new Set([B.INPUT_OBJECT_UPPER]),name:B.ONE_OF,node:er.ONE_OF_DEFINITION});je.OVERRIDE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FROM,(0,Fe.newDirectiveArgumentData)({directive:`@${B.OVERRIDE}`,name:B.FROM,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.OVERRIDE,node:er.OVERRIDE_DEFINITION,requiredArgumentNames:new Set([B.FROM])});je.KEY_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.KEY}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})],[B.RESOLVABLE,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.BOOLEAN,value:!0},directive:`@${B.KEY}`,name:B.RESOLVABLE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR)})]]),isRepeatable:!0,locations:new Set([B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.KEY,node:er.KEY_DEFINITION,optionalArgumentNames:new Set([B.RESOLVABLE]),requiredArgumentNames:new Set([B.FIELDS])});je.LINK_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.AS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.AS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.STRING_SCALAR)})],[B.FOR,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.FOR,namedTypeKind:De.Kind.ENUM_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.LINK_PURPOSE)})],[B.IMPORT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LINK}`,name:B.IMPORT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:(0,pi.stringToNamedTypeNode)(B.LINK_IMPORT)}})]]),isRepeatable:!0,locations:new Set([B.SCHEMA_UPPER]),name:B.LINK,node:er.LINK_DEFINITION,optionalArgumentNames:new Set([B.AS,B.FOR,B.IMPORT]),requiredArgumentNames:new Set([B.URL_LOWER])});je.LIST_SIZE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.ASSUMED_SIZE,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.ASSUMED_SIZE,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)})],[B.SLICING_ARGUMENTS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SLICING_ARGUMENTS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.SIZED_FIELDS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.SIZED_FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}})],[B.REQUIRE_ONE_SLICING_ARGUMENT,(0,Fe.newDirectiveArgumentData)({directive:`@${B.LIST_SIZE}`,name:B.REQUIRE_ONE_SLICING_ARGUMENT,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:(0,pi.stringToNamedTypeNode)(B.BOOLEAN_SCALAR),defaultValue:{kind:De.Kind.BOOLEAN,value:!0}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.LIST_SIZE,node:er.LIST_SIZE_DEFINITION,optionalArgumentNames:new Set([B.ASSUMED_SIZE,B.SLICING_ARGUMENTS,B.SIZED_FIELDS,B.REQUIRE_ONE_SLICING_ARGUMENT])});je.PROVIDES_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.PROVIDES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.PROVIDES,node:er.PROVIDES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REQUIRES_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.FIELDS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.REQUIRES}`,name:B.FIELDS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_FIELDSET_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.REQUIRES,node:er.REQUIRES_DEFINITION,requiredArgumentNames:new Set([B.FIELDS])});je.REDIS_PUBLISH_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNEL,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.CHANNEL,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID},directive:`@${B.EDFS_REDIS_PUBLISH}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_PUBLISH,node:er.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNEL])});je.REDIS_SUBSCRIBE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CHANNELS,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.CHANNELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:wr.REQUIRED_STRING_TYPE_NODE}}})],[B.PROVIDER_ID,(0,Fe.newDirectiveArgumentData)({directive:`@${B.EDFS_REDIS_SUBSCRIBE}`,name:B.PROVIDER_ID,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:De.Kind.STRING,value:B.DEFAULT_EDFS_PROVIDER_ID}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.EDFS_REDIS_SUBSCRIBE,node:er.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([B.PROVIDER_ID]),requiredArgumentNames:new Set([B.CHANNELS])});je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER]),name:B.REQUIRE_FETCH_REASONS,node:er.REQUIRE_FETCH_REASONS_DEFINITION});je.REQUIRES_SCOPES_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.SCOPES,(0,Fe.newDirectiveArgumentData)({directive:`@${B.REQUIRES_SCOPES}`,name:B.SCOPES,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.SCOPE_SCALAR)}}}}}})]]),locations:new Set([B.ENUM_UPPER,B.FIELD_DEFINITION_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER]),name:B.REQUIRES_SCOPES,node:er.REQUIRES_SCOPES_DEFINITION,requiredArgumentNames:new Set([B.SCOPES])});je.SEMANTIC_NON_NULL_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.LEVELS,(0,Fe.newDirectiveArgumentData)({defaultValue:{kind:De.Kind.LIST,values:[{kind:De.Kind.INT,value:"0"}]},directive:`@${B.SEMANTIC_NON_NULL}`,name:B.LEVELS,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:{kind:De.Kind.LIST_TYPE,type:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.INT_SCALAR)}}}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SEMANTIC_NON_NULL,node:er.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([B.LEVELS])});je.SPECIFIED_BY_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.URL_LOWER,(0,Fe.newDirectiveArgumentData)({directive:`@${B.SPECIFIED_BY}`,name:B.URL_LOWER,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),locations:new Set([B.SCALAR_UPPER]),name:B.SPECIFIED_BY,node:er.SPECIFIED_BY_DEFINITION,requiredArgumentNames:new Set([B.URL_LOWER])});je.SHAREABLE_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({isRepeatable:!0,locations:new Set([B.FIELD_DEFINITION_UPPER,B.OBJECT_UPPER]),name:B.SHAREABLE,node:er.SHAREABLE_DEFINITION});je.SUBSCRIPTION_FILTER_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.CONDITION,(0,Fe.newDirectiveArgumentData)({directive:`@${B.SUBSCRIPTION_FILTER}`,name:B.CONDITION,namedTypeKind:De.Kind.INPUT_OBJECT_TYPE_DEFINITION,typeNode:{kind:De.Kind.NON_NULL_TYPE,type:(0,pi.stringToNamedTypeNode)(B.SUBSCRIPTION_FILTER_CONDITION)}})]]),locations:new Set([B.FIELD_DEFINITION_UPPER]),name:B.SUBSCRIPTION_FILTER,node:er.SUBSCRIPTION_FILTER_DEFINITION,requiredArgumentNames:new Set([B.CONDITION])});je.TAG_DEFINITION_DATA=(0,Fe.newDirectiveDefinitionData)({argumentDataByName:new Map([[B.NAME,(0,Fe.newDirectiveArgumentData)({directive:`@${B.TAG}`,name:B.NAME,namedTypeKind:De.Kind.SCALAR_TYPE_DEFINITION,typeNode:wr.REQUIRED_STRING_TYPE_NODE})]]),isRepeatable:!0,locations:new Set([B.ARGUMENT_DEFINITION_UPPER,B.ENUM_UPPER,B.ENUM_VALUE_UPPER,B.FIELD_DEFINITION_UPPER,B.INPUT_FIELD_DEFINITION_UPPER,B.INPUT_OBJECT_UPPER,B.INTERFACE_UPPER,B.OBJECT_UPPER,B.SCALAR_UPPER,B.UNION_UPPER]),name:B.TAG,node:er.TAG_DEFINITION,requiredArgumentNames:new Set([B.NAME])})});var K4=O(V4=>{"use strict";d();p();f();Object.defineProperty(V4,"__esModule",{value:!0})});var G4=O($4=>{"use strict";d();p();f();Object.defineProperty($4,"__esModule",{value:!0})});var Y4=O(Q4=>{"use strict";d();p();f();Object.defineProperty(Q4,"__esModule",{value:!0})});var z4=O(J4=>{"use strict";d();p();f();Object.defineProperty(J4,"__esModule",{value:!0})});var Fa=O((eF,H4)=>{"use strict";d();p();f();var Dy=function(e){return e&&e.Math===Math&&e};H4.exports=Dy(typeof globalThis=="object"&&globalThis)||Dy(typeof window=="object"&&window)||Dy(typeof self=="object"&&self)||Dy(typeof global=="object"&&global)||Dy(typeof eF=="object"&&eF)||function(){return this}()||Function("return this")()});var js=O((STt,W4)=>{"use strict";d();p();f();W4.exports=function(e){try{return!!e()}catch(t){return!0}}});var rl=O((ATt,X4)=>{"use strict";d();p();f();var Dxe=js();X4.exports=!Dxe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var tF=O((FTt,Z4)=>{"use strict";d();p();f();var bxe=js();Z4.exports=!bxe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var yd=O((UTt,e8)=>{"use strict";d();p();f();var Axe=tF(),lv=Function.prototype.call;e8.exports=Axe?lv.bind(lv):function(){return lv.apply(lv,arguments)}});var i8=O(n8=>{"use strict";d();p();f();var t8={}.propertyIsEnumerable,r8=Object.getOwnPropertyDescriptor,Rxe=r8&&!t8.call({1:2},1);n8.f=Rxe?function(t){var r=r8(this,t);return!!r&&r.enumerable}:t8});var rF=O(($Tt,a8)=>{"use strict";d();p();f();a8.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Hi=O((JTt,u8)=>{"use strict";d();p();f();var o8=tF(),s8=Function.prototype,nF=s8.call,wxe=o8&&s8.bind.bind(nF,nF);u8.exports=o8?wxe:function(e){return function(){return nF.apply(e,arguments)}}});var d8=O((XTt,l8)=>{"use strict";d();p();f();var c8=Hi(),Pxe=c8({}.toString),Fxe=c8("".slice);l8.exports=function(e){return Fxe(Pxe(e),8,-1)}});var p8=O((rEt,f8)=>{"use strict";d();p();f();var Lxe=Hi(),Cxe=js(),Bxe=d8(),iF=Object,Uxe=Lxe("".split);f8.exports=Cxe(function(){return!iF("z").propertyIsEnumerable(0)})?function(e){return Bxe(e)==="String"?Uxe(e,""):iF(e)}:iF});var aF=O((oEt,m8)=>{"use strict";d();p();f();m8.exports=function(e){return e==null}});var oF=O((lEt,h8)=>{"use strict";d();p();f();var kxe=aF(),qxe=TypeError;h8.exports=function(e){if(kxe(e))throw new qxe("Can't call method on "+e);return e}});var dv=O((mEt,y8)=>{"use strict";d();p();f();var xxe=p8(),Mxe=oF();y8.exports=function(e){return xxe(Mxe(e))}});var lo=O((TEt,N8)=>{"use strict";d();p();f();var sF=typeof document=="object"&&document.all;N8.exports=typeof sF=="undefined"&&sF!==void 0?function(e){return typeof e=="function"||e===sF}:function(e){return typeof e=="function"}});var gp=O((vEt,T8)=>{"use strict";d();p();f();var jxe=lo();T8.exports=function(e){return typeof e=="object"?e!==null:jxe(e)}});var fv=O((DEt,E8)=>{"use strict";d();p();f();var uF=Fa(),Vxe=lo(),Kxe=function(e){return Vxe(e)?e:void 0};E8.exports=function(e,t){return arguments.length<2?Kxe(uF[e]):uF[e]&&uF[e][t]}});var I8=O((wEt,g8)=>{"use strict";d();p();f();var $xe=Hi();g8.exports=$xe({}.isPrototypeOf)});var O8=O((CEt,S8)=>{"use strict";d();p();f();var Gxe=Fa(),v8=Gxe.navigator,_8=v8&&v8.userAgent;S8.exports=_8?String(_8):""});var F8=O((qEt,P8)=>{"use strict";d();p();f();var w8=Fa(),cF=O8(),D8=w8.process,b8=w8.Deno,A8=D8&&D8.versions||b8&&b8.version,R8=A8&&A8.v8,fo,pv;R8&&(fo=R8.split("."),pv=fo[0]>0&&fo[0]<4?1:+(fo[0]+fo[1]));!pv&&cF&&(fo=cF.match(/Edge\/(\d+)/),(!fo||fo[1]>=74)&&(fo=cF.match(/Chrome\/(\d+)/),fo&&(pv=+fo[1])));P8.exports=pv});var lF=O((VEt,C8)=>{"use strict";d();p();f();var L8=F8(),Qxe=js(),Yxe=Fa(),Jxe=Yxe.String;C8.exports=!!Object.getOwnPropertySymbols&&!Qxe(function(){var e=Symbol("symbol detection");return!Jxe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&L8&&L8<41})});var dF=O((QEt,B8)=>{"use strict";d();p();f();var zxe=lF();B8.exports=zxe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fF=O((HEt,U8)=>{"use strict";d();p();f();var Hxe=fv(),Wxe=lo(),Xxe=I8(),Zxe=dF(),eMe=Object;U8.exports=Zxe?function(e){return typeof e=="symbol"}:function(e){var t=Hxe("Symbol");return Wxe(t)&&Xxe(t.prototype,eMe(e))}});var q8=O((egt,k8)=>{"use strict";d();p();f();var tMe=String;k8.exports=function(e){try{return tMe(e)}catch(t){return"Object"}}});var mv=O((igt,x8)=>{"use strict";d();p();f();var rMe=lo(),nMe=q8(),iMe=TypeError;x8.exports=function(e){if(rMe(e))return e;throw new iMe(nMe(e)+" is not a function")}});var pF=O((ugt,M8)=>{"use strict";d();p();f();var aMe=mv(),oMe=aF();M8.exports=function(e,t){var r=e[t];return oMe(r)?void 0:aMe(r)}});var V8=O((fgt,j8)=>{"use strict";d();p();f();var mF=yd(),hF=lo(),yF=gp(),sMe=TypeError;j8.exports=function(e,t){var r,n;if(t==="string"&&hF(r=e.toString)&&!yF(n=mF(r,e))||hF(r=e.valueOf)&&!yF(n=mF(r,e))||t!=="string"&&hF(r=e.toString)&&!yF(n=mF(r,e)))return n;throw new sMe("Can't convert object to primitive value")}});var $8=O((ygt,K8)=>{"use strict";d();p();f();K8.exports=!1});var hv=O((ggt,Q8)=>{"use strict";d();p();f();var G8=Fa(),uMe=Object.defineProperty;Q8.exports=function(e,t){try{uMe(G8,e,{value:t,configurable:!0,writable:!0})}catch(r){G8[e]=t}return t}});var yv=O((Sgt,z8)=>{"use strict";d();p();f();var cMe=$8(),lMe=Fa(),dMe=hv(),Y8="__core-js_shared__",J8=z8.exports=lMe[Y8]||dMe(Y8,{});(J8.versions||(J8.versions=[])).push({version:"3.41.0",mode:cMe?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var NF=O((Agt,W8)=>{"use strict";d();p();f();var H8=yv();W8.exports=function(e,t){return H8[e]||(H8[e]=t||{})}});var Z8=O((Fgt,X8)=>{"use strict";d();p();f();var fMe=oF(),pMe=Object;X8.exports=function(e){return pMe(fMe(e))}});var nl=O((Ugt,e9)=>{"use strict";d();p();f();var mMe=Hi(),hMe=Z8(),yMe=mMe({}.hasOwnProperty);e9.exports=Object.hasOwn||function(t,r){return yMe(hMe(t),r)}});var TF=O((Mgt,t9)=>{"use strict";d();p();f();var NMe=Hi(),TMe=0,EMe=Math.random(),gMe=NMe(1 .toString);t9.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+gMe(++TMe+EMe,36)}});var i9=O(($gt,n9)=>{"use strict";d();p();f();var IMe=Fa(),vMe=NF(),r9=nl(),_Me=TF(),SMe=lF(),OMe=dF(),Ip=IMe.Symbol,EF=vMe("wks"),DMe=OMe?Ip.for||Ip:Ip&&Ip.withoutSetter||_Me;n9.exports=function(e){return r9(EF,e)||(EF[e]=SMe&&r9(Ip,e)?Ip[e]:DMe("Symbol."+e)),EF[e]}});var u9=O((Jgt,s9)=>{"use strict";d();p();f();var bMe=yd(),a9=gp(),o9=fF(),AMe=pF(),RMe=V8(),wMe=i9(),PMe=TypeError,FMe=wMe("toPrimitive");s9.exports=function(e,t){if(!a9(e)||o9(e))return e;var r=AMe(e,FMe),n;if(r){if(t===void 0&&(t="default"),n=bMe(r,e,t),!a9(n)||o9(n))return n;throw new PMe("Can't convert object to primitive value")}return t===void 0&&(t="number"),RMe(e,t)}});var gF=O((Xgt,c9)=>{"use strict";d();p();f();var LMe=u9(),CMe=fF();c9.exports=function(e){var t=LMe(e,"string");return CMe(t)?t:t+""}});var f9=O((rIt,d9)=>{"use strict";d();p();f();var BMe=Fa(),l9=gp(),IF=BMe.document,UMe=l9(IF)&&l9(IF.createElement);d9.exports=function(e){return UMe?IF.createElement(e):{}}});var vF=O((oIt,p9)=>{"use strict";d();p();f();var kMe=rl(),qMe=js(),xMe=f9();p9.exports=!kMe&&!qMe(function(){return Object.defineProperty(xMe("div"),"a",{get:function(){return 7}}).a!==7})});var _F=O(h9=>{"use strict";d();p();f();var MMe=rl(),jMe=yd(),VMe=i8(),KMe=rF(),$Me=dv(),GMe=gF(),QMe=nl(),YMe=vF(),m9=Object.getOwnPropertyDescriptor;h9.f=MMe?m9:function(t,r){if(t=$Me(t),r=GMe(r),YMe)try{return m9(t,r)}catch(n){}if(QMe(t,r))return KMe(!jMe(VMe.f,t,r),t[r])}});var N9=O((mIt,y9)=>{"use strict";d();p();f();var JMe=rl(),zMe=js();y9.exports=JMe&&zMe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var by=O((TIt,T9)=>{"use strict";d();p();f();var HMe=gp(),WMe=String,XMe=TypeError;T9.exports=function(e){if(HMe(e))return e;throw new XMe(WMe(e)+" is not an object")}});var Tv=O(g9=>{"use strict";d();p();f();var ZMe=rl(),e1e=vF(),t1e=N9(),Nv=by(),E9=gF(),r1e=TypeError,SF=Object.defineProperty,n1e=Object.getOwnPropertyDescriptor,OF="enumerable",DF="configurable",bF="writable";g9.f=ZMe?t1e?function(t,r,n){if(Nv(t),r=E9(r),Nv(n),typeof t=="function"&&r==="prototype"&&"value"in n&&bF in n&&!n[bF]){var i=n1e(t,r);i&&i[bF]&&(t[r]=n.value,n={configurable:DF in n?n[DF]:i[DF],enumerable:OF in n?n[OF]:i[OF],writable:!1})}return SF(t,r,n)}:SF:function(t,r,n){if(Nv(t),r=E9(r),Nv(n),e1e)try{return SF(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new r1e("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var AF=O((DIt,I9)=>{"use strict";d();p();f();var i1e=rl(),a1e=Tv(),o1e=rF();I9.exports=i1e?function(e,t,r){return a1e.f(e,t,o1e(1,r))}:function(e,t,r){return e[t]=r,e}});var S9=O((wIt,_9)=>{"use strict";d();p();f();var RF=rl(),s1e=nl(),v9=Function.prototype,u1e=RF&&Object.getOwnPropertyDescriptor,wF=s1e(v9,"name"),c1e=wF&&function(){}.name==="something",l1e=wF&&(!RF||RF&&u1e(v9,"name").configurable);_9.exports={EXISTS:wF,PROPER:c1e,CONFIGURABLE:l1e}});var D9=O((CIt,O9)=>{"use strict";d();p();f();var d1e=Hi(),f1e=lo(),PF=yv(),p1e=d1e(Function.toString);f1e(PF.inspectSource)||(PF.inspectSource=function(e){return p1e(e)});O9.exports=PF.inspectSource});var R9=O((qIt,A9)=>{"use strict";d();p();f();var m1e=Fa(),h1e=lo(),b9=m1e.WeakMap;A9.exports=h1e(b9)&&/native code/.test(String(b9))});var F9=O((VIt,P9)=>{"use strict";d();p();f();var y1e=NF(),N1e=TF(),w9=y1e("keys");P9.exports=function(e){return w9[e]||(w9[e]=N1e(e))}});var FF=O((QIt,L9)=>{"use strict";d();p();f();L9.exports={}});var k9=O((HIt,U9)=>{"use strict";d();p();f();var T1e=R9(),B9=Fa(),E1e=gp(),g1e=AF(),LF=nl(),CF=yv(),I1e=F9(),v1e=FF(),C9="Object already initialized",BF=B9.TypeError,_1e=B9.WeakMap,Ev,Ay,gv,S1e=function(e){return gv(e)?Ay(e):Ev(e,{})},O1e=function(e){return function(t){var r;if(!E1e(t)||(r=Ay(t)).type!==e)throw new BF("Incompatible receiver, "+e+" required");return r}};T1e||CF.state?(po=CF.state||(CF.state=new _1e),po.get=po.get,po.has=po.has,po.set=po.set,Ev=function(e,t){if(po.has(e))throw new BF(C9);return t.facade=e,po.set(e,t),t},Ay=function(e){return po.get(e)||{}},gv=function(e){return po.has(e)}):(Nd=I1e("state"),v1e[Nd]=!0,Ev=function(e,t){if(LF(e,Nd))throw new BF(C9);return t.facade=e,g1e(e,Nd,t),t},Ay=function(e){return LF(e,Nd)?e[Nd]:{}},gv=function(e){return LF(e,Nd)});var po,Nd;U9.exports={set:Ev,get:Ay,has:gv,enforce:S1e,getterFor:O1e}});var j9=O((evt,M9)=>{"use strict";d();p();f();var kF=Hi(),D1e=js(),b1e=lo(),Iv=nl(),UF=rl(),A1e=S9().CONFIGURABLE,R1e=D9(),x9=k9(),w1e=x9.enforce,P1e=x9.get,q9=String,vv=Object.defineProperty,F1e=kF("".slice),L1e=kF("".replace),C1e=kF([].join),B1e=UF&&!D1e(function(){return vv(function(){},"length",{value:8}).length!==8}),U1e=String(String).split("String"),k1e=M9.exports=function(e,t,r){F1e(q9(t),0,7)==="Symbol("&&(t="["+L1e(q9(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Iv(e,"name")||A1e&&e.name!==t)&&(UF?vv(e,"name",{value:t,configurable:!0}):e.name=t),B1e&&r&&Iv(r,"arity")&&e.length!==r.arity&&vv(e,"length",{value:r.arity});try{r&&Iv(r,"constructor")&&r.constructor?UF&&vv(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=w1e(e);return Iv(n,"source")||(n.source=C1e(U1e,typeof t=="string"?t:"")),e};Function.prototype.toString=k1e(function(){return b1e(this)&&P1e(this).source||R1e(this)},"toString")});var K9=O((ivt,V9)=>{"use strict";d();p();f();var q1e=lo(),x1e=Tv(),M1e=j9(),j1e=hv();V9.exports=function(e,t,r,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:t;if(q1e(r)&&M1e(r,a,n),n.global)i?e[t]=r:j1e(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=r:x1e.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}});var G9=O((uvt,$9)=>{"use strict";d();p();f();var V1e=Math.ceil,K1e=Math.floor;$9.exports=Math.trunc||function(t){var r=+t;return(r>0?K1e:V1e)(r)}});var _v=O((fvt,Q9)=>{"use strict";d();p();f();var $1e=G9();Q9.exports=function(e){var t=+e;return t!==t||t===0?0:$1e(t)}});var J9=O((yvt,Y9)=>{"use strict";d();p();f();var G1e=_v(),Q1e=Math.max,Y1e=Math.min;Y9.exports=function(e,t){var r=G1e(e);return r<0?Q1e(r+t,0):Y1e(r,t)}});var H9=O((gvt,z9)=>{"use strict";d();p();f();var J1e=_v(),z1e=Math.min;z9.exports=function(e){var t=J1e(e);return t>0?z1e(t,9007199254740991):0}});var X9=O((Svt,W9)=>{"use strict";d();p();f();var H1e=H9();W9.exports=function(e){return H1e(e.length)}});var t5=O((Avt,e5)=>{"use strict";d();p();f();var W1e=dv(),X1e=J9(),Z1e=X9(),Z9=function(e){return function(t,r,n){var i=W1e(t),a=Z1e(i);if(a===0)return!e&&-1;var o=X1e(n,a),u;if(e&&r!==r){for(;a>o;)if(u=i[o++],u!==u)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===r)return e||o||0;return!e&&-1}};e5.exports={includes:Z9(!0),indexOf:Z9(!1)}});var i5=O((Fvt,n5)=>{"use strict";d();p();f();var eje=Hi(),qF=nl(),tje=dv(),rje=t5().indexOf,nje=FF(),r5=eje([].push);n5.exports=function(e,t){var r=tje(e),n=0,i=[],a;for(a in r)!qF(nje,a)&&qF(r,a)&&r5(i,a);for(;t.length>n;)qF(r,a=t[n++])&&(~rje(i,a)||r5(i,a));return i}});var o5=O((Uvt,a5)=>{"use strict";d();p();f();a5.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var u5=O(s5=>{"use strict";d();p();f();var ije=i5(),aje=o5(),oje=aje.concat("length","prototype");s5.f=Object.getOwnPropertyNames||function(t){return ije(t,oje)}});var l5=O(c5=>{"use strict";d();p();f();c5.f=Object.getOwnPropertySymbols});var f5=O((Jvt,d5)=>{"use strict";d();p();f();var sje=fv(),uje=Hi(),cje=u5(),lje=l5(),dje=by(),fje=uje([].concat);d5.exports=sje("Reflect","ownKeys")||function(t){var r=cje.f(dje(t)),n=lje.f;return n?fje(r,n(t)):r}});var h5=O((Xvt,m5)=>{"use strict";d();p();f();var p5=nl(),pje=f5(),mje=_F(),hje=Tv();m5.exports=function(e,t,r){for(var n=pje(t),i=hje.f,a=mje.f,o=0;o{"use strict";d();p();f();var yje=js(),Nje=lo(),Tje=/#|\.prototype\./,Ry=function(e,t){var r=gje[Eje(e)];return r===vje?!0:r===Ije?!1:Nje(t)?yje(t):!!t},Eje=Ry.normalize=function(e){return String(e).replace(Tje,".").toLowerCase()},gje=Ry.data={},Ije=Ry.NATIVE="N",vje=Ry.POLYFILL="P";y5.exports=Ry});var xF=O((o_t,T5)=>{"use strict";d();p();f();var Sv=Fa(),_je=_F().f,Sje=AF(),Oje=K9(),Dje=hv(),bje=h5(),Aje=N5();T5.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,a,o,u,l,m,h;if(n?o=Sv:i?o=Sv[r]||Dje(r,{}):o=Sv[r]&&Sv[r].prototype,o)for(u in t){if(m=t[u],e.dontCallGetSet?(h=_je(o,u),l=h&&h.value):l=o[u],a=Aje(n?u:r+(i?".":"#")+u,e.forced),!a&&l!==void 0){if(typeof m==typeof l)continue;bje(m,l)}(e.sham||l&&l.sham)&&Sje(m,"sham",!0),Oje(o,u,m,e)}}});var wy=O((l_t,E5)=>{"use strict";d();p();f();var MF=Hi(),Ov=Set.prototype;E5.exports={Set,add:MF(Ov.add),has:MF(Ov.has),remove:MF(Ov.delete),proto:Ov}});var jF=O((m_t,g5)=>{"use strict";d();p();f();var Rje=wy().has;g5.exports=function(e){return Rje(e),e}});var v5=O((T_t,I5)=>{"use strict";d();p();f();var wje=Hi(),Pje=mv();I5.exports=function(e,t,r){try{return wje(Pje(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var VF=O((v_t,_5)=>{"use strict";d();p();f();var Fje=v5(),Lje=wy();_5.exports=Fje(Lje.proto,"size","get")||function(e){return e.size}});var KF=O((D_t,S5)=>{"use strict";d();p();f();var Cje=yd();S5.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,a,o;!(a=Cje(i,n)).done;)if(o=t(a.value),o!==void 0)return o}});var w5=O((w_t,R5)=>{"use strict";d();p();f();var O5=Hi(),Bje=KF(),D5=wy(),Uje=D5.Set,b5=D5.proto,kje=O5(b5.forEach),A5=O5(b5.keys),qje=A5(new Uje).next;R5.exports=function(e,t,r){return r?Bje({iterator:A5(e),next:qje},t):kje(e,t)}});var F5=O((C_t,P5)=>{"use strict";d();p();f();P5.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var $F=O((q_t,q5)=>{"use strict";d();p();f();var L5=mv(),U5=by(),C5=yd(),xje=_v(),Mje=F5(),B5="Invalid size",jje=RangeError,Vje=TypeError,Kje=Math.max,k5=function(e,t){this.set=e,this.size=Kje(t,0),this.has=L5(e.has),this.keys=L5(e.keys)};k5.prototype={getIterator:function(){return Mje(U5(C5(this.keys,this.set)))},includes:function(e){return C5(this.has,this.set,e)}};q5.exports=function(e){U5(e);var t=+e.size;if(t!==t)throw new Vje(B5);var r=xje(t);if(r<0)throw new jje(B5);return new k5(e,r)}});var M5=O((V_t,x5)=>{"use strict";d();p();f();var $je=jF(),Gje=VF(),Qje=w5(),Yje=$F();x5.exports=function(t){var r=$je(this),n=Yje(t);return Gje(r)>n.size?!1:Qje(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var GF=O((Q_t,K5)=>{"use strict";d();p();f();var Jje=fv(),j5=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},V5=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};K5.exports=function(e,t){var r=Jje("Set");try{new r()[e](j5(0));try{return new r()[e](j5(-1)),!1}catch(i){if(!t)return!0;try{return new r()[e](V5(-1/0)),!1}catch(a){var n=new r;return n.add(1),n.add(2),t(n[e](V5(1/0)))}}}catch(i){return!1}}});var $5=O(()=>{"use strict";d();p();f();var zje=xF(),Hje=M5(),Wje=GF(),Xje=!Wje("isSubsetOf",function(e){return e});zje({target:"Set",proto:!0,real:!0,forced:Xje},{isSubsetOf:Hje})});var G5=O(()=>{"use strict";d();p();f();$5()});var J5=O((oSt,Y5)=>{"use strict";d();p();f();var Zje=yd(),Q5=by(),eVe=pF();Y5.exports=function(e,t,r){var n,i;Q5(e);try{if(n=eVe(e,"return"),!n){if(t==="throw")throw r;return r}n=Zje(n,e)}catch(a){i=!0,n=a}if(t==="throw")throw r;if(i)throw n;return Q5(n),r}});var H5=O((lSt,z5)=>{"use strict";d();p();f();var tVe=jF(),rVe=wy().has,nVe=VF(),iVe=$F(),aVe=KF(),oVe=J5();z5.exports=function(t){var r=tVe(this),n=iVe(t);if(nVe(r){"use strict";d();p();f();var sVe=xF(),uVe=H5(),cVe=GF(),lVe=!cVe("isSupersetOf",function(e){return!e});sVe({target:"Set",proto:!0,real:!0,forced:lVe},{isSupersetOf:uVe})});var X5=O(()=>{"use strict";d();p();f();W5()});var vp=O(Zr=>{"use strict";d();p();f();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.subtractSet=fVe;Zr.mapToArrayOfValues=pVe;Zr.kindToConvertedTypeString=mVe;Zr.fieldDatasToSimpleFieldDatas=hVe;Zr.isNodeLeaf=yVe;Zr.newEntityInterfaceFederationData=NVe;Zr.upsertEntityInterfaceFederationData=TVe;Zr.upsertEntityData=gVe;Zr.updateEntityData=Z5;Zr.newFieldAuthorizationData=IVe;Zr.newAuthorizationData=vVe;Zr.addScopes=QF;Zr.mergeRequiredScopesByAND=Av;Zr.mergeRequiredScopesByOR=YF;Zr.upsertFieldAuthorizationData=eX;Zr.upsertAuthorizationData=OVe;Zr.upsertAuthorizationConfiguration=DVe;Zr.isObjectNodeKind=bVe;Zr.isCompositeOutputNodeKind=AVe;Zr.isObjectDefinitionData=RVe;var gr=_e(),Li=xr(),Dv=An(),bv=zo();G5();X5();var dVe=xs();function fVe(e,t){for(let r of e)t.delete(r)}function pVe(e){let t=[];for(let r of e.values())t.push(r);return t}function mVe(e){switch(e){case gr.Kind.BOOLEAN:return Li.BOOLEAN_SCALAR;case gr.Kind.ENUM:case gr.Kind.ENUM_TYPE_DEFINITION:case gr.Kind.ENUM_TYPE_EXTENSION:return Li.ENUM;case gr.Kind.ENUM_VALUE_DEFINITION:return Li.ENUM_VALUE;case gr.Kind.FIELD_DEFINITION:return Li.FIELD;case gr.Kind.FLOAT:return Li.FLOAT_SCALAR;case gr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case gr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Li.INPUT_OBJECT;case gr.Kind.INPUT_VALUE_DEFINITION:return Li.INPUT_VALUE;case gr.Kind.INT:return Li.INT_SCALAR;case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_EXTENSION:return Li.INTERFACE;case gr.Kind.NULL:return Li.NULL;case gr.Kind.OBJECT:case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.OBJECT_TYPE_EXTENSION:return Li.OBJECT;case gr.Kind.STRING:return Li.STRING_SCALAR;case gr.Kind.SCALAR_TYPE_DEFINITION:case gr.Kind.SCALAR_TYPE_EXTENSION:return Li.SCALAR;case gr.Kind.UNION_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_EXTENSION:return Li.UNION;default:return e}}function hVe(e){let t=[];for(let{name:r,namedTypeName:n}of e)t.push({name:r,namedTypeName:n});return t}function yVe(e){if(!e)return!0;switch(e){case gr.Kind.OBJECT_TYPE_DEFINITION:case gr.Kind.INTERFACE_TYPE_DEFINITION:case gr.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function NVe(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function TVe(e,t,r){(0,Dv.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(r,t),e.fieldDatasBySubgraphName.set(r,t.fieldDatas),(0,Dv.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,Dv.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(r)}function EVe({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:r}){let n=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:u}]of e)u||i.set(a,o);return{keyFieldSetDatasBySubgraphName:n,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:r}}function gVe({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}){let i=e.get(n);i?Z5({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:r}):e.set(n,EVe({keyFieldSetDataByFieldSet:t,subgraphName:r,typeName:n}))}function Z5({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:r}){e.subgraphNames.add(r);let n=e.keyFieldSetDatasBySubgraphName.get(r);if(!n){e.keyFieldSetDatasBySubgraphName.set(r,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=n.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}n.set(i,a)}}function IVe(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function vVe(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function QF(e,t){for(let r=e.length-1;r>-1;r--){if(e[r].isSubsetOf(t))return;e[r].isSupersetOf(t)&&e.splice(r,1)}e.push(t)}function Av(e,t){if(e.length<1||t.length<1){for(let n of t)e.push(new Set(n));return e}let r=[];for(let n of t)for(let i of e){let a=(0,Dv.addSets)(n,i);QF(r,a)}return r}function YF(e,t){for(let r of t)QF(e,r);return e.length<=bv.MAX_OR_SCOPES}function eX(e,t){var i,a;let r=t.fieldName,n=e.get(r);return n?((i=n.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=n.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!YF(n.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||n.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>bv.MAX_OR_SCOPES||n.originalData.requiredScopes.length*t.originalData.requiredScopes.length>bv.MAX_OR_SCOPES?!1:(n.inheritedData.requiredScopes=Av(n.inheritedData.requiredScopes,t.inheritedData.requiredScopes),n.originalData.requiredScopes=Av(n.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(r,tX(t)),!0)}function _Ve(e){let t=new Map;for(let[r,n]of e)t.set(r,tX(n));return t}function tX(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function SVe(e){return{fieldAuthDataByFieldName:_Ve(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function OVe(e,t,r){let n=e.get(t.typeName);if(!n){e.set(t.typeName,SVe(t));return}n.requiresAuthentication||(n.requiresAuthentication=t.requiresAuthentication),!YF(n.requiredScopesByOR,t.requiredScopes)||n.requiredScopes.length*t.requiredScopes.length>bv.MAX_OR_SCOPES?r.add(t.typeName):n.requiredScopes=Av(n.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)eX(n.fieldAuthDataByFieldName,a)||r.add(`${t.typeName}.${i}`)}function DVe(e,t){let r=t.typeName;for(let[n,i]of t.fieldAuthDataByFieldName){let a=`${r}.${n}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(u=>[...u]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(u=>[...u])):e.set(a,{argumentNames:[],typeName:r,fieldName:n,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(u=>[...u]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(u=>[...u])})}}function bVe(e){return e===gr.Kind.OBJECT_TYPE_DEFINITION||e===gr.Kind.OBJECT_TYPE_EXTENSION}function AVe(e){return dVe.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function RVe(e){return e?e.kind===gr.Kind.OBJECT_TYPE_DEFINITION:!1}});var _p=O(mi=>{"use strict";d();p();f();Object.defineProperty(mi,"__esModule",{value:!0});mi.FEDERATED_DIRECTIVE_DATAS=void 0;mi.newFieldSetData=PVe;mi.extractFieldSetValue=FVe;mi.getNormalizedFieldSet=LVe;mi.getInitialFieldCoordsPath=CVe;mi.validateKeyFieldSets=BVe;mi.getConditionalFieldSetDirectiveName=UVe;mi.isNodeQuery=kVe;mi.validateArgumentTemplateReferences=qVe;mi.initializeDirectiveDefinitionDatas=xVe;mi.upsertFederatedDirectiveData=MVe;mi.extractLinkArgs=$Ve;var mr=_e(),nX=kn(),Gt=bi(),iX=zo(),JF=Jo(),Pt=cv(),lt=xr(),Ho=An(),wVe=xs(),rX=Oy();function PVe(){return{provides:new Map,requires:new Map}}function FVe(e,t,r){if(!r||r.length>1)return;let n=r[0].arguments;if(!n||n.length!==1)return;let i=n[0];i.name.value!==lt.FIELDS||i.value.kind!==mr.Kind.STRING||t.set(e,i.value.value)}function LVe(e){return(0,mr.print)((0,nX.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function CVe(e,t){return e?[t]:[]}function BVe(e,t,r){let n=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=n?void 0:e.internalGraph.addEntityDataNode(t.name),u=e.internalGraph.addOrUpdateNode(t.name),l=0;for(let[m,{documentNode:h,isUnresolvable:N,rawFieldSet:T}]of r){n&&(n.resolvable||(n.resolvable=!N)),l+=1;let D=[],R=[t],C=[],M=[],G=new Set,ee=-1,ae=!0,Ne="",Ie=!1;if((0,mr.visit)(h,{Argument:{enter(Le){return D.push((0,Gt.unexpectedArgumentErrorMessage)(T,`${R[ee].name}.${Ne}`,Le.name.value)),mr.BREAK}},Field:{enter(Le){let Ve=R[ee],ot=Ve.name;if(ae){let yr=`${ot}.${Ne}`,tr=Ve.fieldDataByName.get(Ne);if(!tr)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,yr,Ne)),mr.BREAK;let $r=(0,JF.getTypeNodeNamedTypeName)(tr.node.type),Jn=e.parentDefinitionDataByTypeName.get($r),fn=Jn?Jn.kind:mr.Kind.SCALAR_TYPE_DEFINITION;return D.push((0,Gt.invalidSelectionSetErrorMessage)(T,[yr],$r,(0,Ho.kindToNodeType)(fn))),mr.BREAK}let Z=Le.name.value,Se=`${ot}.${Z}`;if(Ne=Z,Z===lt.TYPENAME)return;let Ft=Ve.fieldDataByName.get(Z);if(!Ft)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Z)),mr.BREAK;if(Ft.argumentDataByName.size)return D.push((0,Gt.argumentsInKeyFieldSetErrorMessage)(T,Se)),mr.BREAK;if(C[ee].has(Z))return D.push((0,Gt.duplicateFieldInFieldSetErrorMessage)(T,Se)),mr.BREAK;let hr=Ft.externalFieldDataBySubgraphName.get(e.subgraphName);if(!e.isSubgraphEventDrivenGraph&&(hr!=null&&hr.isDefinedExternal)&&!hr.isUnconditionallyProvided&&!e.conditionalFieldDataByCoords.get(Se)&&!e.options.ignoreExternalKeys){Ie=!0;let tr=u.headToTailEdges.get(Z);tr&&(tr.isExternal=!0)}(0,Ho.getValueOrDefault)((0,Ho.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,Se,()=>new Map),i,()=>new Set).add(m),M.push(Z),Ft.isShareableBySubgraphName.set(e.subgraphName,!0),C[ee].add(Z),(0,Ho.getValueOrDefault)(e.keyFieldNamesByParentTypeName,ot,()=>new Set).add(Z);let or=(0,JF.getTypeNodeNamedTypeName)(Ft.node.type);if(iX.BASE_SCALARS.has(or)){G.add(M.join(lt.LITERAL_PERIOD)),M.pop();return}let vr=e.parentDefinitionDataByTypeName.get(or);if(!vr)return D.push((0,Gt.unknownTypeInFieldSetErrorMessage)(T,Se,or)),mr.BREAK;if(vr.kind===mr.Kind.OBJECT_TYPE_DEFINITION){ae=!0,R.push(vr);return}if((0,nX.isKindAbstract)(vr.kind))return D.push((0,Gt.abstractTypeInKeyFieldSetErrorMessage)(T,Se,or,(0,Ho.kindToNodeType)(vr.kind))),mr.BREAK;G.add(M.join(lt.LITERAL_PERIOD)),M.pop()}},InlineFragment:{enter(){return D.push(Gt.inlineFragmentInFieldSetErrorMessage),mr.BREAK}},SelectionSet:{enter(){if(!ae){let Le=R[ee],ot=`${Le.name}.${Ne}`;if(Ne===lt.TYPENAME)return D.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],lt.STRING_SCALAR,(0,Ho.kindToNodeType)(mr.Kind.SCALAR_TYPE_DEFINITION))),mr.BREAK;let Z=Le.fieldDataByName.get(Ne);if(!Z)return D.push((0,Gt.undefinedFieldInFieldSetErrorMessage)(T,ot,Ne)),mr.BREAK;let Se=(0,JF.getTypeNodeNamedTypeName)(Z.node.type),Ft=e.parentDefinitionDataByTypeName.get(Se),hr=Ft?Ft.kind:mr.Kind.SCALAR_TYPE_DEFINITION;return D.push((0,Gt.invalidSelectionSetDefinitionErrorMessage)(T,[ot],Se,(0,Ho.kindToNodeType)(hr))),mr.BREAK}if(ee+=1,ae=!1,ee<0||ee>=R.length)return D.push((0,Gt.unparsableFieldSetSelectionErrorMessage)(T,Ne)),mr.BREAK;C.push(new Set)},leave(){if(ae){let Ve=R[ee].name,ot=R[ee+1],Z=`${Ve}.${Ne}`;D.push((0,Gt.invalidSelectionSetErrorMessage)(T,[Z],ot.name,(0,Ho.kindToNodeType)(ot.kind))),ae=!1}ee-=1,R.pop(),C.pop()}}}),D.length>0){e.errors.push((0,Gt.invalidDirectiveError)(lt.KEY,i,(0,Ho.numberToOrdinal)(l),D));continue}a.push(q({fieldName:"",selectionSet:m},N?{disableEntityResolver:!0}:{})),u.satisfiedFieldSets.add(m),Ie&&u.externalFieldSets.add(m),!N&&(o==null||o.addTargetSubgraphByFieldSet(m,e.subgraphName))}if(a.length>0)return a}function UVe(e){return e?lt.PROVIDES:lt.REQUIRES}function kVe(e,t){return e===lt.QUERY||t===mr.OperationTypeNode.QUERY}function qVe(e,t,r){let n=e.matchAll(iX.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of n){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)r.push((0,Gt.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)r.push((0,Gt.invalidEventSubjectsArgumentErrorMessage)(o))}function xVe(){return new Map([[lt.AUTHENTICATED,Pt.AUTHENTICATED_DEFINITION_DATA],[lt.COMPOSE_DIRECTIVE,Pt.COMPOSE_DIRECTIVE_DEFINITION_DATA],[lt.CONFIGURE_DESCRIPTION,Pt.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[lt.CONFIGURE_CHILD_DESCRIPTIONS,Pt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[lt.CONNECT_FIELD_RESOLVER,Pt.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[lt.COST,Pt.COST_DEFINITION_DATA],[lt.DEPRECATED,Pt.DEPRECATED_DEFINITION_DATA],[lt.EDFS_KAFKA_PUBLISH,Pt.KAFKA_PUBLISH_DEFINITION_DATA],[lt.EDFS_KAFKA_SUBSCRIBE,Pt.KAFKA_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_NATS_PUBLISH,Pt.NATS_PUBLISH_DEFINITION_DATA],[lt.EDFS_NATS_REQUEST,Pt.NATS_REQUEST_DEFINITION_DATA],[lt.EDFS_NATS_SUBSCRIBE,Pt.NATS_SUBSCRIBE_DEFINITION_DATA],[lt.EDFS_REDIS_PUBLISH,Pt.REDIS_PUBLISH_DEFINITION_DATA],[lt.EDFS_REDIS_SUBSCRIBE,Pt.REDIS_SUBSCRIBE_DEFINITION_DATA],[lt.EXTENDS,Pt.EXTENDS_DEFINITION_DATA],[lt.EXTERNAL,Pt.EXTERNAL_DEFINITION_DATA],[lt.INACCESSIBLE,Pt.INACCESSIBLE_DEFINITION_DATA],[lt.INTERFACE_OBJECT,Pt.INTERFACE_OBJECT_DEFINITION_DATA],[lt.KEY,Pt.KEY_DEFINITION_DATA],[lt.LINK,Pt.LINK_DEFINITION_DATA],[lt.LIST_SIZE,Pt.LIST_SIZE_DEFINITION_DATA],[lt.ONE_OF,Pt.ONE_OF_DEFINITION_DATA],[lt.OVERRIDE,Pt.OVERRIDE_DEFINITION_DATA],[lt.PROVIDES,Pt.PROVIDES_DEFINITION_DATA],[lt.REQUIRE_FETCH_REASONS,Pt.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[lt.REQUIRES,Pt.REQUIRES_DEFINITION_DATA],[lt.REQUIRES_SCOPES,Pt.REQUIRES_SCOPES_DEFINITION_DATA],[lt.SEMANTIC_NON_NULL,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA],[lt.SHAREABLE,Pt.SHAREABLE_DEFINITION_DATA],[lt.SPECIFIED_BY,Pt.SPECIFIED_BY_DEFINITION_DATA],[lt.SUBSCRIPTION_FILTER,Pt.SUBSCRIPTION_FILTER_DEFINITION_DATA],[lt.TAG,Pt.TAG_DEFINITION_DATA]])}mi.FEDERATED_DIRECTIVE_DATAS=[Pt.AUTHENTICATED_DEFINITION_DATA,Pt.DEPRECATED_DEFINITION_DATA,Pt.INACCESSIBLE_DEFINITION_DATA,Pt.ONE_OF_DEFINITION_DATA,Pt.REQUIRES_SCOPES_DEFINITION_DATA,Pt.SEMANTIC_NON_NULL_DEFINITION_DATA,Pt.TAG_DEFINITION_DATA];function MVe({executableDirectiveDatasByName:e,existingDataByName:t,incomingDataByName:r}){for(let[n,i]of r){let a=t.get(n),o=(0,rX.copyDirectiveDefinitionData)(i);if(!a){if(!i.isComposed){(0,Ho.getValueOrDefault)(e,n,()=>[]).push(o);continue}t.set(n,o),e.delete(n);continue}i.isComposed&&a.minorVersion0?{errors:r,success:!1}:{import:t,success:!0}}function KVe(e){let t=[],r=[];for(let n=0;n0?{errors:r,success:!1}:{imports:t,success:!0}}function $Ve(e){var i;let t=[],r=new Map,n=e.get(lt.LINK);if(!n)return{success:!0,importDataByDirectiveName:r};for(let a of n){if(!a.arguments)continue;let o=[],u=-1,l=-1,m="";for(let h of a.arguments)switch(h.name.value){case lt.URL_LOWER:{let T=jVe(h);if(!T.success)return{errors:[T.error],success:!1};m=T.coreUrl,u=T.majorVersion,l=T.minorVersion;break}case lt.IMPORT:{switch(h.value.kind){case mr.Kind.STRING:{o.push({name:h.value.value,coreUrl:"",majorVersion:-1,minorVersion:-1});break}case mr.Kind.LIST:{let T=KVe(h.value.values);if(!T.success)return T;o=T.imports;break}default:return{errors:[(0,Gt.nonIterableLinkDirectiveImportError)(h.value.kind)],success:!1}}break}}if(!m)return{errors:[Gt.noLinkDirectiveUrlError],success:!1};for(let h of o)h.coreUrl=m,h.majorVersion=u,h.minorVersion=l,r.set((i=h.rename)!=null?i:h.name,h)}return t.length>0?{errors:t,success:!1}:{importDataByDirectiveName:r,success:!0}}});var Rv=O(gd=>{"use strict";d();p();f();Object.defineProperty(gd,"__esModule",{value:!0});gd.DivergentType=void 0;gd.getLeastRestrictiveMergedTypeNode=QVe;gd.getMostRestrictiveMergedTypeNode=YVe;gd.renameNamedTypeName=JVe;var Td=_e(),oX=bi(),GVe=Jo(),aX=kn(),sX=Xf(),Ed;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Ed||(gd.DivergentType=Ed={}));function uX(e,t,r,n,i){t=(0,GVe.getMutableTypeNode)(t,r,i);let a={kind:e.kind},o=Ed.NONE,u=a;for(let l=0;l{"use strict";d();p();f();Object.defineProperty(HF,"__esModule",{value:!0});HF.renameRootTypes=WVe;var zVe=_e(),zF=kn(),HVe=Rv(),il=xr(),Id=An();function WVe(e,t){let r,n=!1,i;(0,zVe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(n&&(o===il.SERVICE_FIELD||o===il.ENTITIES_FIELD))return r.fieldDataByName.delete(o),!1;let u=r.name,l=(0,Id.getOrThrowError)(r.fieldDataByName,o,`${u}.fieldDataByFieldName`),m=t.operationTypes.get(l.namedTypeName);if(m){let h=(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,m,il.OPERATION_TO_DEFAULT);l.namedTypeName!==h&&(0,HVe.renameNamedTypeName)(l,h,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA)},leave(){r=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o)))},leave(){r=void 0,n=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,u=t.operationTypes.get(o),l=u?(0,Id.getOrThrowError)(zF.operationTypeNodeToDefaultType,u,il.OPERATION_TO_DEFAULT):o;r=(0,Id.getOrThrowError)(t.parentDefinitionDataByTypeName,o,il.PARENT_DEFINITION_DATA),n=r.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(r.name=l,t.parentDefinitionDataByTypeName.set(l,r),t.parentDefinitionDataByTypeName.delete(o))},leave(){r=void 0,n=!1,i=void 0}}})}});var cX=O((Sp,Py)=>{"use strict";d();p();f();(function(){var e,t="4.18.1",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="Invalid `imports` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,m="__lodash_placeholder__",h=1,N=2,T=4,D=1,R=2,C=1,M=2,G=4,ee=8,ae=16,Ne=32,Ie=64,Le=128,Ve=256,ot=512,Z=30,Se="...",Ft=800,hr=16,or=1,vr=2,yr=3,tr=1/0,$r=9007199254740991,Jn=17976931348623157e292,fn=NaN,bt=4294967295,Gr=bt-1,oe=bt>>>1,Be=[["ary",Le],["bind",C],["bindKey",M],["curry",ee],["curryRight",ae],["flip",ot],["partial",Ne],["partialRight",Ie],["rearg",Ve]],ve="[object Arguments]",Ce="[object Array]",Qt="[object AsyncFunction]",z="[object Boolean]",ie="[object Date]",Je="[object DOMException]",nt="[object Error]",xt="[object Function]",At="[object GeneratorFunction]",It="[object Map]",Bi="[object Number]",kd="[object Null]",zn="[object Object]",fl="[object Promise]",qd="[object Proxy]",Ba="[object RegExp]",In="[object Set]",Yt="[object String]",pn="[object Symbol]",S_="[object Undefined]",Ti="[object WeakMap]",O_="[object WeakSet]",P="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",k="[object Float64Array]",$="[object Int8Array]",te="[object Int16Array]",ce="[object Int32Array]",gt="[object Uint8Array]",Or="[object Uint8ClampedArray]",Nr="[object Uint16Array]",Dr="[object Uint32Array]",pr=/\b__p \+= '';/g,NZ=/\b(__p \+=) '' \+/g,TZ=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_C=/&(?:amp|lt|gt|quot|#39);/g,SC=/[&<>"']/g,EZ=RegExp(_C.source),gZ=RegExp(SC.source),IZ=/<%-([\s\S]+?)%>/g,vZ=/<%([\s\S]+?)%>/g,OC=/<%=([\s\S]+?)%>/g,_Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SZ=/^\w*$/,OZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D_=/[\\^$.*+?()[\]{}|]/g,DZ=RegExp(D_.source),b_=/^\s+/,bZ=/\s/,AZ=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,RZ=/\{\n\/\* \[wrapped with (.+)\] \*/,wZ=/,? & /,PZ=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DC=/[()=,{}\[\]\/\s]/,FZ=/\\(\\)?/g,LZ=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bC=/\w*$/,CZ=/^[-+]0x[0-9a-f]+$/i,BZ=/^0b[01]+$/i,UZ=/^\[object .+?Constructor\]$/,kZ=/^0o[0-7]+$/i,qZ=/^(?:0|[1-9]\d*)$/,xZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lN=/($^)/,MZ=/['\n\r\u2028\u2029\\]/g,dN="\\ud800-\\udfff",jZ="\\u0300-\\u036f",VZ="\\ufe20-\\ufe2f",KZ="\\u20d0-\\u20ff",AC=jZ+VZ+KZ,RC="\\u2700-\\u27bf",wC="a-z\\xdf-\\xf6\\xf8-\\xff",$Z="\\xac\\xb1\\xd7\\xf7",GZ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",QZ="\\u2000-\\u206f",YZ=" \\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",PC="A-Z\\xc0-\\xd6\\xd8-\\xde",FC="\\ufe0e\\ufe0f",LC=$Z+GZ+QZ+YZ,A_="['\u2019]",JZ="["+dN+"]",CC="["+LC+"]",fN="["+AC+"]",BC="\\d+",zZ="["+RC+"]",UC="["+wC+"]",kC="[^"+dN+LC+BC+RC+wC+PC+"]",R_="\\ud83c[\\udffb-\\udfff]",HZ="(?:"+fN+"|"+R_+")",qC="[^"+dN+"]",w_="(?:\\ud83c[\\udde6-\\uddff]){2}",P_="[\\ud800-\\udbff][\\udc00-\\udfff]",xd="["+PC+"]",xC="\\u200d",MC="(?:"+UC+"|"+kC+")",WZ="(?:"+xd+"|"+kC+")",jC="(?:"+A_+"(?:d|ll|m|re|s|t|ve))?",VC="(?:"+A_+"(?:D|LL|M|RE|S|T|VE))?",KC=HZ+"?",$C="["+FC+"]?",XZ="(?:"+xC+"(?:"+[qC,w_,P_].join("|")+")"+$C+KC+")*",ZZ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",GC=$C+KC+XZ,tee="(?:"+[zZ,w_,P_].join("|")+")"+GC,ree="(?:"+[qC+fN+"?",fN,w_,P_,JZ].join("|")+")",nee=RegExp(A_,"g"),iee=RegExp(fN,"g"),F_=RegExp(R_+"(?="+R_+")|"+ree+GC,"g"),aee=RegExp([xd+"?"+UC+"+"+jC+"(?="+[CC,xd,"$"].join("|")+")",WZ+"+"+VC+"(?="+[CC,xd+MC,"$"].join("|")+")",xd+"?"+MC+"+"+jC,xd+"+"+VC,eee,ZZ,BC,tee].join("|"),"g"),oee=RegExp("["+xC+dN+AC+FC+"]"),see=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uee=["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"],cee=-1,Ar={};Ar[b]=Ar[k]=Ar[$]=Ar[te]=Ar[ce]=Ar[gt]=Ar[Or]=Ar[Nr]=Ar[Dr]=!0,Ar[ve]=Ar[Ce]=Ar[P]=Ar[z]=Ar[_]=Ar[ie]=Ar[nt]=Ar[xt]=Ar[It]=Ar[Bi]=Ar[zn]=Ar[Ba]=Ar[In]=Ar[Yt]=Ar[Ti]=!1;var br={};br[ve]=br[Ce]=br[P]=br[_]=br[z]=br[ie]=br[b]=br[k]=br[$]=br[te]=br[ce]=br[It]=br[Bi]=br[zn]=br[Ba]=br[In]=br[Yt]=br[pn]=br[gt]=br[Or]=br[Nr]=br[Dr]=!0,br[nt]=br[xt]=br[Ti]=!1;var lee={\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"},dee={"&":"&","<":"<",">":">",'"':""","'":"'"},fee={"&":"&","<":"<",">":">",""":'"',"'":"'"},pee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mee=parseFloat,hee=parseInt,QC=typeof global=="object"&&global&&global.Object===Object&&global,yee=typeof self=="object"&&self&&self.Object===Object&&self,Pn=QC||yee||Function("return this")(),L_=typeof Sp=="object"&&Sp&&!Sp.nodeType&&Sp,pl=L_&&typeof Py=="object"&&Py&&!Py.nodeType&&Py,YC=pl&&pl.exports===L_,C_=YC&&QC.process,Zi=function(){try{var J=pl&&pl.require&&pl.require("util").types;return J||C_&&C_.binding&&C_.binding("util")}catch(ue){}}(),JC=Zi&&Zi.isArrayBuffer,zC=Zi&&Zi.isDate,HC=Zi&&Zi.isMap,WC=Zi&&Zi.isRegExp,XC=Zi&&Zi.isSet,ZC=Zi&&Zi.isTypedArray;function Ui(J,ue,re){switch(re.length){case 0:return J.call(ue);case 1:return J.call(ue,re[0]);case 2:return J.call(ue,re[0],re[1]);case 3:return J.call(ue,re[0],re[1],re[2])}return J.apply(ue,re)}function Nee(J,ue,re,qe){for(var ht=-1,rr=J==null?0:J.length;++ht-1}function B_(J,ue,re){for(var qe=-1,ht=J==null?0:J.length;++qe-1;);return re}function sB(J,ue){for(var re=J.length;re--&&Md(ue,J[re],0)>-1;);return re}function Dee(J,ue){for(var re=J.length,qe=0;re--;)J[re]===ue&&++qe;return qe}var bee=x_(lee),Aee=x_(dee);function Ree(J){return"\\"+pee[J]}function wee(J,ue){return J==null?e:J[ue]}function jd(J){return oee.test(J)}function Pee(J){return see.test(J)}function Fee(J){for(var ue,re=[];!(ue=J.next()).done;)re.push(ue.value);return re}function K_(J){var ue=-1,re=Array(J.size);return J.forEach(function(qe,ht){re[++ue]=[ht,qe]}),re}function uB(J,ue){return function(re){return J(ue(re))}}function lc(J,ue){for(var re=-1,qe=J.length,ht=0,rr=[];++re-1}function Ete(s,c){var y=this.__data__,v=wN(y,s);return v<0?(++this.size,y.push([s,c])):y[v][1]=c,this}os.prototype.clear=hte,os.prototype.delete=yte,os.prototype.get=Nte,os.prototype.has=Tte,os.prototype.set=Ete;function ss(s){var c=-1,y=s==null?0:s.length;for(this.clear();++c=c?s:c)),s}function ra(s,c,y,v,A,L){var x,V=c&h,H=c&N,fe=c&T;if(y&&(x=A?y(s,v,A,L):y(s)),x!==e)return x;if(!Br(s))return s;var pe=Nt(s);if(pe){if(x=_re(s),!V)return Ei(s,x)}else{var ye=Wn(s),Ae=ye==xt||ye==At;if(Nc(s))return $B(s,V);if(ye==zn||ye==ve||Ae&&!A){if(x=H||Ae?{}:cU(s),!V)return H?fre(s,Bte(x,s)):dre(s,gB(x,s))}else{if(!br[ye])return A?s:{};x=Sre(s,ye,V)}}L||(L=new ka);var ze=L.get(s);if(ze)return ze;L.set(s,x),qU(s)?s.forEach(function(it){x.add(ra(it,c,y,it,s,L))}):UU(s)&&s.forEach(function(it,Lt){x.set(Lt,ra(it,c,y,Lt,s,L))});var ct=fe?H?hS:mS:H?Ii:Fn,St=pe?e:ct(s);return ki(St||s,function(it,Lt){St&&(Lt=it,it=s[Lt]),Yp(x,Lt,ra(it,c,y,Lt,s,L))}),x}function Ute(s){var c=Fn(s);return function(y){return IB(y,s,c)}}function IB(s,c,y){var v=y.length;if(s==null)return!v;for(s=_r(s);v--;){var A=y[v],L=c[A],x=s[A];if(x===e&&!(A in s)||!L(x))return!1}return!0}function vB(s,c,y){if(typeof s!="function")throw new ea(i);return em(function(){s.apply(e,y)},c)}function Jp(s,c,y,v){var A=-1,L=pN,x=!0,V=s.length,H=[],fe=c.length;if(!V)return H;y&&(c=Pr(c,qi(y))),v?(L=B_,x=!1):c.length>=r&&(L=jp,x=!1,c=new yl(c));e:for(;++AA?0:A+y),v=v===e||v>A?A:vt(v),v<0&&(v+=A),v=y>v?0:MU(v);y0&&y(V)?c>1?Kn(V,c-1,y,v,A):cc(A,V):v||(A[A.length]=V)}return A}var H_=HB(),OB=HB(!0);function Io(s,c){return s&&H_(s,c,Fn)}function W_(s,c){return s&&OB(s,c,Fn)}function FN(s,c){return uc(c,function(y){return ds(s[y])})}function Tl(s,c){c=hc(c,s);for(var y=0,v=c.length;s!=null&&yc}function xte(s,c){return s!=null&&sr.call(s,c)}function Mte(s,c){return s!=null&&c in _r(s)}function jte(s,c,y){return s>=Hn(c,y)&&s<_n(c,y)}function Z_(s,c,y){for(var v=y?B_:pN,A=s[0].length,L=s.length,x=L,V=re(L),H=1/0,fe=[];x--;){var pe=s[x];x&&c&&(pe=Pr(pe,qi(c))),H=Hn(pe.length,H),V[x]=!y&&(c||A>=120&&pe.length>=120)?new yl(x&&pe):e}pe=s[0];var ye=-1,Ae=V[0];e:for(;++ye-1;)V!==s&&_N.call(V,H,1),_N.call(s,H,1);return s}function UB(s,c){for(var y=s?c.length:0,v=y-1;y--;){var A=c[y];if(y==v||A!==L){var L=A;ls(A)?_N.call(s,A,1):sS(s,A)}}return s}function iS(s,c){return s+DN(yB()*(c-s+1))}function ere(s,c,y,v){for(var A=-1,L=_n(ON((c-s)/(y||1)),0),x=re(L);L--;)x[v?L:++A]=s,s+=y;return x}function aS(s,c){var y="";if(!s||c<1||c>$r)return y;do c%2&&(y+=s),c=DN(c/2),c&&(s+=s);while(c);return y}function Rt(s,c){return vS(fU(s,c,vi),s+"")}function tre(s){return EB(Wd(s))}function rre(s,c){var y=Wd(s);return KN(y,Nl(c,0,y.length))}function Wp(s,c,y,v){if(!Br(s))return s;c=hc(c,s);for(var A=-1,L=c.length,x=L-1,V=s;V!=null&&++AA?0:A+c),y=y>A?A:y,y<0&&(y+=A),A=c>y?0:y-c>>>0,c>>>=0;for(var L=re(A);++v>>1,x=s[L];x!==null&&!Mi(x)&&(y?x<=c:x=r){var fe=c?null:yre(s);if(fe)return hN(fe);x=!1,A=jp,H=new yl}else H=c?[]:V;e:for(;++v=v?s:na(s,c,y)}var KB=Yee||function(s){return Pn.clearTimeout(s)};function $B(s,c){if(c)return s.slice();var y=s.length,v=dB?dB(y):new s.constructor(y);return s.copy(v),v}function dS(s){var c=new s.constructor(s.byteLength);return new IN(c).set(new IN(s)),c}function sre(s,c){var y=c?dS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.byteLength)}function ure(s){var c=new s.constructor(s.source,bC.exec(s));return c.lastIndex=s.lastIndex,c}function cre(s){return Qp?_r(Qp.call(s)):{}}function GB(s,c){var y=c?dS(s.buffer):s.buffer;return new s.constructor(y,s.byteOffset,s.length)}function QB(s,c){if(s!==c){var y=s!==e,v=s===null,A=s===s,L=Mi(s),x=c!==e,V=c===null,H=c===c,fe=Mi(c);if(!V&&!fe&&!L&&s>c||L&&x&&H&&!V&&!fe||v&&x&&H||!y&&H||!A)return 1;if(!v&&!L&&!fe&&s=V)return H;var fe=y[v];return H*(fe=="desc"?-1:1)}}return s.index-c.index}function YB(s,c,y,v){for(var A=-1,L=s.length,x=y.length,V=-1,H=c.length,fe=_n(L-x,0),pe=re(H+fe),ye=!v;++V1?y[A-1]:e,x=A>2?y[2]:e;for(L=s.length>3&&typeof L=="function"?(A--,L):e,x&&ii(y[0],y[1],x)&&(L=A<3?e:L,A=1),c=_r(c);++v-1?A[L?c[x]:x]:e}}function ZB(s){return cs(function(c){var y=c.length,v=y,A=ta.prototype.thru;for(s&&c.reverse();v--;){var L=c[v];if(typeof L!="function")throw new ea(i);if(A&&!x&&jN(L)=="wrapper")var x=new ta([],!0)}for(v=x?v:y;++v1&&Mt.reverse(),pe&&HV))return!1;var fe=L.get(s),pe=L.get(c);if(fe&&pe)return fe==c&&pe==s;var ye=-1,Ae=!0,ze=y&R?new yl:e;for(L.set(s,c),L.set(c,s);++ye1?"& ":"")+c[v],c=c.join(y>2?", ":" "),s.replace(AZ,`{ /* [wrapped with `+c+`] */ -`)}function Dre(s){return Nt(s)||Il(s)||!!(mB&&s&&s[mB])}function ls(s,c){var y=typeof s;return c=c==null?$r:c,!!c&&(y=="number"||y!="symbol"&&qZ.test(s))&&s>-1&&s%1==0&&s0){if(++c>=Ft)return arguments[0]}else c=0;return s.apply(e,arguments)}}function KN(s,c){var y=-1,v=s.length,A=v-1;for(c=c===e?v:c;++y1?s[c-1]:e;return y=typeof y=="function"?(s.pop(),y):e,SU(s,y)});function OU(s){var c=F(s);return c.__chain__=!0,c}function kne(s,c){return c(s),s}function $N(s,c){return c(s)}var qne=cs(function(s){var c=s.length,y=c?s[0]:0,v=this.__wrapped__,A=function(L){return z_(L,s)};return c>1||this.__actions__.length||!(v instanceof Ut)||!ls(y)?this.thru(A):(v=v.slice(y,+y+(c?1:0)),v.__actions__.push({func:$N,args:[A],thisArg:e}),new ta(v,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function xne(){return OU(this)}function Mne(){return new ta(this.value(),this.__chain__)}function jne(){this.__values__===e&&(this.__values__=xU(this.value()));var s=this.__index__>=this.__values__.length,c=s?e:this.__values__[this.__index__++];return{done:s,value:c}}function Vne(){return this}function Kne(s){for(var c,y=this;y instanceof RN;){var v=TU(y);v.__index__=0,v.__values__=e,c?A.__wrapped__=v:c=v;var A=v;y=y.__wrapped__}return A.__wrapped__=s,c}function $ne(){var s=this.__wrapped__;if(s instanceof Ut){var c=s;return this.__actions__.length&&(c=new Ut(this)),c=c.reverse(),c.__actions__.push({func:$N,args:[_S],thisArg:e}),new ta(c,this.__chain__)}return this.thru(_S)}function Gne(){return jB(this.__wrapped__,this.__actions__)}var Qne=UN(function(s,c,y){or.call(s,y)?++s[y]:go(s,y,1)});function Yne(s,c,y){var v=Nt(s)?eB:kte;return y&&ii(s,c,y)&&(c=e),v(s,st(c,3))}function Jne(s,c){var y=Nt(s)?uc:SB;return y(s,st(c,3))}var zne=XB(EU),Hne=XB(gU);function Wne(s,c){return Kn(GN(s,c),1)}function Xne(s,c){return Kn(GN(s,c),tr)}function Zne(s,c,y){return y=y===e?1:vt(y),Kn(GN(s,c),y)}function DU(s,c){var y=Nt(s)?ki:pc;return y(s,st(c,3))}function bU(s,c){var y=Nt(s)?Tee:_B;return y(s,st(c,3))}var eie=UN(function(s,c,y){or.call(s,y)?s[y].push(c):go(s,y,[c])});function tie(s,c,y,v){s=gi(s)?s:Wd(s),y=y&&!v?vt(y):0;var A=s.length;return y<0&&(y=_n(A+y,0)),HN(s)?y<=A&&s.indexOf(c,y)>-1:!!A&&Md(s,c,y)>-1}var rie=Rt(function(s,c,y){var v=-1,A=typeof c=="function",L=gi(s)?re(s.length):[];return pc(s,function(x){L[++v]=A?Ui(c,x,y):zp(x,c,y)}),L}),nie=UN(function(s,c,y){go(s,y,c)});function GN(s,c){var y=Nt(s)?Pr:wB;return y(s,st(c,3))}function iie(s,c,y,v){return s==null?[]:(Nt(c)||(c=c==null?[]:[c]),y=v?e:y,Nt(y)||(y=y==null?[]:[y]),CB(s,c,y))}var aie=UN(function(s,c,y){s[y?0:1].push(c)},function(){return[[],[]]});function oie(s,c,y){var v=Nt(s)?U_:iB,A=arguments.length<3;return v(s,st(c,4),y,A,pc)}function sie(s,c,y){var v=Nt(s)?Eee:iB,A=arguments.length<3;return v(s,st(c,4),y,A,_B)}function uie(s,c){var y=Nt(s)?uc:SB;return y(s,JN(st(c,3)))}function cie(s){var c=Nt(s)?EB:tre;return c(s)}function lie(s,c,y){(y?ii(s,c,y):c===e)?c=1:c=vt(c);var v=Nt(s)?Fte:rre;return v(s,c)}function die(s){var c=Nt(s)?Lte:ire;return c(s)}function fie(s){if(s==null)return 0;if(gi(s))return HN(s)?Vd(s):s.length;var c=Wn(s);return c==It||c==In?s.size:tS(s).length}function pie(s,c,y){var v=Nt(s)?k_:are;return y&&ii(s,c,y)&&(c=e),v(s,st(c,3))}var mie=Rt(function(s,c){if(s==null)return[];var y=c.length;return y>1&&ii(s,c[0],c[1])?c=[]:y>2&&ii(c[0],c[1],c[2])&&(c=[c[0]]),CB(s,Kn(c,1),[])}),QN=Jee||function(){return Pn.Date.now()};function hie(s,c){if(typeof c!="function")throw new ea(i);return s=vt(s),function(){if(--s<1)return c.apply(this,arguments)}}function AU(s,c,y){return c=y?e:c,c=s&&c==null?s.length:c,us(s,Le,e,e,e,e,c)}function RU(s,c){var y;if(typeof c!="function")throw new ea(i);return s=vt(s),function(){return--s>0&&(y=c.apply(this,arguments)),s<=1&&(c=e),y}}var OS=Rt(function(s,c,y){var v=C;if(y.length){var A=lc(y,zd(OS));v|=Ne}return us(s,v,c,y,A)}),wU=Rt(function(s,c,y){var v=C|M;if(y.length){var A=lc(y,zd(wU));v|=Ne}return us(c,v,s,y,A)});function PU(s,c,y){c=y?e:c;var v=us(s,ee,e,e,e,e,e,c);return v.placeholder=PU.placeholder,v}function FU(s,c,y){c=y?e:c;var v=us(s,ae,e,e,e,e,e,c);return v.placeholder=FU.placeholder,v}function LU(s,c,y){var v,A,L,x,V,H,fe=0,pe=!1,ye=!1,be=!0;if(typeof s!="function")throw new ea(i);c=aa(c)||0,Br(y)&&(pe=!!y.leading,ye="maxWait"in y,L=ye?_n(aa(y.maxWait)||0,c):L,be="trailing"in y?!!y.trailing:be);function ze(rn){var Ma=v,ps=A;return v=A=e,fe=rn,x=s.apply(ps,Ma),x}function ct(rn){return fe=rn,V=em(Lt,c),pe?ze(rn):x}function St(rn){var Ma=rn-H,ps=rn-fe,ZU=c-Ma;return ye?Hn(ZU,L-ps):ZU}function it(rn){var Ma=rn-H,ps=rn-fe;return H===e||Ma>=c||Ma<0||ye&&ps>=L}function Lt(){var rn=QN();if(it(rn))return Mt(rn);V=em(Lt,St(rn))}function Mt(rn){return V=e,be&&v?ze(rn):(v=A=e,x)}function ji(){V!==e&&KB(V),fe=0,v=H=A=V=e}function ai(){return V===e?x:Mt(QN())}function Vi(){var rn=QN(),Ma=it(rn);if(v=arguments,A=this,H=rn,Ma){if(V===e)return ct(H);if(ye)return KB(V),V=em(Lt,c),ze(H)}return V===e&&(V=em(Lt,c)),x}return Vi.cancel=ji,Vi.flush=ai,Vi}var yie=Rt(function(s,c){return vB(s,1,c)}),Nie=Rt(function(s,c,y){return vB(s,aa(c)||0,y)});function Tie(s){return us(s,ot)}function YN(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new ea(i);var y=function(){var v=arguments,A=c?c.apply(this,v):v[0],L=y.cache;if(L.has(A))return L.get(A);var x=s.apply(this,v);return y.cache=L.set(A,x)||L,x};return y.cache=new(YN.Cache||ss),y}YN.Cache=ss;function JN(s){if(typeof s!="function")throw new ea(i);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function Eie(s){return RU(2,s)}var gie=ore(function(s,c){c=c.length==1&&Nt(c[0])?Pr(c[0],qi(st())):Pr(Kn(c,1),qi(st()));var y=c.length;return Rt(function(v){for(var A=-1,L=Hn(v.length,y);++A=c}),Il=bB(function(){return arguments}())?bB:function(s){return Qr(s)&&or.call(s,"callee")&&!pB.call(s,"callee")},Nt=re.isArray,Bie=JC?qi(JC):Kte;function gi(s){return s!=null&&zN(s.length)&&!ds(s)}function tn(s){return Qr(s)&&gi(s)}function Uie(s){return s===!0||s===!1||Qr(s)&&ni(s)==z}var Nc=Hee||qS,kie=zC?qi(zC):$te;function qie(s){return Qr(s)&&s.nodeType===1&&!tm(s)}function xie(s){if(s==null)return!0;if(gi(s)&&(Nt(s)||typeof s=="string"||typeof s.splice=="function"||Nc(s)||Hd(s)||Il(s)))return!s.length;var c=Wn(s);if(c==It||c==In)return!s.size;if(Zp(s))return!tS(s).length;for(var y in s)if(or.call(s,y))return!1;return!0}function Mie(s,c){return Hp(s,c)}function jie(s,c,y){y=typeof y=="function"?y:e;var v=y?y(s,c):e;return v===e?Hp(s,c,e,y):!!v}function bS(s){if(!Qr(s))return!1;var c=ni(s);return c==nt||c==Je||typeof s.message=="string"&&typeof s.name=="string"&&!tm(s)}function Vie(s){return typeof s=="number"&&hB(s)}function ds(s){if(!Br(s))return!1;var c=ni(s);return c==xt||c==At||c==Qt||c==qd}function BU(s){return typeof s=="number"&&s==vt(s)}function zN(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=$r}function Br(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Qr(s){return s!=null&&typeof s=="object"}var UU=HC?qi(HC):Qte;function Kie(s,c){return s===c||eS(s,c,NS(c))}function $ie(s,c,y){return y=typeof y=="function"?y:e,eS(s,c,NS(c),y)}function Gie(s){return kU(s)&&s!=+s}function Qie(s){if(Rre(s))throw new ht(n);return AB(s)}function Yie(s){return s===null}function Jie(s){return s==null}function kU(s){return typeof s=="number"||Qr(s)&&ni(s)==Bi}function tm(s){if(!Qr(s)||ni(s)!=zn)return!1;var c=vN(s);if(c===null)return!0;var y=or.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&TN.call(y)==$ee}var AS=WC?qi(WC):Yte;function zie(s){return BU(s)&&s>=-$r&&s<=$r}var qU=XC?qi(XC):Jte;function HN(s){return typeof s=="string"||!Nt(s)&&Qr(s)&&ni(s)==Yt}function Mi(s){return typeof s=="symbol"||Qr(s)&&ni(s)==pn}var Hd=ZC?qi(ZC):zte;function Hie(s){return s===e}function Wie(s){return Qr(s)&&Wn(s)==Ti}function Xie(s){return Qr(s)&&ni(s)==O_}var Zie=MN(rS),eae=MN(function(s,c){return s<=c});function xU(s){if(!s)return[];if(gi(s))return HN(s)?Ua(s):Ei(s);if(Vp&&s[Vp])return Fee(s[Vp]());var c=Wn(s),y=c==It?K_:c==In?hN:Wd;return y(s)}function fs(s){if(!s)return s===0?s:0;if(s=aa(s),s===tr||s===-tr){var c=s<0?-1:1;return c*Jn}return s===s?s:0}function vt(s){var c=fs(s),y=c%1;return c===c?y?c-y:c:0}function MU(s){return s?Nl(vt(s),0,bt):0}function aa(s){if(typeof s=="number")return s;if(Mi(s))return fn;if(Br(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Br(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=aB(s);var y=BZ.test(s);return y||kZ.test(s)?hee(s.slice(2),y?2:8):CZ.test(s)?fn:+s}function jU(s){return vo(s,Ii(s))}function tae(s){return s?Nl(vt(s),-$r,$r):s===0?s:0}function sr(s){return s==null?"":xi(s)}var rae=Yd(function(s,c){if(Zp(c)||gi(c)){vo(c,Fn(c),s);return}for(var y in c)or.call(c,y)&&Yp(s,y,c[y])}),VU=Yd(function(s,c){vo(c,Ii(c),s)}),KU=Yd(function(s,c,y,v){vo(c,Ii(c),s,v)}),RS=Yd(function(s,c,y,v){vo(c,Fn(c),s,v)}),nae=cs(z_);function iae(s,c){var y=Qd(s);return c==null?y:gB(y,c)}var aae=Rt(function(s,c){s=_r(s);var y=-1,v=c.length,A=v>2?c[2]:e;for(A&&ii(c[0],c[1],A)&&(v=1);++y1),L}),vo(s,hS(s),y),v&&(y=ra(y,h|N|T,Nre));for(var A=c.length;A--;)sS(y,c[A]);return y});function _ae(s,c){return GU(s,JN(st(c)))}var Sae=cs(function(s,c){return s==null?{}:Xte(s,c)});function GU(s,c){if(s==null)return{};var y=Pr(hS(s),function(v){return[v]});return c=st(c),BB(s,y,function(v,A){return c(v,A[0])})}function Oae(s,c,y){c=hc(c,s);var v=-1,A=c.length;for(A||(A=1,s=e);++vc){var v=s;s=c,c=v}if(y||s%1||c%1){var A=yB();return Hn(s+A*(c-s+mee("1e-"+((A+"").length-1))),c)}return iS(s,c)}var Uae=Jd(function(s,c,y){return c=c.toLowerCase(),s+(y?JU(c):c)});function JU(s){return FS(sr(s).toLowerCase())}function zU(s){return s=sr(s),s&&s.replace(xZ,bee).replace(iee,"")}function kae(s,c,y){s=sr(s),c=xi(c);var v=s.length;y=y===e?v:Nl(vt(y),0,v);var A=y;return y-=c.length,y>=0&&s.slice(y,A)==c}function qae(s){return s=sr(s),s&&gZ.test(s)?s.replace(SC,Aee):s}function xae(s){return s=sr(s),s&&DZ.test(s)?s.replace(D_,"\\$&"):s}var Mae=Jd(function(s,c,y){return s+(y?"-":"")+c.toLowerCase()}),jae=Jd(function(s,c,y){return s+(y?" ":"")+c.toLowerCase()}),Vae=WB("toLowerCase");function Kae(s,c,y){s=sr(s),c=vt(c);var v=c?Vd(s):0;if(!c||v>=c)return s;var A=(c-v)/2;return xN(DN(A),y)+s+xN(ON(A),y)}function $ae(s,c,y){s=sr(s),c=vt(c);var v=c?Vd(s):0;return c&&v>>0,y?(s=sr(s),s&&(typeof c=="string"||c!=null&&!AS(c))&&(c=xi(c),!c&&jd(s))?yc(Ua(s),0,y):s.split(c,y)):[]}var Wae=Jd(function(s,c,y){return s+(y?" ":"")+FS(c)});function Xae(s,c,y){return s=sr(s),y=y==null?0:Nl(vt(y),0,s.length),c=xi(c),s.slice(y,y+c.length)==c}function Zae(s,c,y){var v=F.templateSettings;y&&ii(s,c,y)&&(c=e),s=sr(s),c=RS({},c,v,iU);var A=RS({},c.imports,v.imports,iU),L=Fn(A),x=V_(A,L);ki(L,function(it){if(DC.test(it))throw new ht(o)});var V,H,fe=0,pe=c.interpolate||lN,ye="__p += '",be=$_((c.escape||lN).source+"|"+pe.source+"|"+(pe===OC?LZ:lN).source+"|"+(c.evaluate||lN).source+"|$","g"),ze="//# sourceURL="+(or.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cee+"]")+` -`;s.replace(be,function(it,Lt,Mt,ji,ai,Vi){return Mt||(Mt=ji),ye+=s.slice(fe,Vi).replace(MZ,Ree),Lt&&(V=!0,ye+=`' + +`)}function Dre(s){return Nt(s)||Il(s)||!!(mB&&s&&s[mB])}function ls(s,c){var y=typeof s;return c=c==null?$r:c,!!c&&(y=="number"||y!="symbol"&&qZ.test(s))&&s>-1&&s%1==0&&s0){if(++c>=Ft)return arguments[0]}else c=0;return s.apply(e,arguments)}}function KN(s,c){var y=-1,v=s.length,A=v-1;for(c=c===e?v:c;++y1?s[c-1]:e;return y=typeof y=="function"?(s.pop(),y):e,SU(s,y)});function OU(s){var c=F(s);return c.__chain__=!0,c}function kne(s,c){return c(s),s}function $N(s,c){return c(s)}var qne=cs(function(s){var c=s.length,y=c?s[0]:0,v=this.__wrapped__,A=function(L){return z_(L,s)};return c>1||this.__actions__.length||!(v instanceof Ut)||!ls(y)?this.thru(A):(v=v.slice(y,+y+(c?1:0)),v.__actions__.push({func:$N,args:[A],thisArg:e}),new ta(v,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function xne(){return OU(this)}function Mne(){return new ta(this.value(),this.__chain__)}function jne(){this.__values__===e&&(this.__values__=xU(this.value()));var s=this.__index__>=this.__values__.length,c=s?e:this.__values__[this.__index__++];return{done:s,value:c}}function Vne(){return this}function Kne(s){for(var c,y=this;y instanceof RN;){var v=TU(y);v.__index__=0,v.__values__=e,c?A.__wrapped__=v:c=v;var A=v;y=y.__wrapped__}return A.__wrapped__=s,c}function $ne(){var s=this.__wrapped__;if(s instanceof Ut){var c=s;return this.__actions__.length&&(c=new Ut(this)),c=c.reverse(),c.__actions__.push({func:$N,args:[_S],thisArg:e}),new ta(c,this.__chain__)}return this.thru(_S)}function Gne(){return jB(this.__wrapped__,this.__actions__)}var Qne=UN(function(s,c,y){sr.call(s,y)?++s[y]:go(s,y,1)});function Yne(s,c,y){var v=Nt(s)?eB:kte;return y&&ii(s,c,y)&&(c=e),v(s,st(c,3))}function Jne(s,c){var y=Nt(s)?uc:SB;return y(s,st(c,3))}var zne=XB(EU),Hne=XB(gU);function Wne(s,c){return Kn(GN(s,c),1)}function Xne(s,c){return Kn(GN(s,c),tr)}function Zne(s,c,y){return y=y===e?1:vt(y),Kn(GN(s,c),y)}function DU(s,c){var y=Nt(s)?ki:pc;return y(s,st(c,3))}function bU(s,c){var y=Nt(s)?Tee:_B;return y(s,st(c,3))}var eie=UN(function(s,c,y){sr.call(s,y)?s[y].push(c):go(s,y,[c])});function tie(s,c,y,v){s=gi(s)?s:Wd(s),y=y&&!v?vt(y):0;var A=s.length;return y<0&&(y=_n(A+y,0)),HN(s)?y<=A&&s.indexOf(c,y)>-1:!!A&&Md(s,c,y)>-1}var rie=Rt(function(s,c,y){var v=-1,A=typeof c=="function",L=gi(s)?re(s.length):[];return pc(s,function(x){L[++v]=A?Ui(c,x,y):zp(x,c,y)}),L}),nie=UN(function(s,c,y){go(s,y,c)});function GN(s,c){var y=Nt(s)?Pr:wB;return y(s,st(c,3))}function iie(s,c,y,v){return s==null?[]:(Nt(c)||(c=c==null?[]:[c]),y=v?e:y,Nt(y)||(y=y==null?[]:[y]),CB(s,c,y))}var aie=UN(function(s,c,y){s[y?0:1].push(c)},function(){return[[],[]]});function oie(s,c,y){var v=Nt(s)?U_:iB,A=arguments.length<3;return v(s,st(c,4),y,A,pc)}function sie(s,c,y){var v=Nt(s)?Eee:iB,A=arguments.length<3;return v(s,st(c,4),y,A,_B)}function uie(s,c){var y=Nt(s)?uc:SB;return y(s,JN(st(c,3)))}function cie(s){var c=Nt(s)?EB:tre;return c(s)}function lie(s,c,y){(y?ii(s,c,y):c===e)?c=1:c=vt(c);var v=Nt(s)?Fte:rre;return v(s,c)}function die(s){var c=Nt(s)?Lte:ire;return c(s)}function fie(s){if(s==null)return 0;if(gi(s))return HN(s)?Vd(s):s.length;var c=Wn(s);return c==It||c==In?s.size:tS(s).length}function pie(s,c,y){var v=Nt(s)?k_:are;return y&&ii(s,c,y)&&(c=e),v(s,st(c,3))}var mie=Rt(function(s,c){if(s==null)return[];var y=c.length;return y>1&&ii(s,c[0],c[1])?c=[]:y>2&&ii(c[0],c[1],c[2])&&(c=[c[0]]),CB(s,Kn(c,1),[])}),QN=Jee||function(){return Pn.Date.now()};function hie(s,c){if(typeof c!="function")throw new ea(i);return s=vt(s),function(){if(--s<1)return c.apply(this,arguments)}}function AU(s,c,y){return c=y?e:c,c=s&&c==null?s.length:c,us(s,Le,e,e,e,e,c)}function RU(s,c){var y;if(typeof c!="function")throw new ea(i);return s=vt(s),function(){return--s>0&&(y=c.apply(this,arguments)),s<=1&&(c=e),y}}var OS=Rt(function(s,c,y){var v=C;if(y.length){var A=lc(y,zd(OS));v|=Ne}return us(s,v,c,y,A)}),wU=Rt(function(s,c,y){var v=C|M;if(y.length){var A=lc(y,zd(wU));v|=Ne}return us(c,v,s,y,A)});function PU(s,c,y){c=y?e:c;var v=us(s,ee,e,e,e,e,e,c);return v.placeholder=PU.placeholder,v}function FU(s,c,y){c=y?e:c;var v=us(s,ae,e,e,e,e,e,c);return v.placeholder=FU.placeholder,v}function LU(s,c,y){var v,A,L,x,V,H,fe=0,pe=!1,ye=!1,Ae=!0;if(typeof s!="function")throw new ea(i);c=aa(c)||0,Br(y)&&(pe=!!y.leading,ye="maxWait"in y,L=ye?_n(aa(y.maxWait)||0,c):L,Ae="trailing"in y?!!y.trailing:Ae);function ze(rn){var Ma=v,ps=A;return v=A=e,fe=rn,x=s.apply(ps,Ma),x}function ct(rn){return fe=rn,V=em(Lt,c),pe?ze(rn):x}function St(rn){var Ma=rn-H,ps=rn-fe,ZU=c-Ma;return ye?Hn(ZU,L-ps):ZU}function it(rn){var Ma=rn-H,ps=rn-fe;return H===e||Ma>=c||Ma<0||ye&&ps>=L}function Lt(){var rn=QN();if(it(rn))return Mt(rn);V=em(Lt,St(rn))}function Mt(rn){return V=e,Ae&&v?ze(rn):(v=A=e,x)}function ji(){V!==e&&KB(V),fe=0,v=H=A=V=e}function ai(){return V===e?x:Mt(QN())}function Vi(){var rn=QN(),Ma=it(rn);if(v=arguments,A=this,H=rn,Ma){if(V===e)return ct(H);if(ye)return KB(V),V=em(Lt,c),ze(H)}return V===e&&(V=em(Lt,c)),x}return Vi.cancel=ji,Vi.flush=ai,Vi}var yie=Rt(function(s,c){return vB(s,1,c)}),Nie=Rt(function(s,c,y){return vB(s,aa(c)||0,y)});function Tie(s){return us(s,ot)}function YN(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new ea(i);var y=function(){var v=arguments,A=c?c.apply(this,v):v[0],L=y.cache;if(L.has(A))return L.get(A);var x=s.apply(this,v);return y.cache=L.set(A,x)||L,x};return y.cache=new(YN.Cache||ss),y}YN.Cache=ss;function JN(s){if(typeof s!="function")throw new ea(i);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function Eie(s){return RU(2,s)}var gie=ore(function(s,c){c=c.length==1&&Nt(c[0])?Pr(c[0],qi(st())):Pr(Kn(c,1),qi(st()));var y=c.length;return Rt(function(v){for(var A=-1,L=Hn(v.length,y);++A=c}),Il=bB(function(){return arguments}())?bB:function(s){return Qr(s)&&sr.call(s,"callee")&&!pB.call(s,"callee")},Nt=re.isArray,Bie=JC?qi(JC):Kte;function gi(s){return s!=null&&zN(s.length)&&!ds(s)}function tn(s){return Qr(s)&&gi(s)}function Uie(s){return s===!0||s===!1||Qr(s)&&ni(s)==z}var Nc=Hee||qS,kie=zC?qi(zC):$te;function qie(s){return Qr(s)&&s.nodeType===1&&!tm(s)}function xie(s){if(s==null)return!0;if(gi(s)&&(Nt(s)||typeof s=="string"||typeof s.splice=="function"||Nc(s)||Hd(s)||Il(s)))return!s.length;var c=Wn(s);if(c==It||c==In)return!s.size;if(Zp(s))return!tS(s).length;for(var y in s)if(sr.call(s,y))return!1;return!0}function Mie(s,c){return Hp(s,c)}function jie(s,c,y){y=typeof y=="function"?y:e;var v=y?y(s,c):e;return v===e?Hp(s,c,e,y):!!v}function bS(s){if(!Qr(s))return!1;var c=ni(s);return c==nt||c==Je||typeof s.message=="string"&&typeof s.name=="string"&&!tm(s)}function Vie(s){return typeof s=="number"&&hB(s)}function ds(s){if(!Br(s))return!1;var c=ni(s);return c==xt||c==At||c==Qt||c==qd}function BU(s){return typeof s=="number"&&s==vt(s)}function zN(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=$r}function Br(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Qr(s){return s!=null&&typeof s=="object"}var UU=HC?qi(HC):Qte;function Kie(s,c){return s===c||eS(s,c,NS(c))}function $ie(s,c,y){return y=typeof y=="function"?y:e,eS(s,c,NS(c),y)}function Gie(s){return kU(s)&&s!=+s}function Qie(s){if(Rre(s))throw new ht(n);return AB(s)}function Yie(s){return s===null}function Jie(s){return s==null}function kU(s){return typeof s=="number"||Qr(s)&&ni(s)==Bi}function tm(s){if(!Qr(s)||ni(s)!=zn)return!1;var c=vN(s);if(c===null)return!0;var y=sr.call(c,"constructor")&&c.constructor;return typeof y=="function"&&y instanceof y&&TN.call(y)==$ee}var AS=WC?qi(WC):Yte;function zie(s){return BU(s)&&s>=-$r&&s<=$r}var qU=XC?qi(XC):Jte;function HN(s){return typeof s=="string"||!Nt(s)&&Qr(s)&&ni(s)==Yt}function Mi(s){return typeof s=="symbol"||Qr(s)&&ni(s)==pn}var Hd=ZC?qi(ZC):zte;function Hie(s){return s===e}function Wie(s){return Qr(s)&&Wn(s)==Ti}function Xie(s){return Qr(s)&&ni(s)==O_}var Zie=MN(rS),eae=MN(function(s,c){return s<=c});function xU(s){if(!s)return[];if(gi(s))return HN(s)?Ua(s):Ei(s);if(Vp&&s[Vp])return Fee(s[Vp]());var c=Wn(s),y=c==It?K_:c==In?hN:Wd;return y(s)}function fs(s){if(!s)return s===0?s:0;if(s=aa(s),s===tr||s===-tr){var c=s<0?-1:1;return c*Jn}return s===s?s:0}function vt(s){var c=fs(s),y=c%1;return c===c?y?c-y:c:0}function MU(s){return s?Nl(vt(s),0,bt):0}function aa(s){if(typeof s=="number")return s;if(Mi(s))return fn;if(Br(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Br(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=aB(s);var y=BZ.test(s);return y||kZ.test(s)?hee(s.slice(2),y?2:8):CZ.test(s)?fn:+s}function jU(s){return vo(s,Ii(s))}function tae(s){return s?Nl(vt(s),-$r,$r):s===0?s:0}function ur(s){return s==null?"":xi(s)}var rae=Yd(function(s,c){if(Zp(c)||gi(c)){vo(c,Fn(c),s);return}for(var y in c)sr.call(c,y)&&Yp(s,y,c[y])}),VU=Yd(function(s,c){vo(c,Ii(c),s)}),KU=Yd(function(s,c,y,v){vo(c,Ii(c),s,v)}),RS=Yd(function(s,c,y,v){vo(c,Fn(c),s,v)}),nae=cs(z_);function iae(s,c){var y=Qd(s);return c==null?y:gB(y,c)}var aae=Rt(function(s,c){s=_r(s);var y=-1,v=c.length,A=v>2?c[2]:e;for(A&&ii(c[0],c[1],A)&&(v=1);++y1),L}),vo(s,hS(s),y),v&&(y=ra(y,h|N|T,Nre));for(var A=c.length;A--;)sS(y,c[A]);return y});function _ae(s,c){return GU(s,JN(st(c)))}var Sae=cs(function(s,c){return s==null?{}:Xte(s,c)});function GU(s,c){if(s==null)return{};var y=Pr(hS(s),function(v){return[v]});return c=st(c),BB(s,y,function(v,A){return c(v,A[0])})}function Oae(s,c,y){c=hc(c,s);var v=-1,A=c.length;for(A||(A=1,s=e);++vc){var v=s;s=c,c=v}if(y||s%1||c%1){var A=yB();return Hn(s+A*(c-s+mee("1e-"+((A+"").length-1))),c)}return iS(s,c)}var Uae=Jd(function(s,c,y){return c=c.toLowerCase(),s+(y?JU(c):c)});function JU(s){return FS(ur(s).toLowerCase())}function zU(s){return s=ur(s),s&&s.replace(xZ,bee).replace(iee,"")}function kae(s,c,y){s=ur(s),c=xi(c);var v=s.length;y=y===e?v:Nl(vt(y),0,v);var A=y;return y-=c.length,y>=0&&s.slice(y,A)==c}function qae(s){return s=ur(s),s&&gZ.test(s)?s.replace(SC,Aee):s}function xae(s){return s=ur(s),s&&DZ.test(s)?s.replace(D_,"\\$&"):s}var Mae=Jd(function(s,c,y){return s+(y?"-":"")+c.toLowerCase()}),jae=Jd(function(s,c,y){return s+(y?" ":"")+c.toLowerCase()}),Vae=WB("toLowerCase");function Kae(s,c,y){s=ur(s),c=vt(c);var v=c?Vd(s):0;if(!c||v>=c)return s;var A=(c-v)/2;return xN(DN(A),y)+s+xN(ON(A),y)}function $ae(s,c,y){s=ur(s),c=vt(c);var v=c?Vd(s):0;return c&&v>>0,y?(s=ur(s),s&&(typeof c=="string"||c!=null&&!AS(c))&&(c=xi(c),!c&&jd(s))?yc(Ua(s),0,y):s.split(c,y)):[]}var Wae=Jd(function(s,c,y){return s+(y?" ":"")+FS(c)});function Xae(s,c,y){return s=ur(s),y=y==null?0:Nl(vt(y),0,s.length),c=xi(c),s.slice(y,y+c.length)==c}function Zae(s,c,y){var v=F.templateSettings;y&&ii(s,c,y)&&(c=e),s=ur(s),c=RS({},c,v,iU);var A=RS({},c.imports,v.imports,iU),L=Fn(A),x=V_(A,L);ki(L,function(it){if(DC.test(it))throw new ht(o)});var V,H,fe=0,pe=c.interpolate||lN,ye="__p += '",Ae=$_((c.escape||lN).source+"|"+pe.source+"|"+(pe===OC?LZ:lN).source+"|"+(c.evaluate||lN).source+"|$","g"),ze="//# sourceURL="+(sr.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cee+"]")+` +`;s.replace(Ae,function(it,Lt,Mt,ji,ai,Vi){return Mt||(Mt=ji),ye+=s.slice(fe,Vi).replace(MZ,Ree),Lt&&(V=!0,ye+=`' + __e(`+Lt+`) + '`),ai&&(H=!0,ye+=`'; `+ai+`; __p += '`),Mt&&(ye+=`' + ((__t = (`+Mt+`)) == null ? '' : __t) + '`),fe=Vi+it.length,it}),ye+=`'; -`;var ct=or.call(c,"variable")&&c.variable;if(!ct)ye=`with (obj) { +`;var ct=sr.call(c,"variable")&&c.variable;if(!ct)ye=`with (obj) { `+ye+` } -`;else if(DC.test(ct))throw new ht(a);ye=(H?ye.replace(dr,""):ye).replace(NZ,"$1").replace(TZ,"$1;"),ye="function("+(ct||"obj")+`) { +`;else if(DC.test(ct))throw new ht(a);ye=(H?ye.replace(pr,""):ye).replace(NZ,"$1").replace(TZ,"$1;"),ye="function("+(ct||"obj")+`) { `+(ct?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(H?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+ye+`return __p -}`;var St=WU(function(){return rr(L,ze+"return "+ye).apply(e,x)});if(St.source=ye,bS(St))throw St;return St}function eoe(s){return sr(s).toLowerCase()}function toe(s){return sr(s).toUpperCase()}function roe(s,c,y){if(s=sr(s),s&&(y||c===e))return aB(s);if(!s||!(c=xi(c)))return s;var v=Ua(s),A=Ua(c),L=oB(v,A),x=sB(v,A)+1;return yc(v,L,x).join("")}function noe(s,c,y){if(s=sr(s),s&&(y||c===e))return s.slice(0,cB(s)+1);if(!s||!(c=xi(c)))return s;var v=Ua(s),A=sB(v,Ua(c))+1;return yc(v,0,A).join("")}function ioe(s,c,y){if(s=sr(s),s&&(y||c===e))return s.replace(b_,"");if(!s||!(c=xi(c)))return s;var v=Ua(s),A=oB(v,Ua(c));return yc(v,A).join("")}function aoe(s,c){var y=Z,v=Se;if(Br(c)){var A="separator"in c?c.separator:A;y="length"in c?vt(c.length):y,v="omission"in c?xi(c.omission):v}s=sr(s);var L=s.length;if(jd(s)){var x=Ua(s);L=x.length}if(y>=L)return s;var V=y-Vd(v);if(V<1)return v;var H=x?yc(x,0,V).join(""):s.slice(0,V);if(A===e)return H+v;if(x&&(V+=H.length-V),AS(A)){if(s.slice(V).search(A)){var fe,pe=H;for(A.global||(A=$_(A.source,sr(bC.exec(A))+"g")),A.lastIndex=0;fe=A.exec(pe);)var ye=fe.index;H=H.slice(0,ye===e?V:ye)}}else if(s.indexOf(xi(A),V)!=V){var be=H.lastIndexOf(A);be>-1&&(H=H.slice(0,be))}return H+v}function ooe(s){return s=sr(s),s&&EZ.test(s)?s.replace(_C,Uee):s}var soe=Jd(function(s,c,y){return s+(y?" ":"")+c.toUpperCase()}),FS=WB("toUpperCase");function HU(s,c,y){return s=sr(s),c=y?e:c,c===e?Pee(s)?xee(s):vee(s):s.match(c)||[]}var WU=Rt(function(s,c){try{return Ui(s,e,c)}catch(y){return bS(y)?y:new ht(y)}}),uoe=cs(function(s,c){return ki(c,function(y){y=qa(y),go(s,y,OS(s[y],s))}),s});function coe(s){var c=s==null?0:s.length,y=st();return s=c?Pr(s,function(v){if(typeof v[1]!="function")throw new ea(i);return[y(v[0]),v[1]]}):[],Rt(function(v){for(var A=-1;++A$r)return[];var y=bt,v=Hn(s,bt);c=st(c),s-=bt;for(var A=j_(v,c);++y0||c<0)?new Ut(y):(s<0?y=y.takeRight(-s):s&&(y=y.drop(s)),c!==e&&(c=vt(c),y=c<0?y.dropRight(-c):y.take(c-s)),y)},Ut.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ut.prototype.toArray=function(){return this.take(bt)},Io(Ut.prototype,function(s,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),v=/^(?:head|last)$/.test(c),A=F[v?"take"+(c=="last"?"Right":""):c],L=v||/^find/.test(c);A&&(F.prototype[c]=function(){var x=this.__wrapped__,V=v?[1]:arguments,H=x instanceof Ut,fe=V[0],pe=H||Nt(x),ye=function(Lt){var Mt=A.apply(F,cc([Lt],V));return v&&be?Mt[0]:Mt};pe&&y&&typeof fe=="function"&&fe.length!=1&&(H=pe=!1);var be=this.__chain__,ze=!!this.__actions__.length,ct=L&&!be,St=H&&!ze;if(!L&&pe){x=St?x:new Ut(this);var it=s.apply(x,V);return it.__actions__.push({func:$N,args:[ye],thisArg:e}),new ta(it,be)}return ct&&St?s.apply(this,V):(it=this.thru(ye),ct?v?it.value()[0]:it.value():it)})}),ki(["pop","push","shift","sort","splice","unshift"],function(s){var c=yN[s],y=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var A=arguments;if(v&&!this.__chain__){var L=this.value();return c.apply(Nt(L)?L:[],A)}return this[y](function(x){return c.apply(Nt(x)?x:[],A)})}}),Io(Ut.prototype,function(s,c){var y=F[c];if(y){var v=y.name+"";or.call(Gd,v)||(Gd[v]=[]),Gd[v].push({name:c,func:y})}}),Gd[kN(e,M).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=ste,Ut.prototype.reverse=ute,Ut.prototype.value=cte,F.prototype.at=qne,F.prototype.chain=xne,F.prototype.commit=Mne,F.prototype.next=jne,F.prototype.plant=Kne,F.prototype.reverse=$ne,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Gne,F.prototype.first=F.prototype.head,Vp&&(F.prototype[Vp]=Vne),F},dc=Mee();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Pn._=dc,define(function(){return dc})):pl?((pl.exports=dc)._=dc,L_._=dc):Pn._=dc}).call(Sp)});var rL=O(Wo=>{"use strict";d();p();f();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.EntityDataNode=Wo.RootNode=Wo.GraphNode=Wo.Edge=void 0;var wv=An(),XF=class{constructor(t,r,n,i=!1){S(this,"edgeName");S(this,"id");S(this,"isAbstractEdge");S(this,"isExternal",!1);S(this,"isInaccessible",!1);S(this,"node");S(this,"visitedIndices",new Set);this.edgeName=i?`... on ${n}`:n,this.id=t,this.isAbstractEdge=i,this.node=r}isEdgeInaccessible(){return this.isInaccessible||this.node.isInaccessible}};Wo.Edge=XF;var ZF=class{constructor(t,r,n){S(this,"externalFieldSets",new Set);S(this,"fieldDataByName",new Map);S(this,"headToTailEdges",new Map);S(this,"entityEdges",new Array);S(this,"nodeName");S(this,"hasEntitySiblings",!1);S(this,"isAbstract");S(this,"isInaccessible",!1);S(this,"isLeaf",!1);S(this,"isRootNode",!1);S(this,"satisfiedFieldSets",new Set);S(this,"subgraphName");S(this,"typeName");this.isAbstract=!!(n!=null&&n.isAbstract),this.isLeaf=!!(n!=null&&n.isLeaf),this.nodeName=`${t}.${r}`,this.subgraphName=t,this.typeName=r}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,wv.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let r of t){let n=this.headToTailEdges.get(r);n&&(n.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,r){for(let n of t.entityEdges)(0,wv.add)(r,n.node.nodeName)&&this.getAccessibleEntityNodeNames(n.node,r)}};Wo.GraphNode=ZF;var eL=class{constructor(t){S(this,"fieldDataByName",new Map);S(this,"headToSharedTailEdges",new Map);S(this,"isAbstract",!1);S(this,"isRootNode",!0);S(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[r,n]of this.headToSharedTailEdges)if(!t.has(r))for(let i of n)i.isInaccessible=!0}};Wo.RootNode=eL;var tL=class{constructor(t){S(this,"fieldSetsByTargetSubgraphName",new Map);S(this,"targetSubgraphNamesByFieldSet",new Map);S(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,r){(0,wv.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(r),(0,wv.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,r,()=>new Set).add(t)}};Wo.EntityDataNode=tL});var nL=O(cn=>{"use strict";d();p();f();Object.defineProperty(cn,"__esModule",{value:!0});cn.ROOT_TYPE_NAMES=cn.QUOTATION_JOIN=cn.NOT_APPLICABLE=cn.LITERAL_SPACE=cn.LITERAL_PERIOD=cn.SUBSCRIPTION=cn.QUERY=cn.MUTATION=void 0;cn.MUTATION="Mutation";cn.QUERY="Query";cn.SUBSCRIPTION="Subscription";cn.LITERAL_PERIOD=".";cn.LITERAL_SPACE=" ";cn.NOT_APPLICABLE="N/A";cn.QUOTATION_JOIN='", "';cn.ROOT_TYPE_NAMES=new Set([cn.MUTATION,cn.QUERY,cn.SUBSCRIPTION])});var lX=O(Pv=>{"use strict";d();p();f();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.MAX_RESOLVABILITY_PATH_SIZE=void 0;Pv.MAX_RESOLVABILITY_PATH_SIZE=5});var sL=O(mo=>{"use strict";d();p();f();Object.defineProperty(mo,"__esModule",{value:!0});mo.newRootFieldData=ZVe;mo.generateResolvabilityErrorReasons=oL;mo.generateSharedResolvabilityErrorReasons=dX;mo.generateSelectionSetSegments=Fv;mo.renderSelectionSet=Lv;mo.generateRootResolvabilityErrors=nKe;mo.generateEntityResolvabilityErrors=iKe;mo.generateSharedEntityResolvabilityErrors=aKe;mo.getMultipliedRelativeOriginPaths=oKe;var iL=bi(),aL=An(),Qn=nL(),XVe=lX();function ZVe(e,t,r){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(r.size>1?"s":"")+`: "${[...r].join(Qn.QUOTATION_JOIN)}".`,subgraphNames:r}}function eKe(e,t){return e.isLeaf?e.name+` <-- +}`;var St=WU(function(){return rr(L,ze+"return "+ye).apply(e,x)});if(St.source=ye,bS(St))throw St;return St}function eoe(s){return ur(s).toLowerCase()}function toe(s){return ur(s).toUpperCase()}function roe(s,c,y){if(s=ur(s),s&&(y||c===e))return aB(s);if(!s||!(c=xi(c)))return s;var v=Ua(s),A=Ua(c),L=oB(v,A),x=sB(v,A)+1;return yc(v,L,x).join("")}function noe(s,c,y){if(s=ur(s),s&&(y||c===e))return s.slice(0,cB(s)+1);if(!s||!(c=xi(c)))return s;var v=Ua(s),A=sB(v,Ua(c))+1;return yc(v,0,A).join("")}function ioe(s,c,y){if(s=ur(s),s&&(y||c===e))return s.replace(b_,"");if(!s||!(c=xi(c)))return s;var v=Ua(s),A=oB(v,Ua(c));return yc(v,A).join("")}function aoe(s,c){var y=Z,v=Se;if(Br(c)){var A="separator"in c?c.separator:A;y="length"in c?vt(c.length):y,v="omission"in c?xi(c.omission):v}s=ur(s);var L=s.length;if(jd(s)){var x=Ua(s);L=x.length}if(y>=L)return s;var V=y-Vd(v);if(V<1)return v;var H=x?yc(x,0,V).join(""):s.slice(0,V);if(A===e)return H+v;if(x&&(V+=H.length-V),AS(A)){if(s.slice(V).search(A)){var fe,pe=H;for(A.global||(A=$_(A.source,ur(bC.exec(A))+"g")),A.lastIndex=0;fe=A.exec(pe);)var ye=fe.index;H=H.slice(0,ye===e?V:ye)}}else if(s.indexOf(xi(A),V)!=V){var Ae=H.lastIndexOf(A);Ae>-1&&(H=H.slice(0,Ae))}return H+v}function ooe(s){return s=ur(s),s&&EZ.test(s)?s.replace(_C,Uee):s}var soe=Jd(function(s,c,y){return s+(y?" ":"")+c.toUpperCase()}),FS=WB("toUpperCase");function HU(s,c,y){return s=ur(s),c=y?e:c,c===e?Pee(s)?xee(s):vee(s):s.match(c)||[]}var WU=Rt(function(s,c){try{return Ui(s,e,c)}catch(y){return bS(y)?y:new ht(y)}}),uoe=cs(function(s,c){return ki(c,function(y){y=qa(y),go(s,y,OS(s[y],s))}),s});function coe(s){var c=s==null?0:s.length,y=st();return s=c?Pr(s,function(v){if(typeof v[1]!="function")throw new ea(i);return[y(v[0]),v[1]]}):[],Rt(function(v){for(var A=-1;++A$r)return[];var y=bt,v=Hn(s,bt);c=st(c),s-=bt;for(var A=j_(v,c);++y0||c<0)?new Ut(y):(s<0?y=y.takeRight(-s):s&&(y=y.drop(s)),c!==e&&(c=vt(c),y=c<0?y.dropRight(-c):y.take(c-s)),y)},Ut.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Ut.prototype.toArray=function(){return this.take(bt)},Io(Ut.prototype,function(s,c){var y=/^(?:filter|find|map|reject)|While$/.test(c),v=/^(?:head|last)$/.test(c),A=F[v?"take"+(c=="last"?"Right":""):c],L=v||/^find/.test(c);A&&(F.prototype[c]=function(){var x=this.__wrapped__,V=v?[1]:arguments,H=x instanceof Ut,fe=V[0],pe=H||Nt(x),ye=function(Lt){var Mt=A.apply(F,cc([Lt],V));return v&&Ae?Mt[0]:Mt};pe&&y&&typeof fe=="function"&&fe.length!=1&&(H=pe=!1);var Ae=this.__chain__,ze=!!this.__actions__.length,ct=L&&!Ae,St=H&&!ze;if(!L&&pe){x=St?x:new Ut(this);var it=s.apply(x,V);return it.__actions__.push({func:$N,args:[ye],thisArg:e}),new ta(it,Ae)}return ct&&St?s.apply(this,V):(it=this.thru(ye),ct?v?it.value()[0]:it.value():it)})}),ki(["pop","push","shift","sort","splice","unshift"],function(s){var c=yN[s],y=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",v=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var A=arguments;if(v&&!this.__chain__){var L=this.value();return c.apply(Nt(L)?L:[],A)}return this[y](function(x){return c.apply(Nt(x)?x:[],A)})}}),Io(Ut.prototype,function(s,c){var y=F[c];if(y){var v=y.name+"";sr.call(Gd,v)||(Gd[v]=[]),Gd[v].push({name:c,func:y})}}),Gd[kN(e,M).name]=[{name:"wrapper",func:e}],Ut.prototype.clone=ste,Ut.prototype.reverse=ute,Ut.prototype.value=cte,F.prototype.at=qne,F.prototype.chain=xne,F.prototype.commit=Mne,F.prototype.next=jne,F.prototype.plant=Kne,F.prototype.reverse=$ne,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=Gne,F.prototype.first=F.prototype.head,Vp&&(F.prototype[Vp]=Vne),F},dc=Mee();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Pn._=dc,define(function(){return dc})):pl?((pl.exports=dc)._=dc,L_._=dc):Pn._=dc}).call(Sp)});var rL=O(Wo=>{"use strict";d();p();f();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.EntityDataNode=Wo.RootNode=Wo.GraphNode=Wo.Edge=void 0;var wv=An(),XF=class{constructor(t,r,n,i=!1){S(this,"edgeName");S(this,"id");S(this,"isAbstractEdge");S(this,"isExternal",!1);S(this,"isInaccessible",!1);S(this,"node");S(this,"visitedIndices",new Set);this.edgeName=i?`... on ${n}`:n,this.id=t,this.isAbstractEdge=i,this.node=r}isEdgeInaccessible(){return this.isInaccessible||this.node.isInaccessible}};Wo.Edge=XF;var ZF=class{constructor(t,r,n){S(this,"externalFieldSets",new Set);S(this,"fieldDataByName",new Map);S(this,"headToTailEdges",new Map);S(this,"entityEdges",new Array);S(this,"nodeName");S(this,"hasEntitySiblings",!1);S(this,"isAbstract");S(this,"isInaccessible",!1);S(this,"isLeaf",!1);S(this,"isRootNode",!1);S(this,"satisfiedFieldSets",new Set);S(this,"subgraphName");S(this,"typeName");this.isAbstract=!!(n!=null&&n.isAbstract),this.isLeaf=!!(n!=null&&n.isLeaf),this.nodeName=`${t}.${r}`,this.subgraphName=t,this.typeName=r}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,wv.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);for(let r of t){let n=this.headToTailEdges.get(r);n&&(n.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,r){for(let n of t.entityEdges)(0,wv.add)(r,n.node.nodeName)&&this.getAccessibleEntityNodeNames(n.node,r)}};Wo.GraphNode=ZF;var eL=class{constructor(t){S(this,"fieldDataByName",new Map);S(this,"headToSharedTailEdges",new Map);S(this,"isAbstract",!1);S(this,"isRootNode",!0);S(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[r,n]of this.headToSharedTailEdges)if(!t.has(r))for(let i of n)i.isInaccessible=!0}};Wo.RootNode=eL;var tL=class{constructor(t){S(this,"fieldSetsByTargetSubgraphName",new Map);S(this,"targetSubgraphNamesByFieldSet",new Map);S(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,r){(0,wv.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(r),(0,wv.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,r,()=>new Set).add(t)}};Wo.EntityDataNode=tL});var nL=O(cn=>{"use strict";d();p();f();Object.defineProperty(cn,"__esModule",{value:!0});cn.ROOT_TYPE_NAMES=cn.QUOTATION_JOIN=cn.NOT_APPLICABLE=cn.LITERAL_SPACE=cn.LITERAL_PERIOD=cn.SUBSCRIPTION=cn.QUERY=cn.MUTATION=void 0;cn.MUTATION="Mutation";cn.QUERY="Query";cn.SUBSCRIPTION="Subscription";cn.LITERAL_PERIOD=".";cn.LITERAL_SPACE=" ";cn.NOT_APPLICABLE="N/A";cn.QUOTATION_JOIN='", "';cn.ROOT_TYPE_NAMES=new Set([cn.MUTATION,cn.QUERY,cn.SUBSCRIPTION])});var lX=O(Pv=>{"use strict";d();p();f();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.MAX_RESOLVABILITY_PATH_SIZE=void 0;Pv.MAX_RESOLVABILITY_PATH_SIZE=5});var sL=O(mo=>{"use strict";d();p();f();Object.defineProperty(mo,"__esModule",{value:!0});mo.newRootFieldData=ZVe;mo.generateResolvabilityErrorReasons=oL;mo.generateSharedResolvabilityErrorReasons=dX;mo.generateSelectionSetSegments=Fv;mo.renderSelectionSet=Lv;mo.generateRootResolvabilityErrors=nKe;mo.generateEntityResolvabilityErrors=iKe;mo.generateSharedEntityResolvabilityErrors=aKe;mo.getMultipliedRelativeOriginPaths=oKe;var iL=bi(),aL=An(),Qn=nL(),XVe=lX();function ZVe(e,t,r){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(r.size>1?"s":"")+`: "${[...r].join(Qn.QUOTATION_JOIN)}".`,subgraphNames:r}}function eKe(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- `+Qn.LITERAL_SPACE.repeat(t+3)+`... `+Qn.LITERAL_SPACE.repeat(t+2)+`} `}function oL({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:r}){let{externalSubgraphNames:n,fieldName:i,typeName:a,subgraphNames:o}=r,u=[t.message];if(n.size>0){let l=o.difference(n);u.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(l.size>1?"s":"")+`: "${[...l].join(Qn.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Qn.QUOTATION_JOIN)}".`)}else u.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(Qn.QUOTATION_JOIN)}".`);if(e){let l=!1;for(let[m,h]of e.fieldSetsByTargetSubgraphName)if(o.has(m)){l=!0;for(let N of h)e.subgraphName!==m&&u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${N}" to access subgraph "${m}".`)}l||u.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${a}.${i}" is defined.`),u.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`)}else t.subgraphNames.size>1&&u.push(`None of the subgraphs that shares the same root type field "${t.coords}" can provide a route to access "${i}".`),u.push(`The type "${a}" is not a descendant of an entity ancestor that can provide a shared route to access "${i}".`);return a!==(e==null?void 0:e.typeName)&&u.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),u}function tKe({entityAncestors:{subgraphNames:e,typeName:t},fieldSets:r,reasons:n,targetSubgraphName:i}){for(let a of r){let o=e.filter(l=>l!==i);if(o.length<1)continue;let u=o.length>1;n.push(`The entity ancestor${u?"s":""} "${t}" in subgraph${u?"s":""} "${o.join(Qn.QUOTATION_JOIN)}" do${u?"":"es"} not satisfy the key field set "${a}" to access subgraph "${i}".`)}}function rKe({coords:e,entityAncestors:{sourceSubgraphNamesBySatisfiedFieldSet:t,subgraphNames:r,typeName:n},fieldSets:i,reasons:a,targetSubgraphName:o}){let u=[],l=[];for(let m of i){let h=t.get(m);if(!h){let D=r.filter(C=>C!==o),R=D.length>1;u.push(`The entity ancestor${R?"s":""} "${n}" in subgraph${R?"s":""} "${D.join(Qn.QUOTATION_JOIN)}" do${R?"":"es"} not satisfy the key field set "${m}" to access subgraph "${o}".`);continue}let N=h.filter(D=>D!==o);if(N.length<1)continue;let T=N.length>1;l.push(`The entity ancestor "${n}" in subgraph${T?"s":""} "${N.join(Qn.QUOTATION_JOIN)}" ${T?"are":"is"} able to satisfy at least one key field set to access subgraph "${o}", but this still does not provide a route to resolve "${e}".`)}a.push(...l.length>0?l:u)}function dX({entityAncestors:e,rootFieldData:t,unresolvableFieldData:r}){let{externalSubgraphNames:n,fieldName:i,typeName:a,subgraphNames:o}=r,u=`${a}.${i}`,l=[t.message];if(n.size>0){let N=o.difference(n);l.push(`The field "${a}.${i}" is defined (and resolvable) in the following subgraph`+(N.size>1?"s":"")+`: "${[...N].join(Qn.QUOTATION_JOIN)}".`,`The field "${a}.${i}" is defined "@external" (and unresolvable) in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Qn.QUOTATION_JOIN)}".`)}else l.push(`The field "${a}.${i}" is defined in the following subgraph`+(o.size>1?"s":"")+`: "${[...o].join(Qn.QUOTATION_JOIN)}".`);let m=a===e.typeName,h=!1;for(let[N,T]of e.fieldSetsByTargetSubgraphName)o.has(N)&&(h=!0,m?tKe({coords:u,entityAncestors:e,fieldSets:T,reasons:l,targetSubgraphName:N}):rKe({coords:u,entityAncestors:e,fieldSets:T,reasons:l,targetSubgraphName:N}));if(!h){let N=e.subgraphNames.length>1;l.push(`The entity ancestor "${e.typeName}" in subgraph${N?"s":""} "${e.subgraphNames.join(Qn.QUOTATION_JOIN)}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${u}" is defined.`)}return l.push(`The type "${a}" is not a descendant of any other entity ancestors that can provide a shared route to access "${i}".`),a!==e.typeName&&l.push(`The type "${a}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),l}function Fv(e,t=XVe.MAX_RESOLVABILITY_PATH_SIZE){let r=e.split(new RegExp("(?<=\\w)\\.")),n="",i="",a=!1,o=r.length-t*2;t>0&&r.length>t*2+1&&(a=!0,r.splice(t+1,o-1));for(let u=0;u{"use strict";d();p();f();Object.defineProperty(Cv,"__esModule",{value:!0});Cv.NodeResolutionData=void 0;var pX=bi(),vd,cL=class cL{constructor({fieldDataByName:t,isResolved:r=!1,resolvedDescendantNames:n,resolvedFieldNames:i,typeName:a}){Xd(this,vd,!1);S(this,"fieldDataByName");S(this,"resolvedDescendantNames");S(this,"resolvedFieldNames");S(this,"typeName");KS(this,vd,r),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(n),this.resolvedFieldNames=new Set(i),this.typeName=a}addData({resolvedDescendantNames:t,resolvedFieldNames:r}){for(let n of r)this.addResolvedFieldName(n);for(let n of t)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,pX.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}addExternalSubgraphName({fieldName:t,subgraphName:r}){let n=this.fieldDataByName.get(t);if(!n)throw(0,pX.unexpectedEdgeFatalError)(this.typeName,[t]);n.externalSubgraphNames.add(r)}copy(){return new cL({fieldDataByName:this.fieldDataByName,isResolved:VS(this,vd),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(VS(this,vd))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return KS(this,vd,!0),!0}};vd=new WeakMap;var uL=cL;Cv.NodeResolutionData=uL});var mX=O(Uv=>{"use strict";d();p();f();Object.defineProperty(Uv,"__esModule",{value:!0});Uv.EntityWalker=void 0;var sKe=Bv(),Xo=An(),lL=class{constructor({encounteredEntityNodeNames:t,index:r,relativeOriginPaths:n,resDataByNodeName:i,resDataByRelativeOriginPath:a,resolvedPaths:o,subgraphNameByUnresolvablePath:u,visitedEntities:l}){S(this,"encounteredEntityNodeNames");S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByRelativeOriginPath");S(this,"resolvedPaths");S(this,"selectionPathByEntityNodeName",new Map);S(this,"subgraphNameByUnresolvablePath");S(this,"visitedEntities");S(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=r,this.relativeOriginPaths=n,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.resolvedPaths=o,this.subgraphNameByUnresolvablePath=u,this.visitedEntities=l}getNodeResolutionData({node:{fieldDataByName:t,nodeName:r,typeName:n},selectionPath:i}){let a=(0,Xo.getValueOrDefault)(this.resDataByNodeName,r,()=>new sKe.NodeResolutionData({fieldDataByName:t,typeName:n}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let u of this.relativeOriginPaths){let l=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${u}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:r}){if(t.isEdgeInaccessible())return{visited:!1,areDescendantsResolved:!1};if(t.isExternal)return{visited:!1,areDescendantsResolved:!1,isExternal:!0};if(t.node.isLeaf)return{visited:!0,areDescendantsResolved:!0};let n=`${r}.${t.edgeName}`;return this.getNodeResolutionData({node:t.node,selectionPath:n}).areDescendantsResolved()?{visited:!0,areDescendantsResolved:!0}:(0,Xo.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,Xo.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>n),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:n}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:n}):(this.removeUnresolvablePaths({selectionPath:n,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,isRevisitedNode:m,visited:h}=this.visitEntityDescendantEdge({edge:o,selectionPath:r});i!=null||(i=m),this.propagateVisitedField({areDescendantsResolved:u,data:n,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:h})}return n.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:r}):this.addUnresolvablePaths({selectionPath:r,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;let l=(0,Xo.getValueOrDefault)(this.resDataByNodeName,a.nodeName,()=>r.copy());if(r.addResolvedFieldName(n),l.addResolvedFieldName(n),t&&r.resolvedDescendantNames.add(n),this.relativeOriginPaths){for(let h of this.relativeOriginPaths){let N=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${h}${o}`,()=>r.copy());N.addResolvedFieldName(n),t&&(N.resolvedDescendantNames.add(n),this.removeUnresolvablePaths({selectionPath:`.${n}`,removeDescendantPaths:!0}))}return}let m=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,o,()=>r.copy());m.addResolvedFieldName(n),t&&m.resolvedDescendantNames.add(n)}addUnresolvablePaths({selectionPath:t,subgraphName:r}){if(!this.relativeOriginPaths){if(this.resolvedPaths.has(t))return;(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>r);return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;this.resolvedPaths.has(i)||(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,i,()=>r)}}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:r}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),r)for(let n of this.subgraphNameByUnresolvablePath.keys())n.startsWith(t)&&(this.subgraphNameByUnresolvablePath.delete(n),this.resolvedPaths.add(n));return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),this.resolvedPaths.add(i),r)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&(this.subgraphNameByUnresolvablePath.delete(a),this.resolvedPaths.add(a))}}};Uv.EntityWalker=lL});var hX=O(qv=>{"use strict";d();p();f();Object.defineProperty(qv,"__esModule",{value:!0});qv.RootFieldWalker=void 0;var Zo=An(),kv=Bv(),dL=class{constructor({index:t,nodeResolutionDataByNodeName:r}){S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByPath",new Map);S(this,"entityNodeNamesByPath",new Map);S(this,"pathsByEntityNodeName",new Map);S(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=r}visitEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Zo.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${r}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.resDataByNodeName.get(t.nodeName);if(n)return{visited:!0,areDescendantsResolved:n.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:r});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,visited:m}=this.visitEdge({edge:o,selectionPath:r});this.propagateVisitedField({areDescendantsResolved:u,data:i,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:m})}return i.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Zo.getValueOrDefault)(this.entityNodeNamesByPath,`${r}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getSharedNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:u}=this.visitSharedEdge({edge:a,selectionPath:r});this.propagateSharedVisitedField({areDescendantsResolved:u,data:n,fieldName:i,node:t,visited:o})}return n.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy()),n}getSharedNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy())}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;r.addResolvedFieldName(n);let l=(0,Zo.getValueOrDefault)(this.resDataByPath,o,()=>new kv.NodeResolutionData({fieldDataByName:a.fieldDataByName,typeName:a.typeName}));l.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),l.resolvedDescendantNames.add(n))}propagateSharedVisitedField({areDescendantsResolved:t,data:r,fieldName:n,node:i,visited:a}){if(!a)return;r.addResolvedFieldName(n);let o=(0,Zo.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),o.resolvedDescendantNames.add(n))}visitRootFieldEdges({edges:t,rootTypeName:r}){let n=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=n?this.visitSharedEdge({edge:i,selectionPath:r}):this.visitEdge({edge:i,selectionPath:r});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};qv.RootFieldWalker=dL});var jv=O(Mv=>{"use strict";d();p();f();Object.defineProperty(Mv,"__esModule",{value:!0});Mv.Graph=void 0;var Op=rL(),Dp=sL(),hi=An(),xv=nL(),uKe=mX(),cKe=hX(),fL=class{constructor(){S(this,"edgeId",-1);S(this,"entityDataNodeByTypeName",new Map);S(this,"nodeByNodeName",new Map);S(this,"nodesByTypeName",new Map);S(this,"resolvedRootFieldNodeNames",new Set);S(this,"rootNodeByTypeName",new Map);S(this,"subgraphName",xv.NOT_APPLICABLE);S(this,"resDataByNodeName",new Map);S(this,"resDataByRelativePathByEntity",new Map);S(this,"visitedEntitiesByOriginEntity",new Map);S(this,"walkerIndex",-1)}getRootNode(t){return(0,hi.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Op.RootNode(t))}addOrUpdateNode(t,r){let n=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(n);if(i)return i.isAbstract||(i.isAbstract=!!(r!=null&&r.isAbstract)),!i.isLeaf&&(r!=null&&r.isLeaf)&&(i.isLeaf=!0),i;let a=new Op.GraphNode(this.subgraphName,t,r);return this.nodeByNodeName.set(n,a),(0,hi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,r,n,i=!1){if(t.isRootNode){let u=new Op.Edge(this.getNextEdgeId(),r,n);return(0,hi.getValueOrDefault)(t.headToSharedTailEdges,n,()=>[]).push(u),u}let a=t,o=new Op.Edge(this.getNextEdgeId(),r,i?r.typeName:n,i);return a.headToTailEdges.set(n,o),o}addEntityDataNode(t){let r=this.entityDataNodeByTypeName.get(t);if(r)return r;let n=new Op.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,n),n}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let r=this.nodesByTypeName.get(t);if(r)for(let n of r)n.isInaccessible=!0}initializeNode(t,r){let n=this.entityDataNodeByTypeName.get(t);if(xv.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(r),a.fieldDataByName=r;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=r,a.handleInaccessibleEdges(),a.isLeaf=!1,!!n){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){if(a.externalFieldSets.has(o))continue;let u=n.targetSubgraphNamesByFieldSet.get(o);for(let l of u!=null?u:[]){if(l===a.subgraphName)continue;let m=this.nodeByNodeName.get(`${l}.${a.typeName}`);m&&a.entityEdges.push(new Op.Edge(this.getNextEdgeId(),m,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:r,relativeOriginPaths:n,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}){let l=this.nodeByNodeName.get(r);if(!l)throw new Error(`Fatal: Could not find entity node for "${r}".`);u.add(r);let m=this.nodesByTypeName.get(l.typeName);if(!(m!=null&&m.length))throw new Error(`Fatal: Could not find any nodes for "${r}".`);let h=new uKe.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:n,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}),N=l.getAllAccessibleEntityNodeNames();for(let T of m){if(T.nodeName!==l.nodeName&&!N.has(T.nodeName))continue;let{areDescendantsResolved:D}=h.visitEntityDescendantConcreteNode({node:T,selectionPath:""});if(D)return}for(let[T,D]of h.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:T,relativeOriginPaths:(0,Dp.getMultipliedRelativeOriginPaths)({relativeOriginPaths:n,selectionPath:D}),resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[r,n]of t.headToSharedTailEdges){let i=n.length>1;if(!i){let h=n[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(h))continue;this.resolvedRootFieldNodeNames.add(h)}let a=new cKe.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:n,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let u=(0,hi.getOrThrowError)(t.fieldDataByName,r,"fieldDataByName"),l=(0,Dp.newRootFieldData)(t.typeName,r,u.subgraphNames);if(!o)return{errors:(0,Dp.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let m=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!m.success)return m}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),u=(0,hi.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=r.get(o);if(l){if(u.addData(l),l.addData(u),!u.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),n.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of n.keys()){let o=(0,hi.getOrThrowError)(r,a,"resDataByRelativeOriginPath"),u=`${t}${a}`,l=i.resDataByPath.get(u);l&&(o.addData(l),l.addData(o)),o.isResolved()&&n.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:r}){let n=new Set;for(let[i,a]of r.entityNodeNamesByPath){if(r.unresolvablePaths.size<1)return{success:!0};let o=new Map,u=new Map;for(let l of a)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:u,resolvedPaths:n,subgraphNameByUnresolvablePath:o,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)&&(this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)))return{errors:(0,Dp.generateSharedEntityResolvabilityErrors)({entityAncestors:this.getEntityAncestorCollection(a),pathFromRoot:i,resDataByPath:u,rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return r.unresolvablePaths.size>0?{errors:(0,Dp.generateRootResolvabilityErrors)({resDataByPath:r.resDataByPath,rootFieldData:t,unresolvablePaths:r.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:r}){var i;let n=new Set;for(let[a,o]of r.pathsByEntityNodeName){let u=new Map;if(this.resDataByNodeName.has(a))continue;let l=(0,hi.getValueOrDefault)(this.resDataByRelativePathByEntity,a,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:a,resDataByRelativeOriginPath:l,resolvedPaths:n,subgraphNameByUnresolvablePath:u,visitedEntities:(0,hi.getValueOrDefault)(this.visitedEntitiesByOriginEntity,a,()=>new Set)}),!(u.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:a,pathFromRoot:(i=(0,hi.getFirstEntry)(o))!=null?i:"",rootFieldData:t,subgraphNameByUnresolvablePath:u}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:r,rootFieldData:n,subgraphNameByUnresolvablePath:i}){let a=(0,hi.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(xv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:u}=(0,hi.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Dp.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:u,subgraphName:"",typeName:o},pathFromRoot:r,resDataByPath:a,rootFieldData:n,subgraphNameByUnresolvablePath:i})}getEntityAncestorCollection(t){let r=(0,hi.getFirstEntry)(t).split(xv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:n}=(0,hi.getOrThrowError)(this.entityDataNodeByTypeName,r,"entityDataNodeByTypeName"),i=new Array,a=new Map;for(let o of t){let{satisfiedFieldSets:u,subgraphName:l}=(0,hi.getOrThrowError)(this.nodeByNodeName,o,"nodeByNodeName");for(let m of u)(0,hi.getValueOrDefault)(a,m,()=>[]).push(l);i.push(l)}return{fieldSetsByTargetSubgraphName:n,sourceSubgraphNamesBySatisfiedFieldSet:a,subgraphNames:i,typeName:r}}};Mv.Graph=fL});var hL=O(Kv=>{"use strict";d();p();f();Object.defineProperty(Kv,"__esModule",{value:!0});Kv.upsertDirectiveSchemaAndEntityDefinitions=fKe;Kv.upsertParentsAndChildren=pKe;var ln=ve(),al=bi(),mL=zo(),Vv=vp(),Ap=kn(),pL=_p(),lKe=xs(),bp=Zc(),Fy=Jo(),dKe=hd(),La=xr(),jn=An();function fKe(e,t){(0,ln.visit)(t,{Directive:{enter(r){let n=r.name.value;return e.referencedDirectiveNames.add(n),lKe.EVENT_DIRECTIVE_NAMES.has(n)?(e.edfsDirectiveReferences.add(n),!1):(mL.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n)&&(e.isSubgraphVersionTwo=!0),!1)}},DirectiveDefinition:{enter(r){return e.addDirectiveDefinitionDataByNode(r)&&e.customDirectiveDefinitionByName.set(r.name.value,r),!1}},InterfaceTypeDefinition:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,jn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},InterfaceTypeExtension:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,jn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},ObjectTypeDefinition:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value;(0,Ap.isNodeInterfaceObject)(r)&&(e.entityInterfaceDataByTypeName.set(n,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:n}),e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}));let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},ObjectTypeExtension:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value,i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},OperationTypeDefinition:{enter(r){let n=r.operation,i=e.schemaData.operationTypes.get(n),a=(0,Fy.getTypeNodeNamedTypeName)(r.type);if(i)return e.errors.push((0,al.duplicateOperationTypeDefinitionError)(n,a,(0,Fy.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,al.invalidOperationTypeDefinitionError)(o,a,n)),!1):(e.operationTypeNodeByTypeName.set(a,n),e.schemaData.operationTypes.set(n,r),!1)}},SchemaDefinition:{enter(r){e.schemaData.description=r.description,e.extractDirectives(r,e.schemaData.directivesByName)}},SchemaExtension:{enter(r){e.extractDirectives(r,e.schemaData.directivesByName)}}})}function pKe(e,t){let r=!1,n;(0,ln.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(o.kind!==ln.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,jn.kindToNodeType)(o.kind),a,(0,jn.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,al.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:ln.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Fy.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,federatedDirectivesData:(0,bp.newFederatedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Ap.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=ln.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(r&&La.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);(0,jn.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),n&&!n.isAbstract&&e.internalGraph.addEdge(n,e.internalGraph.addOrUpdateNode(o),a),mL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(!(0,bp.isParentDataCompositeOutputType)(u)){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,jn.kindToNodeType)(u.kind),a,(0,jn.kindToNodeType)(i.kind)));return}if(u.fieldDataByName.has(a)){e.errors.push((0,al.duplicateFieldDefinitionError)((0,jn.kindToNodeType)(u.kind),u.name,a));return}let l=e.extractArguments(new Map,i),m=e.extractDirectives(i,new Map),h=new Set;e.handleFieldInheritableDirectives({directivesByName:m,fieldName:a,inheritedDirectiveNames:h,parentData:u});let N=e.addFieldDataByNode(u.fieldDataByName,i,l,m,h);r&&e.extractEventDirectivesToConfiguration(i,l);let T=N.directivesByName.get(La.PROVIDES),D=N.directivesByName.get(La.REQUIRES);if(!D&&!T)return;let R=e.entityDataByTypeName.get(e.originalParentTypeName),C=(0,jn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,pL.newFieldSetData);T&&(0,pL.extractFieldSetValue)(a,C.provides,T),D&&(R||e.warnings.push((0,dKe.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,pL.extractFieldSetValue)(a,C.requires,D))},leave(){e.lastChildNodeKind=ln.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=ln.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=ln.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==ln.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==ln.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);mL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(u.kind!==ln.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,jn.kindToNodeType)(u.kind),a,(0,jn.kindToNodeType)(i.kind))),!1;if(u.inputValueDataByName.has(a)){e.errors.push((0,al.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:u.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===ln.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=ln.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var yL=O($v=>{"use strict";d();p();f();Object.defineProperty($v,"__esModule",{value:!0});$v.newFieldSetConditionData=mKe;$v.newConfigurationData=hKe;function mKe({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function hKe(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var TL=O(Rp=>{"use strict";d();p();f();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.NormalizationFactory=void 0;Rp.normalizeSubgraphFromString=EKe;Rp.normalizeSubgraph=gKe;var W=ve(),Kr=kn(),yi=_p(),Yn=zo(),Vn=vp(),ne=bi(),Gv=xs(),yKe=XR(),Rn=Iy(),es=hd(),yX=hL(),ts=Xh(),Dt=Zc(),Vr=Jo(),EX=jv(),Qv=XI(),X=xr(),NKe=Xf(),et=An(),Ly=yL(),NX=ZI(),TKe=YP(),TX=Oy();function EKe({noLocation:e,options:t,sdlString:r}){let{error:n,documentNode:i}=(0,Kr.safeParse)(r,e);return n||!i?{errors:[(0,ne.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Cy({internalGraph:new EX.Graph,options:t}).normalize(i)}function gKe({document:e,internalGraph:t,options:r,subgraphName:n}){return new Cy({internalGraph:t||new EX.Graph,options:r,subgraphName:n}).normalize(e)}var _d,NL,gX,Cy=class{constructor({internalGraph:t,options:r,subgraphName:n}){Xd(this,_d);S(this,"argumentName","");S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"conditionalFieldDataByCoords",new Map);S(this,"configurationDataByTypeName",new Map);S(this,"costs",{fieldWeights:new Map,listSizes:new Map,typeWeights:new Map,directiveArgumentWeights:new Map});S(this,"customDirectiveDefinitionByName",new Map);S(this,"definedDirectiveNames",new Set);S(this,"directiveDefinitionByName",new Map);S(this,"directiveDefinitionDataByName",(0,yi.initializeDirectiveDefinitionDatas)());S(this,"doesParentRequireFetchReasons",!1);S(this,"edfsDirectiveReferences",new Set);S(this,"errors",new Array);S(this,"entityDataByTypeName",new Map);S(this,"entityInterfaceDataByTypeName",new Map);S(this,"eventsConfigurations",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"fieldSetDataByTypeName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalGraph");S(this,"invalidConfigureDescriptionNodeDatas",[]);S(this,"invalidORScopesCoords",new Set);S(this,"invalidRepeatedDirectiveNameByCoords",new Map);S(this,"isParentObjectExternal",!1);S(this,"isParentObjectShareable",!1);S(this,"isSubgraphEventDrivenGraph",!1);S(this,"isSubgraphVersionTwo",!1);S(this,"keyFieldSetDatasByTypeName",new Map);S(this,"lastParentNodeKind",W.Kind.NULL);S(this,"lastChildNodeKind",W.Kind.NULL);S(this,"options");S(this,"parentTypeNamesWithAuthDirectives",new Set);S(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);S(this,"keyFieldNamesByParentTypeName",new Map);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"operationTypeNodeByTypeName",new Map);S(this,"originalParentTypeName","");S(this,"originalTypeNameByRenamedTypeName",new Map);S(this,"overriddenFieldNamesByTypeNameByTargetSubgraphName",new Map);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"referencedDirectiveNames",new Set);S(this,"referencedTypeNames",new Set);S(this,"renamedParentTypeName","");S(this,"schemaData");S(this,"subgraphName");S(this,"unvalidatedExternalFieldCoords",new Set);S(this,"usesEdfsNatsStreamConfiguration",!1);S(this,"warnings",[]);this.options=r!=null?r:{},this.subgraphName=n||X.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByName:new Map,kind:W.Kind.SCHEMA_DEFINITION,name:X.SCHEMA,operationTypes:new Map}}validateArguments(t,r){for(let n of t.argumentDataByName.values()){let i=(0,Vr.getTypeNodeNamedTypeName)(n.type);if(Yn.BASE_SCALARS.has(i)){n.namedTypeKind=W.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Dt.isInputNodeKind)(a.kind)){n.namedTypeKind=a.kind,(0,Dt.sanitizeDefaultValue)({data:n,namedTypeData:a,node:n.node});continue}this.errors.push((0,ne.invalidNamedTypeError)({data:n,namedTypeData:a,nodeType:`${(0,et.kindToNodeType)(r)} field argument`}))}}}isTypeNameRootType(t){return X.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}handleFieldInheritableDirectives({directivesByName:t,fieldName:r,inheritedDirectiveNames:n,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(X.REQUIRE_FETCH_REASONS)&&(t.set(X.REQUIRE_FETCH_REASONS,[(0,et.generateSimpleDirective)(X.REQUIRE_FETCH_REASONS)]),n.add(X.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(X.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(r),(0,Vn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(X.EXTERNAL)&&(t.set(X.EXTERNAL,[(0,et.generateSimpleDirective)(X.EXTERNAL)]),n.add(X.EXTERNAL)),t.has(X.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${r}`),this.isParentObjectShareable&&!t.has(X.SHAREABLE)&&(t.set(X.SHAREABLE,[(0,et.generateSimpleDirective)(X.SHAREABLE)]),n.add(X.SHAREABLE)))}extractDirectives(t,r){if(!t.directives)return r;let n=(0,Vn.isCompositeOutputNodeKind)(t.kind),i=(0,Vn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===X.SHAREABLE?(0,et.getValueOrDefault)(r,o,()=>[a]):(0,et.getValueOrDefault)(r,o,()=>[]).push(a),n&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===X.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===X.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===X.SHAREABLE)))}return r}validateDirective({data:t,definitionData:r,directiveCoords:n,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let u=i.name.value,l=t.kind===W.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,m=u===X.AUTHENTICATED,h=u===X.COST,N=(0,Dt.isFieldData)(t),T=u===X.LIST_SIZE,D=u===X.OVERRIDE,R=u===X.REQUIRES_SCOPES,C=u===X.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return r.requiredArgumentNames.size>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,[])),m&&this.handleAuthenticatedDirective(t,l),N&&(C&&((0,Dt.isTypeRequired)(t.type)?a.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,Rn.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),T&&!(0,Dt.isTypeNodeListType)(t.type)&&a.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(n,(0,Rn.printTypeNode)(t.type))),!h&&!T&&this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),a;let M=new Set,Y=new Set,ee=new Set,ae=[];for(let Le of i.arguments){let Ve=Le.name.value;if(M.has(Ve)){Y.add(Ve);continue}M.add(Ve);let ot=r.argumentDataByName.get(Ve);if(!ot){ee.add(Ve);continue}if(!(0,TKe.isArgumentValueValid)({argumentValue:Le.value,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,typeNode:ot.type})){a.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Le.value),`@${u}`,Ve,(0,Rn.printTypeNode)(ot.type)));continue}if(D&&N){this.handleOverrideDirective({data:t,directiveCoords:n,errorMessages:a,targetSubgraphName:Le.value.value});continue}if(C&&N){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!R||Ve!==X.SCOPES||this.extractRequiredScopes({directiveCoords:n,orScopes:Le.value.values,requiredScopes:ae})}h?this.handleCostDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):N&&(T?this.handleListSizeDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),Y.size>0&&a.push((0,ne.duplicateDirectiveArgumentDefinitionsErrorMessage)([...Y])),ee.size>0&&a.push((0,ne.unexpectedDirectiveArgumentErrorMessage)(u,[...ee]));let Ne=(0,et.getEntriesNotInHashSet)(o,M);if(Ne.length>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,Ne)),a.length>0||!R)return a;let _e=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Vn.newAuthorizationData)(l));if(t.kind!==W.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),_e.requiredScopes.push(...ae);else{let Le=(0,et.getValueOrDefault)(_e.fieldAuthDataByFieldName,t.name,()=>(0,Vn.newFieldAuthorizationData)(t.name));Le.inheritedData.requiredScopes.push(...ae),Le.originalData.requiredScopes.push(...ae)}return a}handleComposeDirective(t){let r=t.arguments[0];if(!r)return;let n=r.value.value;if(!n.startsWith(X.LITERAL_AT)){this.errors.push((0,ne.noLeadingAtComposeDirectiveNameError)(n));return}let i=n.substring(1);if(Yn.DIRECTIVE_DEFINITION_BY_NAME.has(i))if(i===X.ONE_OF)this.warnings.push((0,es.composedOneOfDirectiveWarning)(this.subgraphName));else{this.errors.push((0,ne.invalidComposeDirectiveNameError)(n));return}let a=this.directiveDefinitionDataByName.get(i);if(!a){this.errors.push((0,ne.unknownComposeDirectiveNameError)(n));return}let o=this.importDataByDirectiveName.get(n);if(!o){this.errors.push((0,ne.unimportedComposeDirectiveNameError)(n));return}a.majorVersion=o.majorVersion,a.minorVersion=o.minorVersion,a.isComposed=!0,this.federatedDirectiveDataByName.set(i,a)}handleExecutableDirectives(){for(let[t,r]of this.directiveDefinitionDataByName)r.isComposed||r.executableLocations.size<1||this.federatedDirectiveDataByName.set(t,r)}validateDirectives(t,r){var i;let n=new Set;for(let[a,o]of t.directivesByName){let u=this.directiveDefinitionDataByName.get(a);if(!u){n.has(a)||(this.errors.push((0,ne.undefinedDirectiveError)(a,r)),n.add(a));continue}u.isComposed&&(u.isReferenced=!0);let l=[],m=(0,Kr.nodeKindToDirectiveLocation)(t.kind);if(u.locations.has(m)||l.push((0,ne.invalidDirectiveLocationErrorMessage)(a,m)),o.length>1&&!u.isRepeatable){let N=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);N.has(a)||(N.add(a),l.push((0,ne.invalidRepeatedDirectiveErrorMessage)(a)))}let h=[...u.requiredArgumentNames];for(let N of(i=u.node.arguments)!=null?i:[]){if(!N.defaultValue)continue;let T=u.argumentDataByName.get(N.name.value);if(!T)continue;let D=this.parentDefinitionDataByTypeName.get((0,Vr.getTypeNodeNamedTypeName)(T.type));D&&(0,Dt.sanitizeDefaultValue)({data:T,namedTypeData:D,node:N})}for(let N=0;N0&&this.errors.push((0,ne.invalidDirectiveError)(a,r,(0,et.numberToOrdinal)(N+1),D))}}switch(t.kind){case W.Kind.ENUM_TYPE_DEFINITION:{for(let[a,o]of t.enumValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.FIELD_DEFINITION:{for(let[a,o]of t.argumentDataByName)this.validateDirectives(o,`${t.originalParentTypeName}.${t.name}(${a}: ...)`);return}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.inputValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.fieldDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}default:return}}getNodeExtensionType(t,r,n=!1){return t?ts.ExtensionType.REAL:n||!r.has(X.EXTENDS)?ts.ExtensionType.NONE:ts.ExtensionType.EXTENDS}setParentDataExtensionType(t,r){switch(t.extensionType){case ts.ExtensionType.EXTENDS:case ts.ExtensionType.NONE:{if(r===ts.ExtensionType.REAL)return;this.errors.push((0,ne.duplicateTypeDefinitionError)((0,et.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=r}}extractConfigureDescriptionData(t,r){var i,a;if(!r.arguments||r.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let n={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of r.arguments)switch(o.name.value){case X.PROPAGATE:{if(o.value.kind!==W.Kind.BOOLEAN)return;n.propagate=o.value.value;break}case X.DESCRIPTION_OVERRIDE:{if(o.value.kind!==W.Kind.STRING)return;n.description=o.value.value;break}default:return}!t.description&&!n.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,n)}extractConfigureDescriptionsData(t){let r=t.directivesByName.get(X.CONFIGURE_DESCRIPTION);r&&r.length==1&&this.extractConfigureDescriptionData(t,r[0])}extractImplementedInterfaceTypeNames(t,r){if(!t.interfaces)return r;let n=(0,Dt.isInterfaceNode)(t),i=t.name.value;for(let a of t.interfaces){let o=a.name.value;if(r.has(o)){this.errors.push((0,ne.duplicateImplementedInterfaceError)((0,Vn.kindToConvertedTypeString)(t.kind),i,o));continue}n&&(0,et.getValueOrDefault)(this.interfaceImplementationTypeNamesByInterfaceTypeName,o,()=>new Set).add(i),r.add(o)}return r}updateCompositeOutputDataByNode(t,r,n){this.setParentDataExtensionType(r,n),this.extractImplementedInterfaceTypeNames(t,r.implementedInterfaceTypeNames),r.description||(r.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(r),r.isEntity||(r.isEntity=r.directivesByName.has(X.KEY)),r.isInaccessible||(r.isInaccessible=r.directivesByName.has(X.INACCESSIBLE)),r.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,r){for(let n of t)(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(r),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(r),r,!0)}extractArguments(t,r){var o;if(!((o=r.arguments)!=null&&o.length))return t;let n=r.name.value,i=`${this.originalParentTypeName}.${n}`,a=new Set;for(let u of r.arguments){let l=u.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:n,inputValueDataByName:t,isArgument:!0,node:u,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,ne.duplicateArgumentsError)(i,[...a])),t}extractDirectiveArgumentData({argumentNodes:t,directiveName:r,errorMessages:n}){let i=new Map,a=new Set,o=new Set,u={argumentDataByName:i,optionalArgumentNames:a,requiredArgumentNames:o};if(!t)return u;let l=new Set;for(let m of t){let h=m.name.value;if(i.has(h)){l.add(h);continue}i.set(h,this.addDirectiveArgumentDataByNode({directiveName:r,node:m,optionalArgumentNames:a,requiredArgumentNames:o}))}return l.size>0&&n.push((0,ne.duplicateDirectiveDefinitionArgumentErrorMessage)([...l])),u}extractDirectiveArgumentCosts(t){var n;if(!t.arguments)return;let r=t.name.value;for(let i of t.arguments)if(i.directives)for(let a of i.directives){if(a.name.value!==X.COST)continue;let o=(n=a.arguments)==null?void 0:n.find(l=>l.name.value===X.WEIGHT);if(!o)continue;if(o.value.kind!==W.Kind.INT){let l=`@${r}(${i.name.value}: ...)`;this.errors.push((0,ne.invalidDirectiveError)(X.COST,l,"1st",[(0,ne.invalidArgumentValueErrorMessage)((0,W.print)(o.value),`@${X.COST}`,X.WEIGHT,"Int!")]));continue}let u=parseInt(o.value.value,10);this.costs.directiveArgumentWeights.set(`${r}.${i.name.value}`,u)}}addDirectiveArgumentDataByNode({directiveName:t,node:r,optionalArgumentNames:n,requiredArgumentNames:i}){let a=r.name.value,o=`@${t}`;r.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(r.type,r.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)(`argument "${a}"`,o,(0,Rn.printTypeNode)(r.type),(0,W.print)(r.defaultValue)));let u=(0,Dt.isTypeRequired)(r.type);r.defaultValue?n.add(a):u&&i.add(a);let l=(0,Vr.getTypeNodeNamedTypeName)(r.type),m=(0,TX.newDirectiveArgumentData)({name:a,directive:`@${t}`,directivesByName:this.extractDirectives(r,new Map),defaultValue:r.defaultValue,description:(0,Kr.formatDescription)(r.description),namedTypeKind:Yn.BASE_SCALARS.has(l)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,node:(0,Vr.getMutableInputValueNode)(r,o,this.errors),requiredSubgraphNames:new Set(u?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),typeNode:(0,Vr.getMutableTypeNode)(r.type,o,this.errors)});return this.extractConfigureDescriptionsData(m),m}addDirectiveDefinitionDataByNode(t){let r=t.name.value;if(this.definedDirectiveNames.has(r))return this.errors.push((0,ne.duplicateDirectiveDefinitionError)(r)),!1;this.definedDirectiveNames.add(r),this.extractDirectiveArgumentCosts(t);let n=Yn.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(r);if(n)return this.directiveDefinitionByName.set(r,n),this.isSubgraphVersionTwo=!0,!1;if(Yn.DIRECTIVE_DEFINITION_BY_NAME.has(r))return!1;this.directiveDefinitionByName.set(r,t);let i=[],{argumentDataByName:a,optionalArgumentNames:o,requiredArgumentNames:u}=this.extractDirectiveArgumentData({argumentNodes:t.arguments,directiveName:r,errorMessages:i}),{errors:l,locations:m}=(0,Vr.extractDirectiveLocations)(t);return l.length>0&&this.errors.push(...l),this.directiveDefinitionDataByName.set(r,(0,TX.newDirectiveDefinitionData)({argumentDataByName:a,description:t.description,isRepeatable:t.repeatable,locations:m,name:r,node:t,optionalArgumentNames:o,requiredArgumentNames:u,subgraphNames:new Set([this.subgraphName])})),i.length>0&&this.errors.push((0,ne.invalidDirectiveDefinitionError)(r,i)),!0}addFieldDataByNode(t,r,n,i,a=new Set){let o=r.name.value,u=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:m,isShareable:h}=(0,Dt.isNodeExternalOrShareable)(r,!this.isSubgraphVersionTwo,i),N=(0,Vr.getTypeNodeNamedTypeName)(r.type),T={argumentDataByName:n,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Dt.newExternalFieldData)(m)]]),federatedCoords:`${u}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(X.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,h]]),kind:W.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Yn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableFieldNode)(r,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(r.type,l,this.errors),directivesByName:i,description:(0,Kr.formatDescription)(r.description)};return Yn.BASE_SCALARS.has(T.namedTypeName)||this.referencedTypeNames.add(T.namedTypeName),this.extractConfigureDescriptionsData(T),t.set(o,T),T}addInputValueDataByNode({fieldName:t,inputValueDataByName:r,isArgument:n,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let u=o||a,l=i.name.value,m=n?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)((n?X.ARGUMENT:X.INPUT_FIELD)+` "${l}"`,m,(0,Rn.printTypeNode)(i.type),(0,W.print)(i.defaultValue)));let h=n?`${u}${t?`.${t}`:""}(${l}: ...)`:`${u}.${l}`,N=(0,Vr.getTypeNodeNamedTypeName)(i.type),T={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:h,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:n,kind:n?W.Kind.ARGUMENT:W.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Yn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableInputValueNode)(i,a,this.errors),originalCoords:m,originalParentTypeName:a,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,requiredSubgraphNames:new Set((0,Dt.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Kr.formatDescription)(i.description)};this.extractConfigureDescriptionsData(T),r.set(l,T)}upsertInterfaceDataByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a),u=this.entityInterfaceDataByTypeName.get(n);if(u&&t.fields)for(let m of t.fields)u.interfaceFieldNames.add(m.name.value);if(i){if(i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INTERFACE_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableInterfaceNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(n,l)}getRenamedRootTypeName(t){let r=this.operationTypeNodeByTypeName.get(t);if(!r)return t;switch(r){case W.OperationTypeNode.MUTATION:return X.MUTATION;case W.OperationTypeNode.SUBSCRIPTION:return X.SUBSCRIPTION;default:return X.QUERY}}addInterfaceObjectFieldsByNode(t){let r=t.name.value,n=this.entityInterfaceDataByTypeName.get(r);if(!(!n||!n.isInterfaceObject||!t.fields))for(let i of t.fields)n.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,r=!1){var h;let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(h=i==null?void 0:i.directivesByName)!=null?h:new Map),o=this.isTypeNameRootType(n),u=this.getNodeExtensionType(r,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==W.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,u),a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,n);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,n);let m={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:u,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),isRootType:o,kind:W.Kind.OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(n),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(m),this.parentDefinitionDataByTypeName.set(n,m)}upsertEnumDataByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let u={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.ENUM_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableEnumNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}upsertInputObjectByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i)return i.kind!==W.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableInputObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u),{success:!0,data:u}}upsertScalarByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.SCALAR_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableScalarNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractUnionMembers(t,r){if(!t.types)return r;let n=t.name.value;for(let i of t.types){let a=i.name.value;if(r.has(a)){this.errors.push((0,ne.duplicateUnionMemberDefinitionError)(n,a));continue}(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(a),Yn.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),r.set(a,i)}return r}upsertUnionByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==W.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:n,node:(0,Vr.getMutableUnionNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractKeyFieldSets(t,r){var a;let n=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,ne.expectedEntityError)(n));return}let i=0;for(let o of t.directives){if(o.name.value!==X.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let u,l=!1;for(let D of o.arguments){if(D.name.value===X.RESOLVABLE){D.value.kind===W.Kind.BOOLEAN&&!D.value.value&&(l=!0);continue}if(D.name.value!==X.FIELDS){u=void 0;break}if(D.value.kind!==W.Kind.STRING){u=void 0;break}u=D.value.value}if(u===void 0)continue;let{error:m,documentNode:h}=(0,Kr.safeParse)("{"+u+"}");if(m||!h){this.errors.push((0,ne.invalidDirectiveError)(X.KEY,n,(0,et.numberToOrdinal)(i),[(0,ne.unparsableFieldSetErrorMessage)(u,m)]));continue}let N=(0,yi.getNormalizedFieldSet)(h),T=r.get(N);T?T.isUnresolvable||(T.isUnresolvable=l):r.set(N,{documentNode:h,isUnresolvable:l,normalizedFieldSet:N,rawFieldSet:u})}}getFieldSetParent(t,r,n,i){if(!t)return{fieldSetParentData:r};let a=(0,et.getOrThrowError)(r.fieldDataByName,n,`${i}.fieldDataByFieldName`),o=(0,Vr.getTypeNodeNamedTypeName)(a.node.type),u=`${i}.${n}`;if(Yn.BASE_SCALARS.has(o))return{errorString:(0,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})};let l=this.parentDefinitionDataByTypeName.get(o);return l?l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION&&l.kind!==W.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,ne.unknownNamedTypeErrorMessage)(u,o)}}validateConditionalFieldSet(t,r,n,i,a){let{error:o,documentNode:u}=(0,Kr.safeParse)("{"+r+"}");if(o||!u)return{errorMessages:[(0,ne.unparsableFieldSetErrorMessage)(r,o)]};let l=this,m=[t],h=(0,yi.getConditionalFieldSetDirectiveName)(i),N=[],T=`${a}.${n}`,D=(0,yi.getInitialFieldCoordsPath)(i,T),R=[n],C=new Set,M=[],Y=-1,ee=!0,ae=n,Ne=!1;return(0,W.visit)(u,{Argument:{enter(){return!1}},Field:{enter(_e){var tr,$r;let Le=m[Y],Ve=Le.name;if(Le.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.invalidSelectionOnUnionErrorMessage)(r,D,Ve)),W.BREAK;let ot=_e.name.value,Z=`${Ve}.${ot}`;if(l.unvalidatedExternalFieldCoords.delete(Z),ee)return M.push((0,ne.invalidSelectionSetErrorMessage)(r,D,Ve,(0,et.kindToNodeType)(Le.kind))),W.BREAK;if(D.push(Z),R.push(ot),ae=ot,ot===X.TYPENAME){if(i)return M.push((0,ne.typeNameAlreadyProvidedErrorMessage)(Z,l.subgraphName)),W.BREAK;C.size<1&&Zd(tr=l,_d,NL).call(tr,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}let Se=Le.fieldDataByName.get(ot);if(!Se)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,Ve,ot)),W.BREAK;if(N[Y].has(ot))return M.push((0,ne.duplicateFieldInFieldSetErrorMessage)(r,Z)),W.BREAK;N[Y].add(ot);let{isDefinedExternal:Ft,isUnconditionallyProvided:pr}=(0,et.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),ar=Ft&&!pr;pr||(Ne=!0);let vr=(0,Vr.getTypeNodeNamedTypeName)(Se.node.type),mr=l.parentDefinitionDataByTypeName.get(vr);if(Yn.BASE_SCALARS.has(vr)||(mr==null?void 0:mr.kind)===W.Kind.SCALAR_TYPE_DEFINITION||(mr==null?void 0:mr.kind)===W.Kind.ENUM_TYPE_DEFINITION){if(C.size<1&&!Ft){Zd($r=l,_d,NL).call($r,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}if(C.size<1&&pr){l.isSubgraphVersionTwo?M.push((0,ne.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,h)):l.warnings.push((0,es.fieldAlreadyProvidedWarning)(Z,h,T,l.subgraphName));return}if(!ar&&!i)return;let Jn=(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData),fn=(0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...D],fieldPath:[...R]});i?Jn.providedBy.push(fn):Jn.requiredBy.push(fn);return}if(!mr)return M.push((0,ne.unknownTypeInFieldSetErrorMessage)(r,Z,vr)),W.BREAK;if(Ft&&(i&&(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData).providedBy.push((0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...D],fieldPath:[...R]})),C.add(Z)),mr.kind===W.Kind.OBJECT_TYPE_DEFINITION||mr.kind===W.Kind.INTERFACE_TYPE_DEFINITION||mr.kind===W.Kind.UNION_TYPE_DEFINITION){ee=!0,m.push(mr);return}},leave(){C.delete(D.pop()||""),R.pop()}},InlineFragment:{enter(_e){let Le=m[Y],Ve=Le.name,ot=D.length<1?t.name:D[D.length-1];if(!_e.typeCondition)return M.push((0,ne.inlineFragmentWithoutTypeConditionErrorMessage)(r,ot)),W.BREAK;let Z=_e.typeCondition.name.value;if(Z===Ve){m.push(Le),ee=!0;return}if(!(0,Kr.isKindAbstract)(Le.kind))return M.push((0,ne.invalidInlineFragmentTypeErrorMessage)(r,D,Z,Ve)),W.BREAK;let Se=l.parentDefinitionDataByTypeName.get(Z);if(!Se)return M.push((0,ne.unknownInlineFragmentTypeConditionErrorMessage)(r,D,Ve,Z)),W.BREAK;switch(ee=!0,Se.kind){case W.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(Ve))break;m.push(Se);return}case W.Kind.OBJECT_TYPE_DEFINITION:{let Ft=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!Ft||!Ft.has(Z))break;m.push(Se);return}case W.Kind.UNION_TYPE_DEFINITION:{m.push(Se);return}default:return M.push((0,ne.invalidInlineFragmentTypeConditionTypeErrorMessage)(r,D,Ve,Z,(0,et.kindToNodeType)(Se.kind))),W.BREAK}return M.push((0,ne.invalidInlineFragmentTypeConditionErrorMessage)(r,D,Z,(0,et.kindToNodeType)(Le.kind),Ve)),W.BREAK}},SelectionSet:{enter(){if(!ee){let _e=m[Y];if(_e.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;if(ae===X.TYPENAME)return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,D,X.STRING_SCALAR,(0,et.kindToNodeType)(W.Kind.SCALAR_TYPE_DEFINITION))),W.BREAK;let Le=_e.fieldDataByName.get(ae);if(!Le)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,_e.name,ae)),W.BREAK;let Ve=(0,Vr.getTypeNodeNamedTypeName)(Le.node.type),ot=l.parentDefinitionDataByTypeName.get(Ve),Z=ot?ot.kind:W.Kind.SCALAR_TYPE_DEFINITION;return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,D,Ve,(0,et.kindToNodeType)(Z))),W.BREAK}if(Y+=1,ee=!1,Y<0||Y>=m.length)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;N.push(new Set)},leave(){if(ee){let _e=m[Y+1];M.push((0,ne.invalidSelectionSetErrorMessage)(r,D,_e.name,(0,et.kindToNodeType)(_e.kind))),ee=!1}Y-=1,m.pop(),N.pop()}}}),M.length>0||!Ne?{errorMessages:M}:{configuration:{fieldName:n,selectionSet:(0,yi.getNormalizedFieldSet)(u)},errorMessages:M}}validateProvidesOrRequires(t,r,n){let i=[],a=[],o=(0,Dt.getParentTypeName)(t);for(let[u,l]of r){let{fieldSetParentData:m,errorString:h}=this.getFieldSetParent(n,t,u,o),N=`${o}.${u}`;if(h){i.push(h);continue}if(!m)continue;let{errorMessages:T,configuration:D}=this.validateConditionalFieldSet(m,l,u,n,o);if(T.length>0){i.push(` On field "${N}": - -`+T.join(X.HYPHEN_JOIN));continue}D&&a.push(D)}if(i.length>0){this.errors.push((0,ne.invalidProvidesOrRequiresDirectivesError)((0,yi.getConditionalFieldSetDirectiveName)(n),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let r=t.directivesByName.has(X.INACCESSIBLE),n=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(Yn.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!u)continue;if(u.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,et.kindToNodeType)(u.kind));continue}if(t.name===u.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},m=!1;for(let[h,N]of u.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${h}`);let T=!1,D=t.fieldDataByName.get(h);if(!D){m=!0,l.unimplementedFields.push(h);continue}let R={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Rn.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Dt.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:D.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:N.node.type})||(m=!0,T=!0,R.implementedResponseType=(0,Rn.printTypeNode)(D.node.type));let C=new Set;for(let[M,Y]of N.argumentDataByName){C.add(M);let ee=D.argumentDataByName.get(M);if(!ee){m=!0,T=!0,R.unimplementedArguments.add(M);continue}let ae=(0,Rn.printTypeNode)(ee.type),Ne=(0,Rn.printTypeNode)(Y.type);Ne!==ae&&(m=!0,T=!0,R.invalidImplementedArguments.push({actualType:ae,argumentName:M,expectedType:Ne}))}for(let[M,Y]of D.argumentDataByName)C.has(M)||Y.type.kind===W.Kind.NON_NULL_TYPE&&(m=!0,T=!0,R.invalidAdditionalArguments.add(M));!r&&D.isInaccessible&&!N.isInaccessible&&(m=!0,T=!0,R.isInaccessible=!0),T&&l.invalidFieldImplementations.set(h,R)}m&&n.set(o,l)}i.size>0&&this.errors.push((0,ne.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,ne.selfImplementationError)(t.name)),n.size>0&&this.errors.push((0,ne.invalidInterfaceImplementationError)(t.name,(0,et.kindToNodeType)(t.kind),n))}handleAuthenticatedDirective(t,r){let n=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,r,()=>(0,Vn.newAuthorizationData)(r));if(t.kind===W.Kind.FIELD_DEFINITION){let i=(0,et.getValueOrDefault)(n.fieldAuthDataByFieldName,t.name,()=>(0,Vn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else n.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(r)}handleOverrideDirective({data:t,directiveCoords:r,errorMessages:n,targetSubgraphName:i}){if(i===this.subgraphName){n.push((0,ne.equivalentSourceAndTargetOverrideErrorMessage)(i,r));return}let a=(0,et.getValueOrDefault)(this.overriddenFieldNamesByTypeNameByTargetSubgraphName,i,()=>new Map);(0,et.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:r,errorMessages:n}){var N;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case W.Kind.LIST_TYPE:{o+=1,a=a.type;break}case W.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let u=(N=r.arguments)==null?void 0:N.find(T=>T.name.value===X.LEVELS);if(!u||u.value.kind!==W.Kind.LIST){n.push(ne.semanticNonNullArgumentErrorMessage);return}let l=u.value.values,m=(0,Rn.printTypeNode)(t.type),h=new Set;for(let{value:T}of l){let D=parseInt(T,10);if(Number.isNaN(D)){n.push((0,ne.semanticNonNullLevelsNaNIndexErrorMessage)(T));continue}if(D<0||D>o){n.push((0,ne.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:m,value:T}));continue}if(!i.has(D)){h.add(D);continue}n.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:m,value:T}))}t.nullLevelsBySubgraphName.set(this.subgraphName,h)}getOrCreateFieldWeight(t,r){let n=`${t}.${r}`;return(0,et.getValueOrDefault)(this.costs.fieldWeights,n,()=>({typeName:t,fieldName:r,argumentWeights:new Map,directiveArgumentWeights:new Map}))}handleCostDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){var u;let a=(u=n.arguments)==null?void 0:u.find(l=>l.name.value===X.WEIGHT);if(!a||a.value.kind!==W.Kind.INT)return;let o=parseInt(a.value.value,10);switch(t.kind){case W.Kind.OBJECT_TYPE_DEFINITION:case W.Kind.SCALAR_TYPE_DEFINITION:case W.Kind.ENUM_TYPE_DEFINITION:this.costs.typeWeights.set(t.name,o);break;case W.Kind.FIELD_DEFINITION:{let l=t.renamedParentTypeName||t.originalParentTypeName,m=this.parentDefinitionDataByTypeName.get(l);if(!m)break;if(m.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}let h=this.getOrCreateFieldWeight(l,t.name);h.weight=o;break}case W.Kind.INPUT_VALUE_DEFINITION:case W.Kind.ARGUMENT:{let l=t;if(l.isArgument&&l.fieldName){let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.parentDefinitionDataByTypeName.get(m);if(!h)break;if(h.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}this.getOrCreateFieldWeight(m,l.fieldName).argumentWeights.set(l.name,o)}else{let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.getOrCreateFieldWeight(m,l.name);h.weight=o}break}}}recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:n,directiveNode:i}){var l,m;let a=t.renamedParentTypeName||t.originalParentTypeName,o=this.parentDefinitionDataByTypeName.get(a);if(!o||o.kind===W.Kind.INTERFACE_TYPE_DEFINITION)return;let u=new Map;for(let h of(l=i.arguments)!=null?l:[])u.set(h.name.value,h.value);for(let[h,N]of r.argumentDataByName){let T=`${n}.${h}`,D=this.costs.directiveArgumentWeights.get(T);if(D===void 0)continue;let R=u.get(h);if(R){if(R.kind===W.Kind.NULL)continue}else if(!N.defaultValue||N.defaultValue.kind===W.Kind.NULL)continue;let C=this.getOrCreateFieldWeight(a,t.name),M=(m=C.directiveArgumentWeights.get(T))!=null?m:0;C.directiveArgumentWeights.set(T,M+D)}}handleListSizeDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){let a=n.arguments;if(!a)return;let o=!1,u=t.renamedParentTypeName||t.originalParentTypeName,l={typeName:u,fieldName:t.name,slicingArguments:[],sizedFields:[],requireOneSlicingArgument:!0};for(let h of a)switch(h.name.value){case X.ASSUMED_SIZE:h.value.kind===W.Kind.INT&&(l.assumedSize=parseInt(h.value.value,10));break;case X.REQUIRE_ONE_SLICING_ARGUMENT:h.value.kind===W.Kind.BOOLEAN&&(l.requireOneSlicingArgument=h.value.value);break;case X.SLICING_ARGUMENTS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;for(let D of T){if(D.kind!==W.Kind.STRING)continue;let R=D.value,C=t.argumentDataByName.get(R);if(!C){i.push((0,ne.listSizeInvalidSlicingArgumentErrorMessage)(r,R));continue}if((C.type.kind===W.Kind.NON_NULL_TYPE?C.type.type:C.type).kind===W.Kind.LIST_TYPE||C.namedTypeName!==X.INT_SCALAR){i.push((0,ne.listSizeSlicingArgumentNotIntErrorMessage)(r,R,(0,Rn.printTypeNode)(C.type)));continue}l.slicingArguments.push(R)}break}case X.SIZED_FIELDS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;if(T.length<1)continue;o=!0;let D=t.namedTypeName,R=this.parentDefinitionDataByTypeName.get(D);if(!R||!(0,Dt.isParentDataCompositeOutputType)(R)){i.push((0,ne.listSizeSizedFieldsInvalidReturnTypeErrorMessage)(r,D));continue}for(let C of T){if(C.kind!==W.Kind.STRING)continue;let M=C.value,Y=R.fieldDataByName.get(M);if(!Y){i.push((0,ne.listSizeSizedFieldNotFoundErrorMessage)(r,M,D));continue}if(!(0,Dt.isTypeNodeListType)(Y.type)){i.push((0,ne.listSizeSizedFieldNotListErrorMessage)(r,M,D,(0,Rn.printTypeNode)(Y.type)));continue}l.sizedFields.push(M)}break}}if(!o&&!(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),o&&(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeSizedFieldsOnListsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),l.assumedSize!==void 0&&l.slicingArguments.length>0)if(l.requireOneSlicingArgument)i.push((0,ne.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage)(r));else for(let h of l.slicingArguments){let N=t.argumentDataByName.get(h);N!=null&&N.defaultValue&&i.push((0,ne.listSizeAssumedSizeSlicingArgDefaultErrorMessage)(r,h))}let m=`${u}.${t.name}`;this.costs.listSizes.set(m,l)}extractRequiredScopes({directiveCoords:t,orScopes:r,requiredScopes:n}){if(r.length>Yn.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of r){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,Vn.addScopes)(n,a)}}getKafkaPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPIC:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.TOPIC));continue}(0,yi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.PUBLISH}}getKafkaSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPICS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.TOPICS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.TOPICS));break}(0,yi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,r,n,i,a){let o=[],u=X.DEFAULT_EDFS_PROVIDER_ID;for(let l of r.arguments||[])switch(l.name.value){case X.SUBJECT:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push((0,ne.invalidEventSubjectErrorMessage)(X.SUBJECT));continue}(0,yi.validateArgumentTemplateReferences)(l.value.value,n,a),o.push(l.value.value);break}case X.PROVIDER_ID:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push(ne.invalidEventProviderIdErrorMessage);continue}u=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:u,providerType:X.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID,u=Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",m="";for(let h of t.arguments||[])switch(h.name.value){case X.SUBJECTS:{if(h.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.SUBJECTS));continue}for(let N of h.value.values){if(N.kind!==W.Kind.STRING||N.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.SUBJECTS));break}(0,yi.validateArgumentTemplateReferences)(N.value,r,i),a.push(N.value)}break}case X.PROVIDER_ID:{if(h.value.kind!==W.Kind.STRING||h.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=h.value.value;break}case X.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,h.value.kind!==W.Kind.OBJECT||h.value.fields.length<1){i.push(ne.invalidNatsStreamInputErrorMessage);continue}let N=!0,T=new Set,D=new Set(Gv.STREAM_CONFIGURATION_FIELD_NAMES),R=new Set([X.CONSUMER_NAME,X.STREAM_NAME]),C=new Set,M=new Set;for(let Y of h.value.fields){let ee=Y.name.value;if(!Gv.STREAM_CONFIGURATION_FIELD_NAMES.has(ee)){T.add(ee),N=!1;continue}if(D.has(ee))D.delete(ee);else{C.add(ee),N=!1;continue}switch(R.has(ee)&&R.delete(ee),ee){case X.CONSUMER_NAME:if(Y.value.kind!==W.Kind.STRING||Y.value.value.length<1){M.add(ee),N=!1;continue}l=Y.value.value;break;case X.STREAM_NAME:if(Y.value.kind!==W.Kind.STRING||Y.value.value.length<1){M.add(ee),N=!1;continue}m=Y.value.value;break;case X.CONSUMER_INACTIVE_THRESHOLD:if(Y.value.kind!==W.Kind.INT){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1;continue}try{u=parseInt(Y.value.value,10)}catch(ae){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1}break}}(!N||R.size>0)&&i.push((0,ne.invalidNatsStreamInputFieldsErrorMessage)([...R],[...C],[...M],[...T]))}}if(!(i.length>0))return u<0?(u=Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):u>NKe.MAX_INT32&&(u=0,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),q({fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_NATS,subjects:a,type:X.SUBSCRIBE},l&&m?{streamConfiguration:{consumerInactiveThreshold:u,consumerName:l,streamName:m}}:{})}getRedisPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNEL:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.CHANNEL));continue}(0,yi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.PUBLISH}}getRedisSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNELS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.CHANNELS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.CHANNELS));break}(0,yi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let r=this.renamedParentTypeName||this.originalParentTypeName,n=`${r}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(r)===W.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===X.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,ne.invalidSubscriptionFilterLocationError)(n));return}}extractEventDirectivesToConfiguration(t,r){if(!t.directives)return;let n=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${n}`;for(let a of t.directives){let o=[],u;switch(a.name.value){case X.EDFS_KAFKA_PUBLISH:u=this.getKafkaPublishConfiguration(a,r,n,o);break;case X.EDFS_KAFKA_SUBSCRIBE:u=this.getKafkaSubscribeConfiguration(a,r,n,o);break;case X.EDFS_NATS_PUBLISH:{u=this.getNatsPublishAndRequestConfiguration(X.PUBLISH,a,r,n,o);break}case X.EDFS_NATS_REQUEST:{u=this.getNatsPublishAndRequestConfiguration(X.REQUEST,a,r,n,o);break}case X.EDFS_NATS_SUBSCRIBE:{u=this.getNatsSubscribeConfiguration(a,r,n,o);break}case X.EDFS_REDIS_PUBLISH:{u=this.getRedisPublishConfiguration(a,r,n,o);break}case X.EDFS_REDIS_SUBSCRIBE:{u=this.getRedisSubscribeConfiguration(a,r,n,o);break}default:continue}if(o.length>0){this.errors.push((0,ne.invalidEventDirectiveError)(a.name.value,i,o));continue}u&&(0,et.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(u)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case W.OperationTypeNode.MUTATION:return new Set([X.EDFS_KAFKA_PUBLISH,X.EDFS_NATS_PUBLISH,X.EDFS_NATS_REQUEST,X.EDFS_REDIS_PUBLISH]);case W.OperationTypeNode.QUERY:return new Set([X.EDFS_NATS_REQUEST]);case W.OperationTypeNode.SUBSCRIPTION:return new Set([X.EDFS_KAFKA_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let r=this.operationTypeNodeByTypeName.get(t);if(r)return r;switch(t){case X.MUTATION:return W.OperationTypeNode.MUTATION;case X.QUERY:return W.OperationTypeNode.QUERY;case X.SUBSCRIPTION:return W.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,r,n,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,ne.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[u,l]of t.fieldDataByName){let m=`${l.originalParentTypeName}.${u}`,h=new Set;for(let M of Gv.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(M)&&h.add(M);let N=new Set;for(let M of h)o.has(M)||N.add(M);if((h.size<1||N.size>0)&&r.set(m,{definesDirectives:h.size>0,invalidDirectiveNames:[...N]}),a===W.OperationTypeNode.MUTATION){let M=(0,Rn.printTypeNode)(l.type);M!==X.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(m,M);continue}let T=(0,Rn.printTypeNode)(l.type),D=l.namedTypeName+"!",R=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let M of C)if(R||(R=this.entityDataByTypeName.has(M)),R)break;(!R||T!==D)&&n.set(m,T)}}validateEventDrivenKeyDefinition(t,r){let n=this.keyFieldSetDatasByTypeName.get(t);if(n)for(let[i,{isUnresolvable:a}]of n)a||(0,et.getValueOrDefault)(r,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,r,n,i){var a;for(let[o,u]of t){let l=`${u.originalParentTypeName}.${o}`;if(r.has(o)){(a=u.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||n.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(X.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==W.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!==1)return!1;for(let[r,n]of t.fieldDataByName)if(n.argumentDataByName.size>0||r!==X.SUCCESS||(0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,Dt.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!==3)return!1;for(let[r,n]of t.inputValueDataByName)switch(r){case X.CONSUMER_INACTIVE_THRESHOLD:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_INT||!n.defaultValue||n.defaultValue.kind!==W.Kind.INT||n.defaultValue.value!==`${Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case X.CONSUMER_NAME:case X.STREAM_NAME:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],r=new Map,n=new Map,i=new Map,a=new Map,o=new Map,u=new Map,l=new Set,m=new Set;for(let[h,N]of this.parentDefinitionDataByTypeName){if(h===X.EDFS_PUBLISH_RESULT||h===X.EDFS_NATS_STREAM_CONFIGURATION||N.kind!==W.Kind.OBJECT_TYPE_DEFINITION)continue;if(N.isRootType){this.validateEventDrivenRootType(N,r,n,i);continue}let T=this.keyFieldNamesByParentTypeName.get(h);if(!T){m.add(h);continue}this.validateEventDrivenKeyDefinition(h,a),this.validateEventDrivenObjectFields(N.fieldDataByName,T,o,u)}if(this.isEdfsPublishResultValid()||t.push(ne.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(X.EDFS_NATS_SUBSCRIBE)){let h=this.parentDefinitionDataByTypeName.get(X.EDFS_NATS_STREAM_CONFIGURATION);h&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(h)&&t.push(ne.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(X.EDFS_NATS_STREAM_CONFIGURATION);let N=this.upsertInputObjectByNode(NX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(N.success)for(let T of NX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:T.name.value,isArgument:!1,inputValueDataByName:N.data.inputValueDataByName,node:T,originalParentTypeName:X.EDFS_NATS_STREAM_CONFIGURATION});else return}r.size>0&&t.push((0,ne.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),i.size>0&&t.push((0,ne.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),n.size>0&&t.push((0,ne.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(n)),a.size>0&&t.push((0,ne.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,ne.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,ne.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,ne.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),m.size>0&&t.push((0,ne.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...m])),t.length>0&&this.errors.push((0,ne.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,ne.noDefinedUnionMembersError)(t.name));return}let r=[];for(let n of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(n);i&&i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&r.push(`"${n}", which is type "${(0,et.kindToNodeType)(i.kind)}"`)}r.length>0&&this.errors.push((0,ne.invalidUnionMemberTypeError)(t.name,r))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let r=t.name.value;for(let n of t.types){let i=n.name.value;(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,r]of this.keyFieldSetDatasByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!0,i)),o=(0,yi.validateKeyFieldSets)(this,n,r);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,r,n=!1){let i=[];for(let[a,o]of t){if(n&&X.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let u=this.directiveDefinitionDataByName.get(a);if(!u)continue;if(!u.isRepeatable&&o.length>1){let h=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);h.has(a)||(h.add(a),this.errors.push((0,ne.invalidDirectiveError)(a,r,"1st",[(0,ne.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==X.KEY){i.push(...o);continue}let l=[],m=new Set;for(let h=0;h0?{node:G(q({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_DEFINITION,operationTypes:r}),success:!0}:t.directivesByName.size<1?{node:void 0,success:!0}:{node:{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_EXTENSION},success:!0}}getUnionNodeByData(t){return t.node.description=t.description,t.node.directives=this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),t.node.types=(0,Vn.mapToArrayOfValues)(t.memberByMemberTypeName),t.node}evaluateExternalKeyFields(){let t=[];for(let[r,n]of this.keyFieldSetDatasByTypeName){let i=this.parentDefinitionDataByTypeName.get(r);if(!i||i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){t.push(r),this.errors.push((0,ne.undefinedCompositeOutputTypeError)(r));continue}let a=this;for(let o of n.values()){let u=[i],l=new Map,m=-1,h=!0;if((0,W.visit)(o.documentNode,{Argument:{enter(){return W.BREAK}},Field:{enter(N){let T=u[m],D=T.name;if(h)return W.BREAK;let R=N.name.value,C=`${D}.${R}`;a.unvalidatedExternalFieldCoords.delete(C);let M=T.fieldDataByName.get(R);if(!M||M.argumentDataByName.size)return W.BREAK;M.isShareableBySubgraphName.set(a.subgraphName,!0);let Y=M.externalFieldDataBySubgraphName.get(a.subgraphName);a.edfsDirectiveReferences.size<1&&Y&&Y.isDefinedExternal&&!Y.isUnconditionallyProvided&&i.extensionType!==ts.ExtensionType.NONE&&(Y.isUnconditionallyProvided=!0,(0,et.getValueOrDefault)(l,o.rawFieldSet,()=>new Set).add(C)),(0,et.getValueOrDefault)(a.keyFieldNamesByParentTypeName,D,()=>new Set).add(R);let ee=(0,Vr.getTypeNodeNamedTypeName)(M.node.type);if(Yn.BASE_SCALARS.has(ee))return;let ae=a.parentDefinitionDataByTypeName.get(ee);if(!ae)return W.BREAK;if(ae.kind===W.Kind.OBJECT_TYPE_DEFINITION){h=!0,u.push(ae);return}if((0,Kr.isKindAbstract)(ae.kind))return W.BREAK}},InlineFragment:{enter(){return W.BREAK}},SelectionSet:{enter(){if(!h||(m+=1,h=!1,m<0||m>=u.length))return W.BREAK},leave(){h&&(h=!1),m-=1,u.pop()}}}),!(l.size<1))for(let[N,T]of l)this.warnings.push((0,es.externalEntityExtensionKeyFieldWarning)(i.name,N,[...T],this.subgraphName))}}for(let r of t)this.keyFieldSetDatasByTypeName.delete(r)}addValidConditionalFieldSetConfigurations(){for(let[t,r]of this.fieldSetDataByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(n,r.provides,!0);o&&(a.provides=o);let u=this.validateProvidesOrRequires(n,r.requires,!1);u&&(a.requires=u)}}addFieldNamesToConfigurationData(t,r){let n=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){r.fieldNames.add(i);continue}n.add(i),this.edfsDirectiveReferences.size>0&&r.fieldNames.add(i)}n.size>0&&(r.externalFieldNames=n)}validateOneOfDirective({data:t,requiredFieldNames:r}){var n,i;return t.directivesByName.has(X.ONE_OF)?r.size>0?(this.errors.push((0,ne.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,es.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(n=(0,et.getFirstEntry)(t.inputValueDataByName))==null?void 0:n.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a,o;(0,yX.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,yX.upsertParentsAndChildren)(this,t);let r=[];Zd(this,_d,gX).call(this,r),this.validateDirectives(this.schemaData,X.SCHEMA);let n=this.schemaNodeFromData(this.schemaData);if(!n.success)return this.errors.push(...n.errors),{errors:this.errors,success:!1,warnings:this.warnings};((a=n.node)==null?void 0:a.kind)===W.Kind.SCHEMA_DEFINITION&&r.push(n.node);for(let[u,l]of this.parentDefinitionDataByTypeName)this.validateDirectives(l,u);this.invalidORScopesCoords.size>0&&this.errors.push((0,ne.orScopesLimitError)(Yn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let u of this.invalidConfigureDescriptionNodeDatas)u.description||this.errors.push((0,ne.configureDescriptionNoDescriptionError)((0,et.kindToNodeType)(u.kind),u.name));this.evaluateExternalKeyFields();for(let[u,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case W.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,ne.noDefinedEnumValuesError)(u));break}r.push(this.getEnumNodeByData(l));break}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,ne.noInputValueDefinitionsError)(u));break}let m=new Set;for(let h of l.inputValueDataByName.values()){if((0,Dt.isTypeRequired)(h.type)&&m.add(h.name),h.namedTypeKind!==W.Kind.NULL)continue;let N=this.parentDefinitionDataByTypeName.get(h.namedTypeName);if(N){if((0,Dt.sanitizeDefaultValue)({data:h,namedTypeData:N,node:h.node}),!(0,Dt.isInputNodeKind)(N.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:h,namedTypeData:N,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}h.namedTypeKind=N.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:m}))break;u!==X.EDFS_NATS_STREAM_CONFIGURATION&&r.push(this.getInputObjectNodeByData(l));break}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{let m=this.entityDataByTypeName.has(u),h=this.operationTypeNodeByTypeName.get(u),N=l.kind===W.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===ts.ExtensionType.EXTENDS&&(l.extensionType=ts.ExtensionType.NONE),h&&(l.fieldDataByName.delete(X.SERVICE_FIELD),l.fieldDataByName.delete(X.ENTITIES_FIELD));let T=[];for(let[Y,ee]of l.fieldDataByName){if(!N&&((o=ee.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&o.isDefinedExternal)&&T.push(Y),this.validateArguments(ee,l.kind),ee.namedTypeKind!==W.Kind.NULL)continue;let ae=this.parentDefinitionDataByTypeName.get(ee.namedTypeName);if(ae){if(!(0,Dt.isOutputNodeKind)(ae.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:ee,namedTypeData:ae,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}ee.namedTypeKind=this.entityInterfaceDataByTypeName.get(ae.name)?W.Kind.INTERFACE_TYPE_DEFINITION:ae.kind}}T.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,ne.externalInterfaceFieldsError)(u,T)):this.warnings.push((0,es.externalInterfaceFieldsWarning)(this.subgraphName,u,[...T])));let D=(0,Dt.getParentTypeName)(l),R=(0,et.getValueOrDefault)(this.configurationDataByTypeName,D,()=>(0,Ly.newConfigurationData)(m,u)),C=this.entityInterfaceDataByTypeName.get(u);if(C){C.fieldDatas=(0,Vn.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let Y=this.concreteTypeNamesByAbstractTypeName.get(u);Y&&(0,et.addIterableToSet)({source:Y,target:C.concreteTypeNames}),R.isInterfaceObject=C.isInterfaceObject,R.entityInterfaceConcreteTypeNames=C.concreteTypeNames}let M=this.eventsConfigurations.get(D);M&&(R.events=M),this.addFieldNamesToConfigurationData(l.fieldDataByName,R),this.validateInterfaceImplementations(l),r.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,yi.isNodeQuery)(u,h)&&this.errors.push((0,ne.noFieldDefinitionsError)((0,et.kindToNodeType)(l.kind),u)),l.requireFetchReasonsFieldNames.size>0&&(R.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case W.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===ts.ExtensionType.REAL){this.errors.push((0,ne.noBaseScalarDefinitionError)(u));break}r.push(this.getScalarNodeByData(l));break}case W.Kind.UNION_TYPE_DEFINITION:{r.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,ne.unexpectedKindFatalError)(u)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let u of Object.values(W.OperationTypeNode)){let l=this.schemaData.operationTypes.get(u),m=(0,et.getOrThrowError)(Kr.operationTypeNodeToDefaultType,u,X.OPERATION_TO_DEFAULT),h=l?(0,Vr.getTypeNodeNamedTypeName)(l.type):m;if(Yn.BASE_SCALARS.has(h)&&this.referencedTypeNames.add(h),h!==m&&this.parentDefinitionDataByTypeName.has(m)){this.errors.push((0,ne.invalidRootTypeDefinitionError)(u,h,m));continue}let N=this.parentDefinitionDataByTypeName.get(h);if(l){if(!N)continue;this.operationTypeNodeByTypeName.set(h,u)}if(!N)continue;let T=this.configurationDataByTypeName.get(m);T&&(T.isRootNode=!0,T.typeName=m),N.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,ne.operationDefinitionError)(h,u,N.kind))}for(let u of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(u);if(!l){this.errors.push((0,ne.undefinedTypeError)(u));continue}if(l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION)continue;let m=this.concreteTypeNamesByAbstractTypeName.get(u);(!m||m.size<1)&&this.warnings.push((0,es.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,u))}this.handleExecutableDirectives(),this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let u of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,ne.invalidExternalDirectiveError)(u)):this.warnings.push((0,es.invalidExternalFieldWarning)(u,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:W.Kind.DOCUMENT,definitions:r};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,costs:this.costs,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,importDataByDirectiveName:this.importDataByDirectiveName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:this.overriddenFieldNamesByTypeNameByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,schema:(0,yKe.buildASTSchema)(i,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),schemaNode:n.node,subgraphAST:i,subgraphString:(0,W.print)(i),success:!0,warnings:this.warnings}}};_d=new WeakSet,NL=function({currentFieldCoords:t,directiveCoords:r,directiveName:n,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,ne.nonExternalConditionalFieldError)({directiveCoords:r,directiveName:n,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,es.nonExternalConditionalFieldWarning)(r,this.subgraphName,t,i,n))},gX=function(t){let r=new Set;for(let n of this.referencedDirectiveNames){let i=Yn.DIRECTIVE_DEFINITION_BY_NAME.get(n);i&&(this.directiveDefinitionByName.set(n,i),(0,et.addOptionalIterableToSet)({source:Gv.DEPENDENCIES_BY_DIRECTIVE_NAME.get(n),target:r}),t.push(i))}for(let n of this.customDirectiveDefinitionByName.values())t.push(n);t.push(...r)};Rp.NormalizationFactory=Cy});var IX=O(EL=>{"use strict";d();p();f();Object.defineProperty(EL,"__esModule",{value:!0});EL.internalSubgraphFromNormalization=IKe;function IKe({normalization:e,subgraphName:t}){return{conditionalFieldDataByCoords:e.conditionalFieldDataByCoordinates,configurationDataByTypeName:e.configurationDataByTypeName,costs:e.costs,definitions:e.subgraphAST,directiveDefinitionByName:e.directiveDefinitionByName,entityInterfaceSubgraphDataByTypeName:e.entityInterfaces,federatedDirectiveDataByName:e.federatedDirectiveDataByName,isVersionTwo:e.isVersionTwo,keyFieldNamesByParentTypeName:e.keyFieldNamesByParentTypeName,name:t,operationTypes:e.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:e.parentDefinitionDataByTypeName,schema:e.schema,schemaNode:e.schemaNode}}});var vL=O(Yv=>{"use strict";d();p();f();Object.defineProperty(Yv,"__esModule",{value:!0});Yv.BatchNormalizer=void 0;var vKe=jv(),Vs=bi(),gL=vp(),ol=An(),_Ke=_p(),SKe=hd(),OKe=zo(),DKe=TL(),bKe=IX(),IL=class{constructor({options:t,subgraphs:r}){S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"entityDataByTypeName",new Map);S(this,"errors",[]);S(this,"executableDirectiveDatasByName",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalSubgraphBySubgraphName",new Map);S(this,"overriddenFieldNamesByParentTypeNameByTargetSubgraphName",new Map);S(this,"overrideSourceSubgraphNamesByFieldCoords",new Map);S(this,"duplicateOverriddenFieldCoords",new Set);S(this,"subgraphNames",new Set);S(this,"invalidORScopesCoords",new Set);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"subgraphs");S(this,"warnings",[]);S(this,"validationErrors",[]);S(this,"options");this.options=t,this.subgraphs=r;let n=new Set;for(let{name:i}of r){if(!i){this.errors.push(Vs.noSubgraphNameError);break}this.subgraphNames.has(i)?n.add(i):this.subgraphNames.add(i)}n.size>0&&this.errors.push((0,Vs.duplicateSubgraphNamesError)([...n]))}handleLinkImports(t){for(let[r,n]of t){let i=this.importDataByDirectiveName.get(r);if(!i){this.importDataByDirectiveName.set(r,n);continue}if(i.coreUrl!==n.coreUrl){this.errors.push((0,Vs.nonEqualCoreFeatureComposeDirectiveError)(r));continue}i.majorVersion!==n.majorVersion&&this.errors.push((0,Vs.nonEqualComposeDirectiveMajorVersionError)(r)),i.minorVersionnew Map),T=(0,ol.getValueOrDefault)(N,l,()=>new Set(m));(0,ol.addIterableToSet)({source:m,target:T})}for(let N of m){let T=`${h}.${N}`,D=this.overrideSourceSubgraphNamesByFieldCoords.get(T);if(!D){this.overrideSourceSubgraphNamesByFieldCoords.set(T,[n]);continue}D.push(n),this.duplicateOverriddenFieldCoords.add(T)}}}}handleOverrideConfigurationData(){for(let[t,r]of this.overriddenFieldNamesByParentTypeNameByTargetSubgraphName){let n=this.internalSubgraphBySubgraphName.get(t);if(!n){this.errors.push((0,Vs.unknownSubgraphNameError)(t));continue}n.overriddenFieldNamesByParentTypeName=r;for(let[i,a]of r){let o=n.configurationDataByTypeName.get(i);o&&((0,gL.subtractSet)(a,o.fieldNames),o.fieldNames.size<1&&n.configurationDataByTypeName.delete(i))}}}batchNormalize(){if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let t=new vKe.Graph;for(let r of this.subgraphs){let n=r.name,i=(0,DKe.normalizeSubgraph)({document:r.definitions,internalGraph:t,options:this.options,subgraphName:n});if(i.warnings.length>0&&this.warnings.push(...i.warnings),!i.success){this.validationErrors.push((0,Vs.subgraphValidationError)(n,i.errors));continue}this.handleLinkImports(i.importDataByDirectiveName);for(let a of i.authorizationDataByParentTypeName.values())(0,gL.upsertAuthorizationData)(this.authorizationDataByParentTypeName,a,this.invalidORScopesCoords);for(let[a,o]of i.fieldCoordsByNamedTypeName)(0,ol.addIterableToSet)({source:o,target:(0,ol.getValueOrDefault)(this.fieldCoordsByNamedTypeName,a,()=>new Set)});(0,ol.mergeSetValueMap)({source:i.concreteTypeNamesByAbstractTypeName,target:this.concreteTypeNamesByAbstractTypeName}),(0,ol.mergeSetValueMap)({source:i.interfaceImplementationTypeNamesByInterfaceTypeName,target:this.interfaceImplementationTypeNamesByInterfaceTypeName}),this.handleEntityData(i.entityDataByTypeName,n),(0,_Ke.upsertFederatedDirectiveData)({executableDirectiveDatasByName:this.executableDirectiveDatasByName,existingDataByName:this.federatedDirectiveDataByName,incomingDataByName:i.federatedDirectiveDataByName}),this.internalSubgraphBySubgraphName.set(n,(0,bKe.internalSubgraphFromNormalization)({normalization:i,subgraphName:n})),this.handleOverrides({originalTypeNameByRenamedTypeName:i.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:i.overriddenFieldNamesByParentTypeNameByTargetSubgraphName,subgraphName:n})}if(this.invalidORScopesCoords.size>0&&this.errors.push((0,Vs.orScopesLimitError)(OKe.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.duplicateOverriddenFieldCoords.size>0){let r=[];for(let n of this.duplicateOverriddenFieldCoords){let i=(0,ol.getOrThrowError)(this.overrideSourceSubgraphNamesByFieldCoords,n,"overrideSourceSubgraphNamesByFieldCoords");r.push((0,Vs.duplicateOverriddenFieldErrorMessage)(n,i))}this.errors.push((0,Vs.duplicateOverriddenFieldsError)(r))}for(let[r,n]of this.executableDirectiveDatasByName)(this.federatedDirectiveDataByName.has(r)||n.length!==this.subgraphNames.size)&&this.executableDirectiveDatasByName.delete(r);return this.errors.push(...this.validationErrors),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:(this.handleOverrideConfigurationData(),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:this.entityDataByTypeName,executableDirectiveDatasByName:this.executableDirectiveDatasByName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphByName:this.internalSubgraphBySubgraphName,internalGraph:t,success:!0,warnings:this.warnings})}};Yv.BatchNormalizer=IL});var DX=O(bd=>{"use strict";d();p();f();Object.defineProperty(bd,"__esModule",{value:!0});bd.FederationFactory=void 0;bd.federateSubgraphs=LKe;bd.federateSubgraphsWithContracts=CKe;bd.federateSubgraphsContract=BKe;var Ae=ve(),AKe=Jo(),Wi=kn(),we=bi(),Sd=nv(),Od=xs(),Ci=vp(),Jv=Iy(),By=zo(),vX=_p(),_X=Xh(),Te=Zc(),RKe=WF(),SX=cX(),Dd=Rv(),Fe=xr(),zv=Xf(),he=An(),wKe=hd(),PKe=Wh(),FKe=vL(),Wv,OX,Hv=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:r,entityDataByTypeName:n,entityInterfaceFederationDataByTypeName:i,executableDirectiveDatasByName:a,federatedDirectiveDataByName:o,fieldCoordsByNamedTypeName:u,interfaceImplementationTypeNamesByInterfaceTypeName:l,internalGraph:m,internalSubgraphBySubgraphName:h,options:N,warnings:T}){Xd(this,Wv);S(this,"authorizationDataByParentTypeName");S(this,"coordsByNamedTypeName",new Map);S(this,"directiveDefinitionByName",new Map);S(this,"clientDefinitions",[]);S(this,"currentSubgraphName","");S(this,"concreteTypeNamesByAbstractTypeName");S(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);S(this,"entityDataByTypeName");S(this,"entityInterfaceFederationDataByTypeName");S(this,"executableDirectiveDatasByName");S(this,"errors",[]);S(this,"federatedDirectiveDataByName");S(this,"fieldConfigurationByFieldCoords",new Map);S(this,"fieldCoordsByNamedTypeName");S(this,"inaccessibleCoords",new Set);S(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName");S(this,"internalGraph");S(this,"internalSubgraphBySubgraphName");S(this,"invalidORScopesCoords",new Set);S(this,"isMaxDepth",!1);S(this,"isVersionTwo",!1);S(this,"namedInputValueTypeNames",new Set);S(this,"namedOutputTypeNames",new Set);S(this,"options");S(this,"parentDefinitionDataByTypeName",new Map);S(this,"parentTagDataByTypeName",new Map);S(this,"referencedFederatedDirectiveNames",new Set);S(this,"routerDefinitions",[]);S(this,"subscriptionFilterDataByFieldPath",new Map);S(this,"tagNamesByCoords",new Map);S(this,"warnings");this.authorizationDataByParentTypeName=t,this.options=N!=null?N:{},this.concreteTypeNamesByAbstractTypeName=r,this.executableDirectiveDatasByName=a,this.entityDataByTypeName=n,this.entityInterfaceFederationDataByTypeName=i,this.federatedDirectiveDataByName=o;for(let D of vX.FEDERATED_DIRECTIVE_DATAS)this.federatedDirectiveDataByName.set(D.name,D);this.fieldCoordsByNamedTypeName=u,this.interfaceImplementationTypeNamesByInterfaceTypeName=l,this.internalGraph=m,this.internalSubgraphBySubgraphName=h,this.warnings=T}extractFederatedDirectives({data:t,directivesByName:r}){for(let[n,i]of r)if(this.federatedDirectiveDataByName.get(n)&&(this.referencedFederatedDirectiveNames.add(n),!(Fe.AUTHORIZATION_DIRECTIVES.has(n)||i.length<1)))switch(n){case Fe.DEPRECATED:{t.isDeprecated=!0,(0,Te.upsertDeprecatedDirective)(t,i[0]);break}case Fe.TAG:{(0,Te.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(n);if(!o){t.directivesByName.set(n,[...i]);break}if(Fe.NON_REPEATABLE_FEDERATED_DIRECTIVES.has(n))break;o.push(...i)}}return t}getValidImplementedInterfaces(t){var o;let r=[];if(t.implementedInterfaceTypeNames.size<1)return r;let n=(0,Te.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let u of t.implementedInterfaceTypeNames){r.push((0,Wi.stringToNamedTypeNode)(u));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Fe.PARENT_DEFINITION_DATA);if(l.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let m={invalidFieldImplementations:new Map,unimplementedFields:[]},h=!1;for(let[N,T]of l.fieldDataByName){let D=!1,R=t.fieldDataByName.get(N);if(!R){h=!0,m.unimplementedFields.push(N);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Jv.printTypeNode)(T.node.type),unimplementedArguments:new Set};(0,Te.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:R.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:T.node.type})||(h=!0,D=!0,C.implementedResponseType=(0,Jv.printTypeNode)(R.node.type));let M=new Set;for(let[Y,ee]of T.argumentDataByName){let ae=ee.node;M.add(Y);let Ne=(o=R.argumentDataByName.get(Y))==null?void 0:o.node;if(!Ne){h=!0,D=!0,C.unimplementedArguments.add(Y);continue}let _e=(0,Jv.printTypeNode)(Ne.type),Le=(0,Jv.printTypeNode)(ae.type);Le!==_e&&(h=!0,D=!0,C.invalidImplementedArguments.push({actualType:_e,argumentName:Y,expectedType:Le}))}for(let[Y,ee]of R.argumentDataByName){let ae=ee.node;M.has(Y)||ae.type.kind===Ae.Kind.NON_NULL_TYPE&&(h=!0,D=!0,C.invalidAdditionalArguments.add(Y))}!n&&R.isInaccessible&&!T.isInaccessible&&(h=!0,D=!0,C.isInaccessible=!0),D&&m.invalidFieldImplementations.set(N,C)}h&&i.set(u,m)}return a.size>0&&this.errors.push((0,we.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,we.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),r}addValidPrimaryKeyTargetsToEntityData(t){var h;let r=this.entityDataByTypeName.get(t);if(!r)return;let n=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=n.parentDefinitionDataByTypeName,a=i.get(r.typeName);if(!a||a.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)throw(0,we.incompatibleParentKindFatalError)(r.typeName,Ae.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Ae.Kind.NULL);let o=n.configurationDataByTypeName.get(r.typeName);if(!o)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${r.typeName}`);(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:r,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[N,T]of this.entityInterfaceFederationDataByTypeName){if(!((h=T.concreteTypeNames)!=null&&h.has(r.typeName)))continue;let D=this.entityDataByTypeName.get(N);D&&(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:D,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let m=new Set(o.keys.map(N=>N.selectionSet));for(let N of u)m.has(N.selectionSet)||(o.keys.push(N),m.add(N.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,r,n,i){let a=t.parentDefinitionDataByTypeName,o=a.get(r);if(!o||!(0,Te.isParentDataCompositeOutputType)(o))throw(0,we.incompatibleParentKindFatalError)(r,Ae.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Ae.Kind.NULL);let u=(0,he.getOrThrowError)(t.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoords,currentSubgraphName:t.name,entityData:n,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let m=new Set(u.keys.map(h=>h.selectionSet));for(let h of l)m.has(h.selectionSet)||(u.keys.push(h),m.add(h.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Te.MergeMethod.CONSISTENT:Te.MergeMethod.INTERSECTION:Te.MergeMethod.UNION}generateTagData(){for(let[t,r]of this.tagNamesByCoords){let n=t.split(Fe.LITERAL_PERIOD);if(n.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,n[0],()=>(0,Sd.newParentTagData)(n[0]));switch(n.length){case 1:for(let l of r)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1]));for(let l of r)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1])),u=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,n[2],()=>new Set);for(let l of r)u.add(l);break;default:break}}}upsertEnumValueData(t,r,n){let i=t.get(r.name),a=i||this.copyEnumValueData(r);this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=(0,Te.isNodeDataInaccessible)(r);if((n||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}upsertDirectiveArgumentData({argumentDataByName:t,incomingData:r}){let n=t.get(r.name),i=n||this.copyDirectiveArgumentData(r);if(this.extractFederatedDirectives({data:i.federatedDirectivesData,directivesByName:r.directivesByName}),!n){this.namedInputValueTypeNames.add(i.namedTypeName),t.set(i.name,i);return}r.defaultValue||(n.includeDefaultValue=!1),(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(i,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:i.subgraphNames}),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:i.requiredSubgraphNames});let a=(0,Dd.getMostRestrictiveMergedTypeNode)(i.type,r.type,r.federatedCoords,this.errors);a.success?i.type=a.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:a.actualType,isArgument:!0,coords:r.federatedCoords,expectedType:a.expectedType}));let o=(0,Te.compareAndValidateInputDefaultValues)({existingData:n,incomingData:r});o.success||this.errors.push(o.error)}upsertInputValueData(t,r,n,i){let a=t.get(r.name),o=a||this.copyInputValueData(r);if(this.extractFederatedDirectives({data:o.federatedDirectivesData,directivesByName:r.directivesByName}),this.recordTagNamesByCoords(o,`${n}.${o.name}`),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){this.namedInputValueTypeNames.add(o.namedTypeName),t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(o,r),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,he.addIterableToSet)({source:r.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,n);let u=(0,Dd.getMostRestrictiveMergedTypeNode)(o.type,r.type,o.originalCoords,this.errors);u.success?o.type=u.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:u.expectedType}));let l=(0,Te.compareAndValidateInputDefaultValues)({existingData:a,incomingData:r});l.success||this.errors.push(l.error)}handleInputValueInaccessibility(t,r,n){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(r.federatedCoords),this.inaccessibleCoords.add(r.federatedCoords);return}if((0,Te.isNodeDataInaccessible)(r)){if((0,Te.isTypeRequired)(r.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(r.federatedCoords,(0,we.inaccessibleRequiredInputValueError)(r,n));return}this.inaccessibleCoords.add(r.federatedCoords)}}handleSubscriptionFilterDirective(t,r){let n=t.directivesByName.get(Fe.SUBSCRIPTION_FILTER);if(!n)return;let i=(0,he.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,we.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:n[0],fieldData:r||t,directiveSubgraphName:i})}federateOutputType({current:t,other:r,coords:n,mostRestrictive:i}){r=(0,AKe.getMutableTypeNode)(r,n,this.errors);let a={kind:t.kind},o=Dd.DivergentType.NONE,u=a;for(let l=0;lnew Set)})}upsertFieldData(t,r,n){let i=t.get(r.name),a=i||this.copyFieldData(r,n||(0,Te.isNodeDataInaccessible)(r));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,r.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(r.namedTypeName),this.handleSubscriptionFilterDirective(r,a),this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=n||(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let u=this.federateOutputType({current:a.type,other:r.type,coords:a.federatedCoords,mostRestrictive:!1});if(u.success)if(a.type=u.typeNode,a.namedTypeName!==r.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),m=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(m.size<1)for(let h of a.subgraphNames)r.subgraphNames.has(h)||m.add(h);(0,he.addIterableToSet)({source:r.subgraphNames,target:(0,he.getValueOrDefault)(l,r.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(r);for(let l of r.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),a.isInaccessible||(a.isInaccessible=r.isInaccessible),(0,he.addNewObjectValueMapEntries)(r.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)({source:r.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,he.addMapEntries)({source:r.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}getClientSchemaUnionMembers(t){let r=[];for(let[n,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(n)||r.push(i);return r}recordTagNamesByCoords(t,r){let n=r||t.name;if(t.federatedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,n,()=>new Set);for(let a of t.federatedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,Te.getInitialFederatedDescription)(t)}}copyDirectiveArgumentData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t),federatedCoords:t.federatedCoords,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),includeDefaultValue:t.includeDefaultValue,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Ae.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Ae.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,r,n){let i=new Map;for(let[a,o]of t){let u=this.copyInputValueData(o);this.handleInputValueInaccessibility(r,u,n),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${n}.${o.name}`),i.set(a,u)}return i}copyFieldData(t,r){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,r,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,Wi.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Te.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(r||(0,Te.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),n.set(i,o)}return n}copyFieldDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=r||(0,Te.isNodeDataInaccessible)(a),u=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(u),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),o&&this.inaccessibleCoords.add(u.federatedCoords),n.set(i,u)}return n}copyParentDefinitionData(t){let r=this.copyMutualParentDefinitionData(t);switch(t.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:return G(q({},r),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:return G(q({},r),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.INTERFACE_TYPE_DEFINITION:return G(q({},r),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.OBJECT_TYPE_DEFINITION:return G(q({},r),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.SCALAR_TYPE_DEFINITION:return G(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Ae.Kind.UNION_TYPE_DEFINITION:return G(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:r}){if(!t){let n=this.copyParentDefinitionData(r);return(0,Te.isParentDataRootType)(n)&&(n.extensionType=_X.ExtensionType.NONE),n}return this.extractFederatedDirectives({data:t.federatedDirectivesData,directivesByName:r.directivesByName}),t}upsertParentDefinitionData(t,r){let n=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),n&&n.interfaceObjectSubgraphNames.has(r)){if(i&&i.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:r}));return}a.kind=Ae.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Ae.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!n||!n.interfaceObjectSubgraphNames.has(r)||a.kind!==Ae.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,he.kindToNodeType)(t.kind),incomingSubgraphName:r}));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,t),(0,Te.setParentDataExtensionType)(a,t),a.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Ae.Kind.INTERFACE_TYPE_DEFINITION:case Ae.Kind.OBJECT_TYPE_DEFINITION:let u=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,he.addIterableToSet)({source:u.subgraphNames,target:a.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Ae.Kind.UNION_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;(0,he.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let r of t.inputValueDataByName.values())this.inaccessibleCoords.add(r.federatedCoords);break;default:for(let r of t.fieldDataByName.values()){this.inaccessibleCoords.add(r.federatedCoords);for(let n of r.argumentDataByName.values())this.inaccessibleCoords.add(n.federatedCoords)}}}shouldUpdateFederatedFieldAbstractNamedType(t,r){if(!t)return!1;let n=this.concreteTypeNamesByAbstractTypeName.get(t);if(!n||n.size<1)return!1;for(let i of r)if(!n.has(i))return!1;return!0}updateTypeNodeNamedType(t,r){let n=t;for(let i=0;i1){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}break}case Ae.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}l=h;break}default:{this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));break}}}if(o.size<1&&!l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}let m=l;if(o.size>0){if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}for(let h of o.keys()){m=h;for(let[N,T]of o)if(h!==N&&!T.implementedInterfaceTypeNames.has(h)){m="";break}if(m)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(m,u)){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}a.namedTypeName=m,this.updateTypeNodeNamedType(a.type,m)}}upsertExecutableDirectiveDatas(){for(let[t,r]of this.executableDirectiveDatasByName)for(let n of r){let i=this.federatedDirectiveDataByName.get(t);if(!i){let a=new Map;for(let u of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:a,incomingData:u});let o=new Set(n.executableLocations);this.federatedDirectiveDataByName.set(t,{argumentDataByName:a,isComposed:!1,isRepeatable:n.isRepeatable,isReferenced:n.isReferenced,executableLocations:o,locations:o,majorVersion:-1,minorVersion:-1,name:t,description:n.description,node:n.node,optionalArgumentNames:new Set(n.optionalArgumentNames),requiredArgumentNames:new Set(n.requiredArgumentNames),subgraphNames:new Set(n.subgraphNames)});continue}for(let a of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:i.argumentDataByName,incomingData:a});for(let a of i.executableLocations)n.executableLocations.has(a)||i.executableLocations.delete(a);if(i.executableLocations.size<1){this.federatedDirectiveDataByName.delete(t);break}(0,Te.setLongestDescription)(i,n),(0,he.addIterableToSet)({source:n.subgraphNames,target:i.subgraphNames}),i.isRepeatable&&(i.isRepeatable=n.isRepeatable)}}federateInternalSubgraphData(){this.upsertExecutableDirectiveDatas();for(let t of this.internalSubgraphBySubgraphName.values()){this.currentSubgraphName=t.name,this.isVersionTwo||(this.isVersionTwo=t.isVersionTwo),(0,RKe.renameRootTypes)(this,t);for(let r of t.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(r,t.name)}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:r,interfaceObjectData:n,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let h of i.satisfiedFieldSets)u.satisfiedFieldSets.add(h),a.has(h)&&l.addTargetSubgraphByFieldSet(h,o);let m=n.fieldDatasBySubgraphName.get(o);for(let{name:h,namedTypeName:N}of m||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(N),h);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(r,i.typeName,t,u)}handleEntityInterfaces(){var t;for(let[r,n]of this.entityInterfaceFederationDataByTypeName){let i=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,r,Fe.PARENT_DEFINITION_DATA);if(i.kind===Ae.Kind.INTERFACE_TYPE_DEFINITION)for(let a of n.interfaceObjectSubgraphNames){let o=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),u=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(r);if(!l)continue;let m=(0,he.getOrThrowError)(u,r,"configurationDataByTypeName"),h=m.keys;if(!h)continue;m.entityInterfaceConcreteTypeNames=new Set(n.concreteTypeNames),this.internalGraph.setSubgraphName(a);let N=this.internalGraph.addOrUpdateNode(r,{isAbstract:!0});for(let T of l){let D=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,T,Fe.PARENT_DEFINITION_DATA);if(!(0,Ci.isObjectDefinitionData)(D))continue;let R=(0,he.getOrThrowError)(this.entityDataByTypeName,T,"entityDataByTypeName");R.subgraphNames.add(a);let C=u.get(T);if(C)if((0,he.addIterableToSet)({source:m.fieldNames,target:C.fieldNames}),!C.keys)C.keys=[...h];else e:for(let ae of h){for(let{selectionSet:Ne}of C.keys)if(ae.selectionSet===Ne)continue e;C.keys.push(ae)}else u.set(T,{fieldNames:new Set(m.fieldNames),isRootNode:!0,keys:[...h],typeName:T});let M=new Set;for(let ae of h.filter(Ne=>!Ne.disableEntityResolver))M.add(ae.selectionSet);let Y=this.authorizationDataByParentTypeName.get(r),ee=(0,he.getOrThrowError)(o.parentDefinitionDataByTypeName,r,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Ci.isObjectDefinitionData)(ee)){for(let[ae,Ne]of ee.fieldDataByName){let _e=`${T}.${ae}`;(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Ne.namedTypeName,()=>new Set).add(_e);let Le=Y==null?void 0:Y.fieldAuthDataByFieldName.get(ae);if(Le){let Z=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,T,()=>(0,Ci.newAuthorizationData)(T));(0,Ci.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,Le)||this.invalidORScopesCoords.add(_e)}let Ve=D.fieldDataByName.get(ae);if(Ve){let Z=(t=Ne.isShareableBySubgraphName.get(a))!=null?t:!1;Ve.isShareableBySubgraphName.set(a,Z),Ve.subgraphNames.add(a);let Se=Ne.externalFieldDataBySubgraphName.get(a);if(!Se)continue;Ve.externalFieldDataBySubgraphName.set(a,q({},Se));continue}let ot=i.isInaccessible||D.isInaccessible||Ne.isInaccessible;D.fieldDataByName.set(ae,this.copyFieldData(Ne,ot))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:M,entityData:R})}}}}}fieldDataToGraphFieldData(t){var r;return{externalSubgraphNames:new Set,name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Ci.isNodeLeaf)((r=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:r.kind),subgraphNames:t.subgraphNames}}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let r=[],n="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(r.push(i),n=o);if(r.length===1)return(0,Sd.getDescriptionFromString)(n);if(r.length<1)return t.description;this.errors.push((0,we.configureDescriptionPropagationError)((0,Te.getDefinitionDataCoords)(t,!0),r))}getValidFieldArgumentNodes(t){let r=[],n=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,u]of t.argumentDataByName)if(t.subgraphNames.size===u.subgraphNames.size){n.push(o);let l=(0,Te.routerSchemaInputValueNodeFromData)({data:u,description:this.getFederatedGraphNodeDescription(u),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});l.success?(r.push(l.node),this.warnings.push(...l.warnings)):this.errors.push(...l.errors)}else(0,Te.isTypeRequired)(u.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,we.invalidRequiredInputValueError)(Fe.FIELD,a,i)):n.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:n,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=n),r}validateSemanticNonNull(t){let r;for(let n of t.nullLevelsBySubgraphName.values()){if(!r){r=n;continue}if(r.size!==n.size){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}for(let i of n)if(!r.has(i)){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:r,requiredFieldNames:n}){return t.directivesByName.has(Fe.ONE_OF)?n.size>0?(this.errors.push((0,we.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(r.length===1&&this.warnings.push((0,wKe.singleFederatedInputFieldOneOfWarning)({fieldName:r[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[r,n]of this.parentDefinitionDataByTypeName)switch(n.extensionType!==_X.ExtensionType.NONE&&this.errors.push((0,we.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(n.kind),r)),n.kind){case Ae.Kind.ENUM_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=[],a=[],o=this.getEnumValueMergeMethod(r);(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));for(let l of n.enumValueDataByName.values()){let m=(0,Te.isNodeDataInaccessible)(l),h=G(q({},l.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(l)}),N=(0,Te.routerSchemaNodeFromData)({data:l,description:this.getFederatedGraphNodeDescription(l),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!N.success){this.errors.push(...N.errors);continue}switch(o){case Te.MergeMethod.CONSISTENT:!m&&n.appearances>l.appearances&&this.errors.push((0,we.incompatibleSharedEnumError)(r)),i.push(N.node),m||a.push(h);break;case Te.MergeMethod.INTERSECTION:n.appearances===l.appearances&&(i.push(N.node),m||a.push(h));break;default:i.push(N.node),m||a.push(h);break}}n.node.values=i;let u=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(u.success?this.routerDefinitions.push(u.node):this.errors.push(...u.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Fe.ENUM_VALUE));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),values:a}));break}case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=new Array,a=new Array,o=new Array,u=new Set;for(let[m,h]of n.inputValueDataByName)if((0,Te.isTypeRequired)(h.type)&&u.add(m),n.subgraphNames.size===h.subgraphNames.size){let N=(0,Te.routerSchemaInputValueNodeFromData)({data:h,description:this.getFederatedGraphNodeDescription(h),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(N.success?(a.push(N.node),this.warnings.push(...N.warnings)):this.errors.push(...N.errors),(0,Te.isNodeDataInaccessible)(h))continue;o.push(G(q({},h.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(h)}))}else(0,Te.isTypeRequired)(h.type)&&i.push({inputValueName:m,missingSubgraphs:(0,he.getEntriesNotInHashSet)(n.subgraphNames,h.subgraphNames),requiredSubgraphs:[...h.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,we.invalidRequiredInputValueError)(Fe.INPUT_OBJECT,r,i,!1));break}if(!this.validateOneOfDirective({data:n,inputValueNodes:a,requiredFieldNames:u}))break;n.node.fields=a;let l=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(l.success?this.routerDefinitions.push(l.node):this.errors.push(...l.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n);break}if(o.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,"Input field"));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:o}));break}case Ae.Kind.INTERFACE_TYPE_DEFINITION:case Ae.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,u=(0,Te.newInvalidFieldNames)(),l=n.kind===Ae.Kind.OBJECT_TYPE_DEFINITION,m=this.authorizationDataByParentTypeName.get(r);(0,Te.propagateAuthDirectives)(n,m);for(let[T,D]of n.fieldDataByName){(0,Te.propagateFieldAuthDirectives)(D,m);let R=this.getValidFieldArgumentNodes(D);l&&(0,Te.validateExternalAndShareable)(D,u),this.validateSemanticNonNull(D);let C=(0,Te.routerSchemaFieldNodeFromData)({argumentNodes:R,data:D,description:this.getFederatedGraphNodeDescription(D),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});C.success?(i.push(C.node),this.warnings.push(...C.warnings)):this.errors.push(...C.errors),!(0,Te.isNodeDataInaccessible)(D)&&(a.push((0,Te.getClientSchemaFieldNodeByFieldData)(D)),o.set(T,this.fieldDataToGraphFieldData(D)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,we.invalidFieldShareabilityError)(n,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,we.allExternalFieldInstancesError)(r,u.subgraphNamesByExternalFieldName))),n.node.fields=i,this.internalGraph.initializeNode(r,o),n.implementedInterfaceTypeNames.size>0){t.push({data:n,clientSchemaFieldNodes:a});break}let h=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});h.success?this.routerDefinitions.push(h.node):this.errors.push(...h.errors);let N=(0,vX.isNodeQuery)(r);if((0,Te.isNodeDataInaccessible)(n)){if(N){this.errors.push(we.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){let T=N?(0,we.noQueryRootTypeError)(!1):(0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Fe.FIELD);this.errors.push(T);break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:a}));break}case Ae.Kind.SCALAR_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n)}));break}case Ae.Kind.UNION_TYPE_DEFINITION:{n.node.types=(0,Ci.mapToArrayOfValues)(n.memberByMemberTypeName);let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}let a=this.getClientSchemaUnionMembers(n);if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)(Fe.UNION,r,"union member type"));break}this.clientDefinitions.push(G(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),types:a}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[r,n]of this.authorizationDataByParentTypeName){if(!n.requiresAuthentication&&n.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(r);if(i)for(let a of i){let o=a.split(Fe.LITERAL_PERIOD);switch(o.length){case 2:{let u=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Ci.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(u.fieldAuthDataByFieldName,o[1],()=>(0,Ci.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=n.requiresAuthentication),l.inheritedData.requiredScopes.length*n.requiredScopes.length>By.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Ci.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,n.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Ci.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,n.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),Zd(this,Wv,OX).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:r,clientSchemaFieldNodes:n}of t){r.node.interfaces=this.getValidImplementedInterfaces(r);let i=(0,Te.routerSchemaNodeFromData)({data:r,description:this.getFederatedGraphNodeDescription(r),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);continue}let a=[];for(let o of r.implementedInterfaceTypeNames)this.inaccessibleCoords.has(o)||a.push((0,Wi.stringToNamedTypeNode)(o));this.clientDefinitions.push(G(q({},r.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(r),fields:n,interfaces:a}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let n=t.split(Fe.LEFT_PARENTHESIS)[0].split(Fe.LITERAL_PERIOD),i=n[0];for(let a=0;a0&&this.errors.push((0,we.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,n))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Fe.QUERY);if(!t||t.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,we.noQueryRootTypeError)());return}for(let r of t.fieldDataByName.values())if(!(0,Te.isNodeDataInaccessible)(r))return;this.errors.push((0,we.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,r,n,i,a){let o=t.split(Fe.LITERAL_PERIOD);if(o.length<1)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathErrorMessage)(n,t)),[];let u=r;if(this.inaccessibleCoords.has(u.renamedTypeName))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,o[0],u.renamedTypeName)),[];let l="";for(let m=0;m0?`.${h}`:h,u.kind!==Ae.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(n,t,l)),[];let N=u.fieldDataByName.get(h);if(!N)return a.push((0,we.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,h,u.renamedTypeName)),[];let T=`${u.renamedTypeName}.${h}`;if(!N.subgraphNames.has(i))return a.push((0,we.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T,i)),[];if(this.inaccessibleCoords.has(T))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T)),[];if(By.BASE_SCALARS.has(N.namedTypeName)){u={kind:Ae.Kind.SCALAR_TYPE_DEFINITION,name:N.namedTypeName};continue}u=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,N.namedTypeName,Fe.PARENT_DEFINITION_DATA)}return(0,Te.isLeafKind)(u.kind)?o:(a.push((0,we.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(n,t,o[o.length-1],(0,he.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,r,n,i,a,o,u){if(i>zv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,m=new Set([Fe.FIELD_PATH,Fe.VALUES]),h=new Set,N=new Set,T=[];for(let D of t.fields){let R=D.name.value,C=a+`.${R}`;switch(R){case Fe.FIELD_PATH:{if(m.has(Fe.FIELD_PATH))m.delete(Fe.FIELD_PATH);else{l=!0,h.add(Fe.FIELD_PATH);break}if(D.value.kind!==Ae.Kind.STRING){T.push((0,we.invalidInputFieldTypeErrorMessage)(C,Fe.STRING,(0,he.kindToNodeType)(D.value.kind))),l=!0;break}let M=this.validateSubscriptionFieldConditionFieldPath(D.value.value,n,C,o,T);if(M.length<1){l=!0;break}r.fieldPath=M;break}case Fe.VALUES:{if(m.has(Fe.VALUES))m.delete(Fe.VALUES);else{l=!0,h.add(Fe.VALUES);break}let M=D.value.kind;if(M==Ae.Kind.NULL||M==Ae.Kind.OBJECT){T.push((0,we.invalidInputFieldTypeErrorMessage)(C,Fe.LIST,(0,he.kindToNodeType)(D.value.kind))),l=!0;break}if(M!==Ae.Kind.LIST){r.values=[(0,Te.getSubscriptionFilterValue)(D.value)];break}let Y=new Set,ee=[];for(let ae=0;ae0){T.push((0,we.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(C,ee));continue}if(Y.size<1){l=!0,T.push((0,we.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(C));continue}r.values=[...Y];break}default:l=!0,N.add(R)}}return l?(u.push((0,we.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...m],[...h],[...N],T)),!1):!0}validateSubscriptionFilterCondition(t,r,n,i,a,o,u){if(i>zv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,we.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],m=l.name.value;if(!Od.SUBSCRIPTION_FILTER_INPUT_NAMES.has(m))return u.push((0,we.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,m)),!1;let h=a+`.${m}`;switch(l.value.kind){case Ae.Kind.OBJECT:switch(m){case Fe.IN_UPPER:return r.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,r.in,n,i,a+".IN",o,u);case Fe.NOT_UPPER:return r.not={},this.validateSubscriptionFilterCondition(l.value,r.not,n,i,a+".NOT",o,u);default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Fe.LIST,Fe.OBJECT)),!1}case Ae.Kind.LIST:{let N=[];switch(m){case Fe.AND_UPPER:{r.and=N;break}case Fe.OR_UPPER:{r.or=N;break}default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Fe.OBJECT,Fe.LIST)),!1}let T=l.value.values.length;if(T<1||T>5)return u.push((0,we.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(h,T)),!1;let D=!0,R=[];for(let C=0;C0?(u.push((0,we.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(h,R)),!1):D}default:{let N=Od.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(m)?Fe.LIST:Fe.OBJECT;return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,N,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,r,n,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==Ae.Kind.OBJECT){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,[(0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Fe.CONDITION,Fe.OBJECT,(0,he.kindToNodeType)(u.value.kind))]));return}let l={},m=[];if(!this.validateSubscriptionFilterCondition(u.value,l,r,0,Fe.CONDITION,o,m)){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,m)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,n,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,r]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let n=this.parentDefinitionDataByTypeName.get(r.fieldData.namedTypeName);if(!n){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(t,[(0,we.subscriptionFilterNamedTypeErrorMessage)(r.fieldData.namedTypeName)]));continue}(0,Te.isNodeDataInaccessible)(n)||n.kind===Ae.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(r.directive,n,t,r.fieldData.name,r.fieldData.renamedParentTypeName,r.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,we.orScopesLimitError)(By.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.handleCustomDirectiveDefinitionNodes();let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.options.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let r={kind:Ae.Kind.DOCUMENT,definitions:this.routerDefinitions},n=(0,Ae.buildASTSchema)({kind:Ae.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,name:m,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T}of this.internalSubgraphBySubgraphName.values())i.set(m,{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T});for(let a of this.authorizationDataByParentTypeName.values())(0,Ci.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Ae.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:n,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,r,n,i){let a=r.size;for(let[o,u]of n){let l=(0,he.getOrThrowError)(r,o,`${t.name}.childDataByChildName`);if((0,Te.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(u.tagNames)||((0,he.getValueOrDefault)(l.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,r,n,i){let a=r.size;for(let[o,u]of r){if((0,Te.isNodeDataInaccessible)(u)){a-=1;continue}let l=n.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(u.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleCustomDirectiveDefinitionNodes(){for(let t of this.federatedDirectiveDataByName.values()){if(!t.isComposed&&t.executableLocations.size<1)continue;let r=(0,Te.propagateDirectiveDefinitionNodeFromData)({data:t,federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!r.success){this.errors.push(...r.errors);continue}this.routerDefinitions.push(t.node)}}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(PKe.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Fe.PARENT_DEFINITION_DATA);if(!(0,Te.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case Ae.Kind.SCALAR_TYPE_DEFINITION:case Ae.Kind.UNION_TYPE_DEFINITION:break;case Ae.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let m=l.fieldDataByName.size;for(let[h,N]of u.childTagDataByChildName){let T=(0,he.getOrThrowError)(l.fieldDataByName,h,`${o}.fieldDataByFieldName`);if((0,Te.isNodeDataInaccessible)(T)){m-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(N.tagNames)){(0,he.getValueOrDefault)(T.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(T.federatedCoords),m-=1;continue}for(let[D,R]of N.tagNamesByArgumentName){let C=(0,he.getOrThrowError)(T.argumentDataByName,D,`${h}.argumentDataByArgumentName`);(0,Te.isNodeDataInaccessible)(C)||t.tagNamesToExclude.isDisjointFrom(R)||((0,he.getValueOrDefault)(C.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(C.federatedCoords))}}m<1&&(l.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Te.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(u.kind){case Ae.Kind.SCALAR_TYPE_DEFINITION:case Ae.Kind.UNION_TYPE_DEFINITION:continue;case Ae.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Ae.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let m=u.fieldDataByName.size;for(let[h,N]of u.fieldDataByName){if((0,Te.isNodeDataInaccessible)(N)){m-=1;continue}let T=l.childTagDataByChildName.get(h);(!T||t.tagNamesToInclude.isDisjointFrom(T.tagNames))&&((0,he.getValueOrDefault)(N.federatedDirectivesData.directivesByName,Fe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(N.federatedCoords),m-=1)}m<1&&(u.federatedDirectivesData.directivesByName.set(Fe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.handleCustomDirectiveDefinitionNodes();let r=[];if(this.pushParentDefinitionDataToDocumentDefinitions(r),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(r),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let n={kind:Ae.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Ae.buildASTSchema)({kind:Ae.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,name:h,parentDefinitionDataByTypeName:N,schema:T,schemaNode:D}of this.internalSubgraphBySubgraphName.values())a.set(h,{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,parentDefinitionDataByTypeName:N,schema:T,schemaNode:D});for(let o of this.authorizationDataByParentTypeName.values())(0,Ci.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Ae.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Wv=new WeakSet,OX=function(){var n;let t=new Set,r=new Set;for(let i of this.referencedFederatedDirectiveNames){let a=By.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(n=Od.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?n:[];this.directiveDefinitionByName.set(i,a),Od.CLIENT_FEDERATED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:r})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...r)};bd.FederationFactory=Hv;function _L({options:e,subgraphs:t}){if(t.length<1)return{errors:[we.minimumSubgraphRequirementError],success:!1,warnings:[]};let r=new FKe.BatchNormalizer({subgraphs:t,options:e}).batchNormalize();if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};let n=new Map,i=new Map;for(let[u,l]of r.internalSubgraphByName)for(let[m,h]of l.entityInterfaceSubgraphDataByTypeName){let N=n.get(m);if(!N){n.set(m,(0,Ci.newEntityInterfaceFederationData)(h,u));continue}(0,Ci.upsertEntityInterfaceFederationData)(N,h,u)}let a=new Array,o=new Map;for(let[u,l]of n){let m=l.concreteTypeNames.size;for(let[h,N]of l.subgraphDataByTypeName){let T=(0,he.getValueOrDefault)(o,h,()=>new Set);if((0,he.addIterableToSet)({source:N.concreteTypeNames,target:T}),!N.isInterfaceObject){N.resolvable&&N.concreteTypeNames.size!==m&&(0,he.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:h,definedConcreteTypeNames:new Set(N.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,he.addIterableToSet)({source:l.concreteTypeNames,target:T});let{parentDefinitionDataByTypeName:D}=(0,he.getOrThrowError)(r.internalSubgraphByName,h,"internalSubgraphBySubgraphName"),R=[];for(let C of l.concreteTypeNames)D.has(C)&&R.push(C);R.length>0&&a.push((0,we.invalidInterfaceObjectImplementationDefinitionsError)(u,h,R))}}for(let[u,l]of i){let m=new Array;for(let h of l){let N=o.get(h.subgraphName);if(!N){m.push(h);continue}let T=h.requiredConcreteTypeNames.intersection(N);h.requiredConcreteTypeNames.size!==T.size&&(h.definedConcreteTypeNames=T,m.push(h))}if(m.length>0){i.set(u,m);continue}i.delete(u)}return i.size>0&&a.push((0,we.undefinedEntityInterfaceImplementationsError)(i,n)),a.length>0?{errors:a,success:!1,warnings:r.warnings}:{federationFactory:new Hv({authorizationDataByParentTypeName:r.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:r.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:r.entityDataByTypeName,entityInterfaceFederationDataByTypeName:n,executableDirectiveDatasByName:r.executableDirectiveDatasByName,federatedDirectiveDataByName:r.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:r.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:r.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphBySubgraphName:r.internalSubgraphByName,internalGraph:r.internalGraph,options:e,warnings:r.warnings}),success:!0,warnings:r.warnings}}function LKe({options:e,subgraphs:t}){let r=_L({options:e,subgraphs:t});return r.success?r.federationFactory.federateSubgraphsInternal():{errors:r.errors,success:!1,warnings:r.warnings}}function CKe({options:e,subgraphs:t,tagOptionsByContractName:r}){let n=_L({options:e,subgraphs:t});if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};n.federationFactory.federateSubgraphData();let i=[(0,SX.cloneDeep)(n.federationFactory)],a=n.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=r.size-1,u=new Map,l=0;for(let[m,h]of r){l!==o&&i.push((0,SX.cloneDeep)(i[l]));let N=i[l].buildFederationContractResult(h);u.set(m,N),l++}return G(q({},a),{federationResultByContractName:u})}function BKe({contractTagOptions:e,options:t,subgraphs:r}){let n=_L({options:t,subgraphs:r});return n.success?(n.federationFactory.federateSubgraphData(),n.federationFactory.buildFederationContractResult(e)):{errors:n.errors,success:!1,warnings:n.warnings}}});var Xv=O(Ks=>{"use strict";d();p();f();Object.defineProperty(Ks,"__esModule",{value:!0});Ks.LATEST_ROUTER_COMPATIBILITY_VERSION=Ks.ROUTER_COMPATIBILITY_VERSIONS=Ks.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ks.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ks.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ks.ROUTER_COMPATIBILITY_VERSION_ONE]);Ks.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var bX=O(Uy=>{"use strict";d();p();f();Object.defineProperty(Uy,"__esModule",{value:!0});Uy.federateSubgraphs=UKe;Uy.federateSubgraphsWithContracts=kKe;Uy.federateSubgraphsContract=qKe;var SL=DX(),OL=Xv();function UKe({options:e,subgraphs:t,version:r=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SL.federateSubgraphs)({options:e,subgraphs:t})}}function kKe({options:e,subgraphs:t,tagOptionsByContractName:r,version:n=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SL.federateSubgraphsWithContracts)({options:e,subgraphs:t,tagOptionsByContractName:r})}}function qKe({contractTagOptions:e,options:t,subgraphs:r,version:n=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SL.federateSubgraphsContract)({contractTagOptions:e,options:t,subgraphs:r})}}});var RX=O(AX=>{"use strict";d();p();f();Object.defineProperty(AX,"__esModule",{value:!0})});var PX=O(wX=>{"use strict";d();p();f();Object.defineProperty(wX,"__esModule",{value:!0})});var CX=O(Zv=>{"use strict";d();p();f();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.normalizeSubgraphFromString=xKe;Zv.normalizeSubgraph=MKe;var FX=TL(),LX=Xv();function xKe({noLocation:e=!0,options:t,sdlString:r,version:n=LX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,FX.normalizeSubgraphFromString)({noLocation:e,options:t,sdlString:r})}}function MKe({document:e,internalGraph:t,options:r,subgraphName:n,version:i=LX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(i){default:return(0,FX.normalizeSubgraph)({document:e,internalGraph:t,options:r,subgraphName:n})}}});var UX=O(BX=>{"use strict";d();p();f();Object.defineProperty(BX,"__esModule",{value:!0})});var qX=O(kX=>{"use strict";d();p();f();Object.defineProperty(kX,"__esModule",{value:!0})});var MX=O(xX=>{"use strict";d();p();f();Object.defineProperty(xX,"__esModule",{value:!0})});var VX=O(jX=>{"use strict";d();p();f();Object.defineProperty(jX,"__esModule",{value:!0})});var $X=O(KX=>{"use strict";d();p();f();Object.defineProperty(KX,"__esModule",{value:!0})});var QX=O(GX=>{"use strict";d();p();f();Object.defineProperty(GX,"__esModule",{value:!0})});var JX=O(YX=>{"use strict";d();p();f();Object.defineProperty(YX,"__esModule",{value:!0})});var HX=O(zX=>{"use strict";d();p();f();Object.defineProperty(zX,"__esModule",{value:!0})});var XX=O(WX=>{"use strict";d();p();f();Object.defineProperty(WX,"__esModule",{value:!0})});var e7=O(ZX=>{"use strict";d();p();f();Object.defineProperty(ZX,"__esModule",{value:!0})});var t7=O(e_=>{"use strict";d();p();f();Object.defineProperty(e_,"__esModule",{value:!0});e_.COMPOSITION_VERSION=void 0;e_.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var n7=O(r7=>{"use strict";d();p();f();Object.defineProperty(r7,"__esModule",{value:!0})});var a7=O(i7=>{"use strict";d();p();f();Object.defineProperty(i7,"__esModule",{value:!0})});var s7=O(o7=>{"use strict";d();p();f();Object.defineProperty(o7,"__esModule",{value:!0})});var c7=O(u7=>{"use strict";d();p();f();Object.defineProperty(u7,"__esModule",{value:!0})});var l7=O(DL=>{"use strict";d();p();f();Object.defineProperty(DL,"__esModule",{value:!0});DL.recordSubgraphName=jKe;function jKe(e,t,r){if(!t.has(e)){t.add(e);return}r.add(e)}});var t_=O(Qe=>{"use strict";d();p();f();var VKe=Qe&&Qe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tt=Qe&&Qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&VKe(t,e,r)};Object.defineProperty(Qe,"__esModule",{value:!0});MD();ob();rb();ub();lb();tt(kn(),Qe);tt(XR(),Qe);tt(cv(),Qe);tt(K4(),Qe);tt(G4(),Qe);tt(Oy(),Qe);tt(bi(),Qe);tt(Y4(),Qe);tt(z4(),Qe);tt(bX(),Qe);tt(RX(),Qe);tt(PX(),Qe);tt(CX(),Qe);tt(UX(),Qe);tt(qX(),Qe);tt(jv(),Qe);tt(rL(),Qe);tt(Bv(),Qe);tt(MX(),Qe);tt(VX(),Qe);tt(sL(),Qe);tt(Xv(),Qe);tt($X(),Qe);tt(yL(),Qe);tt(Jo(),Qe);tt(QX(),Qe);tt(JX(),Qe);tt(Xh(),Qe);tt(Zc(),Qe);tt(HX(),Qe);tt(XX(),Qe);tt(e7(),Qe);tt(t7(),Qe);tt(n7(),Qe);tt(xr(),Qe);tt(a7(),Qe);tt(An(),Qe);tt(zP(),Qe);tt(zo(),Qe);tt(zo(),Qe);tt(Wh(),Qe);tt(XI(),Qe);tt(ZI(),Qe);tt(xs(),Qe);tt(Zg(),Qe);tt(s7(),Qe);tt(nv(),Qe);tt(WF(),Qe);tt(vL(),Qe);tt(cv(),Qe);tt(_p(),Qe);tt(c7(),Qe);tt(hL(),Qe);tt(Rv(),Qe);tt(l7(),Qe);tt(vp(),Qe);tt(hd(),Qe)});var x$e={};nm(x$e,{buildRouterConfiguration:()=>q$e,federateSubgraphs:()=>k$e});d();p();f();var dFt=Ln(MD()),fFt=Ln(rb()),pFt=Ln(ob()),mFt=Ln(ub()),hFt=Ln(lb()),Bd=Ln(t_());d();p();f();d();p();f();function bL(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),r=e.indexOf("#"),n=e;return t>0?n=n.slice(0,r>0?Math.min(t,r):t):r>0&&(n=n.slice(0,r)),n}d();p();f();d();p();f();var d7={};d();p();f();function f7(e){return e!=null}d();p();f();d();p();f();var n_=Ln(ve(),1);d();p();f();d();p();f();function sl(e){return r_(e,[])}function r_(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return KKe(e,t);default:return String(e)}}function p7(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`+i;return{outputEnd:i,outputStart:n,pathNodes:r}}function Lv({outputEnd:e,outputStart:t,pathNodes:r},n){return t+Qn.LITERAL_SPACE.repeat(r.length+1)+eKe(n,r.length)+e}function fX(e,t){return t?e?`${t}${e}`:t:e}function nKe({resDataByPath:e,rootFieldData:t,unresolvablePaths:r}){let n=new Array;for(let a of r){let o=(0,aL.getOrThrowError)(e,a,"resDataByPath"),u=new Map;for(let[m,h]of o.fieldDataByName)o.resolvedFieldNames.has(m)||u.set(m,h);let l=Fv(a);for(let[m,h]of u)n.push({externalSubgraphNames:h.externalSubgraphNames,fieldName:m,selectionSet:Lv(l,h),subgraphNames:h.subgraphNames,typeName:o.typeName})}let i=new Array;for(let a of n)i.push((0,iL.unresolvablePathError)(a,oL({rootFieldData:t,unresolvableFieldData:a})));return i}function iKe({entityAncestorData:e,resDataByPath:t,pathFromRoot:r,rootFieldData:n,subgraphNameByUnresolvablePath:i}){let a=new Array;for(let[o,u]of i){let l=new Array,m=(0,aL.getOrThrowError)(t,o,"resDataByPath"),h=new Map;for(let[D,R]of m.fieldDataByName)m.resolvedFieldNames.has(D)||h.set(D,R);let N=fX(o,r),T=Fv(N);for(let[D,R]of h)l.push({externalSubgraphNames:R.externalSubgraphNames,fieldName:D,selectionSet:Lv(T,R),subgraphNames:R.subgraphNames,typeName:m.typeName});e.subgraphName=u;for(let D of l)a.push((0,iL.unresolvablePathError)(D,oL({rootFieldData:n,unresolvableFieldData:D,entityAncestorData:e})))}return a}function aKe({entityAncestors:e,resDataByPath:t,pathFromRoot:r,rootFieldData:n,subgraphNameByUnresolvablePath:i}){let a=new Array;for(let o of i.keys()){let u=new Array,l=(0,aL.getOrThrowError)(t,o,"resDataByPath"),m=new Map;for(let[T,D]of l.fieldDataByName)l.resolvedFieldNames.has(T)||m.set(T,D);let h=fX(o,r),N=Fv(h);for(let[T,D]of m)u.push({externalSubgraphNames:D.externalSubgraphNames,fieldName:T,selectionSet:Lv(N,D),subgraphNames:D.subgraphNames,typeName:l.typeName});for(let T of u)a.push((0,iL.unresolvablePathError)(T,dX({rootFieldData:n,unresolvableFieldData:T,entityAncestors:e})))}return a}function oKe({relativeOriginPaths:e,selectionPath:t}){if(!e)return new Set([t]);let r=new Set;for(let n of e)r.add(`${n}${t}`);return r}});var Bv=O(Cv=>{"use strict";d();p();f();Object.defineProperty(Cv,"__esModule",{value:!0});Cv.NodeResolutionData=void 0;var pX=bi(),vd,cL=class cL{constructor({fieldDataByName:t,isResolved:r=!1,resolvedDescendantNames:n,resolvedFieldNames:i,typeName:a}){Xd(this,vd,!1);S(this,"fieldDataByName");S(this,"resolvedDescendantNames");S(this,"resolvedFieldNames");S(this,"typeName");KS(this,vd,r),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(n),this.resolvedFieldNames=new Set(i),this.typeName=a}addData({resolvedDescendantNames:t,resolvedFieldNames:r}){for(let n of r)this.addResolvedFieldName(n);for(let n of t)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,pX.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}addExternalSubgraphName({fieldName:t,subgraphName:r}){let n=this.fieldDataByName.get(t);if(!n)throw(0,pX.unexpectedEdgeFatalError)(this.typeName,[t]);n.externalSubgraphNames.add(r)}copy(){return new cL({fieldDataByName:this.fieldDataByName,isResolved:VS(this,vd),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(VS(this,vd))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return KS(this,vd,!0),!0}};vd=new WeakMap;var uL=cL;Cv.NodeResolutionData=uL});var mX=O(Uv=>{"use strict";d();p();f();Object.defineProperty(Uv,"__esModule",{value:!0});Uv.EntityWalker=void 0;var sKe=Bv(),Xo=An(),lL=class{constructor({encounteredEntityNodeNames:t,index:r,relativeOriginPaths:n,resDataByNodeName:i,resDataByRelativeOriginPath:a,resolvedPaths:o,subgraphNameByUnresolvablePath:u,visitedEntities:l}){S(this,"encounteredEntityNodeNames");S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByRelativeOriginPath");S(this,"resolvedPaths");S(this,"selectionPathByEntityNodeName",new Map);S(this,"subgraphNameByUnresolvablePath");S(this,"visitedEntities");S(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=r,this.relativeOriginPaths=n,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.resolvedPaths=o,this.subgraphNameByUnresolvablePath=u,this.visitedEntities=l}getNodeResolutionData({node:{fieldDataByName:t,nodeName:r,typeName:n},selectionPath:i}){let a=(0,Xo.getValueOrDefault)(this.resDataByNodeName,r,()=>new sKe.NodeResolutionData({fieldDataByName:t,typeName:n}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let u of this.relativeOriginPaths){let l=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${u}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:r}){if(t.isEdgeInaccessible())return{visited:!1,areDescendantsResolved:!1};if(t.isExternal)return{visited:!1,areDescendantsResolved:!1,isExternal:!0};if(t.node.isLeaf)return{visited:!0,areDescendantsResolved:!0};let n=`${r}.${t.edgeName}`;return this.getNodeResolutionData({node:t.node,selectionPath:n}).areDescendantsResolved()?{visited:!0,areDescendantsResolved:!0}:(0,Xo.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,Xo.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>n),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:n}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:n}):(this.removeUnresolvablePaths({selectionPath:n,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,isRevisitedNode:m,visited:h}=this.visitEntityDescendantEdge({edge:o,selectionPath:r});i!=null||(i=m),this.propagateVisitedField({areDescendantsResolved:u,data:n,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:h})}return n.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:r}):this.addUnresolvablePaths({selectionPath:r,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;let l=(0,Xo.getValueOrDefault)(this.resDataByNodeName,a.nodeName,()=>r.copy());if(r.addResolvedFieldName(n),l.addResolvedFieldName(n),t&&r.resolvedDescendantNames.add(n),this.relativeOriginPaths){for(let h of this.relativeOriginPaths){let N=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,`${h}${o}`,()=>r.copy());N.addResolvedFieldName(n),t&&(N.resolvedDescendantNames.add(n),this.removeUnresolvablePaths({selectionPath:`.${n}`,removeDescendantPaths:!0}))}return}let m=(0,Xo.getValueOrDefault)(this.resDataByRelativeOriginPath,o,()=>r.copy());m.addResolvedFieldName(n),t&&m.resolvedDescendantNames.add(n)}addUnresolvablePaths({selectionPath:t,subgraphName:r}){if(!this.relativeOriginPaths){if(this.resolvedPaths.has(t))return;(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>r);return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;this.resolvedPaths.has(i)||(0,Xo.getValueOrDefault)(this.subgraphNameByUnresolvablePath,i,()=>r)}}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:r}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),r)for(let n of this.subgraphNameByUnresolvablePath.keys())n.startsWith(t)&&(this.subgraphNameByUnresolvablePath.delete(n),this.resolvedPaths.add(n));return}for(let n of this.relativeOriginPaths){let i=`${n}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),this.resolvedPaths.add(i),r)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&(this.subgraphNameByUnresolvablePath.delete(a),this.resolvedPaths.add(a))}}};Uv.EntityWalker=lL});var hX=O(qv=>{"use strict";d();p();f();Object.defineProperty(qv,"__esModule",{value:!0});qv.RootFieldWalker=void 0;var Zo=An(),kv=Bv(),dL=class{constructor({index:t,nodeResolutionDataByNodeName:r}){S(this,"index");S(this,"resDataByNodeName");S(this,"resDataByPath",new Map);S(this,"entityNodeNamesByPath",new Map);S(this,"pathsByEntityNodeName",new Map);S(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=r}visitEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,Zo.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${r}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.resDataByNodeName.get(t.nodeName);if(n)return{visited:!0,areDescendantsResolved:n.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:r});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{areDescendantsResolved:u,isExternal:l,visited:m}=this.visitEdge({edge:o,selectionPath:r});this.propagateVisitedField({areDescendantsResolved:u,data:i,fieldName:a,isExternal:l,node:t,selectionPath:r,visited:m})}return i.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:r}){return t.isEdgeInaccessible()?{visited:!1,areDescendantsResolved:!1}:t.isExternal?{visited:!1,areDescendantsResolved:!1,isExternal:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,Zo.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,Zo.getValueOrDefault)(this.entityNodeNamesByPath,`${r}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${r}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${r}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let n=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:r}).areDescendantsResolved&&(n+=1);return{visited:!0,areDescendantsResolved:n===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:r}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let n=this.getSharedNodeResolutionData({node:t,selectionPath:r});if(n.isResolved()&&n.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:u}=this.visitSharedEdge({edge:a,selectionPath:r});this.propagateSharedVisitedField({areDescendantsResolved:u,data:n,fieldName:i,node:t,visited:o})}return n.isResolved()?this.unresolvablePaths.delete(r):this.unresolvablePaths.add(r),{visited:!0,areDescendantsResolved:n.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy()),n}getSharedNodeResolutionData({node:t,selectionPath:r}){let n=(0,Zo.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,Zo.getValueOrDefault)(this.resDataByPath,r,()=>n.copy())}propagateVisitedField({areDescendantsResolved:t,data:r,fieldName:n,isExternal:i,node:a,selectionPath:o,visited:u}){if(i){r.addExternalSubgraphName({fieldName:n,subgraphName:a.subgraphName});return}if(!u)return;r.addResolvedFieldName(n);let l=(0,Zo.getValueOrDefault)(this.resDataByPath,o,()=>new kv.NodeResolutionData({fieldDataByName:a.fieldDataByName,typeName:a.typeName}));l.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),l.resolvedDescendantNames.add(n))}propagateSharedVisitedField({areDescendantsResolved:t,data:r,fieldName:n,node:i,visited:a}){if(!a)return;r.addResolvedFieldName(n);let o=(0,Zo.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new kv.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(n),t&&(r.resolvedDescendantNames.add(n),o.resolvedDescendantNames.add(n))}visitRootFieldEdges({edges:t,rootTypeName:r}){let n=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=n?this.visitSharedEdge({edge:i,selectionPath:r}):this.visitEdge({edge:i,selectionPath:r});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};qv.RootFieldWalker=dL});var jv=O(Mv=>{"use strict";d();p();f();Object.defineProperty(Mv,"__esModule",{value:!0});Mv.Graph=void 0;var Op=rL(),Dp=sL(),hi=An(),xv=nL(),uKe=mX(),cKe=hX(),fL=class{constructor(){S(this,"edgeId",-1);S(this,"entityDataNodeByTypeName",new Map);S(this,"nodeByNodeName",new Map);S(this,"nodesByTypeName",new Map);S(this,"resolvedRootFieldNodeNames",new Set);S(this,"rootNodeByTypeName",new Map);S(this,"subgraphName",xv.NOT_APPLICABLE);S(this,"resDataByNodeName",new Map);S(this,"resDataByRelativePathByEntity",new Map);S(this,"visitedEntitiesByOriginEntity",new Map);S(this,"walkerIndex",-1)}getRootNode(t){return(0,hi.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new Op.RootNode(t))}addOrUpdateNode(t,r){let n=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(n);if(i)return i.isAbstract||(i.isAbstract=!!(r!=null&&r.isAbstract)),!i.isLeaf&&(r!=null&&r.isLeaf)&&(i.isLeaf=!0),i;let a=new Op.GraphNode(this.subgraphName,t,r);return this.nodeByNodeName.set(n,a),(0,hi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,r,n,i=!1){if(t.isRootNode){let u=new Op.Edge(this.getNextEdgeId(),r,n);return(0,hi.getValueOrDefault)(t.headToSharedTailEdges,n,()=>[]).push(u),u}let a=t,o=new Op.Edge(this.getNextEdgeId(),r,i?r.typeName:n,i);return a.headToTailEdges.set(n,o),o}addEntityDataNode(t){let r=this.entityDataNodeByTypeName.get(t);if(r)return r;let n=new Op.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,n),n}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=1}setNodeInaccessible(t){let r=this.nodesByTypeName.get(t);if(r)for(let n of r)n.isInaccessible=!0}initializeNode(t,r){let n=this.entityDataNodeByTypeName.get(t);if(xv.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(r),a.fieldDataByName=r;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=r,a.handleInaccessibleEdges(),a.isLeaf=!1,!!n){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){if(a.externalFieldSets.has(o))continue;let u=n.targetSubgraphNamesByFieldSet.get(o);for(let l of u!=null?u:[]){if(l===a.subgraphName)continue;let m=this.nodeByNodeName.get(`${l}.${a.typeName}`);m&&a.entityEdges.push(new Op.Edge(this.getNextEdgeId(),m,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:r,relativeOriginPaths:n,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}){let l=this.nodeByNodeName.get(r);if(!l)throw new Error(`Fatal: Could not find entity node for "${r}".`);u.add(r);let m=this.nodesByTypeName.get(l.typeName);if(!(m!=null&&m.length))throw new Error(`Fatal: Could not find any nodes for "${r}".`);let h=new uKe.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:n,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u}),N=l.getAllAccessibleEntityNodeNames();for(let T of m){if(T.nodeName!==l.nodeName&&!N.has(T.nodeName))continue;let{areDescendantsResolved:D}=h.visitEntityDescendantConcreteNode({node:T,selectionPath:""});if(D)return}for(let[T,D]of h.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:T,relativeOriginPaths:(0,Dp.getMultipliedRelativeOriginPaths)({relativeOriginPaths:n,selectionPath:D}),resDataByRelativeOriginPath:i,resolvedPaths:a,subgraphNameByUnresolvablePath:o,visitedEntities:u})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[r,n]of t.headToSharedTailEdges){let i=n.length>1;if(!i){let h=n[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(h))continue;this.resolvedRootFieldNodeNames.add(h)}let a=new cKe.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:n,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let u=(0,hi.getOrThrowError)(t.fieldDataByName,r,"fieldDataByName"),l=(0,Dp.newRootFieldData)(t.typeName,r,u.subgraphNames);if(!o)return{errors:(0,Dp.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let m=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!m.success)return m}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),u=(0,hi.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=r.get(o);if(l){if(u.addData(l),l.addData(u),!u.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),n.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:r,subgraphNameByUnresolvablePath:n,walker:i}){for(let a of n.keys()){let o=(0,hi.getOrThrowError)(r,a,"resDataByRelativeOriginPath"),u=`${t}${a}`,l=i.resDataByPath.get(u);l&&(o.addData(l),l.addData(o)),o.isResolved()&&n.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:r}){let n=new Set;for(let[i,a]of r.entityNodeNamesByPath){if(r.unresolvablePaths.size<1)return{success:!0};let o=new Map,u=new Map;for(let l of a)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:u,resolvedPaths:n,subgraphNameByUnresolvablePath:o,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)&&(this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:i,resDataByRelativeOriginPath:u,subgraphNameByUnresolvablePath:o,walker:r}),!(o.size<1)))return{errors:(0,Dp.generateSharedEntityResolvabilityErrors)({entityAncestors:this.getEntityAncestorCollection(a),pathFromRoot:i,resDataByPath:u,rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return r.unresolvablePaths.size>0?{errors:(0,Dp.generateRootResolvabilityErrors)({resDataByPath:r.resDataByPath,rootFieldData:t,unresolvablePaths:r.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:r}){var i;let n=new Set;for(let[a,o]of r.pathsByEntityNodeName){let u=new Map;if(this.resDataByNodeName.has(a))continue;let l=(0,hi.getValueOrDefault)(this.resDataByRelativePathByEntity,a,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:a,resDataByRelativeOriginPath:l,resolvedPaths:n,subgraphNameByUnresolvablePath:u,visitedEntities:(0,hi.getValueOrDefault)(this.visitedEntitiesByOriginEntity,a,()=>new Set)}),!(u.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:a,pathFromRoot:(i=(0,hi.getFirstEntry)(o))!=null?i:"",rootFieldData:t,subgraphNameByUnresolvablePath:u}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:r,rootFieldData:n,subgraphNameByUnresolvablePath:i}){let a=(0,hi.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(xv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:u}=(0,hi.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Dp.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:u,subgraphName:"",typeName:o},pathFromRoot:r,resDataByPath:a,rootFieldData:n,subgraphNameByUnresolvablePath:i})}getEntityAncestorCollection(t){let r=(0,hi.getFirstEntry)(t).split(xv.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:n}=(0,hi.getOrThrowError)(this.entityDataNodeByTypeName,r,"entityDataNodeByTypeName"),i=new Array,a=new Map;for(let o of t){let{satisfiedFieldSets:u,subgraphName:l}=(0,hi.getOrThrowError)(this.nodeByNodeName,o,"nodeByNodeName");for(let m of u)(0,hi.getValueOrDefault)(a,m,()=>[]).push(l);i.push(l)}return{fieldSetsByTargetSubgraphName:n,sourceSubgraphNamesBySatisfiedFieldSet:a,subgraphNames:i,typeName:r}}};Mv.Graph=fL});var hL=O(Kv=>{"use strict";d();p();f();Object.defineProperty(Kv,"__esModule",{value:!0});Kv.upsertDirectiveSchemaAndEntityDefinitions=fKe;Kv.upsertParentsAndChildren=pKe;var ln=_e(),al=bi(),mL=zo(),Vv=vp(),Ap=kn(),pL=_p(),lKe=xs(),bp=Zc(),Fy=Jo(),dKe=hd(),La=xr(),jn=An();function fKe(e,t){(0,ln.visit)(t,{Directive:{enter(r){let n=r.name.value;return e.referencedDirectiveNames.add(n),lKe.EVENT_DIRECTIVE_NAMES.has(n)?(e.edfsDirectiveReferences.add(n),!1):(mL.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n)&&(e.isSubgraphVersionTwo=!0),!1)}},DirectiveDefinition:{enter(r){return e.addDirectiveDefinitionDataByNode(r)&&e.customDirectiveDefinitionByName.set(r.name.value,r),!1}},InterfaceTypeDefinition:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,jn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},InterfaceTypeExtension:{enter(r){let n=r.name.value;if(e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),!(0,Ap.isObjectLikeNodeEntity)(r))return;let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n}),(0,jn.getValueOrDefault)(e.entityInterfaceDataByTypeName,n,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:n}))}},ObjectTypeDefinition:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value;(0,Ap.isNodeInterfaceObject)(r)&&(e.entityInterfaceDataByTypeName.set(n,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:n}),e.internalGraph.addOrUpdateNode(n,{isAbstract:!0}));let i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},ObjectTypeExtension:{enter(r){if(!(0,Ap.isObjectLikeNodeEntity)(r))return;let n=r.name.value,i=(0,jn.getValueOrDefault)(e.keyFieldSetDatasByTypeName,n,()=>new Map);e.extractKeyFieldSets(r,i),(0,Vv.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:n})}},OperationTypeDefinition:{enter(r){let n=r.operation,i=e.schemaData.operationTypes.get(n),a=(0,Fy.getTypeNodeNamedTypeName)(r.type);if(i)return e.errors.push((0,al.duplicateOperationTypeDefinitionError)(n,a,(0,Fy.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,al.invalidOperationTypeDefinitionError)(o,a,n)),!1):(e.operationTypeNodeByTypeName.set(a,n),e.schemaData.operationTypes.set(n,r),!1)}},SchemaDefinition:{enter(r){e.schemaData.description=r.description,e.extractDirectives(r,e.schemaData.directivesByName)}},SchemaExtension:{enter(r){e.extractDirectives(r,e.schemaData.directivesByName)}}})}function pKe(e,t){let r=!1,n;(0,ln.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(o.kind!==ln.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,jn.kindToNodeType)(o.kind),a,(0,jn.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,al.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:ln.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Fy.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,federatedDirectivesData:(0,bp.newFederatedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Ap.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=ln.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(r&&La.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);(0,jn.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),n&&!n.isAbstract&&e.internalGraph.addEdge(n,e.internalGraph.addOrUpdateNode(o),a),mL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(!(0,bp.isParentDataCompositeOutputType)(u)){e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,jn.kindToNodeType)(u.kind),a,(0,jn.kindToNodeType)(i.kind)));return}if(u.fieldDataByName.has(a)){e.errors.push((0,al.duplicateFieldDefinitionError)((0,jn.kindToNodeType)(u.kind),u.name,a));return}let l=e.extractArguments(new Map,i),m=e.extractDirectives(i,new Map),h=new Set;e.handleFieldInheritableDirectives({directivesByName:m,fieldName:a,inheritedDirectiveNames:h,parentData:u});let N=e.addFieldDataByNode(u.fieldDataByName,i,l,m,h);r&&e.extractEventDirectivesToConfiguration(i,l);let T=N.directivesByName.get(La.PROVIDES),D=N.directivesByName.get(La.REQUIRES);if(!D&&!T)return;let R=e.entityDataByTypeName.get(e.originalParentTypeName),C=(0,jn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,pL.newFieldSetData);T&&(0,pL.extractFieldSetValue)(a,C.provides,T),D&&(R||e.warnings.push((0,dKe.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,pL.extractFieldSetValue)(a,C.requires,D))},leave(){e.lastChildNodeKind=ln.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=ln.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=ln.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==ln.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==ln.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Fy.getTypeNodeNamedTypeName)(i.type);mL.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let u=(0,jn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,La.PARENT_DEFINITION_DATA);if(u.kind!==ln.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,al.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,jn.kindToNodeType)(u.kind),a,(0,jn.kindToNodeType)(i.kind))),!1;if(u.inputValueDataByName.has(a)){e.errors.push((0,al.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:u.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===ln.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=ln.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===La.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,r=(0,bp.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,bp.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),n=r?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){n=void 0,r=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===La.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=ln.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===La.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var yL=O($v=>{"use strict";d();p();f();Object.defineProperty($v,"__esModule",{value:!0});$v.newFieldSetConditionData=mKe;$v.newConfigurationData=hKe;function mKe({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function hKe(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var TL=O(Rp=>{"use strict";d();p();f();Object.defineProperty(Rp,"__esModule",{value:!0});Rp.NormalizationFactory=void 0;Rp.normalizeSubgraphFromString=EKe;Rp.normalizeSubgraph=gKe;var W=_e(),Kr=kn(),yi=_p(),Yn=zo(),Vn=vp(),ne=bi(),Gv=xs(),yKe=XR(),Rn=Iy(),es=hd(),yX=hL(),ts=Xh(),Dt=Zc(),Vr=Jo(),EX=jv(),Qv=XI(),X=xr(),NKe=Xf(),et=An(),Ly=yL(),NX=ZI(),TKe=YP(),TX=Oy();function EKe({noLocation:e,options:t,sdlString:r}){let{error:n,documentNode:i}=(0,Kr.safeParse)(r,e);return n||!i?{errors:[(0,ne.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Cy({internalGraph:new EX.Graph,options:t}).normalize(i)}function gKe({document:e,internalGraph:t,options:r,subgraphName:n}){return new Cy({internalGraph:t||new EX.Graph,options:r,subgraphName:n}).normalize(e)}var _d,NL,gX,Cy=class{constructor({internalGraph:t,options:r,subgraphName:n}){Xd(this,_d);S(this,"argumentName","");S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"conditionalFieldDataByCoords",new Map);S(this,"configurationDataByTypeName",new Map);S(this,"costs",{fieldWeights:new Map,listSizes:new Map,typeWeights:new Map,directiveArgumentWeights:new Map});S(this,"customDirectiveDefinitionByName",new Map);S(this,"definedDirectiveNames",new Set);S(this,"directiveDefinitionByName",new Map);S(this,"directiveDefinitionDataByName",(0,yi.initializeDirectiveDefinitionDatas)());S(this,"doesParentRequireFetchReasons",!1);S(this,"edfsDirectiveReferences",new Set);S(this,"errors",new Array);S(this,"entityDataByTypeName",new Map);S(this,"entityInterfaceDataByTypeName",new Map);S(this,"eventsConfigurations",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"fieldSetDataByTypeName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalGraph");S(this,"invalidConfigureDescriptionNodeDatas",[]);S(this,"invalidORScopesCoords",new Set);S(this,"invalidRepeatedDirectiveNameByCoords",new Map);S(this,"isParentObjectExternal",!1);S(this,"isParentObjectShareable",!1);S(this,"isSubgraphEventDrivenGraph",!1);S(this,"isSubgraphVersionTwo",!1);S(this,"keyFieldSetDatasByTypeName",new Map);S(this,"lastParentNodeKind",W.Kind.NULL);S(this,"lastChildNodeKind",W.Kind.NULL);S(this,"options");S(this,"parentTypeNamesWithAuthDirectives",new Set);S(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);S(this,"keyFieldNamesByParentTypeName",new Map);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"operationTypeNodeByTypeName",new Map);S(this,"originalParentTypeName","");S(this,"originalTypeNameByRenamedTypeName",new Map);S(this,"overriddenFieldNamesByTypeNameByTargetSubgraphName",new Map);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"referencedDirectiveNames",new Set);S(this,"referencedTypeNames",new Set);S(this,"renamedParentTypeName","");S(this,"schemaData");S(this,"subgraphName");S(this,"unvalidatedExternalFieldCoords",new Set);S(this,"usesEdfsNatsStreamConfiguration",!1);S(this,"warnings",[]);this.options=r!=null?r:{},this.subgraphName=n||X.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByName:new Map,kind:W.Kind.SCHEMA_DEFINITION,name:X.SCHEMA,operationTypes:new Map}}validateArguments(t,r){for(let n of t.argumentDataByName.values()){let i=(0,Vr.getTypeNodeNamedTypeName)(n.type);if(Yn.BASE_SCALARS.has(i)){n.namedTypeKind=W.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Dt.isInputNodeKind)(a.kind)){n.namedTypeKind=a.kind,(0,Dt.sanitizeDefaultValue)({data:n,namedTypeData:a,node:n.node});continue}this.errors.push((0,ne.invalidNamedTypeError)({data:n,namedTypeData:a,nodeType:`${(0,et.kindToNodeType)(r)} field argument`}))}}}isTypeNameRootType(t){return X.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}handleFieldInheritableDirectives({directivesByName:t,fieldName:r,inheritedDirectiveNames:n,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(X.REQUIRE_FETCH_REASONS)&&(t.set(X.REQUIRE_FETCH_REASONS,[(0,et.generateSimpleDirective)(X.REQUIRE_FETCH_REASONS)]),n.add(X.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(X.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(r),(0,Vn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(X.EXTERNAL)&&(t.set(X.EXTERNAL,[(0,et.generateSimpleDirective)(X.EXTERNAL)]),n.add(X.EXTERNAL)),t.has(X.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${r}`),this.isParentObjectShareable&&!t.has(X.SHAREABLE)&&(t.set(X.SHAREABLE,[(0,et.generateSimpleDirective)(X.SHAREABLE)]),n.add(X.SHAREABLE)))}extractDirectives(t,r){if(!t.directives)return r;let n=(0,Vn.isCompositeOutputNodeKind)(t.kind),i=(0,Vn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===X.SHAREABLE?(0,et.getValueOrDefault)(r,o,()=>[a]):(0,et.getValueOrDefault)(r,o,()=>[]).push(a),n&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===X.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===X.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===X.SHAREABLE)))}return r}validateDirective({data:t,definitionData:r,directiveCoords:n,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let u=i.name.value,l=t.kind===W.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,m=u===X.AUTHENTICATED,h=u===X.COST,N=(0,Dt.isFieldData)(t),T=u===X.LIST_SIZE,D=u===X.OVERRIDE,R=u===X.REQUIRES_SCOPES,C=u===X.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return r.requiredArgumentNames.size>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,[])),m&&this.handleAuthenticatedDirective(t,l),N&&(C&&((0,Dt.isTypeRequired)(t.type)?a.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,Rn.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),T&&!(0,Dt.isTypeNodeListType)(t.type)&&a.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(n,(0,Rn.printTypeNode)(t.type))),!h&&!T&&this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),a;let M=new Set,G=new Set,ee=new Set,ae=[];for(let Le of i.arguments){let Ve=Le.name.value;if(M.has(Ve)){G.add(Ve);continue}M.add(Ve);let ot=r.argumentDataByName.get(Ve);if(!ot){ee.add(Ve);continue}if(!(0,TKe.isArgumentValueValid)({argumentValue:Le.value,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,typeNode:ot.type})){a.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(Le.value),`@${u}`,Ve,(0,Rn.printTypeNode)(ot.type)));continue}if(D&&N){this.handleOverrideDirective({data:t,directiveCoords:n,errorMessages:a,targetSubgraphName:Le.value.value});continue}if(C&&N){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!R||Ve!==X.SCOPES||this.extractRequiredScopes({directiveCoords:n,orScopes:Le.value.values,requiredScopes:ae})}h?this.handleCostDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):N&&(T?this.handleListSizeDirective({data:t,directiveCoords:n,directiveNode:i,errorMessages:a}):this.recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:u,directiveNode:i})),G.size>0&&a.push((0,ne.duplicateDirectiveArgumentDefinitionsErrorMessage)([...G])),ee.size>0&&a.push((0,ne.unexpectedDirectiveArgumentErrorMessage)(u,[...ee]));let Ne=(0,et.getEntriesNotInHashSet)(o,M);if(Ne.length>0&&a.push((0,ne.undefinedRequiredArgumentsErrorMessage)(u,o,Ne)),a.length>0||!R)return a;let Ie=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Vn.newAuthorizationData)(l));if(t.kind!==W.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),Ie.requiredScopes.push(...ae);else{let Le=(0,et.getValueOrDefault)(Ie.fieldAuthDataByFieldName,t.name,()=>(0,Vn.newFieldAuthorizationData)(t.name));Le.inheritedData.requiredScopes.push(...ae),Le.originalData.requiredScopes.push(...ae)}return a}handleComposeDirective(t){let r=t.arguments[0];if(!r)return;let n=r.value.value;if(!n.startsWith(X.LITERAL_AT)){this.errors.push((0,ne.noLeadingAtComposeDirectiveNameError)(n));return}let i=n.substring(1);if(Yn.DIRECTIVE_DEFINITION_BY_NAME.has(i))if(i===X.ONE_OF)this.warnings.push((0,es.composedOneOfDirectiveWarning)(this.subgraphName));else{this.errors.push((0,ne.invalidComposeDirectiveNameError)(n));return}let a=this.directiveDefinitionDataByName.get(i);if(!a){this.errors.push((0,ne.unknownComposeDirectiveNameError)(n));return}let o=this.importDataByDirectiveName.get(n);if(!o){this.errors.push((0,ne.unimportedComposeDirectiveNameError)(n));return}a.majorVersion=o.majorVersion,a.minorVersion=o.minorVersion,a.isComposed=!0,this.federatedDirectiveDataByName.set(i,a)}handleExecutableDirectives(){for(let[t,r]of this.directiveDefinitionDataByName)r.isComposed||r.executableLocations.size<1||this.federatedDirectiveDataByName.set(t,r)}validateDirectives(t,r){var i;let n=new Set;for(let[a,o]of t.directivesByName){let u=this.directiveDefinitionDataByName.get(a);if(!u){n.has(a)||(this.errors.push((0,ne.undefinedDirectiveError)(a,r)),n.add(a));continue}u.isComposed&&(u.isReferenced=!0);let l=[],m=(0,Kr.nodeKindToDirectiveLocation)(t.kind);if(u.locations.has(m)||l.push((0,ne.invalidDirectiveLocationErrorMessage)(a,m)),o.length>1&&!u.isRepeatable){let N=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);N.has(a)||(N.add(a),l.push((0,ne.invalidRepeatedDirectiveErrorMessage)(a)))}let h=[...u.requiredArgumentNames];for(let N of(i=u.node.arguments)!=null?i:[]){if(!N.defaultValue)continue;let T=u.argumentDataByName.get(N.name.value);if(!T)continue;let D=this.parentDefinitionDataByTypeName.get((0,Vr.getTypeNodeNamedTypeName)(T.type));D&&(0,Dt.sanitizeDefaultValue)({data:T,namedTypeData:D,node:N})}for(let N=0;N0&&this.errors.push((0,ne.invalidDirectiveError)(a,r,(0,et.numberToOrdinal)(N+1),D))}}switch(t.kind){case W.Kind.ENUM_TYPE_DEFINITION:{for(let[a,o]of t.enumValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.FIELD_DEFINITION:{for(let[a,o]of t.argumentDataByName)this.validateDirectives(o,`${t.originalParentTypeName}.${t.name}(${a}: ...)`);return}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.inputValueDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{for(let[a,o]of t.fieldDataByName)this.validateDirectives(o,`${t.name}.${a}`);return}default:return}}getNodeExtensionType(t,r,n=!1){return t?ts.ExtensionType.REAL:n||!r.has(X.EXTENDS)?ts.ExtensionType.NONE:ts.ExtensionType.EXTENDS}setParentDataExtensionType(t,r){switch(t.extensionType){case ts.ExtensionType.EXTENDS:case ts.ExtensionType.NONE:{if(r===ts.ExtensionType.REAL)return;this.errors.push((0,ne.duplicateTypeDefinitionError)((0,et.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=r}}extractConfigureDescriptionData(t,r){var i,a;if(!r.arguments||r.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let n={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of r.arguments)switch(o.name.value){case X.PROPAGATE:{if(o.value.kind!==W.Kind.BOOLEAN)return;n.propagate=o.value.value;break}case X.DESCRIPTION_OVERRIDE:{if(o.value.kind!==W.Kind.STRING)return;n.description=o.value.value;break}default:return}!t.description&&!n.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,n)}extractConfigureDescriptionsData(t){let r=t.directivesByName.get(X.CONFIGURE_DESCRIPTION);r&&r.length==1&&this.extractConfigureDescriptionData(t,r[0])}extractImplementedInterfaceTypeNames(t,r){if(!t.interfaces)return r;let n=(0,Dt.isInterfaceNode)(t),i=t.name.value;for(let a of t.interfaces){let o=a.name.value;if(r.has(o)){this.errors.push((0,ne.duplicateImplementedInterfaceError)((0,Vn.kindToConvertedTypeString)(t.kind),i,o));continue}n&&(0,et.getValueOrDefault)(this.interfaceImplementationTypeNamesByInterfaceTypeName,o,()=>new Set).add(i),r.add(o)}return r}updateCompositeOutputDataByNode(t,r,n){this.setParentDataExtensionType(r,n),this.extractImplementedInterfaceTypeNames(t,r.implementedInterfaceTypeNames),r.description||(r.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(r),r.isEntity||(r.isEntity=r.directivesByName.has(X.KEY)),r.isInaccessible||(r.isInaccessible=r.directivesByName.has(X.INACCESSIBLE)),r.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,r){for(let n of t)(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(r),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(r),r,!0)}extractArguments(t,r){var o;if(!((o=r.arguments)!=null&&o.length))return t;let n=r.name.value,i=`${this.originalParentTypeName}.${n}`,a=new Set;for(let u of r.arguments){let l=u.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:n,inputValueDataByName:t,isArgument:!0,node:u,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,ne.duplicateArgumentsError)(i,[...a])),t}extractDirectiveArgumentData({argumentNodes:t,directiveName:r,errorMessages:n}){let i=new Map,a=new Set,o=new Set,u={argumentDataByName:i,optionalArgumentNames:a,requiredArgumentNames:o};if(!t)return u;let l=new Set;for(let m of t){let h=m.name.value;if(i.has(h)){l.add(h);continue}i.set(h,this.addDirectiveArgumentDataByNode({directiveName:r,node:m,optionalArgumentNames:a,requiredArgumentNames:o}))}return l.size>0&&n.push((0,ne.duplicateDirectiveDefinitionArgumentErrorMessage)([...l])),u}extractDirectiveArgumentCosts(t){var n;if(!t.arguments)return;let r=t.name.value;for(let i of t.arguments)if(i.directives)for(let a of i.directives){if(a.name.value!==X.COST)continue;let o=(n=a.arguments)==null?void 0:n.find(l=>l.name.value===X.WEIGHT);if(!o)continue;if(o.value.kind!==W.Kind.INT){let l=`@${r}(${i.name.value}: ...)`;this.errors.push((0,ne.invalidDirectiveError)(X.COST,l,"1st",[(0,ne.invalidArgumentValueErrorMessage)((0,W.print)(o.value),`@${X.COST}`,X.WEIGHT,"Int!")]));continue}let u=parseInt(o.value.value,10);this.costs.directiveArgumentWeights.set(`${r}.${i.name.value}`,u)}}addDirectiveArgumentDataByNode({directiveName:t,node:r,optionalArgumentNames:n,requiredArgumentNames:i}){let a=r.name.value,o=`@${t}`;r.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(r.type,r.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)(`argument "${a}"`,o,(0,Rn.printTypeNode)(r.type),(0,W.print)(r.defaultValue)));let u=(0,Dt.isTypeRequired)(r.type);r.defaultValue?n.add(a):u&&i.add(a);let l=(0,Vr.getTypeNodeNamedTypeName)(r.type),m=(0,TX.newDirectiveArgumentData)({name:a,directive:`@${t}`,directivesByName:this.extractDirectives(r,new Map),defaultValue:r.defaultValue,description:(0,Kr.formatDescription)(r.description),namedTypeKind:Yn.BASE_SCALARS.has(l)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,node:(0,Vr.getMutableInputValueNode)(r,o,this.errors),requiredSubgraphNames:new Set(u?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),typeNode:(0,Vr.getMutableTypeNode)(r.type,o,this.errors)});return this.extractConfigureDescriptionsData(m),m}addDirectiveDefinitionDataByNode(t){let r=t.name.value;if(this.definedDirectiveNames.has(r))return this.errors.push((0,ne.duplicateDirectiveDefinitionError)(r)),!1;this.definedDirectiveNames.add(r),this.extractDirectiveArgumentCosts(t);let n=Yn.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(r);if(n)return this.directiveDefinitionByName.set(r,n),this.isSubgraphVersionTwo=!0,!1;if(Yn.DIRECTIVE_DEFINITION_BY_NAME.has(r))return!1;this.directiveDefinitionByName.set(r,t);let i=[],{argumentDataByName:a,optionalArgumentNames:o,requiredArgumentNames:u}=this.extractDirectiveArgumentData({argumentNodes:t.arguments,directiveName:r,errorMessages:i}),{errors:l,locations:m}=(0,Vr.extractDirectiveLocations)(t);return l.length>0&&this.errors.push(...l),this.directiveDefinitionDataByName.set(r,(0,TX.newDirectiveDefinitionData)({argumentDataByName:a,description:t.description,isRepeatable:t.repeatable,locations:m,name:r,node:t,optionalArgumentNames:o,requiredArgumentNames:u,subgraphNames:new Set([this.subgraphName])})),i.length>0&&this.errors.push((0,ne.invalidDirectiveDefinitionError)(r,i)),!0}addFieldDataByNode(t,r,n,i,a=new Set){let o=r.name.value,u=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:m,isShareable:h}=(0,Dt.isNodeExternalOrShareable)(r,!this.isSubgraphVersionTwo,i),N=(0,Vr.getTypeNodeNamedTypeName)(r.type),T={argumentDataByName:n,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Dt.newExternalFieldData)(m)]]),federatedCoords:`${u}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(X.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,h]]),kind:W.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Yn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableFieldNode)(r,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(r.type,l,this.errors),directivesByName:i,description:(0,Kr.formatDescription)(r.description)};return Yn.BASE_SCALARS.has(T.namedTypeName)||this.referencedTypeNames.add(T.namedTypeName),this.extractConfigureDescriptionsData(T),t.set(o,T),T}addInputValueDataByNode({fieldName:t,inputValueDataByName:r,isArgument:n,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let u=o||a,l=i.name.value,m=n?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Dt.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,ne.incompatibleInputValueDefaultValueTypeError)((n?X.ARGUMENT:X.INPUT_FIELD)+` "${l}"`,m,(0,Rn.printTypeNode)(i.type),(0,W.print)(i.defaultValue)));let h=n?`${u}${t?`.${t}`:""}(${l}: ...)`:`${u}.${l}`,N=(0,Vr.getTypeNodeNamedTypeName)(i.type),T={configureDescriptionDataBySubgraphName:new Map,directivesByName:this.extractDirectives(i,new Map),federatedCoords:h,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:n,kind:n?W.Kind.ARGUMENT:W.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Yn.BASE_SCALARS.has(N)?W.Kind.SCALAR_TYPE_DEFINITION:W.Kind.NULL,namedTypeName:N,node:(0,Vr.getMutableInputValueNode)(i,a,this.errors),originalCoords:m,originalParentTypeName:a,federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),renamedParentTypeName:u,requiredSubgraphNames:new Set((0,Dt.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,Vr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Kr.formatDescription)(i.description)};this.extractConfigureDescriptionsData(T),r.set(l,T)}upsertInterfaceDataByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a),u=this.entityInterfaceDataByTypeName.get(n);if(u&&t.fields)for(let m of t.fields)u.interfaceFieldNames.add(m.name.value);if(i){if(i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INTERFACE_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableInterfaceNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(n,l)}getRenamedRootTypeName(t){let r=this.operationTypeNodeByTypeName.get(t);if(!r)return t;switch(r){case W.OperationTypeNode.MUTATION:return X.MUTATION;case W.OperationTypeNode.SUBSCRIPTION:return X.SUBSCRIPTION;default:return X.QUERY}}addInterfaceObjectFieldsByNode(t){let r=t.name.value,n=this.entityInterfaceDataByTypeName.get(r);if(!(!n||!n.isInterfaceObject||!t.fields))for(let i of t.fields)n.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,r=!1){var h;let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(h=i==null?void 0:i.directivesByName)!=null?h:new Map),o=this.isTypeNameRootType(n),u=this.getNodeExtensionType(r,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==W.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,u),a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,n);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(X.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,n);let m={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:u,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(X.KEY),isInaccessible:a.has(X.INACCESSIBLE),isRootType:o,kind:W.Kind.OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(n),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(m),this.parentDefinitionDataByTypeName.set(n,m)}upsertEnumDataByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let u={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.ENUM_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableEnumNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}upsertInputObjectByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i)return i.kind!==W.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(X.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(X.INACCESSIBLE),kind:W.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableInputObjectNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u),{success:!0,data:u}}upsertScalarByNode(t,r=!1){let n=t.name.value;this.internalGraph.addOrUpdateNode(n,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(i){if(i.kind!==W.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.SCALAR_TYPE_DEFINITION,name:n,node:(0,Vr.getMutableScalarNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractUnionMembers(t,r){if(!t.types)return r;let n=t.name.value;for(let i of t.types){let a=i.name.value;if(r.has(a)){this.errors.push((0,ne.duplicateUnionMemberDefinitionError)(n,a));continue}(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(a),Yn.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),r.set(a,i)}return r}upsertUnionByNode(t,r=!1){let n=t.name.value,i=this.parentDefinitionDataByTypeName.get(n),a=this.extractDirectives(t,(i==null?void 0:i.directivesByName)||new Map),o=this.getNodeExtensionType(r,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==W.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,ne.multipleNamedTypeDefinitionError)(n,(0,et.kindToNodeType)(i.kind),(0,Vn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Kr.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let u={configureDescriptionDataBySubgraphName:new Map,directivesByName:a,extensionType:o,kind:W.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:n,node:(0,Vr.getMutableUnionNode)(t.name),federatedDirectivesData:(0,Dt.newFederatedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Kr.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(u),this.parentDefinitionDataByTypeName.set(n,u)}extractKeyFieldSets(t,r){var a;let n=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,ne.expectedEntityError)(n));return}let i=0;for(let o of t.directives){if(o.name.value!==X.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let u,l=!1;for(let D of o.arguments){if(D.name.value===X.RESOLVABLE){D.value.kind===W.Kind.BOOLEAN&&!D.value.value&&(l=!0);continue}if(D.name.value!==X.FIELDS){u=void 0;break}if(D.value.kind!==W.Kind.STRING){u=void 0;break}u=D.value.value}if(u===void 0)continue;let{error:m,documentNode:h}=(0,Kr.safeParse)("{"+u+"}");if(m||!h){this.errors.push((0,ne.invalidDirectiveError)(X.KEY,n,(0,et.numberToOrdinal)(i),[(0,ne.unparsableFieldSetErrorMessage)(u,m)]));continue}let N=(0,yi.getNormalizedFieldSet)(h),T=r.get(N);T?T.isUnresolvable||(T.isUnresolvable=l):r.set(N,{documentNode:h,isUnresolvable:l,normalizedFieldSet:N,rawFieldSet:u})}}getFieldSetParent(t,r,n,i){if(!t)return{fieldSetParentData:r};let a=(0,et.getOrThrowError)(r.fieldDataByName,n,`${i}.fieldDataByFieldName`),o=(0,Vr.getTypeNodeNamedTypeName)(a.node.type),u=`${i}.${n}`;if(Yn.BASE_SCALARS.has(o))return{errorString:(0,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})};let l=this.parentDefinitionDataByTypeName.get(o);return l?l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION&&l.kind!==W.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,ne.incompatibleTypeWithProvidesErrorMessage)({fieldCoords:u,responseType:o,subgraphName:this.subgraphName})}:{fieldSetParentData:l}:{errorString:(0,ne.unknownNamedTypeErrorMessage)(u,o)}}validateConditionalFieldSet(t,r,n,i,a){let{error:o,documentNode:u}=(0,Kr.safeParse)("{"+r+"}");if(o||!u)return{errorMessages:[(0,ne.unparsableFieldSetErrorMessage)(r,o)]};let l=this,m=[t],h=(0,yi.getConditionalFieldSetDirectiveName)(i),N=[],T=`${a}.${n}`,D=(0,yi.getInitialFieldCoordsPath)(i,T),R=[n],C=new Set,M=[],G=-1,ee=!0,ae=n,Ne=!1;return(0,W.visit)(u,{Argument:{enter(){return!1}},Field:{enter(Ie){var tr,$r;let Le=m[G],Ve=Le.name;if(Le.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.invalidSelectionOnUnionErrorMessage)(r,D,Ve)),W.BREAK;let ot=Ie.name.value,Z=`${Ve}.${ot}`;if(l.unvalidatedExternalFieldCoords.delete(Z),ee)return M.push((0,ne.invalidSelectionSetErrorMessage)(r,D,Ve,(0,et.kindToNodeType)(Le.kind))),W.BREAK;if(D.push(Z),R.push(ot),ae=ot,ot===X.TYPENAME){if(i)return M.push((0,ne.typeNameAlreadyProvidedErrorMessage)(Z,l.subgraphName)),W.BREAK;C.size<1&&Zd(tr=l,_d,NL).call(tr,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}let Se=Le.fieldDataByName.get(ot);if(!Se)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,Ve,ot)),W.BREAK;if(N[G].has(ot))return M.push((0,ne.duplicateFieldInFieldSetErrorMessage)(r,Z)),W.BREAK;N[G].add(ot);let{isDefinedExternal:Ft,isUnconditionallyProvided:hr}=(0,et.getOrThrowError)(Se.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),or=Ft&&!hr;hr||(Ne=!0);let vr=(0,Vr.getTypeNodeNamedTypeName)(Se.node.type),yr=l.parentDefinitionDataByTypeName.get(vr);if(Yn.BASE_SCALARS.has(vr)||(yr==null?void 0:yr.kind)===W.Kind.SCALAR_TYPE_DEFINITION||(yr==null?void 0:yr.kind)===W.Kind.ENUM_TYPE_DEFINITION){if(C.size<1&&!Ft){Zd($r=l,_d,NL).call($r,{currentFieldCoords:Z,directiveCoords:T,directiveName:h,fieldSet:r});return}if(C.size<1&&hr){l.isSubgraphVersionTwo?M.push((0,ne.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,h)):l.warnings.push((0,es.fieldAlreadyProvidedWarning)(Z,h,T,l.subgraphName));return}if(!or&&!i)return;let Jn=(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData),fn=(0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...D],fieldPath:[...R]});i?Jn.providedBy.push(fn):Jn.requiredBy.push(fn);return}if(!yr)return M.push((0,ne.unknownTypeInFieldSetErrorMessage)(r,Z,vr)),W.BREAK;if(Ft&&(i&&(0,et.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,Dt.newConditionalFieldData).providedBy.push((0,Ly.newFieldSetConditionData)({fieldCoordinatesPath:[...D],fieldPath:[...R]})),C.add(Z)),yr.kind===W.Kind.OBJECT_TYPE_DEFINITION||yr.kind===W.Kind.INTERFACE_TYPE_DEFINITION||yr.kind===W.Kind.UNION_TYPE_DEFINITION){ee=!0,m.push(yr);return}},leave(){C.delete(D.pop()||""),R.pop()}},InlineFragment:{enter(Ie){let Le=m[G],Ve=Le.name,ot=D.length<1?t.name:D[D.length-1];if(!Ie.typeCondition)return M.push((0,ne.inlineFragmentWithoutTypeConditionErrorMessage)(r,ot)),W.BREAK;let Z=Ie.typeCondition.name.value;if(Z===Ve){m.push(Le),ee=!0;return}if(!(0,Kr.isKindAbstract)(Le.kind))return M.push((0,ne.invalidInlineFragmentTypeErrorMessage)(r,D,Z,Ve)),W.BREAK;let Se=l.parentDefinitionDataByTypeName.get(Z);if(!Se)return M.push((0,ne.unknownInlineFragmentTypeConditionErrorMessage)(r,D,Ve,Z)),W.BREAK;switch(ee=!0,Se.kind){case W.Kind.INTERFACE_TYPE_DEFINITION:{if(!Se.implementedInterfaceTypeNames.has(Ve))break;m.push(Se);return}case W.Kind.OBJECT_TYPE_DEFINITION:{let Ft=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!Ft||!Ft.has(Z))break;m.push(Se);return}case W.Kind.UNION_TYPE_DEFINITION:{m.push(Se);return}default:return M.push((0,ne.invalidInlineFragmentTypeConditionTypeErrorMessage)(r,D,Ve,Z,(0,et.kindToNodeType)(Se.kind))),W.BREAK}return M.push((0,ne.invalidInlineFragmentTypeConditionErrorMessage)(r,D,Z,(0,et.kindToNodeType)(Le.kind),Ve)),W.BREAK}},SelectionSet:{enter(){if(!ee){let Ie=m[G];if(Ie.kind===W.Kind.UNION_TYPE_DEFINITION)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;if(ae===X.TYPENAME)return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,D,X.STRING_SCALAR,(0,et.kindToNodeType)(W.Kind.SCALAR_TYPE_DEFINITION))),W.BREAK;let Le=Ie.fieldDataByName.get(ae);if(!Le)return M.push((0,ne.undefinedFieldInFieldSetErrorMessage)(r,Ie.name,ae)),W.BREAK;let Ve=(0,Vr.getTypeNodeNamedTypeName)(Le.node.type),ot=l.parentDefinitionDataByTypeName.get(Ve),Z=ot?ot.kind:W.Kind.SCALAR_TYPE_DEFINITION;return M.push((0,ne.invalidSelectionSetDefinitionErrorMessage)(r,D,Ve,(0,et.kindToNodeType)(Z))),W.BREAK}if(G+=1,ee=!1,G<0||G>=m.length)return M.push((0,ne.unparsableFieldSetSelectionErrorMessage)(r,ae)),W.BREAK;N.push(new Set)},leave(){if(ee){let Ie=m[G+1];M.push((0,ne.invalidSelectionSetErrorMessage)(r,D,Ie.name,(0,et.kindToNodeType)(Ie.kind))),ee=!1}G-=1,m.pop(),N.pop()}}}),M.length>0||!Ne?{errorMessages:M}:{configuration:{fieldName:n,selectionSet:(0,yi.getNormalizedFieldSet)(u)},errorMessages:M}}validateProvidesOrRequires(t,r,n){let i=[],a=[],o=(0,Dt.getParentTypeName)(t);for(let[u,l]of r){let{fieldSetParentData:m,errorString:h}=this.getFieldSetParent(n,t,u,o),N=`${o}.${u}`;if(h){i.push(h);continue}if(!m)continue;let{errorMessages:T,configuration:D}=this.validateConditionalFieldSet(m,l,u,n,o);if(T.length>0){i.push(` On field "${N}": + -`+T.join(X.HYPHEN_JOIN));continue}D&&a.push(D)}if(i.length>0){this.errors.push((0,ne.invalidProvidesOrRequiresDirectivesError)((0,yi.getConditionalFieldSetDirectiveName)(n),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let r=t.directivesByName.has(X.INACCESSIBLE),n=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(Yn.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!u)continue;if(u.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,et.kindToNodeType)(u.kind));continue}if(t.name===u.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},m=!1;for(let[h,N]of u.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${h}`);let T=!1,D=t.fieldDataByName.get(h);if(!D){m=!0,l.unimplementedFields.push(h);continue}let R={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Rn.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Dt.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:D.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:N.node.type})||(m=!0,T=!0,R.implementedResponseType=(0,Rn.printTypeNode)(D.node.type));let C=new Set;for(let[M,G]of N.argumentDataByName){C.add(M);let ee=D.argumentDataByName.get(M);if(!ee){m=!0,T=!0,R.unimplementedArguments.add(M);continue}let ae=(0,Rn.printTypeNode)(ee.type),Ne=(0,Rn.printTypeNode)(G.type);Ne!==ae&&(m=!0,T=!0,R.invalidImplementedArguments.push({actualType:ae,argumentName:M,expectedType:Ne}))}for(let[M,G]of D.argumentDataByName)C.has(M)||G.type.kind===W.Kind.NON_NULL_TYPE&&(m=!0,T=!0,R.invalidAdditionalArguments.add(M));!r&&D.isInaccessible&&!N.isInaccessible&&(m=!0,T=!0,R.isInaccessible=!0),T&&l.invalidFieldImplementations.set(h,R)}m&&n.set(o,l)}i.size>0&&this.errors.push((0,ne.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,ne.selfImplementationError)(t.name)),n.size>0&&this.errors.push((0,ne.invalidInterfaceImplementationError)(t.name,(0,et.kindToNodeType)(t.kind),n))}handleAuthenticatedDirective(t,r){let n=(0,et.getValueOrDefault)(this.authorizationDataByParentTypeName,r,()=>(0,Vn.newAuthorizationData)(r));if(t.kind===W.Kind.FIELD_DEFINITION){let i=(0,et.getValueOrDefault)(n.fieldAuthDataByFieldName,t.name,()=>(0,Vn.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else n.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(r)}handleOverrideDirective({data:t,directiveCoords:r,errorMessages:n,targetSubgraphName:i}){if(i===this.subgraphName){n.push((0,ne.equivalentSourceAndTargetOverrideErrorMessage)(i,r));return}let a=(0,et.getValueOrDefault)(this.overriddenFieldNamesByTypeNameByTargetSubgraphName,i,()=>new Map);(0,et.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:r,errorMessages:n}){var N;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case W.Kind.LIST_TYPE:{o+=1,a=a.type;break}case W.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let u=(N=r.arguments)==null?void 0:N.find(T=>T.name.value===X.LEVELS);if(!u||u.value.kind!==W.Kind.LIST){n.push(ne.semanticNonNullArgumentErrorMessage);return}let l=u.value.values,m=(0,Rn.printTypeNode)(t.type),h=new Set;for(let{value:T}of l){let D=parseInt(T,10);if(Number.isNaN(D)){n.push((0,ne.semanticNonNullLevelsNaNIndexErrorMessage)(T));continue}if(D<0||D>o){n.push((0,ne.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:m,value:T}));continue}if(!i.has(D)){h.add(D);continue}n.push((0,ne.semanticNonNullLevelsNonNullErrorMessage)({typeString:m,value:T}))}t.nullLevelsBySubgraphName.set(this.subgraphName,h)}getOrCreateFieldWeight(t,r){let n=`${t}.${r}`;return(0,et.getValueOrDefault)(this.costs.fieldWeights,n,()=>({typeName:t,fieldName:r,argumentWeights:new Map,directiveArgumentWeights:new Map}))}handleCostDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){var u;let a=(u=n.arguments)==null?void 0:u.find(l=>l.name.value===X.WEIGHT);if(!a||a.value.kind!==W.Kind.INT)return;let o=parseInt(a.value.value,10);switch(t.kind){case W.Kind.OBJECT_TYPE_DEFINITION:case W.Kind.SCALAR_TYPE_DEFINITION:case W.Kind.ENUM_TYPE_DEFINITION:this.costs.typeWeights.set(t.name,o);break;case W.Kind.FIELD_DEFINITION:{let l=t.renamedParentTypeName||t.originalParentTypeName,m=this.parentDefinitionDataByTypeName.get(l);if(!m)break;if(m.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}let h=this.getOrCreateFieldWeight(l,t.name);h.weight=o;break}case W.Kind.INPUT_VALUE_DEFINITION:case W.Kind.ARGUMENT:{let l=t;if(l.isArgument&&l.fieldName){let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.parentDefinitionDataByTypeName.get(m);if(!h)break;if(h.kind===W.Kind.INTERFACE_TYPE_DEFINITION){i.push((0,ne.costOnInterfaceFieldErrorMessage)(r));break}this.getOrCreateFieldWeight(m,l.fieldName).argumentWeights.set(l.name,o)}else{let m=l.renamedParentTypeName||l.originalParentTypeName,h=this.getOrCreateFieldWeight(m,l.name);h.weight=o}break}}}recordDirectiveWeightOnField({data:t,definitionData:r,directiveName:n,directiveNode:i}){var l,m;let a=t.renamedParentTypeName||t.originalParentTypeName,o=this.parentDefinitionDataByTypeName.get(a);if(!o||o.kind===W.Kind.INTERFACE_TYPE_DEFINITION)return;let u=new Map;for(let h of(l=i.arguments)!=null?l:[])u.set(h.name.value,h.value);for(let[h,N]of r.argumentDataByName){let T=`${n}.${h}`,D=this.costs.directiveArgumentWeights.get(T);if(D===void 0)continue;let R=u.get(h);if(R){if(R.kind===W.Kind.NULL)continue}else if(!N.defaultValue||N.defaultValue.kind===W.Kind.NULL)continue;let C=this.getOrCreateFieldWeight(a,t.name),M=(m=C.directiveArgumentWeights.get(T))!=null?m:0;C.directiveArgumentWeights.set(T,M+D)}}handleListSizeDirective({data:t,directiveCoords:r,directiveNode:n,errorMessages:i}){let a=n.arguments;if(!a)return;let o=!1,u=t.renamedParentTypeName||t.originalParentTypeName,l={typeName:u,fieldName:t.name,slicingArguments:[],sizedFields:[],requireOneSlicingArgument:!0};for(let h of a)switch(h.name.value){case X.ASSUMED_SIZE:h.value.kind===W.Kind.INT&&(l.assumedSize=parseInt(h.value.value,10));break;case X.REQUIRE_ONE_SLICING_ARGUMENT:h.value.kind===W.Kind.BOOLEAN&&(l.requireOneSlicingArgument=h.value.value);break;case X.SLICING_ARGUMENTS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;for(let D of T){if(D.kind!==W.Kind.STRING)continue;let R=D.value,C=t.argumentDataByName.get(R);if(!C){i.push((0,ne.listSizeInvalidSlicingArgumentErrorMessage)(r,R));continue}if((C.type.kind===W.Kind.NON_NULL_TYPE?C.type.type:C.type).kind===W.Kind.LIST_TYPE||C.namedTypeName!==X.INT_SCALAR){i.push((0,ne.listSizeSlicingArgumentNotIntErrorMessage)(r,R,(0,Rn.printTypeNode)(C.type)));continue}l.slicingArguments.push(R)}break}case X.SIZED_FIELDS:{let T;if(h.value.kind===W.Kind.LIST)T=h.value.values;else if(h.value.kind===W.Kind.STRING)T=[h.value];else continue;if(T.length<1)continue;o=!0;let D=t.namedTypeName,R=this.parentDefinitionDataByTypeName.get(D);if(!R||!(0,Dt.isParentDataCompositeOutputType)(R)){i.push((0,ne.listSizeSizedFieldsInvalidReturnTypeErrorMessage)(r,D));continue}for(let C of T){if(C.kind!==W.Kind.STRING)continue;let M=C.value,G=R.fieldDataByName.get(M);if(!G){i.push((0,ne.listSizeSizedFieldNotFoundErrorMessage)(r,M,D));continue}if(!(0,Dt.isTypeNodeListType)(G.type)){i.push((0,ne.listSizeSizedFieldNotListErrorMessage)(r,M,D,(0,Rn.printTypeNode)(G.type)));continue}l.sizedFields.push(M)}break}}if(!o&&!(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeFieldMustReturnListOrUseSizedFieldsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),o&&(0,Dt.isTypeNodeListType)(t.type)&&i.push((0,ne.listSizeSizedFieldsOnListsErrorMessage)(r,(0,Rn.printTypeNode)(t.type))),l.assumedSize!==void 0&&l.slicingArguments.length>0)if(l.requireOneSlicingArgument)i.push((0,ne.listSizeAssumedSizeWithRequiredSlicingArgumentErrorMessage)(r));else for(let h of l.slicingArguments){let N=t.argumentDataByName.get(h);N!=null&&N.defaultValue&&i.push((0,ne.listSizeAssumedSizeSlicingArgDefaultErrorMessage)(r,h))}let m=`${u}.${t.name}`;this.costs.listSizes.set(m,l)}extractRequiredScopes({directiveCoords:t,orScopes:r,requiredScopes:n}){if(r.length>Yn.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of r){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,Vn.addScopes)(n,a)}}getKafkaPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPIC:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.TOPIC));continue}(0,yi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.PUBLISH}}getKafkaSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.TOPICS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.TOPICS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.TOPICS));break}(0,yi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_KAFKA,topics:a,type:X.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,r,n,i,a){let o=[],u=X.DEFAULT_EDFS_PROVIDER_ID;for(let l of r.arguments||[])switch(l.name.value){case X.SUBJECT:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push((0,ne.invalidEventSubjectErrorMessage)(X.SUBJECT));continue}(0,yi.validateArgumentTemplateReferences)(l.value.value,n,a),o.push(l.value.value);break}case X.PROVIDER_ID:{if(l.value.kind!==W.Kind.STRING||l.value.value.length<1){a.push(ne.invalidEventProviderIdErrorMessage);continue}u=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:u,providerType:X.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID,u=Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",m="";for(let h of t.arguments||[])switch(h.name.value){case X.SUBJECTS:{if(h.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.SUBJECTS));continue}for(let N of h.value.values){if(N.kind!==W.Kind.STRING||N.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.SUBJECTS));break}(0,yi.validateArgumentTemplateReferences)(N.value,r,i),a.push(N.value)}break}case X.PROVIDER_ID:{if(h.value.kind!==W.Kind.STRING||h.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=h.value.value;break}case X.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,h.value.kind!==W.Kind.OBJECT||h.value.fields.length<1){i.push(ne.invalidNatsStreamInputErrorMessage);continue}let N=!0,T=new Set,D=new Set(Gv.STREAM_CONFIGURATION_FIELD_NAMES),R=new Set([X.CONSUMER_NAME,X.STREAM_NAME]),C=new Set,M=new Set;for(let G of h.value.fields){let ee=G.name.value;if(!Gv.STREAM_CONFIGURATION_FIELD_NAMES.has(ee)){T.add(ee),N=!1;continue}if(D.has(ee))D.delete(ee);else{C.add(ee),N=!1;continue}switch(R.has(ee)&&R.delete(ee),ee){case X.CONSUMER_NAME:if(G.value.kind!==W.Kind.STRING||G.value.value.length<1){M.add(ee),N=!1;continue}l=G.value.value;break;case X.STREAM_NAME:if(G.value.kind!==W.Kind.STRING||G.value.value.length<1){M.add(ee),N=!1;continue}m=G.value.value;break;case X.CONSUMER_INACTIVE_THRESHOLD:if(G.value.kind!==W.Kind.INT){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1;continue}try{u=parseInt(G.value.value,10)}catch(ae){i.push((0,ne.invalidArgumentValueErrorMessage)((0,W.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",X.INT_SCALAR)),N=!1}break}}(!N||R.size>0)&&i.push((0,ne.invalidNatsStreamInputFieldsErrorMessage)([...R],[...C],[...M],[...T]))}}if(!(i.length>0))return u<0?(u=Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):u>NKe.MAX_INT32&&(u=0,this.warnings.push((0,es.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),q({fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_NATS,subjects:a,type:X.SUBSCRIBE},l&&m?{streamConfiguration:{consumerInactiveThreshold:u,consumerName:l,streamName:m}}:{})}getRedisPublishConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNEL:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push((0,ne.invalidEventSubjectErrorMessage)(X.CHANNEL));continue}(0,yi.validateArgumentTemplateReferences)(u.value.value,r,i),a.push(u.value.value);break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.PUBLISH}}getRedisSubscribeConfiguration(t,r,n,i){let a=[],o=X.DEFAULT_EDFS_PROVIDER_ID;for(let u of t.arguments||[])switch(u.name.value){case X.CHANNELS:{if(u.value.kind!==W.Kind.LIST){i.push((0,ne.invalidEventSubjectsErrorMessage)(X.CHANNELS));continue}for(let l of u.value.values){if(l.kind!==W.Kind.STRING||l.value.length<1){i.push((0,ne.invalidEventSubjectsItemErrorMessage)(X.CHANNELS));break}(0,yi.validateArgumentTemplateReferences)(l.value,r,i),a.push(l.value)}break}case X.PROVIDER_ID:{if(u.value.kind!==W.Kind.STRING||u.value.value.length<1){i.push(ne.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:n,providerId:o,providerType:X.PROVIDER_TYPE_REDIS,channels:a,type:X.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let r=this.renamedParentTypeName||this.originalParentTypeName,n=`${r}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(r)===W.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===X.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,ne.invalidSubscriptionFilterLocationError)(n));return}}extractEventDirectivesToConfiguration(t,r){if(!t.directives)return;let n=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${n}`;for(let a of t.directives){let o=[],u;switch(a.name.value){case X.EDFS_KAFKA_PUBLISH:u=this.getKafkaPublishConfiguration(a,r,n,o);break;case X.EDFS_KAFKA_SUBSCRIBE:u=this.getKafkaSubscribeConfiguration(a,r,n,o);break;case X.EDFS_NATS_PUBLISH:{u=this.getNatsPublishAndRequestConfiguration(X.PUBLISH,a,r,n,o);break}case X.EDFS_NATS_REQUEST:{u=this.getNatsPublishAndRequestConfiguration(X.REQUEST,a,r,n,o);break}case X.EDFS_NATS_SUBSCRIBE:{u=this.getNatsSubscribeConfiguration(a,r,n,o);break}case X.EDFS_REDIS_PUBLISH:{u=this.getRedisPublishConfiguration(a,r,n,o);break}case X.EDFS_REDIS_SUBSCRIBE:{u=this.getRedisSubscribeConfiguration(a,r,n,o);break}default:continue}if(o.length>0){this.errors.push((0,ne.invalidEventDirectiveError)(a.name.value,i,o));continue}u&&(0,et.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(u)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case W.OperationTypeNode.MUTATION:return new Set([X.EDFS_KAFKA_PUBLISH,X.EDFS_NATS_PUBLISH,X.EDFS_NATS_REQUEST,X.EDFS_REDIS_PUBLISH]);case W.OperationTypeNode.QUERY:return new Set([X.EDFS_NATS_REQUEST]);case W.OperationTypeNode.SUBSCRIPTION:return new Set([X.EDFS_KAFKA_SUBSCRIBE,X.EDFS_NATS_SUBSCRIBE,X.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let r=this.operationTypeNodeByTypeName.get(t);if(r)return r;switch(t){case X.MUTATION:return W.OperationTypeNode.MUTATION;case X.QUERY:return W.OperationTypeNode.QUERY;case X.SUBSCRIPTION:return W.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,r,n,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,ne.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[u,l]of t.fieldDataByName){let m=`${l.originalParentTypeName}.${u}`,h=new Set;for(let M of Gv.EVENT_DIRECTIVE_NAMES)l.directivesByName.has(M)&&h.add(M);let N=new Set;for(let M of h)o.has(M)||N.add(M);if((h.size<1||N.size>0)&&r.set(m,{definesDirectives:h.size>0,invalidDirectiveNames:[...N]}),a===W.OperationTypeNode.MUTATION){let M=(0,Rn.printTypeNode)(l.type);M!==X.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(m,M);continue}let T=(0,Rn.printTypeNode)(l.type),D=l.namedTypeName+"!",R=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let M of C)if(R||(R=this.entityDataByTypeName.has(M)),R)break;(!R||T!==D)&&n.set(m,T)}}validateEventDrivenKeyDefinition(t,r){let n=this.keyFieldSetDatasByTypeName.get(t);if(n)for(let[i,{isUnresolvable:a}]of n)a||(0,et.getValueOrDefault)(r,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,r,n,i){var a;for(let[o,u]of t){let l=`${u.originalParentTypeName}.${o}`;if(r.has(o)){(a=u.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||n.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(X.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==W.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!==1)return!1;for(let[r,n]of t.fieldDataByName)if(n.argumentDataByName.size>0||r!==X.SUCCESS||(0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,Dt.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!==3)return!1;for(let[r,n]of t.inputValueDataByName)switch(r){case X.CONSUMER_INACTIVE_THRESHOLD:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_INT||!n.defaultValue||n.defaultValue.kind!==W.Kind.INT||n.defaultValue.value!==`${Qv.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case X.CONSUMER_NAME:case X.STREAM_NAME:{if((0,Rn.printTypeNode)(n.type)!==X.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],r=new Map,n=new Map,i=new Map,a=new Map,o=new Map,u=new Map,l=new Set,m=new Set;for(let[h,N]of this.parentDefinitionDataByTypeName){if(h===X.EDFS_PUBLISH_RESULT||h===X.EDFS_NATS_STREAM_CONFIGURATION||N.kind!==W.Kind.OBJECT_TYPE_DEFINITION)continue;if(N.isRootType){this.validateEventDrivenRootType(N,r,n,i);continue}let T=this.keyFieldNamesByParentTypeName.get(h);if(!T){m.add(h);continue}this.validateEventDrivenKeyDefinition(h,a),this.validateEventDrivenObjectFields(N.fieldDataByName,T,o,u)}if(this.isEdfsPublishResultValid()||t.push(ne.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(X.EDFS_NATS_SUBSCRIBE)){let h=this.parentDefinitionDataByTypeName.get(X.EDFS_NATS_STREAM_CONFIGURATION);h&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(h)&&t.push(ne.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(X.EDFS_NATS_STREAM_CONFIGURATION);let N=this.upsertInputObjectByNode(NX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(N.success)for(let T of NX.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:T.name.value,isArgument:!1,inputValueDataByName:N.data.inputValueDataByName,node:T,originalParentTypeName:X.EDFS_NATS_STREAM_CONFIGURATION});else return}r.size>0&&t.push((0,ne.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),i.size>0&&t.push((0,ne.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),n.size>0&&t.push((0,ne.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(n)),a.size>0&&t.push((0,ne.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,ne.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),u.size>0&&t.push((0,ne.nonKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&t.push((0,ne.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),m.size>0&&t.push((0,ne.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...m])),t.length>0&&this.errors.push((0,ne.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,ne.noDefinedUnionMembersError)(t.name));return}let r=[];for(let n of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(n);i&&i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&r.push(`"${n}", which is type "${(0,et.kindToNodeType)(i.kind)}"`)}r.length>0&&this.errors.push((0,ne.invalidUnionMemberTypeError)(t.name,r))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let r=t.name.value;for(let n of t.types){let i=n.name.value;(0,et.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,r]of this.keyFieldSetDatasByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!0,i)),o=(0,yi.validateKeyFieldSets)(this,n,r);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,r,n=!1){let i=[];for(let[a,o]of t){if(n&&X.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let u=this.directiveDefinitionDataByName.get(a);if(!u)continue;if(!u.isRepeatable&&o.length>1){let h=(0,et.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,r,()=>new Set);h.has(a)||(h.add(a),this.errors.push((0,ne.invalidDirectiveError)(a,r,"1st",[(0,ne.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==X.KEY){i.push(...o);continue}let l=[],m=new Set;for(let h=0;h0?{node:Q(q({},t.description?{description:t.description}:{}),{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_DEFINITION,operationTypes:r}),success:!0}:t.directivesByName.size<1?{node:void 0,success:!0}:{node:{directives:this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),kind:W.Kind.SCHEMA_EXTENSION},success:!0}}getUnionNodeByData(t){return t.node.description=t.description,t.node.directives=this.getValidFlattenedDirectiveArray(t.directivesByName,t.name),t.node.types=(0,Vn.mapToArrayOfValues)(t.memberByMemberTypeName),t.node}evaluateExternalKeyFields(){let t=[];for(let[r,n]of this.keyFieldSetDatasByTypeName){let i=this.parentDefinitionDataByTypeName.get(r);if(!i||i.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&i.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){t.push(r),this.errors.push((0,ne.undefinedCompositeOutputTypeError)(r));continue}let a=this;for(let o of n.values()){let u=[i],l=new Map,m=-1,h=!0;if((0,W.visit)(o.documentNode,{Argument:{enter(){return W.BREAK}},Field:{enter(N){let T=u[m],D=T.name;if(h)return W.BREAK;let R=N.name.value,C=`${D}.${R}`;a.unvalidatedExternalFieldCoords.delete(C);let M=T.fieldDataByName.get(R);if(!M||M.argumentDataByName.size)return W.BREAK;M.isShareableBySubgraphName.set(a.subgraphName,!0);let G=M.externalFieldDataBySubgraphName.get(a.subgraphName);a.edfsDirectiveReferences.size<1&&G&&G.isDefinedExternal&&!G.isUnconditionallyProvided&&i.extensionType!==ts.ExtensionType.NONE&&(G.isUnconditionallyProvided=!0,(0,et.getValueOrDefault)(l,o.rawFieldSet,()=>new Set).add(C)),(0,et.getValueOrDefault)(a.keyFieldNamesByParentTypeName,D,()=>new Set).add(R);let ee=(0,Vr.getTypeNodeNamedTypeName)(M.node.type);if(Yn.BASE_SCALARS.has(ee))return;let ae=a.parentDefinitionDataByTypeName.get(ee);if(!ae)return W.BREAK;if(ae.kind===W.Kind.OBJECT_TYPE_DEFINITION){h=!0,u.push(ae);return}if((0,Kr.isKindAbstract)(ae.kind))return W.BREAK}},InlineFragment:{enter(){return W.BREAK}},SelectionSet:{enter(){if(!h||(m+=1,h=!1,m<0||m>=u.length))return W.BREAK},leave(){h&&(h=!1),m-=1,u.pop()}}}),!(l.size<1))for(let[N,T]of l)this.warnings.push((0,es.externalEntityExtensionKeyFieldWarning)(i.name,N,[...T],this.subgraphName))}}for(let r of t)this.keyFieldSetDatasByTypeName.delete(r)}addValidConditionalFieldSetConfigurations(){for(let[t,r]of this.fieldSetDataByTypeName){let n=this.parentDefinitionDataByTypeName.get(t);if(!n||n.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&n.kind!==W.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,ne.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Dt.getParentTypeName)(n),a=(0,et.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Ly.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(n,r.provides,!0);o&&(a.provides=o);let u=this.validateProvidesOrRequires(n,r.requires,!1);u&&(a.requires=u)}}addFieldNamesToConfigurationData(t,r){let n=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){r.fieldNames.add(i);continue}n.add(i),this.edfsDirectiveReferences.size>0&&r.fieldNames.add(i)}n.size>0&&(r.externalFieldNames=n)}validateOneOfDirective({data:t,requiredFieldNames:r}){var n,i;return t.directivesByName.has(X.ONE_OF)?r.size>0?(this.errors.push((0,ne.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,es.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(n=(0,et.getFirstEntry)(t.inputValueDataByName))==null?void 0:n.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a,o;(0,yX.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,yX.upsertParentsAndChildren)(this,t);let r=[];Zd(this,_d,gX).call(this,r),this.validateDirectives(this.schemaData,X.SCHEMA);let n=this.schemaNodeFromData(this.schemaData);if(!n.success)return this.errors.push(...n.errors),{errors:this.errors,success:!1,warnings:this.warnings};((a=n.node)==null?void 0:a.kind)===W.Kind.SCHEMA_DEFINITION&&r.push(n.node);for(let[u,l]of this.parentDefinitionDataByTypeName)this.validateDirectives(l,u);this.invalidORScopesCoords.size>0&&this.errors.push((0,ne.orScopesLimitError)(Yn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let u of this.invalidConfigureDescriptionNodeDatas)u.description||this.errors.push((0,ne.configureDescriptionNoDescriptionError)((0,et.kindToNodeType)(u.kind),u.name));this.evaluateExternalKeyFields();for(let[u,l]of this.parentDefinitionDataByTypeName)switch(l.kind){case W.Kind.ENUM_TYPE_DEFINITION:{if(l.enumValueDataByName.size<1){this.errors.push((0,ne.noDefinedEnumValuesError)(u));break}r.push(this.getEnumNodeByData(l));break}case W.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(l.inputValueDataByName.size<1){this.errors.push((0,ne.noInputValueDefinitionsError)(u));break}let m=new Set;for(let h of l.inputValueDataByName.values()){if((0,Dt.isTypeRequired)(h.type)&&m.add(h.name),h.namedTypeKind!==W.Kind.NULL)continue;let N=this.parentDefinitionDataByTypeName.get(h.namedTypeName);if(N){if((0,Dt.sanitizeDefaultValue)({data:h,namedTypeData:N,node:h.node}),!(0,Dt.isInputNodeKind)(N.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:h,namedTypeData:N,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}h.namedTypeKind=N.kind}}if(!this.validateOneOfDirective({data:l,requiredFieldNames:m}))break;u!==X.EDFS_NATS_STREAM_CONFIGURATION&&r.push(this.getInputObjectNodeByData(l));break}case W.Kind.INTERFACE_TYPE_DEFINITION:case W.Kind.OBJECT_TYPE_DEFINITION:{let m=this.entityDataByTypeName.has(u),h=this.operationTypeNodeByTypeName.get(u),N=l.kind===W.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&l.extensionType===ts.ExtensionType.EXTENDS&&(l.extensionType=ts.ExtensionType.NONE),h&&(l.fieldDataByName.delete(X.SERVICE_FIELD),l.fieldDataByName.delete(X.ENTITIES_FIELD));let T=[];for(let[G,ee]of l.fieldDataByName){if(!N&&((o=ee.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&o.isDefinedExternal)&&T.push(G),this.validateArguments(ee,l.kind),ee.namedTypeKind!==W.Kind.NULL)continue;let ae=this.parentDefinitionDataByTypeName.get(ee.namedTypeName);if(ae){if(!(0,Dt.isOutputNodeKind)(ae.kind)){this.errors.push((0,ne.invalidNamedTypeError)({data:ee,namedTypeData:ae,nodeType:`${(0,et.kindToNodeType)(l.kind)} field`}));continue}ee.namedTypeKind=this.entityInterfaceDataByTypeName.get(ae.name)?W.Kind.INTERFACE_TYPE_DEFINITION:ae.kind}}T.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,ne.externalInterfaceFieldsError)(u,T)):this.warnings.push((0,es.externalInterfaceFieldsWarning)(this.subgraphName,u,[...T])));let D=(0,Dt.getParentTypeName)(l),R=(0,et.getValueOrDefault)(this.configurationDataByTypeName,D,()=>(0,Ly.newConfigurationData)(m,u)),C=this.entityInterfaceDataByTypeName.get(u);if(C){C.fieldDatas=(0,Vn.fieldDatasToSimpleFieldDatas)(l.fieldDataByName.values());let G=this.concreteTypeNamesByAbstractTypeName.get(u);G&&(0,et.addIterableToSet)({source:G,target:C.concreteTypeNames}),R.isInterfaceObject=C.isInterfaceObject,R.entityInterfaceConcreteTypeNames=C.concreteTypeNames}let M=this.eventsConfigurations.get(D);M&&(R.events=M),this.addFieldNamesToConfigurationData(l.fieldDataByName,R),this.validateInterfaceImplementations(l),r.push(this.getCompositeOutputNodeByData(l)),l.fieldDataByName.size<1&&!(0,yi.isNodeQuery)(u,h)&&this.errors.push((0,ne.noFieldDefinitionsError)((0,et.kindToNodeType)(l.kind),u)),l.requireFetchReasonsFieldNames.size>0&&(R.requireFetchReasonsFieldNames=[...l.requireFetchReasonsFieldNames]);break}case W.Kind.SCALAR_TYPE_DEFINITION:{if(l.extensionType===ts.ExtensionType.REAL){this.errors.push((0,ne.noBaseScalarDefinitionError)(u));break}r.push(this.getScalarNodeByData(l));break}case W.Kind.UNION_TYPE_DEFINITION:{r.push(this.getUnionNodeByData(l)),this.validateUnionMembers(l);break}default:throw(0,ne.unexpectedKindFatalError)(u)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let u of Object.values(W.OperationTypeNode)){let l=this.schemaData.operationTypes.get(u),m=(0,et.getOrThrowError)(Kr.operationTypeNodeToDefaultType,u,X.OPERATION_TO_DEFAULT),h=l?(0,Vr.getTypeNodeNamedTypeName)(l.type):m;if(Yn.BASE_SCALARS.has(h)&&this.referencedTypeNames.add(h),h!==m&&this.parentDefinitionDataByTypeName.has(m)){this.errors.push((0,ne.invalidRootTypeDefinitionError)(u,h,m));continue}let N=this.parentDefinitionDataByTypeName.get(h);if(l){if(!N)continue;this.operationTypeNodeByTypeName.set(h,u)}if(!N)continue;let T=this.configurationDataByTypeName.get(m);T&&(T.isRootNode=!0,T.typeName=m),N.kind!==W.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,ne.operationDefinitionError)(h,u,N.kind))}for(let u of this.referencedTypeNames){let l=this.parentDefinitionDataByTypeName.get(u);if(!l){this.errors.push((0,ne.undefinedTypeError)(u));continue}if(l.kind!==W.Kind.INTERFACE_TYPE_DEFINITION)continue;let m=this.concreteTypeNamesByAbstractTypeName.get(u);(!m||m.size<1)&&this.warnings.push((0,es.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,u))}this.handleExecutableDirectives(),this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let u of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,ne.invalidExternalDirectiveError)(u)):this.warnings.push((0,es.invalidExternalFieldWarning)(u,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:W.Kind.DOCUMENT,definitions:r};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,costs:this.costs,directiveDefinitionByName:this.directiveDefinitionByName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,importDataByDirectiveName:this.importDataByDirectiveName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:this.overriddenFieldNamesByTypeNameByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,schema:(0,yKe.buildASTSchema)(i,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),schemaNode:n.node,subgraphAST:i,subgraphString:(0,W.print)(i),success:!0,warnings:this.warnings}}};_d=new WeakSet,NL=function({currentFieldCoords:t,directiveCoords:r,directiveName:n,fieldSet:i}){if(this.isSubgraphVersionTwo){this.errors.push((0,ne.nonExternalConditionalFieldError)({directiveCoords:r,directiveName:n,fieldSet:i,subgraphName:this.subgraphName,targetCoords:t}));return}this.warnings.push((0,es.nonExternalConditionalFieldWarning)(r,this.subgraphName,t,i,n))},gX=function(t){let r=new Set;for(let n of this.referencedDirectiveNames){let i=Yn.DIRECTIVE_DEFINITION_BY_NAME.get(n);i&&(this.directiveDefinitionByName.set(n,i),(0,et.addOptionalIterableToSet)({source:Gv.DEPENDENCIES_BY_DIRECTIVE_NAME.get(n),target:r}),t.push(i))}for(let n of this.customDirectiveDefinitionByName.values())t.push(n);t.push(...r)};Rp.NormalizationFactory=Cy});var IX=O(EL=>{"use strict";d();p();f();Object.defineProperty(EL,"__esModule",{value:!0});EL.internalSubgraphFromNormalization=IKe;function IKe({normalization:e,subgraphName:t}){return{conditionalFieldDataByCoords:e.conditionalFieldDataByCoordinates,configurationDataByTypeName:e.configurationDataByTypeName,costs:e.costs,definitions:e.subgraphAST,directiveDefinitionByName:e.directiveDefinitionByName,entityInterfaceSubgraphDataByTypeName:e.entityInterfaces,federatedDirectiveDataByName:e.federatedDirectiveDataByName,isVersionTwo:e.isVersionTwo,keyFieldNamesByParentTypeName:e.keyFieldNamesByParentTypeName,name:t,operationTypes:e.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:e.parentDefinitionDataByTypeName,schema:e.schema,schemaNode:e.schemaNode}}});var vL=O(Yv=>{"use strict";d();p();f();Object.defineProperty(Yv,"__esModule",{value:!0});Yv.BatchNormalizer=void 0;var vKe=jv(),Vs=bi(),gL=vp(),ol=An(),_Ke=_p(),SKe=hd(),OKe=zo(),DKe=TL(),bKe=IX(),IL=class{constructor({options:t,subgraphs:r}){S(this,"authorizationDataByParentTypeName",new Map);S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"entityDataByTypeName",new Map);S(this,"errors",[]);S(this,"executableDirectiveDatasByName",new Map);S(this,"federatedDirectiveDataByName",new Map);S(this,"importDataByDirectiveName",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName",new Map);S(this,"internalSubgraphBySubgraphName",new Map);S(this,"overriddenFieldNamesByParentTypeNameByTargetSubgraphName",new Map);S(this,"overrideSourceSubgraphNamesByFieldCoords",new Map);S(this,"duplicateOverriddenFieldCoords",new Set);S(this,"subgraphNames",new Set);S(this,"invalidORScopesCoords",new Set);S(this,"fieldCoordsByNamedTypeName",new Map);S(this,"subgraphs");S(this,"warnings",[]);S(this,"validationErrors",[]);S(this,"options");this.options=t,this.subgraphs=r;let n=new Set;for(let{name:i}of r){if(!i){this.errors.push(Vs.noSubgraphNameError);break}this.subgraphNames.has(i)?n.add(i):this.subgraphNames.add(i)}n.size>0&&this.errors.push((0,Vs.duplicateSubgraphNamesError)([...n]))}handleLinkImports(t){for(let[r,n]of t){let i=this.importDataByDirectiveName.get(r);if(!i){this.importDataByDirectiveName.set(r,n);continue}if(i.coreUrl!==n.coreUrl){this.errors.push((0,Vs.nonEqualCoreFeatureComposeDirectiveError)(r));continue}i.majorVersion!==n.majorVersion&&this.errors.push((0,Vs.nonEqualComposeDirectiveMajorVersionError)(r)),i.minorVersionnew Map),T=(0,ol.getValueOrDefault)(N,l,()=>new Set(m));(0,ol.addIterableToSet)({source:m,target:T})}for(let N of m){let T=`${h}.${N}`,D=this.overrideSourceSubgraphNamesByFieldCoords.get(T);if(!D){this.overrideSourceSubgraphNamesByFieldCoords.set(T,[n]);continue}D.push(n),this.duplicateOverriddenFieldCoords.add(T)}}}}handleOverrideConfigurationData(){for(let[t,r]of this.overriddenFieldNamesByParentTypeNameByTargetSubgraphName){let n=this.internalSubgraphBySubgraphName.get(t);if(!n){this.errors.push((0,Vs.unknownSubgraphNameError)(t));continue}n.overriddenFieldNamesByParentTypeName=r;for(let[i,a]of r){let o=n.configurationDataByTypeName.get(i);o&&((0,gL.subtractSet)(a,o.fieldNames),o.fieldNames.size<1&&n.configurationDataByTypeName.delete(i))}}}batchNormalize(){if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let t=new vKe.Graph;for(let r of this.subgraphs){let n=r.name,i=(0,DKe.normalizeSubgraph)({document:r.definitions,internalGraph:t,options:this.options,subgraphName:n});if(i.warnings.length>0&&this.warnings.push(...i.warnings),!i.success){this.validationErrors.push((0,Vs.subgraphValidationError)(n,i.errors));continue}this.handleLinkImports(i.importDataByDirectiveName);for(let a of i.authorizationDataByParentTypeName.values())(0,gL.upsertAuthorizationData)(this.authorizationDataByParentTypeName,a,this.invalidORScopesCoords);for(let[a,o]of i.fieldCoordsByNamedTypeName)(0,ol.addIterableToSet)({source:o,target:(0,ol.getValueOrDefault)(this.fieldCoordsByNamedTypeName,a,()=>new Set)});(0,ol.mergeSetValueMap)({source:i.concreteTypeNamesByAbstractTypeName,target:this.concreteTypeNamesByAbstractTypeName}),(0,ol.mergeSetValueMap)({source:i.interfaceImplementationTypeNamesByInterfaceTypeName,target:this.interfaceImplementationTypeNamesByInterfaceTypeName}),this.handleEntityData(i.entityDataByTypeName,n),(0,_Ke.upsertFederatedDirectiveData)({executableDirectiveDatasByName:this.executableDirectiveDatasByName,existingDataByName:this.federatedDirectiveDataByName,incomingDataByName:i.federatedDirectiveDataByName}),this.internalSubgraphBySubgraphName.set(n,(0,bKe.internalSubgraphFromNormalization)({normalization:i,subgraphName:n})),this.handleOverrides({originalTypeNameByRenamedTypeName:i.originalTypeNameByRenamedTypeName,overriddenFieldNamesByParentTypeNameByTargetSubgraphName:i.overriddenFieldNamesByParentTypeNameByTargetSubgraphName,subgraphName:n})}if(this.invalidORScopesCoords.size>0&&this.errors.push((0,Vs.orScopesLimitError)(OKe.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.duplicateOverriddenFieldCoords.size>0){let r=[];for(let n of this.duplicateOverriddenFieldCoords){let i=(0,ol.getOrThrowError)(this.overrideSourceSubgraphNamesByFieldCoords,n,"overrideSourceSubgraphNamesByFieldCoords");r.push((0,Vs.duplicateOverriddenFieldErrorMessage)(n,i))}this.errors.push((0,Vs.duplicateOverriddenFieldsError)(r))}for(let[r,n]of this.executableDirectiveDatasByName)(this.federatedDirectiveDataByName.has(r)||n.length!==this.subgraphNames.size)&&this.executableDirectiveDatasByName.delete(r);return this.errors.push(...this.validationErrors),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:(this.handleOverrideConfigurationData(),this.errors.length>0?{errors:this.errors,success:!1,warnings:this.warnings}:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:this.entityDataByTypeName,executableDirectiveDatasByName:this.executableDirectiveDatasByName,federatedDirectiveDataByName:this.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphByName:this.internalSubgraphBySubgraphName,internalGraph:t,success:!0,warnings:this.warnings})}};Yv.BatchNormalizer=IL});var DX=O(bd=>{"use strict";d();p();f();Object.defineProperty(bd,"__esModule",{value:!0});bd.FederationFactory=void 0;bd.federateSubgraphs=LKe;bd.federateSubgraphsWithContracts=CKe;bd.federateSubgraphsContract=BKe;var be=_e(),AKe=Jo(),Wi=kn(),we=bi(),Sd=nv(),Od=xs(),Ci=vp(),Jv=Iy(),By=zo(),vX=_p(),_X=Xh(),Te=Zc(),RKe=WF(),SX=cX(),Dd=Rv(),Re=xr(),zv=Xf(),he=An(),wKe=hd(),PKe=Wh(),FKe=vL(),Wv,OX,Hv=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:r,entityDataByTypeName:n,entityInterfaceFederationDataByTypeName:i,executableDirectiveDatasByName:a,federatedDirectiveDataByName:o,fieldCoordsByNamedTypeName:u,interfaceImplementationTypeNamesByInterfaceTypeName:l,internalGraph:m,internalSubgraphBySubgraphName:h,options:N,warnings:T}){Xd(this,Wv);S(this,"authorizationDataByParentTypeName");S(this,"coordsByNamedTypeName",new Map);S(this,"directiveDefinitionByName",new Map);S(this,"clientDefinitions",[]);S(this,"currentSubgraphName","");S(this,"concreteTypeNamesByAbstractTypeName");S(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);S(this,"entityDataByTypeName");S(this,"entityInterfaceFederationDataByTypeName");S(this,"executableDirectiveDatasByName");S(this,"errors",[]);S(this,"federatedDirectiveDataByName");S(this,"fieldConfigurationByFieldCoords",new Map);S(this,"fieldCoordsByNamedTypeName");S(this,"inaccessibleCoords",new Set);S(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);S(this,"interfaceImplementationTypeNamesByInterfaceTypeName");S(this,"internalGraph");S(this,"internalSubgraphBySubgraphName");S(this,"invalidORScopesCoords",new Set);S(this,"isMaxDepth",!1);S(this,"isVersionTwo",!1);S(this,"namedInputValueTypeNames",new Set);S(this,"namedOutputTypeNames",new Set);S(this,"options");S(this,"parentDefinitionDataByTypeName",new Map);S(this,"parentTagDataByTypeName",new Map);S(this,"referencedFederatedDirectiveNames",new Set);S(this,"routerDefinitions",[]);S(this,"subscriptionFilterDataByFieldPath",new Map);S(this,"tagNamesByCoords",new Map);S(this,"warnings");this.authorizationDataByParentTypeName=t,this.options=N!=null?N:{},this.concreteTypeNamesByAbstractTypeName=r,this.executableDirectiveDatasByName=a,this.entityDataByTypeName=n,this.entityInterfaceFederationDataByTypeName=i,this.federatedDirectiveDataByName=o;for(let D of vX.FEDERATED_DIRECTIVE_DATAS)this.federatedDirectiveDataByName.set(D.name,D);this.fieldCoordsByNamedTypeName=u,this.interfaceImplementationTypeNamesByInterfaceTypeName=l,this.internalGraph=m,this.internalSubgraphBySubgraphName=h,this.warnings=T}extractFederatedDirectives({data:t,directivesByName:r}){for(let[n,i]of r)if(this.federatedDirectiveDataByName.get(n)&&(this.referencedFederatedDirectiveNames.add(n),!(Re.AUTHORIZATION_DIRECTIVES.has(n)||i.length<1)))switch(n){case Re.DEPRECATED:{t.isDeprecated=!0,(0,Te.upsertDeprecatedDirective)(t,i[0]);break}case Re.TAG:{(0,Te.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByName.get(n);if(!o){t.directivesByName.set(n,[...i]);break}if(Re.NON_REPEATABLE_FEDERATED_DIRECTIVES.has(n))break;o.push(...i)}}return t}getValidImplementedInterfaces(t){var o;let r=[];if(t.implementedInterfaceTypeNames.size<1)return r;let n=(0,Te.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let u of t.implementedInterfaceTypeNames){r.push((0,Wi.stringToNamedTypeNode)(u));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Re.PARENT_DEFINITION_DATA);if(l.kind!==be.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let m={invalidFieldImplementations:new Map,unimplementedFields:[]},h=!1;for(let[N,T]of l.fieldDataByName){let D=!1,R=t.fieldDataByName.get(N);if(!R){h=!0,m.unimplementedFields.push(N);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,Jv.printTypeNode)(T.node.type),unimplementedArguments:new Set};(0,Te.isTypeValidImplementation)({concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,implementationType:R.node.type,interfaceImplementationTypeNamesByInterfaceTypeName:this.interfaceImplementationTypeNamesByInterfaceTypeName,originalType:T.node.type})||(h=!0,D=!0,C.implementedResponseType=(0,Jv.printTypeNode)(R.node.type));let M=new Set;for(let[G,ee]of T.argumentDataByName){let ae=ee.node;M.add(G);let Ne=(o=R.argumentDataByName.get(G))==null?void 0:o.node;if(!Ne){h=!0,D=!0,C.unimplementedArguments.add(G);continue}let Ie=(0,Jv.printTypeNode)(Ne.type),Le=(0,Jv.printTypeNode)(ae.type);Le!==Ie&&(h=!0,D=!0,C.invalidImplementedArguments.push({actualType:Ie,argumentName:G,expectedType:Le}))}for(let[G,ee]of R.argumentDataByName){let ae=ee.node;M.has(G)||ae.type.kind===be.Kind.NON_NULL_TYPE&&(h=!0,D=!0,C.invalidAdditionalArguments.add(G))}!n&&R.isInaccessible&&!T.isInaccessible&&(h=!0,D=!0,C.isInaccessible=!0),D&&m.invalidFieldImplementations.set(N,C)}h&&i.set(u,m)}return a.size>0&&this.errors.push((0,we.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,we.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),r}addValidPrimaryKeyTargetsToEntityData(t){var h;let r=this.entityDataByTypeName.get(t);if(!r)return;let n=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=n.parentDefinitionDataByTypeName,a=i.get(r.typeName);if(!a||a.kind!==be.Kind.OBJECT_TYPE_DEFINITION)throw(0,we.incompatibleParentKindFatalError)(r.typeName,be.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||be.Kind.NULL);let o=n.configurationDataByTypeName.get(r.typeName);if(!o)return;let u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${r.typeName}`);(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:r,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[N,T]of this.entityInterfaceFederationDataByTypeName){if(!((h=T.concreteTypeNames)!=null&&h.has(r.typeName)))continue;let D=this.entityDataByTypeName.get(N);D&&(0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:n.conditionalFieldDataByCoords,currentSubgraphName:this.currentSubgraphName,entityData:D,implicitKeys:u,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let m=new Set(o.keys.map(N=>N.selectionSet));for(let N of u)m.has(N.selectionSet)||(o.keys.push(N),m.add(N.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,r,n,i){let a=t.parentDefinitionDataByTypeName,o=a.get(r);if(!o||!(0,Te.isParentDataCompositeOutputType)(o))throw(0,we.incompatibleParentKindFatalError)(r,be.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||be.Kind.NULL);let u=(0,he.getOrThrowError)(t.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Sd.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoords,currentSubgraphName:t.name,entityData:n,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let m=new Set(u.keys.map(h=>h.selectionSet));for(let h of l)m.has(h.selectionSet)||(u.keys.push(h),m.add(h.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Te.MergeMethod.CONSISTENT:Te.MergeMethod.INTERSECTION:Te.MergeMethod.UNION}generateTagData(){for(let[t,r]of this.tagNamesByCoords){let n=t.split(Re.LITERAL_PERIOD);if(n.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,n[0],()=>(0,Sd.newParentTagData)(n[0]));switch(n.length){case 1:for(let l of r)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1]));for(let l of r)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,n[1],()=>(0,Sd.newChildTagData)(n[1])),u=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,n[2],()=>new Set);for(let l of r)u.add(l);break;default:break}}}upsertEnumValueData(t,r,n){let i=t.get(r.name),a=i||this.copyEnumValueData(r);this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=(0,Te.isNodeDataInaccessible)(r);if((n||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}upsertDirectiveArgumentData({argumentDataByName:t,incomingData:r}){let n=t.get(r.name),i=n||this.copyDirectiveArgumentData(r);if(this.extractFederatedDirectives({data:i.federatedDirectivesData,directivesByName:r.directivesByName}),!n){this.namedInputValueTypeNames.add(i.namedTypeName),t.set(i.name,i);return}r.defaultValue||(n.includeDefaultValue=!1),(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(i,r),(0,he.addIterableToSet)({source:r.subgraphNames,target:i.subgraphNames}),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:i.requiredSubgraphNames});let a=(0,Dd.getMostRestrictiveMergedTypeNode)(i.type,r.type,r.federatedCoords,this.errors);a.success?i.type=a.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:a.actualType,isArgument:!0,coords:r.federatedCoords,expectedType:a.expectedType}));let o=(0,Te.compareAndValidateInputDefaultValues)({existingData:n,incomingData:r});o.success||this.errors.push(o.error)}upsertInputValueData(t,r,n,i){let a=t.get(r.name),o=a||this.copyInputValueData(r);if(this.extractFederatedDirectives({data:o.federatedDirectivesData,directivesByName:r.directivesByName}),this.recordTagNamesByCoords(o,`${n}.${o.name}`),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){this.namedInputValueTypeNames.add(o.namedTypeName),t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(o,r),(0,he.addIterableToSet)({source:r.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,he.addIterableToSet)({source:r.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,n);let u=(0,Dd.getMostRestrictiveMergedTypeNode)(o.type,r.type,o.originalCoords,this.errors);u.success?o.type=u.typeNode:this.errors.push((0,we.incompatibleMergedTypesError)({actualType:u.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:u.expectedType}));let l=(0,Te.compareAndValidateInputDefaultValues)({existingData:a,incomingData:r});l.success||this.errors.push(l.error)}handleInputValueInaccessibility(t,r,n){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(r.federatedCoords),this.inaccessibleCoords.add(r.federatedCoords);return}if((0,Te.isNodeDataInaccessible)(r)){if((0,Te.isTypeRequired)(r.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(r.federatedCoords,(0,we.inaccessibleRequiredInputValueError)(r,n));return}this.inaccessibleCoords.add(r.federatedCoords)}}handleSubscriptionFilterDirective(t,r){let n=t.directivesByName.get(Re.SUBSCRIPTION_FILTER);if(!n)return;let i=(0,he.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,we.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:n[0],fieldData:r||t,directiveSubgraphName:i})}federateOutputType({current:t,other:r,coords:n,mostRestrictive:i}){r=(0,AKe.getMutableTypeNode)(r,n,this.errors);let a={kind:t.kind},o=Dd.DivergentType.NONE,u=a;for(let l=0;lnew Set)})}upsertFieldData(t,r,n){let i=t.get(r.name),a=i||this.copyFieldData(r,n||(0,Te.isNodeDataInaccessible)(r));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,r.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(r.namedTypeName),this.handleSubscriptionFilterDirective(r,a),this.extractFederatedDirectives({data:a.federatedDirectivesData,directivesByName:r.directivesByName});let o=n||(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let u=this.federateOutputType({current:a.type,other:r.type,coords:a.federatedCoords,mostRestrictive:!1});if(u.success)if(a.type=u.typeNode,a.namedTypeName!==r.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),m=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(m.size<1)for(let h of a.subgraphNames)r.subgraphNames.has(h)||m.add(h);(0,he.addIterableToSet)({source:r.subgraphNames,target:(0,he.getValueOrDefault)(l,r.namedTypeName,()=>new Set)})}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(r);for(let l of r.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(r.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,r),a.isInaccessible||(a.isInaccessible=r.isInaccessible),(0,he.addNewObjectValueMapEntries)(r.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)({source:r.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,he.addMapEntries)({source:r.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,he.addIterableToSet)({source:r.subgraphNames,target:a.subgraphNames})}getClientSchemaUnionMembers(t){let r=[];for(let[n,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(n)||r.push(i);return r}recordTagNamesByCoords(t,r){let n=r||t.name;if(t.federatedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,n,()=>new Set);for(let a of t.federatedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),extensionType:t.extensionType,name:t.name,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),description:(0,Te.getInitialFederatedDescription)(t)}}copyDirectiveArgumentData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t),federatedCoords:t.federatedCoords,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),includeDefaultValue:t.includeDefaultValue,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:be.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),subgraphNames:new Set(t.subgraphNames),description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:be.Kind.INPUT_VALUE_DEFINITION,name:(0,Wi.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,Te.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,r,n){let i=new Map;for(let[a,o]of t){let u=this.copyInputValueData(o);this.handleInputValueInaccessibility(r,u,n),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedInputValueTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,`${n}.${o.name}`),i.set(a,u)}return i}copyFieldData(t,r){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,r,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByName:(0,he.copyArrayValueMap)(t.directivesByName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,Wi.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,federatedDirectivesData:this.extractFederatedDirectives({data:(0,Te.newFederatedDirectivesData)(),directivesByName:t.directivesByName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,Te.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(r||(0,Te.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),n.set(i,o)}return n}copyFieldDataByName(t,r){let n=new Map;for(let[i,a]of t){let o=r||(0,Te.isNodeDataInaccessible)(a),u=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(u),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,u.namedTypeName,()=>new Set).add(u.federatedCoords),this.namedOutputTypeNames.add(u.namedTypeName),this.recordTagNamesByCoords(u,u.federatedCoords),o&&this.inaccessibleCoords.add(u.federatedCoords),n.set(i,u)}return n}copyParentDefinitionData(t){let r=this.copyMutualParentDefinitionData(t);switch(t.kind){case be.Kind.ENUM_TYPE_DEFINITION:return Q(q({},r),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Q(q({},r),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case be.Kind.INTERFACE_TYPE_DEFINITION:return Q(q({},r),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case be.Kind.OBJECT_TYPE_DEFINITION:return Q(q({},r),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case be.Kind.SCALAR_TYPE_DEFINITION:return Q(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case be.Kind.UNION_TYPE_DEFINITION:return Q(q({},r),{kind:t.kind,node:{kind:t.kind,name:(0,Wi.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:r}){if(!t){let n=this.copyParentDefinitionData(r);return(0,Te.isParentDataRootType)(n)&&(n.extensionType=_X.ExtensionType.NONE),n}return this.extractFederatedDirectives({data:t.federatedDirectivesData,directivesByName:r.directivesByName}),t}upsertParentDefinitionData(t,r){let n=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,Te.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),n&&n.interfaceObjectSubgraphNames.has(r)){if(i&&i.kind!==be.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:r}));return}a.kind=be.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=be.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!n||!n.interfaceObjectSubgraphNames.has(r)||a.kind!==be.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==be.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,we.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,he.kindToNodeType)(t.kind),incomingSubgraphName:r}));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,Te.setLongestDescription)(a,t),(0,Te.setParentDataExtensionType)(a,t),a.kind){case be.Kind.ENUM_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,l,o);return;case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case be.Kind.INTERFACE_TYPE_DEFINITION:case be.Kind.OBJECT_TYPE_DEFINITION:let u=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableToSet)({source:u.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,he.addIterableToSet)({source:u.subgraphNames,target:a.subgraphNames});for(let l of u.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case be.Kind.UNION_TYPE_DEFINITION:if(!(0,Te.areKindsEqual)(a,t))return;(0,he.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,he.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let r of t.inputValueDataByName.values())this.inaccessibleCoords.add(r.federatedCoords);break;default:for(let r of t.fieldDataByName.values()){this.inaccessibleCoords.add(r.federatedCoords);for(let n of r.argumentDataByName.values())this.inaccessibleCoords.add(n.federatedCoords)}}}shouldUpdateFederatedFieldAbstractNamedType(t,r){if(!t)return!1;let n=this.concreteTypeNamesByAbstractTypeName.get(t);if(!n||n.size<1)return!1;for(let i of r)if(!n.has(i))return!1;return!0}updateTypeNodeNamedType(t,r){let n=t;for(let i=0;i1){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}break}case be.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}l=h;break}default:{this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));break}}}if(o.size<1&&!l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}let m=l;if(o.size>0){if(l){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}for(let h of o.keys()){m=h;for(let[N,T]of o)if(h!==N&&!T.implementedInterfaceTypeNames.has(h)){m="";break}if(m)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(m,u)){this.errors.push((0,we.incompatibleFederatedFieldNamedTypeError)(t,r));continue}a.namedTypeName=m,this.updateTypeNodeNamedType(a.type,m)}}upsertExecutableDirectiveDatas(){for(let[t,r]of this.executableDirectiveDatasByName)for(let n of r){let i=this.federatedDirectiveDataByName.get(t);if(!i){let a=new Map;for(let u of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:a,incomingData:u});let o=new Set(n.executableLocations);this.federatedDirectiveDataByName.set(t,{argumentDataByName:a,isComposed:!1,isRepeatable:n.isRepeatable,isReferenced:n.isReferenced,executableLocations:o,locations:o,majorVersion:-1,minorVersion:-1,name:t,description:n.description,node:n.node,optionalArgumentNames:new Set(n.optionalArgumentNames),requiredArgumentNames:new Set(n.requiredArgumentNames),subgraphNames:new Set(n.subgraphNames)});continue}for(let a of n.argumentDataByName.values())this.upsertDirectiveArgumentData({argumentDataByName:i.argumentDataByName,incomingData:a});for(let a of i.executableLocations)n.executableLocations.has(a)||i.executableLocations.delete(a);if(i.executableLocations.size<1){this.federatedDirectiveDataByName.delete(t);break}(0,Te.setLongestDescription)(i,n),(0,he.addIterableToSet)({source:n.subgraphNames,target:i.subgraphNames}),i.isRepeatable&&(i.isRepeatable=n.isRepeatable)}}federateInternalSubgraphData(){this.upsertExecutableDirectiveDatas();for(let t of this.internalSubgraphBySubgraphName.values()){this.currentSubgraphName=t.name,this.isVersionTwo||(this.isVersionTwo=t.isVersionTwo),(0,RKe.renameRootTypes)(this,t);for(let r of t.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(r,t.name)}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:r,interfaceObjectData:n,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let h of i.satisfiedFieldSets)u.satisfiedFieldSets.add(h),a.has(h)&&l.addTargetSubgraphByFieldSet(h,o);let m=n.fieldDatasBySubgraphName.get(o);for(let{name:h,namedTypeName:N}of m||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(N),h);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(r,i.typeName,t,u)}handleEntityInterfaces(){var t;for(let[r,n]of this.entityInterfaceFederationDataByTypeName){let i=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,r,Re.PARENT_DEFINITION_DATA);if(i.kind===be.Kind.INTERFACE_TYPE_DEFINITION)for(let a of n.interfaceObjectSubgraphNames){let o=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),u=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(r);if(!l)continue;let m=(0,he.getOrThrowError)(u,r,"configurationDataByTypeName"),h=m.keys;if(!h)continue;m.entityInterfaceConcreteTypeNames=new Set(n.concreteTypeNames),this.internalGraph.setSubgraphName(a);let N=this.internalGraph.addOrUpdateNode(r,{isAbstract:!0});for(let T of l){let D=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,T,Re.PARENT_DEFINITION_DATA);if(!(0,Ci.isObjectDefinitionData)(D))continue;let R=(0,he.getOrThrowError)(this.entityDataByTypeName,T,"entityDataByTypeName");R.subgraphNames.add(a);let C=u.get(T);if(C)if((0,he.addIterableToSet)({source:m.fieldNames,target:C.fieldNames}),!C.keys)C.keys=[...h];else e:for(let ae of h){for(let{selectionSet:Ne}of C.keys)if(ae.selectionSet===Ne)continue e;C.keys.push(ae)}else u.set(T,{fieldNames:new Set(m.fieldNames),isRootNode:!0,keys:[...h],typeName:T});let M=new Set;for(let ae of h.filter(Ne=>!Ne.disableEntityResolver))M.add(ae.selectionSet);let G=this.authorizationDataByParentTypeName.get(r),ee=(0,he.getOrThrowError)(o.parentDefinitionDataByTypeName,r,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Ci.isObjectDefinitionData)(ee)){for(let[ae,Ne]of ee.fieldDataByName){let Ie=`${T}.${ae}`;(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,Ne.namedTypeName,()=>new Set).add(Ie);let Le=G==null?void 0:G.fieldAuthDataByFieldName.get(ae);if(Le){let Z=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,T,()=>(0,Ci.newAuthorizationData)(T));(0,Ci.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,Le)||this.invalidORScopesCoords.add(Ie)}let Ve=D.fieldDataByName.get(ae);if(Ve){let Z=(t=Ne.isShareableBySubgraphName.get(a))!=null?t:!1;Ve.isShareableBySubgraphName.set(a,Z),Ve.subgraphNames.add(a);let Se=Ne.externalFieldDataBySubgraphName.get(a);if(!Se)continue;Ve.externalFieldDataBySubgraphName.set(a,q({},Se));continue}let ot=i.isInaccessible||D.isInaccessible||Ne.isInaccessible;D.fieldDataByName.set(ae,this.copyFieldData(Ne,ot))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:M,entityData:R})}}}}}fieldDataToGraphFieldData(t){var r;return{externalSubgraphNames:new Set,name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Ci.isNodeLeaf)((r=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:r.kind),subgraphNames:t.subgraphNames}}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let r=[],n="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(r.push(i),n=o);if(r.length===1)return(0,Sd.getDescriptionFromString)(n);if(r.length<1)return t.description;this.errors.push((0,we.configureDescriptionPropagationError)((0,Te.getDefinitionDataCoords)(t,!0),r))}getValidFieldArgumentNodes(t){let r=[],n=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,u]of t.argumentDataByName)if(t.subgraphNames.size===u.subgraphNames.size){n.push(o);let l=(0,Te.routerSchemaInputValueNodeFromData)({data:u,description:this.getFederatedGraphNodeDescription(u),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});l.success?(r.push(l.node),this.warnings.push(...l.warnings)):this.errors.push(...l.errors)}else(0,Te.isTypeRequired)(u.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames),requiredSubgraphs:[...u.requiredSubgraphNames]});return i.length>0?this.errors.push((0,we.invalidRequiredInputValueError)(Re.FIELD,a,i)):n.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:n,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=n),r}validateSemanticNonNull(t){let r;for(let n of t.nullLevelsBySubgraphName.values()){if(!r){r=n;continue}if(r.size!==n.size){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}for(let i of n)if(!r.has(i)){this.errors.push((0,we.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:r,requiredFieldNames:n}){return t.directivesByName.has(Re.ONE_OF)?n.size>0?(this.errors.push((0,we.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(r.length===1&&this.warnings.push((0,wKe.singleFederatedInputFieldOneOfWarning)({fieldName:r[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[r,n]of this.parentDefinitionDataByTypeName)switch(n.extensionType!==_X.ExtensionType.NONE&&this.errors.push((0,we.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(n.kind),r)),n.kind){case be.Kind.ENUM_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=[],a=[],o=this.getEnumValueMergeMethod(r);(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));for(let l of n.enumValueDataByName.values()){let m=(0,Te.isNodeDataInaccessible)(l),h=Q(q({},l.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(l)}),N=(0,Te.routerSchemaNodeFromData)({data:l,description:this.getFederatedGraphNodeDescription(l),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!N.success){this.errors.push(...N.errors);continue}switch(o){case Te.MergeMethod.CONSISTENT:!m&&n.appearances>l.appearances&&this.errors.push((0,we.incompatibleSharedEnumError)(r)),i.push(N.node),m||a.push(h);break;case Te.MergeMethod.INTERSECTION:n.appearances===l.appearances&&(i.push(N.node),m||a.push(h));break;default:i.push(N.node),m||a.push(h);break}}n.node.values=i;let u=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(u.success?this.routerDefinitions.push(u.node):this.errors.push(...u.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Re.ENUM_VALUE));break}this.clientDefinitions.push(Q(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),values:a}));break}case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;let i=new Array,a=new Array,o=new Array,u=new Set;for(let[m,h]of n.inputValueDataByName)if((0,Te.isTypeRequired)(h.type)&&u.add(m),n.subgraphNames.size===h.subgraphNames.size){let N=(0,Te.routerSchemaInputValueNodeFromData)({data:h,description:this.getFederatedGraphNodeDescription(h),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(N.success?(a.push(N.node),this.warnings.push(...N.warnings)):this.errors.push(...N.errors),(0,Te.isNodeDataInaccessible)(h))continue;o.push(Q(q({},h.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(h)}))}else(0,Te.isTypeRequired)(h.type)&&i.push({inputValueName:m,missingSubgraphs:(0,he.getEntriesNotInHashSet)(n.subgraphNames,h.subgraphNames),requiredSubgraphs:[...h.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,we.invalidRequiredInputValueError)(Re.INPUT_OBJECT,r,i,!1));break}if(!this.validateOneOfDirective({data:n,inputValueNodes:a,requiredFieldNames:u}))break;n.node.fields=a;let l=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(l.success?this.routerDefinitions.push(l.node):this.errors.push(...l.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n);break}if(o.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,"Input field"));break}this.clientDefinitions.push(Q(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:o}));break}case be.Kind.INTERFACE_TYPE_DEFINITION:case be.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,u=(0,Te.newInvalidFieldNames)(),l=n.kind===be.Kind.OBJECT_TYPE_DEFINITION,m=this.authorizationDataByParentTypeName.get(r);(0,Te.propagateAuthDirectives)(n,m);for(let[T,D]of n.fieldDataByName){(0,Te.propagateFieldAuthDirectives)(D,m);let R=this.getValidFieldArgumentNodes(D);l&&(0,Te.validateExternalAndShareable)(D,u),this.validateSemanticNonNull(D);let C=(0,Te.routerSchemaFieldNodeFromData)({argumentNodes:R,data:D,description:this.getFederatedGraphNodeDescription(D),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});C.success?(i.push(C.node),this.warnings.push(...C.warnings)):this.errors.push(...C.errors),!(0,Te.isNodeDataInaccessible)(D)&&(a.push((0,Te.getClientSchemaFieldNodeByFieldData)(D)),o.set(T,this.fieldDataToGraphFieldData(D)))}if(l&&(u.byShareable.size>0&&this.errors.push((0,we.invalidFieldShareabilityError)(n,u.byShareable)),u.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,we.allExternalFieldInstancesError)(r,u.subgraphNamesByExternalFieldName))),n.node.fields=i,this.internalGraph.initializeNode(r,o),n.implementedInterfaceTypeNames.size>0){t.push({data:n,clientSchemaFieldNodes:a});break}let h=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});h.success?this.routerDefinitions.push(h.node):this.errors.push(...h.errors);let N=(0,vX.isNodeQuery)(r);if((0,Te.isNodeDataInaccessible)(n)){if(N){this.errors.push(we.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}if(a.length<1){let T=N?(0,we.noQueryRootTypeError)(!1):(0,we.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(n.kind),r,Re.FIELD);this.errors.push(T);break}this.clientDefinitions.push(Q(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),fields:a}));break}case be.Kind.SCALAR_TYPE_DEFINITION:{if(Od.IGNORED_FEDERATED_TYPE_NAMES.has(r))break;(0,Te.propagateAuthDirectives)(n,this.authorizationDataByParentTypeName.get(r));let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}this.clientDefinitions.push(Q(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n)}));break}case be.Kind.UNION_TYPE_DEFINITION:{n.node.types=(0,Ci.mapToArrayOfValues)(n.memberByMemberTypeName);let i=(0,Te.routerSchemaNodeFromData)({data:n,description:this.getFederatedGraphNodeDescription(n),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);break}let a=this.getClientSchemaUnionMembers(n);if(a.length<1){this.errors.push((0,we.allChildDefinitionsAreInaccessibleError)(Re.UNION,r,"union member type"));break}this.clientDefinitions.push(Q(q({},n.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(n),types:a}));break}}}pushNamedTypeAuthDataToFields(){var t;for(let[r,n]of this.authorizationDataByParentTypeName){if(!n.requiresAuthentication&&n.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(r);if(i)for(let a of i){let o=a.split(Re.LITERAL_PERIOD);switch(o.length){case 2:{let u=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Ci.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(u.fieldAuthDataByFieldName,o[1],()=>(0,Ci.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=n.requiresAuthentication),l.inheritedData.requiredScopes.length*n.requiredScopes.length>By.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Ci.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,n.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Ci.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,n.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),Zd(this,Wv,OX).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:r,clientSchemaFieldNodes:n}of t){r.node.interfaces=this.getValidImplementedInterfaces(r);let i=(0,Te.routerSchemaNodeFromData)({data:r,description:this.getFederatedGraphNodeDescription(r),federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(i.success?this.routerDefinitions.push(i.node):this.errors.push(...i.errors),(0,Te.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);continue}let a=[];for(let o of r.implementedInterfaceTypeNames)this.inaccessibleCoords.has(o)||a.push((0,Wi.stringToNamedTypeNode)(o));this.clientDefinitions.push(Q(q({},r.node),{directives:(0,Te.getClientFederatedDirectiveNodes)(r),fields:n,interfaces:a}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let n=t.split(Re.LEFT_PARENTHESIS)[0].split(Re.LITERAL_PERIOD),i=n[0];for(let a=0;a0&&this.errors.push((0,we.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,n))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Re.QUERY);if(!t||t.kind!==be.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,we.noQueryRootTypeError)());return}for(let r of t.fieldDataByName.values())if(!(0,Te.isNodeDataInaccessible)(r))return;this.errors.push((0,we.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,r,n,i,a){let o=t.split(Re.LITERAL_PERIOD);if(o.length<1)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathErrorMessage)(n,t)),[];let u=r;if(this.inaccessibleCoords.has(u.renamedTypeName))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,o[0],u.renamedTypeName)),[];let l="";for(let m=0;m0?`.${h}`:h,u.kind!==be.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,we.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(n,t,l)),[];let N=u.fieldDataByName.get(h);if(!N)return a.push((0,we.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,h,u.renamedTypeName)),[];let T=`${u.renamedTypeName}.${h}`;if(!N.subgraphNames.has(i))return a.push((0,we.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T,i)),[];if(this.inaccessibleCoords.has(T))return a.push((0,we.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(n,t,l,T)),[];if(By.BASE_SCALARS.has(N.namedTypeName)){u={kind:be.Kind.SCALAR_TYPE_DEFINITION,name:N.namedTypeName};continue}u=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,N.namedTypeName,Re.PARENT_DEFINITION_DATA)}return(0,Te.isLeafKind)(u.kind)?o:(a.push((0,we.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(n,t,o[o.length-1],(0,he.kindToNodeType)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,r,n,i,a,o,u){if(i>zv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,m=new Set([Re.FIELD_PATH,Re.VALUES]),h=new Set,N=new Set,T=[],D=!1;for(let R of t.fields){let C=R.name.value,M=a+`.${C}`;switch(C){case Re.BYPASS_IF_VALUES_NULL:{if(D){l=!0,h.add(Re.BYPASS_IF_VALUES_NULL);break}if(D=!0,R.value.kind!==be.Kind.BOOLEAN){T.push((0,we.invalidInputFieldTypeErrorMessage)(M,Re.BOOLEAN,(0,he.kindToNodeType)(R.value.kind))),l=!0;break}R.value.value===!0&&(r.bypassIfValuesNull=!0);break}case Re.FIELD_PATH:{if(m.has(Re.FIELD_PATH))m.delete(Re.FIELD_PATH);else{l=!0,h.add(Re.FIELD_PATH);break}if(R.value.kind!==be.Kind.STRING){T.push((0,we.invalidInputFieldTypeErrorMessage)(M,Re.STRING,(0,he.kindToNodeType)(R.value.kind))),l=!0;break}let G=this.validateSubscriptionFieldConditionFieldPath(R.value.value,n,M,o,T);if(G.length<1){l=!0;break}r.fieldPath=G;break}case Re.VALUES:{if(m.has(Re.VALUES))m.delete(Re.VALUES);else{l=!0,h.add(Re.VALUES);break}let G=R.value.kind;if(G==be.Kind.NULL||G==be.Kind.OBJECT){T.push((0,we.invalidInputFieldTypeErrorMessage)(M,Re.LIST,(0,he.kindToNodeType)(R.value.kind))),l=!0;break}if(G!==be.Kind.LIST){r.values=[(0,Te.getSubscriptionFilterValue)(R.value)];break}let ee=new Set,ae=[];for(let Ne=0;Ne0){T.push((0,we.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(M,ae));continue}if(ee.size<1){l=!0,T.push((0,we.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(M));continue}r.values=[...ee];break}default:l=!0,N.add(C)}}return l?(u.push((0,we.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...m],[...h],[...N],T)),!1):!0}validateSubscriptionFilterCondition(t,r,n,i,a,o,u){if(i>zv.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,we.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,we.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],m=l.name.value;if(!Od.SUBSCRIPTION_FILTER_INPUT_NAMES.has(m))return u.push((0,we.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,m)),!1;let h=a+`.${m}`;switch(l.value.kind){case be.Kind.OBJECT:switch(m){case Re.IN_UPPER:return r.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,r.in,n,i,a+".IN",o,u);case Re.NOT_UPPER:return r.not={},this.validateSubscriptionFilterCondition(l.value,r.not,n,i,a+".NOT",o,u);default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Re.LIST,Re.OBJECT)),!1}case be.Kind.LIST:{let N=[];switch(m){case Re.AND_UPPER:{r.and=N;break}case Re.OR_UPPER:{r.or=N;break}default:return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,Re.OBJECT,Re.LIST)),!1}let T=l.value.values.length;if(T<1||T>5)return u.push((0,we.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(h,T)),!1;let D=!0,R=[];for(let C=0;C0?(u.push((0,we.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(h,R)),!1):D}default:{let N=Od.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(m)?Re.LIST:Re.OBJECT;return u.push((0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(h,N,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,r,n,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==be.Kind.OBJECT){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,[(0,we.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Re.CONDITION,Re.OBJECT,(0,he.kindToNodeType)(u.value.kind))]));return}let l={},m=[];if(!this.validateSubscriptionFilterCondition(u.value,l,r,0,Re.CONDITION,o,m)){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(n,m)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,n,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,r]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let n=this.parentDefinitionDataByTypeName.get(r.fieldData.namedTypeName);if(!n){this.errors.push((0,we.invalidSubscriptionFilterDirectiveError)(t,[(0,we.subscriptionFilterNamedTypeErrorMessage)(r.fieldData.namedTypeName)]));continue}(0,Te.isNodeDataInaccessible)(n)||n.kind===be.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(r.directive,n,t,r.fieldData.name,r.fieldData.renamedParentTypeName,r.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,we.orScopesLimitError)(By.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.handleCustomDirectiveDefinitionNodes();let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(!this.options.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.errors,success:!1,warnings:this.warnings}}let r={kind:be.Kind.DOCUMENT,definitions:this.routerDefinitions},n=(0,be.buildASTSchema)({kind:be.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,name:m,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T}of this.internalSubgraphBySubgraphName.values())i.set(m,{configurationDataByTypeName:a,costs:o,directiveDefinitionByName:u,isVersionTwo:l,parentDefinitionDataByTypeName:h,schema:N,schemaNode:T});for(let a of this.authorizationDataByParentTypeName.values())(0,Ci.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,be.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:n,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,r,n,i){let a=r.size;for(let[o,u]of n){let l=(0,he.getOrThrowError)(r,o,`${t.name}.childDataByChildName`);if((0,Te.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(u.tagNames)||((0,he.getValueOrDefault)(l.federatedDirectivesData.directivesByName,Re.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,r,n,i){let a=r.size;for(let[o,u]of r){if((0,Te.isNodeDataInaccessible)(u)){a-=1;continue}let l=n.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(u.federatedDirectivesData.directivesByName,Re.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleCustomDirectiveDefinitionNodes(){for(let t of this.federatedDirectiveDataByName.values()){if(!t.isComposed&&t.executableLocations.size<1)continue;let r=(0,Te.propagateDirectiveDefinitionNodeFromData)({data:t,federatedDirectiveDataByName:this.federatedDirectiveDataByName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName});if(!r.success){this.errors.push(...r.errors);continue}this.routerDefinitions.push(t.node)}}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(PKe.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Re.PARENT_DEFINITION_DATA);if(!(0,Te.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(u.tagNames)){l.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case be.Kind.SCALAR_TYPE_DEFINITION:case be.Kind.UNION_TYPE_DEFINITION:break;case be.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,u.childTagDataByChildName,t.tagNamesToExclude);break}default:{let m=l.fieldDataByName.size;for(let[h,N]of u.childTagDataByChildName){let T=(0,he.getOrThrowError)(l.fieldDataByName,h,`${o}.fieldDataByFieldName`);if((0,Te.isNodeDataInaccessible)(T)){m-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(N.tagNames)){(0,he.getValueOrDefault)(T.federatedDirectivesData.directivesByName,Re.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(T.federatedCoords),m-=1;continue}for(let[D,R]of N.tagNamesByArgumentName){let C=(0,he.getOrThrowError)(T.argumentDataByName,D,`${h}.argumentDataByArgumentName`);(0,Te.isNodeDataInaccessible)(C)||t.tagNamesToExclude.isDisjointFrom(R)||((0,he.getValueOrDefault)(C.federatedDirectivesData.directivesByName,Re.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(C.federatedCoords))}}m<1&&(l.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Te.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){u.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(u.kind){case be.Kind.SCALAR_TYPE_DEFINITION:case be.Kind.UNION_TYPE_DEFINITION:continue;case be.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case be.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let m=u.fieldDataByName.size;for(let[h,N]of u.fieldDataByName){if((0,Te.isNodeDataInaccessible)(N)){m-=1;continue}let T=l.childTagDataByChildName.get(h);(!T||t.tagNamesToInclude.isDisjointFrom(T.tagNames))&&((0,he.getValueOrDefault)(N.federatedDirectivesData.directivesByName,Re.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(N.federatedCoords),m-=1)}m<1&&(u.federatedDirectivesData.directivesByName.set(Re.INACCESSIBLE,[(0,he.generateSimpleDirective)(Re.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.handleCustomDirectiveDefinitionNodes();let r=[];if(this.pushParentDefinitionDataToDocumentDefinitions(r),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(r),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let n={kind:be.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,be.buildASTSchema)({kind:be.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,name:h,parentDefinitionDataByTypeName:N,schema:T,schemaNode:D}of this.internalSubgraphBySubgraphName.values())a.set(h,{configurationDataByTypeName:o,costs:u,directiveDefinitionByName:l,isVersionTwo:m,parentDefinitionDataByTypeName:N,schema:T,schemaNode:D});for(let o of this.authorizationDataByParentTypeName.values())(0,Ci.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return q({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,be.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};Wv=new WeakSet,OX=function(){var n;let t=new Set,r=new Set;for(let i of this.referencedFederatedDirectiveNames){let a=By.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(n=Od.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?n:[];this.directiveDefinitionByName.set(i,a),Od.CLIENT_FEDERATED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,he.addIterableToSet)({source:o,target:r})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...r)};bd.FederationFactory=Hv;function _L({options:e,subgraphs:t}){if(t.length<1)return{errors:[we.minimumSubgraphRequirementError],success:!1,warnings:[]};let r=new FKe.BatchNormalizer({subgraphs:t,options:e}).batchNormalize();if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};let n=new Map,i=new Map;for(let[u,l]of r.internalSubgraphByName)for(let[m,h]of l.entityInterfaceSubgraphDataByTypeName){let N=n.get(m);if(!N){n.set(m,(0,Ci.newEntityInterfaceFederationData)(h,u));continue}(0,Ci.upsertEntityInterfaceFederationData)(N,h,u)}let a=new Array,o=new Map;for(let[u,l]of n){let m=l.concreteTypeNames.size;for(let[h,N]of l.subgraphDataByTypeName){let T=(0,he.getValueOrDefault)(o,h,()=>new Set);if((0,he.addIterableToSet)({source:N.concreteTypeNames,target:T}),!N.isInterfaceObject){N.resolvable&&N.concreteTypeNames.size!==m&&(0,he.getValueOrDefault)(i,u,()=>new Array).push({subgraphName:h,definedConcreteTypeNames:new Set(N.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,he.addIterableToSet)({source:l.concreteTypeNames,target:T});let{parentDefinitionDataByTypeName:D}=(0,he.getOrThrowError)(r.internalSubgraphByName,h,"internalSubgraphBySubgraphName"),R=[];for(let C of l.concreteTypeNames)D.has(C)&&R.push(C);R.length>0&&a.push((0,we.invalidInterfaceObjectImplementationDefinitionsError)(u,h,R))}}for(let[u,l]of i){let m=new Array;for(let h of l){let N=o.get(h.subgraphName);if(!N){m.push(h);continue}let T=h.requiredConcreteTypeNames.intersection(N);h.requiredConcreteTypeNames.size!==T.size&&(h.definedConcreteTypeNames=T,m.push(h))}if(m.length>0){i.set(u,m);continue}i.delete(u)}return i.size>0&&a.push((0,we.undefinedEntityInterfaceImplementationsError)(i,n)),a.length>0?{errors:a,success:!1,warnings:r.warnings}:{federationFactory:new Hv({authorizationDataByParentTypeName:r.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:r.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:r.entityDataByTypeName,entityInterfaceFederationDataByTypeName:n,executableDirectiveDatasByName:r.executableDirectiveDatasByName,federatedDirectiveDataByName:r.federatedDirectiveDataByName,fieldCoordsByNamedTypeName:r.fieldCoordsByNamedTypeName,interfaceImplementationTypeNamesByInterfaceTypeName:r.interfaceImplementationTypeNamesByInterfaceTypeName,internalSubgraphBySubgraphName:r.internalSubgraphByName,internalGraph:r.internalGraph,options:e,warnings:r.warnings}),success:!0,warnings:r.warnings}}function LKe({options:e,subgraphs:t}){let r=_L({options:e,subgraphs:t});return r.success?r.federationFactory.federateSubgraphsInternal():{errors:r.errors,success:!1,warnings:r.warnings}}function CKe({options:e,subgraphs:t,tagOptionsByContractName:r}){let n=_L({options:e,subgraphs:t});if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};n.federationFactory.federateSubgraphData();let i=[(0,SX.cloneDeep)(n.federationFactory)],a=n.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=r.size-1,u=new Map,l=0;for(let[m,h]of r){l!==o&&i.push((0,SX.cloneDeep)(i[l]));let N=i[l].buildFederationContractResult(h);u.set(m,N),l++}return Q(q({},a),{federationResultByContractName:u})}function BKe({contractTagOptions:e,options:t,subgraphs:r}){let n=_L({options:t,subgraphs:r});return n.success?(n.federationFactory.federateSubgraphData(),n.federationFactory.buildFederationContractResult(e)):{errors:n.errors,success:!1,warnings:n.warnings}}});var Xv=O(Ks=>{"use strict";d();p();f();Object.defineProperty(Ks,"__esModule",{value:!0});Ks.LATEST_ROUTER_COMPATIBILITY_VERSION=Ks.ROUTER_COMPATIBILITY_VERSIONS=Ks.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ks.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ks.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ks.ROUTER_COMPATIBILITY_VERSION_ONE]);Ks.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var bX=O(Uy=>{"use strict";d();p();f();Object.defineProperty(Uy,"__esModule",{value:!0});Uy.federateSubgraphs=UKe;Uy.federateSubgraphsWithContracts=kKe;Uy.federateSubgraphsContract=qKe;var SL=DX(),OL=Xv();function UKe({options:e,subgraphs:t,version:r=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,SL.federateSubgraphs)({options:e,subgraphs:t})}}function kKe({options:e,subgraphs:t,tagOptionsByContractName:r,version:n=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SL.federateSubgraphsWithContracts)({options:e,subgraphs:t,tagOptionsByContractName:r})}}function qKe({contractTagOptions:e,options:t,subgraphs:r,version:n=OL.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,SL.federateSubgraphsContract)({contractTagOptions:e,options:t,subgraphs:r})}}});var RX=O(AX=>{"use strict";d();p();f();Object.defineProperty(AX,"__esModule",{value:!0})});var PX=O(wX=>{"use strict";d();p();f();Object.defineProperty(wX,"__esModule",{value:!0})});var CX=O(Zv=>{"use strict";d();p();f();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.normalizeSubgraphFromString=xKe;Zv.normalizeSubgraph=MKe;var FX=TL(),LX=Xv();function xKe({noLocation:e=!0,options:t,sdlString:r,version:n=LX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,FX.normalizeSubgraphFromString)({noLocation:e,options:t,sdlString:r})}}function MKe({document:e,internalGraph:t,options:r,subgraphName:n,version:i=LX.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(i){default:return(0,FX.normalizeSubgraph)({document:e,internalGraph:t,options:r,subgraphName:n})}}});var UX=O(BX=>{"use strict";d();p();f();Object.defineProperty(BX,"__esModule",{value:!0})});var qX=O(kX=>{"use strict";d();p();f();Object.defineProperty(kX,"__esModule",{value:!0})});var MX=O(xX=>{"use strict";d();p();f();Object.defineProperty(xX,"__esModule",{value:!0})});var VX=O(jX=>{"use strict";d();p();f();Object.defineProperty(jX,"__esModule",{value:!0})});var $X=O(KX=>{"use strict";d();p();f();Object.defineProperty(KX,"__esModule",{value:!0})});var QX=O(GX=>{"use strict";d();p();f();Object.defineProperty(GX,"__esModule",{value:!0})});var JX=O(YX=>{"use strict";d();p();f();Object.defineProperty(YX,"__esModule",{value:!0})});var HX=O(zX=>{"use strict";d();p();f();Object.defineProperty(zX,"__esModule",{value:!0})});var XX=O(WX=>{"use strict";d();p();f();Object.defineProperty(WX,"__esModule",{value:!0})});var e7=O(ZX=>{"use strict";d();p();f();Object.defineProperty(ZX,"__esModule",{value:!0})});var t7=O(e_=>{"use strict";d();p();f();Object.defineProperty(e_,"__esModule",{value:!0});e_.COMPOSITION_VERSION=void 0;e_.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var n7=O(r7=>{"use strict";d();p();f();Object.defineProperty(r7,"__esModule",{value:!0})});var a7=O(i7=>{"use strict";d();p();f();Object.defineProperty(i7,"__esModule",{value:!0})});var s7=O(o7=>{"use strict";d();p();f();Object.defineProperty(o7,"__esModule",{value:!0})});var c7=O(u7=>{"use strict";d();p();f();Object.defineProperty(u7,"__esModule",{value:!0})});var l7=O(DL=>{"use strict";d();p();f();Object.defineProperty(DL,"__esModule",{value:!0});DL.recordSubgraphName=jKe;function jKe(e,t,r){if(!t.has(e)){t.add(e);return}r.add(e)}});var t_=O(Qe=>{"use strict";d();p();f();var VKe=Qe&&Qe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),tt=Qe&&Qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&VKe(t,e,r)};Object.defineProperty(Qe,"__esModule",{value:!0});MD();ob();rb();ub();lb();tt(kn(),Qe);tt(XR(),Qe);tt(cv(),Qe);tt(K4(),Qe);tt(G4(),Qe);tt(Oy(),Qe);tt(bi(),Qe);tt(Y4(),Qe);tt(z4(),Qe);tt(bX(),Qe);tt(RX(),Qe);tt(PX(),Qe);tt(CX(),Qe);tt(UX(),Qe);tt(qX(),Qe);tt(jv(),Qe);tt(rL(),Qe);tt(Bv(),Qe);tt(MX(),Qe);tt(VX(),Qe);tt(sL(),Qe);tt(Xv(),Qe);tt($X(),Qe);tt(yL(),Qe);tt(Jo(),Qe);tt(QX(),Qe);tt(JX(),Qe);tt(Xh(),Qe);tt(Zc(),Qe);tt(HX(),Qe);tt(XX(),Qe);tt(e7(),Qe);tt(t7(),Qe);tt(n7(),Qe);tt(xr(),Qe);tt(a7(),Qe);tt(An(),Qe);tt(zP(),Qe);tt(zo(),Qe);tt(zo(),Qe);tt(Wh(),Qe);tt(XI(),Qe);tt(ZI(),Qe);tt(xs(),Qe);tt(Zg(),Qe);tt(s7(),Qe);tt(nv(),Qe);tt(WF(),Qe);tt(vL(),Qe);tt(cv(),Qe);tt(_p(),Qe);tt(c7(),Qe);tt(hL(),Qe);tt(Rv(),Qe);tt(l7(),Qe);tt(vp(),Qe);tt(hd(),Qe)});var x$e={};nm(x$e,{buildRouterConfiguration:()=>q$e,federateSubgraphs:()=>k$e});d();p();f();var dFt=Ln(MD()),fFt=Ln(rb()),pFt=Ln(ob()),mFt=Ln(ub()),hFt=Ln(lb()),Bd=Ln(t_());d();p();f();d();p();f();function bL(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),r=e.indexOf("#"),n=e;return t>0?n=n.slice(0,r>0?Math.min(t,r):t):r>0&&(n=n.slice(0,r)),n}d();p();f();d();p();f();var d7={};d();p();f();function f7(e){return e!=null}d();p();f();d();p();f();var n_=Ln(_e(),1);d();p();f();d();p();f();function sl(e){return r_(e,[])}function r_(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return KKe(e,t);default:return String(e)}}function p7(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function KKe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?p7(e)+` -`+m7(e.errors,t):p7(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if($Ke(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:r_(n,r)}else if(Array.isArray(e))return m7(e,r);return GKe(e,r)}function $Ke(e){return typeof e.toJSON=="function"}function GKe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>3?"["+QKe(e)+"]":"{ "+r.map(([i,a])=>i+": "+r_(a,t)).join(", ")+" }"}function m7(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let r=e.length,n=[];for(let i=0;iYKe.includes(t))}function wp(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&JKe(t.originalError)&&(t.originalError=wp(t.originalError.message,t.originalError));let r=ky.GraphQLError,n=ky.versionInfo.major>=16?new r(e,t):new r(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);return t!=null&&t.coordinate&&n.coordinate==null&&Object.defineProperties(n,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),n}d();p();f();function h7(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function y7(e){return typeof e=="object"&&e!==null}function N7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T7(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ho.Kind.NULL;if(N.kind===ho.Kind.VARIABLE){let R=N.name.value;if(r==null||!N7(r,R)){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of non-null type "${sl(l)}" must not be null.`,{nodes:[N]});let D=(0,ho.valueFromAST)(N,l,r);if(D===void 0)throw wp(`Argument "${u}" has invalid value ${(0,ho.print)(N)}.`,{nodes:[N]});n[u]=D}return n}d();p();f();function Pp(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function E7(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=Pp(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=T7(N,l)),l.arguments)for(let D of l.arguments){let R=D.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,n_.valueFromAST)(D.value,C.type))}T[R]==null&&(T[R]=(0,n_.valueFromASTUntyped)(D.value))}if(a.length>0&&h.length>0){let D=i(T);if(h.some(R=>i(R)===D))continue}h.push(T)}return n}function AL(e,t=["directives"]){let r=E7(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}d();p();f();var rt=Ln(ve(),1);d();p();f();var rs=Ln(ve(),1);function ns(e){if((0,rs.isNonNullType)(e)){let t=ns(e.ofType);if(t.kind===rs.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${sl(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rs.Kind.NON_NULL_TYPE,type:t}}else if((0,rs.isListType)(e))return{kind:rs.Kind.LIST_TYPE,type:ns(e.ofType)};return{kind:rs.Kind.NAMED_TYPE,name:{kind:rs.Kind.NAME,value:e.name}}}d();p();f();var wn=Ln(ve(),1);d();p();f();var yo=Ln(ve(),1);function Ad(e){if(e===null)return{kind:yo.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=Ad(r);n!=null&&t.push(n)}return{kind:yo.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Ad(e.toJSON());let t=[];for(let r in e){let n=e[r],i=Ad(n);i&&t.push({kind:yo.Kind.OBJECT_FIELD,name:{kind:yo.Kind.NAME,value:r},value:i})}return{kind:yo.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:yo.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:yo.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return zKe.test(t)?{kind:yo.Kind.INT,value:t}:{kind:yo.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:yo.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var zKe=/^-?(?:0|[1-9][0-9]*)$/;function ul(e,t){if((0,wn.isNonNullType)(t)){let r=ul(e,t.ofType);return(r==null?void 0:r.kind)===wn.Kind.NULL?null:r}if(e===null)return{kind:wn.Kind.NULL};if(e===void 0)return null;if((0,wn.isListType)(t)){let r=t.ofType;if(h7(e)){let n=[];for(let i of e){let a=ul(i,r);a!=null&&n.push(a)}return{kind:wn.Kind.LIST,values:n}}return ul(e,r)}if((0,wn.isInputObjectType)(t)){if(!y7(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ul(e[n.name],n.type);i&&r.push({kind:wn.Kind.OBJECT_FIELD,name:{kind:wn.Kind.NAME,value:n.name},value:i})}return{kind:wn.Kind.OBJECT,fields:r}}if((0,wn.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,wn.isEnumType)(t)?{kind:wn.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&HKe.test(r)?{kind:wn.Kind.INT,value:r}:Ad(r)}console.assert(!1,"Unexpected input type: "+sl(t))}var HKe=/^-?(?:0|[1-9][0-9]*)$/;d();p();f();var g7=Ln(ve(),1);function Xi(e){var t;if((t=e.astNode)!=null&&t.description)return G(q({},e.astNode.description),{block:!0});if(e.description)return{kind:g7.Kind.STRING,value:e.description,block:!0}}d();p();f();var z0t=Pp(function(t){let r=WKe(t);return new Set([...r].map(n=>n.name))}),WKe=Pp(function(t){let r=RL(t);return new Set(r.values())}),RL=Pp(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r});function XKe(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=ZKe(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,rt.isSpecifiedDirective)(u)||a.push(e$e(u,e,r));for(let u in n){let l=n[u],m=(0,rt.isSpecifiedScalarType)(l),h=(0,rt.isIntrospectionType)(l);if(!(m||h))if((0,rt.isObjectType)(l))a.push(t$e(l,e,r));else if((0,rt.isInterfaceType)(l))a.push(r$e(l,e,r));else if((0,rt.isUnionType)(l))a.push(n$e(l,e,r));else if((0,rt.isInputObjectType)(l))a.push(i$e(l,e,r));else if((0,rt.isEnumType)(l))a.push(a$e(l,e,r));else if((0,rt.isScalarType)(l))a.push(o$e(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:rt.Kind.DOCUMENT,definitions:a}}function I7(e,t={}){let r=XKe(e,t);return(0,rt.print)(r)}function ZKe(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=RL(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=ns(N);h!=null?h.type=T:r.set(m,{kind:rt.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(f7),o=is(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?rt.Kind.SCHEMA_DEFINITION:rt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=Xi(e);return l&&(u.description=l),u}function e$e(e,t,r){var n,i;return{kind:rt.Kind.DIRECTIVE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>v7(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:rt.Kind.NAME,value:a})))||[]}}function is(e,t,r){let n=[],i=AL(e,r),a;i!=null&&(a=S7(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>rt.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=c$e(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=qy("specifiedBy",h)}return e.isOneOf&&l==null&&(l=qy("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function v7(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),defaultValue:e.defaultValue!==void 0&&(n=ul(e.defaultValue,e.type))!=null?n:void 0,directives:is(e,t,r)}}function t$e(e,t,r){return{kind:rt.Kind.OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>_7(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>ns(n)),directives:is(e,t,r)}}function r$e(e,t,r){let n={kind:rt.Kind.INTERFACE_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>_7(i,t,r)),directives:is(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>ns(i))),n}function n$e(e,t,r){return{kind:rt.Kind.UNION_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r),types:e.getTypes().map(n=>ns(n))}}function i$e(e,t,r){return{kind:rt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>s$e(n,t,r)),directives:is(e,t,r)}}function a$e(e,t,r){return{kind:rt.Kind.ENUM_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>u$e(n,t,r)),directives:is(e,t,r)}}function o$e(e,t,r){let n=AL(e,r),i=S7(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(qy("specifiedBy",o))}return{kind:rt.Kind.SCALAR_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:i}}function _7(e,t,r){return{kind:rt.Kind.FIELD_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:e.args.map(n=>v7(n,t,r)),type:ns(e.type),directives:is(e,t,r)}}function s$e(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),directives:is(e,t,r),defaultValue:(n=ul(e.defaultValue,e.type))!=null?n:void 0}}function u$e(e,t,r){return{kind:rt.Kind.ENUM_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r)}}function c$e(e){return qy("deprecated",{reason:e},rt.GraphQLDeprecatedDirective)}function qy(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=ul(a,u.type))}o==null&&(o=Ad(a)),o!=null&&n.push({kind:rt.Kind.ARGUMENT,name:{kind:rt.Kind.NAME,value:i},value:o})}return{kind:rt.Kind.DIRECTIVE,name:{kind:rt.Kind.NAME,value:e},arguments:n}}function S7(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(qy(n,i,a))}return r}var Mp=Ln(t_(),1);d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();function Ir(e,t){if(!e)throw new Error(t)}var l$e=34028234663852886e22,d$e=-34028234663852886e22,f$e=4294967295,p$e=2147483647,m$e=-2147483648;function Fp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>p$e||ef$e||e<0)throw new Error("invalid uint 32: "+e)}function i_(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>l$e||e({no:i.no,name:i.name,localName:e[i.no]})),n)}function PL(e,t,r){let n=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=A7(o);a.push(u),n[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return n[o]},findNumber(o){return i[o]}}}function b7(e,t,r){let n={};for(let i of t){let a=A7(i);n[a.localName]=a.no,n[a.no]=a.localName}return wL(n,e,t,r),n}function A7(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}d();p();f();d();p();f();var Re=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){let n=this.getType(),i=n.runtime.bin,a=i.makeReadOptions(r);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,r){let n=this.getType(),i=n.runtime.json,a=i.makeReadOptions(r);return i.readMessage(n,t,a,this),this}fromJsonString(t,r){let n;try{n=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(n,r)}toBinary(t){let r=this.getType(),n=r.runtime.bin,i=n.makeWriteOptions(t),a=i.writerFactory();return n.writeMessage(this,a,i),a.finish()}toJson(t){let r=this.getType(),n=r.runtime.json,i=n.makeWriteOptions(t);return n.writeMessage(this,i)}toJsonString(t){var r;let n=this.toJson(t);return JSON.stringify(n,null,(r=t==null?void 0:t.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function R7(e,t,r,n){var i;let a=(i=n==null?void 0:n.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Re),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(r),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}d();p();f();d();p();f();d();p();f();d();p();f();function P7(){let e=0,t=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(r&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(r.push(l),!u)return}let n=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(r.push((i?n|128:n)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(r.push(l),!u)return}r.push(t>>>31&1)}}var a_=4294967296;function FL(e){let t=e[0]==="-";t&&(e=e.slice(1));let r=1e6,n=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=r,n=n*r+l,n>=a_&&(i=i+(n/a_|0),n=n%a_)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?L7(n,i):CL(n,i)}function F7(e,t){let r=CL(e,t),n=r.hi&2147483648;n&&(r=L7(r.lo,r.hi));let i=LL(r.lo,r.hi);return n?"-"+i:i}function LL(e,t){if({lo:e,hi:t}=h$e(e,t),t<=2097151)return String(a_*t+e);let r=e&16777215,n=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=r+n*6777216+i*6710656,o=n+i*8147497,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+w7(o)+w7(a)}function h$e(e,t){return{lo:e>>>0,hi:t>>>0}}function CL(e,t){return{lo:e|0,hi:t|0}}function L7(e,t){return t=~t,e?e=~e+1:t+=1,CL(e,t)}var w7=e=>{let t=String(e);return"0000000".slice(t.length)+t};function BL(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function C7(){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 r=5;e&128&&r<10;r++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function y$e(){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 E!="object"||typeof E.env!="object"||E.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let m=typeof l=="bigint"?l:BigInt(l);if(m>a||mu||mIr(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),n=i=>Ir(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),r(i),FL(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),n(i),FL(i)},dec(i,a){return F7(i,a)},uDec(i,a){return LL(i,a)}}}var dn=y$e();d();p();f();var me;(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"})(me||(me={}));var No;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(No||(No={}));function $s(e,t,r){if(t===r)return!0;if(e==me.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(xy(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Fp(t),BL(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 r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){i_(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){xy(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){Fp(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return Fp(t),t=(t<<1^t>>31)>>>0,BL(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=dn.enc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=dn.uEnc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(t){let r=dn.enc(t);return o_(r.lo,r.hi,this.buf),this}sint64(t){let r=dn.enc(t),n=r.hi>>31,i=r.lo<<1^n,a=(r.hi<<1|r.lo>>>31)^n;return o_(i,a,this.buf),this}uint64(t){let r=dn.uEnc(t);return o_(r.lo,r.hi,this.buf),this}},c_=class{constructor(t,r){this.varint64=P7,this.uint32=C7,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r!=null?r:new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t,r){let n=this.pos;switch(t){case en.Varint:for(;this.buf[this.pos++]&128;);break;case en.Bit64:this.pos+=4;case en.Bit32:this.pos+=4;break;case en.LengthDelimited:let i=this.uint32();this.pos+=i;break;case en.StartGroup:for(;;){let[a,o]=this.tag();if(o===en.EndGroup){if(r!==void 0&&a!==r)throw new Error("invalid end group tag");break}this.skip(o,a)}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 dn.dec(...this.varint64())}uint64(){return dn.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,dn.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return dn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return dn.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(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}};function B7(e,t,r,n){let i;return{typeName:t,extendee:r,get field(){if(!i){let a=typeof n=="function"?n():n;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function l_(e){let t=e.field.localName,r=Object.create(null);return r[t]=N$e(e),[r,()=>r[t]]}function N$e(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 To(t.T,t.L);case"message":let r=t.T,n=new r;return r.fieldWrapper?r.fieldWrapper.unwrapField(n):n;case"map":throw"map fields are not allowed to be extensions"}}function U7(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let r=e.length-1;r>=0;--r)if(e[r].no==t.no)return[e[r]];return[]}return e.filter(r=>r.no===t.no)}d();p();f();d();p();f();var Gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d_=[];for(let e=0;e>4,o=a,i=2;break;case 2:r[n++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:r[n++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,i=0;for(let a=0;a>2],i=(n&3)<<4,r=1;break;case 1:t+=Gs[i|n>>4],i=(n&15)<<2,r=2;break;case 2:t+=Gs[i|n>>6],t+=Gs[n&63],r=0;break}return r&&(t+=Gs[i],t+="=",r==1&&(t+="=")),t}};d();p();f();function k7(e,t,r){x7(t,e);let n=t.runtime.bin.makeReadOptions(r),i=U7(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=l_(t);for(let u of i)t.runtime.bin.readField(a,n.readerFactory(u.data),t.field,u.wireType,n);return o()}function q7(e,t,r,n){x7(t,e);let i=t.runtime.bin.makeReadOptions(n),a=t.runtime.bin.makeWriteOptions(n);if(kL(e,t)){let m=e.getType().runtime.bin.listUnknownFields(e).filter(h=>h.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let h of m)e.getType().runtime.bin.onUnknownField(e,h.no,h.wireType,h.data)}let o=a.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,r,o,a);let l=i.readerFactory(o.finish());for(;l.posn.no==t.field.no)}function x7(e,t){Ir(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}d();p();f();function f_(e,t){let r=e.localName;if(e.repeated)return t[r].length>0;if(e.oneof)return t[e.oneof.localName].case===r;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[r]!==void 0:e.kind=="enum"?t[r]!==e.T.values[0].no:!s_(e.T,t[r]);case"message":return t[r]!==void 0;case"map":return Object.keys(t[r]).length>0}}function qL(e,t){let r=e.localName,n=!e.opt&&!e.req;if(e.repeated)t[r]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[r]={};break;case"enum":t[r]=n?e.T.values[0].no:void 0;break;case"scalar":t[r]=n?To(e.T,e.L):void 0;break;case"message":t[r]=void 0;break}}d();p();f();d();p();f();function Eo(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Re.prototype).every(n=>n in e&&typeof e[n]=="function"))return!1;let r=e.getType();return r===null||typeof r!="function"||!("typeName"in r)||typeof r.typeName!="string"?!1:t===void 0?!0:r.typeName==t.typeName}function p_(e,t){return Eo(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var wRt={"google.protobuf.DoubleValue":me.DOUBLE,"google.protobuf.FloatValue":me.FLOAT,"google.protobuf.Int64Value":me.INT64,"google.protobuf.UInt64Value":me.UINT64,"google.protobuf.Int32Value":me.INT32,"google.protobuf.UInt32Value":me.UINT32,"google.protobuf.BoolValue":me.BOOL,"google.protobuf.StringValue":me.STRING,"google.protobuf.BytesValue":me.BYTES};var M7={ignoreUnknownFields:!1},j7={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function T$e(e){return e?Object.assign(Object.assign({},M7),e):M7}function E$e(e){return e?Object.assign(Object.assign({},j7),e):j7}var y_=Symbol(),m_=Symbol();function $7(){return{makeReadOptions:T$e,makeWriteOptions:E$e,readMessage(e,t,r,n){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${as(t)}`);n=n!=null?n:new e;let i=new Map,a=r.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 m=i.get(l.oneof);if(m!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${m}", "${o}"`);i.set(l.oneof,o)}V7(n,u,l,r,e)}else{let m=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let h=a.findExtension(o.substring(1,o.length-1));if(h&&h.extendee.typeName==e.typeName){m=!0;let[N,T]=l_(h);V7(N,u,h.field,r,h),q7(n,h,T(),r)}}if(!m&&!r.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return n},writeMessage(e,t){let r=e.getType(),n={},i;try{for(i of r.fields.byNumber()){if(!f_(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!I$e(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=K7(i,o,t);u!==void 0&&(n[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of r.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(r.typeName,o.no);if(u&&kL(e,u)){let l=k7(e,u,t),m=K7(u.field,l,t);m!==void 0&&(n[u.field.jsonName]=m)}}}catch(a){let o=i?`cannot encode field ${r.typeName}.${i.name} to JSON`:`cannot encode message ${r.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return n},readScalar(e,t,r){return My(e,t,r!=null?r:No.BIGINT,!0)},writeScalar(e,t,r){if(t!==void 0&&(r||s_(e,t)))return h_(e,t)},debug:as}}function as(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 V7(e,t,r,n,i){let a=r.localName;if(r.repeated){if(Ir(r.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`);switch(r.kind){case"message":o.push(r.T.fromJson(u,n));break;case"enum":let l=xL(r.T,u,n.ignoreUnknownFields,!0);l!==m_&&o.push(l);break;case"scalar":try{o.push(My(r.T,u,r.L,!0))}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}}else if(r.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: map value null`);let m;try{m=g$e(r.K,u)}catch(h){let N=`cannot decode map key for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw h instanceof Error&&h.message.length>0&&(N+=`: ${h.message}`),new Error(N)}switch(r.V.kind){case"message":o[m]=r.V.T.fromJson(l,n);break;case"enum":let h=xL(r.V.T,l,n.ignoreUnknownFields,!0);h!==m_&&(o[m]=h);break;case"scalar":try{o[m]=My(r.V.T,l,No.BIGINT,!0)}catch(N){let T=`cannot decode map value for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw N instanceof Error&&N.message.length>0&&(T+=`: ${N.message}`),new Error(T)}break}}}else switch(r.oneof&&(e=e[r.oneof.localName]={case:a},a="value"),r.kind){case"message":let o=r.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Eo(u)?u.fromJson(t,n):(e[a]=u=o.fromJson(t,n),o.fieldWrapper&&!r.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=xL(r.T,t,n.ignoreUnknownFields,!1);switch(l){case y_:qL(r,e);break;case m_:break;default:e[a]=l;break}break;case"scalar":try{let m=My(r.T,t,r.L,!1);switch(m){case y_:qL(r,e);break;default:e[a]=m;break}}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}function g$e(e,t){if(e===me.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return My(e,t,No.BIGINT,!0).toString()}function My(e,t,r,n){if(t===null)return n?To(e,r):y_;switch(e){case me.DOUBLE:case me.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==me.FLOAT&&i_(i),i;case me.INT32:case me.FIXED32:case me.SFIXED32:case me.SINT32:case me.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==me.UINT32||e==me.FIXED32?xy(a):Fp(a),a;case me.INT64:case me.SFIXED64:case me.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=dn.parse(t);return r?o.toString():o;case me.FIXED64:case me.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=dn.uParse(t);return r?u.toString():u;case me.BOOL:if(typeof t!="boolean")break;return t;case me.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case me.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return UL.dec(t)}throw new Error}function xL(e,t,r,n){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:n?e.values[0].no:y_;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(r)return m_;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${as(t)}`)}function I$e(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function K7(e,t,r){if(e.kind=="map"){Ir(typeof t=="object"&&t!=null);let n={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)n[o.toString()]=h_(e.V.T,u);break;case"message":for(let[o,u]of i)n[o.toString()]=u.toJson(r);break;case"enum":let a=e.V.T;for(let[o,u]of i)n[o.toString()]=ML(a,u,r.enumAsInteger);break}return r.emitDefaultValues||i.length>0?n:void 0}if(e.repeated){Ir(Array.isArray(t));let n=[];switch(e.kind){case"scalar":for(let i=0;i0?n:void 0}switch(e.kind){case"scalar":return h_(e.T,t);case"enum":return ML(e.T,t,r.enumAsInteger);case"message":return p_(e.T,t).toJson(r)}}function ML(e,t,r){var n;if(Ir(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(r)return t;let i=e.findNumber(t);return(n=i==null?void 0:i.name)!==null&&n!==void 0?n:t}function h_(e,t){switch(e){case me.INT32:case me.SFIXED32:case me.SINT32:case me.FIXED32:case me.UINT32:return Ir(typeof t=="number"),t;case me.FLOAT:case me.DOUBLE:return Ir(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case me.STRING:return Ir(typeof t=="string"),t;case me.BOOL:return Ir(typeof t=="boolean"),t;case me.UINT64:case me.FIXED64:case me.INT64:case me.SFIXED64:case me.SINT64:return Ir(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case me.BYTES:return Ir(t instanceof Uint8Array),UL.enc(t)}}d();p();f();var Lp=Symbol("@bufbuild/protobuf/unknown-fields"),G7={readUnknownFields:!0,readerFactory:e=>new c_(e)},Q7={writeUnknownFields:!0,writerFactory:()=>new u_};function v$e(e){return e?Object.assign(Object.assign({},G7),e):G7}function _$e(e){return e?Object.assign(Object.assign({},Q7),e):Q7}function H7(){return{makeReadOptions:v$e,makeWriteOptions:_$e,listUnknownFields(e){var t;return(t=e[Lp])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Lp]},writeUnknownFields(e,t){let n=e[Lp];if(n)for(let i of n)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,r,n){let i=e;Array.isArray(i[Lp])||(i[Lp]=[]),i[Lp].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n,i){let a=e.getType(),o=i?t.len:t.pos+r,u,l;for(;t.pos0&&(l=O$e),a){let T=e[o];if(n==en.LengthDelimited&&u!=me.STRING&&u!=me.BYTES){let R=t.uint32()+t.pos;for(;t.posEo(T,N)?T:new N(T));else{let T=o[i];N.fieldWrapper?N.typeName==="google.protobuf.BytesValue"?a[i]=Vy(T):a[i]=T:a[i]=Eo(T,N)?T:new N(T)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{let i=t[n.localName],a=r[n.localName];if(n.repeated){if(i.length!==a.length)return!1;switch(n.kind){case"message":return i.every((o,u)=>n.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>$s(n.T,o,a[u]));case"enum":return i.every((o,u)=>$s(me.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(i,a);case"enum":return $s(me.INT32,i,a);case"scalar":return $s(n.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=n.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return $s(me.INT32,i.value,a.value);case"scalar":return $s(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(n.V.kind){case"message":let l=n.V.T;return u.every(h=>l.equals(i[h],a[h]));case"enum":return u.every(h=>$s(me.INT32,i[h],a[h]));case"scalar":let m=n.V.T;return u.every(h=>$s(m,i[h],a[h]))}break}})},clone(e){let t=e.getType(),r=new t,n=r;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(E_);else if(i.kind=="map"){o=n[i.localName];for(let[u,l]of Object.entries(a))o[u]=E_(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:E_(a.value)}:{case:void 0}:o=E_(a);n[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(n,i.no,i.wireType,i.data);return r}}}function E_(e){if(e===void 0)return e;if(Eo(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Vy(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Z7(e,t,r){return{syntax:e,json:$7(),bin:H7(),util:Object.assign(Object.assign({},X7()),{newFieldList:t,initFields:r}),makeMessageType(n,i,a){return R7(this,n,i,a)},makeEnum:b7,makeEnumType:PL,getEnumType:D7,makeExtension(n,i,a){return B7(this,n,i,a)}}}d();p();f();var g_=class{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){let r={};for(let n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){let r={};for(let n of this.list())r[n.no]=n;this.numbers=r}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,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,r;for(let n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}};d();p();f();d();p();f();d();p();f();function jL(e,t){let r=rZ(e);return t?r:P$e(w$e(r))}function eZ(e){return jL(e,!1)}var tZ=rZ;function rZ(e){let t=!1,r=[];for(let n=0;n`${e}$`,w$e=e=>R$e.has(e)?nZ(e):e,P$e=e=>A$e.has(e)?nZ(e):e;var I_=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=eZ(t)}addField(t){Ir(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 r=0;rnew g_(e,t=>iZ(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=To(t.T,t.L);break;case"message":break}}});var Cp;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Cp||(Cp={}));U.util.setEnumType(Cp,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Qs;(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"})(Qs||(Qs={}));U.util.setEnumType(Qs,"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 Ys;(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"})(Ys||(Ys={}));U.util.setEnumType(Ys,"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"}]);var mZ=Ln(ve(),1);d();p();f();var VL;(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"})(VL||(VL={}));U.util.setEnumType(VL,"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 wd;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(wd||(wd={}));U.util.setEnumType(wd,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var cl;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(cl||(cl={}));U.util.setEnumType(cl,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Ky;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Ky||(Ky={}));U.util.setEnumType(Ky,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var $y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})($y||($y={}));U.util.setEnumType($y,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var oc;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(oc||(oc={}));U.util.setEnumType(oc,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var ll;(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"})(ll||(ll={}));U.util.setEnumType(ll,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Pd;(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"})(Pd||(Pd={}));U.util.setEnumType(Pd,"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 Js=class Js extends Re{constructor(r){super();S(this,"id","");S(this,"name","");S(this,"routingUrl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Js().fromBinary(r,n)}static fromJson(r,n){return new Js().fromJson(r,n)}static fromJsonString(r,n){return new Js().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Js,r,n)}};S(Js,"runtime",U),S(Js,"typeName","wg.cosmo.node.v1.Subgraph"),S(Js,"fields",U.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 v_=Js,zs=class zs extends Re{constructor(r){super();S(this,"configByFeatureFlagName",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new zs().fromBinary(r,n)}static fromJson(r,n){return new zs().fromJson(r,n)}static fromJsonString(r,n){return new zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zs,r,n)}};S(zs,"runtime",U),S(zs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),S(zs,"fields",U.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:$L}}]));var KL=zs,Hs=class Hs extends Re{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Hs().fromBinary(r,n)}static fromJson(r,n){return new Hs().fromJson(r,n)}static fromJsonString(r,n){return new Hs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hs,r,n)}};S(Hs,"runtime",U),S(Hs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),S(Hs,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:v_,repeated:!0}]));var $L=Hs,Ws=class Ws extends Re{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);S(this,"featureFlagConfigs");S(this,"compatibilityVersion","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ws().fromBinary(r,n)}static fromJson(r,n){return new Ws().fromJson(r,n)}static fromJsonString(r,n){return new Ws().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ws,r,n)}};S(Ws,"runtime",U),S(Ws,"typeName","wg.cosmo.node.v1.RouterConfig"),S(Ws,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:v_,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:KL,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var Gy=Ws,Xs=class Xs extends Re{constructor(r){super();S(this,"code",Cp.OK);S(this,"details");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xs().fromBinary(r,n)}static fromJson(r,n){return new Xs().fromJson(r,n)}static fromJsonString(r,n){return new Xs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xs,r,n)}};S(Xs,"runtime",U),S(Xs,"typeName","wg.cosmo.node.v1.Response"),S(Xs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:U.getEnumType(Cp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var GL=Xs,Zs=class Zs extends Re{constructor(r){super();S(this,"code",0);S(this,"message","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zs().fromBinary(r,n)}static fromJson(r,n){return new Zs().fromJson(r,n)}static fromJsonString(r,n){return new Zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zs,r,n)}};S(Zs,"runtime",U),S(Zs,"typeName","wg.cosmo.node.v1.ResponseStatus"),S(Zs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var aZ=Zs,eu=class eu extends Re{constructor(r){super();S(this,"accountLimits");S(this,"graphPublicKey","");U.util.initPartial(r,this)}static fromBinary(r,n){return new eu().fromBinary(r,n)}static fromJson(r,n){return new eu().fromJson(r,n)}static fromJsonString(r,n){return new eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(eu,r,n)}};S(eu,"runtime",U),S(eu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),S(eu,"fields",U.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:YL},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var QL=eu,tu=class tu extends Re{constructor(r){super();S(this,"traceSamplingRate",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new tu().fromBinary(r,n)}static fromJson(r,n){return new tu().fromJson(r,n)}static fromJsonString(r,n){return new tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tu,r,n)}};S(tu,"runtime",U),S(tu,"typeName","wg.cosmo.node.v1.AccountLimits"),S(tu,"fields",U.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var YL=tu,ru=class ru extends Re{constructor(t){super(),U.util.initPartial(t,this)}static fromBinary(t,r){return new ru().fromBinary(t,r)}static fromJson(t,r){return new ru().fromJson(t,r)}static fromJsonString(t,r){return new ru().fromJsonString(t,r)}static equals(t,r){return U.util.equals(ru,t,r)}};S(ru,"runtime",U),S(ru,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),S(ru,"fields",U.util.newFieldList(()=>[]));var oZ=ru,nu=class nu extends Re{constructor(r){super();S(this,"response");S(this,"registrationInfo");U.util.initPartial(r,this)}static fromBinary(r,n){return new nu().fromBinary(r,n)}static fromJson(r,n){return new nu().fromJson(r,n)}static fromJsonString(r,n){return new nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nu,r,n)}};S(nu,"runtime",U),S(nu,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),S(nu,"fields",U.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:GL},{no:2,name:"registrationInfo",kind:"message",T:QL,opt:!0}]));var sZ=nu,iu=class iu extends Re{constructor(r){super();S(this,"defaultFlushInterval",dn.zero);S(this,"datasourceConfigurations",[]);S(this,"fieldConfigurations",[]);S(this,"graphqlSchema","");S(this,"typeConfigurations",[]);S(this,"stringStorage",{});S(this,"graphqlClientSchema");U.util.initPartial(r,this)}static fromBinary(r,n){return new iu().fromBinary(r,n)}static fromJson(r,n){return new iu().fromJson(r,n)}static fromJsonString(r,n){return new iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(iu,r,n)}};S(iu,"runtime",U),S(iu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),S(iu,"fields",U.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Qy,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Xy,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:JL,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 Bp=iu,au=class au extends Re{constructor(r){super();S(this,"kind",cl.STATIC);S(this,"rootNodes",[]);S(this,"childNodes",[]);S(this,"overrideFieldPathFromAlias",!1);S(this,"customGraphql");S(this,"customStatic");S(this,"directives",[]);S(this,"requestTimeoutSeconds",dn.zero);S(this,"id","");S(this,"keys",[]);S(this,"provides",[]);S(this,"requires",[]);S(this,"customEvents");S(this,"entityInterfaces",[]);S(this,"interfaceObjects",[]);S(this,"costConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new au().fromBinary(r,n)}static fromJson(r,n){return new au().fromJson(r,n)}static fromJsonString(r,n){return new au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(au,r,n)}};S(au,"runtime",U),S(au,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),S(au,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(cl)},{no:2,name:"root_nodes",kind:"message",T:Up,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Up,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:tN},{no:6,name:"custom_static",kind:"message",T:sC},{no:7,name:"directives",kind:"message",T:uC,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:Rd,repeated:!0},{no:11,name:"provides",kind:"message",T:Rd,repeated:!0},{no:12,name:"requires",kind:"message",T:Rd,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ld},{no:14,name:"entity_interfaces",kind:"message",T:kp,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:kp,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:Yy}]));var Qy=au,ou=class ou extends Re{constructor(r){super();S(this,"fieldWeights",[]);S(this,"listSizes",[]);S(this,"typeWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new ou().fromBinary(r,n)}static fromJson(r,n){return new ou().fromJson(r,n)}static fromJsonString(r,n){return new ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ou,r,n)}};S(ou,"runtime",U),S(ou,"typeName","wg.cosmo.node.v1.CostConfiguration"),S(ou,"fields",U.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Jy,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:zy,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Yy=ou,su=class su extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"weight");S(this,"argumentWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new su().fromBinary(r,n)}static fromJson(r,n){return new su().fromJson(r,n)}static fromJsonString(r,n){return new su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(su,r,n)}};S(su,"runtime",U),S(su,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),S(su,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:5,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Jy=su,uu=class uu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"assumedSize");S(this,"slicingArguments",[]);S(this,"sizedFields",[]);S(this,"requireOneSlicingArgument");U.util.initPartial(r,this)}static fromBinary(r,n){return new uu().fromBinary(r,n)}static fromJson(r,n){return new uu().fromJson(r,n)}static fromJsonString(r,n){return new uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(uu,r,n)}};S(uu,"runtime",U),S(uu,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),S(uu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var zy=uu,cu=class cu extends Re{constructor(r){super();S(this,"name","");S(this,"sourceType",wd.OBJECT_FIELD);U.util.initPartial(r,this)}static fromBinary(r,n){return new cu().fromBinary(r,n)}static fromJson(r,n){return new cu().fromJson(r,n)}static fromJsonString(r,n){return new cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(cu,r,n)}};S(cu,"runtime",U),S(cu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),S(cu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:U.getEnumType(wd)}]));var Hy=cu,lu=class lu extends Re{constructor(r){super();S(this,"requiredAndScopes",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new lu().fromBinary(r,n)}static fromJson(r,n){return new lu().fromJson(r,n)}static fromJsonString(r,n){return new lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(lu,r,n)}};S(lu,"runtime",U),S(lu,"typeName","wg.cosmo.node.v1.Scopes"),S(lu,"fields",U.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Fd=lu,du=class du extends Re{constructor(r){super();S(this,"requiresAuthentication",!1);S(this,"requiredOrScopes",[]);S(this,"requiredOrScopesByOr",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new du().fromBinary(r,n)}static fromJson(r,n){return new du().fromJson(r,n)}static fromJsonString(r,n){return new du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(du,r,n)}};S(du,"runtime",U),S(du,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),S(du,"fields",U.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Fd,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Fd,repeated:!0}]));var Wy=du,fu=class fu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"argumentsConfiguration",[]);S(this,"authorizationConfiguration");S(this,"subscriptionFilterCondition");U.util.initPartial(r,this)}static fromBinary(r,n){return new fu().fromBinary(r,n)}static fromJson(r,n){return new fu().fromJson(r,n)}static fromJsonString(r,n){return new fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(fu,r,n)}};S(fu,"runtime",U),S(fu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),S(fu,"fields",U.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:Hy,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Wy},{no:5,name:"subscription_filter_condition",kind:"message",T:dl,opt:!0}]));var Xy=fu,pu=class pu extends Re{constructor(r){super();S(this,"typeName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new pu().fromBinary(r,n)}static fromJson(r,n){return new pu().fromJson(r,n)}static fromJsonString(r,n){return new pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(pu,r,n)}};S(pu,"runtime",U),S(pu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),S(pu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var JL=pu,mu=class mu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldNames",[]);S(this,"externalFieldNames",[]);S(this,"requireFetchReasonsFieldNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new mu().fromBinary(r,n)}static fromJson(r,n){return new mu().fromJson(r,n)}static fromJsonString(r,n){return new mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(mu,r,n)}};S(mu,"runtime",U),S(mu,"typeName","wg.cosmo.node.v1.TypeField"),S(mu,"fields",U.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},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Up=mu,hu=class hu extends Re{constructor(r){super();S(this,"fieldName","");S(this,"typeName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new hu().fromBinary(r,n)}static fromJson(r,n){return new hu().fromJson(r,n)}static fromJsonString(r,n){return new hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(hu,r,n)}};S(hu,"runtime",U),S(hu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),S(hu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Zy=hu,yu=class yu extends Re{constructor(r){super();S(this,"fieldCoordinatesPath",[]);S(this,"fieldPath",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new yu().fromBinary(r,n)}static fromJson(r,n){return new yu().fromJson(r,n)}static fromJsonString(r,n){return new yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(yu,r,n)}};S(yu,"runtime",U),S(yu,"typeName","wg.cosmo.node.v1.FieldSetCondition"),S(yu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Zy,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var eN=yu,Nu=class Nu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"selectionSet","");S(this,"disableEntityResolver",!1);S(this,"conditions",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Nu().fromBinary(r,n)}static fromJson(r,n){return new Nu().fromJson(r,n)}static fromJsonString(r,n){return new Nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Nu,r,n)}};S(Nu,"runtime",U),S(Nu,"typeName","wg.cosmo.node.v1.RequiredField"),S(Nu,"fields",U.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:eN,repeated:!0}]));var Rd=Nu,Tu=class Tu extends Re{constructor(r){super();S(this,"interfaceTypeName","");S(this,"concreteTypeNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Tu().fromBinary(r,n)}static fromJson(r,n){return new Tu().fromJson(r,n)}static fromJsonString(r,n){return new Tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Tu,r,n)}};S(Tu,"runtime",U),S(Tu,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),S(Tu,"fields",U.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 kp=Tu,Eu=class Eu extends Re{constructor(r){super();S(this,"url");S(this,"method",Pd.GET);S(this,"header",{});S(this,"body");S(this,"query",[]);S(this,"urlEncodeBody",!1);S(this,"mtls");S(this,"baseUrl");S(this,"path");S(this,"httpProxyUrl");U.util.initPartial(r,this)}static fromBinary(r,n){return new Eu().fromBinary(r,n)}static fromJson(r,n){return new Eu().fromJson(r,n)}static fromJsonString(r,n){return new Eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Eu,r,n)}};S(Eu,"runtime",U),S(Eu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),S(Eu,"fields",U.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Ni},{no:2,name:"method",kind:"enum",T:U.getEnumType(Pd)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:lC}},{no:4,name:"body",kind:"message",T:Ni},{no:5,name:"query",kind:"message",T:cC,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:dC},{no:9,name:"base_url",kind:"message",T:Ni},{no:10,name:"path",kind:"message",T:Ni},{no:11,name:"http_proxy_url",kind:"message",T:Ni,opt:!0}]));var zL=Eu,gu=class gu extends Re{constructor(r){super();S(this,"statusCode",dn.zero);S(this,"typeName","");S(this,"injectStatusCodeIntoBody",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new gu().fromBinary(r,n)}static fromJson(r,n){return new gu().fromJson(r,n)}static fromJsonString(r,n){return new gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(gu,r,n)}};S(gu,"runtime",U),S(gu,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),S(gu,"fields",U.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 uZ=gu,Iu=class Iu extends Re{constructor(r){super();S(this,"fetch");S(this,"subscription");S(this,"federation");S(this,"upstreamSchema");S(this,"customScalarTypeFields",[]);S(this,"grpc");U.util.initPartial(r,this)}static fromBinary(r,n){return new Iu().fromBinary(r,n)}static fromJson(r,n){return new Iu().fromJson(r,n)}static fromJsonString(r,n){return new Iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Iu,r,n)}};S(Iu,"runtime",U),S(Iu,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),S(Iu,"fields",U.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:zL},{no:2,name:"subscription",kind:"message",T:fC},{no:3,name:"federation",kind:"message",T:pC},{no:4,name:"upstream_schema",kind:"message",T:uN},{no:6,name:"custom_scalar_type_fields",kind:"message",T:mC,repeated:!0},{no:7,name:"grpc",kind:"message",T:qp}]));var tN=Iu,vu=class vu extends Re{constructor(r){super();S(this,"mapping");S(this,"protoSchema","");S(this,"plugin");U.util.initPartial(r,this)}static fromBinary(r,n){return new vu().fromBinary(r,n)}static fromJson(r,n){return new vu().fromJson(r,n)}static fromJsonString(r,n){return new vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(vu,r,n)}};S(vu,"runtime",U),S(vu,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),S(vu,"fields",U.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:WL},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:rN}]));var qp=vu,_u=class _u extends Re{constructor(r){super();S(this,"repository","");S(this,"reference","");U.util.initPartial(r,this)}static fromBinary(r,n){return new _u().fromBinary(r,n)}static fromJson(r,n){return new _u().fromJson(r,n)}static fromJsonString(r,n){return new _u().fromJsonString(r,n)}static equals(r,n){return U.util.equals(_u,r,n)}};S(_u,"runtime",U),S(_u,"typeName","wg.cosmo.node.v1.ImageReference"),S(_u,"fields",U.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var HL=_u,Su=class Su extends Re{constructor(r){super();S(this,"name","");S(this,"version","");S(this,"imageReference");U.util.initPartial(r,this)}static fromBinary(r,n){return new Su().fromBinary(r,n)}static fromJson(r,n){return new Su().fromJson(r,n)}static fromJsonString(r,n){return new Su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Su,r,n)}};S(Su,"runtime",U),S(Su,"typeName","wg.cosmo.node.v1.PluginConfiguration"),S(Su,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:HL,opt:!0}]));var rN=Su,Ou=class Ou extends Re{constructor(r){super();S(this,"enabled",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ou().fromBinary(r,n)}static fromJson(r,n){return new Ou().fromJson(r,n)}static fromJsonString(r,n){return new Ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ou,r,n)}};S(Ou,"runtime",U),S(Ou,"typeName","wg.cosmo.node.v1.SSLConfiguration"),S(Ou,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var cZ=Ou,Du=class Du extends Re{constructor(r){super();S(this,"version",0);S(this,"service","");S(this,"operationMappings",[]);S(this,"entityMappings",[]);S(this,"typeFieldMappings",[]);S(this,"enumMappings",[]);S(this,"resolveMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Du().fromBinary(r,n)}static fromJson(r,n){return new Du().fromJson(r,n)}static fromJsonString(r,n){return new Du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Du,r,n)}};S(Du,"runtime",U),S(Du,"typeName","wg.cosmo.node.v1.GRPCMapping"),S(Du,"fields",U.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:eC,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:tC,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:nC,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:aC,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:XL,repeated:!0}]));var WL=Du,bu=class bu extends Re{constructor(r){super();S(this,"type",Ky.UNSPECIFIED);S(this,"lookupMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new bu().fromBinary(r,n)}static fromJson(r,n){return new bu().fromJson(r,n)}static fromJsonString(r,n){return new bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(bu,r,n)}};S(bu,"runtime",U),S(bu,"typeName","wg.cosmo.node.v1.LookupMapping"),S(bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType(Ky)},{no:2,name:"lookup_mapping",kind:"message",T:ZL},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var XL=bu,Au=class Au extends Re{constructor(r){super();S(this,"type","");S(this,"fieldMapping");U.util.initPartial(r,this)}static fromBinary(r,n){return new Au().fromBinary(r,n)}static fromJson(r,n){return new Au().fromJson(r,n)}static fromJsonString(r,n){return new Au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Au,r,n)}};S(Au,"runtime",U),S(Au,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),S(Au,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:nN}]));var ZL=Au,Ru=class Ru extends Re{constructor(r){super();S(this,"type",$y.UNSPECIFIED);S(this,"original","");S(this,"mapped","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ru().fromBinary(r,n)}static fromJson(r,n){return new Ru().fromJson(r,n)}static fromJsonString(r,n){return new Ru().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ru,r,n)}};S(Ru,"runtime",U),S(Ru,"typeName","wg.cosmo.node.v1.OperationMapping"),S(Ru,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType($y)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var eC=Ru,wu=class wu extends Re{constructor(r){super();S(this,"typeName","");S(this,"kind","");S(this,"key","");S(this,"rpc","");S(this,"request","");S(this,"response","");S(this,"requiredFieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new wu().fromBinary(r,n)}static fromJson(r,n){return new wu().fromJson(r,n)}static fromJsonString(r,n){return new wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(wu,r,n)}};S(wu,"runtime",U),S(wu,"typeName","wg.cosmo.node.v1.EntityMapping"),S(wu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9},{no:7,name:"required_field_mappings",kind:"message",T:rC,repeated:!0}]));var tC=wu,Pu=class Pu extends Re{constructor(r){super();S(this,"fieldMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Pu().fromBinary(r,n)}static fromJson(r,n){return new Pu().fromJson(r,n)}static fromJsonString(r,n){return new Pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Pu,r,n)}};S(Pu,"runtime",U),S(Pu,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),S(Pu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:nN},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var rC=Pu,Fu=class Fu extends Re{constructor(r){super();S(this,"type","");S(this,"fieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Fu().fromBinary(r,n)}static fromJson(r,n){return new Fu().fromJson(r,n)}static fromJsonString(r,n){return new Fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Fu,r,n)}};S(Fu,"runtime",U),S(Fu,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),S(Fu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:nN,repeated:!0}]));var nC=Fu,Lu=class Lu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");S(this,"argumentMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Lu().fromBinary(r,n)}static fromJson(r,n){return new Lu().fromJson(r,n)}static fromJsonString(r,n){return new Lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Lu,r,n)}};S(Lu,"runtime",U),S(Lu,"typeName","wg.cosmo.node.v1.FieldMapping"),S(Lu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:iC,repeated:!0}]));var nN=Lu,Cu=class Cu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Cu().fromBinary(r,n)}static fromJson(r,n){return new Cu().fromJson(r,n)}static fromJsonString(r,n){return new Cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Cu,r,n)}};S(Cu,"runtime",U),S(Cu,"typeName","wg.cosmo.node.v1.ArgumentMapping"),S(Cu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var iC=Cu,Bu=class Bu extends Re{constructor(r){super();S(this,"type","");S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Bu().fromBinary(r,n)}static fromJson(r,n){return new Bu().fromJson(r,n)}static fromJsonString(r,n){return new Bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Bu,r,n)}};S(Bu,"runtime",U),S(Bu,"typeName","wg.cosmo.node.v1.EnumMapping"),S(Bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:oC,repeated:!0}]));var aC=Bu,Uu=class Uu extends Re{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Uu().fromBinary(r,n)}static fromJson(r,n){return new Uu().fromJson(r,n)}static fromJsonString(r,n){return new Uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Uu,r,n)}};S(Uu,"runtime",U),S(Uu,"typeName","wg.cosmo.node.v1.EnumValueMapping"),S(Uu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var oC=Uu,ku=class ku extends Re{constructor(r){super();S(this,"consumerName","");S(this,"streamName","");S(this,"consumerInactiveThreshold",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ku().fromBinary(r,n)}static fromJson(r,n){return new ku().fromJson(r,n)}static fromJsonString(r,n){return new ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ku,r,n)}};S(ku,"runtime",U),S(ku,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),S(ku,"fields",U.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var iN=ku,qu=class qu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"subjects",[]);S(this,"streamConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new qu().fromBinary(r,n)}static fromJson(r,n){return new qu().fromJson(r,n)}static fromJsonString(r,n){return new qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(qu,r,n)}};S(qu,"runtime",U),S(qu,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),S(qu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:iN}]));var aN=qu,xu=class xu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"topics",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new xu().fromBinary(r,n)}static fromJson(r,n){return new xu().fromJson(r,n)}static fromJsonString(r,n){return new xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(xu,r,n)}};S(xu,"runtime",U),S(xu,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),S(xu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var oN=xu,Mu=class Mu extends Re{constructor(r){super();S(this,"engineEventConfiguration");S(this,"channels",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Mu().fromBinary(r,n)}static fromJson(r,n){return new Mu().fromJson(r,n)}static fromJsonString(r,n){return new Mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Mu,r,n)}};S(Mu,"runtime",U),S(Mu,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),S(Mu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var sN=Mu,ju=class ju extends Re{constructor(r){super();S(this,"providerId","");S(this,"type",oc.PUBLISH);S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ju().fromBinary(r,n)}static fromJson(r,n){return new ju().fromJson(r,n)}static fromJsonString(r,n){return new ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ju,r,n)}};S(ju,"runtime",U),S(ju,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),S(ju,"fields",U.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:U.getEnumType(oc)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var sc=ju,Vu=class Vu extends Re{constructor(r){super();S(this,"nats",[]);S(this,"kafka",[]);S(this,"redis",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Vu().fromBinary(r,n)}static fromJson(r,n){return new Vu().fromJson(r,n)}static fromJsonString(r,n){return new Vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Vu,r,n)}};S(Vu,"runtime",U),S(Vu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),S(Vu,"fields",U.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:aN,repeated:!0},{no:2,name:"kafka",kind:"message",T:oN,repeated:!0},{no:3,name:"redis",kind:"message",T:sN,repeated:!0}]));var Ld=Vu,Ku=class Ku extends Re{constructor(r){super();S(this,"data");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ku().fromBinary(r,n)}static fromJson(r,n){return new Ku().fromJson(r,n)}static fromJsonString(r,n){return new Ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ku,r,n)}};S(Ku,"runtime",U),S(Ku,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),S(Ku,"fields",U.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Ni}]));var sC=Ku,$u=class $u extends Re{constructor(r){super();S(this,"kind",ll.STATIC_CONFIGURATION_VARIABLE);S(this,"staticVariableContent","");S(this,"environmentVariableName","");S(this,"environmentVariableDefaultValue","");S(this,"placeholderVariableName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new $u().fromBinary(r,n)}static fromJson(r,n){return new $u().fromJson(r,n)}static fromJsonString(r,n){return new $u().fromJsonString(r,n)}static equals(r,n){return U.util.equals($u,r,n)}};S($u,"runtime",U),S($u,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),S($u,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(ll)},{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 Ni=$u,Gu=class Gu extends Re{constructor(r){super();S(this,"directiveName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Gu().fromBinary(r,n)}static fromJson(r,n){return new Gu().fromJson(r,n)}static fromJsonString(r,n){return new Gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Gu,r,n)}};S(Gu,"runtime",U),S(Gu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),S(Gu,"fields",U.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var uC=Gu,Qu=class Qu extends Re{constructor(r){super();S(this,"name","");S(this,"value","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Qu().fromBinary(r,n)}static fromJson(r,n){return new Qu().fromJson(r,n)}static fromJsonString(r,n){return new Qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Qu,r,n)}};S(Qu,"runtime",U),S(Qu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),S(Qu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var cC=Qu,Yu=class Yu extends Re{constructor(r){super();S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Yu().fromBinary(r,n)}static fromJson(r,n){return new Yu().fromJson(r,n)}static fromJsonString(r,n){return new Yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Yu,r,n)}};S(Yu,"runtime",U),S(Yu,"typeName","wg.cosmo.node.v1.HTTPHeader"),S(Yu,"fields",U.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ni,repeated:!0}]));var lC=Yu,Ju=class Ju extends Re{constructor(r){super();S(this,"key");S(this,"cert");S(this,"insecureSkipVerify",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ju().fromBinary(r,n)}static fromJson(r,n){return new Ju().fromJson(r,n)}static fromJsonString(r,n){return new Ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ju,r,n)}};S(Ju,"runtime",U),S(Ju,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),S(Ju,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Ni},{no:2,name:"cert",kind:"message",T:Ni},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var dC=Ju,zu=class zu extends Re{constructor(r){super();S(this,"enabled",!1);S(this,"url");S(this,"useSSE");S(this,"protocol");S(this,"websocketSubprotocol");U.util.initPartial(r,this)}static fromBinary(r,n){return new zu().fromBinary(r,n)}static fromJson(r,n){return new zu().fromJson(r,n)}static fromJsonString(r,n){return new zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zu,r,n)}};S(zu,"runtime",U),S(zu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),S(zu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Ni},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:U.getEnumType(Qs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:U.getEnumType(Ys),opt:!0}]));var fC=zu,Hu=class Hu extends Re{constructor(r){super();S(this,"enabled",!1);S(this,"serviceSdl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Hu().fromBinary(r,n)}static fromJson(r,n){return new Hu().fromJson(r,n)}static fromJsonString(r,n){return new Hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hu,r,n)}};S(Hu,"runtime",U),S(Hu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),S(Hu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var pC=Hu,Wu=class Wu extends Re{constructor(r){super();S(this,"key","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Wu().fromBinary(r,n)}static fromJson(r,n){return new Wu().fromJson(r,n)}static fromJsonString(r,n){return new Wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Wu,r,n)}};S(Wu,"runtime",U),S(Wu,"typeName","wg.cosmo.node.v1.InternedString"),S(Wu,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var uN=Wu,Xu=class Xu extends Re{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xu().fromBinary(r,n)}static fromJson(r,n){return new Xu().fromJson(r,n)}static fromJsonString(r,n){return new Xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xu,r,n)}};S(Xu,"runtime",U),S(Xu,"typeName","wg.cosmo.node.v1.SingleTypeField"),S(Xu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var mC=Xu,Zu=class Zu extends Re{constructor(r){super();S(this,"fieldPath",[]);S(this,"json","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zu().fromBinary(r,n)}static fromJson(r,n){return new Zu().fromJson(r,n)}static fromJsonString(r,n){return new Zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zu,r,n)}};S(Zu,"runtime",U),S(Zu,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),S(Zu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var cN=Zu,Ca=class Ca extends Re{constructor(r){super();S(this,"and",[]);S(this,"in");S(this,"not");S(this,"or",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ca().fromBinary(r,n)}static fromJson(r,n){return new Ca().fromJson(r,n)}static fromJsonString(r,n){return new Ca().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ca,r,n)}};S(Ca,"runtime",U),S(Ca,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),S(Ca,"fields",U.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Ca,repeated:!0},{no:2,name:"in",kind:"message",T:cN,opt:!0},{no:3,name:"not",kind:"message",T:Ca,opt:!0},{no:4,name:"or",kind:"message",T:Ca,repeated:!0}]));var dl=Ca,ec=class ec extends Re{constructor(r){super();S(this,"operations",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new ec().fromBinary(r,n)}static fromJson(r,n){return new ec().fromJson(r,n)}static fromJsonString(r,n){return new ec().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ec,r,n)}};S(ec,"runtime",U),S(ec,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),S(ec,"fields",U.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:hC,repeated:!0}]));var lZ=ec,tc=class tc extends Re{constructor(r){super();S(this,"request");S(this,"client");U.util.initPartial(r,this)}static fromBinary(r,n){return new tc().fromBinary(r,n)}static fromJson(r,n){return new tc().fromJson(r,n)}static fromJsonString(r,n){return new tc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tc,r,n)}};S(tc,"runtime",U),S(tc,"typeName","wg.cosmo.node.v1.Operation"),S(tc,"fields",U.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:yC},{no:2,name:"client",kind:"message",T:EC}]));var hC=tc,rc=class rc extends Re{constructor(r){super();S(this,"operationName","");S(this,"query","");S(this,"extensions");U.util.initPartial(r,this)}static fromBinary(r,n){return new rc().fromBinary(r,n)}static fromJson(r,n){return new rc().fromJson(r,n)}static fromJsonString(r,n){return new rc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(rc,r,n)}};S(rc,"runtime",U),S(rc,"typeName","wg.cosmo.node.v1.OperationRequest"),S(rc,"fields",U.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:NC}]));var yC=rc,nc=class nc extends Re{constructor(r){super();S(this,"persistedQuery");U.util.initPartial(r,this)}static fromBinary(r,n){return new nc().fromBinary(r,n)}static fromJson(r,n){return new nc().fromJson(r,n)}static fromJsonString(r,n){return new nc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nc,r,n)}};S(nc,"runtime",U),S(nc,"typeName","wg.cosmo.node.v1.Extension"),S(nc,"fields",U.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:TC}]));var NC=nc,ic=class ic extends Re{constructor(r){super();S(this,"sha256Hash","");S(this,"version",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ic().fromBinary(r,n)}static fromJson(r,n){return new ic().fromJson(r,n)}static fromJsonString(r,n){return new ic().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ic,r,n)}};S(ic,"runtime",U),S(ic,"typeName","wg.cosmo.node.v1.PersistedQuery"),S(ic,"fields",U.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var TC=ic,ac=class ac extends Re{constructor(r){super();S(this,"name","");S(this,"version","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ac().fromBinary(r,n)}static fromJson(r,n){return new ac().fromJson(r,n)}static fromJsonString(r,n){return new ac().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ac,r,n)}};S(ac,"runtime",U),S(ac,"typeName","wg.cosmo.node.v1.ClientInfo"),S(ac,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var EC=ac;d();p();f();function gC(e){return new Error(`Normalization failed to return a ${e}.`)}function dZ(e){return new Error(`Invalid router compatibility version "${e}".`)}d();p();f();var xp=Ln(t_(),1);function F$e(e){if(!e.conditions)return;let t=[];for(let r of e.conditions){let n=[];for(let i of r.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);n.push(new Zy({fieldName:a[1],typeName:a[0]}))}t.push(new eN({fieldCoordinatesPath:n,fieldPath:r.fieldPath}))}return t}function IC(e,t,r){if(e)for(let n of e){let i=F$e(n);t.push(new Rd(q(q({typeName:r,fieldName:n.fieldName,selectionSet:n.selectionSet},n.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function vC(e){switch(e){case"publish":return oc.PUBLISH;case"request":return oc.REQUEST;case"subscribe":return oc.SUBSCRIBE}}function fZ(e){var r;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ld({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let n of e.values()){let i=n.typeName,a=[...n.fieldNames],o=new Up({fieldNames:a,typeName:i});if(n.externalFieldNames&&n.externalFieldNames.size>0&&(o.externalFieldNames=[...n.externalFieldNames]),n.requireFetchReasonsFieldNames&&n.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...n.requireFetchReasonsFieldNames]),n.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),n.entityInterfaceConcreteTypeNames){let h=new kp({interfaceTypeName:i,concreteTypeNames:[...n.entityInterfaceConcreteTypeNames]});n.isInterfaceObject?t.interfaceObjects.push(h):t.entityInterfaces.push(h)}IC(n.keys,t.keys,i),IC(n.provides,t.provides,i),IC(n.requires,t.requires,i);let u=[],l=[],m=[];for(let h of(r=n.events)!=null?r:[])switch(h.providerType){case xp.PROVIDER_TYPE_KAFKA:{l.push(new oN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),topics:h.topics}));break}case xp.PROVIDER_TYPE_NATS:{u.push(new aN(q({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),subjects:h.subjects},h.streamConfiguration?{streamConfiguration:new iN({consumerInactiveThreshold:h.streamConfiguration.consumerInactiveThreshold,consumerName:h.streamConfiguration.consumerName,streamName:h.streamConfiguration.streamName})}:{})));break}case xp.PROVIDER_TYPE_REDIS:{m.push(new sN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),channels:h.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...m)}return t}function pZ(e){var r,n;let t=[];for(let i of e){let a=i.argumentNames.map(h=>new Hy({name:h,sourceType:wd.FIELD_ARGUMENT})),o=new Xy({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((r=i.requiredScopes)==null?void 0:r.map(h=>new Fd({requiredAndScopes:h})))||[],l=((n=i.requiredScopesByOR)==null?void 0:n.map(h=>new Fd({requiredAndScopes:h})))||[],m=u.length>0;if((i.requiresAuthentication||m)&&(o.authorizationConfiguration=new Wy({requiresAuthentication:i.requiresAuthentication||m,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let h=new dl;__(h,i.subscriptionFilterCondition),o.subscriptionFilterCondition=h}t.push(o)}return t}function __(e,t){if(t.and!==void 0){let r=[];for(let n of t.and){let i=new dl;__(i,n),r.push(i)}e.and=r;return}if(t.in!==void 0){e.in=new cN({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new dl,__(e.not,t.not);return}if(t.or!==void 0){let r=[];for(let n of t.or){let i=new dl;__(i,n),r.push(i)}e.or=r;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function L$e(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new Yy({fieldWeights:[...e.fieldWeights.values()].map(t=>new Jy(G(q({},t),{argumentWeights:Object.fromEntries(t.argumentWeights),directiveArgumentWeights:Object.fromEntries(t.directiveArgumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new zy(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Cd;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Cd||(Cd={}));var C$e=(e,t)=>{let r=stringHash(t);return e.stringStorage[r]=t,new uN({key:r})},B$e=e=>{switch(e){case"ws":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},U$e=e=>{switch(e){case"auto":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},hZ=function(e){if(!Mp.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw dZ(e.routerCompatibilityVersion);let t=new Bp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let r of e.subgraphs){if(!r.configurationDataByTypeName)throw gC("ConfigurationDataByTypeName");if(!r.schema)throw gC("GraphQLSchema");let n={enabled:!0},i=C$e(t,I7((0,mZ.lexicographicSortSchema)(r.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:m,provides:h,requires:N,rootNodes:T}=fZ(r.configurationDataByTypeName),D;switch(r.kind){case Cd.Standard:{n.enabled=!0,n.protocol=B$e(r.subscriptionProtocol||"ws"),n.websocketSubprotocol=U$e(r.websocketSubprotocol||"auto"),n.url=new Ni({kind:ll.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:r.subscriptionUrl||r.url});break}case Cd.Plugin:{D=new qp({mapping:r.mapping,protoSchema:r.protoSchema,plugin:new rN({name:r.name,version:r.version,imageReference:r.imageReference})});break}case Cd.GRPC:{D=new qp({mapping:r.mapping,protoSchema:r.protoSchema});break}}let R,C,M;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=cl.PUBSUB,M=new Ld({kafka:u.kafka,nats:u.nats,redis:u.redis});let ee=_e=>Mp.ROOT_TYPE_NAMES.has(_e.typeName),ae=0,Ne=0;for(;ae({id:r.id,name:r.name,routingUrl:r.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Mp.COMPOSITION_VERSION}`})};d();p();f();var Ud=Ln(ve());function yZ(e){let t;try{t=(0,Ud.parse)(e.schema)}catch(r){throw new Error(`could not parse schema for Graph ${e.name}: ${r}`)}return{definitions:t,name:e.name,url:e.url}}function k$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(yZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Ud.print)(t.federatedGraphAST)}}function q$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(yZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return hZ({federatedClientSDL:(0,Ud.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Ud.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((n,i)=>{var l,m;let a=t.subgraphConfigBySubgraphName.get(n.name),o=a==null?void 0:a.schema,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Cd.Standard,id:`${i}`,name:n.name,url:bL(n.url),sdl:n.schema,subscriptionUrl:bL((l=n.subscription_url)!=null?l:n.url),subscriptionProtocol:(m=n.subscription_protocol)!=null?m:"ws",websocketSubprotocol:n.subscription_protocol==="ws"?n.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return im(x$e);})(); +`+m7(e.errors,t):p7(e);if(t.includes(e))return"[Circular]";let r=[...t,e];if($Ke(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:r_(n,r)}else if(Array.isArray(e))return m7(e,r);return GKe(e,r)}function $Ke(e){return typeof e.toJSON=="function"}function GKe(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>3?"["+QKe(e)+"]":"{ "+r.map(([i,a])=>i+": "+r_(a,t)).join(", ")+" }"}function m7(e,t){if(e.length===0)return"[]";if(t.length>3)return"[Array]";let r=e.length,n=[];for(let i=0;iYKe.includes(t))}function wp(e,t){t!=null&&t.originalError&&!(t.originalError instanceof Error)&&JKe(t.originalError)&&(t.originalError=wp(t.originalError.message,t.originalError));let r=ky.GraphQLError,n=ky.versionInfo.major>=16?new r(e,t):new r(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);return t!=null&&t.coordinate&&n.coordinate==null&&Object.defineProperties(n,{coordinate:{value:t.coordinate,enumerable:!0,configurable:!0}}),n}d();p();f();function h7(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function y7(e){return typeof e=="object"&&e!==null}function N7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T7(e,t,r={}){var o;let n={},a=((o=t.arguments)!=null?o:[]).reduce((u,l)=>Q(q({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:m}of e.args){let h=a[u];if(!h){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was not provided.`,{nodes:[t]});continue}let N=h.value,T=N.kind===ho.Kind.NULL;if(N.kind===ho.Kind.VARIABLE){let R=N.name.value;if(r==null||!N7(r,R)){if(m!==void 0)n[u]=m;else if((0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of required type "${sl(l)}" was provided the variable "$${R}" which was not provided a runtime value.`,{nodes:[N]});continue}T=r[R]==null}if(T&&(0,ho.isNonNullType)(l))throw wp(`Argument "${u}" of non-null type "${sl(l)}" must not be null.`,{nodes:[N]});let D=(0,ho.valueFromAST)(N,l,r);if(D===void 0)throw wp(`Argument "${u}" has invalid value ${(0,ho.print)(N)}.`,{nodes:[N]});n[u]=D}return n}d();p();f();function Pp(e){let t=new WeakMap;return function(n){let i=t.get(n);if(i===void 0){let a=e(n);return t.set(n,a),a}return i}}function E7(e,t,r=["directives"]){var o;let n={};if(e.extensions){let u=e.extensions;for(let l of r)u=u==null?void 0:u[l];if(u!=null)for(let l in u){let m=u[l],h=l;if(Array.isArray(m))for(let N of m){let T=n[h];T||(T=[],n[h]=T),T.push(N)}else{let N=n[h];N||(N=[],n[h]=N),N.push(m)}}}let i=Pp(u=>JSON.stringify(u)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let u of a)if((o=u.directives)!=null&&o.length)for(let l of u.directives){let m=l.name.value,h=n[m];h||(h=[],n[m]=h);let N=t==null?void 0:t.getDirective(m),T={};if(N&&(T=T7(N,l)),l.arguments)for(let D of l.arguments){let R=D.name.value;if(T[R]==null){let C=N==null?void 0:N.args.find(M=>M.name===R);C&&(T[R]=(0,n_.valueFromAST)(D.value,C.type))}T[R]==null&&(T[R]=(0,n_.valueFromASTUntyped)(D.value))}if(a.length>0&&h.length>0){let D=i(T);if(h.some(R=>i(R)===D))continue}h.push(T)}return n}function AL(e,t=["directives"]){let r=E7(e,void 0,t);return Object.entries(r).map(([n,i])=>i==null?void 0:i.map(a=>({name:n,args:a}))).flat(1/0).filter(Boolean)}d();p();f();var rt=Ln(_e(),1);d();p();f();var rs=Ln(_e(),1);function ns(e){if((0,rs.isNonNullType)(e)){let t=ns(e.ofType);if(t.kind===rs.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${sl(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rs.Kind.NON_NULL_TYPE,type:t}}else if((0,rs.isListType)(e))return{kind:rs.Kind.LIST_TYPE,type:ns(e.ofType)};return{kind:rs.Kind.NAMED_TYPE,name:{kind:rs.Kind.NAME,value:e.name}}}d();p();f();var wn=Ln(_e(),1);d();p();f();var yo=Ln(_e(),1);function Ad(e){if(e===null)return{kind:yo.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let r of e){let n=Ad(r);n!=null&&t.push(n)}return{kind:yo.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return Ad(e.toJSON());let t=[];for(let r in e){let n=e[r],i=Ad(n);i&&t.push({kind:yo.Kind.OBJECT_FIELD,name:{kind:yo.Kind.NAME,value:r},value:i})}return{kind:yo.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:yo.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:yo.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return zKe.test(t)?{kind:yo.Kind.INT,value:t}:{kind:yo.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:yo.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var zKe=/^-?(?:0|[1-9][0-9]*)$/;function ul(e,t){if((0,wn.isNonNullType)(t)){let r=ul(e,t.ofType);return(r==null?void 0:r.kind)===wn.Kind.NULL?null:r}if(e===null)return{kind:wn.Kind.NULL};if(e===void 0)return null;if((0,wn.isListType)(t)){let r=t.ofType;if(h7(e)){let n=[];for(let i of e){let a=ul(i,r);a!=null&&n.push(a)}return{kind:wn.Kind.LIST,values:n}}return ul(e,r)}if((0,wn.isInputObjectType)(t)){if(!y7(e))return null;let r=[];for(let n of Object.values(t.getFields())){let i=ul(e[n.name],n.type);i&&r.push({kind:wn.Kind.OBJECT_FIELD,name:{kind:wn.Kind.NAME,value:n.name},value:i})}return{kind:wn.Kind.OBJECT,fields:r}}if((0,wn.isLeafType)(t)){let r=t.serialize(e);return r==null?null:(0,wn.isEnumType)(t)?{kind:wn.Kind.ENUM,value:r}:t.name==="ID"&&typeof r=="string"&&HKe.test(r)?{kind:wn.Kind.INT,value:r}:Ad(r)}console.assert(!1,"Unexpected input type: "+sl(t))}var HKe=/^-?(?:0|[1-9][0-9]*)$/;d();p();f();var g7=Ln(_e(),1);function Xi(e){var t;if((t=e.astNode)!=null&&t.description)return Q(q({},e.astNode.description),{block:!0});if(e.description)return{kind:g7.Kind.STRING,value:e.description,block:!0}}d();p();f();var zAt=Pp(function(t){let r=WKe(t);return new Set([...r].map(n=>n.name))}),WKe=Pp(function(t){let r=RL(t);return new Set(r.values())}),RL=Pp(function(t){let r=new Map,n=t.getQueryType();n&&r.set("query",n);let i=t.getMutationType();i&&r.set("mutation",i);let a=t.getSubscriptionType();return a&&r.set("subscription",a),r});function XKe(e,t={}){let r=t.pathToDirectivesInExtensions,n=e.getTypeMap(),i=ZKe(e,r),a=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,rt.isSpecifiedDirective)(u)||a.push(e$e(u,e,r));for(let u in n){let l=n[u],m=(0,rt.isSpecifiedScalarType)(l),h=(0,rt.isIntrospectionType)(l);if(!(m||h))if((0,rt.isObjectType)(l))a.push(t$e(l,e,r));else if((0,rt.isInterfaceType)(l))a.push(r$e(l,e,r));else if((0,rt.isUnionType)(l))a.push(n$e(l,e,r));else if((0,rt.isInputObjectType)(l))a.push(i$e(l,e,r));else if((0,rt.isEnumType)(l))a.push(a$e(l,e,r));else if((0,rt.isScalarType)(l))a.push(o$e(l,e,r));else throw new Error(`Unknown type ${l}.`)}return{kind:rt.Kind.DOCUMENT,definitions:a}}function I7(e,t={}){let r=XKe(e,t);return(0,rt.print)(r)}function ZKe(e,t){let r=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),n=[];if(e.astNode!=null&&n.push(e.astNode),e.extensionASTNodes!=null)for(let m of e.extensionASTNodes)n.push(m);for(let m of n)if(m.operationTypes)for(let h of m.operationTypes)r.set(h.operation,h);let i=RL(e);for(let[m,h]of r){let N=i.get(m);if(N!=null){let T=ns(N);h!=null?h.type=T:r.set(m,{kind:rt.Kind.OPERATION_TYPE_DEFINITION,operation:m,type:T})}}let a=[...r.values()].filter(f7),o=is(e,e,t);if(!a.length&&!o.length)return null;let u={kind:a.length?rt.Kind.SCHEMA_DEFINITION:rt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=Xi(e);return l&&(u.description=l),u}function e$e(e,t,r){var n,i;return{kind:rt.Kind.DIRECTIVE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:(n=e.args)==null?void 0:n.map(a=>v7(a,t,r)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:rt.Kind.NAME,value:a})))||[]}}function is(e,t,r){let n=[],i=AL(e,r),a;i!=null&&(a=S7(t,i));let o=null,u=null,l=null;if(a!=null&&(n=a.filter(m=>rt.specifiedDirectives.every(h=>h.name!==m.name.value)),o=a.find(m=>m.name.value==="deprecated"),u=a.find(m=>m.name.value==="specifiedBy"),l=a.find(m=>m.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=c$e(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&u==null){let h={url:e.specifiedByUrl||e.specifiedByURL};u=qy("specifiedBy",h)}return e.isOneOf&&l==null&&(l=qy("oneOf")),o!=null&&n.push(o),u!=null&&n.push(u),l!=null&&n.push(l),n}function v7(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),defaultValue:e.defaultValue!==void 0&&(n=ul(e.defaultValue,e.type))!=null?n:void 0,directives:is(e,t,r)}}function t$e(e,t,r){return{kind:rt.Kind.OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>_7(n,t,r)),interfaces:Object.values(e.getInterfaces()).map(n=>ns(n)),directives:is(e,t,r)}}function r$e(e,t,r){let n={kind:rt.Kind.INTERFACE_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>_7(i,t,r)),directives:is(e,t,r)};return"getInterfaces"in e&&(n.interfaces=Object.values(e.getInterfaces()).map(i=>ns(i))),n}function n$e(e,t,r){return{kind:rt.Kind.UNION_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r),types:e.getTypes().map(n=>ns(n))}}function i$e(e,t,r){return{kind:rt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(n=>s$e(n,t,r)),directives:is(e,t,r)}}function a$e(e,t,r){return{kind:rt.Kind.ENUM_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(n=>u$e(n,t,r)),directives:is(e,t,r)}}function o$e(e,t,r){let n=AL(e,r),i=S7(t,n),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(qy("specifiedBy",o))}return{kind:rt.Kind.SCALAR_TYPE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:i}}function _7(e,t,r){return{kind:rt.Kind.FIELD_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},arguments:e.args.map(n=>v7(n,t,r)),type:ns(e.type),directives:is(e,t,r)}}function s$e(e,t,r){var n;return{kind:rt.Kind.INPUT_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},type:ns(e.type),directives:is(e,t,r),defaultValue:(n=ul(e.defaultValue,e.type))!=null?n:void 0}}function u$e(e,t,r){return{kind:rt.Kind.ENUM_VALUE_DEFINITION,description:Xi(e),name:{kind:rt.Kind.NAME,value:e.name},directives:is(e,t,r)}}function c$e(e){return qy("deprecated",{reason:e},rt.GraphQLDeprecatedDirective)}function qy(e,t,r){let n=[];for(let i in t){let a=t[i],o;if(r!=null){let u=r.args.find(l=>l.name===i);u&&(o=ul(a,u.type))}o==null&&(o=Ad(a)),o!=null&&n.push({kind:rt.Kind.ARGUMENT,name:{kind:rt.Kind.NAME,value:i},value:o})}return{kind:rt.Kind.DIRECTIVE,name:{kind:rt.Kind.NAME,value:e},arguments:n}}function S7(e,t){let r=[];for(let{name:n,args:i}of t){let a=e==null?void 0:e.getDirective(n);r.push(qy(n,i,a))}return r}var Mp=Ln(t_(),1);d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();d();p();f();function Ir(e,t){if(!e)throw new Error(t)}var l$e=34028234663852886e22,d$e=-34028234663852886e22,f$e=4294967295,p$e=2147483647,m$e=-2147483648;function Fp(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>p$e||ef$e||e<0)throw new Error("invalid uint 32: "+e)}function i_(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>l$e||e({no:i.no,name:i.name,localName:e[i.no]})),n)}function PL(e,t,r){let n=Object.create(null),i=Object.create(null),a=[];for(let o of t){let u=A7(o);a.push(u),n[o.name]=u,i[o.no]=u}return{typeName:e,values:a,findName(o){return n[o]},findNumber(o){return i[o]}}}function b7(e,t,r){let n={};for(let i of t){let a=A7(i);n[a.localName]=a.no,n[a.no]=a.localName}return wL(n,e,t,r),n}function A7(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}d();p();f();d();p();f();var Pe=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){let n=this.getType(),i=n.runtime.bin,a=i.makeReadOptions(r);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,r){let n=this.getType(),i=n.runtime.json,a=i.makeReadOptions(r);return i.readMessage(n,t,a,this),this}fromJsonString(t,r){let n;try{n=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(n,r)}toBinary(t){let r=this.getType(),n=r.runtime.bin,i=n.makeWriteOptions(t),a=i.writerFactory();return n.writeMessage(this,a,i),a.finish()}toJson(t){let r=this.getType(),n=r.runtime.json,i=n.makeWriteOptions(t);return n.writeMessage(this,i)}toJsonString(t){var r;let n=this.toJson(t);return JSON.stringify(n,null,(r=t==null?void 0:t.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function R7(e,t,r,n){var i;let a=(i=n==null?void 0:n.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[a];return Object.setPrototypeOf(o.prototype,new Pe),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(r),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}d();p();f();d();p();f();d();p();f();d();p();f();function P7(){let e=0,t=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(r&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>a,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(r.push(l),!u)return}let n=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(r.push((i?n|128:n)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,u=!!(o>>>7),l=(u?o|128:o)&255;if(r.push(l),!u)return}r.push(t>>>31&1)}}var a_=4294967296;function FL(e){let t=e[0]==="-";t&&(e=e.slice(1));let r=1e6,n=0,i=0;function a(o,u){let l=Number(e.slice(o,u));i*=r,n=n*r+l,n>=a_&&(i=i+(n/a_|0),n=n%a_)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?L7(n,i):CL(n,i)}function F7(e,t){let r=CL(e,t),n=r.hi&2147483648;n&&(r=L7(r.lo,r.hi));let i=LL(r.lo,r.hi);return n?"-"+i:i}function LL(e,t){if({lo:e,hi:t}=h$e(e,t),t<=2097151)return String(a_*t+e);let r=e&16777215,n=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=r+n*6777216+i*6710656,o=n+i*8147497,u=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+w7(o)+w7(a)}function h$e(e,t){return{lo:e>>>0,hi:t>>>0}}function CL(e,t){return{lo:e|0,hi:t|0}}function L7(e,t){return t=~t,e?e=~e+1:t+=1,CL(e,t)}var w7=e=>{let t=String(e);return"0000000".slice(t.length)+t};function BL(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function C7(){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 r=5;e&128&&r<10;r++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function y$e(){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 E!="object"||typeof E.env!="object"||E.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let m=typeof l=="bigint"?l:BigInt(l);if(m>a||mu||mIr(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),n=i=>Ir(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),r(i),FL(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),n(i),FL(i)},dec(i,a){return F7(i,a)},uDec(i,a){return LL(i,a)}}}var dn=y$e();d();p();f();var me;(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"})(me||(me={}));var No;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(No||(No={}));function $s(e,t,r){if(t===r)return!0;if(e==me.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(xy(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Fp(t),BL(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 r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){i_(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){xy(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){Fp(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return Fp(t),t=(t<<1^t>>31)>>>0,BL(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=dn.enc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),i=dn.uEnc(t);return n.setInt32(0,i.lo,!0),n.setInt32(4,i.hi,!0),this.raw(r)}int64(t){let r=dn.enc(t);return o_(r.lo,r.hi,this.buf),this}sint64(t){let r=dn.enc(t),n=r.hi>>31,i=r.lo<<1^n,a=(r.hi<<1|r.lo>>>31)^n;return o_(i,a,this.buf),this}uint64(t){let r=dn.uEnc(t);return o_(r.lo,r.hi,this.buf),this}},c_=class{constructor(t,r){this.varint64=P7,this.uint32=C7,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r!=null?r:new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t,r){let n=this.pos;switch(t){case en.Varint:for(;this.buf[this.pos++]&128;);break;case en.Bit64:this.pos+=4;case en.Bit32:this.pos+=4;break;case en.LengthDelimited:let i=this.uint32();this.pos+=i;break;case en.StartGroup:for(;;){let[a,o]=this.tag();if(o===en.EndGroup){if(r!==void 0&&a!==r)throw new Error("invalid end group tag");break}this.skip(o,a)}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 dn.dec(...this.varint64())}uint64(){return dn.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,dn.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return dn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return dn.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(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}};function B7(e,t,r,n){let i;return{typeName:t,extendee:r,get field(){if(!i){let a=typeof n=="function"?n():n;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function l_(e){let t=e.field.localName,r=Object.create(null);return r[t]=N$e(e),[r,()=>r[t]]}function N$e(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 To(t.T,t.L);case"message":let r=t.T,n=new r;return r.fieldWrapper?r.fieldWrapper.unwrapField(n):n;case"map":throw"map fields are not allowed to be extensions"}}function U7(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let r=e.length-1;r>=0;--r)if(e[r].no==t.no)return[e[r]];return[]}return e.filter(r=>r.no===t.no)}d();p();f();d();p();f();var Gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d_=[];for(let e=0;e>4,o=a,i=2;break;case 2:r[n++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:r[n++]=(o&3)<<6|a,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,i=0;for(let a=0;a>2],i=(n&3)<<4,r=1;break;case 1:t+=Gs[i|n>>4],i=(n&15)<<2,r=2;break;case 2:t+=Gs[i|n>>6],t+=Gs[n&63],r=0;break}return r&&(t+=Gs[i],t+="=",r==1&&(t+="=")),t}};d();p();f();function k7(e,t,r){x7(t,e);let n=t.runtime.bin.makeReadOptions(r),i=U7(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=l_(t);for(let u of i)t.runtime.bin.readField(a,n.readerFactory(u.data),t.field,u.wireType,n);return o()}function q7(e,t,r,n){x7(t,e);let i=t.runtime.bin.makeReadOptions(n),a=t.runtime.bin.makeWriteOptions(n);if(kL(e,t)){let m=e.getType().runtime.bin.listUnknownFields(e).filter(h=>h.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let h of m)e.getType().runtime.bin.onUnknownField(e,h.no,h.wireType,h.data)}let o=a.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,r,o,a);let l=i.readerFactory(o.finish());for(;l.posn.no==t.field.no)}function x7(e,t){Ir(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}d();p();f();function f_(e,t){let r=e.localName;if(e.repeated)return t[r].length>0;if(e.oneof)return t[e.oneof.localName].case===r;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[r]!==void 0:e.kind=="enum"?t[r]!==e.T.values[0].no:!s_(e.T,t[r]);case"message":return t[r]!==void 0;case"map":return Object.keys(t[r]).length>0}}function qL(e,t){let r=e.localName,n=!e.opt&&!e.req;if(e.repeated)t[r]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[r]={};break;case"enum":t[r]=n?e.T.values[0].no:void 0;break;case"scalar":t[r]=n?To(e.T,e.L):void 0;break;case"message":t[r]=void 0;break}}d();p();f();d();p();f();function Eo(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Pe.prototype).every(n=>n in e&&typeof e[n]=="function"))return!1;let r=e.getType();return r===null||typeof r!="function"||!("typeName"in r)||typeof r.typeName!="string"?!1:t===void 0?!0:r.typeName==t.typeName}function p_(e,t){return Eo(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var wRt={"google.protobuf.DoubleValue":me.DOUBLE,"google.protobuf.FloatValue":me.FLOAT,"google.protobuf.Int64Value":me.INT64,"google.protobuf.UInt64Value":me.UINT64,"google.protobuf.Int32Value":me.INT32,"google.protobuf.UInt32Value":me.UINT32,"google.protobuf.BoolValue":me.BOOL,"google.protobuf.StringValue":me.STRING,"google.protobuf.BytesValue":me.BYTES};var M7={ignoreUnknownFields:!1},j7={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function T$e(e){return e?Object.assign(Object.assign({},M7),e):M7}function E$e(e){return e?Object.assign(Object.assign({},j7),e):j7}var y_=Symbol(),m_=Symbol();function $7(){return{makeReadOptions:T$e,makeWriteOptions:E$e,readMessage(e,t,r,n){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${as(t)}`);n=n!=null?n:new e;let i=new Map,a=r.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 m=i.get(l.oneof);if(m!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${m}", "${o}"`);i.set(l.oneof,o)}V7(n,u,l,r,e)}else{let m=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let h=a.findExtension(o.substring(1,o.length-1));if(h&&h.extendee.typeName==e.typeName){m=!0;let[N,T]=l_(h);V7(N,u,h.field,r,h),q7(n,h,T(),r)}}if(!m&&!r.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return n},writeMessage(e,t){let r=e.getType(),n={},i;try{for(i of r.fields.byNumber()){if(!f_(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!I$e(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=K7(i,o,t);u!==void 0&&(n[t.useProtoFieldName?i.name:i.jsonName]=u)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of r.runtime.bin.listUnknownFields(e)){let u=a.findExtensionFor(r.typeName,o.no);if(u&&kL(e,u)){let l=k7(e,u,t),m=K7(u.field,l,t);m!==void 0&&(n[u.field.jsonName]=m)}}}catch(a){let o=i?`cannot encode field ${r.typeName}.${i.name} to JSON`:`cannot encode message ${r.typeName} to JSON`,u=a instanceof Error?a.message:String(a);throw new Error(o+(u.length>0?`: ${u}`:""))}return n},readScalar(e,t,r){return My(e,t,r!=null?r:No.BIGINT,!0)},writeScalar(e,t,r){if(t!==void 0&&(r||s_(e,t)))return h_(e,t)},debug:as}}function as(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 V7(e,t,r,n,i){let a=r.localName;if(r.repeated){if(Ir(r.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`);switch(r.kind){case"message":o.push(r.T.fromJson(u,n));break;case"enum":let l=xL(r.T,u,n.ignoreUnknownFields,!0);l!==m_&&o.push(l);break;case"scalar":try{o.push(My(r.T,u,r.L,!0))}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(u)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}}else if(r.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`);let o=e[a];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${r.name} from JSON: map value null`);let m;try{m=g$e(r.K,u)}catch(h){let N=`cannot decode map key for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw h instanceof Error&&h.message.length>0&&(N+=`: ${h.message}`),new Error(N)}switch(r.V.kind){case"message":o[m]=r.V.T.fromJson(l,n);break;case"enum":let h=xL(r.V.T,l,n.ignoreUnknownFields,!0);h!==m_&&(o[m]=h);break;case"scalar":try{o[m]=My(r.V.T,l,No.BIGINT,!0)}catch(N){let T=`cannot decode map value for field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw N instanceof Error&&N.message.length>0&&(T+=`: ${N.message}`),new Error(T)}break}}}else switch(r.oneof&&(e=e[r.oneof.localName]={case:a},a="value"),r.kind){case"message":let o=r.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[a];Eo(u)?u.fromJson(t,n):(e[a]=u=o.fromJson(t,n),o.fieldWrapper&&!r.oneof&&(e[a]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=xL(r.T,t,n.ignoreUnknownFields,!1);switch(l){case y_:qL(r,e);break;case m_:break;default:e[a]=l;break}break;case"scalar":try{let m=My(r.T,t,r.L,!1);switch(m){case y_:qL(r,e);break;default:e[a]=m;break}}catch(m){let h=`cannot decode field ${i.typeName}.${r.name} from JSON: ${as(t)}`;throw m instanceof Error&&m.message.length>0&&(h+=`: ${m.message}`),new Error(h)}break}}function g$e(e,t){if(e===me.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return My(e,t,No.BIGINT,!0).toString()}function My(e,t,r,n){if(t===null)return n?To(e,r):y_;switch(e){case me.DOUBLE:case me.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==me.FLOAT&&i_(i),i;case me.INT32:case me.FIXED32:case me.SFIXED32:case me.SINT32:case me.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==me.UINT32||e==me.FIXED32?xy(a):Fp(a),a;case me.INT64:case me.SFIXED64:case me.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=dn.parse(t);return r?o.toString():o;case me.FIXED64:case me.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=dn.uParse(t);return r?u.toString():u;case me.BOOL:if(typeof t!="boolean")break;return t;case me.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case me.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return UL.dec(t)}throw new Error}function xL(e,t,r,n){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:n?e.values[0].no:y_;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(r)return m_;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${as(t)}`)}function I$e(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function K7(e,t,r){if(e.kind=="map"){Ir(typeof t=="object"&&t!=null);let n={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)n[o.toString()]=h_(e.V.T,u);break;case"message":for(let[o,u]of i)n[o.toString()]=u.toJson(r);break;case"enum":let a=e.V.T;for(let[o,u]of i)n[o.toString()]=ML(a,u,r.enumAsInteger);break}return r.emitDefaultValues||i.length>0?n:void 0}if(e.repeated){Ir(Array.isArray(t));let n=[];switch(e.kind){case"scalar":for(let i=0;i0?n:void 0}switch(e.kind){case"scalar":return h_(e.T,t);case"enum":return ML(e.T,t,r.enumAsInteger);case"message":return p_(e.T,t).toJson(r)}}function ML(e,t,r){var n;if(Ir(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(r)return t;let i=e.findNumber(t);return(n=i==null?void 0:i.name)!==null&&n!==void 0?n:t}function h_(e,t){switch(e){case me.INT32:case me.SFIXED32:case me.SINT32:case me.FIXED32:case me.UINT32:return Ir(typeof t=="number"),t;case me.FLOAT:case me.DOUBLE:return Ir(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case me.STRING:return Ir(typeof t=="string"),t;case me.BOOL:return Ir(typeof t=="boolean"),t;case me.UINT64:case me.FIXED64:case me.INT64:case me.SFIXED64:case me.SINT64:return Ir(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case me.BYTES:return Ir(t instanceof Uint8Array),UL.enc(t)}}d();p();f();var Lp=Symbol("@bufbuild/protobuf/unknown-fields"),G7={readUnknownFields:!0,readerFactory:e=>new c_(e)},Q7={writeUnknownFields:!0,writerFactory:()=>new u_};function v$e(e){return e?Object.assign(Object.assign({},G7),e):G7}function _$e(e){return e?Object.assign(Object.assign({},Q7),e):Q7}function H7(){return{makeReadOptions:v$e,makeWriteOptions:_$e,listUnknownFields(e){var t;return(t=e[Lp])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Lp]},writeUnknownFields(e,t){let n=e[Lp];if(n)for(let i of n)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,r,n){let i=e;Array.isArray(i[Lp])||(i[Lp]=[]),i[Lp].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n,i){let a=e.getType(),o=i?t.len:t.pos+r,u,l;for(;t.pos0&&(l=O$e),a){let T=e[o];if(n==en.LengthDelimited&&u!=me.STRING&&u!=me.BYTES){let R=t.uint32()+t.pos;for(;t.posEo(T,N)?T:new N(T));else{let T=o[i];N.fieldWrapper?N.typeName==="google.protobuf.BytesValue"?a[i]=Vy(T):a[i]=T:a[i]=Eo(T,N)?T:new N(T)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{let i=t[n.localName],a=r[n.localName];if(n.repeated){if(i.length!==a.length)return!1;switch(n.kind){case"message":return i.every((o,u)=>n.T.equals(o,a[u]));case"scalar":return i.every((o,u)=>$s(n.T,o,a[u]));case"enum":return i.every((o,u)=>$s(me.INT32,o,a[u]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(i,a);case"enum":return $s(me.INT32,i,a);case"scalar":return $s(n.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=n.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return $s(me.INT32,i.value,a.value);case"scalar":return $s(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(a));switch(n.V.kind){case"message":let l=n.V.T;return u.every(h=>l.equals(i[h],a[h]));case"enum":return u.every(h=>$s(me.INT32,i[h],a[h]));case"scalar":let m=n.V.T;return u.every(h=>$s(m,i[h],a[h]))}break}})},clone(e){let t=e.getType(),r=new t,n=r;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(E_);else if(i.kind=="map"){o=n[i.localName];for(let[u,l]of Object.entries(a))o[u]=E_(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:E_(a.value)}:{case:void 0}:o=E_(a);n[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(n,i.no,i.wireType,i.data);return r}}}function E_(e){if(e===void 0)return e;if(Eo(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Vy(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Z7(e,t,r){return{syntax:e,json:$7(),bin:H7(),util:Object.assign(Object.assign({},X7()),{newFieldList:t,initFields:r}),makeMessageType(n,i,a){return R7(this,n,i,a)},makeEnum:b7,makeEnumType:PL,getEnumType:D7,makeExtension(n,i,a){return B7(this,n,i,a)}}}d();p();f();var g_=class{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){let r={};for(let n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){let r={};for(let n of this.list())r[n.no]=n;this.numbers=r}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,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,r;for(let n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}};d();p();f();d();p();f();d();p();f();function jL(e,t){let r=rZ(e);return t?r:P$e(w$e(r))}function eZ(e){return jL(e,!1)}var tZ=rZ;function rZ(e){let t=!1,r=[];for(let n=0;n`${e}$`,w$e=e=>R$e.has(e)?nZ(e):e,P$e=e=>A$e.has(e)?nZ(e):e;var I_=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=eZ(t)}addField(t){Ir(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 r=0;rnew g_(e,t=>iZ(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=To(t.T,t.L);break;case"message":break}}});var Cp;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Cp||(Cp={}));U.util.setEnumType(Cp,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var Qs;(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"})(Qs||(Qs={}));U.util.setEnumType(Qs,"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 Ys;(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"})(Ys||(Ys={}));U.util.setEnumType(Ys,"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"}]);var mZ=Ln(_e(),1);d();p();f();var VL;(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"})(VL||(VL={}));U.util.setEnumType(VL,"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 wd;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(wd||(wd={}));U.util.setEnumType(wd,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var cl;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(cl||(cl={}));U.util.setEnumType(cl,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Ky;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Ky||(Ky={}));U.util.setEnumType(Ky,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var $y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})($y||($y={}));U.util.setEnumType($y,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var oc;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(oc||(oc={}));U.util.setEnumType(oc,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var ll;(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"})(ll||(ll={}));U.util.setEnumType(ll,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Pd;(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"})(Pd||(Pd={}));U.util.setEnumType(Pd,"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 Js=class Js extends Pe{constructor(r){super();S(this,"id","");S(this,"name","");S(this,"routingUrl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Js().fromBinary(r,n)}static fromJson(r,n){return new Js().fromJson(r,n)}static fromJsonString(r,n){return new Js().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Js,r,n)}};S(Js,"runtime",U),S(Js,"typeName","wg.cosmo.node.v1.Subgraph"),S(Js,"fields",U.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 v_=Js,zs=class zs extends Pe{constructor(r){super();S(this,"configByFeatureFlagName",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new zs().fromBinary(r,n)}static fromJson(r,n){return new zs().fromJson(r,n)}static fromJsonString(r,n){return new zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zs,r,n)}};S(zs,"runtime",U),S(zs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),S(zs,"fields",U.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:$L}}]));var KL=zs,Hs=class Hs extends Pe{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Hs().fromBinary(r,n)}static fromJson(r,n){return new Hs().fromJson(r,n)}static fromJsonString(r,n){return new Hs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hs,r,n)}};S(Hs,"runtime",U),S(Hs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),S(Hs,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:v_,repeated:!0}]));var $L=Hs,Ws=class Ws extends Pe{constructor(r){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);S(this,"featureFlagConfigs");S(this,"compatibilityVersion","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ws().fromBinary(r,n)}static fromJson(r,n){return new Ws().fromJson(r,n)}static fromJsonString(r,n){return new Ws().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ws,r,n)}};S(Ws,"runtime",U),S(Ws,"typeName","wg.cosmo.node.v1.RouterConfig"),S(Ws,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Bp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:v_,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:KL,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var Gy=Ws,Xs=class Xs extends Pe{constructor(r){super();S(this,"code",Cp.OK);S(this,"details");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xs().fromBinary(r,n)}static fromJson(r,n){return new Xs().fromJson(r,n)}static fromJsonString(r,n){return new Xs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xs,r,n)}};S(Xs,"runtime",U),S(Xs,"typeName","wg.cosmo.node.v1.Response"),S(Xs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:U.getEnumType(Cp)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var GL=Xs,Zs=class Zs extends Pe{constructor(r){super();S(this,"code",0);S(this,"message","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zs().fromBinary(r,n)}static fromJson(r,n){return new Zs().fromJson(r,n)}static fromJsonString(r,n){return new Zs().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zs,r,n)}};S(Zs,"runtime",U),S(Zs,"typeName","wg.cosmo.node.v1.ResponseStatus"),S(Zs,"fields",U.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var aZ=Zs,eu=class eu extends Pe{constructor(r){super();S(this,"accountLimits");S(this,"graphPublicKey","");U.util.initPartial(r,this)}static fromBinary(r,n){return new eu().fromBinary(r,n)}static fromJson(r,n){return new eu().fromJson(r,n)}static fromJsonString(r,n){return new eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(eu,r,n)}};S(eu,"runtime",U),S(eu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),S(eu,"fields",U.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:YL},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var QL=eu,tu=class tu extends Pe{constructor(r){super();S(this,"traceSamplingRate",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new tu().fromBinary(r,n)}static fromJson(r,n){return new tu().fromJson(r,n)}static fromJsonString(r,n){return new tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tu,r,n)}};S(tu,"runtime",U),S(tu,"typeName","wg.cosmo.node.v1.AccountLimits"),S(tu,"fields",U.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var YL=tu,ru=class ru extends Pe{constructor(t){super(),U.util.initPartial(t,this)}static fromBinary(t,r){return new ru().fromBinary(t,r)}static fromJson(t,r){return new ru().fromJson(t,r)}static fromJsonString(t,r){return new ru().fromJsonString(t,r)}static equals(t,r){return U.util.equals(ru,t,r)}};S(ru,"runtime",U),S(ru,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),S(ru,"fields",U.util.newFieldList(()=>[]));var oZ=ru,nu=class nu extends Pe{constructor(r){super();S(this,"response");S(this,"registrationInfo");U.util.initPartial(r,this)}static fromBinary(r,n){return new nu().fromBinary(r,n)}static fromJson(r,n){return new nu().fromJson(r,n)}static fromJsonString(r,n){return new nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nu,r,n)}};S(nu,"runtime",U),S(nu,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),S(nu,"fields",U.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:GL},{no:2,name:"registrationInfo",kind:"message",T:QL,opt:!0}]));var sZ=nu,iu=class iu extends Pe{constructor(r){super();S(this,"defaultFlushInterval",dn.zero);S(this,"datasourceConfigurations",[]);S(this,"fieldConfigurations",[]);S(this,"graphqlSchema","");S(this,"typeConfigurations",[]);S(this,"stringStorage",{});S(this,"graphqlClientSchema");U.util.initPartial(r,this)}static fromBinary(r,n){return new iu().fromBinary(r,n)}static fromJson(r,n){return new iu().fromJson(r,n)}static fromJsonString(r,n){return new iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(iu,r,n)}};S(iu,"runtime",U),S(iu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),S(iu,"fields",U.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Qy,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Xy,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:JL,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 Bp=iu,au=class au extends Pe{constructor(r){super();S(this,"kind",cl.STATIC);S(this,"rootNodes",[]);S(this,"childNodes",[]);S(this,"overrideFieldPathFromAlias",!1);S(this,"customGraphql");S(this,"customStatic");S(this,"directives",[]);S(this,"requestTimeoutSeconds",dn.zero);S(this,"id","");S(this,"keys",[]);S(this,"provides",[]);S(this,"requires",[]);S(this,"customEvents");S(this,"entityInterfaces",[]);S(this,"interfaceObjects",[]);S(this,"costConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new au().fromBinary(r,n)}static fromJson(r,n){return new au().fromJson(r,n)}static fromJsonString(r,n){return new au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(au,r,n)}};S(au,"runtime",U),S(au,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),S(au,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(cl)},{no:2,name:"root_nodes",kind:"message",T:Up,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Up,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:tN},{no:6,name:"custom_static",kind:"message",T:sC},{no:7,name:"directives",kind:"message",T:uC,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:Rd,repeated:!0},{no:11,name:"provides",kind:"message",T:Rd,repeated:!0},{no:12,name:"requires",kind:"message",T:Rd,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ld},{no:14,name:"entity_interfaces",kind:"message",T:kp,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:kp,repeated:!0},{no:16,name:"cost_configuration",kind:"message",T:Yy}]));var Qy=au,ou=class ou extends Pe{constructor(r){super();S(this,"fieldWeights",[]);S(this,"listSizes",[]);S(this,"typeWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new ou().fromBinary(r,n)}static fromJson(r,n){return new ou().fromJson(r,n)}static fromJsonString(r,n){return new ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ou,r,n)}};S(ou,"runtime",U),S(ou,"typeName","wg.cosmo.node.v1.CostConfiguration"),S(ou,"fields",U.util.newFieldList(()=>[{no:1,name:"field_weights",kind:"message",T:Jy,repeated:!0},{no:2,name:"list_sizes",kind:"message",T:zy,repeated:!0},{no:3,name:"type_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:4,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Yy=ou,su=class su extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"weight");S(this,"argumentWeights",{});S(this,"directiveArgumentWeights",{});U.util.initPartial(r,this)}static fromBinary(r,n){return new su().fromBinary(r,n)}static fromJson(r,n){return new su().fromJson(r,n)}static fromJsonString(r,n){return new su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(su,r,n)}};S(su,"runtime",U),S(su,"typeName","wg.cosmo.node.v1.FieldWeightConfiguration"),S(su,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"weight",kind:"scalar",T:5,opt:!0},{no:4,name:"argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:5,name:"directive_argument_weights",kind:"map",K:9,V:{kind:"scalar",T:5}}]));var Jy=su,uu=class uu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"assumedSize");S(this,"slicingArguments",[]);S(this,"sizedFields",[]);S(this,"requireOneSlicingArgument");U.util.initPartial(r,this)}static fromBinary(r,n){return new uu().fromBinary(r,n)}static fromJson(r,n){return new uu().fromJson(r,n)}static fromJsonString(r,n){return new uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(uu,r,n)}};S(uu,"runtime",U),S(uu,"typeName","wg.cosmo.node.v1.FieldListSizeConfiguration"),S(uu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"assumed_size",kind:"scalar",T:5,opt:!0},{no:4,name:"slicing_arguments",kind:"scalar",T:9,repeated:!0},{no:5,name:"sized_fields",kind:"scalar",T:9,repeated:!0},{no:6,name:"require_one_slicing_argument",kind:"scalar",T:8,opt:!0}]));var zy=uu,cu=class cu extends Pe{constructor(r){super();S(this,"name","");S(this,"sourceType",wd.OBJECT_FIELD);U.util.initPartial(r,this)}static fromBinary(r,n){return new cu().fromBinary(r,n)}static fromJson(r,n){return new cu().fromJson(r,n)}static fromJsonString(r,n){return new cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(cu,r,n)}};S(cu,"runtime",U),S(cu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),S(cu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:U.getEnumType(wd)}]));var Hy=cu,lu=class lu extends Pe{constructor(r){super();S(this,"requiredAndScopes",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new lu().fromBinary(r,n)}static fromJson(r,n){return new lu().fromJson(r,n)}static fromJsonString(r,n){return new lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(lu,r,n)}};S(lu,"runtime",U),S(lu,"typeName","wg.cosmo.node.v1.Scopes"),S(lu,"fields",U.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Fd=lu,du=class du extends Pe{constructor(r){super();S(this,"requiresAuthentication",!1);S(this,"requiredOrScopes",[]);S(this,"requiredOrScopesByOr",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new du().fromBinary(r,n)}static fromJson(r,n){return new du().fromJson(r,n)}static fromJsonString(r,n){return new du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(du,r,n)}};S(du,"runtime",U),S(du,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),S(du,"fields",U.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Fd,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Fd,repeated:!0}]));var Wy=du,fu=class fu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"argumentsConfiguration",[]);S(this,"authorizationConfiguration");S(this,"subscriptionFilterCondition");U.util.initPartial(r,this)}static fromBinary(r,n){return new fu().fromBinary(r,n)}static fromJson(r,n){return new fu().fromJson(r,n)}static fromJsonString(r,n){return new fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(fu,r,n)}};S(fu,"runtime",U),S(fu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),S(fu,"fields",U.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:Hy,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Wy},{no:5,name:"subscription_filter_condition",kind:"message",T:dl,opt:!0}]));var Xy=fu,pu=class pu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new pu().fromBinary(r,n)}static fromJson(r,n){return new pu().fromJson(r,n)}static fromJsonString(r,n){return new pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(pu,r,n)}};S(pu,"runtime",U),S(pu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),S(pu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var JL=pu,mu=class mu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldNames",[]);S(this,"externalFieldNames",[]);S(this,"requireFetchReasonsFieldNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new mu().fromBinary(r,n)}static fromJson(r,n){return new mu().fromJson(r,n)}static fromJsonString(r,n){return new mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(mu,r,n)}};S(mu,"runtime",U),S(mu,"typeName","wg.cosmo.node.v1.TypeField"),S(mu,"fields",U.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},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Up=mu,hu=class hu extends Pe{constructor(r){super();S(this,"fieldName","");S(this,"typeName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new hu().fromBinary(r,n)}static fromJson(r,n){return new hu().fromJson(r,n)}static fromJsonString(r,n){return new hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(hu,r,n)}};S(hu,"runtime",U),S(hu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),S(hu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var Zy=hu,yu=class yu extends Pe{constructor(r){super();S(this,"fieldCoordinatesPath",[]);S(this,"fieldPath",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new yu().fromBinary(r,n)}static fromJson(r,n){return new yu().fromJson(r,n)}static fromJsonString(r,n){return new yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(yu,r,n)}};S(yu,"runtime",U),S(yu,"typeName","wg.cosmo.node.v1.FieldSetCondition"),S(yu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:Zy,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var eN=yu,Nu=class Nu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");S(this,"selectionSet","");S(this,"disableEntityResolver",!1);S(this,"conditions",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Nu().fromBinary(r,n)}static fromJson(r,n){return new Nu().fromJson(r,n)}static fromJsonString(r,n){return new Nu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Nu,r,n)}};S(Nu,"runtime",U),S(Nu,"typeName","wg.cosmo.node.v1.RequiredField"),S(Nu,"fields",U.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:eN,repeated:!0}]));var Rd=Nu,Tu=class Tu extends Pe{constructor(r){super();S(this,"interfaceTypeName","");S(this,"concreteTypeNames",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Tu().fromBinary(r,n)}static fromJson(r,n){return new Tu().fromJson(r,n)}static fromJsonString(r,n){return new Tu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Tu,r,n)}};S(Tu,"runtime",U),S(Tu,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),S(Tu,"fields",U.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 kp=Tu,Eu=class Eu extends Pe{constructor(r){super();S(this,"url");S(this,"method",Pd.GET);S(this,"header",{});S(this,"body");S(this,"query",[]);S(this,"urlEncodeBody",!1);S(this,"mtls");S(this,"baseUrl");S(this,"path");S(this,"httpProxyUrl");U.util.initPartial(r,this)}static fromBinary(r,n){return new Eu().fromBinary(r,n)}static fromJson(r,n){return new Eu().fromJson(r,n)}static fromJsonString(r,n){return new Eu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Eu,r,n)}};S(Eu,"runtime",U),S(Eu,"typeName","wg.cosmo.node.v1.FetchConfiguration"),S(Eu,"fields",U.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Ni},{no:2,name:"method",kind:"enum",T:U.getEnumType(Pd)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:lC}},{no:4,name:"body",kind:"message",T:Ni},{no:5,name:"query",kind:"message",T:cC,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:dC},{no:9,name:"base_url",kind:"message",T:Ni},{no:10,name:"path",kind:"message",T:Ni},{no:11,name:"http_proxy_url",kind:"message",T:Ni,opt:!0}]));var zL=Eu,gu=class gu extends Pe{constructor(r){super();S(this,"statusCode",dn.zero);S(this,"typeName","");S(this,"injectStatusCodeIntoBody",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new gu().fromBinary(r,n)}static fromJson(r,n){return new gu().fromJson(r,n)}static fromJsonString(r,n){return new gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(gu,r,n)}};S(gu,"runtime",U),S(gu,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),S(gu,"fields",U.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 uZ=gu,Iu=class Iu extends Pe{constructor(r){super();S(this,"fetch");S(this,"subscription");S(this,"federation");S(this,"upstreamSchema");S(this,"customScalarTypeFields",[]);S(this,"grpc");U.util.initPartial(r,this)}static fromBinary(r,n){return new Iu().fromBinary(r,n)}static fromJson(r,n){return new Iu().fromJson(r,n)}static fromJsonString(r,n){return new Iu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Iu,r,n)}};S(Iu,"runtime",U),S(Iu,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),S(Iu,"fields",U.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:zL},{no:2,name:"subscription",kind:"message",T:fC},{no:3,name:"federation",kind:"message",T:pC},{no:4,name:"upstream_schema",kind:"message",T:uN},{no:6,name:"custom_scalar_type_fields",kind:"message",T:mC,repeated:!0},{no:7,name:"grpc",kind:"message",T:qp}]));var tN=Iu,vu=class vu extends Pe{constructor(r){super();S(this,"mapping");S(this,"protoSchema","");S(this,"plugin");U.util.initPartial(r,this)}static fromBinary(r,n){return new vu().fromBinary(r,n)}static fromJson(r,n){return new vu().fromJson(r,n)}static fromJsonString(r,n){return new vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(vu,r,n)}};S(vu,"runtime",U),S(vu,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),S(vu,"fields",U.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:WL},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:rN}]));var qp=vu,_u=class _u extends Pe{constructor(r){super();S(this,"repository","");S(this,"reference","");U.util.initPartial(r,this)}static fromBinary(r,n){return new _u().fromBinary(r,n)}static fromJson(r,n){return new _u().fromJson(r,n)}static fromJsonString(r,n){return new _u().fromJsonString(r,n)}static equals(r,n){return U.util.equals(_u,r,n)}};S(_u,"runtime",U),S(_u,"typeName","wg.cosmo.node.v1.ImageReference"),S(_u,"fields",U.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var HL=_u,Su=class Su extends Pe{constructor(r){super();S(this,"name","");S(this,"version","");S(this,"imageReference");U.util.initPartial(r,this)}static fromBinary(r,n){return new Su().fromBinary(r,n)}static fromJson(r,n){return new Su().fromJson(r,n)}static fromJsonString(r,n){return new Su().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Su,r,n)}};S(Su,"runtime",U),S(Su,"typeName","wg.cosmo.node.v1.PluginConfiguration"),S(Su,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:HL,opt:!0}]));var rN=Su,Ou=class Ou extends Pe{constructor(r){super();S(this,"enabled",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ou().fromBinary(r,n)}static fromJson(r,n){return new Ou().fromJson(r,n)}static fromJsonString(r,n){return new Ou().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ou,r,n)}};S(Ou,"runtime",U),S(Ou,"typeName","wg.cosmo.node.v1.SSLConfiguration"),S(Ou,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var cZ=Ou,Du=class Du extends Pe{constructor(r){super();S(this,"version",0);S(this,"service","");S(this,"operationMappings",[]);S(this,"entityMappings",[]);S(this,"typeFieldMappings",[]);S(this,"enumMappings",[]);S(this,"resolveMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Du().fromBinary(r,n)}static fromJson(r,n){return new Du().fromJson(r,n)}static fromJsonString(r,n){return new Du().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Du,r,n)}};S(Du,"runtime",U),S(Du,"typeName","wg.cosmo.node.v1.GRPCMapping"),S(Du,"fields",U.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:eC,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:tC,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:nC,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:aC,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:XL,repeated:!0}]));var WL=Du,bu=class bu extends Pe{constructor(r){super();S(this,"type",Ky.UNSPECIFIED);S(this,"lookupMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new bu().fromBinary(r,n)}static fromJson(r,n){return new bu().fromJson(r,n)}static fromJsonString(r,n){return new bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(bu,r,n)}};S(bu,"runtime",U),S(bu,"typeName","wg.cosmo.node.v1.LookupMapping"),S(bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType(Ky)},{no:2,name:"lookup_mapping",kind:"message",T:ZL},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var XL=bu,Au=class Au extends Pe{constructor(r){super();S(this,"type","");S(this,"fieldMapping");U.util.initPartial(r,this)}static fromBinary(r,n){return new Au().fromBinary(r,n)}static fromJson(r,n){return new Au().fromJson(r,n)}static fromJsonString(r,n){return new Au().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Au,r,n)}};S(Au,"runtime",U),S(Au,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),S(Au,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:nN}]));var ZL=Au,Ru=class Ru extends Pe{constructor(r){super();S(this,"type",$y.UNSPECIFIED);S(this,"original","");S(this,"mapped","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ru().fromBinary(r,n)}static fromJson(r,n){return new Ru().fromJson(r,n)}static fromJsonString(r,n){return new Ru().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ru,r,n)}};S(Ru,"runtime",U),S(Ru,"typeName","wg.cosmo.node.v1.OperationMapping"),S(Ru,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:U.getEnumType($y)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var eC=Ru,wu=class wu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"kind","");S(this,"key","");S(this,"rpc","");S(this,"request","");S(this,"response","");S(this,"requiredFieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new wu().fromBinary(r,n)}static fromJson(r,n){return new wu().fromJson(r,n)}static fromJsonString(r,n){return new wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(wu,r,n)}};S(wu,"runtime",U),S(wu,"typeName","wg.cosmo.node.v1.EntityMapping"),S(wu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9},{no:7,name:"required_field_mappings",kind:"message",T:rC,repeated:!0}]));var tC=wu,Pu=class Pu extends Pe{constructor(r){super();S(this,"fieldMapping");S(this,"rpc","");S(this,"request","");S(this,"response","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Pu().fromBinary(r,n)}static fromJson(r,n){return new Pu().fromJson(r,n)}static fromJsonString(r,n){return new Pu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Pu,r,n)}};S(Pu,"runtime",U),S(Pu,"typeName","wg.cosmo.node.v1.RequiredFieldMapping"),S(Pu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_mapping",kind:"message",T:nN},{no:2,name:"rpc",kind:"scalar",T:9},{no:3,name:"request",kind:"scalar",T:9},{no:4,name:"response",kind:"scalar",T:9}]));var rC=Pu,Fu=class Fu extends Pe{constructor(r){super();S(this,"type","");S(this,"fieldMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Fu().fromBinary(r,n)}static fromJson(r,n){return new Fu().fromJson(r,n)}static fromJsonString(r,n){return new Fu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Fu,r,n)}};S(Fu,"runtime",U),S(Fu,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),S(Fu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:nN,repeated:!0}]));var nC=Fu,Lu=class Lu extends Pe{constructor(r){super();S(this,"original","");S(this,"mapped","");S(this,"argumentMappings",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Lu().fromBinary(r,n)}static fromJson(r,n){return new Lu().fromJson(r,n)}static fromJsonString(r,n){return new Lu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Lu,r,n)}};S(Lu,"runtime",U),S(Lu,"typeName","wg.cosmo.node.v1.FieldMapping"),S(Lu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:iC,repeated:!0}]));var nN=Lu,Cu=class Cu extends Pe{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Cu().fromBinary(r,n)}static fromJson(r,n){return new Cu().fromJson(r,n)}static fromJsonString(r,n){return new Cu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Cu,r,n)}};S(Cu,"runtime",U),S(Cu,"typeName","wg.cosmo.node.v1.ArgumentMapping"),S(Cu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var iC=Cu,Bu=class Bu extends Pe{constructor(r){super();S(this,"type","");S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Bu().fromBinary(r,n)}static fromJson(r,n){return new Bu().fromJson(r,n)}static fromJsonString(r,n){return new Bu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Bu,r,n)}};S(Bu,"runtime",U),S(Bu,"typeName","wg.cosmo.node.v1.EnumMapping"),S(Bu,"fields",U.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:oC,repeated:!0}]));var aC=Bu,Uu=class Uu extends Pe{constructor(r){super();S(this,"original","");S(this,"mapped","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Uu().fromBinary(r,n)}static fromJson(r,n){return new Uu().fromJson(r,n)}static fromJsonString(r,n){return new Uu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Uu,r,n)}};S(Uu,"runtime",U),S(Uu,"typeName","wg.cosmo.node.v1.EnumValueMapping"),S(Uu,"fields",U.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var oC=Uu,ku=class ku extends Pe{constructor(r){super();S(this,"consumerName","");S(this,"streamName","");S(this,"consumerInactiveThreshold",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ku().fromBinary(r,n)}static fromJson(r,n){return new ku().fromJson(r,n)}static fromJsonString(r,n){return new ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ku,r,n)}};S(ku,"runtime",U),S(ku,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),S(ku,"fields",U.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var iN=ku,qu=class qu extends Pe{constructor(r){super();S(this,"engineEventConfiguration");S(this,"subjects",[]);S(this,"streamConfiguration");U.util.initPartial(r,this)}static fromBinary(r,n){return new qu().fromBinary(r,n)}static fromJson(r,n){return new qu().fromJson(r,n)}static fromJsonString(r,n){return new qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(qu,r,n)}};S(qu,"runtime",U),S(qu,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),S(qu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:iN}]));var aN=qu,xu=class xu extends Pe{constructor(r){super();S(this,"engineEventConfiguration");S(this,"topics",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new xu().fromBinary(r,n)}static fromJson(r,n){return new xu().fromJson(r,n)}static fromJsonString(r,n){return new xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(xu,r,n)}};S(xu,"runtime",U),S(xu,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),S(xu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var oN=xu,Mu=class Mu extends Pe{constructor(r){super();S(this,"engineEventConfiguration");S(this,"channels",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Mu().fromBinary(r,n)}static fromJson(r,n){return new Mu().fromJson(r,n)}static fromJsonString(r,n){return new Mu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Mu,r,n)}};S(Mu,"runtime",U),S(Mu,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),S(Mu,"fields",U.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:sc},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var sN=Mu,ju=class ju extends Pe{constructor(r){super();S(this,"providerId","");S(this,"type",oc.PUBLISH);S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ju().fromBinary(r,n)}static fromJson(r,n){return new ju().fromJson(r,n)}static fromJsonString(r,n){return new ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ju,r,n)}};S(ju,"runtime",U),S(ju,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),S(ju,"fields",U.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:U.getEnumType(oc)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var sc=ju,Vu=class Vu extends Pe{constructor(r){super();S(this,"nats",[]);S(this,"kafka",[]);S(this,"redis",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Vu().fromBinary(r,n)}static fromJson(r,n){return new Vu().fromJson(r,n)}static fromJsonString(r,n){return new Vu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Vu,r,n)}};S(Vu,"runtime",U),S(Vu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),S(Vu,"fields",U.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:aN,repeated:!0},{no:2,name:"kafka",kind:"message",T:oN,repeated:!0},{no:3,name:"redis",kind:"message",T:sN,repeated:!0}]));var Ld=Vu,Ku=class Ku extends Pe{constructor(r){super();S(this,"data");U.util.initPartial(r,this)}static fromBinary(r,n){return new Ku().fromBinary(r,n)}static fromJson(r,n){return new Ku().fromJson(r,n)}static fromJsonString(r,n){return new Ku().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ku,r,n)}};S(Ku,"runtime",U),S(Ku,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),S(Ku,"fields",U.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Ni}]));var sC=Ku,$u=class $u extends Pe{constructor(r){super();S(this,"kind",ll.STATIC_CONFIGURATION_VARIABLE);S(this,"staticVariableContent","");S(this,"environmentVariableName","");S(this,"environmentVariableDefaultValue","");S(this,"placeholderVariableName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new $u().fromBinary(r,n)}static fromJson(r,n){return new $u().fromJson(r,n)}static fromJsonString(r,n){return new $u().fromJsonString(r,n)}static equals(r,n){return U.util.equals($u,r,n)}};S($u,"runtime",U),S($u,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),S($u,"fields",U.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:U.getEnumType(ll)},{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 Ni=$u,Gu=class Gu extends Pe{constructor(r){super();S(this,"directiveName","");S(this,"renameTo","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Gu().fromBinary(r,n)}static fromJson(r,n){return new Gu().fromJson(r,n)}static fromJsonString(r,n){return new Gu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Gu,r,n)}};S(Gu,"runtime",U),S(Gu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),S(Gu,"fields",U.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var uC=Gu,Qu=class Qu extends Pe{constructor(r){super();S(this,"name","");S(this,"value","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Qu().fromBinary(r,n)}static fromJson(r,n){return new Qu().fromJson(r,n)}static fromJsonString(r,n){return new Qu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Qu,r,n)}};S(Qu,"runtime",U),S(Qu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),S(Qu,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var cC=Qu,Yu=class Yu extends Pe{constructor(r){super();S(this,"values",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Yu().fromBinary(r,n)}static fromJson(r,n){return new Yu().fromJson(r,n)}static fromJsonString(r,n){return new Yu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Yu,r,n)}};S(Yu,"runtime",U),S(Yu,"typeName","wg.cosmo.node.v1.HTTPHeader"),S(Yu,"fields",U.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Ni,repeated:!0}]));var lC=Yu,Ju=class Ju extends Pe{constructor(r){super();S(this,"key");S(this,"cert");S(this,"insecureSkipVerify",!1);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ju().fromBinary(r,n)}static fromJson(r,n){return new Ju().fromJson(r,n)}static fromJsonString(r,n){return new Ju().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ju,r,n)}};S(Ju,"runtime",U),S(Ju,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),S(Ju,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Ni},{no:2,name:"cert",kind:"message",T:Ni},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var dC=Ju,zu=class zu extends Pe{constructor(r){super();S(this,"enabled",!1);S(this,"url");S(this,"useSSE");S(this,"protocol");S(this,"websocketSubprotocol");U.util.initPartial(r,this)}static fromBinary(r,n){return new zu().fromBinary(r,n)}static fromJson(r,n){return new zu().fromJson(r,n)}static fromJsonString(r,n){return new zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(zu,r,n)}};S(zu,"runtime",U),S(zu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),S(zu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Ni},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:U.getEnumType(Qs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:U.getEnumType(Ys),opt:!0}]));var fC=zu,Hu=class Hu extends Pe{constructor(r){super();S(this,"enabled",!1);S(this,"serviceSdl","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Hu().fromBinary(r,n)}static fromJson(r,n){return new Hu().fromJson(r,n)}static fromJsonString(r,n){return new Hu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Hu,r,n)}};S(Hu,"runtime",U),S(Hu,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),S(Hu,"fields",U.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var pC=Hu,Wu=class Wu extends Pe{constructor(r){super();S(this,"key","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Wu().fromBinary(r,n)}static fromJson(r,n){return new Wu().fromJson(r,n)}static fromJsonString(r,n){return new Wu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Wu,r,n)}};S(Wu,"runtime",U),S(Wu,"typeName","wg.cosmo.node.v1.InternedString"),S(Wu,"fields",U.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var uN=Wu,Xu=class Xu extends Pe{constructor(r){super();S(this,"typeName","");S(this,"fieldName","");U.util.initPartial(r,this)}static fromBinary(r,n){return new Xu().fromBinary(r,n)}static fromJson(r,n){return new Xu().fromJson(r,n)}static fromJsonString(r,n){return new Xu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Xu,r,n)}};S(Xu,"runtime",U),S(Xu,"typeName","wg.cosmo.node.v1.SingleTypeField"),S(Xu,"fields",U.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var mC=Xu,Zu=class Zu extends Pe{constructor(r){super();S(this,"fieldPath",[]);S(this,"json","");S(this,"bypassIfValuesNull");U.util.initPartial(r,this)}static fromBinary(r,n){return new Zu().fromBinary(r,n)}static fromJson(r,n){return new Zu().fromJson(r,n)}static fromJsonString(r,n){return new Zu().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Zu,r,n)}};S(Zu,"runtime",U),S(Zu,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),S(Zu,"fields",U.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9},{no:3,name:"bypass_if_values_null",kind:"scalar",T:8,opt:!0}]));var cN=Zu,Ca=class Ca extends Pe{constructor(r){super();S(this,"and",[]);S(this,"in");S(this,"not");S(this,"or",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new Ca().fromBinary(r,n)}static fromJson(r,n){return new Ca().fromJson(r,n)}static fromJsonString(r,n){return new Ca().fromJsonString(r,n)}static equals(r,n){return U.util.equals(Ca,r,n)}};S(Ca,"runtime",U),S(Ca,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),S(Ca,"fields",U.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Ca,repeated:!0},{no:2,name:"in",kind:"message",T:cN,opt:!0},{no:3,name:"not",kind:"message",T:Ca,opt:!0},{no:4,name:"or",kind:"message",T:Ca,repeated:!0}]));var dl=Ca,ec=class ec extends Pe{constructor(r){super();S(this,"operations",[]);U.util.initPartial(r,this)}static fromBinary(r,n){return new ec().fromBinary(r,n)}static fromJson(r,n){return new ec().fromJson(r,n)}static fromJsonString(r,n){return new ec().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ec,r,n)}};S(ec,"runtime",U),S(ec,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),S(ec,"fields",U.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:hC,repeated:!0}]));var lZ=ec,tc=class tc extends Pe{constructor(r){super();S(this,"request");S(this,"client");U.util.initPartial(r,this)}static fromBinary(r,n){return new tc().fromBinary(r,n)}static fromJson(r,n){return new tc().fromJson(r,n)}static fromJsonString(r,n){return new tc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(tc,r,n)}};S(tc,"runtime",U),S(tc,"typeName","wg.cosmo.node.v1.Operation"),S(tc,"fields",U.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:yC},{no:2,name:"client",kind:"message",T:EC}]));var hC=tc,rc=class rc extends Pe{constructor(r){super();S(this,"operationName","");S(this,"query","");S(this,"extensions");U.util.initPartial(r,this)}static fromBinary(r,n){return new rc().fromBinary(r,n)}static fromJson(r,n){return new rc().fromJson(r,n)}static fromJsonString(r,n){return new rc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(rc,r,n)}};S(rc,"runtime",U),S(rc,"typeName","wg.cosmo.node.v1.OperationRequest"),S(rc,"fields",U.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:NC}]));var yC=rc,nc=class nc extends Pe{constructor(r){super();S(this,"persistedQuery");U.util.initPartial(r,this)}static fromBinary(r,n){return new nc().fromBinary(r,n)}static fromJson(r,n){return new nc().fromJson(r,n)}static fromJsonString(r,n){return new nc().fromJsonString(r,n)}static equals(r,n){return U.util.equals(nc,r,n)}};S(nc,"runtime",U),S(nc,"typeName","wg.cosmo.node.v1.Extension"),S(nc,"fields",U.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:TC}]));var NC=nc,ic=class ic extends Pe{constructor(r){super();S(this,"sha256Hash","");S(this,"version",0);U.util.initPartial(r,this)}static fromBinary(r,n){return new ic().fromBinary(r,n)}static fromJson(r,n){return new ic().fromJson(r,n)}static fromJsonString(r,n){return new ic().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ic,r,n)}};S(ic,"runtime",U),S(ic,"typeName","wg.cosmo.node.v1.PersistedQuery"),S(ic,"fields",U.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var TC=ic,ac=class ac extends Pe{constructor(r){super();S(this,"name","");S(this,"version","");U.util.initPartial(r,this)}static fromBinary(r,n){return new ac().fromBinary(r,n)}static fromJson(r,n){return new ac().fromJson(r,n)}static fromJsonString(r,n){return new ac().fromJsonString(r,n)}static equals(r,n){return U.util.equals(ac,r,n)}};S(ac,"runtime",U),S(ac,"typeName","wg.cosmo.node.v1.ClientInfo"),S(ac,"fields",U.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var EC=ac;d();p();f();function gC(e){return new Error(`Normalization failed to return a ${e}.`)}function dZ(e){return new Error(`Invalid router compatibility version "${e}".`)}d();p();f();var xp=Ln(t_(),1);function F$e(e){if(!e.conditions)return;let t=[];for(let r of e.conditions){let n=[];for(let i of r.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);n.push(new Zy({fieldName:a[1],typeName:a[0]}))}t.push(new eN({fieldCoordinatesPath:n,fieldPath:r.fieldPath}))}return t}function IC(e,t,r){if(e)for(let n of e){let i=F$e(n);t.push(new Rd(q(q({typeName:r,fieldName:n.fieldName,selectionSet:n.selectionSet},n.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function vC(e){switch(e){case"publish":return oc.PUBLISH;case"request":return oc.REQUEST;case"subscribe":return oc.SUBSCRIBE}}function fZ(e){var r;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ld({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let n of e.values()){let i=n.typeName,a=[...n.fieldNames],o=new Up({fieldNames:a,typeName:i});if(n.externalFieldNames&&n.externalFieldNames.size>0&&(o.externalFieldNames=[...n.externalFieldNames]),n.requireFetchReasonsFieldNames&&n.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...n.requireFetchReasonsFieldNames]),n.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),n.entityInterfaceConcreteTypeNames){let h=new kp({interfaceTypeName:i,concreteTypeNames:[...n.entityInterfaceConcreteTypeNames]});n.isInterfaceObject?t.interfaceObjects.push(h):t.entityInterfaces.push(h)}IC(n.keys,t.keys,i),IC(n.provides,t.provides,i),IC(n.requires,t.requires,i);let u=[],l=[],m=[];for(let h of(r=n.events)!=null?r:[])switch(h.providerType){case xp.PROVIDER_TYPE_KAFKA:{l.push(new oN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),topics:h.topics}));break}case xp.PROVIDER_TYPE_NATS:{u.push(new aN(q({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),subjects:h.subjects},h.streamConfiguration?{streamConfiguration:new iN({consumerInactiveThreshold:h.streamConfiguration.consumerInactiveThreshold,consumerName:h.streamConfiguration.consumerName,streamName:h.streamConfiguration.streamName})}:{})));break}case xp.PROVIDER_TYPE_REDIS:{m.push(new sN({engineEventConfiguration:new sc({fieldName:h.fieldName,providerId:h.providerId,type:vC(h.type),typeName:i}),channels:h.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l),t.events.redis.push(...m)}return t}function pZ(e){var r,n;let t=[];for(let i of e){let a=i.argumentNames.map(h=>new Hy({name:h,sourceType:wd.FIELD_ARGUMENT})),o=new Xy({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),u=((r=i.requiredScopes)==null?void 0:r.map(h=>new Fd({requiredAndScopes:h})))||[],l=((n=i.requiredScopesByOR)==null?void 0:n.map(h=>new Fd({requiredAndScopes:h})))||[],m=u.length>0;if((i.requiresAuthentication||m)&&(o.authorizationConfiguration=new Wy({requiresAuthentication:i.requiresAuthentication||m,requiredOrScopes:u,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let h=new dl;__(h,i.subscriptionFilterCondition),o.subscriptionFilterCondition=h}t.push(o)}return t}function __(e,t){if(t.and!==void 0){let r=[];for(let n of t.and){let i=new dl;__(i,n),r.push(i)}e.and=r;return}if(t.in!==void 0){let r=new cN({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});t.in.bypassIfValuesNull===!0&&(r.bypassIfValuesNull=!0),e.in=r;return}if(t.not!==void 0){e.not=new dl,__(e.not,t.not);return}if(t.or!==void 0){let r=[];for(let n of t.or){let i=new dl;__(i,n),r.push(i)}e.or=r;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}function L$e(e){if(e&&!(e.fieldWeights.size===0&&e.listSizes.size===0&&e.typeWeights.size===0&&e.directiveArgumentWeights.size===0))return new Yy({fieldWeights:[...e.fieldWeights.values()].map(t=>new Jy(Q(q({},t),{argumentWeights:Object.fromEntries(t.argumentWeights),directiveArgumentWeights:Object.fromEntries(t.directiveArgumentWeights)}))),listSizes:[...e.listSizes.values()].map(t=>new zy(t)),typeWeights:Object.fromEntries(e.typeWeights),directiveArgumentWeights:Object.fromEntries(e.directiveArgumentWeights)})}var Cd;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Cd||(Cd={}));var C$e=(e,t)=>{let r=stringHash(t);return e.stringStorage[r]=t,new uN({key:r})},B$e=e=>{switch(e){case"ws":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Qs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},U$e=e=>{switch(e){case"auto":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return Ys.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},hZ=function(e){if(!Mp.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw dZ(e.routerCompatibilityVersion);let t=new Bp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let r of e.subgraphs){if(!r.configurationDataByTypeName)throw gC("ConfigurationDataByTypeName");if(!r.schema)throw gC("GraphQLSchema");let n={enabled:!0},i=C$e(t,I7((0,mZ.lexicographicSortSchema)(r.schema))),{childNodes:a,entityInterfaces:o,events:u,interfaceObjects:l,keys:m,provides:h,requires:N,rootNodes:T}=fZ(r.configurationDataByTypeName),D;switch(r.kind){case Cd.Standard:{n.enabled=!0,n.protocol=B$e(r.subscriptionProtocol||"ws"),n.websocketSubprotocol=U$e(r.websocketSubprotocol||"auto"),n.url=new Ni({kind:ll.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:r.subscriptionUrl||r.url});break}case Cd.Plugin:{D=new qp({mapping:r.mapping,protoSchema:r.protoSchema,plugin:new rN({name:r.name,version:r.version,imageReference:r.imageReference})});break}case Cd.GRPC:{D=new qp({mapping:r.mapping,protoSchema:r.protoSchema});break}}let R,C,M;if(u.kafka.length>0||u.nats.length>0||u.redis.length>0){R=cl.PUBSUB,M=new Ld({kafka:u.kafka,nats:u.nats,redis:u.redis});let ee=Ie=>Mp.ROOT_TYPE_NAMES.has(Ie.typeName),ae=0,Ne=0;for(;ae({id:r.id,name:r.name,routingUrl:r.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${Mp.COMPOSITION_VERSION}`})};d();p();f();var Ud=Ln(_e());function yZ(e){let t;try{t=(0,Ud.parse)(e.schema)}catch(r){throw new Error(`could not parse schema for Graph ${e.name}: ${r}`)}return{definitions:t,name:e.name,url:e.url}}function k$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(yZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Ud.print)(t.federatedGraphAST)}}function q$e(e){let t=(0,Bd.federateSubgraphs)({subgraphs:e.map(yZ),version:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return hZ({federatedClientSDL:(0,Ud.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Ud.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Bd.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((n,i)=>{var l,m;let a=t.subgraphConfigBySubgraphName.get(n.name),o=a==null?void 0:a.schema,u=a==null?void 0:a.configurationDataByTypeName;return{kind:Cd.Standard,id:`${i}`,name:n.name,url:bL(n.url),sdl:n.schema,subscriptionUrl:bL((l=n.subscription_url)!=null?l:n.url),subscriptionProtocol:(m=n.subscription_protocol)!=null?m:"ws",websocketSubprotocol:n.subscription_protocol==="ws"?n.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return im(x$e);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/src/router-configuration/types.ts b/composition/src/router-configuration/types.ts index c731aa506e..8b70837512 100644 --- a/composition/src/router-configuration/types.ts +++ b/composition/src/router-configuration/types.ts @@ -48,6 +48,7 @@ export type EventConfiguration = KafkaEventConfiguration | NatsEventConfiguratio export type SubscriptionFilterValue = boolean | null | number | string; export type SubscriptionFieldCondition = { + bypassIfValuesNull?: boolean; fieldPath: string[]; values: SubscriptionFilterValue[]; }; diff --git a/composition/src/utils/string-constants.ts b/composition/src/utils/string-constants.ts index 92dacd6029..6e7dcdeb04 100644 --- a/composition/src/utils/string-constants.ts +++ b/composition/src/utils/string-constants.ts @@ -10,6 +10,7 @@ export const AUTHENTICATED = 'authenticated'; export const ARGUMENT_DEFINITION_UPPER = 'ARGUMENT_DEFINITION'; export const BOOLEAN = 'boolean'; export const BOOLEAN_SCALAR = 'Boolean'; +export const BYPASS_IF_VALUES_NULL = 'bypassIfValuesNull'; export const CHANNEL = 'channel'; export const CHANNELS = 'channels'; export const COMPOSE_DIRECTIVE = 'composeDirective'; diff --git a/composition/src/v1/constants/non-directive-definitions.ts b/composition/src/v1/constants/non-directive-definitions.ts index 826667b965..1712e90af3 100644 --- a/composition/src/v1/constants/non-directive-definitions.ts +++ b/composition/src/v1/constants/non-directive-definitions.ts @@ -7,6 +7,8 @@ import { import { stringToNamedTypeNode, stringToNameNode } from '../../ast/utils'; import { AND_UPPER, + BOOLEAN_SCALAR, + BYPASS_IF_VALUES_NULL, CONSUMER_INACTIVE_THRESHOLD, CONSUMER_NAME, EDFS_NATS_STREAM_CONFIGURATION, @@ -114,12 +116,18 @@ export const SCOPE_SCALAR_DEFINITION: ScalarTypeDefinitionNode = { }; /* input openfed__SubscriptionFieldCondition { + * bypassIfValuesNull: Boolean * fieldPath: String! * values: [openfed__SubscriptionFilterValue]! * } */ export const SUBSCRIPTION_FIELD_CONDITION_DEFINITION: InputObjectTypeDefinitionNode = { fields: [ + { + kind: Kind.INPUT_VALUE_DEFINITION, + name: stringToNameNode(BYPASS_IF_VALUES_NULL), + type: stringToNamedTypeNode(BOOLEAN_SCALAR), + }, { kind: Kind.INPUT_VALUE_DEFINITION, name: stringToNameNode(FIELD_PATH), diff --git a/composition/src/v1/federation/federation-factory.ts b/composition/src/v1/federation/federation-factory.ts index 16e0cb93a4..d52f66a9f9 100644 --- a/composition/src/v1/federation/federation-factory.ts +++ b/composition/src/v1/federation/federation-factory.ts @@ -183,6 +183,8 @@ import { import { AND_UPPER, AUTHORIZATION_DIRECTIVES, + BOOLEAN, + BYPASS_IF_VALUES_NULL, CONDITION, DEPRECATED, ENUM_VALUE, @@ -2628,10 +2630,32 @@ export class FederationFactory { const duplicatedFieldNames = new Set(); const invalidFieldNames = new Set(); const fieldErrorMessages: string[] = []; + let hasSeenBypassIfValuesNull = false; for (const objectFieldNode of objectValueNode.fields) { const inputFieldName = objectFieldNode.name.value; const inputFieldPath = inputPath + `.${inputFieldName}`; switch (inputFieldName) { + case BYPASS_IF_VALUES_NULL: { + if (hasSeenBypassIfValuesNull) { + hasErrors = true; + duplicatedFieldNames.add(BYPASS_IF_VALUES_NULL); + break; + } + hasSeenBypassIfValuesNull = true; + if (objectFieldNode.value.kind !== Kind.BOOLEAN) { + fieldErrorMessages.push( + invalidInputFieldTypeErrorMessage(inputFieldPath, BOOLEAN, kindToNodeType(objectFieldNode.value.kind)), + ); + hasErrors = true; + break; + } + // Only persist when explicitly true. Explicit false collapses to undefined so the + // serializer can emit the smallest proto for unchanged configs. + if (objectFieldNode.value.value === true) { + condition.bypassIfValuesNull = true; + } + break; + } case FIELD_PATH: { if (validFieldNames.has(FIELD_PATH)) { validFieldNames.delete(FIELD_PATH); diff --git a/composition/tests/v1/directives/subscription-filter.test.ts b/composition/tests/v1/directives/subscription-filter.test.ts index 6c6084f879..ef4598b4f4 100644 --- a/composition/tests/v1/directives/subscription-filter.test.ts +++ b/composition/tests/v1/directives/subscription-filter.test.ts @@ -1,5 +1,6 @@ import { describe, expect, test } from 'vitest'; import { + BOOLEAN, CONDITION, FIRST_ORDINAL, inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage, @@ -19,6 +20,7 @@ import { OBJECT, parse, ROUTER_COMPATIBILITY_VERSION_ONE, + STRING_SCALAR, type Subgraph, subgraphValidationError, SUBSCRIPTION, @@ -453,6 +455,116 @@ describe('@openfed__subscriptionFilter tests', () => { ]); }); + test('that bypassIfValuesNull: true is preserved on the IN condition', () => { + const result = federateSubgraphsSuccess([subgraphB, subgraphBypass1], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.success).toBe(true); + expect(result.fieldConfigurations).toStrictEqual([ + { + argumentNames: [], + fieldName: 'field', + subscriptionFilterCondition: { + in: { + bypassIfValuesNull: true, + fieldPath: ['id'], + values: ['1'], + }, + }, + typeName: SUBSCRIPTION, + }, + ]); + }); + + test('that bypassIfValuesNull: false collapses to undefined', () => { + const result = federateSubgraphsSuccess([subgraphB, subgraphBypass2], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.success).toBe(true); + expect(result.fieldConfigurations).toStrictEqual([ + { + argumentNames: [], + fieldName: 'field', + subscriptionFilterCondition: { + in: { + fieldPath: ['id'], + values: ['1'], + }, + }, + typeName: SUBSCRIPTION, + }, + ]); + }); + + test('that omitting bypassIfValuesNull leaves the IN condition unchanged', () => { + const result = federateSubgraphsSuccess([subgraphB, subgraphC], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.success).toBe(true); + expect(result.fieldConfigurations).toStrictEqual([ + { + argumentNames: [], + fieldName: 'field', + subscriptionFilterCondition: { + in: { + fieldPath: ['id'], + values: ['1'], + }, + }, + typeName: SUBSCRIPTION, + }, + ]); + }); + + test('that bypassIfValuesNull is propagated through nested OR/IN conditions', () => { + const result = federateSubgraphsSuccess([subgraphB, subgraphBypass3], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.success).toBe(true); + expect(result.fieldConfigurations).toStrictEqual([ + { + argumentNames: [], + fieldName: 'field', + subscriptionFilterCondition: { + or: [ + { + in: { + bypassIfValuesNull: true, + fieldPath: ['id'], + values: ['1'], + }, + }, + { + in: { + fieldPath: ['id'], + values: ['2'], + }, + }, + ], + }, + typeName: SUBSCRIPTION, + }, + ]); + }); + + test('that an error is returned if bypassIfValuesNull is not a Boolean', () => { + const result = federateSubgraphsFailure([subgraphB, subgraphBypass4], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.errors).toHaveLength(1); + expect(result.errors).toStrictEqual([ + invalidSubscriptionFilterDirectiveError('Subscription.field', [ + subscriptionFieldConditionInvalidInputFieldErrorMessage( + 'condition.IN', + [], + [], + [], + [invalidInputFieldTypeErrorMessage('condition.IN.bypassIfValuesNull', BOOLEAN, STRING_SCALAR)], + ), + ]), + ]); + }); + + test('that an error is returned if bypassIfValuesNull is duplicated', () => { + const result = federateSubgraphsFailure([subgraphB, subgraphBypass5], ROUTER_COMPATIBILITY_VERSION_ONE); + expect(result.errors).toHaveLength(1); + expect(result.errors).toStrictEqual([ + invalidSubscriptionFilterDirectiveError('Subscription.field', [ + subscriptionFieldConditionInvalidInputFieldErrorMessage('condition.IN', [], ['bypassIfValuesNull'], [], []), + ]), + ]); + }); + test('that an entity can be defined as an extension in an EDG', () => { const { federatedGraphSchema } = federateSubgraphsSuccess( [subgraphQ, subgraphR], @@ -659,23 +771,24 @@ const subgraphG: Subgraph = { type Entity @key(fields: "id", resolvable: false) { id: ID! @external } - + type Subscription { field: Entity! @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) @openfed__subscriptionFilter(condition: { IN: { fieldPath: "id", values: [1] } }) } - + input openfed__SubscriptionFieldCondition { + bypassIfValuesNull: Boolean fieldPath: String! values: [openfed__SubscriptionFilterValue]! } - + input openfed__SubscriptionFilterCondition { AND: [openfed__SubscriptionFilterCondition!] IN: openfed__SubscriptionFieldCondition NOT: openfed__SubscriptionFilterCondition OR: [openfed__SubscriptionFilterCondition!] } - + scalar openfed__SubscriptionFilterValue `), }; @@ -927,3 +1040,80 @@ const subgraphR: Subgraph = { } `), }; + +const subgraphBypass1: Subgraph = { + name: 'subgraph-bypass-1', + url: '', + definitions: parse(` + type Entity @key(fields: "id", resolvable: false) { + id: ID! @external + } + + type Subscription { + field: Entity! @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) @openfed__subscriptionFilter(condition: { IN: { fieldPath: "id", values: ["1"], bypassIfValuesNull: true } }) + } + `), +}; + +const subgraphBypass2: Subgraph = { + name: 'subgraph-bypass-2', + url: '', + definitions: parse(` + type Entity @key(fields: "id", resolvable: false) { + id: ID! @external + } + + type Subscription { + field: Entity! @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) @openfed__subscriptionFilter(condition: { IN: { fieldPath: "id", values: ["1"], bypassIfValuesNull: false } }) + } + `), +}; + +const subgraphBypass3: Subgraph = { + name: 'subgraph-bypass-3', + url: '', + definitions: parse(` + type Entity @key(fields: "id", resolvable: false) { + id: ID! @external + } + + type Subscription { + field: Entity! + @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) + @openfed__subscriptionFilter(condition: { + OR: [ + { IN: { fieldPath: "id", values: ["1"], bypassIfValuesNull: true } }, + { IN: { fieldPath: "id", values: ["2"] } } + ] + }) + } + `), +}; + +const subgraphBypass4: Subgraph = { + name: 'subgraph-bypass-4', + url: '', + definitions: parse(` + type Entity @key(fields: "id", resolvable: false) { + id: ID! @external + } + + type Subscription { + field: Entity! @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) @openfed__subscriptionFilter(condition: { IN: { fieldPath: "id", values: ["1"], bypassIfValuesNull: "yes" } }) + } + `), +}; + +const subgraphBypass5: Subgraph = { + name: 'subgraph-bypass-5', + url: '', + definitions: parse(` + type Entity @key(fields: "id", resolvable: false) { + id: ID! @external + } + + type Subscription { + field: Entity! @edfs__kafkaSubscribe(topics: ["employeeUpdated"]) @openfed__subscriptionFilter(condition: { IN: { fieldPath: "id", values: ["1"], bypassIfValuesNull: true, bypassIfValuesNull: false } }) + } + `), +}; diff --git a/composition/tests/v1/utils/utils.ts b/composition/tests/v1/utils/utils.ts index 105b7bfe57..689f7746d4 100644 --- a/composition/tests/v1/utils/utils.ts +++ b/composition/tests/v1/utils/utils.ts @@ -82,6 +82,7 @@ export const OPENFED_SCOPE = ` scalar openfed__Scope`; export const OPENFED_SUBSCRIPTION_FIELD_CONDITION = ` input openfed__SubscriptionFieldCondition { + bypassIfValuesNull: Boolean fieldPath: String! values: [openfed__SubscriptionFilterValue]! } diff --git a/connect-go/gen/proto/wg/cosmo/node/v1/node.pb.go b/connect-go/gen/proto/wg/cosmo/node/v1/node.pb.go index 3d9776a6ca..4b8213ad3f 100644 --- a/connect-go/gen/proto/wg/cosmo/node/v1/node.pb.go +++ b/connect-go/gen/proto/wg/cosmo/node/v1/node.pb.go @@ -4191,11 +4191,12 @@ func (x *SingleTypeField) GetFieldName() string { } type SubscriptionFieldCondition struct { - state protoimpl.MessageState `protogen:"open.v1"` - FieldPath []string `protobuf:"bytes,1,rep,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` - Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FieldPath []string `protobuf:"bytes,1,rep,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` + Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` + BypassIfValuesNull *bool `protobuf:"varint,3,opt,name=bypass_if_values_null,json=bypassIfValuesNull,proto3,oneof" json:"bypass_if_values_null,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscriptionFieldCondition) Reset() { @@ -4242,6 +4243,13 @@ func (x *SubscriptionFieldCondition) GetJson() string { return "" } +func (x *SubscriptionFieldCondition) GetBypassIfValuesNull() bool { + if x != nil && x.BypassIfValuesNull != nil { + return *x.BypassIfValuesNull + } + return false +} + type SubscriptionFilterCondition struct { state protoimpl.MessageState `protogen:"open.v1"` And []*SubscriptionFilterCondition `protobuf:"bytes,1,rep,name=and,proto3" json:"and,omitempty"` @@ -4939,11 +4947,13 @@ const file_wg_cosmo_node_v1_node_proto_rawDesc = "" + "\x0fSingleTypeField\x12\x1b\n" + "\ttype_name\x18\x01 \x01(\tR\btypeName\x12\x1d\n" + "\n" + - "field_name\x18\x02 \x01(\tR\tfieldName\"O\n" + + "field_name\x18\x02 \x01(\tR\tfieldName\"\xa1\x01\n" + "\x1aSubscriptionFieldCondition\x12\x1d\n" + "\n" + "field_path\x18\x01 \x03(\tR\tfieldPath\x12\x12\n" + - "\x04json\x18\x02 \x01(\tR\x04json\"\xb5\x02\n" + + "\x04json\x18\x02 \x01(\tR\x04json\x126\n" + + "\x15bypass_if_values_null\x18\x03 \x01(\bH\x00R\x12bypassIfValuesNull\x88\x01\x01B\x18\n" + + "\x16_bypass_if_values_null\"\xb5\x02\n" + "\x1bSubscriptionFilterCondition\x12?\n" + "\x03and\x18\x01 \x03(\v2-.wg.cosmo.node.v1.SubscriptionFilterConditionR\x03and\x12A\n" + "\x02in\x18\x02 \x01(\v2,.wg.cosmo.node.v1.SubscriptionFieldConditionH\x00R\x02in\x88\x01\x01\x12D\n" + @@ -5243,6 +5253,7 @@ func file_wg_cosmo_node_v1_node_proto_init() { file_wg_cosmo_node_v1_node_proto_msgTypes[25].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[30].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[55].OneofWrappers = []any{} + file_wg_cosmo_node_v1_node_proto_msgTypes[59].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[60].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/connect/src/wg/cosmo/node/v1/node_pb.ts b/connect/src/wg/cosmo/node/v1/node_pb.ts index b50794f361..874732a6db 100644 --- a/connect/src/wg/cosmo/node/v1/node_pb.ts +++ b/connect/src/wg/cosmo/node/v1/node_pb.ts @@ -3389,6 +3389,11 @@ export class SubscriptionFieldCondition extends Message) { super(); proto3.util.initPartial(data, this); @@ -3399,6 +3404,7 @@ export class SubscriptionFieldCondition extends Message [ { no: 1, name: "field_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "json", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "bypass_if_values_null", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubscriptionFieldCondition { diff --git a/proto/wg/cosmo/node/v1/node.proto b/proto/wg/cosmo/node/v1/node.proto index af7bd79bb4..e6c8947f09 100644 --- a/proto/wg/cosmo/node/v1/node.proto +++ b/proto/wg/cosmo/node/v1/node.proto @@ -506,6 +506,7 @@ message SingleTypeField { message SubscriptionFieldCondition { repeated string field_path = 1; string json = 2; + optional bool bypass_if_values_null = 3; } message SubscriptionFilterCondition { diff --git a/router-tests/events/nats_subscription_filter_bypass_test.go b/router-tests/events/nats_subscription_filter_bypass_test.go new file mode 100644 index 0000000000..87684b48e3 --- /dev/null +++ b/router-tests/events/nats_subscription_filter_bypass_test.go @@ -0,0 +1,362 @@ +package events_test + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "github.com/wundergraph/cosmo/router-tests/testenv" + "github.com/wundergraph/cosmo/router/pkg/config" +) + +// buildBypassIfValuesNullConfig returns a router config JSON template derived from +// ConfigWithEdfsNatsJSONTemplate with two adjustments: +// +// - `filteredEmployeeUpdated` accepts a new optional argument `filterById: Int`. +// - the field's subscription filter is rewritten to +// `IN { fieldPath: ["id"], values: ["{{ args.filterById }}"], bypassIfValuesNull: true }`. +// +// The existing argument `id: Int!` remains in place and continues to drive the NATS +// subject template (`employeeUpdated.{{ args.id }}`). The new optional argument is +// only used by the filter, so subscriptions can omit it (or pass null) without +// breaking subject resolution. That isolates the bypass behavior under test. +func buildBypassIfValuesNullConfig(t *testing.T) string { + t.Helper() + + cfg := testenv.ConfigWithEdfsNatsJSONTemplate + + // Add the new optional argument to every place the field is declared in the + // embedded GraphQL schemas (federated graph, subgraph SDLs, router schema). + const oldField = `filteredEmployeeUpdated(id: Int!)` + const newField = `filteredEmployeeUpdated(id: Int!, filterById: Int)` + require.Greater(t, strings.Count(cfg, oldField), 0, + "expected source config to contain %q", oldField) + cfg = strings.ReplaceAll(cfg, oldField, newField) + + // Update the field configuration on the router so the engine knows about the + // new argument source. Only one structural occurrence exists in the JSON. + const oldArgsCfg = `"typeName": "Subscription", + "fieldName": "filteredEmployeeUpdated", + "argumentsConfiguration": [ + { + "name": "id", + "sourceType": "FIELD_ARGUMENT" + } + ],` + const newArgsCfg = `"typeName": "Subscription", + "fieldName": "filteredEmployeeUpdated", + "argumentsConfiguration": [ + { + "name": "id", + "sourceType": "FIELD_ARGUMENT" + }, + { + "name": "filterById", + "sourceType": "FIELD_ARGUMENT" + } + ],` + require.Equal(t, 1, strings.Count(cfg, oldArgsCfg), + "expected exactly one filteredEmployeeUpdated argumentsConfiguration block") + cfg = strings.ReplaceAll(cfg, oldArgsCfg, newArgsCfg) + + // Replace the existing NOT IN filter with an IN-with-bypass filter targeting the + // new optional argument. The same JSON snippet appears once in the router + // engine config and once inside the data source nested config — both must be + // rewritten. + const oldFilter = `"subscriptionFilterCondition": { + "not": { + "in": { + "fieldPath": [ + "id" + ], + "json": "[2,6,9,10,12]" + } + } + }` + const newFilter = `"subscriptionFilterCondition": { + "in": { + "fieldPath": [ + "id" + ], + "json": "[\"{{ args.filterById }}\"]", + "bypassIfValuesNull": true + } + }` + require.Equal(t, 1, strings.Count(cfg, oldFilter), + "expected exactly one top-level filteredEmployeeUpdated filter") + cfg = strings.ReplaceAll(cfg, oldFilter, newFilter) + + // The data-source-level filter has slightly deeper indentation. + const oldFilterNested = `"subscriptionFilterCondition": { + "not": { + "in": { + "fieldPath": [ + "id" + ], + "json": "[2,6,9,10,12]" + } + } + }` + const newFilterNested = `"subscriptionFilterCondition": { + "in": { + "fieldPath": [ + "id" + ], + "json": "[\"{{ args.filterById }}\"]", + "bypassIfValuesNull": true + } + }` + require.Equal(t, 1, strings.Count(cfg, oldFilterNested), + "expected exactly one nested data-source filteredEmployeeUpdated filter") + cfg = strings.ReplaceAll(cfg, oldFilterNested, newFilterNested) + + return cfg +} + +func TestNatsSubscriptionFilterBypassIfValuesNull(t *testing.T) { + t.Parallel() + + cfg := buildBypassIfValuesNullConfig(t) + + type subscriptionPayload struct { + Data struct { + FilteredEmployeeUpdated struct { + ID float64 `graphql:"id"` + } `json:"filteredEmployeeUpdated"` + } `json:"data"` + } + + t.Run("explicit filterById receives only events whose id equals filterById", func(t *testing.T) { + t.Parallel() + + testenv.Run(t, &testenv.Config{ + RouterConfigJSONTemplate: cfg, + EnableNats: true, + ModifyEngineExecutionConfiguration: func(cfg *config.EngineExecutionConfiguration) { + cfg.WebSocketServerReadTimeout = time.Second + }, + }, func(t *testing.T, xEnv *testenv.Environment) { + conn := xEnv.InitGraphQLWebSocketConnection(nil, nil, nil) + err := conn.WriteJSON(&testenv.WebSocketMessage{ + ID: "1", + Type: "subscribe", + Payload: []byte( + `{"query":"subscription { filteredEmployeeUpdated(id: 1, filterById: 1) { id } }"}`, + ), + }) + require.NoError(t, err) + + xEnv.WaitForSubscriptionCount(1, EventWaitTimeout) + xEnv.WaitForTriggerCount(1, EventWaitTimeout) + + // Warm-up with id=1 so the subscription pipeline is wired before the + // noise events arrive. + subject := xEnv.GetPubSubName("employeeUpdated.1") + xEnv.NATSPublishUntilReceived( + xEnv.NatsConnectionDefault, subject, + []byte(`{"id":1,"__typename":"Employee"}`), 1, EventWaitTimeout, + ) + + var msg testenv.WebSocketMessage + var payload subscriptionPayload + + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.Equal(t, "1", msg.ID) + require.Equal(t, "next", msg.Type) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(1), payload.Data.FilteredEmployeeUpdated.ID) + + // id=2 must be filtered out because filterById=1. + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(`{"id":2,"__typename":"Employee"}`))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + // id=1 must pass the filter again. + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(`{"id":1,"__typename":"Employee"}`))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(1), payload.Data.FilteredEmployeeUpdated.ID, + "only id=1 should pass when filterById=1") + }) + }) + + t.Run("filterById variable absent from variables map -> bypass passes all events", func(t *testing.T) { + t.Parallel() + + testenv.Run(t, &testenv.Config{ + RouterConfigJSONTemplate: cfg, + EnableNats: true, + ModifyEngineExecutionConfiguration: func(cfg *config.EngineExecutionConfiguration) { + cfg.WebSocketServerReadTimeout = time.Second + }, + }, func(t *testing.T, xEnv *testenv.Environment) { + // `$filterById` is declared on the operation but never supplied through + // the `variables` map. This is the canonical "customer did not provide + // the optional argument" case from Linear ENG-9357. + conn := xEnv.InitGraphQLWebSocketConnection(nil, nil, nil) + err := conn.WriteJSON(&testenv.WebSocketMessage{ + ID: "1", + Type: "subscribe", + Payload: []byte( + `{"query":"subscription FilterByIdMaybe($filterById: Int) { filteredEmployeeUpdated(id: 1, filterById: $filterById) { id } }"}`, + ), + }) + require.NoError(t, err) + + xEnv.WaitForSubscriptionCount(1, EventWaitTimeout) + xEnv.WaitForTriggerCount(1, EventWaitTimeout) + + subject := xEnv.GetPubSubName("employeeUpdated.1") + xEnv.NATSPublishUntilReceived( + xEnv.NatsConnectionDefault, subject, + []byte(`{"id":1,"__typename":"Employee"}`), 1, EventWaitTimeout, + ) + + var msg testenv.WebSocketMessage + var payload subscriptionPayload + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(1), payload.Data.FilteredEmployeeUpdated.ID) + + received := []float64{1} + for i := 2; i <= 5; i++ { + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(fmt.Sprintf(`{"id":%d,"__typename":"Employee"}`, i)))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + received = append(received, payload.Data.FilteredEmployeeUpdated.ID) + } + assert.Equal(t, []float64{1, 2, 3, 4, 5}, received) + }) + }) + + t.Run("explicit null filterById variable -> bypass passes all events", func(t *testing.T) { + t.Parallel() + + testenv.Run(t, &testenv.Config{ + RouterConfigJSONTemplate: cfg, + EnableNats: true, + ModifyEngineExecutionConfiguration: func(cfg *config.EngineExecutionConfiguration) { + cfg.WebSocketServerReadTimeout = time.Second + }, + }, func(t *testing.T, xEnv *testenv.Environment) { + conn := xEnv.InitGraphQLWebSocketConnection(nil, nil, nil) + err := conn.WriteJSON(&testenv.WebSocketMessage{ + ID: "1", + Type: "subscribe", + Payload: []byte( + `{"query":"subscription FilterByIdMaybe($filterById: Int) { filteredEmployeeUpdated(id: 1, filterById: $filterById) { id } }",` + + `"variables":{"filterById":null}}`, + ), + }) + require.NoError(t, err) + + xEnv.WaitForSubscriptionCount(1, EventWaitTimeout) + xEnv.WaitForTriggerCount(1, EventWaitTimeout) + + subject := xEnv.GetPubSubName("employeeUpdated.1") + xEnv.NATSPublishUntilReceived( + xEnv.NatsConnectionDefault, subject, + []byte(`{"id":1,"__typename":"Employee"}`), 1, EventWaitTimeout, + ) + + var msg testenv.WebSocketMessage + var payload subscriptionPayload + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(1), payload.Data.FilteredEmployeeUpdated.ID) + + // Even ids that would normally be filtered must arrive when filterById is null. + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(`{"id":42,"__typename":"Employee"}`))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(42), payload.Data.FilteredEmployeeUpdated.ID, + "explicit null filterById should bypass the filter") + }) + }) + + t.Run("filterById set to non-matching value drops events", func(t *testing.T) { + t.Parallel() + + testenv.Run(t, &testenv.Config{ + RouterConfigJSONTemplate: cfg, + EnableNats: true, + ModifyEngineExecutionConfiguration: func(cfg *config.EngineExecutionConfiguration) { + cfg.WebSocketServerReadTimeout = time.Second + }, + }, func(t *testing.T, xEnv *testenv.Environment) { + conn := xEnv.InitGraphQLWebSocketConnection(nil, nil, nil) + err := conn.WriteJSON(&testenv.WebSocketMessage{ + ID: "1", + Type: "subscribe", + Payload: []byte( + `{"query":"subscription { filteredEmployeeUpdated(id: 1, filterById: 99) { id } }"}`, + ), + }) + require.NoError(t, err) + + xEnv.WaitForSubscriptionCount(1, EventWaitTimeout) + xEnv.WaitForTriggerCount(1, EventWaitTimeout) + + subject := xEnv.GetPubSubName("employeeUpdated.1") + + // Warm up the pipeline with a payload the filter accepts. + xEnv.NATSPublishUntilReceived( + xEnv.NatsConnectionDefault, subject, + []byte(`{"id":99,"__typename":"Employee"}`), 1, EventWaitTimeout, + ) + + var msg testenv.WebSocketMessage + var payload subscriptionPayload + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(99), payload.Data.FilteredEmployeeUpdated.ID) + + // id=1 must be filtered out. + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(`{"id":1,"__typename":"Employee"}`))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + // Bridge to a second matching event so we can assert ordering: anything + // that arrives between the two id=99 events should not include id=1. + require.NoError(t, xEnv.NatsConnectionDefault.Publish(subject, + []byte(`{"id":99,"__typename":"Employee"}`))) + require.NoError(t, xEnv.NatsConnectionDefault.Flush()) + + require.NoError(t, testenv.WSReadJSON(t, conn, &msg)) + require.NoError(t, json.Unmarshal(msg.Payload, &payload)) + assert.Equal(t, float64(99), payload.Data.FilteredEmployeeUpdated.ID, + "only id=99 events should pass when filterById=99") + + // One last sanity check: no buffered id=1 events leak through later. + ctx, cancel := context.WithTimeout(xEnv.Context, 500*time.Millisecond) + defer cancel() + done := make(chan testenv.WebSocketMessage, 1) + go func() { + var unexpected testenv.WebSocketMessage + if err := conn.ReadJSON(&unexpected); err == nil { + done <- unexpected + } + }() + select { + case unexpected := <-done: + t.Fatalf("unexpected message arrived after filtered events: %+v", unexpected) + case <-ctx.Done(): + // no further messages — filter held. + } + }) + }) +} diff --git a/router-tests/go.mod b/router-tests/go.mod index 862856a1ae..9bc7d68232 100644 --- a/router-tests/go.mod +++ b/router-tests/go.mod @@ -30,7 +30,7 @@ require ( github.com/wundergraph/cosmo/router v0.0.0-20260323091151-a7de617c31d0 github.com/wundergraph/cosmo/router-plugin v0.0.0-20250808194725-de123ba1c65e github.com/wundergraph/cosmo/speedtrap v0.0.0-00010101000000-000000000000 - github.com/wundergraph/graphql-go-tools/v2 v2.1.0 + github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5 go.opentelemetry.io/otel v1.39.0 go.opentelemetry.io/otel/sdk v1.39.0 go.opentelemetry.io/otel/sdk/metric v1.39.0 diff --git a/router-tests/go.sum b/router-tests/go.sum index 28e214572e..2e4ba94b96 100644 --- a/router-tests/go.sum +++ b/router-tests/go.sum @@ -367,8 +367,8 @@ github.com/wundergraph/astjson v1.1.0 h1:xORDosrZ87zQFJwNGe/HIHXqzpdHOFmqWgykCLV github.com/wundergraph/astjson v1.1.0/go.mod h1:h12D/dxxnedtLzsKyBLK7/Oe4TAoGpRVC9nDpDrZSWw= github.com/wundergraph/go-arena v1.1.0 h1:9+wSRkJAkA2vbYHp6s8tEGhPViRGQNGXqPHT0QzhdIc= github.com/wundergraph/go-arena v1.1.0/go.mod h1:ROOysEHWJjLQ8FSfNxZCziagb7Qw2nXY3/vgKRh7eWw= -github.com/wundergraph/graphql-go-tools/v2 v2.1.0 h1:V1MU/uo+oc5b+aIh3SpCr0rJgLHuhonWg2fhN1sfMdY= -github.com/wundergraph/graphql-go-tools/v2 v2.1.0/go.mod h1:UG/grnPEHumtD82H8FC+3dokiCGK8GF0b5IJc00lSbM= +github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5 h1:pO8NkNyJ4pCU86l1KhCxUbmR+toe5a+PNYc+R5MSVLY= +github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5/go.mod h1:UG/grnPEHumtD82H8FC+3dokiCGK8GF0b5IJc00lSbM= github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 h1:FnBeRrxr7OU4VvAzt5X7s6266i6cSVkkFPS0TuXWbIg= github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= diff --git a/router/core/factoryresolver.go b/router/core/factoryresolver.go index 2a4446d1a6..7ae9bd86ab 100644 --- a/router/core/factoryresolver.go +++ b/router/core/factoryresolver.go @@ -281,8 +281,9 @@ func mapProtoFilterToPlanFilter(input *nodev1.SubscriptionFilterCondition, outpu return nil } output.In = &plan.SubscriptionFieldCondition{ - FieldPath: input.In.FieldPath, - Values: values, + FieldPath: input.In.FieldPath, + Values: values, + BypassIfValuesNull: input.In.GetBypassIfValuesNull(), } return output } diff --git a/router/core/factoryresolver_test.go b/router/core/factoryresolver_test.go new file mode 100644 index 0000000000..e1f2b7c43a --- /dev/null +++ b/router/core/factoryresolver_test.go @@ -0,0 +1,155 @@ +package core + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + nodev1 "github.com/wundergraph/cosmo/router/gen/proto/wg/cosmo/node/v1" + "github.com/wundergraph/graphql-go-tools/v2/pkg/engine/plan" +) + +func TestMapProtoFilterToPlanFilter(t *testing.T) { + t.Parallel() + + t.Run("returns nil for nil input", func(t *testing.T) { + t.Parallel() + got := mapProtoFilterToPlanFilter(nil, &plan.SubscriptionFilterCondition{}) + assert.Nil(t, got) + }) + + t.Run("propagates BypassIfValuesNull=true onto IN", func(t *testing.T) { + t.Parallel() + + flag := true + input := &nodev1.SubscriptionFilterCondition{ + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Json: `["foo"]`, + BypassIfValuesNull: &flag, + }, + } + + got := mapProtoFilterToPlanFilter(input, &plan.SubscriptionFilterCondition{}) + require.NotNil(t, got) + require.NotNil(t, got.In) + assert.Equal(t, &plan.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Values: []string{`"foo"`}, + BypassIfValuesNull: true, + }, got.In) + }) + + t.Run("treats unset BypassIfValuesNull as false on IN", func(t *testing.T) { + t.Parallel() + + input := &nodev1.SubscriptionFilterCondition{ + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Json: `["foo"]`, + }, + } + + got := mapProtoFilterToPlanFilter(input, &plan.SubscriptionFilterCondition{}) + require.NotNil(t, got) + require.NotNil(t, got.In) + assert.Equal(t, &plan.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Values: []string{`"foo"`}, + BypassIfValuesNull: false, + }, got.In) + }) + + t.Run("treats explicit BypassIfValuesNull=false as false on IN", func(t *testing.T) { + t.Parallel() + + flag := false + input := &nodev1.SubscriptionFilterCondition{ + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Json: `["foo"]`, + BypassIfValuesNull: &flag, + }, + } + + got := mapProtoFilterToPlanFilter(input, &plan.SubscriptionFilterCondition{}) + require.NotNil(t, got) + require.NotNil(t, got.In) + assert.Equal(t, &plan.SubscriptionFieldCondition{ + FieldPath: []string{"productName"}, + Values: []string{`"foo"`}, + BypassIfValuesNull: false, + }, got.In) + }) + + t.Run("propagates BypassIfValuesNull through nested OR", func(t *testing.T) { + t.Parallel() + + flag := true + input := &nodev1.SubscriptionFilterCondition{ + Or: []*nodev1.SubscriptionFilterCondition{ + { + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Json: `["1"]`, + BypassIfValuesNull: &flag, + }, + }, + { + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Json: `["2"]`, + }, + }, + }, + } + + got := mapProtoFilterToPlanFilter(input, &plan.SubscriptionFilterCondition{}) + require.NotNil(t, got) + assert.Equal(t, []plan.SubscriptionFilterCondition{ + { + In: &plan.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Values: []string{`"1"`}, + BypassIfValuesNull: true, + }, + }, + { + In: &plan.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Values: []string{`"2"`}, + BypassIfValuesNull: false, + }, + }, + }, got.Or) + }) + + t.Run("propagates BypassIfValuesNull through AND > NOT", func(t *testing.T) { + t.Parallel() + + flag := true + input := &nodev1.SubscriptionFilterCondition{ + And: []*nodev1.SubscriptionFilterCondition{ + { + Not: &nodev1.SubscriptionFilterCondition{ + In: &nodev1.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Json: `["1"]`, + BypassIfValuesNull: &flag, + }, + }, + }, + }, + } + + got := mapProtoFilterToPlanFilter(input, &plan.SubscriptionFilterCondition{}) + require.NotNil(t, got) + require.Len(t, got.And, 1) + require.NotNil(t, got.And[0].Not) + assert.Equal(t, &plan.SubscriptionFieldCondition{ + FieldPath: []string{"id"}, + Values: []string{`"1"`}, + BypassIfValuesNull: true, + }, got.And[0].Not.In) + }) +} diff --git a/router/gen/proto/wg/cosmo/node/v1/node.pb.go b/router/gen/proto/wg/cosmo/node/v1/node.pb.go index 0384fac5a6..ba4229c145 100644 --- a/router/gen/proto/wg/cosmo/node/v1/node.pb.go +++ b/router/gen/proto/wg/cosmo/node/v1/node.pb.go @@ -4191,11 +4191,12 @@ func (x *SingleTypeField) GetFieldName() string { } type SubscriptionFieldCondition struct { - state protoimpl.MessageState `protogen:"open.v1"` - FieldPath []string `protobuf:"bytes,1,rep,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` - Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FieldPath []string `protobuf:"bytes,1,rep,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"` + Json string `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` + BypassIfValuesNull *bool `protobuf:"varint,3,opt,name=bypass_if_values_null,json=bypassIfValuesNull,proto3,oneof" json:"bypass_if_values_null,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscriptionFieldCondition) Reset() { @@ -4242,6 +4243,13 @@ func (x *SubscriptionFieldCondition) GetJson() string { return "" } +func (x *SubscriptionFieldCondition) GetBypassIfValuesNull() bool { + if x != nil && x.BypassIfValuesNull != nil { + return *x.BypassIfValuesNull + } + return false +} + type SubscriptionFilterCondition struct { state protoimpl.MessageState `protogen:"open.v1"` And []*SubscriptionFilterCondition `protobuf:"bytes,1,rep,name=and,proto3" json:"and,omitempty"` @@ -4939,11 +4947,13 @@ const file_wg_cosmo_node_v1_node_proto_rawDesc = "" + "\x0fSingleTypeField\x12\x1b\n" + "\ttype_name\x18\x01 \x01(\tR\btypeName\x12\x1d\n" + "\n" + - "field_name\x18\x02 \x01(\tR\tfieldName\"O\n" + + "field_name\x18\x02 \x01(\tR\tfieldName\"\xa1\x01\n" + "\x1aSubscriptionFieldCondition\x12\x1d\n" + "\n" + "field_path\x18\x01 \x03(\tR\tfieldPath\x12\x12\n" + - "\x04json\x18\x02 \x01(\tR\x04json\"\xb5\x02\n" + + "\x04json\x18\x02 \x01(\tR\x04json\x126\n" + + "\x15bypass_if_values_null\x18\x03 \x01(\bH\x00R\x12bypassIfValuesNull\x88\x01\x01B\x18\n" + + "\x16_bypass_if_values_null\"\xb5\x02\n" + "\x1bSubscriptionFilterCondition\x12?\n" + "\x03and\x18\x01 \x03(\v2-.wg.cosmo.node.v1.SubscriptionFilterConditionR\x03and\x12A\n" + "\x02in\x18\x02 \x01(\v2,.wg.cosmo.node.v1.SubscriptionFieldConditionH\x00R\x02in\x88\x01\x01\x12D\n" + @@ -5243,6 +5253,7 @@ func file_wg_cosmo_node_v1_node_proto_init() { file_wg_cosmo_node_v1_node_proto_msgTypes[25].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[30].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[55].OneofWrappers = []any{} + file_wg_cosmo_node_v1_node_proto_msgTypes[59].OneofWrappers = []any{} file_wg_cosmo_node_v1_node_proto_msgTypes[60].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ diff --git a/router/go.mod b/router/go.mod index c2604da4a6..c7921fa304 100644 --- a/router/go.mod +++ b/router/go.mod @@ -31,7 +31,7 @@ require ( github.com/tidwall/gjson v1.18.0 github.com/tidwall/sjson v1.2.5 github.com/twmb/franz-go v1.16.1 - github.com/wundergraph/graphql-go-tools/v2 v2.1.0 + github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5 // Do not upgrade, it renames attributes we rely on go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 go.opentelemetry.io/contrib/propagators/b3 v1.23.0 diff --git a/router/go.sum b/router/go.sum index 561cbf94cd..7dac31dcd2 100644 --- a/router/go.sum +++ b/router/go.sum @@ -327,8 +327,8 @@ github.com/wundergraph/astjson v1.1.0 h1:xORDosrZ87zQFJwNGe/HIHXqzpdHOFmqWgykCLV github.com/wundergraph/astjson v1.1.0/go.mod h1:h12D/dxxnedtLzsKyBLK7/Oe4TAoGpRVC9nDpDrZSWw= github.com/wundergraph/go-arena v1.1.0 h1:9+wSRkJAkA2vbYHp6s8tEGhPViRGQNGXqPHT0QzhdIc= github.com/wundergraph/go-arena v1.1.0/go.mod h1:ROOysEHWJjLQ8FSfNxZCziagb7Qw2nXY3/vgKRh7eWw= -github.com/wundergraph/graphql-go-tools/v2 v2.1.0 h1:V1MU/uo+oc5b+aIh3SpCr0rJgLHuhonWg2fhN1sfMdY= -github.com/wundergraph/graphql-go-tools/v2 v2.1.0/go.mod h1:UG/grnPEHumtD82H8FC+3dokiCGK8GF0b5IJc00lSbM= +github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5 h1:pO8NkNyJ4pCU86l1KhCxUbmR+toe5a+PNYc+R5MSVLY= +github.com/wundergraph/graphql-go-tools/v2 v2.1.1-0.20260504064838-5a00844995b5/go.mod h1:UG/grnPEHumtD82H8FC+3dokiCGK8GF0b5IJc00lSbM= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M= diff --git a/shared/src/router-config/graphql-configuration.ts b/shared/src/router-config/graphql-configuration.ts index b7b633dba1..2563c378ab 100644 --- a/shared/src/router-config/graphql-configuration.ts +++ b/shared/src/router-config/graphql-configuration.ts @@ -293,10 +293,14 @@ export function generateSubscriptionFilterCondition( return; } if (condition.in !== undefined) { - protoMessage.in = new SubscriptionFieldCondition({ + const fieldCondition = new SubscriptionFieldCondition({ fieldPath: condition.in.fieldPath, json: JSON.stringify(condition.in.values), }); + if (condition.in.bypassIfValuesNull === true) { + fieldCondition.bypassIfValuesNull = true; + } + protoMessage.in = fieldCondition; return; } if (condition.not !== undefined) { diff --git a/shared/test/subscription-filter.test.ts b/shared/test/subscription-filter.test.ts index f4ab58bc0a..2c7e92faeb 100644 --- a/shared/test/subscription-filter.test.ts +++ b/shared/test/subscription-filter.test.ts @@ -53,4 +53,92 @@ describe('Subscription filter proto generation tests', () => { }), ); }); + + test('that bypassIfValuesNull: true is emitted on the proto IN condition', () => { + const proto = new SubscriptionFilterCondition(); + generateSubscriptionFilterCondition(proto, { + in: { + bypassIfValuesNull: true, + fieldPath: ['id'], + values: ['1'], + }, + }); + expect(proto).toStrictEqual( + new SubscriptionFilterCondition({ + in: new SubscriptionFieldCondition({ + bypassIfValuesNull: true, + fieldPath: ['id'], + json: `["1"]`, + }), + }), + ); + }); + + test('that an undefined bypassIfValuesNull leaves the proto field unset', () => { + const proto = new SubscriptionFilterCondition(); + generateSubscriptionFilterCondition(proto, { + in: { + fieldPath: ['id'], + values: ['1'], + }, + }); + expect(proto).toStrictEqual( + new SubscriptionFilterCondition({ + in: new SubscriptionFieldCondition({ + fieldPath: ['id'], + json: `["1"]`, + }), + }), + ); + expect(proto.in?.bypassIfValuesNull).toBeUndefined(); + }); + + test('that bypassIfValuesNull: false leaves the proto field unset', () => { + const proto = new SubscriptionFilterCondition(); + generateSubscriptionFilterCondition(proto, { + in: { + bypassIfValuesNull: false, + fieldPath: ['id'], + values: ['1'], + }, + }); + expect(proto).toStrictEqual( + new SubscriptionFilterCondition({ + in: new SubscriptionFieldCondition({ + fieldPath: ['id'], + json: `["1"]`, + }), + }), + ); + expect(proto.in?.bypassIfValuesNull).toBeUndefined(); + }); + + test('that bypassIfValuesNull is propagated through nested OR conditions', () => { + const proto = new SubscriptionFilterCondition(); + generateSubscriptionFilterCondition(proto, { + or: [ + { in: { bypassIfValuesNull: true, fieldPath: ['id'], values: ['1'] } }, + { in: { fieldPath: ['id'], values: ['2'] } }, + ], + }); + expect(proto).toStrictEqual( + new SubscriptionFilterCondition({ + or: [ + new SubscriptionFilterCondition({ + in: new SubscriptionFieldCondition({ + bypassIfValuesNull: true, + fieldPath: ['id'], + json: `["1"]`, + }), + }), + new SubscriptionFilterCondition({ + in: new SubscriptionFieldCondition({ + fieldPath: ['id'], + json: `["2"]`, + }), + }), + ], + }), + ); + }); });