diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 6f543a0773..12794a6055 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -11,17 +11,17 @@ class URL { } } } -"use strict";var shim=(()=>{var p6=Object.create;var Of=Object.defineProperty,f6=Object.defineProperties,m6=Object.getOwnPropertyDescriptor,h6=Object.getOwnPropertyDescriptors,T6=Object.getOwnPropertyNames,aP=Object.getOwnPropertySymbols,y6=Object.getPrototypeOf,uP=Object.prototype.hasOwnProperty,N6=Object.prototype.propertyIsEnumerable;var An=Math.pow,Zv=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))uP.call(t,n)&&Zv(e,n,t[n]);if(aP)for(var n of aP(t))N6.call(t,n)&&Zv(e,n,t[n]);return e},G=(e,t)=>f6(e,h6(t));var ue=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sf=(e,t)=>{for(var n in t)Of(e,n,{get:t[n],enumerable:!0})},cP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of T6(t))!uP.call(e,i)&&i!==n&&Of(e,i,{get:()=>t[i],enumerable:!(r=m6(t,i))||r.enumerable});return e};var e_=(e,t,n)=>(n=e!=null?p6(y6(e)):{},cP(t||!e||!e.__esModule?Of(n,"default",{value:e,enumerable:!0}):n,e)),Me=e=>cP(Of({},"__esModule",{value:!0}),e);var A=(e,t,n)=>(Zv(e,typeof t!="symbol"?t+"":t,n),n);var yr=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{u(n.next(l))}catch(d){i(d)}},o=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);u((n=n.apply(e,t)).next())});var m=ue(()=>{"use strict"});var b={};Sf(b,{_debugEnd:()=>WP,_debugProcess:()=>HP,_events:()=>fk,_eventsCount:()=>mk,_exiting:()=>wP,_fatalExceptions:()=>QP,_getActiveHandles:()=>CP,_getActiveRequests:()=>kP,_kill:()=>UP,_linkedBinding:()=>RP,_maxListeners:()=>pk,_preload_modules:()=>ck,_rawDebug:()=>DP,_startProfilerIdleNotifier:()=>XP,_stopProfilerIdleNotifier:()=>ZP,_tickCallback:()=>zP,abort:()=>rk,addListener:()=>hk,allowedNodeEnvironmentFlags:()=>qP,arch:()=>mP,argv:()=>yP,argv0:()=>uk,assert:()=>KP,binding:()=>vP,chdir:()=>OP,config:()=>LP,cpuUsage:()=>Sy,cwd:()=>bP,debugPort:()=>ak,default:()=>bk,dlopen:()=>PP,domain:()=>FP,emit:()=>gk,emitWarning:()=>IP,env:()=>TP,execArgv:()=>NP,execPath:()=>ok,exit:()=>jP,features:()=>GP,hasUncaughtExceptionCaptureCallback:()=>JP,hrtime:()=>Oy,kill:()=>VP,listeners:()=>_k,memoryUsage:()=>BP,moduleLoadList:()=>AP,nextTick:()=>dP,off:()=>yk,on:()=>Aa,once:()=>Tk,openStdin:()=>$P,pid:()=>ik,platform:()=>hP,ppid:()=>sk,prependListener:()=>Ik,prependOnceListener:()=>vk,reallyExit:()=>xP,release:()=>SP,removeAllListeners:()=>Ek,removeListener:()=>Nk,resourceUsage:()=>MP,setSourceMapsEnabled:()=>lk,setUncaughtExceptionCaptureCallback:()=>YP,stderr:()=>tk,stdin:()=>nk,stdout:()=>ek,title:()=>fP,umask:()=>_P,uptime:()=>dk,version:()=>EP,versions:()=>gP});function r_(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function E6(){!vd||!zc||(vd=!1,zc.length?Da=zc.concat(Da):by=-1,Da.length&&lP())}function lP(){if(!vd){var e=setTimeout(E6,0);vd=!0;for(var t=Da.length;t;){for(zc=Da,Da=[];++by1)for(var n=1;n{"use strict";m();T();h();Da=[],vd=!1,by=-1;pP.prototype.run=function(){this.fun.apply(null,this.array)};fP="browser",mP="x64",hP="browser",TP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},yP=["/usr/bin/node"],NP=[],EP="v16.8.0",gP={},IP=function(e,t){console.warn((t?t+": ":"")+e)},vP=function(e){r_("binding")},_P=function(e){return 0},bP=function(){return"/"},OP=function(e){},SP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};DP=ti,AP=[];FP={},wP=!1,LP={};xP=ti,UP=ti,Sy=function(){return{}},MP=Sy,BP=Sy,VP=ti,jP=ti,$P=ti,qP={};GP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},QP=ti,YP=ti;zP=ti,HP=ti,WP=ti,XP=ti,ZP=ti,ek=void 0,tk=void 0,nk=void 0,rk=ti,ik=2,sk=1,ok="/bin/usr/node",ak=9229,uk="node",ck=[],lk=ti,nc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};nc.now===void 0&&(t_=Date.now(),nc.timing&&nc.timing.navigationStart&&(t_=nc.timing.navigationStart),nc.now=()=>Date.now()-t_);n_=1e9;Oy.bigint=function(e){var t=Oy(e);return typeof BigInt=="undefined"?t[0]*n_+t[1]:BigInt(t[0]*n_)+BigInt(t[1])};pk=10,fk={},mk=0;hk=Aa,Tk=Aa,yk=Aa,Nk=Aa,Ek=Aa,gk=ti,Ik=Aa,vk=Aa;bk={version:EP,versions:gP,arch:mP,platform:hP,release:SP,_rawDebug:DP,moduleLoadList:AP,binding:vP,_linkedBinding:RP,_events:fk,_eventsCount:mk,_maxListeners:pk,on:Aa,addListener:hk,once:Tk,off:yk,removeListener:Nk,removeAllListeners:Ek,emit:gk,prependListener:Ik,prependOnceListener:vk,listeners:_k,domain:FP,_exiting:wP,config:LP,dlopen:PP,uptime:dk,_getActiveRequests:kP,_getActiveHandles:CP,reallyExit:xP,_kill:UP,cpuUsage:Sy,resourceUsage:MP,memoryUsage:BP,kill:VP,exit:jP,openStdin:$P,allowedNodeEnvironmentFlags:qP,assert:KP,features:GP,_fatalExceptions:QP,setUncaughtExceptionCaptureCallback:YP,hasUncaughtExceptionCaptureCallback:JP,emitWarning:IP,nextTick:dP,_tickCallback:zP,_debugProcess:HP,_debugEnd:WP,_startProfilerIdleNotifier:XP,_stopProfilerIdleNotifier:ZP,stdout:ek,stdin:nk,stderr:tk,abort:rk,umask:_P,chdir:OP,cwd:bP,env:TP,title:fP,argv:yP,execArgv:NP,pid:ik,ppid:sk,execPath:ok,debugPort:ak,hrtime:Oy,argv0:uk,_preload_modules:ck,setSourceMapsEnabled:lk}});var h=ue(()=>{"use strict";Ok()});function g6(){if(Sk)return Df;Sk=!0,Df.byteLength=u,Df.toByteArray=d,Df.fromByteArray=N;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var x=I.indexOf("=");x===-1&&(x=O);var V=x===O?0:4-x%4;return[x,V]}function u(I){var O=o(I),x=O[0],V=O[1];return(x+V)*3/4-V}function l(I,O,x){return(O+x)*3/4-x}function d(I){var O,x=o(I),V=x[0],K=x[1],re=new n(l(I,V,K)),se=0,fe=K>0?V-4:V,he;for(he=0;he>16&255,re[se++]=O>>8&255,re[se++]=O&255;return K===2&&(O=t[I.charCodeAt(he)]<<2|t[I.charCodeAt(he+1)]>>4,re[se++]=O&255),K===1&&(O=t[I.charCodeAt(he)]<<10|t[I.charCodeAt(he+1)]<<4|t[I.charCodeAt(he+2)]>>2,re[se++]=O>>8&255,re[se++]=O&255),re}function p(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function y(I,O,x){for(var V,K=[],re=O;refe?fe:se+re));return V===1?(O=I[x-1],K.push(e[O>>2]+e[O<<4&63]+"==")):V===2&&(O=(I[x-2]<<8)+I[x-1],K.push(e[O>>10]+e[O>>4&63]+e[O<<2&63]+"=")),K.join("")}return Df}function I6(){if(Dk)return Dy;Dk=!0;return Dy.read=function(e,t,n,r,i){var s,o,u=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,N=n?-1:1,I=e[t+y];for(y+=N,s=I&(1<<-p)-1,I>>=-p,p+=u;p>0;s=s*256+e[t+y],y+=N,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=N,p-=8);if(s===0)s=1-d;else{if(s===l)return o?NaN:(I?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-d}return(I?-1:1)*o*Math.pow(2,s-r)},Dy.write=function(e,t,n,r,i,s){var o,u,l,d=s*8-i-1,p=(1<>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:s-1,O=r?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=N/l:t+=N*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(u=0,o=p):o+y>=1?(u=(t*l-1)*Math.pow(2,i),o=o+y):(u=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+I]=u&255,I+=O,u/=256,i-=8);for(o=o<0;e[n+I]=o&255,I+=O,o/=256,d-=8);e[n+I-O]|=x*128},Dy}function v6(){if(Ak)return Hc;Ak=!0;let e=g6(),t=I6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Hc.Buffer=o,Hc.SlowBuffer=K,Hc.INSPECT_MAX_BYTES=50;let r=2147483647;Hc.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let F=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(F,g),F.foo()===42}catch(F){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(F){if(F>r)throw new RangeError('The value "'+F+'" is invalid for option "size"');let g=new Uint8Array(F);return Object.setPrototypeOf(g,o.prototype),g}function o(F,g,v){if(typeof F=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(F)}return u(F,g,v)}o.poolSize=8192;function u(F,g,v){if(typeof F=="string")return y(F,g);if(ArrayBuffer.isView(F))return I(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(cn(F,ArrayBuffer)||F&&cn(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(cn(F,SharedArrayBuffer)||F&&cn(F.buffer,SharedArrayBuffer)))return O(F,g,v);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=F.valueOf&&F.valueOf();if(C!=null&&C!==F)return o.from(C,g,v);let J=x(F);if(J)return J;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return o.from(F[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}o.from=function(F,g,v){return u(F,g,v)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function d(F,g,v){return l(F),F<=0?s(F):g!==void 0?typeof v=="string"?s(F).fill(g,v):s(F).fill(g):s(F)}o.alloc=function(F,g,v){return d(F,g,v)};function p(F){return l(F),s(F<0?0:V(F)|0)}o.allocUnsafe=function(F){return p(F)},o.allocUnsafeSlow=function(F){return p(F)};function y(F,g){if((typeof g!="string"||g==="")&&(g="utf8"),!o.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let v=re(F,g)|0,C=s(v),J=C.write(F,g);return J!==v&&(C=C.slice(0,J)),C}function N(F){let g=F.length<0?0:V(F.length)|0,v=s(g);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return F|0}function K(F){return+F!=F&&(F=0),o.alloc(+F)}o.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==o.prototype},o.compare=function(g,v){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),cn(v,Uint8Array)&&(v=o.from(v,v.offset,v.byteLength)),!o.isBuffer(g)||!o.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,J=v.length;for(let ie=0,me=Math.min(C,J);ieJ.length?(o.isBuffer(me)||(me=o.from(me)),me.copy(J,ie)):Uint8Array.prototype.set.call(J,me,ie);else if(o.isBuffer(me))me.copy(J,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=me.length}return J};function re(F,g){if(o.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||cn(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);let v=F.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let J=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return ya(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return Gr(F).length;default:if(J)return C?-1:ya(F).length;g=(""+g).toLowerCase(),J=!0}}o.byteLength=re;function se(F,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(F||(F="utf8");;)switch(F){case"hex":return Xr(this,g,v);case"utf8":case"utf-8":return rn(this,g,v);case"ascii":return _n(this,g,v);case"latin1":case"binary":return mi(this,g,v);case"base64":return xt(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function fe(F,g,v){let C=F[g];F[g]=F[v],F[v]=C}o.prototype.swap16=function(){let g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;vv&&(g+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(g,v,C,J,ie){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),J===void 0&&(J=0),ie===void 0&&(ie=this.length),v<0||C>g.length||J<0||ie>this.length)throw new RangeError("out of range index");if(J>=ie&&v>=C)return 0;if(J>=ie)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,J>>>=0,ie>>>=0,this===g)return 0;let me=ie-J,Rt=C-v,Cn=Math.min(me,Rt),Dn=this.slice(J,ie),qn=g.slice(v,C);for(let bn=0;bn2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,Qr(v)&&(v=J?0:F.length-1),v<0&&(v=F.length+v),v>=F.length){if(J)return-1;v=F.length-1}else if(v<0)if(J)v=0;else return-1;if(typeof g=="string"&&(g=o.from(g,C)),o.isBuffer(g))return g.length===0?-1:xe(F,g,v,C,J);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(F,g,v):Uint8Array.prototype.lastIndexOf.call(F,g,v):xe(F,[g],v,C,J);throw new TypeError("val must be string, number or Buffer")}function xe(F,g,v,C,J){let ie=1,me=F.length,Rt=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(F.length<2||g.length<2)return-1;ie=2,me/=2,Rt/=2,v/=2}function Cn(qn,bn){return ie===1?qn[bn]:qn.readUInt16BE(bn*ie)}let Dn;if(J){let qn=-1;for(Dn=v;Dnme&&(v=me-Rt),Dn=v;Dn>=0;Dn--){let qn=!0;for(let bn=0;bnJ&&(C=J)):C=J;let ie=g.length;C>ie/2&&(C=ie/2);let me;for(me=0;me>>0,isFinite(C)?(C=C>>>0,J===void 0&&(J="utf8")):(J=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ie=this.length-v;if((C===void 0||C>ie)&&(C=ie),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let me=!1;for(;;)switch(J){case"hex":return ht(this,g,v,C);case"utf8":case"utf-8":return Ct(this,g,v,C);case"ascii":case"latin1":case"binary":return B(this,g,v,C);case"base64":return Te(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,g,v,C);default:if(me)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),me=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function xt(F,g,v){return g===0&&v===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(g,v))}function rn(F,g,v){v=Math.min(F.length,v);let C=[],J=g;for(;J239?4:ie>223?3:ie>191?2:1;if(J+Rt<=v){let Cn,Dn,qn,bn;switch(Rt){case 1:ie<128&&(me=ie);break;case 2:Cn=F[J+1],(Cn&192)===128&&(bn=(ie&31)<<6|Cn&63,bn>127&&(me=bn));break;case 3:Cn=F[J+1],Dn=F[J+2],(Cn&192)===128&&(Dn&192)===128&&(bn=(ie&15)<<12|(Cn&63)<<6|Dn&63,bn>2047&&(bn<55296||bn>57343)&&(me=bn));break;case 4:Cn=F[J+1],Dn=F[J+2],qn=F[J+3],(Cn&192)===128&&(Dn&192)===128&&(qn&192)===128&&(bn=(ie&15)<<18|(Cn&63)<<12|(Dn&63)<<6|qn&63,bn>65535&&bn<1114112&&(me=bn))}}me===null?(me=65533,Rt=1):me>65535&&(me-=65536,C.push(me>>>10&1023|55296),me=56320|me&1023),C.push(me),J+=Rt}return vn(C)}let wn=4096;function vn(F){let g=F.length;if(g<=wn)return String.fromCharCode.apply(String,F);let v="",C=0;for(;CC)&&(v=C);let J="";for(let ie=g;ieC&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),vv)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||on(g,v,this.length);let J=this[g],ie=1,me=0;for(;++me>>0,v=v>>>0,C||on(g,v,this.length);let J=this[g+--v],ie=1;for(;v>0&&(ie*=256);)J+=this[g+--v]*ie;return J},o.prototype.readUint8=o.prototype.readUInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]|this[g+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]<<8|this[g+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},o.prototype.readBigUInt64LE=Ro(function(g){g=g>>>0,Je(g,"offset");let v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Ht(g,this.length-8);let J=v+this[++g]*An(2,8)+this[++g]*An(2,16)+this[++g]*An(2,24),ie=this[++g]+this[++g]*An(2,8)+this[++g]*An(2,16)+C*An(2,24);return BigInt(J)+(BigInt(ie)<>>0,Je(g,"offset");let v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Ht(g,this.length-8);let J=v*An(2,24)+this[++g]*An(2,16)+this[++g]*An(2,8)+this[++g],ie=this[++g]*An(2,24)+this[++g]*An(2,16)+this[++g]*An(2,8)+C;return(BigInt(J)<>>0,v=v>>>0,C||on(g,v,this.length);let J=this[g],ie=1,me=0;for(;++me=ie&&(J-=Math.pow(2,8*v)),J},o.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||on(g,v,this.length);let J=v,ie=1,me=this[g+--J];for(;J>0&&(ie*=256);)me+=this[g+--J]*ie;return ie*=128,me>=ie&&(me-=Math.pow(2,8*v)),me},o.prototype.readInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},o.prototype.readInt16LE=function(g,v){g=g>>>0,v||on(g,2,this.length);let C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(g,v){g=g>>>0,v||on(g,2,this.length);let C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},o.prototype.readInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},o.prototype.readBigInt64LE=Ro(function(g){g=g>>>0,Je(g,"offset");let v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Ht(g,this.length-8);let J=this[g+4]+this[g+5]*An(2,8)+this[g+6]*An(2,16)+(C<<24);return(BigInt(J)<>>0,Je(g,"offset");let v=this[g],C=this[g+7];(v===void 0||C===void 0)&&Ht(g,this.length-8);let J=(v<<24)+this[++g]*An(2,16)+this[++g]*An(2,8)+this[++g];return(BigInt(J)<>>0,v||on(g,4,this.length),t.read(this,g,!0,23,4)},o.prototype.readFloatBE=function(g,v){return g=g>>>0,v||on(g,4,this.length),t.read(this,g,!1,23,4)},o.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!0,52,8)},o.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!1,52,8)};function $n(F,g,v,C,J,ie){if(!o.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>J||gF.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(g,v,C,J){if(g=+g,v=v>>>0,C=C>>>0,!J){let Rt=Math.pow(2,8*C)-1;$n(this,g,v,C,Rt,0)}let ie=1,me=0;for(this[v]=g&255;++me>>0,C=C>>>0,!J){let Rt=Math.pow(2,8*C)-1;$n(this,g,v,C,Rt,0)}let ie=C-1,me=1;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)this[v+ie]=g/me&255;return v+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,1,255,0),this[v]=g&255,v+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function U(F,g,v,C,J){$t(g,C,J,F,v,7);let ie=Number(g&BigInt(4294967295));F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,v}function ae(F,g,v,C,J){$t(g,C,J,F,v,7);let ie=Number(g&BigInt(4294967295));F[v+7]=ie,ie=ie>>8,F[v+6]=ie,ie=ie>>8,F[v+5]=ie,ie=ie>>8,F[v+4]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v+3]=me,me=me>>8,F[v+2]=me,me=me>>8,F[v+1]=me,me=me>>8,F[v]=me,v+8}o.prototype.writeBigUInt64LE=Ro(function(g,v=0){return U(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ro(function(g,v=0){return ae(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(g,v,C,J){if(g=+g,v=v>>>0,!J){let Cn=Math.pow(2,8*C-1);$n(this,g,v,C,Cn-1,-Cn)}let ie=0,me=1,Rt=0;for(this[v]=g&255;++ie>0)-Rt&255;return v+C},o.prototype.writeIntBE=function(g,v,C,J){if(g=+g,v=v>>>0,!J){let Cn=Math.pow(2,8*C-1);$n(this,g,v,C,Cn-1,-Cn)}let ie=C-1,me=1,Rt=0;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)g<0&&Rt===0&&this[v+ie+1]!==0&&(Rt=1),this[v+ie]=(g/me>>0)-Rt&255;return v+C},o.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},o.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},o.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||$n(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},o.prototype.writeBigInt64LE=Ro(function(g,v=0){return U(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ro(function(g,v=0){return ae(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(F,g,v,C,J,ie){if(v+C>F.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ce(F,g,v,C,J){return g=+g,v=v>>>0,J||te(F,g,v,4),t.write(F,g,v,C,23,4),v+4}o.prototype.writeFloatLE=function(g,v,C){return ce(this,g,v,!0,C)},o.prototype.writeFloatBE=function(g,v,C){return ce(this,g,v,!1,C)};function Ke(F,g,v,C,J){return g=+g,v=v>>>0,J||te(F,g,v,8),t.write(F,g,v,C,52,8),v+8}o.prototype.writeDoubleLE=function(g,v,C){return Ke(this,g,v,!0,C)},o.prototype.writeDoubleBE=function(g,v,C){return Ke(this,g,v,!1,C)},o.prototype.copy=function(g,v,C,J){if(!o.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!J&&J!==0&&(J=this.length),v>=g.length&&(v=g.length),v||(v=0),J>0&&J=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),g.length-v>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let ie;if(typeof g=="number")for(ie=v;ieAn(2,32)?J=Ue(String(v)):typeof v=="bigint"&&(J=String(v),(v>An(BigInt(2),BigInt(32))||v<-An(BigInt(2),BigInt(32)))&&(J=Ue(J)),J+="n"),C+=` It must be ${g}. Received ${J}`,C},RangeError);function Ue(F){let g="",v=F.length,C=F[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${F.slice(v-3,v)}${g}`;return`${F.slice(0,v)}${g}`}function Xe(F,g,v){Je(g,"offset"),(F[g]===void 0||F[g+v]===void 0)&&Ht(g,F.length-(v+1))}function $t(F,g,v,C,J,ie){if(F>v||F3?g===0||g===BigInt(0)?Rt=`>= 0${me} and < 2${me} ** ${(ie+1)*8}${me}`:Rt=`>= -(2${me} ** ${(ie+1)*8-1}${me}) and < 2 ** ${(ie+1)*8-1}${me}`:Rt=`>= ${g}${me} and <= ${v}${me}`,new Q.ERR_OUT_OF_RANGE("value",Rt,F)}Xe(C,J,ie)}function Je(F,g){if(typeof F!="number")throw new Q.ERR_INVALID_ARG_TYPE(g,"number",F)}function Ht(F,g,v){throw Math.floor(F)!==F?(Je(F,v),new Q.ERR_OUT_OF_RANGE(v||"offset","an integer",F)):g<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,F)}let Ta=/[^+/0-9A-Za-z-_]/g;function ki(F){if(F=F.split("=")[0],F=F.trim().replace(Ta,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ya(F,g){g=g||1/0;let v,C=F.length,J=null,ie=[];for(let me=0;me55295&&v<57344){if(!J){if(v>56319){(g-=3)>-1&&ie.push(239,191,189);continue}else if(me+1===C){(g-=3)>-1&&ie.push(239,191,189);continue}J=v;continue}if(v<56320){(g-=3)>-1&&ie.push(239,191,189),J=v;continue}v=(J-55296<<10|v-56320)+65536}else J&&(g-=3)>-1&&ie.push(239,191,189);if(J=null,v<128){if((g-=1)<0)break;ie.push(v)}else if(v<2048){if((g-=2)<0)break;ie.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;ie.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;ie.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return ie}function ud(F){let g=[];for(let v=0;v>8,J=v%256,ie.push(J),ie.push(C);return ie}function Gr(F){return e.toByteArray(ki(F))}function Wi(F,g,v,C){let J;for(J=0;J=g.length||J>=F.length);++J)g[J+v]=F[J];return J}function cn(F,g){return F instanceof g||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===g.name}function Qr(F){return F!==F}let Mc=function(){let F="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){let C=v*16;for(let J=0;J<16;++J)g[C+J]=F[v]+F[J]}return g}();function Ro(F){return typeof BigInt=="undefined"?Bc:F}function Bc(){throw new Error("BigInt not supported")}return Hc}var Df,Sk,Dy,Dk,Hc,Ak,Wc,S,wpe,Lpe,Rk=ue(()=>{"use strict";m();T();h();Df={},Sk=!1;Dy={},Dk=!1;Hc={},Ak=!1;Wc=v6();Wc.Buffer;Wc.SlowBuffer;Wc.INSPECT_MAX_BYTES;Wc.kMaxLength;S=Wc.Buffer,wpe=Wc.INSPECT_MAX_BYTES,Lpe=Wc.kMaxLength});var T=ue(()=>{"use strict";Rk()});var Fk,wk,Lk=ue(()=>{"use strict";m();T();h();Fk="16.9.0",wk=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null})});function rt(e,t){if(!!!e)throw new Error(t)}var Ni=ue(()=>{"use strict";m();T();h()});function ni(e){return typeof(e==null?void 0:e.then)=="function"}var Ay=ue(()=>{"use strict";m();T();h()});function or(e){return typeof e=="object"&&e!==null}var Po=ue(()=>{"use strict";m();T();h()});function Qt(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var ri=ue(()=>{"use strict";m();T();h()});function rc(e,t){let n=0,r=1;for(let i of e.body.matchAll(_6)){if(typeof i.index=="number"||Qt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var _6,Ry=ue(()=>{"use strict";m();T();h();ri();_6=/\r\n|[\n\r]/g});function Af(e){return _d(e.source,rc(e.source,e.start))}function _d(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} -`,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,O=[];for(let x=0;x["|",x]),["|","^".padStart(I)],["|",O[N+1]]])}return d+Pk([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function Pk(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}var i_=ue(()=>{"use strict";m();T();h();Ry()});function b6(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function kk(e){return e===void 0||e.length===0?void 0:e}function s_(e){return e.toString()}function o_(e){return e.toJSON()}var Y,ot=ue(()=>{"use strict";m();T();h();Po();Ry();i_();Y=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=b6(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=kk(Array.isArray(o)?o:o?[o]:void 0);let N=kk((r=this.nodes)===null||r===void 0?void 0:r.map(O=>O.loc).filter(O=>O!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(O=>O.start),this.locations=l&&u?l.map(O=>rc(u,O)):N==null?void 0:N.map(O=>rc(O.source,O.start));let I=or(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +"use strict";var shim=(()=>{var S6=Object.create;var wf=Object.defineProperty,D6=Object.defineProperties,A6=Object.getOwnPropertyDescriptor,R6=Object.getOwnPropertyDescriptors,F6=Object.getOwnPropertyNames,gP=Object.getOwnPropertySymbols,w6=Object.getPrototypeOf,IP=Object.prototype.hasOwnProperty,L6=Object.prototype.propertyIsEnumerable;var An=Math.pow,a_=(e,t,n)=>t in e?wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))IP.call(t,n)&&a_(e,n,t[n]);if(gP)for(var n of gP(t))L6.call(t,n)&&a_(e,n,t[n]);return e},Q=(e,t)=>D6(e,R6(t));var ue=(e,t)=>()=>(e&&(t=e(e=0)),t);var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lf=(e,t)=>{for(var n in t)wf(e,n,{get:t[n],enumerable:!0})},vP=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of F6(t))!IP.call(e,i)&&i!==n&&wf(e,i,{get:()=>t[i],enumerable:!(r=A6(t,i))||r.enumerable});return e};var u_=(e,t,n)=>(n=e!=null?S6(w6(e)):{},vP(t||!e||!e.__esModule?wf(n,"default",{value:e,enumerable:!0}):n,e)),Me=e=>vP(wf({},"__esModule",{value:!0}),e);var b=(e,t,n)=>(a_(e,typeof t!="symbol"?t+"":t,n),n);var yr=(e,t,n)=>new Promise((r,i)=>{var s=l=>{try{u(n.next(l))}catch(d){i(d)}},o=l=>{try{u(n.throw(l))}catch(d){i(d)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(s,o);u((n=n.apply(e,t)).next())});var m=ue(()=>{"use strict"});var O={};Lf(O,{_debugEnd:()=>lk,_debugProcess:()=>ck,_events:()=>Sk,_eventsCount:()=>Dk,_exiting:()=>KP,_fatalExceptions:()=>sk,_getActiveHandles:()=>JP,_getActiveRequests:()=>YP,_kill:()=>HP,_linkedBinding:()=>$P,_maxListeners:()=>Ok,_preload_modules:()=>vk,_rawDebug:()=>VP,_startProfilerIdleNotifier:()=>dk,_stopProfilerIdleNotifier:()=>pk,_tickCallback:()=>uk,abort:()=>Tk,addListener:()=>Ak,allowedNodeEnvironmentFlags:()=>nk,arch:()=>DP,argv:()=>FP,argv0:()=>Ik,assert:()=>rk,binding:()=>xP,chdir:()=>MP,config:()=>GP,cpuUsage:()=>Ly,cwd:()=>UP,debugPort:()=>gk,default:()=>Uk,dlopen:()=>QP,domain:()=>qP,emit:()=>Pk,emitWarning:()=>kP,env:()=>RP,execArgv:()=>wP,execPath:()=>Ek,exit:()=>ek,features:()=>ik,hasUncaughtExceptionCaptureCallback:()=>ak,hrtime:()=>wy,kill:()=>ZP,listeners:()=>Ck,memoryUsage:()=>XP,moduleLoadList:()=>jP,nextTick:()=>bP,off:()=>Fk,on:()=>Aa,once:()=>Rk,openStdin:()=>tk,pid:()=>yk,platform:()=>AP,ppid:()=>Nk,prependListener:()=>kk,prependOnceListener:()=>xk,reallyExit:()=>zP,release:()=>BP,removeAllListeners:()=>Lk,removeListener:()=>wk,resourceUsage:()=>WP,setSourceMapsEnabled:()=>_k,setUncaughtExceptionCaptureCallback:()=>ok,stderr:()=>mk,stdin:()=>hk,stdout:()=>fk,title:()=>SP,umask:()=>CP,uptime:()=>bk,version:()=>LP,versions:()=>PP});function d_(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function P6(){!Ad||!tl||(Ad=!1,tl.length?Da=tl.concat(Da):Fy=-1,Da.length&&_P())}function _P(){if(!Ad){var e=setTimeout(P6,0);Ad=!0;for(var t=Da.length;t;){for(tl=Da,Da=[];++Fy1)for(var n=1;n{"use strict";m();T();h();Da=[],Ad=!1,Fy=-1;OP.prototype.run=function(){this.fun.apply(null,this.array)};SP="browser",DP="x64",AP="browser",RP={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},FP=["/usr/bin/node"],wP=[],LP="v16.8.0",PP={},kP=function(e,t){console.warn((t?t+": ":"")+e)},xP=function(e){d_("binding")},CP=function(e){return 0},UP=function(){return"/"},MP=function(e){},BP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};VP=ti,jP=[];qP={},KP=!1,GP={};zP=ti,HP=ti,Ly=function(){return{}},WP=Ly,XP=Ly,ZP=ti,ek=ti,tk=ti,nk={};ik={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},sk=ti,ok=ti;uk=ti,ck=ti,lk=ti,dk=ti,pk=ti,fk=void 0,mk=void 0,hk=void 0,Tk=ti,yk=2,Nk=1,Ek="/bin/usr/node",gk=9229,Ik="node",vk=[],_k=ti,uc={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};uc.now===void 0&&(c_=Date.now(),uc.timing&&uc.timing.navigationStart&&(c_=uc.timing.navigationStart),uc.now=()=>Date.now()-c_);l_=1e9;wy.bigint=function(e){var t=wy(e);return typeof BigInt=="undefined"?t[0]*l_+t[1]:BigInt(t[0]*l_)+BigInt(t[1])};Ok=10,Sk={},Dk=0;Ak=Aa,Rk=Aa,Fk=Aa,wk=Aa,Lk=Aa,Pk=ti,kk=Aa,xk=Aa;Uk={version:LP,versions:PP,arch:DP,platform:AP,release:BP,_rawDebug:VP,moduleLoadList:jP,binding:xP,_linkedBinding:$P,_events:Sk,_eventsCount:Dk,_maxListeners:Ok,on:Aa,addListener:Ak,once:Rk,off:Fk,removeListener:wk,removeAllListeners:Lk,emit:Pk,prependListener:kk,prependOnceListener:xk,listeners:Ck,domain:qP,_exiting:KP,config:GP,dlopen:QP,uptime:bk,_getActiveRequests:YP,_getActiveHandles:JP,reallyExit:zP,_kill:HP,cpuUsage:Ly,resourceUsage:WP,memoryUsage:XP,kill:ZP,exit:ek,openStdin:tk,allowedNodeEnvironmentFlags:nk,assert:rk,features:ik,_fatalExceptions:sk,setUncaughtExceptionCaptureCallback:ok,hasUncaughtExceptionCaptureCallback:ak,emitWarning:kP,nextTick:bP,_tickCallback:uk,_debugProcess:ck,_debugEnd:lk,_startProfilerIdleNotifier:dk,_stopProfilerIdleNotifier:pk,stdout:fk,stdin:hk,stderr:mk,abort:Tk,umask:CP,chdir:MP,cwd:UP,env:RP,title:SP,argv:FP,execArgv:wP,pid:yk,ppid:Nk,execPath:Ek,debugPort:gk,hrtime:wy,argv0:Ik,_preload_modules:vk,setSourceMapsEnabled:_k}});var h=ue(()=>{"use strict";Mk()});function k6(){if(Bk)return Pf;Bk=!0,Pf.byteLength=u,Pf.toByteArray=d,Pf.fromByteArray=N;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var C=I.indexOf("=");C===-1&&(C=S);var V=C===S?0:4-C%4;return[C,V]}function u(I){var S=o(I),C=S[0],V=S[1];return(C+V)*3/4-V}function l(I,S,C){return(S+C)*3/4-C}function d(I){var S,C=o(I),V=C[0],G=C[1],re=new n(l(I,V,G)),se=0,fe=G>0?V-4:V,he;for(he=0;he>16&255,re[se++]=S>>8&255,re[se++]=S&255;return G===2&&(S=t[I.charCodeAt(he)]<<2|t[I.charCodeAt(he+1)]>>4,re[se++]=S&255),G===1&&(S=t[I.charCodeAt(he)]<<10|t[I.charCodeAt(he+1)]<<4|t[I.charCodeAt(he+2)]>>2,re[se++]=S>>8&255,re[se++]=S&255),re}function p(I){return e[I>>18&63]+e[I>>12&63]+e[I>>6&63]+e[I&63]}function y(I,S,C){for(var V,G=[],re=S;refe?fe:se+re));return V===1?(S=I[C-1],G.push(e[S>>2]+e[S<<4&63]+"==")):V===2&&(S=(I[C-2]<<8)+I[C-1],G.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),G.join("")}return Pf}function x6(){if(Vk)return Py;Vk=!0;return Py.read=function(e,t,n,r,i){var s,o,u=i*8-r-1,l=(1<>1,p=-7,y=n?i-1:0,N=n?-1:1,I=e[t+y];for(y+=N,s=I&(1<<-p)-1,I>>=-p,p+=u;p>0;s=s*256+e[t+y],y+=N,p-=8);for(o=s&(1<<-p)-1,s>>=-p,p+=r;p>0;o=o*256+e[t+y],y+=N,p-=8);if(s===0)s=1-d;else{if(s===l)return o?NaN:(I?-1:1)*(1/0);o=o+Math.pow(2,r),s=s-d}return(I?-1:1)*o*Math.pow(2,s-r)},Py.write=function(e,t,n,r,i,s){var o,u,l,d=s*8-i-1,p=(1<>1,N=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=r?0:s-1,S=r?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,o=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=N/l:t+=N*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=p?(u=0,o=p):o+y>=1?(u=(t*l-1)*Math.pow(2,i),o=o+y):(u=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+I]=u&255,I+=S,u/=256,i-=8);for(o=o<0;e[n+I]=o&255,I+=S,o/=256,d-=8);e[n+I-S]|=C*128},Py}function C6(){if(jk)return nl;jk=!0;let e=k6(),t=x6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;nl.Buffer=o,nl.SlowBuffer=G,nl.INSPECT_MAX_BYTES=50;let r=2147483647;nl.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let F=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(F,g),F.foo()===42}catch(F){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(F){if(F>r)throw new RangeError('The value "'+F+'" is invalid for option "size"');let g=new Uint8Array(F);return Object.setPrototypeOf(g,o.prototype),g}function o(F,g,v){if(typeof F=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(F)}return u(F,g,v)}o.poolSize=8192;function u(F,g,v){if(typeof F=="string")return y(F,g);if(ArrayBuffer.isView(F))return I(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(cn(F,ArrayBuffer)||F&&cn(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(cn(F,SharedArrayBuffer)||F&&cn(F.buffer,SharedArrayBuffer)))return S(F,g,v);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let x=F.valueOf&&F.valueOf();if(x!=null&&x!==F)return o.from(x,g,v);let z=C(F);if(z)return z;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return o.from(F[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}o.from=function(F,g,v){return u(F,g,v)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function d(F,g,v){return l(F),F<=0?s(F):g!==void 0?typeof v=="string"?s(F).fill(g,v):s(F).fill(g):s(F)}o.alloc=function(F,g,v){return d(F,g,v)};function p(F){return l(F),s(F<0?0:V(F)|0)}o.allocUnsafe=function(F){return p(F)},o.allocUnsafeSlow=function(F){return p(F)};function y(F,g){if((typeof g!="string"||g==="")&&(g="utf8"),!o.isEncoding(g))throw new TypeError("Unknown encoding: "+g);let v=re(F,g)|0,x=s(v),z=x.write(F,g);return z!==v&&(x=x.slice(0,z)),x}function N(F){let g=F.length<0?0:V(F.length)|0,v=s(g);for(let x=0;x=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return F|0}function G(F){return+F!=F&&(F=0),o.alloc(+F)}o.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==o.prototype},o.compare=function(g,v){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),cn(v,Uint8Array)&&(v=o.from(v,v.offset,v.byteLength)),!o.isBuffer(g)||!o.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let x=g.length,z=v.length;for(let ie=0,me=Math.min(x,z);iez.length?(o.isBuffer(me)||(me=o.from(me)),me.copy(z,ie)):Uint8Array.prototype.set.call(z,me,ie);else if(o.isBuffer(me))me.copy(z,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=me.length}return z};function re(F,g){if(o.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||cn(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);let v=F.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&v===0)return 0;let z=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return ya(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return Gr(F).length;default:if(z)return x?-1:ya(F).length;g=(""+g).toLowerCase(),z=!0}}o.byteLength=re;function se(F,g,v){let x=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(F||(F="utf8");;)switch(F){case"hex":return Xr(this,g,v);case"utf8":case"utf-8":return rn(this,g,v);case"ascii":return bn(this,g,v);case"latin1":case"binary":return mi(this,g,v);case"base64":return Ct(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kn(this,g,v);default:if(x)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),x=!0}}o.prototype._isBuffer=!0;function fe(F,g,v){let x=F[g];F[g]=F[v],F[v]=x}o.prototype.swap16=function(){let g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;vv&&(g+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(g,v,x,z,ie){if(cn(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),x===void 0&&(x=g?g.length:0),z===void 0&&(z=0),ie===void 0&&(ie=this.length),v<0||x>g.length||z<0||ie>this.length)throw new RangeError("out of range index");if(z>=ie&&v>=x)return 0;if(z>=ie)return-1;if(v>=x)return 1;if(v>>>=0,x>>>=0,z>>>=0,ie>>>=0,this===g)return 0;let me=ie-z,Rt=x-v,xn=Math.min(me,Rt),Dn=this.slice(z,ie),qn=g.slice(v,x);for(let On=0;On2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,Qr(v)&&(v=z?0:F.length-1),v<0&&(v=F.length+v),v>=F.length){if(z)return-1;v=F.length-1}else if(v<0)if(z)v=0;else return-1;if(typeof g=="string"&&(g=o.from(g,x)),o.isBuffer(g))return g.length===0?-1:Ce(F,g,v,x,z);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?z?Uint8Array.prototype.indexOf.call(F,g,v):Uint8Array.prototype.lastIndexOf.call(F,g,v):Ce(F,[g],v,x,z);throw new TypeError("val must be string, number or Buffer")}function Ce(F,g,v,x,z){let ie=1,me=F.length,Rt=g.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(F.length<2||g.length<2)return-1;ie=2,me/=2,Rt/=2,v/=2}function xn(qn,On){return ie===1?qn[On]:qn.readUInt16BE(On*ie)}let Dn;if(z){let qn=-1;for(Dn=v;Dnme&&(v=me-Rt),Dn=v;Dn>=0;Dn--){let qn=!0;for(let On=0;Onz&&(x=z)):x=z;let ie=g.length;x>ie/2&&(x=ie/2);let me;for(me=0;me>>0,isFinite(x)?(x=x>>>0,z===void 0&&(z="utf8")):(z=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ie=this.length-v;if((x===void 0||x>ie)&&(x=ie),g.length>0&&(x<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let me=!1;for(;;)switch(z){case"hex":return ht(this,g,v,x);case"utf8":case"utf-8":return xt(this,g,v,x);case"ascii":case"latin1":case"binary":return B(this,g,v,x);case"base64":return Te(this,g,v,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,g,v,x);default:if(me)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),me=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ct(F,g,v){return g===0&&v===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(g,v))}function rn(F,g,v){v=Math.min(F.length,v);let x=[],z=g;for(;z239?4:ie>223?3:ie>191?2:1;if(z+Rt<=v){let xn,Dn,qn,On;switch(Rt){case 1:ie<128&&(me=ie);break;case 2:xn=F[z+1],(xn&192)===128&&(On=(ie&31)<<6|xn&63,On>127&&(me=On));break;case 3:xn=F[z+1],Dn=F[z+2],(xn&192)===128&&(Dn&192)===128&&(On=(ie&15)<<12|(xn&63)<<6|Dn&63,On>2047&&(On<55296||On>57343)&&(me=On));break;case 4:xn=F[z+1],Dn=F[z+2],qn=F[z+3],(xn&192)===128&&(Dn&192)===128&&(qn&192)===128&&(On=(ie&15)<<18|(xn&63)<<12|(Dn&63)<<6|qn&63,On>65535&&On<1114112&&(me=On))}}me===null?(me=65533,Rt=1):me>65535&&(me-=65536,x.push(me>>>10&1023|55296),me=56320|me&1023),x.push(me),z+=Rt}return _n(x)}let wn=4096;function _n(F){let g=F.length;if(g<=wn)return String.fromCharCode.apply(String,F);let v="",x=0;for(;xx)&&(v=x);let z="";for(let ie=g;iex&&(g=x),v<0?(v+=x,v<0&&(v=0)):v>x&&(v=x),vv)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g],ie=1,me=0;for(;++me>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g+--v],ie=1;for(;v>0&&(ie*=256);)z+=this[g+--v]*ie;return z},o.prototype.readUint8=o.prototype.readUInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]|this[g+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||on(g,2,this.length),this[g]<<8|this[g+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},o.prototype.readBigUInt64LE=Ro(function(g){g=g>>>0,Je(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=v+this[++g]*An(2,8)+this[++g]*An(2,16)+this[++g]*An(2,24),ie=this[++g]+this[++g]*An(2,8)+this[++g]*An(2,16)+x*An(2,24);return BigInt(z)+(BigInt(ie)<>>0,Je(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=v*An(2,24)+this[++g]*An(2,16)+this[++g]*An(2,8)+this[++g],ie=this[++g]*An(2,24)+this[++g]*An(2,16)+this[++g]*An(2,8)+x;return(BigInt(z)<>>0,v=v>>>0,x||on(g,v,this.length);let z=this[g],ie=1,me=0;for(;++me=ie&&(z-=Math.pow(2,8*v)),z},o.prototype.readIntBE=function(g,v,x){g=g>>>0,v=v>>>0,x||on(g,v,this.length);let z=v,ie=1,me=this[g+--z];for(;z>0&&(ie*=256);)me+=this[g+--z]*ie;return ie*=128,me>=ie&&(me-=Math.pow(2,8*v)),me},o.prototype.readInt8=function(g,v){return g=g>>>0,v||on(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},o.prototype.readInt16LE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g]|this[g+1]<<8;return x&32768?x|4294901760:x},o.prototype.readInt16BE=function(g,v){g=g>>>0,v||on(g,2,this.length);let x=this[g+1]|this[g]<<8;return x&32768?x|4294901760:x},o.prototype.readInt32LE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},o.prototype.readInt32BE=function(g,v){return g=g>>>0,v||on(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},o.prototype.readBigInt64LE=Ro(function(g){g=g>>>0,Je(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=this[g+4]+this[g+5]*An(2,8)+this[g+6]*An(2,16)+(x<<24);return(BigInt(z)<>>0,Je(g,"offset");let v=this[g],x=this[g+7];(v===void 0||x===void 0)&&Ht(g,this.length-8);let z=(v<<24)+this[++g]*An(2,16)+this[++g]*An(2,8)+this[++g];return(BigInt(z)<>>0,v||on(g,4,this.length),t.read(this,g,!0,23,4)},o.prototype.readFloatBE=function(g,v){return g=g>>>0,v||on(g,4,this.length),t.read(this,g,!1,23,4)},o.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!0,52,8)},o.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||on(g,8,this.length),t.read(this,g,!1,52,8)};function $n(F,g,v,x,z,ie){if(!o.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>z||gF.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(g,v,x,z){if(g=+g,v=v>>>0,x=x>>>0,!z){let Rt=Math.pow(2,8*x)-1;$n(this,g,v,x,Rt,0)}let ie=1,me=0;for(this[v]=g&255;++me>>0,x=x>>>0,!z){let Rt=Math.pow(2,8*x)-1;$n(this,g,v,x,Rt,0)}let ie=x-1,me=1;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)this[v+ie]=g/me&255;return v+x},o.prototype.writeUint8=o.prototype.writeUInt8=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,1,255,0),this[v]=g&255,v+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function U(F,g,v,x,z){$t(g,x,z,F,v,7);let ie=Number(g&BigInt(4294967295));F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie,ie=ie>>8,F[v++]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,me=me>>8,F[v++]=me,v}function ae(F,g,v,x,z){$t(g,x,z,F,v,7);let ie=Number(g&BigInt(4294967295));F[v+7]=ie,ie=ie>>8,F[v+6]=ie,ie=ie>>8,F[v+5]=ie,ie=ie>>8,F[v+4]=ie;let me=Number(g>>BigInt(32)&BigInt(4294967295));return F[v+3]=me,me=me>>8,F[v+2]=me,me=me>>8,F[v+1]=me,me=me>>8,F[v]=me,v+8}o.prototype.writeBigUInt64LE=Ro(function(g,v=0){return U(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ro(function(g,v=0){return ae(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(g,v,x,z){if(g=+g,v=v>>>0,!z){let xn=Math.pow(2,8*x-1);$n(this,g,v,x,xn-1,-xn)}let ie=0,me=1,Rt=0;for(this[v]=g&255;++ie>0)-Rt&255;return v+x},o.prototype.writeIntBE=function(g,v,x,z){if(g=+g,v=v>>>0,!z){let xn=Math.pow(2,8*x-1);$n(this,g,v,x,xn-1,-xn)}let ie=x-1,me=1,Rt=0;for(this[v+ie]=g&255;--ie>=0&&(me*=256);)g<0&&Rt===0&&this[v+ie+1]!==0&&(Rt=1),this[v+ie]=(g/me>>0)-Rt&255;return v+x},o.prototype.writeInt8=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},o.prototype.writeInt16LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},o.prototype.writeInt16BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},o.prototype.writeInt32LE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},o.prototype.writeInt32BE=function(g,v,x){return g=+g,v=v>>>0,x||$n(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},o.prototype.writeBigInt64LE=Ro(function(g,v=0){return U(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ro(function(g,v=0){return ae(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(F,g,v,x,z,ie){if(v+x>F.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function ce(F,g,v,x,z){return g=+g,v=v>>>0,z||te(F,g,v,4),t.write(F,g,v,x,23,4),v+4}o.prototype.writeFloatLE=function(g,v,x){return ce(this,g,v,!0,x)},o.prototype.writeFloatBE=function(g,v,x){return ce(this,g,v,!1,x)};function Ke(F,g,v,x,z){return g=+g,v=v>>>0,z||te(F,g,v,8),t.write(F,g,v,x,52,8),v+8}o.prototype.writeDoubleLE=function(g,v,x){return Ke(this,g,v,!0,x)},o.prototype.writeDoubleBE=function(g,v,x){return Ke(this,g,v,!1,x)},o.prototype.copy=function(g,v,x,z){if(!o.isBuffer(g))throw new TypeError("argument should be a Buffer");if(x||(x=0),!z&&z!==0&&(z=this.length),v>=g.length&&(v=g.length),v||(v=0),z>0&&z=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),g.length-v>>0,x=x===void 0?this.length:x>>>0,g||(g=0);let ie;if(typeof g=="number")for(ie=v;ieAn(2,32)?z=Ue(String(v)):typeof v=="bigint"&&(z=String(v),(v>An(BigInt(2),BigInt(32))||v<-An(BigInt(2),BigInt(32)))&&(z=Ue(z)),z+="n"),x+=` It must be ${g}. Received ${z}`,x},RangeError);function Ue(F){let g="",v=F.length,x=F[0]==="-"?1:0;for(;v>=x+4;v-=3)g=`_${F.slice(v-3,v)}${g}`;return`${F.slice(0,v)}${g}`}function Xe(F,g,v){Je(g,"offset"),(F[g]===void 0||F[g+v]===void 0)&&Ht(g,F.length-(v+1))}function $t(F,g,v,x,z,ie){if(F>v||F3?g===0||g===BigInt(0)?Rt=`>= 0${me} and < 2${me} ** ${(ie+1)*8}${me}`:Rt=`>= -(2${me} ** ${(ie+1)*8-1}${me}) and < 2 ** ${(ie+1)*8-1}${me}`:Rt=`>= ${g}${me} and <= ${v}${me}`,new Y.ERR_OUT_OF_RANGE("value",Rt,F)}Xe(x,z,ie)}function Je(F,g){if(typeof F!="number")throw new Y.ERR_INVALID_ARG_TYPE(g,"number",F)}function Ht(F,g,v){throw Math.floor(F)!==F?(Je(F,v),new Y.ERR_OUT_OF_RANGE(v||"offset","an integer",F)):g<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,F)}let Ta=/[^+/0-9A-Za-z-_]/g;function ki(F){if(F=F.split("=")[0],F=F.trim().replace(Ta,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ya(F,g){g=g||1/0;let v,x=F.length,z=null,ie=[];for(let me=0;me55295&&v<57344){if(!z){if(v>56319){(g-=3)>-1&&ie.push(239,191,189);continue}else if(me+1===x){(g-=3)>-1&&ie.push(239,191,189);continue}z=v;continue}if(v<56320){(g-=3)>-1&&ie.push(239,191,189),z=v;continue}v=(z-55296<<10|v-56320)+65536}else z&&(g-=3)>-1&&ie.push(239,191,189);if(z=null,v<128){if((g-=1)<0)break;ie.push(v)}else if(v<2048){if((g-=2)<0)break;ie.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;ie.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;ie.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return ie}function md(F){let g=[];for(let v=0;v>8,z=v%256,ie.push(z),ie.push(x);return ie}function Gr(F){return e.toByteArray(ki(F))}function Wi(F,g,v,x){let z;for(z=0;z=g.length||z>=F.length);++z)g[z+v]=F[z];return z}function cn(F,g){return F instanceof g||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===g.name}function Qr(F){return F!==F}let Kc=function(){let F="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){let x=v*16;for(let z=0;z<16;++z)g[x+z]=F[v]+F[z]}return g}();function Ro(F){return typeof BigInt=="undefined"?Gc:F}function Gc(){throw new Error("BigInt not supported")}return nl}var Pf,Bk,Py,Vk,nl,jk,rl,D,Gpe,Qpe,$k=ue(()=>{"use strict";m();T();h();Pf={},Bk=!1;Py={},Vk=!1;nl={},jk=!1;rl=C6();rl.Buffer;rl.SlowBuffer;rl.INSPECT_MAX_BYTES;rl.kMaxLength;D=rl.Buffer,Gpe=rl.INSPECT_MAX_BYTES,Qpe=rl.kMaxLength});var T=ue(()=>{"use strict";$k()});var qk,Kk,Gk=ue(()=>{"use strict";m();T();h();qk="16.9.0",Kk=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null})});function it(e,t){if(!!!e)throw new Error(t)}var Ni=ue(()=>{"use strict";m();T();h()});function ni(e){return typeof(e==null?void 0:e.then)=="function"}var ky=ue(()=>{"use strict";m();T();h()});function or(e){return typeof e=="object"&&e!==null}var Po=ue(()=>{"use strict";m();T();h()});function Qt(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var ri=ue(()=>{"use strict";m();T();h()});function cc(e,t){let n=0,r=1;for(let i of e.body.matchAll(U6)){if(typeof i.index=="number"||Qt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var U6,xy=ue(()=>{"use strict";m();T();h();ri();U6=/\r\n|[\n\r]/g});function kf(e){return Rd(e.source,cc(e.source,e.start))}function Rd(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} +`,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,S=[];for(let C=0;C["|",C]),["|","^".padStart(I)],["|",S[N+1]]])}return d+Qk([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function Qk(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}var p_=ue(()=>{"use strict";m();T();h();xy()});function M6(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function Yk(e){return e===void 0||e.length===0?void 0:e}function f_(e){return e.toString()}function m_(e){return e.toJSON()}var J,at=ue(()=>{"use strict";m();T();h();Po();xy();p_();J=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=M6(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=Yk(Array.isArray(o)?o:o?[o]:void 0);let N=Yk((r=this.nodes)===null||r===void 0?void 0:r.map(S=>S.loc).filter(S=>S!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(S=>S.start),this.locations=l&&u?l.map(S=>cc(u,S)):N==null?void 0:N.map(S=>cc(S.source,S.start));let I=or(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` -`+Af(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+kf(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+_d(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function Zn(e,t,n){return new Y(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Fy=ue(()=>{"use strict";m();T();h();ot()});function Rf(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&O6.has(t)}var Xc,ic,a_,O6,Un,ko=ue(()=>{"use strict";m();T();h();Xc=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ic=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},a_={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},O6=new Set(Object.keys(a_));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Un||(Un={}))});var He,bd=ue(()=>{"use strict";m();T();h();(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(He||(He={}))});var R,Xt=ue(()=>{"use strict";m();T();h();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}))});function wy(e){return e===9||e===32}function Od(e){return e>=48&&e<=57}function Ck(e){return e>=97&&e<=122||e>=65&&e<=90}function Ff(e){return Ck(e)||e===95}function Ly(e){return Ck(e)||Od(e)||e===95}var Py=ue(()=>{"use strict";m();T();h()});function xk(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function S6(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||wy(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&wy(e.charCodeAt(0));return(p&&!N||s)&&(y+=` +`+Rd(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function er(e,t,n){return new J(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Cy=ue(()=>{"use strict";m();T();h();at()});function xf(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&B6.has(t)}var il,lc,h_,B6,Un,ko=ue(()=>{"use strict";m();T();h();il=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},lc=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},h_={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},B6=new Set(Object.keys(h_));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Un||(Un={}))});var He,Fd=ue(()=>{"use strict";m();T();h();(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(He||(He={}))});var R,Xt=ue(()=>{"use strict";m();T();h();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(R||(R={}))});function Uy(e){return e===9||e===32}function wd(e){return e>=48&&e<=57}function Jk(e){return e>=97&&e<=122||e>=65&&e<=90}function Cf(e){return Jk(e)||e===95}function My(e){return Jk(e)||wd(e)||e===95}var By=ue(()=>{"use strict";m();T();h()});function zk(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function V6(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||Uy(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&Uy(e.charCodeAt(0));return(p&&!N||s)&&(y+=` `),y+=n,(p||d)&&(y+=` -`),'"""'+y+'"""'}var wf=ue(()=>{"use strict";m();T();h();Py()});var le,Lf=ue(()=>{"use strict";m();T();h();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}))});function Cy(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function Sd(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function xy(e,t){return Bk(e.charCodeAt(t))&&Vk(e.charCodeAt(t+1))}function Bk(e){return e>=55296&&e<=56319}function Vk(e){return e>=56320&&e<=57343}function Zc(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function vr(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new ic(t,n,r,s,o,i)}function D6(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P6(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Zn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function k6(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Fy();ko();wf();Py();Lf();Ra=class{constructor(t){let n=new ic(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{let n=D6(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}});function ne(e){return My(e,[])}function My(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return x6(e,t);default:return String(e)}}function x6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(U6(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:My(r,n)}else if(Array.isArray(e))return B6(e,n);return M6(e,n)}function U6(e){return typeof e.toJSON=="function"}function M6(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+V6(e)+"]":"{ "+n.map(([i,s])=>i+": "+My(s,t)).join(", ")+" }"}function B6(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function V6(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Nn=ue(()=>{"use strict";m();T();h()});var j6,Ei,kf=ue(()=>{"use strict";m();T();h();Nn();j6=globalThis.process&&b.env.NODE_ENV==="production",Ei=j6?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=ne(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`),'"""'+y+'"""'}var Uf=ue(()=>{"use strict";m();T();h();By()});var le,Mf=ue(()=>{"use strict";m();T();h();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}))});function jy(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function Ld(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function $y(e,t){return Xk(e.charCodeAt(t))&&Zk(e.charCodeAt(t+1))}function Xk(e){return e>=55296&&e<=56319}function Zk(e){return e>=56320&&e<=57343}function sl(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function vr(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new lc(t,n,r,s,o,i)}function j6(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Y6(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw er(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function J6(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Cy();ko();Uf();By();Mf();Ra=class{constructor(t){let n=new lc(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{let n=j6(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}});function ne(e){return Ky(e,[])}function Ky(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return H6(e,t);default:return String(e)}}function H6(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(W6(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Ky(r,n)}else if(Array.isArray(e))return Z6(e,n);return X6(e,n)}function W6(e){return typeof e.toJSON=="function"}function X6(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+eH(e)+"]":"{ "+n.map(([i,s])=>i+": "+Ky(s,t)).join(", ")+" }"}function Z6(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function eH(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Nn=ue(()=>{"use strict";m();T();h()});var tH,Ei,Vf=ue(()=>{"use strict";m();T();h();Nn();tH=globalThis.process&&O.env.NODE_ENV==="production",Ei=tH?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=ne(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -32,22 +32,22 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1}});function By(e){return Ei(e,Co)}var Co,Vy=ue(()=>{"use strict";m();T();h();Ni();Nn();kf();Co=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||rt(!1,`Body must be a string. Received: ${ne(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||rt(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||rt(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function io(e,t){return new Dd(e,t).parseDocument()}function Cf(e,t){let n=new Dd(e,t);n.expectToken(le.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(le.EOF),r}function c_(e,t){let n=new Dd(e,t);n.expectToken(le.SOF);let r=n.parseConstValueLiteral();return n.expectToken(le.EOF),r}function l_(e,t){let n=new Dd(e,t);n.expectToken(le.SOF);let r=n.parseTypeReference();return n.expectToken(le.EOF),r}function jy(e){let t=e.value;return jk(e.kind)+(t!=null?` "${t}"`:"")}function jk(e){return Cy(e)?`"${e}"`:e}var Dd,Ad=ue(()=>{"use strict";m();T();h();Fy();ko();bd();Xt();Uy();Vy();Lf();Dd=class{constructor(t,n={}){let r=By(t)?t:new Co(t);this._lexer=new Ra(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(le.NAME);return this.node(t,{kind:R.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Zn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:R.OPERATION_DEFINITION,operation:Un.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:R.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(le.NAME);switch(t.value){case"query":return Un.QUERY;case"mutation":return Un.MUTATION;case"subscription":return Un.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(le.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:R.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(le.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:R.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){let r=this._lexer.token.value;throw Zn(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:R.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(le.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:R.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:R.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);let r=this.parseNamedType();return this.node(t,{kind:R.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:R.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(le.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:R.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:R.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:R.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Zn(this._lexer.source,this._lexer.token.start,`${jy(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:R.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:R.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:R.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(He,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Xc(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Zn(this._lexer.source,n.start,`Expected ${jk(t)}, found ${jy(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw Zn(this._lexer.source,n.start,`Expected "${t}", found ${jy(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return Zn(this._lexer.source,n.start,`Unexpected ${jy(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Zn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function ii(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}var sc=ue(()=>{"use strict";m();T();h()});function d_(e){return e}var $k=ue(()=>{"use strict";m();T();h()});function si(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var oc=ue(()=>{"use strict";m();T();h()});function Ds(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var xf=ue(()=>{"use strict";m();T();h()});function so(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var p_=ue(()=>{"use strict";m();T();h()});function Fa(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-f_,s=t.charCodeAt(r);while($y(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}function $y(e){return!isNaN(e)&&f_<=e&&e<=$6}var f_,$6,Uf=ue(()=>{"use strict";m();T();h();f_=48,$6=57});function gi(e,t){let n=Object.create(null),r=new m_(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:Fa(s,o)})}function qk(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Uf();m_=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=qk(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=qk(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let O=1;O<=u;O++){let x=i[p-1]===s[O-1]?0:1,V=Math.min(y[O]+1,N[O-1]+1,y[O-1]+x);if(p>1&&O>1&&i[p-1]===s[O-2]&&i[p-2]===s[O-1]){let K=l[(p-2)%3][O-2];V=Math.min(V,K+1)}Vn)return}let d=l[o%3][u];return d<=n?d:void 0}}});function Ii(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var qy=ue(()=>{"use strict";m();T();h()});function Kk(e){return`"${e.replace(q6,K6)}"`}function K6(e){return G6[e.charCodeAt(0)]}var q6,G6,Gk=ue(()=>{"use strict";m();T();h();q6=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;G6=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function As(e,t,n=a_){let r=new Map;for(let K of Object.values(R))r.set(K,wa(t,K));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let K=u===o.length,re=K&&l.length!==0;if(K){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[he,xe]of l){let ht=he-fe;xe===null?(d.splice(ht,1),fe++):d[ht]=xe}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,he]of l)d[fe]=he}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var O,x;Rf(d)||rt(!1,`Invalid AST Node: ${ne(d)}.`);let fe=K?(O=r.get(d.kind))===null||O===void 0?void 0:O.leave:(x=r.get(d.kind))===null||x===void 0?void 0:x.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===uc)break;if(se===!1){if(!K){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!K))if(Rf(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),K)N.pop();else{var V;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(V=n[d.kind])!==null&&V!==void 0?V:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Rd(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(R)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Ni();Nn();ko();Xt();uc=Object.freeze({})});function Ft(e){return As(e,Y6)}function Ge(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function oo(e){return Yt(`{ -`,Ky(Ge(e,` +spurious results.`)}}return!1}});function Gy(e){return Ei(e,xo)}var xo,Qy=ue(()=>{"use strict";m();T();h();Ni();Nn();Vf();xo=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||it(!1,`Body must be a string. Received: ${ne(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||it(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||it(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function io(e,t){return new Pd(e,t).parseDocument()}function jf(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(le.EOF),r}function y_(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseConstValueLiteral();return n.expectToken(le.EOF),r}function N_(e,t){let n=new Pd(e,t);n.expectToken(le.SOF);let r=n.parseTypeReference();return n.expectToken(le.EOF),r}function Yy(e){let t=e.value;return ex(e.kind)+(t!=null?` "${t}"`:"")}function ex(e){return jy(e)?`"${e}"`:e}var Pd,kd=ue(()=>{"use strict";m();T();h();Cy();ko();Fd();Xt();qy();Qy();Mf();Pd=class{constructor(t,n={}){let r=Gy(t)?t:new xo(t);this._lexer=new Ra(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(le.NAME);return this.node(t,{kind:R.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:R.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw er(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:R.OPERATION_DEFINITION,operation:Un.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(le.NAME)&&(r=this.parseName()),this.node(t,{kind:R.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(le.NAME);switch(t.value){case"query":return Un.QUERY;case"mutation":return Un.MUTATION;case"subscription":return Un.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:R.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:R.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:R.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(le.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:R.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(le.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:R.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:R.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:R.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:R.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:R.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:R.BOOLEAN,value:!0});case"false":return this.node(n,{kind:R.BOOLEAN,value:!1});case"null":return this.node(n,{kind:R.NULL});default:return this.node(n,{kind:R.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){let r=this._lexer.token.value;throw er(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:R.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:R.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:R.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:R.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:R.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(le.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:R.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:R.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:R.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:R.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);let r=this.parseNamedType();return this.node(t,{kind:R.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:R.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(le.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:R.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(le.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:R.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:R.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:R.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:R.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:R.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw er(this._lexer.source,this._lexer.token.start,`${Yy(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:R.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:R.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:R.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:R.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:R.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(He,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new il(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw er(this._lexer.source,n.start,`Expected ${ex(t)}, found ${Yy(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw er(this._lexer.source,n.start,`Expected "${t}", found ${Yy(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return er(this._lexer.source,n.start,`Unexpected ${Yy(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==le.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw er(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function ii(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,5),u=o.pop();return i+o.join(", ")+", or "+u+"?"}var dc=ue(()=>{"use strict";m();T();h()});function E_(e){return e}var tx=ue(()=>{"use strict";m();T();h()});function si(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var pc=ue(()=>{"use strict";m();T();h()});function Ds(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var $f=ue(()=>{"use strict";m();T();h()});function so(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var g_=ue(()=>{"use strict";m();T();h()});function Fa(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-I_,s=t.charCodeAt(r);while(Jy(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}function Jy(e){return!isNaN(e)&&I_<=e&&e<=nH}var I_,nH,qf=ue(()=>{"use strict";m();T();h();I_=48,nH=57});function gi(e,t){let n=Object.create(null),r=new v_(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:Fa(s,o)})}function nx(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();qf();v_=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=nx(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=nx(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let S=1;S<=u;S++){let C=i[p-1]===s[S-1]?0:1,V=Math.min(y[S]+1,N[S-1]+1,y[S-1]+C);if(p>1&&S>1&&i[p-1]===s[S-2]&&i[p-2]===s[S-1]){let G=l[(p-2)%3][S-2];V=Math.min(V,G+1)}Vn)return}let d=l[o%3][u];return d<=n?d:void 0}}});function Ii(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var zy=ue(()=>{"use strict";m();T();h()});function rx(e){return`"${e.replace(rH,iH)}"`}function iH(e){return sH[e.charCodeAt(0)]}var rH,sH,ix=ue(()=>{"use strict";m();T();h();rH=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;sH=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function As(e,t,n=h_){let r=new Map;for(let G of Object.values(R))r.set(G,wa(t,G));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let G=u===o.length,re=G&&l.length!==0;if(G){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[he,Ce]of l){let ht=he-fe;Ce===null?(d.splice(ht,1),fe++):d[ht]=Ce}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,he]of l)d[fe]=he}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var S,C;xf(d)||it(!1,`Invalid AST Node: ${ne(d)}.`);let fe=G?(S=r.get(d.kind))===null||S===void 0?void 0:S.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===mc)break;if(se===!1){if(!G){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!G))if(xf(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),G)N.pop();else{var V;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(V=n[d.kind])!==null&&V!==void 0?V:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function xd(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(R)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Ni();Nn();ko();Xt();mc=Object.freeze({})});function Ft(e){return As(e,aH)}function Ge(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function oo(e){return Yt(`{ +`,Hy(Ge(e,` `)),` -}`)}function Yt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Ky(e){return Yt(" ",e.replace(/\n/g,` - `))}function Qk(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}var Q6,Y6,is=ue(()=>{"use strict";m();T();h();wf();Gk();el();Q6=80,Y6={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` +}`)}function Yt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Hy(e){return Yt(" ",e.replace(/\n/g,` + `))}function sx(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!==null&&t!==void 0?t:!1}var oH,aH,is=ue(()=>{"use strict";m();T();h();Uf();ix();ol();oH=80,aH={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ge(e.definitions,` -`)},OperationDefinition:{leave(e){let t=Yt("(",Ge(e.variableDefinitions,", "),")"),n=Ge([e.operation,Ge([e.name,t]),Ge(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Yt(" = ",n)+Yt(" ",Ge(r," "))},SelectionSet:{leave:({selections:e})=>oo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Yt("",e,": ")+t,o=s+Yt("(",Ge(n,", "),")");return o.length>Q6&&(o=s+Yt(`( -`,Ky(Ge(n,` +`)},OperationDefinition:{leave(e){let t=Yt("(",Ge(e.variableDefinitions,", "),")"),n=Ge([e.operation,Ge([e.name,t]),Ge(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Yt(" = ",n)+Yt(" ",Ge(r," "))},SelectionSet:{leave:({selections:e})=>oo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Yt("",e,": ")+t,o=s+Yt("(",Ge(n,", "),")");return o.length>oH&&(o=s+Yt(`( +`,Hy(Ge(n,` `)),` -)`)),Ge([o,Ge(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Yt(" ",Ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ge(["...",Yt("on ",e),Ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Yt("(",Ge(n,", "),")")} on ${t} ${Yt("",Ge(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?ky(e):Kk(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ge(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Yt("(",Ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Yt("",e,` +)`)),Ge([o,Ge(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Yt(" ",Ge(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ge(["...",Yt("on ",e),Ge(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Yt("(",Ge(n,", "),")")} on ${t} ${Yt("",Ge(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Vy(e):rx(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ge(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ge(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Yt("(",Ge(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Yt("",e,` `)+Ge(["schema",Ge(t," "),oo(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Yt("",e,` `)+Ge(["scalar",t,Ge(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Yt("",e,` `)+Ge(["type",t,Yt("implements ",Ge(n," & ")),Ge(r," "),oo(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Yt("",e,` -`)+t+(Qk(n)?Yt(`( -`,Ky(Ge(n,` +`)+t+(sx(n)?Yt(`( +`,Hy(Ge(n,` `)),` )`):Yt("(",Ge(n,", "),")"))+": "+r+Yt(" ",Ge(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Yt("",e,` `)+Ge([t+": "+n,Yt("= ",r),Ge(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Yt("",e,` @@ -56,18 +56,18 @@ spurious results.`)}}return!1}});function By(e){return Ei(e,Co)}var Co,Vy=ue(()= `)+Ge(["enum",t,Ge(n," "),oo(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Yt("",e,` `)+Ge([t,Ge(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Yt("",e,` `)+Ge(["input",t,Ge(n," "),oo(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Yt("",e,` -`)+"directive @"+t+(Qk(n)?Yt(`( -`,Ky(Ge(n,` +`)+"directive @"+t+(sx(n)?Yt(`( +`,Hy(Ge(n,` `)),` -)`):Yt("(",Ge(n,", "),")"))+(r?" repeatable":"")+" on "+Ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ge(["extend schema",Ge(e," "),oo(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ge(["extend scalar",e,Ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend type",e,Yt("implements ",Ge(t," & ")),Ge(n," "),oo(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend interface",e,Yt("implements ",Ge(t," & ")),Ge(n," "),oo(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ge(["extend union",e,Ge(t," "),Yt("= ",Ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ge(["extend enum",e,Ge(t," "),oo(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ge(["extend input",e,Ge(t," "),oo(n)]," ")}}});function tl(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map(n=>tl(n,t));case R.OBJECT:return Ds(e.fields,n=>n.name.value,n=>tl(n.value,t));case R.VARIABLE:return t==null?void 0:t[e.name.value]}}var T_=ue(()=>{"use strict";m();T();h();xf();Xt()});function Mr(e){if(e!=null||rt(!1,"Must provide name."),typeof e=="string"||rt(!1,"Expected name to be a string."),e.length===0)throw new Y("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Ni();ot();Py()});function cc(e){return er(e)||at(e)||Nt(e)||pn(e)||sn(e)||It(e)||Pt(e)||Qe(e)}function y_(e){if(!cc(e))throw new Error(`Expected ${ne(e)} to be a GraphQL type.`);return e}function er(e){return Ei(e,Jr)}function N_(e){if(!er(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Scalar type.`);return e}function at(e){return Ei(e,_r)}function Vf(e){if(!at(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Object type.`);return e}function Nt(e){return Ei(e,ss)}function jf(e){if(!Nt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Interface type.`);return e}function pn(e){return Ei(e,os)}function E_(e){if(!pn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Union type.`);return e}function sn(e){return Ei(e,oi)}function g_(e){if(!sn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Enum type.`);return e}function It(e){return Ei(e,as)}function I_(e){if(!It(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Input Object type.`);return e}function Pt(e){return Ei(e,Mn)}function v_(e){if(!Pt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL List type.`);return e}function Qe(e){return Ei(e,pt)}function __(e){if(!Qe(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Non-Null type.`);return e}function Nr(e){return er(e)||sn(e)||It(e)||nl(e)&&Nr(e.ofType)}function b_(e){if(!Nr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL input type.`);return e}function us(e){return er(e)||at(e)||Nt(e)||pn(e)||sn(e)||nl(e)&&us(e.ofType)}function O_(e){if(!us(e))throw new Error(`Expected ${ne(e)} to be a GraphQL output type.`);return e}function Rr(e){return er(e)||sn(e)}function S_(e){if(!Rr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL leaf type.`);return e}function vi(e){return at(e)||Nt(e)||pn(e)}function D_(e){if(!vi(e))throw new Error(`Expected ${ne(e)} to be a GraphQL composite type.`);return e}function zr(e){return Nt(e)||pn(e)}function A_(e){if(!zr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL abstract type.`);return e}function nl(e){return Pt(e)||Qe(e)}function R_(e){if(!nl(e))throw new Error(`Expected ${ne(e)} to be a GraphQL wrapping type.`);return e}function $f(e){return cc(e)&&!Qe(e)}function qf(e){if(!$f(e))throw new Error(`Expected ${ne(e)} to be a GraphQL nullable type.`);return e}function rl(e){if(e)return Qe(e)?e.ofType:e}function La(e){return er(e)||at(e)||Nt(e)||pn(e)||sn(e)||It(e)}function F_(e){if(!La(e))throw new Error(`Expected ${ne(e)} to be a GraphQL named type.`);return e}function Gn(e){if(e){let t=e;for(;nl(t);)t=t.ofType;return t}}function Kf(e){return typeof e=="function"?e():e}function Gf(e){return typeof e=="function"?e():e}function Jk(e){var t;let n=Kf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||rt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function zk(e){let t=Gf(e.fields);return Fd(t)||rt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),so(t,(n,r)=>{var i;Fd(n)||rt(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||rt(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Fd(s)||rt(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Mr(r),description:n.description,type:n.type,args:w_(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}})}function w_(e){return Object.entries(e).map(([t,n])=>({name:Mr(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Fd(e){return or(e)&&!Array.isArray(e)}function Hk(e){return so(e,t=>({description:t.description,type:t.type,args:L_(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function L_(e){return Ds(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cs(e){return Qe(e.type)&&e.defaultValue===void 0}function J6(e){let t=Kf(e.types);return Array.isArray(t)||rt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Gy(e,t){let n=e.getValues().map(i=>i.name),r=gi(t,n);return ii("the enum value",r)}function Yk(e,t){return Fd(t)||rt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Fd(r)||rt(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:Mf(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ii(r.extensions),astNode:r.astNode}))}function z6(e){let t=Gf(e.fields);return Fd(t)||rt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),so(t,(n,r)=>(!("resolve"in n)||rt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Mr(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Pa(e){return Qe(e.type)&&e.defaultValue===void 0}var Mn,pt,Jr,_r,ss,os,oi,as,Zt=ue(()=>{"use strict";m();T();h();Ni();sc();$k();Nn();kf();Po();oc();xf();p_();ac();qy();ot();Xt();is();T_();Bf();Mn=class{constructor(t){cc(t)||rt(!1,`Expected ${ne(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},pt=class{constructor(t){$f(t)||rt(!1,`Expected ${ne(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Jr=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:d_;this.name=Mr(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:d_,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o(tl(u,l)),this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||rt(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||rt(!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"||rt(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},_r=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>zk(t),this._interfaces=()=>Jk(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||rt(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Hk(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ss=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=zk.bind(void 0,t),this._interfaces=Jk.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||rt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Hk(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},os=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=J6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||rt(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};oi=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Yk(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Yk(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=si(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Y(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=ne(t);throw new Y(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Gy(this,r))}let n=this.getValue(t);if(n==null)throw new Y(`Value "${t}" does not exist in "${this.name}" enum.`+Gy(this,t));return n.value}parseLiteral(t,n){if(t.kind!==R.ENUM){let i=Ft(t);throw new Y(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Gy(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=Ft(t);throw new Y(`Value "${i}" does not exist in "${this.name}" enum.`+Gy(this,i),{nodes:t})}return r.value}toConfig(){let t=Ds(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};as=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=z6.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=so(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function il(e,t){return e===t?!0:Qe(e)&&Qe(t)||Pt(e)&&Pt(t)?il(e.ofType,t.ofType):!1}function ao(e,t,n){return t===n?!0:Qe(n)?Qe(t)?ao(e,t.ofType,n.ofType):!1:Qe(t)?ao(e,t.ofType,n):Pt(n)?Pt(t)?ao(e,t.ofType,n.ofType):!1:Pt(t)?!1:zr(n)&&(Nt(t)||at(t))&&e.isSubType(n,t)}function wd(e,t,n){return t===n?!0:zr(t)?zr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):zr(n)?e.isSubType(n,t):!1}var Qf=ue(()=>{"use strict";m();T();h();Zt()});function uo(e){return xo.some(({name:t})=>e.name===t)}function Yf(e){if(or(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!or(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var Ld,Pd,Qy,Yy,Bn,Br,kd,xo,Uo=ue(()=>{"use strict";m();T();h();Nn();Po();ot();Xt();is();Zt();Ld=2147483647,Pd=-2147483648,Qy=new Jr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Yf(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Y(`Int cannot represent non-integer value: ${ne(t)}`);if(n>Ld||nLd||eLd||tt===e.name)}var Vr,Cd,xd,Ud,Mo,Md,Bd,ai,Bi=ue(()=>{"use strict";m();T();h();Ni();Nn();kf();Po();qy();bd();Bf();Zt();Uo();Vr=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ii(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||rt(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};or(i)&&!Array.isArray(i)||rt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=w_(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:L_(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},Cd=new Vr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[He.FIELD,He.FRAGMENT_SPREAD,He.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Included when true."}}}),xd=new Vr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[He.FIELD,He.FRAGMENT_SPREAD,He.INLINE_FRAGMENT],args:{if:{type:new pt(Br),description:"Skipped when true."}}}),Ud="No longer supported",Mo=new Vr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[He.FIELD_DEFINITION,He.ARGUMENT_DEFINITION,He.INPUT_FIELD_DEFINITION,He.ENUM_VALUE],args:{reason:{type:Bn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Ud}}}),Md=new Vr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[He.SCALAR],args:{url:{type:new pt(Bn),description:"The URL that specifies the behavior of this scalar."}}}),Bd=new Vr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[He.INPUT_OBJECT],args:{}}),ai=Object.freeze([Cd,xd,Mo,Md,Bd])});function Vd(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var Jy=ue(()=>{"use strict";m();T();h()});function Hr(e,t){if(Qe(t)){let n=Hr(e,t.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Pt(t)){let n=t.ofType;if(Vd(e)){let r=[];for(let i of e){let s=Hr(i,n);s!=null&&r.push(s)}return{kind:R.LIST,values:r}}return Hr(e,n)}if(It(t)){if(!or(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Hr(e[r.name],r.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:r.name},value:i})}return{kind:R.OBJECT,fields:n}}if(Rr(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Wk.test(r)?{kind:R.INT,value:r}:{kind:R.FLOAT,value:r}}if(typeof n=="string")return sn(t)?{kind:R.ENUM,value:n}:t===kd&&Wk.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ne(n)}.`)}Qt(!1,"Unexpected input type: "+ne(t))}var Wk,Jf=ue(()=>{"use strict";m();T();h();Nn();ri();Jy();Po();Xt();Zt();Uo();Wk=/^-?(?:0|[1-9][0-9]*)$/});function ui(e){return Bo.some(({name:t})=>e.name===t)}var sl,zf,Hf,Vi,Wf,ol,Xf,fn,Zf,ka,Ca,xa,Bo,Rs=ue(()=>{"use strict";m();T();h();Nn();ri();bd();is();Jf();Zt();Uo();sl=new _r({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Bn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new pt(new Mn(new pt(Vi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new pt(Vi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Vi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Vi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new pt(new Mn(new pt(zf))),resolve:e=>e.getDirectives()}})}),zf=new _r({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +)`):Yt("(",Ge(n,", "),")"))+(r?" repeatable":"")+" on "+Ge(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ge(["extend schema",Ge(e," "),oo(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ge(["extend scalar",e,Ge(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend type",e,Yt("implements ",Ge(t," & ")),Ge(n," "),oo(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ge(["extend interface",e,Yt("implements ",Ge(t," & ")),Ge(n," "),oo(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ge(["extend union",e,Ge(t," "),Yt("= ",Ge(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ge(["extend enum",e,Ge(t," "),oo(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ge(["extend input",e,Ge(t," "),oo(n)]," ")}}});function al(e,t){switch(e.kind){case R.NULL:return null;case R.INT:return parseInt(e.value,10);case R.FLOAT:return parseFloat(e.value);case R.STRING:case R.ENUM:case R.BOOLEAN:return e.value;case R.LIST:return e.values.map(n=>al(n,t));case R.OBJECT:return Ds(e.fields,n=>n.name.value,n=>al(n.value,t));case R.VARIABLE:return t==null?void 0:t[e.name.value]}}var b_=ue(()=>{"use strict";m();T();h();$f();Xt()});function Mr(e){if(e!=null||it(!1,"Must provide name."),typeof e=="string"||it(!1,"Expected name to be a string."),e.length===0)throw new J("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Ni();at();By()});function hc(e){return tr(e)||ut(e)||Nt(e)||pn(e)||sn(e)||It(e)||Pt(e)||Qe(e)}function O_(e){if(!hc(e))throw new Error(`Expected ${ne(e)} to be a GraphQL type.`);return e}function tr(e){return Ei(e,Jr)}function S_(e){if(!tr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Scalar type.`);return e}function ut(e){return Ei(e,_r)}function Qf(e){if(!ut(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Object type.`);return e}function Nt(e){return Ei(e,ss)}function Yf(e){if(!Nt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Interface type.`);return e}function pn(e){return Ei(e,os)}function D_(e){if(!pn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Union type.`);return e}function sn(e){return Ei(e,oi)}function A_(e){if(!sn(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Enum type.`);return e}function It(e){return Ei(e,as)}function R_(e){if(!It(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Input Object type.`);return e}function Pt(e){return Ei(e,Mn)}function F_(e){if(!Pt(e))throw new Error(`Expected ${ne(e)} to be a GraphQL List type.`);return e}function Qe(e){return Ei(e,ft)}function w_(e){if(!Qe(e))throw new Error(`Expected ${ne(e)} to be a GraphQL Non-Null type.`);return e}function Nr(e){return tr(e)||sn(e)||It(e)||ul(e)&&Nr(e.ofType)}function L_(e){if(!Nr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL input type.`);return e}function us(e){return tr(e)||ut(e)||Nt(e)||pn(e)||sn(e)||ul(e)&&us(e.ofType)}function P_(e){if(!us(e))throw new Error(`Expected ${ne(e)} to be a GraphQL output type.`);return e}function Rr(e){return tr(e)||sn(e)}function k_(e){if(!Rr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL leaf type.`);return e}function vi(e){return ut(e)||Nt(e)||pn(e)}function x_(e){if(!vi(e))throw new Error(`Expected ${ne(e)} to be a GraphQL composite type.`);return e}function zr(e){return Nt(e)||pn(e)}function C_(e){if(!zr(e))throw new Error(`Expected ${ne(e)} to be a GraphQL abstract type.`);return e}function ul(e){return Pt(e)||Qe(e)}function U_(e){if(!ul(e))throw new Error(`Expected ${ne(e)} to be a GraphQL wrapping type.`);return e}function Jf(e){return hc(e)&&!Qe(e)}function zf(e){if(!Jf(e))throw new Error(`Expected ${ne(e)} to be a GraphQL nullable type.`);return e}function cl(e){if(e)return Qe(e)?e.ofType:e}function La(e){return tr(e)||ut(e)||Nt(e)||pn(e)||sn(e)||It(e)}function M_(e){if(!La(e))throw new Error(`Expected ${ne(e)} to be a GraphQL named type.`);return e}function Gn(e){if(e){let t=e;for(;ul(t);)t=t.ofType;return t}}function Hf(e){return typeof e=="function"?e():e}function Wf(e){return typeof e=="function"?e():e}function ax(e){var t;let n=Hf((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||it(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ux(e){let t=Wf(e.fields);return Cd(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),so(t,(n,r)=>{var i;Cd(n)||it(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||it(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${ne(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return Cd(s)||it(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Mr(r),description:n.description,type:n.type,args:B_(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}})}function B_(e){return Object.entries(e).map(([t,n])=>({name:Mr(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Cd(e){return or(e)&&!Array.isArray(e)}function cx(e){return so(e,t=>({description:t.description,type:t.type,args:V_(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function V_(e){return Ds(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cs(e){return Qe(e.type)&&e.defaultValue===void 0}function uH(e){let t=Hf(e.types);return Array.isArray(t)||it(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Wy(e,t){let n=e.getValues().map(i=>i.name),r=gi(t,n);return ii("the enum value",r)}function ox(e,t){return Cd(t)||it(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Cd(r)||it(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ne(r)}.`),{name:Kf(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:Ii(r.extensions),astNode:r.astNode}))}function cH(e){let t=Wf(e.fields);return Cd(t)||it(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),so(t,(n,r)=>(!("resolve"in n)||it(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Mr(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ii(n.extensions),astNode:n.astNode}))}function Pa(e){return Qe(e.type)&&e.defaultValue===void 0}var Mn,ft,Jr,_r,ss,os,oi,as,Zt=ue(()=>{"use strict";m();T();h();Ni();dc();tx();Nn();Vf();Po();pc();$f();g_();fc();zy();at();Xt();is();b_();Gf();Mn=class{constructor(t){hc(t)||it(!1,`Expected ${ne(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},ft=class{constructor(t){Jf(t)||it(!1,`Expected ${ne(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Jr=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:E_;this.name=Mr(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:E_,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o(al(u,l)),this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||it(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ne(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||it(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||it(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},_r=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>ux(t),this._interfaces=()=>ax(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||it(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ne(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cx(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};ss=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=ux.bind(void 0,t),this._interfaces=ax.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:cx(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},os=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=uH.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||it(!1,`${this.name} must provide "resolveType" as a function, but got: ${ne(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};oi=class{constructor(t){var n;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:ox(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=ox(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=si(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new J(`Enum "${this.name}" cannot represent value: ${ne(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=ne(t);throw new J(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Wy(this,r))}let n=this.getValue(t);if(n==null)throw new J(`Value "${t}" does not exist in "${this.name}" enum.`+Wy(this,t));return n.value}parseLiteral(t,n){if(t.kind!==R.ENUM){let i=Ft(t);throw new J(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Wy(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=Ft(t);throw new J(`Value "${i}" does not exist in "${this.name}" enum.`+Wy(this,i),{nodes:t})}return r.value}toConfig(){let t=Ds(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};as=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=cH.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=so(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function ll(e,t){return e===t?!0:Qe(e)&&Qe(t)||Pt(e)&&Pt(t)?ll(e.ofType,t.ofType):!1}function ao(e,t,n){return t===n?!0:Qe(n)?Qe(t)?ao(e,t.ofType,n.ofType):!1:Qe(t)?ao(e,t.ofType,n):Pt(n)?Pt(t)?ao(e,t.ofType,n.ofType):!1:Pt(t)?!1:zr(n)&&(Nt(t)||ut(t))&&e.isSubType(n,t)}function Ud(e,t,n){return t===n?!0:zr(t)?zr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):zr(n)?e.isSubType(n,t):!1}var Xf=ue(()=>{"use strict";m();T();h();Zt()});function uo(e){return Co.some(({name:t})=>e.name===t)}function Zf(e){if(or(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!or(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var Md,Bd,Xy,Zy,Bn,Br,Vd,Co,Uo=ue(()=>{"use strict";m();T();h();Nn();Po();at();Xt();is();Zt();Md=2147483647,Bd=-2147483648,Xy=new Jr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=Zf(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new J(`Int cannot represent non-integer value: ${ne(t)}`);if(n>Md||nMd||eMd||tt===e.name)}var Vr,jd,$d,qd,Mo,Kd,Gd,ai,Bi=ue(()=>{"use strict";m();T();h();Ni();Nn();Vf();Po();zy();Fd();Gf();Zt();Uo();Vr=class{constructor(t){var n,r;this.name=Mr(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ii(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||it(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};or(i)&&!Array.isArray(i)||it(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=B_(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:V_(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},jd=new Vr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[He.FIELD,He.FRAGMENT_SPREAD,He.INLINE_FRAGMENT],args:{if:{type:new ft(Br),description:"Included when true."}}}),$d=new Vr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[He.FIELD,He.FRAGMENT_SPREAD,He.INLINE_FRAGMENT],args:{if:{type:new ft(Br),description:"Skipped when true."}}}),qd="No longer supported",Mo=new Vr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[He.FIELD_DEFINITION,He.ARGUMENT_DEFINITION,He.INPUT_FIELD_DEFINITION,He.ENUM_VALUE],args:{reason:{type:Bn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:qd}}}),Kd=new Vr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[He.SCALAR],args:{url:{type:new ft(Bn),description:"The URL that specifies the behavior of this scalar."}}}),Gd=new Vr({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[He.INPUT_OBJECT],args:{}}),ai=Object.freeze([jd,$d,Mo,Kd,Gd])});function Qd(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var eN=ue(()=>{"use strict";m();T();h()});function Hr(e,t){if(Qe(t)){let n=Hr(e,t.ofType);return(n==null?void 0:n.kind)===R.NULL?null:n}if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Pt(t)){let n=t.ofType;if(Qd(e)){let r=[];for(let i of e){let s=Hr(i,n);s!=null&&r.push(s)}return{kind:R.LIST,values:r}}return Hr(e,n)}if(It(t)){if(!or(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Hr(e[r.name],r.type);i&&n.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:r.name},value:i})}return{kind:R.OBJECT,fields:n}}if(Rr(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:R.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return lx.test(r)?{kind:R.INT,value:r}:{kind:R.FLOAT,value:r}}if(typeof n=="string")return sn(t)?{kind:R.ENUM,value:n}:t===Vd&&lx.test(n)?{kind:R.INT,value:n}:{kind:R.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ne(n)}.`)}Qt(!1,"Unexpected input type: "+ne(t))}var lx,em=ue(()=>{"use strict";m();T();h();Nn();ri();eN();Po();Xt();Zt();Uo();lx=/^-?(?:0|[1-9][0-9]*)$/});function ui(e){return Bo.some(({name:t})=>e.name===t)}var dl,tm,nm,Vi,rm,pl,im,fn,sm,ka,xa,Ca,Bo,Rs=ue(()=>{"use strict";m();T();h();Nn();ri();Fd();is();em();Zt();Uo();dl=new _r({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Bn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ft(new Mn(new ft(Vi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ft(Vi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Vi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Vi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ft(new Mn(new ft(tm))),resolve:e=>e.getDirectives()}})}),tm=new _r({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isRepeatable:{type:new pt(Br),resolve:e=>e.isRepeatable},locations:{type:new pt(new Mn(new pt(Hf))),resolve:e=>e.locations},args:{type:new pt(new Mn(new pt(ol))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Hf=new oi({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:He.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:He.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:He.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:He.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:He.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:He.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:He.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:He.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:He.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:He.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:He.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:He.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:He.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:He.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:He.UNION,description:"Location adjacent to a union definition."},ENUM:{value:He.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:He.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:He.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:He.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Vi=new _r({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new pt(Zf),resolve(e){if(er(e))return fn.SCALAR;if(at(e))return fn.OBJECT;if(Nt(e))return fn.INTERFACE;if(pn(e))return fn.UNION;if(sn(e))return fn.ENUM;if(It(e))return fn.INPUT_OBJECT;if(Pt(e))return fn.LIST;if(Qe(e))return fn.NON_NULL;Qt(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Bn,resolve:e=>"name"in e?e.name:void 0},description:{type:Bn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Bn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Mn(new pt(Wf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(at(e)||Nt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Mn(new pt(Vi)),resolve(e){if(at(e)||Nt(e))return e.getInterfaces()}},possibleTypes:{type:new Mn(new pt(Vi)),resolve(e,t,n,{schema:r}){if(zr(e))return r.getPossibleTypes(e)}},enumValues:{type:new Mn(new pt(Xf)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(sn(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Mn(new pt(ol)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(It(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Vi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Br,resolve:e=>{if(It(e))return e.isOneOf}}})}),Wf=new _r({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},args:{type:new pt(new Mn(new pt(ol))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new pt(Vi),resolve:e=>e.type},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),ol=new _r({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},type:{type:new pt(Vi),resolve:e=>e.type},defaultValue:{type:Bn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Hr(n,t);return r?Ft(r):null}},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),Xf=new _r({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new pt(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isDeprecated:{type:new pt(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})});(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(fn||(fn={}));Zf=new oi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:fn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:fn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:fn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:fn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:fn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:fn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:fn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:fn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ka={name:"__schema",type:new pt(sl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ca={name:"__type",type:Vi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new pt(Bn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},xa={name:"__typename",type:new pt(Bn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Bo=Object.freeze([sl,zf,Hf,Vi,Wf,ol,Xf,Zf])});function zy(e){return Ei(e,ji)}function al(e){if(!zy(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}function co(e,t){let n=Gn(e);if(!t.has(n)){if(t.add(n),pn(n))for(let r of n.getTypes())co(r,t);else if(at(n)||Nt(n)){for(let r of n.getInterfaces())co(r,t);for(let r of Object.values(n.getFields())){co(r.type,t);for(let i of r.args)co(i.type,t)}}else if(It(n))for(let r of Object.values(n.getFields()))co(r.type,t)}return t}var ji,ul=ue(()=>{"use strict";m();T();h();Ni();Nn();kf();Po();qy();ko();Zt();Bi();Rs();ji=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,or(t)||rt(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||rt(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||rt(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ai;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),co(s,i);this._queryType!=null&&co(this._queryType,i),this._mutationType!=null&&co(this._mutationType,i),this._subscriptionType!=null&&co(this._subscriptionType,i);for(let s of this._directives)if(lc(s))for(let o of s.args)co(o.type,i);co(sl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||rt(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,Nt(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if(at(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Un.QUERY:return this.getQueryType();case Un.MUTATION:return this.getMutationType();case Un.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return pn(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),pn(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}});function jd(e){if(al(e),e.__validationErrors)return e.__validationErrors;let t=new C_(e);H6(t),W6(t),X6(t);let n=t.getErrors();return e.__validationErrors=n,n}function ll(e){let t=jd(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ft(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isRepeatable:{type:new ft(Br),resolve:e=>e.isRepeatable},locations:{type:new ft(new Mn(new ft(nm))),resolve:e=>e.locations},args:{type:new ft(new Mn(new ft(pl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),nm=new oi({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:He.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:He.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:He.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:He.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:He.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:He.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:He.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:He.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:He.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:He.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:He.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:He.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:He.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:He.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:He.UNION,description:"Location adjacent to a union definition."},ENUM:{value:He.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:He.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:He.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:He.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Vi=new _r({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ft(sm),resolve(e){if(tr(e))return fn.SCALAR;if(ut(e))return fn.OBJECT;if(Nt(e))return fn.INTERFACE;if(pn(e))return fn.UNION;if(sn(e))return fn.ENUM;if(It(e))return fn.INPUT_OBJECT;if(Pt(e))return fn.LIST;if(Qe(e))return fn.NON_NULL;Qt(!1,`Unexpected type: "${ne(e)}".`)}},name:{type:Bn,resolve:e=>"name"in e?e.name:void 0},description:{type:Bn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Bn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Mn(new ft(rm)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ut(e)||Nt(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Mn(new ft(Vi)),resolve(e){if(ut(e)||Nt(e))return e.getInterfaces()}},possibleTypes:{type:new Mn(new ft(Vi)),resolve(e,t,n,{schema:r}){if(zr(e))return r.getPossibleTypes(e)}},enumValues:{type:new Mn(new ft(im)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(sn(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Mn(new ft(pl)),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(It(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Vi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Br,resolve:e=>{if(It(e))return e.isOneOf}}})}),rm=new _r({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ft(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},args:{type:new ft(new Mn(new ft(pl))),args:{includeDeprecated:{type:Br,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ft(Vi),resolve:e=>e.type},isDeprecated:{type:new ft(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),pl=new _r({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ft(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},type:{type:new ft(Vi),resolve:e=>e.type},defaultValue:{type:Bn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Hr(n,t);return r?Ft(r):null}},isDeprecated:{type:new ft(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})}),im=new _r({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ft(Bn),resolve:e=>e.name},description:{type:Bn,resolve:e=>e.description},isDeprecated:{type:new ft(Br),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Bn,resolve:e=>e.deprecationReason}})});(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(fn||(fn={}));sm=new oi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:fn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:fn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:fn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:fn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:fn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:fn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:fn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:fn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ka={name:"__schema",type:new ft(dl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},xa={name:"__type",type:Vi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ft(Bn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ca={name:"__typename",type:new ft(Bn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Bo=Object.freeze([dl,tm,nm,Vi,rm,pl,im,sm])});function tN(e){return Ei(e,ji)}function fl(e){if(!tN(e))throw new Error(`Expected ${ne(e)} to be a GraphQL schema.`);return e}function co(e,t){let n=Gn(e);if(!t.has(n)){if(t.add(n),pn(n))for(let r of n.getTypes())co(r,t);else if(ut(n)||Nt(n)){for(let r of n.getInterfaces())co(r,t);for(let r of Object.values(n.getFields())){co(r.type,t);for(let i of r.args)co(i.type,t)}}else if(It(n))for(let r of Object.values(n.getFields()))co(r.type,t)}return t}var ji,ml=ue(()=>{"use strict";m();T();h();Ni();Nn();Vf();Po();zy();ko();Zt();Bi();Rs();ji=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,or(t)||it(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||it(!1,`"types" must be Array if provided but got: ${ne(t.types)}.`),!t.directives||Array.isArray(t.directives)||it(!1,`"directives" must be Array if provided but got: ${ne(t.directives)}.`),this.description=t.description,this.extensions=Ii(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:ai;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),co(s,i);this._queryType!=null&&co(this._queryType,i),this._mutationType!=null&&co(this._mutationType,i),this._subscriptionType!=null&&co(this._subscriptionType,i);for(let s of this._directives)if(Tc(s))for(let o of s.args)co(o.type,i);co(dl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||it(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,Nt(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if(ut(s)){for(let u of s.getInterfaces())if(Nt(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Un.QUERY:return this.getQueryType();case Un.MUTATION:return this.getMutationType();case Un.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return pn(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),pn(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}});function Yd(e){if(fl(e),e.__validationErrors)return e.__validationErrors;let t=new q_(e);lH(t),dH(t),pH(t);let n=t.getErrors();return e.__validationErrors=n,n}function Tl(e){let t=Yd(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function H6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!at(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=k_(t,Un.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!at(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(s=k_(t,Un.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!at(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(o)}.`,(u=k_(t,Un.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function k_(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function W6(e){for(let n of e.schema.getDirectives()){if(!lc(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n==null?void 0:n.astNode);continue}cl(e,n);for(let r of n.args)if(cl(e,r),Nr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),cs(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[x_(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function cl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function X6(e){let t=sH(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!La(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}ui(r)||cl(e,r),at(r)||Nt(r)?(Xk(e,r),Zk(e,r)):pn(r)?tH(e,r):sn(r)?nH(e,r):It(r)&&(rH(e,r),t(r))}}function Xk(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(cl(e,o),!us(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${ne(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(cl(e,u),!Nr(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${ne(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(cs(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[x_(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function Zk(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Nt(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,em(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,em(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,em(t,r));continue}n[r.name]=!0,eH(e,t,r),Z6(e,t,r)}}function Z6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!ao(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${ne(l.type)} but ${t.name}.${d} is type ${ne(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(O=>O.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!il(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${ne(y.type)} but ${t.name}.${d}(${N}:) is type ${ne(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(O=>O.name===N)&&cs(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function eH(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...em(n,i),...em(t,n)])}function tH(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,eC(t,i.name));continue}r[i.name]=!0,at(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,eC(t,String(i)))}}function nH(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)cl(e,r)}function rH(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(cl(e,s),!Nr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Pa(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[x_(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&iH(t,s,e)}}function iH(e,t,n){if(Qe(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function sH(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if(Qe(u.type)&&It(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function em(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function eC(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function x_(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Mo.name)}var C_,tm=ue(()=>{"use strict";m();T();h();Nn();ot();ko();Qf();Zt();Bi();Rs();ul();C_=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Y(t,{nodes:r}))}getErrors(){return this._errors}}});function Qn(e,t){switch(t.kind){case R.LIST_TYPE:{let n=Qn(e,t.type);return n&&new Mn(n)}case R.NON_NULL_TYPE:{let n=Qn(e,t.type);return n&&new pt(n)}case R.NAMED_TYPE:return e.getType(t.name.value)}}var Vo=ue(()=>{"use strict";m();T();h();Xt();Zt()});function oH(e,t,n){let r=n.name.value;if(r===ka.name&&e.getQueryType()===t)return ka;if(r===Ca.name&&e.getQueryType()===t)return Ca;if(r===xa.name&&vi(t))return xa;if(at(t)||Nt(t))return t.getFields()[r]}function dl(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=wa(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),Rf(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=wa(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}var Ua,Hy=ue(()=>{"use strict";m();T();h();ko();Xt();el();Zt();Rs();Vo();Ua=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:oH,n&&(Nr(n)&&this._inputTypeStack.push(n),vi(n)&&this._parentTypeStack.push(n),us(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case R.SELECTION_SET:{let i=Gn(this.getType());this._parentTypeStack.push(vi(i)?i:void 0);break}case R.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(us(o)?o:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case R.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(at(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?Qn(n,i):Gn(this.getType());this._typeStack.push(us(s)?s:void 0);break}case R.VARIABLE_DEFINITION:{let i=Qn(n,t.type);this._inputTypeStack.push(Nr(i)?i:void 0);break}case R.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.LIST:{let i=rl(this.getInputType()),s=Pt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.OBJECT_FIELD:{let i=Gn(this.getInputType()),s,o;It(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.ENUM:{let i=Gn(this.getInputType()),s;sn(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break;default:}}}});function U_(e){return $d(e)||qd(e)||Kd(e)}function $d(e){return e.kind===R.OPERATION_DEFINITION||e.kind===R.FRAGMENT_DEFINITION}function M_(e){return e.kind===R.FIELD||e.kind===R.FRAGMENT_SPREAD||e.kind===R.INLINE_FRAGMENT}function Wy(e){return e.kind===R.VARIABLE||e.kind===R.INT||e.kind===R.FLOAT||e.kind===R.STRING||e.kind===R.BOOLEAN||e.kind===R.NULL||e.kind===R.ENUM||e.kind===R.LIST||e.kind===R.OBJECT}function nm(e){return Wy(e)&&(e.kind===R.LIST?e.values.some(nm):e.kind===R.OBJECT?e.fields.some(t=>nm(t.value)):e.kind!==R.VARIABLE)}function B_(e){return e.kind===R.NAMED_TYPE||e.kind===R.LIST_TYPE||e.kind===R.NON_NULL_TYPE}function qd(e){return e.kind===R.SCHEMA_DEFINITION||Fs(e)||e.kind===R.DIRECTIVE_DEFINITION}function Fs(e){return e.kind===R.SCALAR_TYPE_DEFINITION||e.kind===R.OBJECT_TYPE_DEFINITION||e.kind===R.INTERFACE_TYPE_DEFINITION||e.kind===R.UNION_TYPE_DEFINITION||e.kind===R.ENUM_TYPE_DEFINITION||e.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Kd(e){return e.kind===R.SCHEMA_EXTENSION||pc(e)}function pc(e){return e.kind===R.SCALAR_TYPE_EXTENSION||e.kind===R.OBJECT_TYPE_EXTENSION||e.kind===R.INTERFACE_TYPE_EXTENSION||e.kind===R.UNION_TYPE_EXTENSION||e.kind===R.ENUM_TYPE_EXTENSION||e.kind===R.INPUT_OBJECT_TYPE_EXTENSION}var pl=ue(()=>{"use strict";m();T();h();Xt()});function rm(e){return{Document(t){for(let n of t.definitions)if(!$d(n)){let r=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Y(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var V_=ue(()=>{"use strict";m();T();h();ot();Xt();pl()});function im(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=ii("to use an inline fragment on",aH(i,n,s));o===""&&(o=ii(uH(n,s))),e.reportError(new Y(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function aH(e,t,n){if(!zr(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:Nt(o)&&e.isSubType(o,u)?-1:Nt(u)&&e.isSubType(u,o)?1:Fa(o.name,u.name)}).map(o=>o.name)}function uH(e,t){if(at(e)||Nt(e)){let n=Object.keys(e.getFields());return gi(t,n)}return[]}var j_=ue(()=>{"use strict";m();T();h();sc();Uf();ac();ot();Zt()});function sm(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=Qn(e.getSchema(),n);if(r&&!vi(r)){let i=Ft(n);e.reportError(new Y(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Qn(e.getSchema(),t.typeCondition);if(n&&!vi(n)){let r=Ft(t.typeCondition);e.reportError(new Y(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var $_=ue(()=>{"use strict";m();T();h();ot();is();Zt();Vo()});function om(e){return G(k({},q_(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=gi(s,o);e.reportError(new Y(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+ii(u),{nodes:t}))}}})}function q_(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===R.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=gi(p,l);e.reportError(new Y(`Unknown argument "${p}" on directive "@${u}".`+ii(y),{nodes:d}))}}return!1}}}var K_=ue(()=>{"use strict";m();T();h();sc();ac();ot();Xt();Bi()});function Gd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===R.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new Y(`Unknown directive "@${p}".`,{nodes:s}));return}let N=cH(d);N&&!y.includes(N)&&e.reportError(new Y(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function cH(e){let t=e[e.length-1];switch("kind"in t||Qt(!1),t.kind){case R.OPERATION_DEFINITION:return lH(t.operation);case R.FIELD:return He.FIELD;case R.FRAGMENT_SPREAD:return He.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return He.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return He.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return He.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return He.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return He.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return He.OBJECT;case R.FIELD_DEFINITION:return He.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return He.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return He.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return He.ENUM;case R.ENUM_VALUE_DEFINITION:return He.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return He.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Qt(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?He.INPUT_FIELD_DEFINITION:He.ARGUMENT_DEFINITION}default:Qt(!1,"Unexpected kind: "+ne(t.kind))}}function lH(e){switch(e){case Un.QUERY:return He.QUERY;case Un.MUTATION:return He.MUTATION;case Un.SUBSCRIPTION:return He.SUBSCRIPTION}}var G_=ue(()=>{"use strict";m();T();h();Nn();ri();ot();ko();bd();Xt();Bi()});function am(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new Y(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var Q_=ue(()=>{"use strict";m();T();h();ot()});function Qd(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Fs(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&dH(N);if(I&&tC.includes(p))return;let O=gi(p,I?tC.concat(i):i);e.reportError(new Y(`Unknown type "${p}".`+ii(O),{nodes:s}))}}}}function dH(e){return"kind"in e&&(qd(e)||Kd(e))}var tC,Y_=ue(()=>{"use strict";m();T();h();sc();ac();ot();pl();Rs();Uo();tC=[...xo,...Bo].map(e=>e.name)});function um(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Y("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var J_=ue(()=>{"use strict";m();T();h();ot();Xt()});function cm(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(s){e.reportError(new Y("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new Y("Must provide only one schema definition.",{nodes:u})),++o}}}var z_=ue(()=>{"use strict";m();T();h();ot()});function lm(e){function t(n,r=Object.create(null),i=0){if(n.kind===R.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===R.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=pH))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new Y("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var pH,H_=ue(()=>{"use strict";m();T();h();ot();Xt();pH=3});function dm(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new Y(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}var W_=ue(()=>{"use strict";m();T();h();ot()});function pm(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new Y(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var X_=ue(()=>{"use strict";m();T();h();ot()});function fm(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new Y(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}var Z_=ue(()=>{"use strict";m();T();h();ot()});function mm(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new Y(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}var eb=ue(()=>{"use strict";m();T();h();ot()});function Yd(e){switch(e.kind){case R.OBJECT:return G(k({},e),{fields:fH(e.fields)});case R.LIST:return G(k({},e),{values:e.values.map(Yd)});case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return e}}function fH(e){return e.map(t=>G(k({},t),{value:Yd(t.value)})).sort((t,n)=>Fa(t.name.value,n.name.value))}var tb=ue(()=>{"use strict";m();T();h();Uf();Xt()});function rC(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+rC(n)).join(" and "):e}function hm(e){let t=new ib,n=new Map;return{SelectionSet(r){let i=mH(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=rC(o);e.reportError(new Y(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function mH(e,t,n,r,i){let s=[],[o,u]=eN(e,t,r,i);if(TH(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:nC(o)===nC(u)})}function nC(e){return Ft(Yd(e))}function nb(e,t){return Pt(e)?Pt(t)?nb(e.ofType,t.ofType):!0:Pt(t)?!0:Qe(e)?Qe(t)?nb(e.ofType,t.ofType):!0:Qe(t)?!0:Rr(e)||Rr(t)?e!==t:!1}function eN(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);sC(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function rb(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=Qn(e.getSchema(),n.typeCondition);return eN(e,t,i,n.selectionSet)}function sC(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case R.FIELD:{let o=s.name.value,u;(at(t)||Nt(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case R.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case R.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?Qn(e.getSchema(),o):t;sC(e,u,s.selectionSet,r,i);break}}}function NH(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var ib,ob=ue(()=>{"use strict";m();T();h();Nn();ot();Xt();is();Zt();tb();Vo();ib=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Nn();ot();Zt();Qf();Vo()});function ym(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Fs(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=gH[o.kind]:u&&(l=IH(u)),l){if(l!==i.kind){let d=vH(i.kind);e.reportError(new Y(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=gi(s,d);e.reportError(new Y(`Cannot extend type "${s}" because it is not defined.`+ii(p),{nodes:i.name}))}}}function IH(e){if(er(e))return R.SCALAR_TYPE_EXTENSION;if(at(e))return R.OBJECT_TYPE_EXTENSION;if(Nt(e))return R.INTERFACE_TYPE_EXTENSION;if(pn(e))return R.UNION_TYPE_EXTENSION;if(sn(e))return R.ENUM_TYPE_EXTENSION;if(It(e))return R.INPUT_OBJECT_TYPE_EXTENSION;Qt(!1,"Unexpected type: "+ne(e))}function vH(e){switch(e){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Qt(!1,"Unexpected kind: "+ne(e))}}var gH,ub=ue(()=>{"use strict";m();T();h();sc();Nn();ri();ac();ot();Xt();pl();Zt();gH={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION}});function Nm(e){return G(k({},cb(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&cs(s)){let o=ne(s.type);e.reportError(new Y(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function cb(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ai;for(let u of i)n[u.name]=si(u.args.filter(cs),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===R.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=si(l.filter(_H),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,O]of Object.entries(d))if(!N.has(I)){let x=cc(O.type)?ne(O.type):Ft(O.type);e.reportError(new Y(`Directive "@${l}" argument "${I}" of type "${x}" is required, but it was not provided.`,{nodes:u}))}}}}}}function _H(e){return e.type.kind===R.NON_NULL_TYPE&&e.defaultValue==null}var lb=ue(()=>{"use strict";m();T();h();Nn();oc();ot();Xt();is();Zt();Bi()});function Em(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(Rr(Gn(n))){if(r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=ne(n);e.reportError(new Y(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var db=ue(()=>{"use strict";m();T();h();Nn();ot();Zt()});function tN(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var pb=ue(()=>{"use strict";m();T();h()});function Ma(e,t,n){return{prev:e,key:t,typename:n}}function br(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var gm=ue(()=>{"use strict";m();T();h()});function vm(e,t,n=bH){return Im(e,t,n,void 0)}function bH(e,t,n){let r="Invalid value "+ne(t);throw e.length>0&&(r+=` at "value${tN(e)}"`),n.message=r+": "+n.message,n}function Im(e,t,n,r){if(Qe(t)){if(e!=null)return Im(e,t.ofType,n,r);n(br(r),e,new Y(`Expected non-nullable type "${ne(t)}" not to be null.`));return}if(e==null)return null;if(Pt(t)){let i=t.ofType;return Vd(e)?Array.from(e,(s,o)=>{let u=Ma(r,o,void 0);return Im(s,i,n,u)}):[Im(e,i,n,r)]}if(It(t)){if(!or(e)){n(br(r),e,new Y(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(Qe(o.type)){let l=ne(o.type);n(br(r),e,new Y(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Im(u,o.type,n,Ma(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=gi(o,Object.keys(t.getFields()));n(br(r),e,new Y(`Field "${o}" is not defined by type "${t.name}".`+ii(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n(br(r),e,new Y(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n(br(r).concat(u),l,new Y(`Field "${u}" must be non-null.`))}return i}if(Rr(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof Y?n(br(r),e,s):n(br(r),e,new Y(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(br(r),e,new Y(`Expected type "${t.name}".`)),i}Qt(!1,"Unexpected input type: "+ne(t))}var fb=ue(()=>{"use strict";m();T();h();sc();Nn();ri();Jy();Po();gm();pb();ac();ot();Zt()});function _i(e,t,n){if(e){if(e.kind===R.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&Qe(t)?void 0:i}if(Qe(t))return e.kind===R.NULL?void 0:_i(e,t.ofType,n);if(e.kind===R.NULL)return null;if(Pt(t)){let r=t.ofType;if(e.kind===R.LIST){let s=[];for(let o of e.values)if(oC(o,n)){if(Qe(r))return;s.push(null)}else{let u=_i(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=_i(e,r,n);return i===void 0?void 0:[i]}if(It(t)){if(e.kind!==R.OBJECT)return;let r=Object.create(null),i=si(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||oC(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(Qe(s.type))return;continue}let u=_i(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Rr(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Qt(!1,"Unexpected input type: "+ne(t))}}function oC(e,t){return e.kind===R.VARIABLE&&(t==null||t[e.name.value]===void 0)}var _m=ue(()=>{"use strict";m();T();h();Nn();ri();oc();Xt();Zt()});function bm(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=OH(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Y("Too many errors processing variables, error limit reached. Execution aborted.");i.push(u)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function OH(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=Qn(e,s.type);if(!Nr(u)){let d=Ft(s.type);r(new Y(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!aC(n,o)){if(s.defaultValue)i[o]=_i(s.defaultValue,u);else if(Qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&Qe(u)){let d=ne(u);r(new Y(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=vm(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+ne(p);d.length>0&&(N+=` at "${o}${tN(d)}"`),r(new Y(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function fc(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=si(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===R.NULL;if(y.kind===R.VARIABLE){let O=y.name.value;if(n==null||!aC(n,O)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Qe(d))throw new Y(`Argument "${l}" of required type "${ne(d)}" was provided the variable "$${O}" which was not provided a runtime value.`,{nodes:y});continue}N=n[O]==null}if(N&&Qe(d))throw new Y(`Argument "${l}" of non-null type "${ne(d)}" must not be null.`,{nodes:y});let I=_i(y,d,n);if(I===void 0)throw new Y(`Argument "${l}" has invalid value ${Ft(y)}.`,{nodes:y});i[l]=I}return i}function jo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return fc(e,i,n)}function aC(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Jd=ue(()=>{"use strict";m();T();h();Nn();oc();pb();ot();Xt();is();Zt();fb();Vo();_m()});function zd(e,t,n,r,i){let s=new Map;return nN(e,t,n,r,i,s,new Set),s}function cC(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&nN(e,t,n,r,u.selectionSet,s,o);return s}function nN(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case R.FIELD:{if(!mb(n,u))continue;let l=SH(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case R.INLINE_FRAGMENT:{if(!mb(n,u)||!uC(e,u,r))continue;nN(e,t,n,r,u.selectionSet,s,o);break}case R.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!mb(n,u))continue;o.add(l);let d=t[l];if(!d||!uC(e,d,r))continue;nN(e,t,n,r,d.selectionSet,s,o);break}}}function mb(e,t){let n=jo(xd,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=jo(Cd,t,e);return(r==null?void 0:r.if)!==!1}function uC(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Qn(e,r);return i===n?!0:zr(i)?e.isSubType(i,n):!1}function SH(e){return e.alias?e.alias.value:e.name.value}var rN=ue(()=>{"use strict";m();T();h();Xt();Zt();Bi();Vo();Jd()});function Om(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===R.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=zd(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Y(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Y(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}var hb=ue(()=>{"use strict";m();T();h();ot();Xt();rN()});function Hd(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}var iN=ue(()=>{"use strict";m();T();h()});function Sm(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=Hd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}var Tb=ue(()=>{"use strict";m();T();h();iN();ot()});function Wd(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=Hd(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new Y(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}var yb=ue(()=>{"use strict";m();T();h();iN();ot()});function Dm(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new Y(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Y(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var Nb=ue(()=>{"use strict";m();T();h();ot()});function Xd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===R.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===R.SCHEMA_DEFINITION||u.kind===R.SCHEMA_EXTENSION)l=s;else if(Fs(u)||pc(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new Y(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}var Eb=ue(()=>{"use strict";m();T();h();ot();Xt();pl();Bi()});function Am(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];sn(N)&&N.getValue(y)?e.reportError(new Y(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}var gb=ue(()=>{"use strict";m();T();h();ot();Zt()});function Rm(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;DH(n[u],y)?e.reportError(new Y(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new Y(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function DH(e,t){return at(e)||Nt(e)||It(e)?e.getFields()[t]!=null:!1}var Ib=ue(()=>{"use strict";m();T();h();ot();Zt()});function Fm(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Y(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var vb=ue(()=>{"use strict";m();T();h();ot()});function Zd(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Qt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new Y(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var _b=ue(()=>{"use strict";m();T();h();ri();ot()});function wm(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new Y(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var bb=ue(()=>{"use strict";m();T();h();ot()});function Lm(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new Y(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new Y(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}var Ob=ue(()=>{"use strict";m();T();h();ot()});function Pm(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new Y(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new Y(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}var Sb=ue(()=>{"use strict";m();T();h();ot()});function km(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Hd(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new Y(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}var Db=ue(()=>{"use strict";m();T();h();iN();ot()});function Cm(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=rl(e.getParentInputType());if(!Pt(r))return fl(e,n),!1},ObjectValue(n){let r=Gn(e.getInputType());if(!It(r))return fl(e,n),!1;let i=si(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&Pa(s)){let u=ne(s.type);e.reportError(new Y(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&AH(e,n,r,i,t)},ObjectField(n){let r=Gn(e.getParentInputType());if(!e.getInputType()&&It(r)){let s=gi(n.name.value,Object.keys(r.getFields()));e.reportError(new Y(`Field "${n.name.value}" is not defined by type "${r.name}".`+ii(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();Qe(r)&&e.reportError(new Y(`Expected value of type "${ne(r)}", found ${Ft(n)}.`,{nodes:n}))},EnumValue:n=>fl(e,n),IntValue:n=>fl(e,n),FloatValue:n=>fl(e,n),StringValue:n=>fl(e,n),BooleanValue:n=>fl(e,n)}}function fl(e,t){let n=e.getInputType();if(!n)return;let r=Gn(n);if(!Rr(r)){let i=ne(n);e.reportError(new Y(`Expected value of type "${i}", found ${Ft(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=ne(n);e.reportError(new Y(`Expected value of type "${s}", found ${Ft(t)}.`,{nodes:t}))}}catch(i){let s=ne(n);i instanceof Y?e.reportError(i):e.reportError(new Y(`Expected value of type "${s}", found ${Ft(t)}; `+i.message,{nodes:t,originalError:i}))}}function AH(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new Y(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===R.NULL,p=(l==null?void 0:l.kind)===R.VARIABLE;if(d){e.reportError(new Y(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==R.NON_NULL_TYPE&&e.reportError(new Y(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}var Ab=ue(()=>{"use strict";m();T();h();sc();Nn();oc();ac();ot();Xt();is();Zt()});function xm(e){return{VariableDefinition(t){let n=Qn(e.getSchema(),t.type);if(n!==void 0&&!Nr(n)){let r=t.variable.name.value,i=Ft(t.type);e.reportError(new Y(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var Rb=ue(()=>{"use strict";m();T();h();ot();is();Zt();Vo()});function Um(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=Qn(d,l.type);if(p&&!RH(d,p,l.defaultValue,s,o)){let y=ne(p),N=ne(s);e.reportError(new Y(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function RH(e,t,n,r,i){if(Qe(r)&&!Qe(t)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return ao(e,t,u)}return ao(e,t,r)}var Fb=ue(()=>{"use strict";m();T();h();Nn();ot();Xt();Zt();Qf();Vo()});var sN,Mm,lC,wb=ue(()=>{"use strict";m();T();h();V_();j_();$_();K_();G_();Q_();Y_();J_();z_();H_();W_();X_();Z_();eb();ob();ab();ub();lb();db();hb();Tb();yb();Nb();Eb();gb();Ib();vb();_b();bb();Ob();Sb();Db();Ab();Rb();Fb();sN=Object.freeze([lm]),Mm=Object.freeze([rm,wm,um,Om,Qd,sm,xm,Em,im,Fm,am,fm,Tm,dm,km,pm,mm,Gd,Xd,om,Wd,Cm,Nm,Um,hm,Zd,...sN]),lC=Object.freeze([cm,Lm,Pm,Am,Rm,Sm,Dm,Qd,Gd,Xd,ym,q_,Wd,Zd,cb])});var oN,aN,ml,Lb=ue(()=>{"use strict";m();T();h();Xt();el();Hy();oN=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===R.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===R.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},aN=class extends oN{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ml=class extends oN{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new Ua(this._schema);As(t,dl(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function Bm(e,t,n=Mm,r,i=new Ua(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||rt(!1,"Must provide document."),ll(e);let u=Object.freeze({}),l=[],d=new ml(e,t,i,y=>{if(l.length>=o)throw l.push(new Y("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=Rd(n.map(y=>y(d)));try{As(t,dl(i,p))}catch(y){if(y!==u)throw y}return l}function dC(e,t,n=lC){let r=[],i=new aN(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return As(e,Rd(s)),r}function pC(e){let t=dC(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}function lH(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!ut(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${ne(n)}.`,(r=$_(t,Un.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!ut(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ne(i)}.`,(s=$_(t,Un.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!ut(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ne(o)}.`,(u=$_(t,Un.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function $_(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function dH(e){for(let n of e.schema.getDirectives()){if(!Tc(n)){e.reportError(`Expected directive but got: ${ne(n)}.`,n==null?void 0:n.astNode);continue}hl(e,n);for(let r of n.args)if(hl(e,r),Nr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ne(r.type)}.`,r.astNode),cs(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[K_(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function hl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function pH(e){let t=EH(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!La(r)){e.reportError(`Expected GraphQL named type but got: ${ne(r)}.`,r.astNode);continue}ui(r)||hl(e,r),ut(r)||Nt(r)?(dx(e,r),px(e,r)):pn(r)?hH(e,r):sn(r)?TH(e,r):It(r)&&(yH(e,r),t(r))}}function dx(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(hl(e,o),!us(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${ne(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(hl(e,u),!Nr(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${ne(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if(cs(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[K_(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function px(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Nt(r)){e.reportError(`Type ${ne(t)} must only implement Interface types, it cannot implement ${ne(r)}.`,om(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,om(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,om(t,r));continue}n[r.name]=!0,mH(e,t,r),fH(e,t,r)}}function fH(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!ao(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${ne(l.type)} but ${t.name}.${d} is type ${ne(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(S=>S.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!ll(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${ne(y.type)} but ${t.name}.${d}(${N}:) is type ${ne(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(S=>S.name===N)&&cs(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function mH(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...om(n,i),...om(t,n)])}function hH(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,fx(t,i.name));continue}r[i.name]=!0,ut(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ne(i)}.`,fx(t,String(i)))}}function TH(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)hl(e,r)}function yH(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(hl(e,s),!Nr(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ne(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if(Pa(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[K_(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&NH(t,s,e)}}function NH(e,t,n){if(Qe(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function EH(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if(Qe(u.type)&&It(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function om(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function fx(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function K_(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Mo.name)}var q_,am=ue(()=>{"use strict";m();T();h();Nn();at();ko();Xf();Zt();Bi();Rs();ml();q_=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new J(t,{nodes:r}))}getErrors(){return this._errors}}});function Qn(e,t){switch(t.kind){case R.LIST_TYPE:{let n=Qn(e,t.type);return n&&new Mn(n)}case R.NON_NULL_TYPE:{let n=Qn(e,t.type);return n&&new ft(n)}case R.NAMED_TYPE:return e.getType(t.name.value)}}var Vo=ue(()=>{"use strict";m();T();h();Xt();Zt()});function gH(e,t,n){let r=n.name.value;if(r===ka.name&&e.getQueryType()===t)return ka;if(r===xa.name&&e.getQueryType()===t)return xa;if(r===Ca.name&&vi(t))return Ca;if(ut(t)||Nt(t))return t.getFields()[r]}function yl(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=wa(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),xf(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=wa(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}var Ua,nN=ue(()=>{"use strict";m();T();h();ko();Xt();ol();Zt();Rs();Vo();Ua=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:gH,n&&(Nr(n)&&this._inputTypeStack.push(n),vi(n)&&this._parentTypeStack.push(n),us(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case R.SELECTION_SET:{let i=Gn(this.getType());this._parentTypeStack.push(vi(i)?i:void 0);break}case R.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push(us(o)?o:void 0);break}case R.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case R.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(ut(i)?i:void 0);break}case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?Qn(n,i):Gn(this.getType());this._typeStack.push(us(s)?s:void 0);break}case R.VARIABLE_DEFINITION:{let i=Qn(n,t.type);this._inputTypeStack.push(Nr(i)?i:void 0);break}case R.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.LIST:{let i=cl(this.getInputType()),s=Pt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.OBJECT_FIELD:{let i=Gn(this.getInputType()),s,o;It(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push(Nr(s)?s:void 0);break}case R.ENUM:{let i=Gn(this.getInputType()),s;sn(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case R.SELECTION_SET:this._parentTypeStack.pop();break;case R.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case R.DIRECTIVE:this._directive=null;break;case R.OPERATION_DEFINITION:case R.INLINE_FRAGMENT:case R.FRAGMENT_DEFINITION:this._typeStack.pop();break;case R.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case R.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.LIST:case R.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case R.ENUM:this._enumValue=null;break;default:}}}});function G_(e){return Jd(e)||zd(e)||Hd(e)}function Jd(e){return e.kind===R.OPERATION_DEFINITION||e.kind===R.FRAGMENT_DEFINITION}function Q_(e){return e.kind===R.FIELD||e.kind===R.FRAGMENT_SPREAD||e.kind===R.INLINE_FRAGMENT}function rN(e){return e.kind===R.VARIABLE||e.kind===R.INT||e.kind===R.FLOAT||e.kind===R.STRING||e.kind===R.BOOLEAN||e.kind===R.NULL||e.kind===R.ENUM||e.kind===R.LIST||e.kind===R.OBJECT}function um(e){return rN(e)&&(e.kind===R.LIST?e.values.some(um):e.kind===R.OBJECT?e.fields.some(t=>um(t.value)):e.kind!==R.VARIABLE)}function Y_(e){return e.kind===R.NAMED_TYPE||e.kind===R.LIST_TYPE||e.kind===R.NON_NULL_TYPE}function zd(e){return e.kind===R.SCHEMA_DEFINITION||Fs(e)||e.kind===R.DIRECTIVE_DEFINITION}function Fs(e){return e.kind===R.SCALAR_TYPE_DEFINITION||e.kind===R.OBJECT_TYPE_DEFINITION||e.kind===R.INTERFACE_TYPE_DEFINITION||e.kind===R.UNION_TYPE_DEFINITION||e.kind===R.ENUM_TYPE_DEFINITION||e.kind===R.INPUT_OBJECT_TYPE_DEFINITION}function Hd(e){return e.kind===R.SCHEMA_EXTENSION||Nc(e)}function Nc(e){return e.kind===R.SCALAR_TYPE_EXTENSION||e.kind===R.OBJECT_TYPE_EXTENSION||e.kind===R.INTERFACE_TYPE_EXTENSION||e.kind===R.UNION_TYPE_EXTENSION||e.kind===R.ENUM_TYPE_EXTENSION||e.kind===R.INPUT_OBJECT_TYPE_EXTENSION}var Nl=ue(()=>{"use strict";m();T();h();Xt()});function cm(e){return{Document(t){for(let n of t.definitions)if(!Jd(n)){let r=n.kind===R.SCHEMA_DEFINITION||n.kind===R.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new J(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var J_=ue(()=>{"use strict";m();T();h();at();Xt();Nl()});function lm(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=ii("to use an inline fragment on",IH(i,n,s));o===""&&(o=ii(vH(n,s))),e.reportError(new J(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function IH(e,t,n){if(!zr(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:Nt(o)&&e.isSubType(o,u)?-1:Nt(u)&&e.isSubType(u,o)?1:Fa(o.name,u.name)}).map(o=>o.name)}function vH(e,t){if(ut(e)||Nt(e)){let n=Object.keys(e.getFields());return gi(t,n)}return[]}var z_=ue(()=>{"use strict";m();T();h();dc();qf();fc();at();Zt()});function dm(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=Qn(e.getSchema(),n);if(r&&!vi(r)){let i=Ft(n);e.reportError(new J(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=Qn(e.getSchema(),t.typeCondition);if(n&&!vi(n)){let r=Ft(t.typeCondition);e.reportError(new J(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var H_=ue(()=>{"use strict";m();T();h();at();is();Zt();Vo()});function pm(e){return Q(k({},W_(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=gi(s,o);e.reportError(new J(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+ii(u),{nodes:t}))}}})}function W_(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===R.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=gi(p,l);e.reportError(new J(`Unknown argument "${p}" on directive "@${u}".`+ii(y),{nodes:d}))}}return!1}}}var X_=ue(()=>{"use strict";m();T();h();dc();fc();at();Xt();Bi()});function Wd(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===R.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new J(`Unknown directive "@${p}".`,{nodes:s}));return}let N=_H(d);N&&!y.includes(N)&&e.reportError(new J(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function _H(e){let t=e[e.length-1];switch("kind"in t||Qt(!1),t.kind){case R.OPERATION_DEFINITION:return bH(t.operation);case R.FIELD:return He.FIELD;case R.FRAGMENT_SPREAD:return He.FRAGMENT_SPREAD;case R.INLINE_FRAGMENT:return He.INLINE_FRAGMENT;case R.FRAGMENT_DEFINITION:return He.FRAGMENT_DEFINITION;case R.VARIABLE_DEFINITION:return He.VARIABLE_DEFINITION;case R.SCHEMA_DEFINITION:case R.SCHEMA_EXTENSION:return He.SCHEMA;case R.SCALAR_TYPE_DEFINITION:case R.SCALAR_TYPE_EXTENSION:return He.SCALAR;case R.OBJECT_TYPE_DEFINITION:case R.OBJECT_TYPE_EXTENSION:return He.OBJECT;case R.FIELD_DEFINITION:return He.FIELD_DEFINITION;case R.INTERFACE_TYPE_DEFINITION:case R.INTERFACE_TYPE_EXTENSION:return He.INTERFACE;case R.UNION_TYPE_DEFINITION:case R.UNION_TYPE_EXTENSION:return He.UNION;case R.ENUM_TYPE_DEFINITION:case R.ENUM_TYPE_EXTENSION:return He.ENUM;case R.ENUM_VALUE_DEFINITION:return He.ENUM_VALUE;case R.INPUT_OBJECT_TYPE_DEFINITION:case R.INPUT_OBJECT_TYPE_EXTENSION:return He.INPUT_OBJECT;case R.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Qt(!1),n.kind===R.INPUT_OBJECT_TYPE_DEFINITION?He.INPUT_FIELD_DEFINITION:He.ARGUMENT_DEFINITION}default:Qt(!1,"Unexpected kind: "+ne(t.kind))}}function bH(e){switch(e){case Un.QUERY:return He.QUERY;case Un.MUTATION:return He.MUTATION;case Un.SUBSCRIPTION:return He.SUBSCRIPTION}}var Z_=ue(()=>{"use strict";m();T();h();Nn();ri();at();ko();Fd();Xt();Bi()});function fm(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new J(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var eb=ue(()=>{"use strict";m();T();h();at()});function Xd(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)Fs(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&OH(N);if(I&&mx.includes(p))return;let S=gi(p,I?mx.concat(i):i);e.reportError(new J(`Unknown type "${p}".`+ii(S),{nodes:s}))}}}}function OH(e){return"kind"in e&&(zd(e)||Hd(e))}var mx,tb=ue(()=>{"use strict";m();T();h();dc();fc();at();Nl();Rs();Uo();mx=[...Co,...Bo].map(e=>e.name)});function mm(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===R.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new J("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var nb=ue(()=>{"use strict";m();T();h();at();Xt()});function hm(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(s){e.reportError(new J("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new J("Must provide only one schema definition.",{nodes:u})),++o}}}var rb=ue(()=>{"use strict";m();T();h();at()});function Tm(e){function t(n,r=Object.create(null),i=0){if(n.kind===R.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===R.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=SH))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new J("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var SH,ib=ue(()=>{"use strict";m();T();h();at();Xt();SH=3});function ym(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new J(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}var sb=ue(()=>{"use strict";m();T();h();at()});function Nm(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new J(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var ob=ue(()=>{"use strict";m();T();h();at()});function Em(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new J(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}var ab=ue(()=>{"use strict";m();T();h();at()});function gm(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new J(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}var ub=ue(()=>{"use strict";m();T();h();at()});function Zd(e){switch(e.kind){case R.OBJECT:return Q(k({},e),{fields:DH(e.fields)});case R.LIST:return Q(k({},e),{values:e.values.map(Zd)});case R.INT:case R.FLOAT:case R.STRING:case R.BOOLEAN:case R.NULL:case R.ENUM:case R.VARIABLE:return e}}function DH(e){return e.map(t=>Q(k({},t),{value:Zd(t.value)})).sort((t,n)=>Fa(t.name.value,n.name.value))}var cb=ue(()=>{"use strict";m();T();h();qf();Xt()});function Tx(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Tx(n)).join(" and "):e}function Im(e){let t=new pb,n=new Map;return{SelectionSet(r){let i=AH(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=Tx(o);e.reportError(new J(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function AH(e,t,n,r,i){let s=[],[o,u]=oN(e,t,r,i);if(FH(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:hx(o)===hx(u)})}function hx(e){return Ft(Zd(e))}function lb(e,t){return Pt(e)?Pt(t)?lb(e.ofType,t.ofType):!0:Pt(t)?!0:Qe(e)?Qe(t)?lb(e.ofType,t.ofType):!0:Qe(t)?!0:Rr(e)||Rr(t)?e!==t:!1}function oN(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);Nx(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function db(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=Qn(e.getSchema(),n.typeCondition);return oN(e,t,i,n.selectionSet)}function Nx(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case R.FIELD:{let o=s.name.value,u;(ut(t)||Nt(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case R.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case R.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?Qn(e.getSchema(),o):t;Nx(e,u,s.selectionSet,r,i);break}}}function LH(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var pb,mb=ue(()=>{"use strict";m();T();h();Nn();at();Xt();is();Zt();cb();Vo();pb=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Nn();at();Zt();Xf();Vo()});function _m(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Fs(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=kH[o.kind]:u&&(l=xH(u)),l){if(l!==i.kind){let d=CH(i.kind);e.reportError(new J(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=gi(s,d);e.reportError(new J(`Cannot extend type "${s}" because it is not defined.`+ii(p),{nodes:i.name}))}}}function xH(e){if(tr(e))return R.SCALAR_TYPE_EXTENSION;if(ut(e))return R.OBJECT_TYPE_EXTENSION;if(Nt(e))return R.INTERFACE_TYPE_EXTENSION;if(pn(e))return R.UNION_TYPE_EXTENSION;if(sn(e))return R.ENUM_TYPE_EXTENSION;if(It(e))return R.INPUT_OBJECT_TYPE_EXTENSION;Qt(!1,"Unexpected type: "+ne(e))}function CH(e){switch(e){case R.SCALAR_TYPE_EXTENSION:return"scalar";case R.OBJECT_TYPE_EXTENSION:return"object";case R.INTERFACE_TYPE_EXTENSION:return"interface";case R.UNION_TYPE_EXTENSION:return"union";case R.ENUM_TYPE_EXTENSION:return"enum";case R.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Qt(!1,"Unexpected kind: "+ne(e))}}var kH,Tb=ue(()=>{"use strict";m();T();h();dc();Nn();ri();fc();at();Xt();Nl();Zt();kH={[R.SCALAR_TYPE_DEFINITION]:R.SCALAR_TYPE_EXTENSION,[R.OBJECT_TYPE_DEFINITION]:R.OBJECT_TYPE_EXTENSION,[R.INTERFACE_TYPE_DEFINITION]:R.INTERFACE_TYPE_EXTENSION,[R.UNION_TYPE_DEFINITION]:R.UNION_TYPE_EXTENSION,[R.ENUM_TYPE_DEFINITION]:R.ENUM_TYPE_EXTENSION,[R.INPUT_OBJECT_TYPE_DEFINITION]:R.INPUT_OBJECT_TYPE_EXTENSION}});function bm(e){return Q(k({},yb(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&cs(s)){let o=ne(s.type);e.reportError(new J(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function yb(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ai;for(let u of i)n[u.name]=si(u.args.filter(cs),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===R.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=si(l.filter(UH),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,S]of Object.entries(d))if(!N.has(I)){let C=hc(S.type)?ne(S.type):Ft(S.type);e.reportError(new J(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function UH(e){return e.type.kind===R.NON_NULL_TYPE&&e.defaultValue==null}var Nb=ue(()=>{"use strict";m();T();h();Nn();pc();at();Xt();is();Zt();Bi()});function Om(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(Rr(Gn(n))){if(r){let i=t.name.value,s=ne(n);e.reportError(new J(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=ne(n);e.reportError(new J(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var Eb=ue(()=>{"use strict";m();T();h();Nn();at();Zt()});function aN(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var gb=ue(()=>{"use strict";m();T();h()});function Ma(e,t,n){return{prev:e,key:t,typename:n}}function br(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var Sm=ue(()=>{"use strict";m();T();h()});function Am(e,t,n=MH){return Dm(e,t,n,void 0)}function MH(e,t,n){let r="Invalid value "+ne(t);throw e.length>0&&(r+=` at "value${aN(e)}"`),n.message=r+": "+n.message,n}function Dm(e,t,n,r){if(Qe(t)){if(e!=null)return Dm(e,t.ofType,n,r);n(br(r),e,new J(`Expected non-nullable type "${ne(t)}" not to be null.`));return}if(e==null)return null;if(Pt(t)){let i=t.ofType;return Qd(e)?Array.from(e,(s,o)=>{let u=Ma(r,o,void 0);return Dm(s,i,n,u)}):[Dm(e,i,n,r)]}if(It(t)){if(!or(e)){n(br(r),e,new J(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if(Qe(o.type)){let l=ne(o.type);n(br(r),e,new J(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Dm(u,o.type,n,Ma(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=gi(o,Object.keys(t.getFields()));n(br(r),e,new J(`Field "${o}" is not defined by type "${t.name}".`+ii(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n(br(r),e,new J(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n(br(r).concat(u),l,new J(`Field "${u}" must be non-null.`))}return i}if(Rr(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof J?n(br(r),e,s):n(br(r),e,new J(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n(br(r),e,new J(`Expected type "${t.name}".`)),i}Qt(!1,"Unexpected input type: "+ne(t))}var Ib=ue(()=>{"use strict";m();T();h();dc();Nn();ri();eN();Po();Sm();gb();fc();at();Zt()});function _i(e,t,n){if(e){if(e.kind===R.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&Qe(t)?void 0:i}if(Qe(t))return e.kind===R.NULL?void 0:_i(e,t.ofType,n);if(e.kind===R.NULL)return null;if(Pt(t)){let r=t.ofType;if(e.kind===R.LIST){let s=[];for(let o of e.values)if(Ex(o,n)){if(Qe(r))return;s.push(null)}else{let u=_i(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=_i(e,r,n);return i===void 0?void 0:[i]}if(It(t)){if(e.kind!==R.OBJECT)return;let r=Object.create(null),i=si(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||Ex(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if(Qe(s.type))return;continue}let u=_i(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if(Rr(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Qt(!1,"Unexpected input type: "+ne(t))}}function Ex(e,t){return e.kind===R.VARIABLE&&(t==null||t[e.name.value]===void 0)}var Rm=ue(()=>{"use strict";m();T();h();Nn();ri();pc();Xt();Zt()});function Fm(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=BH(e,t,n,u=>{if(s!=null&&i.length>=s)throw new J("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 BH(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=Qn(e,s.type);if(!Nr(u)){let d=Ft(s.type);r(new J(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!gx(n,o)){if(s.defaultValue)i[o]=_i(s.defaultValue,u);else if(Qe(u)){let d=ne(u);r(new J(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&Qe(u)){let d=ne(u);r(new J(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=Am(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+ne(p);d.length>0&&(N+=` at "${o}${aN(d)}"`),r(new J(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function Ec(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=si(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Qe(d))throw new J(`Argument "${l}" of required type "${ne(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===R.NULL;if(y.kind===R.VARIABLE){let S=y.name.value;if(n==null||!gx(n,S)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if(Qe(d))throw new J(`Argument "${l}" of required type "${ne(d)}" was provided the variable "$${S}" which was not provided a runtime value.`,{nodes:y});continue}N=n[S]==null}if(N&&Qe(d))throw new J(`Argument "${l}" of non-null type "${ne(d)}" must not be null.`,{nodes:y});let I=_i(y,d,n);if(I===void 0)throw new J(`Argument "${l}" has invalid value ${Ft(y)}.`,{nodes:y});i[l]=I}return i}function jo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return Ec(e,i,n)}function gx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ep=ue(()=>{"use strict";m();T();h();Nn();pc();gb();at();Xt();is();Zt();Ib();Vo();Rm()});function tp(e,t,n,r,i){let s=new Map;return uN(e,t,n,r,i,s,new Set),s}function vx(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&uN(e,t,n,r,u.selectionSet,s,o);return s}function uN(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case R.FIELD:{if(!vb(n,u))continue;let l=VH(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case R.INLINE_FRAGMENT:{if(!vb(n,u)||!Ix(e,u,r))continue;uN(e,t,n,r,u.selectionSet,s,o);break}case R.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!vb(n,u))continue;o.add(l);let d=t[l];if(!d||!Ix(e,d,r))continue;uN(e,t,n,r,d.selectionSet,s,o);break}}}function vb(e,t){let n=jo($d,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=jo(jd,t,e);return(r==null?void 0:r.if)!==!1}function Ix(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=Qn(e,r);return i===n?!0:zr(i)?e.isSubType(i,n):!1}function VH(e){return e.alias?e.alias.value:e.name.value}var cN=ue(()=>{"use strict";m();T();h();Xt();Zt();Bi();Vo();ep()});function wm(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===R.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=tp(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new J(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new J(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}var _b=ue(()=>{"use strict";m();T();h();at();Xt();cN()});function np(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}var lN=ue(()=>{"use strict";m();T();h()});function Lm(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=np(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new J(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}var bb=ue(()=>{"use strict";m();T();h();lN();at()});function rp(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=np(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new J(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}var Ob=ue(()=>{"use strict";m();T();h();lN();at()});function Pm(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new J(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new J(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var Sb=ue(()=>{"use strict";m();T();h();at()});function ip(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():ai;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===R.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===R.SCHEMA_DEFINITION||u.kind===R.SCHEMA_EXTENSION)l=s;else if(Fs(u)||Nc(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new J(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}var Db=ue(()=>{"use strict";m();T();h();at();Xt();Nl();Bi()});function km(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];sn(N)&&N.getValue(y)?e.reportError(new J(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new J(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}var Ab=ue(()=>{"use strict";m();T();h();at();Zt()});function xm(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;jH(n[u],y)?e.reportError(new J(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new J(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function jH(e,t){return ut(e)||Nt(e)||It(e)?e.getFields()[t]!=null:!1}var Rb=ue(()=>{"use strict";m();T();h();at();Zt()});function Cm(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new J(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var Fb=ue(()=>{"use strict";m();T();h();at()});function sp(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Qt(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new J(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var wb=ue(()=>{"use strict";m();T();h();ri();at()});function Um(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new J(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var Lb=ue(()=>{"use strict";m();T();h();at()});function Mm(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new J(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new J(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}var Pb=ue(()=>{"use strict";m();T();h();at()});function Bm(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new J(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new J(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}var kb=ue(()=>{"use strict";m();T();h();at()});function Vm(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=np(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new J(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}var xb=ue(()=>{"use strict";m();T();h();lN();at()});function jm(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=cl(e.getParentInputType());if(!Pt(r))return El(e,n),!1},ObjectValue(n){let r=Gn(e.getInputType());if(!It(r))return El(e,n),!1;let i=si(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&Pa(s)){let u=ne(s.type);e.reportError(new J(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&$H(e,n,r,i,t)},ObjectField(n){let r=Gn(e.getParentInputType());if(!e.getInputType()&&It(r)){let s=gi(n.name.value,Object.keys(r.getFields()));e.reportError(new J(`Field "${n.name.value}" is not defined by type "${r.name}".`+ii(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();Qe(r)&&e.reportError(new J(`Expected value of type "${ne(r)}", found ${Ft(n)}.`,{nodes:n}))},EnumValue:n=>El(e,n),IntValue:n=>El(e,n),FloatValue:n=>El(e,n),StringValue:n=>El(e,n),BooleanValue:n=>El(e,n)}}function El(e,t){let n=e.getInputType();if(!n)return;let r=Gn(n);if(!Rr(r)){let i=ne(n);e.reportError(new J(`Expected value of type "${i}", found ${Ft(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=ne(n);e.reportError(new J(`Expected value of type "${s}", found ${Ft(t)}.`,{nodes:t}))}}catch(i){let s=ne(n);i instanceof J?e.reportError(i):e.reportError(new J(`Expected value of type "${s}", found ${Ft(t)}; `+i.message,{nodes:t,originalError:i}))}}function $H(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new J(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===R.NULL,p=(l==null?void 0:l.kind)===R.VARIABLE;if(d){e.reportError(new J(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==R.NON_NULL_TYPE&&e.reportError(new J(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}var Cb=ue(()=>{"use strict";m();T();h();dc();Nn();pc();fc();at();Xt();is();Zt()});function $m(e){return{VariableDefinition(t){let n=Qn(e.getSchema(),t.type);if(n!==void 0&&!Nr(n)){let r=t.variable.name.value,i=Ft(t.type);e.reportError(new J(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var Ub=ue(()=>{"use strict";m();T();h();at();is();Zt();Vo()});function qm(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=Qn(d,l.type);if(p&&!qH(d,p,l.defaultValue,s,o)){let y=ne(p),N=ne(s);e.reportError(new J(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function qH(e,t,n,r,i){if(Qe(r)&&!Qe(t)){if(!(n!=null&&n.kind!==R.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return ao(e,t,u)}return ao(e,t,r)}var Mb=ue(()=>{"use strict";m();T();h();Nn();at();Xt();Zt();Xf();Vo()});var dN,Km,_x,Bb=ue(()=>{"use strict";m();T();h();J_();z_();H_();X_();Z_();eb();tb();nb();rb();ib();sb();ob();ab();ub();mb();hb();Tb();Nb();Eb();_b();bb();Ob();Sb();Db();Ab();Rb();Fb();wb();Lb();Pb();kb();xb();Cb();Ub();Mb();dN=Object.freeze([Tm]),Km=Object.freeze([cm,Um,mm,wm,Xd,dm,$m,Om,lm,Cm,fm,Em,vm,ym,Vm,Nm,gm,Wd,ip,pm,rp,jm,bm,qm,Im,sp,...dN]),_x=Object.freeze([hm,Mm,Bm,km,xm,Lm,Pm,Xd,Wd,ip,_m,W_,rp,sp,yb])});var pN,fN,gl,Vb=ue(()=>{"use strict";m();T();h();Xt();ol();nN();pN=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===R.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===R.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},fN=class extends pN{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},gl=class extends pN{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new Ua(this._schema);As(t,yl(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function Gm(e,t,n=Km,r,i=new Ua(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||it(!1,"Must provide document."),Tl(e);let u=Object.freeze({}),l=[],d=new gl(e,t,i,y=>{if(l.length>=o)throw l.push(new J("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=xd(n.map(y=>y(d)));try{As(t,yl(i,p))}catch(y){if(y!==u)throw y}return l}function bx(e,t,n=_x){let r=[],i=new fN(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return As(e,xd(s)),r}function Ox(e){let t=bx(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function fC(e,t){let n=dC(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` +`))}function Sx(e,t){let n=bx(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}var Vm=ue(()=>{"use strict";m();T();h();Ni();ot();el();tm();Hy();wb();Lb()});function mC(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}var hC=ue(()=>{"use strict";m();T();h()});function Pb(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var TC=ue(()=>{"use strict";m();T();h()});function yC(e,t,n){let r=n;for(let i of e)r=ni(r)?r.then(s=>t(s,i)):t(r,i);return r}var NC=ue(()=>{"use strict";m();T();h();Ay()});function EC(e){return e instanceof Error?e:new kb(e)}var kb,gC=ue(()=>{"use strict";m();T();h();Nn();kb=class extends Error{constructor(t){super("Unexpected error value: "+ne(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function $o(e,t,n){var r;let i=EC(e);return FH(i)?i:new Y(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function FH(e){return Array.isArray(e.path)}var uN=ue(()=>{"use strict";m();T();h();gC();ot()});function mc(e){arguments.length<2||rt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;xb(t,n,r);let s=Ub(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=LH(s,o,i);return ni(u)?u.then(l=>cN(l,s.errors),l=>(s.errors.push(l),cN(null,s.errors))):cN(u,s.errors)}catch(o){return s.errors.push(o),cN(null,s.errors)}}function qm(e){let t=mc(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function cN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function xb(e,t,n){t||rt(!1,"Must provide document."),ll(e),n==null||or(n)||rt(!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 Ub(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let V of i.definitions)switch(V.kind){case R.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Y("Must provide operation name if query contains multiple operations.")];N=V}else((t=V.name)===null||t===void 0?void 0:t.value)===l&&(N=V);break;case R.FRAGMENT_DEFINITION:I[V.name.value]=V;break;default:}if(!N)return l!=null?[new Y(`Unknown operation named "${l}".`)]:[new Y("Must provide an operation.")];let O=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],x=bm(r,O,u!=null?u:{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:x.coerced,fieldResolver:d!=null?d:$m,typeResolver:p!=null?p:pN,subscribeFieldResolver:y!=null?y:$m,errors:[]}}function LH(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Y(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=zd(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case Un.QUERY:return lN(e,r,n,s,i);case Un.MUTATION:return PH(e,r,n,s,i);case Un.SUBSCRIPTION:return lN(e,r,n,s,i)}}function PH(e,t,n,r,i){return yC(i.entries(),(s,[o,u])=>{let l=Ma(r,o,t.name),d=_C(e,t,n,u,l);return d===void 0?s:ni(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function lN(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=Ma(r,u,t.name),p=_C(e,t,n,l,d);p!==void 0&&(s[u]=p,ni(p)&&(o=!0))}}catch(u){if(o)return Pb(s).finally(()=>{throw u});throw u}return o?Pb(s):s}function _C(e,t,n,r,i){var s;let o=Bb(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=Mb(e,o,r,t,i);try{let p=fc(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return ni(N)?I=N.then(O=>jm(e,u,r,d,i,O)):I=jm(e,u,r,d,i,N),ni(I)?I.then(void 0,O=>{let x=$o(O,r,br(i));return dN(x,u,e)}):I}catch(p){let y=$o(p,r,br(i));return dN(y,u,e)}}function Mb(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function dN(e,t,n){if(Qe(t))throw e;return n.errors.push(e),null}function jm(e,t,n,r,i,s){if(s instanceof Error)throw s;if(Qe(t)){let o=jm(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(Pt(t))return kH(e,t,n,r,i,s);if(Rr(t))return CH(t,s);if(zr(t))return xH(e,t,n,r,i,s);if(at(t))return Cb(e,t,n,r,i,s);Qt(!1,"Cannot complete value of unexpected output type: "+ne(t))}function kH(e,t,n,r,i,s){if(!Vd(s))throw new Y(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=Ma(i,p,void 0);try{let N;return ni(d)?N=d.then(I=>jm(e,o,n,r,y,I)):N=jm(e,o,n,r,y,d),ni(N)?(u=!0,N.then(void 0,I=>{let O=$o(I,n,br(y));return dN(O,o,e)})):N}catch(N){let I=$o(N,n,br(y));return dN(I,o,e)}});return u?Promise.all(l):l}function CH(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${ne(e)}.serialize(${ne(t)})\` to return non-nullable value, returned: ${ne(n)}`);return n}function xH(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return ni(d)?d.then(p=>Cb(e,IC(p,e,t,n,r,s),n,r,i,s)):Cb(e,IC(d,e,t,n,r,s),n,r,i,s)}function IC(e,t,n,r,i,s){if(e==null)throw new Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(at(e))throw new Y("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new Y(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ne(s)}, received "${ne(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Y(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!at(o))throw new Y(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Y(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function Cb(e,t,n,r,i,s){let o=wH(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if(ni(u))return u.then(l=>{if(!l)throw vC(t,s,n);return lN(e,t,s,i,o)});if(!u)throw vC(t,s,n)}return lN(e,t,s,i,o)}function vC(e,t,n){return new Y(`Expected value of type "${e.name}" but got: ${ne(t)}.`,{nodes:n})}function Bb(e,t,n){let r=n.name.value;return r===ka.name&&e.getQueryType()===t?ka:r===Ca.name&&e.getQueryType()===t?Ca:r===xa.name?xa:t.getFields()[r]}var wH,pN,$m,Km=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();Jy();Po();Ay();hC();gm();TC();NC();ot();uN();ko();Xt();Zt();Rs();tm();rN();Jd();wH=mC((e,t,n)=>cC(e.schema,e.fragments,e.variableValues,t,n));pN=function(e,t,n,r){if(or(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;ut(SC(e)))}function OC(e){let t=SC(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function SC(e){arguments.length<2||rt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=jd(t);if(d.length>0)return{errors:d};let p;try{p=io(n)}catch(N){return{errors:[N]}}let y=Bm(t,p);return y.length>0?{errors:y}:mc({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}var DC=ue(()=>{"use strict";m();T();h();Ni();Ay();Ad();tm();Vm();Km()});var AC=ue(()=>{"use strict";m();T();h();ul();Zt();Bi();Uo();Rs();tm();Bf()});var RC=ue(()=>{"use strict";m();T();h();Vy();Ry();i_();Xt();Lf();Uy();Ad();is();el();ko();pl();bd()});function Vb(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var FC=ue(()=>{"use strict";m();T();h()});function wC(e,t){let n=e[Symbol.asyncIterator]();function r(s){return yr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return yr(this,null,function*(){return r(yield n.next())})},return(){return yr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return yr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}var LC=ue(()=>{"use strict";m();T();h()});function jb(t){return yr(this,arguments,function*(e){arguments.length<2||rt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield fN(e);return Vb(n)?wC(n,i=>mc(G(k({},e),{rootValue:i}))):n})}function UH(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 fN(...e){return yr(this,null,function*(){let t=UH(e),{schema:n,document:r,variableValues:i}=t;xb(n,r,i);let s=Ub(t);if(!("schema"in s))return{errors:s};try{let o=yield MH(s);if(!Vb(o))throw new Error(`Subscription field must return Async Iterable. Received: ${ne(o)}.`);return o}catch(o){if(o instanceof Y)return{errors:[o]};throw o}})}function MH(e){return yr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new Y("Schema is not configured to execute subscription operation.",{nodes:r});let u=zd(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=Bb(t,o,d[0]);if(!p){let O=d[0].name.value;throw new Y(`The subscription field "${O}" is not defined.`,{nodes:d})}let y=Ma(void 0,l,o.name),N=Mb(e,p,d,o,y);try{var I;let O=fc(p,d[0],i),x=e.contextValue,K=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,O,x,N);if(K instanceof Error)throw K;return K}catch(O){throw $o(O,d,br(y))}})}var PC=ue(()=>{"use strict";m();T();h();Ni();Nn();FC();gm();ot();uN();rN();Km();LC();Jd()});var kC=ue(()=>{"use strict";m();T();h();gm();Km();PC();Jd()});function $b(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||Qt(!1),e.reportError(new Y(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new Y(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||Qt(!1),e.reportError(new Y(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Gn(e.getParentInputType());if(It(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Y(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=Gn(e.getInputType());i!=null||Qt(!1),e.reportError(new Y(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var CC=ue(()=>{"use strict";m();T();h();ri();ot();Zt()});function qb(e){return{Field(t){let n=Gn(e.getType());n&&ui(n)&&e.reportError(new Y(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var xC=ue(()=>{"use strict";m();T();h();ot();Zt();Rs()});var UC=ue(()=>{"use strict";m();T();h();Vm();Lb();wb();V_();j_();$_();K_();G_();Q_();Y_();J_();W_();X_();Z_();eb();ob();ab();lb();db();hb();yb();Eb();vb();_b();bb();Db();Ab();Rb();Fb();H_();z_();Ob();Sb();gb();Ib();Tb();Nb();ub();CC();xC()});var MC=ue(()=>{"use strict";m();T();h();ot();Fy();uN()});function Gm(e){let t=k({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` +`))}var Qm=ue(()=>{"use strict";m();T();h();Ni();at();ol();am();nN();Bb();Vb()});function Dx(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}var Ax=ue(()=>{"use strict";m();T();h()});function jb(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var Rx=ue(()=>{"use strict";m();T();h()});function Fx(e,t,n){let r=n;for(let i of e)r=ni(r)?r.then(s=>t(s,i)):t(r,i);return r}var wx=ue(()=>{"use strict";m();T();h();ky()});function Lx(e){return e instanceof Error?e:new $b(e)}var $b,Px=ue(()=>{"use strict";m();T();h();Nn();$b=class extends Error{constructor(t){super("Unexpected error value: "+ne(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function $o(e,t,n){var r;let i=Lx(e);return KH(i)?i:new J(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function KH(e){return Array.isArray(e.path)}var mN=ue(()=>{"use strict";m();T();h();Px();at()});function gc(e){arguments.length<2||it(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;Kb(t,n,r);let s=Gb(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=QH(s,o,i);return ni(u)?u.then(l=>hN(l,s.errors),l=>(s.errors.push(l),hN(null,s.errors))):hN(u,s.errors)}catch(o){return s.errors.push(o),hN(null,s.errors)}}function zm(e){let t=gc(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function hN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function Kb(e,t,n){t||it(!1,"Must provide document."),Tl(e),n==null||or(n)||it(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Gb(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let V of i.definitions)switch(V.kind){case R.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new J("Must provide operation name if query contains multiple operations.")];N=V}else((t=V.name)===null||t===void 0?void 0:t.value)===l&&(N=V);break;case R.FRAGMENT_DEFINITION:I[V.name.value]=V;break;default:}if(!N)return l!=null?[new J(`Unknown operation named "${l}".`)]:[new J("Must provide an operation.")];let S=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=Fm(r,S,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:Jm,typeResolver:p!=null?p:NN,subscribeFieldResolver:y!=null?y:Jm,errors:[]}}function QH(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new J(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=tp(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case Un.QUERY:return TN(e,r,n,s,i);case Un.MUTATION:return YH(e,r,n,s,i);case Un.SUBSCRIPTION:return TN(e,r,n,s,i)}}function YH(e,t,n,r,i){return Fx(i.entries(),(s,[o,u])=>{let l=Ma(r,o,t.name),d=Cx(e,t,n,u,l);return d===void 0?s:ni(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function TN(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=Ma(r,u,t.name),p=Cx(e,t,n,l,d);p!==void 0&&(s[u]=p,ni(p)&&(o=!0))}}catch(u){if(o)return jb(s).finally(()=>{throw u});throw u}return o?jb(s):s}function Cx(e,t,n,r,i){var s;let o=Yb(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=Qb(e,o,r,t,i);try{let p=Ec(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return ni(N)?I=N.then(S=>Ym(e,u,r,d,i,S)):I=Ym(e,u,r,d,i,N),ni(I)?I.then(void 0,S=>{let C=$o(S,r,br(i));return yN(C,u,e)}):I}catch(p){let y=$o(p,r,br(i));return yN(y,u,e)}}function Qb(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function yN(e,t,n){if(Qe(t))throw e;return n.errors.push(e),null}function Ym(e,t,n,r,i,s){if(s instanceof Error)throw s;if(Qe(t)){let o=Ym(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if(Pt(t))return JH(e,t,n,r,i,s);if(Rr(t))return zH(t,s);if(zr(t))return HH(e,t,n,r,i,s);if(ut(t))return qb(e,t,n,r,i,s);Qt(!1,"Cannot complete value of unexpected output type: "+ne(t))}function JH(e,t,n,r,i,s){if(!Qd(s))throw new J(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=Ma(i,p,void 0);try{let N;return ni(d)?N=d.then(I=>Ym(e,o,n,r,y,I)):N=Ym(e,o,n,r,y,d),ni(N)?(u=!0,N.then(void 0,I=>{let S=$o(I,n,br(y));return yN(S,o,e)})):N}catch(N){let I=$o(N,n,br(y));return yN(I,o,e)}});return u?Promise.all(l):l}function zH(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${ne(e)}.serialize(${ne(t)})\` to return non-nullable value, returned: ${ne(n)}`);return n}function HH(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return ni(d)?d.then(p=>qb(e,kx(p,e,t,n,r,s),n,r,i,s)):qb(e,kx(d,e,t,n,r,s),n,r,i,s)}function kx(e,t,n,r,i,s){if(e==null)throw new J(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(ut(e))throw new J("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 J(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ne(s)}, received "${ne(e)}".`);let o=t.schema.getType(e);if(o==null)throw new J(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ut(o))throw new J(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new J(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function qb(e,t,n,r,i,s){let o=GH(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if(ni(u))return u.then(l=>{if(!l)throw xx(t,s,n);return TN(e,t,s,i,o)});if(!u)throw xx(t,s,n)}return TN(e,t,s,i,o)}function xx(e,t,n){return new J(`Expected value of type "${e.name}" but got: ${ne(t)}.`,{nodes:n})}function Yb(e,t,n){let r=n.name.value;return r===ka.name&&e.getQueryType()===t?ka:r===xa.name&&e.getQueryType()===t?xa:r===Ca.name?Ca:t.getFields()[r]}var GH,NN,Jm,Hm=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();eN();Po();ky();Ax();Sm();Rx();wx();at();mN();ko();Xt();Zt();Rs();am();cN();ep();GH=Dx((e,t,n)=>vx(e.schema,e.fragments,e.variableValues,t,n));NN=function(e,t,n,r){if(or(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;ut(Bx(e)))}function Mx(e){let t=Bx(e);if(ni(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Bx(e){arguments.length<2||it(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=Yd(t);if(d.length>0)return{errors:d};let p;try{p=io(n)}catch(N){return{errors:[N]}}let y=Gm(t,p);return y.length>0?{errors:y}:gc({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}var Vx=ue(()=>{"use strict";m();T();h();Ni();ky();kd();am();Qm();Hm()});var jx=ue(()=>{"use strict";m();T();h();ml();Zt();Bi();Uo();Rs();am();Gf()});var $x=ue(()=>{"use strict";m();T();h();Qy();xy();p_();Xt();Mf();qy();kd();is();ol();ko();Nl();Fd()});function Jb(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var qx=ue(()=>{"use strict";m();T();h()});function Kx(e,t){let n=e[Symbol.asyncIterator]();function r(s){return yr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return yr(this,null,function*(){return r(yield n.next())})},return(){return yr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return yr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}var Gx=ue(()=>{"use strict";m();T();h()});function zb(t){return yr(this,arguments,function*(e){arguments.length<2||it(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield EN(e);return Jb(n)?Kx(n,i=>gc(Q(k({},e),{rootValue:i}))):n})}function WH(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 EN(...e){return yr(this,null,function*(){let t=WH(e),{schema:n,document:r,variableValues:i}=t;Kb(n,r,i);let s=Gb(t);if(!("schema"in s))return{errors:s};try{let o=yield XH(s);if(!Jb(o))throw new Error(`Subscription field must return Async Iterable. Received: ${ne(o)}.`);return o}catch(o){if(o instanceof J)return{errors:[o]};throw o}})}function XH(e){return yr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new J("Schema is not configured to execute subscription operation.",{nodes:r});let u=tp(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=Yb(t,o,d[0]);if(!p){let S=d[0].name.value;throw new J(`The subscription field "${S}" is not defined.`,{nodes:d})}let y=Ma(void 0,l,o.name),N=Qb(e,p,d,o,y);try{var I;let S=Ec(p,d[0],i),C=e.contextValue,G=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,S,C,N);if(G instanceof Error)throw G;return G}catch(S){throw $o(S,d,br(y))}})}var Qx=ue(()=>{"use strict";m();T();h();Ni();Nn();qx();Sm();at();mN();cN();Hm();Gx();ep()});var Yx=ue(()=>{"use strict";m();T();h();Sm();Hm();Qx();ep()});function Hb(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||Qt(!1),e.reportError(new J(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new J(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||Qt(!1),e.reportError(new J(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Gn(e.getParentInputType());if(It(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new J(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=Gn(e.getInputType());i!=null||Qt(!1),e.reportError(new J(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var Jx=ue(()=>{"use strict";m();T();h();ri();at();Zt()});function Wb(e){return{Field(t){let n=Gn(e.getType());n&&ui(n)&&e.reportError(new J(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var zx=ue(()=>{"use strict";m();T();h();at();Zt();Rs()});var Hx=ue(()=>{"use strict";m();T();h();Qm();Vb();Bb();J_();z_();H_();X_();Z_();eb();tb();nb();sb();ob();ab();ub();mb();hb();Nb();Eb();_b();Ob();Db();Fb();wb();Lb();xb();Cb();Ub();Mb();ib();rb();Pb();kb();Ab();Rb();bb();Sb();Tb();Jx();zx()});var Wx=ue(()=>{"use strict";m();T();h();at();Cy();mN()});function Wm(e){let t=k({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${s} @@ -173,30 +173,30 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}var Kb=ue(()=>{"use strict";m();T();h()});function Gb(e,t){let n=null;for(let i of e.definitions)if(i.kind===R.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}var BC=ue(()=>{"use strict";m();T();h();Xt()});function Qb(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new Y("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new Y("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new Y("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Y("Can only have query, mutation and subscription operations.",{nodes:t})}var VC=ue(()=>{"use strict";m();T();h();ot()});function Yb(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=io(Gm(n)),i=qm({schema:e,document:r});return!i.errors&&i.data||Qt(!1),i.data}var jC=ue(()=>{"use strict";m();T();h();ri();Ad();Km();Kb()});function Jb(e,t){or(e)&&or(e.__schema)||rt(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);let n=e.__schema,r=Ds(n.types,B=>B.name,B=>N(B));for(let B of[...xo,...Bo])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(Ct):[];return new ji({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===fn.LIST){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");return new Mn(l(Te))}if(B.kind===fn.NON_NULL){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");let nt=l(Te);return new pt(qf(nt))}return d(B)}function d(B){let Te=B.name;if(!Te)throw new Error(`Unknown type reference: ${ne(B)}.`);let nt=r[Te];if(!nt)throw new Error(`Invalid or incomplete schema, unknown type: ${Te}. Ensure that a full introspection query is used in order to build a client schema.`);return nt}function p(B){return Vf(d(B))}function y(B){return jf(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case fn.SCALAR:return I(B);case fn.OBJECT:return x(B);case fn.INTERFACE:return V(B);case fn.UNION:return K(B);case fn.ENUM:return re(B);case fn.INPUT_OBJECT:return se(B)}let Te=ne(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Te}.`)}function I(B){return new Jr({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function O(B){if(B.interfaces===null&&B.kind===fn.INTERFACE)return[];if(!B.interfaces){let Te=ne(B);throw new Error(`Introspection result missing interfaces: ${Te}.`)}return B.interfaces.map(y)}function x(B){return new _r({name:B.name,description:B.description,interfaces:()=>O(B),fields:()=>fe(B)})}function V(B){return new ss({name:B.name,description:B.description,interfaces:()=>O(B),fields:()=>fe(B)})}function K(B){if(!B.possibleTypes){let Te=ne(B);throw new Error(`Introspection result missing possibleTypes: ${Te}.`)}return new os({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let Te=ne(B);throw new Error(`Introspection result missing enumValues: ${Te}.`)}return new oi({name:B.name,description:B.description,values:Ds(B.enumValues,Te=>Te.name,Te=>({description:Te.description,deprecationReason:Te.deprecationReason}))})}function se(B){if(!B.inputFields){let Te=ne(B);throw new Error(`Introspection result missing inputFields: ${Te}.`)}return new as({name:B.name,description:B.description,fields:()=>xe(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${ne(B)}.`);return Ds(B.fields,Te=>Te.name,he)}function he(B){let Te=l(B.type);if(!us(Te)){let nt=ne(Te);throw new Error(`Introspection must provide output type for fields, but received: ${nt}.`)}if(!B.args){let nt=ne(B);throw new Error(`Introspection result missing field args: ${nt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:Te,args:xe(B.args)}}function xe(B){return Ds(B,Te=>Te.name,ht)}function ht(B){let Te=l(B.type);if(!Nr(Te)){let xt=ne(Te);throw new Error(`Introspection must provide input type for arguments, but received: ${xt}.`)}let nt=B.defaultValue!=null?_i(Cf(B.defaultValue),Te):void 0;return{description:B.description,type:Te,defaultValue:nt,deprecationReason:B.deprecationReason}}function Ct(B){if(!B.args){let Te=ne(B);throw new Error(`Introspection result missing directive args: ${Te}.`)}if(!B.locations){let Te=ne(B);throw new Error(`Introspection result missing directive locations: ${Te}.`)}return new Vr({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:xe(B.args)})}}var $C=ue(()=>{"use strict";m();T();h();Ni();Nn();Po();xf();Ad();Zt();Bi();Rs();Uo();ul();_m()});function zb(e,t,n){al(e),t!=null&&t.kind===R.DOCUMENT||rt(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&fC(t,e);let r=e.toConfig(),i=Hb(r,t,n);return r===i?e:new ji(i)}function Hb(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===R.SCHEMA_DEFINITION)p=U;else if(U.kind===R.SCHEMA_EXTENSION)y.push(U);else if(Fs(U))u.push(U);else if(pc(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===R.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=qC[ae])!==null&&I!==void 0?I:$n(U)}let O=k(k({query:e.query&&V(e.query),mutation:e.mutation&&V(e.mutation),subscription:e.subscription&&V(e.subscription)},p&&nt([p])),nt(y));return G(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},O),{types:Object.values(N),directives:[...e.directives.map(K),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function x(U){return Pt(U)?new Mn(x(U.ofType)):Qe(U)?new pt(x(U.ofType)):V(U)}function V(U){return N[U.name]}function K(U){let ae=U.toConfig();return new Vr(G(k({},ae),{args:so(ae.args,Te)}))}function re(U){if(ui(U)||uo(U))return U;if(er(U))return he(U);if(at(U))return xe(U);if(Nt(U))return ht(U);if(pn(U))return Ct(U);if(sn(U))return fe(U);if(It(U))return se(U);Qt(!1,"Unexpected type: "+ne(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new as(G(k({},te),{fields:()=>k(k({},so(te.fields,Ke=>G(k({},Ke),{type:x(Ke.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new oi(G(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function he(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],Ke=te.specifiedByURL;for(let ee of ce){var Q;Ke=(Q=KC(ee))!==null&&Q!==void 0?Q:Ke}return new Jr(G(k({},te),{specifiedByURL:Ke,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xe(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new _r(G(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},so(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new ss(G(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},so(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function Ct(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new os(G(k({},te),{types:()=>[...U.getTypes().map(V),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return G(k({},U),{type:x(U.type),args:U.args&&so(U.args,Te)})}function Te(U){return G(k({},U),{type:x(U.type)})}function nt(U){let ae={};for(let ce of U){var te;let Ke=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let Q of Ke)ae[Q.operation]=xt(Q.type)}return ae}function xt(U){var ae;let te=U.name.value,ce=(ae=qC[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function rn(U){return U.kind===R.LIST_TYPE?new Mn(rn(U.type)):U.kind===R.NON_NULL_TYPE?new pt(rn(U.type)):xt(U)}function wn(U){var ae;return new Vr({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;ae[ee.name.value]={type:rn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:mN(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let Ke of ae){var ce;let Q=rn(Ke.type);te[Ke.name.value]={type:Q,description:(ce=Ke.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(Ke.defaultValue,Q),deprecationReason:mN(Ke),astNode:Ke}}return te}function mi(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;let Ue=rn(ee.type);ae[ee.name.value]={type:Ue,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(ee.defaultValue,Ue),deprecationReason:mN(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.values)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:mN(ee),astNode:ee}}}return ae}function kn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(xt))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(xt))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case R.OBJECT_TYPE_DEFINITION:{var Ke;let Je=[U,...ce];return new _r({name:te,description:(Ke=U.description)===null||Ke===void 0?void 0:Ke.value,interfaces:()=>kn(Je),fields:()=>vn(Je),astNode:U,extensionASTNodes:ce})}case R.INTERFACE_TYPE_DEFINITION:{var Q;let Je=[U,...ce];return new ss({name:te,description:(Q=U.description)===null||Q===void 0?void 0:Q.value,interfaces:()=>kn(Je),fields:()=>vn(Je),astNode:U,extensionASTNodes:ce})}case R.ENUM_TYPE_DEFINITION:{var ee;let Je=[U,...ce];return new oi({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Je),astNode:U,extensionASTNodes:ce})}case R.UNION_TYPE_DEFINITION:{var Ue;let Je=[U,...ce];return new os({name:te,description:(Ue=U.description)===null||Ue===void 0?void 0:Ue.value,types:()=>on(Je),astNode:U,extensionASTNodes:ce})}case R.SCALAR_TYPE_DEFINITION:{var Xe;return new Jr({name:te,description:(Xe=U.description)===null||Xe===void 0?void 0:Xe.value,specifiedByURL:KC(U),astNode:U,extensionASTNodes:ce})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var $t;let Je=[U,...ce];return new as({name:te,description:($t=U.description)===null||$t===void 0?void 0:$t.value,fields:()=>mi(Je),astNode:U,extensionASTNodes:ce,isOneOf:BH(U)})}}}}function mN(e){let t=jo(Mo,e);return t==null?void 0:t.reason}function KC(e){let t=jo(Md,e);return t==null?void 0:t.url}function BH(e){return!!jo(Bd,e)}var qC,Wb=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();oc();p_();Xt();pl();Zt();Bi();Rs();Uo();ul();Vm();Jd();_m();qC=si([...xo,...Bo],e=>e.name)});function hN(e,t){e!=null&&e.kind===R.DOCUMENT||rt(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&pC(e);let r=Hb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ai.filter(s=>r.directives.every(o=>o.name!==s.name))];return new ji(G(k({},r),{directives:i}))}function Xb(e,t){let n=io(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return hN(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var GC=ue(()=>{"use strict";m();T();h();Ni();Xt();Ad();Bi();ul();Vm();Wb()});function Qm(e){let t=e.toConfig(),n=Ds(Zb(t.types),N=>N.name,y);return new ji(G(k({},t),{types:Object.values(n),directives:Zb(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return Pt(N)?new Mn(r(N.ofType)):Qe(N)?new pt(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Vr(G(k({},I),{locations:QC(I.locations,O=>O),args:u(I.args)}))}function u(N){return TN(N,I=>G(k({},I),{type:r(I.type)}))}function l(N){return TN(N,I=>G(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return TN(N,I=>G(k({},I),{type:r(I.type)}))}function p(N){return Zb(N).map(i)}function y(N){if(er(N)||ui(N))return N;if(at(N)){let I=N.toConfig();return new _r(G(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(Nt(N)){let I=N.toConfig();return new ss(G(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(pn(N)){let I=N.toConfig();return new os(G(k({},I),{types:()=>p(I.types)}))}if(sn(N)){let I=N.toConfig();return new oi(G(k({},I),{values:TN(I.values,O=>O)}))}if(It(N)){let I=N.toConfig();return new as(G(k({},I),{fields:()=>d(I.fields)}))}Qt(!1,"Unexpected type: "+ne(N))}}function TN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(Fa))n[r]=t(e[r]);return n}function Zb(e){return QC(e,t=>t.name)}function QC(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return Fa(i,s)})}var YC=ue(()=>{"use strict";m();T();h();Nn();ri();xf();Uf();Zt();Bi();Rs();ul()});function ep(e){return JC(e,t=>!dc(t),VH)}function tO(e){return JC(e,dc,ui)}function VH(e){return!uo(e)&&!ui(e)}function JC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[jH(e),...r.map(s=>zH(s)),...i.map(s=>yN(s))].filter(Boolean).join(` + `}var Xb=ue(()=>{"use strict";m();T();h()});function Zb(e,t){let n=null;for(let i of e.definitions)if(i.kind===R.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}var Xx=ue(()=>{"use strict";m();T();h();Xt()});function eO(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new J("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new J("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new J("Schema is not configured for subscriptions.",{nodes:t});return n}throw new J("Can only have query, mutation and subscription operations.",{nodes:t})}var Zx=ue(()=>{"use strict";m();T();h();at()});function tO(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=io(Wm(n)),i=zm({schema:e,document:r});return!i.errors&&i.data||Qt(!1),i.data}var eC=ue(()=>{"use strict";m();T();h();ri();kd();Hm();Xb()});function nO(e,t){or(e)&&or(e.__schema)||it(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ne(e)}.`);let n=e.__schema,r=Ds(n.types,B=>B.name,B=>N(B));for(let B of[...Co,...Bo])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new ji({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===fn.LIST){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");return new Mn(l(Te))}if(B.kind===fn.NON_NULL){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");let rt=l(Te);return new ft(zf(rt))}return d(B)}function d(B){let Te=B.name;if(!Te)throw new Error(`Unknown type reference: ${ne(B)}.`);let rt=r[Te];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${Te}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return Qf(d(B))}function y(B){return Yf(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case fn.SCALAR:return I(B);case fn.OBJECT:return C(B);case fn.INTERFACE:return V(B);case fn.UNION:return G(B);case fn.ENUM:return re(B);case fn.INPUT_OBJECT:return se(B)}let Te=ne(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Te}.`)}function I(B){return new Jr({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function S(B){if(B.interfaces===null&&B.kind===fn.INTERFACE)return[];if(!B.interfaces){let Te=ne(B);throw new Error(`Introspection result missing interfaces: ${Te}.`)}return B.interfaces.map(y)}function C(B){return new _r({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>fe(B)})}function V(B){return new ss({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>fe(B)})}function G(B){if(!B.possibleTypes){let Te=ne(B);throw new Error(`Introspection result missing possibleTypes: ${Te}.`)}return new os({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let Te=ne(B);throw new Error(`Introspection result missing enumValues: ${Te}.`)}return new oi({name:B.name,description:B.description,values:Ds(B.enumValues,Te=>Te.name,Te=>({description:Te.description,deprecationReason:Te.deprecationReason}))})}function se(B){if(!B.inputFields){let Te=ne(B);throw new Error(`Introspection result missing inputFields: ${Te}.`)}return new as({name:B.name,description:B.description,fields:()=>Ce(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${ne(B)}.`);return Ds(B.fields,Te=>Te.name,he)}function he(B){let Te=l(B.type);if(!us(Te)){let rt=ne(Te);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=ne(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:Te,args:Ce(B.args)}}function Ce(B){return Ds(B,Te=>Te.name,ht)}function ht(B){let Te=l(B.type);if(!Nr(Te)){let Ct=ne(Te);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?_i(jf(B.defaultValue),Te):void 0;return{description:B.description,type:Te,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let Te=ne(B);throw new Error(`Introspection result missing directive args: ${Te}.`)}if(!B.locations){let Te=ne(B);throw new Error(`Introspection result missing directive locations: ${Te}.`)}return new Vr({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:Ce(B.args)})}}var tC=ue(()=>{"use strict";m();T();h();Ni();Nn();Po();$f();kd();Zt();Bi();Rs();Uo();ml();Rm()});function rO(e,t,n){fl(e),t!=null&&t.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&Sx(t,e);let r=e.toConfig(),i=iO(r,t,n);return r===i?e:new ji(i)}function iO(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===R.SCHEMA_DEFINITION)p=U;else if(U.kind===R.SCHEMA_EXTENSION)y.push(U);else if(Fs(U))u.push(U);else if(Nc(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===R.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=nC[ae])!==null&&I!==void 0?I:$n(U)}let S=k(k({query:e.query&&V(e.query),mutation:e.mutation&&V(e.mutation),subscription:e.subscription&&V(e.subscription)},p&&rt([p])),rt(y));return Q(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},S),{types:Object.values(N),directives:[...e.directives.map(G),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return Pt(U)?new Mn(C(U.ofType)):Qe(U)?new ft(C(U.ofType)):V(U)}function V(U){return N[U.name]}function G(U){let ae=U.toConfig();return new Vr(Q(k({},ae),{args:so(ae.args,Te)}))}function re(U){if(ui(U)||uo(U))return U;if(tr(U))return he(U);if(ut(U))return Ce(U);if(Nt(U))return ht(U);if(pn(U))return xt(U);if(sn(U))return fe(U);if(It(U))return se(U);Qt(!1,"Unexpected type: "+ne(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new as(Q(k({},te),{fields:()=>k(k({},so(te.fields,Ke=>Q(k({},Ke),{type:C(Ke.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new oi(Q(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function he(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],Ke=te.specifiedByURL;for(let ee of ce){var Y;Ke=(Y=rC(ee))!==null&&Y!==void 0?Y:Ke}return new Jr(Q(k({},te),{specifiedByURL:Ke,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function Ce(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new _r(Q(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},so(te.fields,B)),_n(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new ss(Q(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},so(te.fields,B)),_n(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new os(Q(k({},te),{types:()=>[...U.getTypes().map(V),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return Q(k({},U),{type:C(U.type),args:U.args&&so(U.args,Te)})}function Te(U){return Q(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let Ke=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let Y of Ke)ae[Y.operation]=Ct(Y.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=nC[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function rn(U){return U.kind===R.LIST_TYPE?new Mn(rn(U.type)):U.kind===R.NON_NULL_TYPE?new ft(rn(U.type)):Ct(U)}function wn(U){var ae;return new Vr({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:bn(U.arguments),astNode:U})}function _n(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;ae[ee.name.value]={type:rn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:bn(ee.arguments),deprecationReason:gN(ee),astNode:ee}}}return ae}function bn(U){let ae=U!=null?U:[],te=Object.create(null);for(let Ke of ae){var ce;let Y=rn(Ke.type);te[Ke.name.value]={type:Y,description:(ce=Ke.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(Ke.defaultValue,Y),deprecationReason:gN(Ke),astNode:Ke}}return te}function mi(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;let Ue=rn(ee.type);ae[ee.name.value]={type:Ue,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:_i(ee.defaultValue,Ue),deprecationReason:gN(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.values)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:gN(ee),astNode:ee}}}return ae}function kn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case R.OBJECT_TYPE_DEFINITION:{var Ke;let Je=[U,...ce];return new _r({name:te,description:(Ke=U.description)===null||Ke===void 0?void 0:Ke.value,interfaces:()=>kn(Je),fields:()=>_n(Je),astNode:U,extensionASTNodes:ce})}case R.INTERFACE_TYPE_DEFINITION:{var Y;let Je=[U,...ce];return new ss({name:te,description:(Y=U.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>kn(Je),fields:()=>_n(Je),astNode:U,extensionASTNodes:ce})}case R.ENUM_TYPE_DEFINITION:{var ee;let Je=[U,...ce];return new oi({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Je),astNode:U,extensionASTNodes:ce})}case R.UNION_TYPE_DEFINITION:{var Ue;let Je=[U,...ce];return new os({name:te,description:(Ue=U.description)===null||Ue===void 0?void 0:Ue.value,types:()=>on(Je),astNode:U,extensionASTNodes:ce})}case R.SCALAR_TYPE_DEFINITION:{var Xe;return new Jr({name:te,description:(Xe=U.description)===null||Xe===void 0?void 0:Xe.value,specifiedByURL:rC(U),astNode:U,extensionASTNodes:ce})}case R.INPUT_OBJECT_TYPE_DEFINITION:{var $t;let Je=[U,...ce];return new as({name:te,description:($t=U.description)===null||$t===void 0?void 0:$t.value,fields:()=>mi(Je),astNode:U,extensionASTNodes:ce,isOneOf:ZH(U)})}}}}function gN(e){let t=jo(Mo,e);return t==null?void 0:t.reason}function rC(e){let t=jo(Kd,e);return t==null?void 0:t.url}function ZH(e){return!!jo(Gd,e)}var nC,sO=ue(()=>{"use strict";m();T();h();Ni();Nn();ri();pc();g_();Xt();Nl();Zt();Bi();Rs();Uo();ml();Qm();ep();Rm();nC=si([...Co,...Bo],e=>e.name)});function IN(e,t){e!=null&&e.kind===R.DOCUMENT||it(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&Ox(e);let r=iO({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ai.filter(s=>r.directives.every(o=>o.name!==s.name))];return new ji(Q(k({},r),{directives:i}))}function oO(e,t){let n=io(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return IN(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var iC=ue(()=>{"use strict";m();T();h();Ni();Xt();kd();Bi();ml();Qm();sO()});function Xm(e){let t=e.toConfig(),n=Ds(aO(t.types),N=>N.name,y);return new ji(Q(k({},t),{types:Object.values(n),directives:aO(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return Pt(N)?new Mn(r(N.ofType)):Qe(N)?new ft(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Vr(Q(k({},I),{locations:sC(I.locations,S=>S),args:u(I.args)}))}function u(N){return vN(N,I=>Q(k({},I),{type:r(I.type)}))}function l(N){return vN(N,I=>Q(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return vN(N,I=>Q(k({},I),{type:r(I.type)}))}function p(N){return aO(N).map(i)}function y(N){if(tr(N)||ui(N))return N;if(ut(N)){let I=N.toConfig();return new _r(Q(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(Nt(N)){let I=N.toConfig();return new ss(Q(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if(pn(N)){let I=N.toConfig();return new os(Q(k({},I),{types:()=>p(I.types)}))}if(sn(N)){let I=N.toConfig();return new oi(Q(k({},I),{values:vN(I.values,S=>S)}))}if(It(N)){let I=N.toConfig();return new as(Q(k({},I),{fields:()=>d(I.fields)}))}Qt(!1,"Unexpected type: "+ne(N))}}function vN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(Fa))n[r]=t(e[r]);return n}function aO(e){return sC(e,t=>t.name)}function sC(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return Fa(i,s)})}var oC=ue(()=>{"use strict";m();T();h();Nn();ri();$f();qf();Zt();Bi();Rs();ml()});function op(e){return aC(e,t=>!yc(t),e4)}function cO(e){return aC(e,yc,ui)}function e4(e){return!uo(e)&&!ui(e)}function aC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[t4(e),...r.map(s=>c4(s)),...i.map(s=>_N(s))].filter(Boolean).join(` -`)}function jH(e){if(e.description==null&&$H(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ws(e)+`schema { +`)}function t4(e){if(e.description==null&&n4(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ws(e)+`schema { ${t.join(` `)} -}`}function $H(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function yN(e){if(er(e))return qH(e);if(at(e))return KH(e);if(Nt(e))return GH(e);if(pn(e))return QH(e);if(sn(e))return YH(e);if(It(e))return JH(e);Qt(!1,"Unexpected type: "+ne(e))}function qH(e){return ws(e)+`scalar ${e.name}`+HH(e)}function zC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function KH(e){return ws(e)+`type ${e.name}`+zC(e)+HC(e)}function GH(e){return ws(e)+`interface ${e.name}`+zC(e)+HC(e)}function QH(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ws(e)+"union "+e.name+n}function YH(e){let t=e.getValues().map((n,r)=>ws(n," ",!r)+" "+n.name+rO(n.deprecationReason));return ws(e)+`enum ${e.name}`+nO(t)}function JH(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+eO(n));return ws(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+nO(t)}function HC(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+n.name+WC(n.args," ")+": "+String(n.type)+rO(n.deprecationReason));return nO(t)}function nO(e){return e.length!==0?` { +}`}function n4(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function _N(e){if(tr(e))return r4(e);if(ut(e))return i4(e);if(Nt(e))return s4(e);if(pn(e))return o4(e);if(sn(e))return a4(e);if(It(e))return u4(e);Qt(!1,"Unexpected type: "+ne(e))}function r4(e){return ws(e)+`scalar ${e.name}`+l4(e)}function uC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function i4(e){return ws(e)+`type ${e.name}`+uC(e)+cC(e)}function s4(e){return ws(e)+`interface ${e.name}`+uC(e)+cC(e)}function o4(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return ws(e)+"union "+e.name+n}function a4(e){let t=e.getValues().map((n,r)=>ws(n," ",!r)+" "+n.name+dO(n.deprecationReason));return ws(e)+`enum ${e.name}`+lO(t)}function u4(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+uO(n));return ws(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+lO(t)}function cC(e){let t=Object.values(e.getFields()).map((n,r)=>ws(n," ",!r)+" "+n.name+lC(n.args," ")+": "+String(n.type)+dO(n.deprecationReason));return lO(t)}function lO(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function WC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(eO).join(", ")+")":`( -`+e.map((n,r)=>ws(n," "+t,!r)+" "+t+eO(n)).join(` +}`:""}function lC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(uO).join(", ")+")":`( +`+e.map((n,r)=>ws(n," "+t,!r)+" "+t+uO(n)).join(` `)+` -`+t+")"}function eO(e){let t=Hr(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${Ft(t)}`),n+rO(e.deprecationReason)}function zH(e){return ws(e)+"directive @"+e.name+WC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function rO(e){return e==null?"":e!==Ud?` @deprecated(reason: ${Ft({kind:R.STRING,value:e})})`:" @deprecated"}function HH(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Ft({kind:R.STRING,value:e.specifiedByURL})})`}function ws(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=Ft({kind:R.STRING,value:r,block:Uk(r)});return(t&&!n?` +`+t+")"}function uO(e){let t=Hr(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${Ft(t)}`),n+dO(e.deprecationReason)}function c4(e){return ws(e)+"directive @"+e.name+lC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function dO(e){return e==null?"":e!==qd?` @deprecated(reason: ${Ft({kind:R.STRING,value:e})})`:" @deprecated"}function l4(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${Ft({kind:R.STRING,value:e.specifiedByURL})})`}function ws(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=Ft({kind:R.STRING,value:r,block:Hk(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}var XC=ue(()=>{"use strict";m();T();h();Nn();ri();wf();Xt();is();Zt();Bi();Rs();Uo();Jf()});function iO(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:R.DOCUMENT,definitions:t}}var ZC=ue(()=>{"use strict";m();T();h();Xt()});function sO(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case R.OPERATION_DEFINITION:t.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=ex(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of ex(i.selectionSet))tx(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:R.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===R.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function tx(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)tx(e,t,i)}}function ex(e){let t=[];return As(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var nx=ue(()=>{"use strict";m();T();h();Xt();el()});function oO(e){let t=By(e)?e:new Co(e),n=t.body,r=new Ra(t),i="",s=!1;for(;r.advance().kind!==le.EOF;){let o=r.token,u=o.kind,l=!Cy(o.kind);s&&(l||o.kind===le.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===le.BLOCK_STRING?i+=ky(o.value,{minimize:!0}):i+=d,s=l}return i}var rx=ue(()=>{"use strict";m();T();h();wf();Uy();Vy();Lf()});function aO(e){let t=NN(e);if(t)throw t;return e}function NN(e){if(typeof e=="string"||rt(!1,"Expected name to be a string."),e.startsWith("__"))return new Y(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Mr(e)}catch(t){return t}}var ix=ue(()=>{"use strict";m();T();h();Ni();ot();Bf()});function uO(e,t){return cx(e,t).filter(n=>n.type in Yn)}function cO(e,t){return cx(e,t).filter(n=>n.type in ls)}function cx(e,t){return[...XH(e,t),...WH(e,t)]}function WH(e,t){let n=[],r=Ba(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Yn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=Ba(i.args,s.args);for(let u of o.added)cs(u)&&n.push({type:Yn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:Yn.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Yn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:Yn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function XH(e,t){let n=[],r=Ba(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED,description:uo(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)sn(i)&&sn(s)?n.push(...t4(i,s)):pn(i)&&pn(s)?n.push(...e4(i,s)):It(i)&&It(s)?n.push(...ZH(i,s)):at(i)&&at(s)?n.push(...ox(i,s),...sx(i,s)):Nt(i)&&Nt(s)?n.push(...ox(i,s),...sx(i,s)):i.constructor!==s.constructor&&n.push({type:Yn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${ax(i)} to ${ax(s)}.`});return n}function ZH(e,t){let n=[],r=Ba(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)Pa(i)?n.push({type:Yn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ls.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)Jm(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function e4(e,t){let n=[],r=Ba(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ls.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function t4(e,t){let n=[],r=Ba(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ls.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function sx(e,t){let n=[],r=Ba(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ls.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Yn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function ox(e,t){let n=[],r=Ba(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...n4(e,i,s)),Ym(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function n4(e,t,n){let r=[],i=Ba(t.args,n.args);for(let s of i.removed)r.push({type:Yn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!Jm(s.type,o.type))r.push({type:Yn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=ux(s.defaultValue,s.type),d=ux(o.defaultValue,o.type);l!==d&&r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)cs(s)?r.push({type:Yn.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:ls.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Ym(e,t){return Pt(e)?Pt(t)&&Ym(e.ofType,t.ofType)||Qe(t)&&Ym(e,t.ofType):Qe(e)?Qe(t)&&Ym(e.ofType,t.ofType):La(t)&&e.name===t.name||Qe(t)&&Ym(e,t.ofType)}function Jm(e,t){return Pt(e)?Pt(t)&&Jm(e.ofType,t.ofType):Qe(e)?Qe(t)&&Jm(e.ofType,t.ofType)||!Qe(t)&&Jm(e.ofType,t):La(t)&&e.name===t.name}function ax(e){if(er(e))return"a Scalar type";if(at(e))return"an Object type";if(Nt(e))return"an Interface type";if(pn(e))return"a Union type";if(sn(e))return"an Enum type";if(It(e))return"an Input type";Qt(!1,"Unexpected type: "+ne(e))}function ux(e,t){let n=Hr(e,t);return n!=null||Qt(!1),Ft(Yd(n))}function Ba(e,t){let n=[],r=[],i=[],s=si(e,({name:u})=>u),o=si(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}var Yn,ls,lx=ue(()=>{"use strict";m();T();h();Nn();ri();oc();is();Zt();Uo();Jf();tb();(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Yn||(Yn={}));(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ls||(ls={}))});var dx=ue(()=>{"use strict";m();T();h();Kb();BC();VC();jC();$C();GC();Wb();YC();XC();Vo();_m();T_();Jf();Hy();fb();ZC();nx();rx();Qf();ix();lx()});var je={};Sf(je,{BREAK:()=>uc,BreakingChangeType:()=>Yn,DEFAULT_DEPRECATION_REASON:()=>Ud,DangerousChangeType:()=>ls,DirectiveLocation:()=>He,ExecutableDefinitionsRule:()=>rm,FieldsOnCorrectTypeRule:()=>im,FragmentsOnCompositeTypesRule:()=>sm,GRAPHQL_MAX_INT:()=>Ld,GRAPHQL_MIN_INT:()=>Pd,GraphQLBoolean:()=>Br,GraphQLDeprecatedDirective:()=>Mo,GraphQLDirective:()=>Vr,GraphQLEnumType:()=>oi,GraphQLError:()=>Y,GraphQLFloat:()=>Yy,GraphQLID:()=>kd,GraphQLIncludeDirective:()=>Cd,GraphQLInputObjectType:()=>as,GraphQLInt:()=>Qy,GraphQLInterfaceType:()=>ss,GraphQLList:()=>Mn,GraphQLNonNull:()=>pt,GraphQLObjectType:()=>_r,GraphQLOneOfDirective:()=>Bd,GraphQLScalarType:()=>Jr,GraphQLSchema:()=>ji,GraphQLSkipDirective:()=>xd,GraphQLSpecifiedByDirective:()=>Md,GraphQLString:()=>Bn,GraphQLUnionType:()=>os,Kind:()=>R,KnownArgumentNamesRule:()=>om,KnownDirectivesRule:()=>Gd,KnownFragmentNamesRule:()=>am,KnownTypeNamesRule:()=>Qd,Lexer:()=>Ra,Location:()=>Xc,LoneAnonymousOperationRule:()=>um,LoneSchemaDefinitionRule:()=>cm,MaxIntrospectionDepthRule:()=>lm,NoDeprecatedCustomRule:()=>$b,NoFragmentCyclesRule:()=>dm,NoSchemaIntrospectionCustomRule:()=>qb,NoUndefinedVariablesRule:()=>pm,NoUnusedFragmentsRule:()=>fm,NoUnusedVariablesRule:()=>mm,OperationTypeNode:()=>Un,OverlappingFieldsCanBeMergedRule:()=>hm,PossibleFragmentSpreadsRule:()=>Tm,PossibleTypeExtensionsRule:()=>ym,ProvidedRequiredArgumentsRule:()=>Nm,ScalarLeafsRule:()=>Em,SchemaMetaFieldDef:()=>ka,SingleFieldSubscriptionsRule:()=>Om,Source:()=>Co,Token:()=>ic,TokenKind:()=>le,TypeInfo:()=>Ua,TypeKind:()=>fn,TypeMetaFieldDef:()=>Ca,TypeNameMetaFieldDef:()=>xa,UniqueArgumentDefinitionNamesRule:()=>Sm,UniqueArgumentNamesRule:()=>Wd,UniqueDirectiveNamesRule:()=>Dm,UniqueDirectivesPerLocationRule:()=>Xd,UniqueEnumValueNamesRule:()=>Am,UniqueFieldDefinitionNamesRule:()=>Rm,UniqueFragmentNamesRule:()=>Fm,UniqueInputFieldNamesRule:()=>Zd,UniqueOperationNamesRule:()=>wm,UniqueOperationTypesRule:()=>Lm,UniqueTypeNamesRule:()=>Pm,UniqueVariableNamesRule:()=>km,ValidationContext:()=>ml,ValuesOfCorrectTypeRule:()=>Cm,VariablesAreInputTypesRule:()=>xm,VariablesInAllowedPositionRule:()=>Um,__Directive:()=>zf,__DirectiveLocation:()=>Hf,__EnumValue:()=>Xf,__Field:()=>Wf,__InputValue:()=>ol,__Schema:()=>sl,__Type:()=>Vi,__TypeKind:()=>Zf,assertAbstractType:()=>A_,assertCompositeType:()=>D_,assertDirective:()=>P_,assertEnumType:()=>g_,assertEnumValueName:()=>Mf,assertInputObjectType:()=>I_,assertInputType:()=>b_,assertInterfaceType:()=>jf,assertLeafType:()=>S_,assertListType:()=>v_,assertName:()=>Mr,assertNamedType:()=>F_,assertNonNullType:()=>__,assertNullableType:()=>qf,assertObjectType:()=>Vf,assertOutputType:()=>O_,assertScalarType:()=>N_,assertSchema:()=>al,assertType:()=>y_,assertUnionType:()=>E_,assertValidName:()=>aO,assertValidSchema:()=>ll,assertWrappingType:()=>R_,astFromValue:()=>Hr,buildASTSchema:()=>hN,buildClientSchema:()=>Jb,buildSchema:()=>Xb,coerceInputValue:()=>vm,concatAST:()=>iO,createSourceEventStream:()=>fN,defaultFieldResolver:()=>$m,defaultTypeResolver:()=>pN,doTypesOverlap:()=>wd,execute:()=>mc,executeSync:()=>qm,extendSchema:()=>zb,findBreakingChanges:()=>uO,findDangerousChanges:()=>cO,formatError:()=>o_,getArgumentValues:()=>fc,getDirectiveValues:()=>jo,getEnterLeaveForKind:()=>wa,getIntrospectionQuery:()=>Gm,getLocation:()=>rc,getNamedType:()=>Gn,getNullableType:()=>rl,getOperationAST:()=>Gb,getOperationRootType:()=>Qb,getVariableValues:()=>bm,getVisitFn:()=>h_,graphql:()=>bC,graphqlSync:()=>OC,introspectionFromSchema:()=>Yb,introspectionTypes:()=>Bo,isAbstractType:()=>zr,isCompositeType:()=>vi,isConstValueNode:()=>nm,isDefinitionNode:()=>U_,isDirective:()=>lc,isEnumType:()=>sn,isEqualType:()=>il,isExecutableDefinitionNode:()=>$d,isInputObjectType:()=>It,isInputType:()=>Nr,isInterfaceType:()=>Nt,isIntrospectionType:()=>ui,isLeafType:()=>Rr,isListType:()=>Pt,isNamedType:()=>La,isNonNullType:()=>Qe,isNullableType:()=>$f,isObjectType:()=>at,isOutputType:()=>us,isRequiredArgument:()=>cs,isRequiredInputField:()=>Pa,isScalarType:()=>er,isSchema:()=>zy,isSelectionNode:()=>M_,isSpecifiedDirective:()=>dc,isSpecifiedScalarType:()=>uo,isType:()=>cc,isTypeDefinitionNode:()=>Fs,isTypeExtensionNode:()=>pc,isTypeNode:()=>B_,isTypeSubTypeOf:()=>ao,isTypeSystemDefinitionNode:()=>qd,isTypeSystemExtensionNode:()=>Kd,isUnionType:()=>pn,isValidNameError:()=>NN,isValueNode:()=>Wy,isWrappingType:()=>nl,lexicographicSortSchema:()=>Qm,locatedError:()=>$o,parse:()=>io,parseConstValue:()=>c_,parseType:()=>l_,parseValue:()=>Cf,print:()=>Ft,printError:()=>s_,printIntrospectionSchema:()=>tO,printLocation:()=>Af,printSchema:()=>ep,printSourceLocation:()=>_d,printType:()=>yN,recommendedRules:()=>sN,resolveObjMapThunk:()=>Gf,resolveReadonlyArrayThunk:()=>Kf,responsePathAsArray:()=>br,separateOperations:()=>sO,specifiedDirectives:()=>ai,specifiedRules:()=>Mm,specifiedScalarTypes:()=>xo,stripIgnoredCharacters:()=>oO,subscribe:()=>jb,syntaxError:()=>Zn,typeFromAST:()=>Qn,validate:()=>Bm,validateSchema:()=>jd,valueFromAST:()=>_i,valueFromASTUntyped:()=>tl,version:()=>Fk,versionInfo:()=>wk,visit:()=>As,visitInParallel:()=>Rd,visitWithTypeInfo:()=>dl});var Le=ue(()=>{"use strict";m();T();h();Lk();DC();AC();RC();kC();UC();MC();dx()});var bi=j(P=>{"use strict";m();T();h();Object.defineProperty(P,"__esModule",{value:!0});P.INPUT_FIELD=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.IN_UPPER=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=P.FIELD_DEFINITION_UPPER=P.FIELDS=P.FIELD_SET_SCALAR=P.FIELD_UPPER=P.FIELD_PATH=P.FIELD=P.EXTENSIONS=P.EXTENDS=P.EXTERNAL=P.ENUM_VALUE_UPPER=P.ENUM_VALUE=P.ENUM_UPPER=P.ENUM=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=P.EDFS_NATS_STREAM_CONFIGURATION=P.EDFS_PUBLISH_RESULT=P.EDFS_NATS_SUBSCRIBE=P.EDFS_NATS_REQUEST=P.EDFS_NATS_PUBLISH=P.EDFS_KAFKA_SUBSCRIBE=P.EDFS_KAFKA_PUBLISH=P.DIRECTIVE_DEFINITION=P.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.DEFAULT_EDFS_PROVIDER_ID=P.DEFAULT=P.CONSUMER_NAME=P.CONDITION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.BOOLEAN=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=P.AND_UPPER=void 0;P.SCHEMA=P.SCALAR_UPPER=P.SCALAR=P.RESOLVABLE=P.REQUIRES_SCOPES=P.REQUIRES=P.REQUEST=P.REASON=P.QUOTATION_JOIN=P.QUERY_UPPER=P.QUERY=P.PUBLISH=P.PROVIDES=P.PROVIDER_ID=P.PERIOD=P.PARENT_EXTENSION_DATA_MAP=P.PARENT_DEFINITION_DATA_MAP=P.PARENT_DEFINITION_DATA=P.OVERRIDE=P.OR_UPPER=P.OBJECT_UPPER=P.OBJECT=P.OPERATION_TO_DEFAULT=P.NULL=P.NOT_UPPER=P.NON_NULLABLE_STRING=P.NON_NULLABLE_INT=P.NON_NULLABLE_BOOLEAN=P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=P.NAME=P.NOT_APPLICABLE=P.PROVIDER_TYPE_NATS=P.PROVIDER_TYPE_KAFKA=P.MUTATION_UPPER=P.MUTATION=P.NUMBER=P.LITERAL_NEW_LINE=P.LITERAL_SPACE=P.LIST=P.LINK=P.LEFT_PARENTHESIS=P.KEY=P.INTERFACE_OBJECT=P.INTERFACE_UPPER=P.INTERFACE=P.INT_SCALAR=P.INPUT_VALUE=P.INPUT_OBJECT_UPPER=P.INPUT_OBJECT=P.INPUT_FIELD_DEFINITION_UPPER=void 0;P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=P.SUBSCRIPTION_FILTER_INPUT_NAMES=P.PERSISTED_CLIENT_DIRECTIVES=P.STREAM_CONFIGURATION_FIELD_NAMES=P.EVENT_DIRECTIVE_NAMES=P.ROOT_TYPE_NAMES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=P.VARIABLE_DEFINITION_UPPER=P.VALUES=P.URL_LOWER=P.UNION_UPPER=P.UNION=P.TOPICS=P.TOPIC=P.TAG=P.SUCCESS=P.SUBSCRIPTION_UPPER=P.SUBSCRIBE=P.SUBSCRIPTION_FILTER_VALUE=P.SUBSCRIPTION_FILTER_CONDITION=P.SUBSCRIPTION_FILTER=P.SUBSCRIPTION_FIELD_CONDITION=P.SUBSCRIPTION=P.SUBJECTS=P.SUBJECT=P.STRING_SCALAR=P.STRING=P.STREAM_NAME=P.CONSUMER_INACTIVE_THRESHOLD=P.STREAM_CONFIGURATION=P.SPECIFIED_BY=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=void 0;P.AND_UPPER="AND";P.ANY_SCALAR="_Any";P.ARGUMENT="Argument";P.AUTHENTICATED="authenticated";P.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";P.BOOLEAN="boolean";P.BOOLEAN_SCALAR="Boolean";P.COMPOSE_DIRECTIVE="composeDirective";P.CONDITION="condition";P.CONSUMER_NAME="consumerName";P.DEFAULT="default";P.DEFAULT_EDFS_PROVIDER_ID="default";P.DEFAULT_MUTATION="Mutation";P.DEFAULT_QUERY="Query";P.DEFAULT_SUBSCRIPTION="Subscription";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";P.DIRECTIVE_DEFINITION="directive definition";P.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";P.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";P.EDFS_NATS_PUBLISH="edfs__natsPublish";P.EDFS_NATS_REQUEST="edfs__natsRequest";P.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";P.EDFS_PUBLISH_RESULT="edfs__PublishResult";P.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";P.ENTITIES="entities";P.ENTITIES_FIELD="_entities";P.ENTITY_UNION="_Entity";P.ENUM="Enum";P.ENUM_UPPER="ENUM";P.ENUM_VALUE="Enum Value";P.ENUM_VALUE_UPPER="ENUM_VALUE";P.EXTERNAL="external";P.EXTENDS="extends";P.EXTENSIONS="extensions";P.FIELD="Field";P.FIELD_PATH="fieldPath";P.FIELD_UPPER="FIELD";P.FIELD_SET_SCALAR="openfed__FieldSet";P.FIELDS="fields";P.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";P.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.IN_UPPER="IN";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";P.INPUT_FIELD="Input Field";P.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";P.INPUT_OBJECT="Input Object";P.INPUT_OBJECT_UPPER="INPUT_OBJECT";P.INPUT_VALUE="Input Value";P.INT_SCALAR="Int";P.INTERFACE="Interface";P.INTERFACE_UPPER="INTERFACE";P.INTERFACE_OBJECT="interfaceObject";P.KEY="key";P.LEFT_PARENTHESIS="(";P.LINK="link";P.LIST="list";P.LITERAL_SPACE=" ";P.LITERAL_NEW_LINE=` -`;P.NUMBER="number";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.PROVIDER_TYPE_KAFKA="kafka";P.PROVIDER_TYPE_NATS="nats";P.NOT_APPLICABLE="N/A";P.NAME="name";P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";P.NON_NULLABLE_BOOLEAN="Boolean!";P.NON_NULLABLE_INT="Int!";P.NON_NULLABLE_STRING="String!";P.NOT_UPPER="NOT";P.NULL="Null";P.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";P.OBJECT="Object";P.OBJECT_UPPER="OBJECT";P.OR_UPPER="OR";P.OVERRIDE="override";P.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";P.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";P.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";P.PERIOD=".";P.PROVIDER_ID="providerId";P.PROVIDES="provides";P.PUBLISH="publish";P.QUERY="Query";P.QUERY_UPPER="QUERY";P.QUOTATION_JOIN='", "';P.REASON="reason";P.REQUEST="request";P.REQUIRES="requires";P.REQUIRES_SCOPES="requiresScopes";P.RESOLVABLE="resolvable";P.SCALAR="Scalar";P.SCALAR_UPPER="SCALAR";P.SCHEMA="schema";P.SCHEMA_UPPER="SCHEMA";P.SCOPES="scopes";P.SCOPE_SCALAR="openfed__Scope";P.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SPECIFIED_BY="specifiedBy";P.STREAM_CONFIGURATION="streamConfiguration";P.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";P.STREAM_NAME="streamName";P.STRING="string";P.STRING_SCALAR="String";P.SUBJECT="subject";P.SUBJECTS="subjects";P.SUBSCRIPTION="Subscription";P.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";P.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";P.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";P.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";P.SUBSCRIBE="subscribe";P.SUBSCRIPTION_UPPER="SUBSCRIPTION";P.SUCCESS="success";P.TAG="tag";P.TOPIC="topic";P.TOPICS="topics";P.UNION="Union";P.UNION_UPPER="UNION";P.URL_LOWER="url";P.VALUES="values";P.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";P.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([P.FIELD_UPPER,P.FRAGMENT_DEFINITION_UPPER,P.FRAGMENT_SPREAD_UPPER,P.INLINE_FRAGMENT_UPPER,P.MUTATION_UPPER,P.QUERY_UPPER,P.SUBSCRIPTION_UPPER]);P.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.REQUIRES_SCOPES]);P.ROOT_TYPE_NAMES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION]);P.EVENT_DIRECTIVE_NAMES=new Set([P.EDFS_KAFKA_PUBLISH,P.EDFS_KAFKA_SUBSCRIBE,P.EDFS_NATS_PUBLISH,P.EDFS_NATS_REQUEST,P.EDFS_NATS_SUBSCRIBE]);P.STREAM_CONFIGURATION_FIELD_NAMES=new Set([P.CONSUMER_INACTIVE_THRESHOLD,P.CONSUMER_NAME,P.STREAM_NAME]);P.PERSISTED_CLIENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.DEPRECATED,P.REQUIRES_SCOPES]);P.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([P.AND_UPPER,P.IN_UPPER,P.NOT_UPPER,P.OR_UPPER]);P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([P.AND_UPPER,P.OR_UPPER])});var $i=j(ar=>{"use strict";m();T();h();Object.defineProperty(ar,"__esModule",{value:!0});ar.operationTypeNodeToDefaultType=void 0;ar.isObjectLikeNodeEntity=r4;ar.isNodeInterfaceObject=i4;ar.isNodeExtension=s4;ar.areBaseAndExtensionKindsCompatible=o4;ar.stringToNameNode=gN;ar.stringArrayToNameNodeArray=a4;ar.setToNameNodeArray=u4;ar.stringToNamedTypeNode=px;ar.setToNamedTypeNodeArray=c4;ar.nodeKindToDirectiveLocation=l4;ar.isKindAbstract=d4;ar.extractExecutableDirectiveLocations=p4;ar.formatDescription=f4;ar.lexicographicallySortArgumentNodes=fx;ar.lexicographicallySortSelectionSetNode=EN;ar.lexicographicallySortDocumentNode=m4;ar.parse=mx;ar.safeParse=h4;var vt=(Le(),Me(je)),Jn=bi();function r4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.KEY)return!0;return!1}function i4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.INTERFACE_OBJECT)return!0;return!1}function s4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.EXTENDS)return!0;return!1}function o4(e,t,n){switch(e){case vt.Kind.ENUM_TYPE_DEFINITION:return t===vt.Kind.ENUM_TYPE_EXTENSION;case vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===vt.Kind.INPUT_OBJECT_TYPE_EXTENSION;case vt.Kind.INTERFACE_TYPE_DEFINITION:return t===vt.Kind.INTERFACE_TYPE_EXTENSION;case vt.Kind.OBJECT_TYPE_DEFINITION:return t===vt.Kind.OBJECT_TYPE_EXTENSION;case vt.Kind.SCALAR_TYPE_DEFINITION:return t===vt.Kind.SCALAR_TYPE_EXTENSION;case vt.Kind.UNION_TYPE_DEFINITION:return t===vt.Kind.UNION_TYPE_EXTENSION;default:return!1}}function gN(e){return{kind:vt.Kind.NAME,value:e}}function a4(e){let t=[];for(let n of e)t.push(gN(n));return t}function u4(e){let t=[];for(let n of e)t.push(gN(n));return t}function px(e){return{kind:vt.Kind.NAMED_TYPE,name:gN(e)}}function c4(e){let t=[];for(let n of e)t.push(px(n));return t}function l4(e){switch(e){case vt.Kind.ARGUMENT:return Jn.ARGUMENT_DEFINITION_UPPER;case vt.Kind.ENUM_TYPE_DEFINITION:case vt.Kind.ENUM_TYPE_EXTENSION:return Jn.ENUM_UPPER;case vt.Kind.ENUM_VALUE_DEFINITION:return Jn.ENUM_VALUE_UPPER;case vt.Kind.FIELD_DEFINITION:return Jn.FIELD_DEFINITION_UPPER;case vt.Kind.FRAGMENT_DEFINITION:return Jn.FRAGMENT_DEFINITION_UPPER;case vt.Kind.FRAGMENT_SPREAD:return Jn.FRAGMENT_SPREAD_UPPER;case vt.Kind.INLINE_FRAGMENT:return Jn.INLINE_FRAGMENT_UPPER;case vt.Kind.INPUT_VALUE_DEFINITION:return Jn.INPUT_FIELD_DEFINITION_UPPER;case vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case vt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Jn.INPUT_OBJECT_UPPER;case vt.Kind.INTERFACE_TYPE_DEFINITION:case vt.Kind.INTERFACE_TYPE_EXTENSION:return Jn.INTERFACE_UPPER;case vt.Kind.OBJECT_TYPE_DEFINITION:case vt.Kind.OBJECT_TYPE_EXTENSION:return Jn.OBJECT_UPPER;case vt.Kind.SCALAR_TYPE_DEFINITION:case vt.Kind.SCALAR_TYPE_EXTENSION:return Jn.SCALAR_UPPER;case vt.Kind.SCHEMA_DEFINITION:case vt.Kind.SCHEMA_EXTENSION:return Jn.SCHEMA_UPPER;case vt.Kind.UNION_TYPE_DEFINITION:case vt.Kind.UNION_TYPE_EXTENSION:return Jn.UNION_UPPER;default:return e}}ar.operationTypeNodeToDefaultType=new Map([[vt.OperationTypeNode.MUTATION,Jn.MUTATION],[vt.OperationTypeNode.QUERY,Jn.QUERY],[vt.OperationTypeNode.SUBSCRIPTION,Jn.SUBSCRIPTION]]);function d4(e){return e===vt.Kind.INTERFACE_TYPE_DEFINITION||e===vt.Kind.UNION_TYPE_DEFINITION}function p4(e,t){for(let n of e){let r=n.value;Jn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function f4(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` +`}var dC=ue(()=>{"use strict";m();T();h();Nn();ri();Uf();Xt();is();Zt();Bi();Rs();Uo();em()});function pO(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:R.DOCUMENT,definitions:t}}var pC=ue(()=>{"use strict";m();T();h();Xt()});function fO(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case R.OPERATION_DEFINITION:t.push(i);break;case R.FRAGMENT_DEFINITION:n[i.name.value]=fC(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of fC(i.selectionSet))mC(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:R.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===R.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function mC(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)mC(e,t,i)}}function fC(e){let t=[];return As(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var hC=ue(()=>{"use strict";m();T();h();Xt();ol()});function mO(e){let t=Gy(e)?e:new xo(e),n=t.body,r=new Ra(t),i="",s=!1;for(;r.advance().kind!==le.EOF;){let o=r.token,u=o.kind,l=!jy(o.kind);s&&(l||o.kind===le.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===le.BLOCK_STRING?i+=Vy(o.value,{minimize:!0}):i+=d,s=l}return i}var TC=ue(()=>{"use strict";m();T();h();Uf();qy();Qy();Mf()});function hO(e){let t=bN(e);if(t)throw t;return e}function bN(e){if(typeof e=="string"||it(!1,"Expected name to be a string."),e.startsWith("__"))return new J(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Mr(e)}catch(t){return t}}var yC=ue(()=>{"use strict";m();T();h();Ni();at();Gf()});function TO(e,t){return vC(e,t).filter(n=>n.type in Yn)}function yO(e,t){return vC(e,t).filter(n=>n.type in ls)}function vC(e,t){return[...p4(e,t),...d4(e,t)]}function d4(e,t){let n=[],r=Ba(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Yn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=Ba(i.args,s.args);for(let u of o.added)cs(u)&&n.push({type:Yn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:Yn.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:Yn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:Yn.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function p4(e,t){let n=[],r=Ba(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED,description:uo(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)sn(i)&&sn(s)?n.push(...h4(i,s)):pn(i)&&pn(s)?n.push(...m4(i,s)):It(i)&&It(s)?n.push(...f4(i,s)):ut(i)&&ut(s)?n.push(...EC(i,s),...NC(i,s)):Nt(i)&&Nt(s)?n.push(...EC(i,s),...NC(i,s)):i.constructor!==s.constructor&&n.push({type:Yn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${gC(i)} to ${gC(s)}.`});return n}function f4(e,t){let n=[],r=Ba(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)Pa(i)?n.push({type:Yn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ls.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)eh(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function m4(e,t){let n=[],r=Ba(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ls.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function h4(e,t){let n=[],r=Ba(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ls.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Yn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function NC(e,t){let n=[],r=Ba(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ls.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Yn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function EC(e,t){let n=[],r=Ba(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Yn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...T4(e,i,s)),Zm(i.type,s.type)||n.push({type:Yn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function T4(e,t,n){let r=[],i=Ba(t.args,n.args);for(let s of i.removed)r.push({type:Yn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!eh(s.type,o.type))r.push({type:Yn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=IC(s.defaultValue,s.type),d=IC(o.defaultValue,o.type);l!==d&&r.push({type:ls.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)cs(s)?r.push({type:Yn.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:ls.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Zm(e,t){return Pt(e)?Pt(t)&&Zm(e.ofType,t.ofType)||Qe(t)&&Zm(e,t.ofType):Qe(e)?Qe(t)&&Zm(e.ofType,t.ofType):La(t)&&e.name===t.name||Qe(t)&&Zm(e,t.ofType)}function eh(e,t){return Pt(e)?Pt(t)&&eh(e.ofType,t.ofType):Qe(e)?Qe(t)&&eh(e.ofType,t.ofType)||!Qe(t)&&eh(e.ofType,t):La(t)&&e.name===t.name}function gC(e){if(tr(e))return"a Scalar type";if(ut(e))return"an Object type";if(Nt(e))return"an Interface type";if(pn(e))return"a Union type";if(sn(e))return"an Enum type";if(It(e))return"an Input type";Qt(!1,"Unexpected type: "+ne(e))}function IC(e,t){let n=Hr(e,t);return n!=null||Qt(!1),Ft(Zd(n))}function Ba(e,t){let n=[],r=[],i=[],s=si(e,({name:u})=>u),o=si(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}var Yn,ls,_C=ue(()=>{"use strict";m();T();h();Nn();ri();pc();is();Zt();Uo();em();cb();(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Yn||(Yn={}));(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ls||(ls={}))});var bC=ue(()=>{"use strict";m();T();h();Xb();Xx();Zx();eC();tC();iC();sO();oC();dC();Vo();Rm();b_();em();nN();Ib();pC();hC();TC();Xf();yC();_C()});var je={};Lf(je,{BREAK:()=>mc,BreakingChangeType:()=>Yn,DEFAULT_DEPRECATION_REASON:()=>qd,DangerousChangeType:()=>ls,DirectiveLocation:()=>He,ExecutableDefinitionsRule:()=>cm,FieldsOnCorrectTypeRule:()=>lm,FragmentsOnCompositeTypesRule:()=>dm,GRAPHQL_MAX_INT:()=>Md,GRAPHQL_MIN_INT:()=>Bd,GraphQLBoolean:()=>Br,GraphQLDeprecatedDirective:()=>Mo,GraphQLDirective:()=>Vr,GraphQLEnumType:()=>oi,GraphQLError:()=>J,GraphQLFloat:()=>Zy,GraphQLID:()=>Vd,GraphQLIncludeDirective:()=>jd,GraphQLInputObjectType:()=>as,GraphQLInt:()=>Xy,GraphQLInterfaceType:()=>ss,GraphQLList:()=>Mn,GraphQLNonNull:()=>ft,GraphQLObjectType:()=>_r,GraphQLOneOfDirective:()=>Gd,GraphQLScalarType:()=>Jr,GraphQLSchema:()=>ji,GraphQLSkipDirective:()=>$d,GraphQLSpecifiedByDirective:()=>Kd,GraphQLString:()=>Bn,GraphQLUnionType:()=>os,Kind:()=>R,KnownArgumentNamesRule:()=>pm,KnownDirectivesRule:()=>Wd,KnownFragmentNamesRule:()=>fm,KnownTypeNamesRule:()=>Xd,Lexer:()=>Ra,Location:()=>il,LoneAnonymousOperationRule:()=>mm,LoneSchemaDefinitionRule:()=>hm,MaxIntrospectionDepthRule:()=>Tm,NoDeprecatedCustomRule:()=>Hb,NoFragmentCyclesRule:()=>ym,NoSchemaIntrospectionCustomRule:()=>Wb,NoUndefinedVariablesRule:()=>Nm,NoUnusedFragmentsRule:()=>Em,NoUnusedVariablesRule:()=>gm,OperationTypeNode:()=>Un,OverlappingFieldsCanBeMergedRule:()=>Im,PossibleFragmentSpreadsRule:()=>vm,PossibleTypeExtensionsRule:()=>_m,ProvidedRequiredArgumentsRule:()=>bm,ScalarLeafsRule:()=>Om,SchemaMetaFieldDef:()=>ka,SingleFieldSubscriptionsRule:()=>wm,Source:()=>xo,Token:()=>lc,TokenKind:()=>le,TypeInfo:()=>Ua,TypeKind:()=>fn,TypeMetaFieldDef:()=>xa,TypeNameMetaFieldDef:()=>Ca,UniqueArgumentDefinitionNamesRule:()=>Lm,UniqueArgumentNamesRule:()=>rp,UniqueDirectiveNamesRule:()=>Pm,UniqueDirectivesPerLocationRule:()=>ip,UniqueEnumValueNamesRule:()=>km,UniqueFieldDefinitionNamesRule:()=>xm,UniqueFragmentNamesRule:()=>Cm,UniqueInputFieldNamesRule:()=>sp,UniqueOperationNamesRule:()=>Um,UniqueOperationTypesRule:()=>Mm,UniqueTypeNamesRule:()=>Bm,UniqueVariableNamesRule:()=>Vm,ValidationContext:()=>gl,ValuesOfCorrectTypeRule:()=>jm,VariablesAreInputTypesRule:()=>$m,VariablesInAllowedPositionRule:()=>qm,__Directive:()=>tm,__DirectiveLocation:()=>nm,__EnumValue:()=>im,__Field:()=>rm,__InputValue:()=>pl,__Schema:()=>dl,__Type:()=>Vi,__TypeKind:()=>sm,assertAbstractType:()=>C_,assertCompositeType:()=>x_,assertDirective:()=>j_,assertEnumType:()=>A_,assertEnumValueName:()=>Kf,assertInputObjectType:()=>R_,assertInputType:()=>L_,assertInterfaceType:()=>Yf,assertLeafType:()=>k_,assertListType:()=>F_,assertName:()=>Mr,assertNamedType:()=>M_,assertNonNullType:()=>w_,assertNullableType:()=>zf,assertObjectType:()=>Qf,assertOutputType:()=>P_,assertScalarType:()=>S_,assertSchema:()=>fl,assertType:()=>O_,assertUnionType:()=>D_,assertValidName:()=>hO,assertValidSchema:()=>Tl,assertWrappingType:()=>U_,astFromValue:()=>Hr,buildASTSchema:()=>IN,buildClientSchema:()=>nO,buildSchema:()=>oO,coerceInputValue:()=>Am,concatAST:()=>pO,createSourceEventStream:()=>EN,defaultFieldResolver:()=>Jm,defaultTypeResolver:()=>NN,doTypesOverlap:()=>Ud,execute:()=>gc,executeSync:()=>zm,extendSchema:()=>rO,findBreakingChanges:()=>TO,findDangerousChanges:()=>yO,formatError:()=>m_,getArgumentValues:()=>Ec,getDirectiveValues:()=>jo,getEnterLeaveForKind:()=>wa,getIntrospectionQuery:()=>Wm,getLocation:()=>cc,getNamedType:()=>Gn,getNullableType:()=>cl,getOperationAST:()=>Zb,getOperationRootType:()=>eO,getVariableValues:()=>Fm,getVisitFn:()=>__,graphql:()=>Ux,graphqlSync:()=>Mx,introspectionFromSchema:()=>tO,introspectionTypes:()=>Bo,isAbstractType:()=>zr,isCompositeType:()=>vi,isConstValueNode:()=>um,isDefinitionNode:()=>G_,isDirective:()=>Tc,isEnumType:()=>sn,isEqualType:()=>ll,isExecutableDefinitionNode:()=>Jd,isInputObjectType:()=>It,isInputType:()=>Nr,isInterfaceType:()=>Nt,isIntrospectionType:()=>ui,isLeafType:()=>Rr,isListType:()=>Pt,isNamedType:()=>La,isNonNullType:()=>Qe,isNullableType:()=>Jf,isObjectType:()=>ut,isOutputType:()=>us,isRequiredArgument:()=>cs,isRequiredInputField:()=>Pa,isScalarType:()=>tr,isSchema:()=>tN,isSelectionNode:()=>Q_,isSpecifiedDirective:()=>yc,isSpecifiedScalarType:()=>uo,isType:()=>hc,isTypeDefinitionNode:()=>Fs,isTypeExtensionNode:()=>Nc,isTypeNode:()=>Y_,isTypeSubTypeOf:()=>ao,isTypeSystemDefinitionNode:()=>zd,isTypeSystemExtensionNode:()=>Hd,isUnionType:()=>pn,isValidNameError:()=>bN,isValueNode:()=>rN,isWrappingType:()=>ul,lexicographicSortSchema:()=>Xm,locatedError:()=>$o,parse:()=>io,parseConstValue:()=>y_,parseType:()=>N_,parseValue:()=>jf,print:()=>Ft,printError:()=>f_,printIntrospectionSchema:()=>cO,printLocation:()=>kf,printSchema:()=>op,printSourceLocation:()=>Rd,printType:()=>_N,recommendedRules:()=>dN,resolveObjMapThunk:()=>Wf,resolveReadonlyArrayThunk:()=>Hf,responsePathAsArray:()=>br,separateOperations:()=>fO,specifiedDirectives:()=>ai,specifiedRules:()=>Km,specifiedScalarTypes:()=>Co,stripIgnoredCharacters:()=>mO,subscribe:()=>zb,syntaxError:()=>er,typeFromAST:()=>Qn,validate:()=>Gm,validateSchema:()=>Yd,valueFromAST:()=>_i,valueFromASTUntyped:()=>al,version:()=>qk,versionInfo:()=>Kk,visit:()=>As,visitInParallel:()=>xd,visitWithTypeInfo:()=>yl});var Le=ue(()=>{"use strict";m();T();h();Gk();Vx();jx();$x();Yx();Hx();Wx();bC()});var bi=j(P=>{"use strict";m();T();h();Object.defineProperty(P,"__esModule",{value:!0});P.INPUT_FIELD=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.IN_UPPER=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=P.FIELD_DEFINITION_UPPER=P.FIELDS=P.FIELD_SET_SCALAR=P.FIELD_UPPER=P.FIELD_PATH=P.FIELD=P.EXTENSIONS=P.EXTENDS=P.EXTERNAL=P.ENUM_VALUE_UPPER=P.ENUM_VALUE=P.ENUM_UPPER=P.ENUM=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=P.EDFS_NATS_STREAM_CONFIGURATION=P.EDFS_PUBLISH_RESULT=P.EDFS_NATS_SUBSCRIBE=P.EDFS_NATS_REQUEST=P.EDFS_NATS_PUBLISH=P.EDFS_KAFKA_SUBSCRIBE=P.EDFS_KAFKA_PUBLISH=P.DIRECTIVE_DEFINITION=P.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.DEFAULT_EDFS_PROVIDER_ID=P.DEFAULT=P.CONSUMER_NAME=P.CONDITION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.BOOLEAN=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=P.AND_UPPER=void 0;P.SCHEMA=P.SCALAR_UPPER=P.SCALAR=P.RESOLVABLE=P.REQUIRES_SCOPES=P.REQUIRES=P.REQUEST=P.REASON=P.QUOTATION_JOIN=P.QUERY_UPPER=P.QUERY=P.PUBLISH=P.PROVIDES=P.PROVIDER_ID=P.PERIOD=P.PARENT_EXTENSION_DATA_MAP=P.PARENT_DEFINITION_DATA_MAP=P.PARENT_DEFINITION_DATA=P.OVERRIDE=P.OR_UPPER=P.OBJECT_UPPER=P.OBJECT=P.OPERATION_TO_DEFAULT=P.NULL=P.NOT_UPPER=P.NON_NULLABLE_STRING=P.NON_NULLABLE_INT=P.NON_NULLABLE_BOOLEAN=P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=P.NAME=P.NOT_APPLICABLE=P.PROVIDER_TYPE_NATS=P.PROVIDER_TYPE_KAFKA=P.MUTATION_UPPER=P.MUTATION=P.NUMBER=P.LITERAL_NEW_LINE=P.LITERAL_SPACE=P.LIST=P.LINK=P.LEFT_PARENTHESIS=P.KEY=P.INTERFACE_OBJECT=P.INTERFACE_UPPER=P.INTERFACE=P.INT_SCALAR=P.INPUT_VALUE=P.INPUT_OBJECT_UPPER=P.INPUT_OBJECT=P.INPUT_FIELD_DEFINITION_UPPER=void 0;P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=P.SUBSCRIPTION_FILTER_INPUT_NAMES=P.PERSISTED_CLIENT_DIRECTIVES=P.STREAM_CONFIGURATION_FIELD_NAMES=P.EVENT_DIRECTIVE_NAMES=P.ROOT_TYPE_NAMES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=P.VARIABLE_DEFINITION_UPPER=P.VALUES=P.URL_LOWER=P.UNION_UPPER=P.UNION=P.TOPICS=P.TOPIC=P.TAG=P.SUCCESS=P.SUBSCRIPTION_UPPER=P.SUBSCRIBE=P.SUBSCRIPTION_FILTER_VALUE=P.SUBSCRIPTION_FILTER_CONDITION=P.SUBSCRIPTION_FILTER=P.SUBSCRIPTION_FIELD_CONDITION=P.SUBSCRIPTION=P.SUBJECTS=P.SUBJECT=P.STRING_SCALAR=P.STRING=P.STREAM_NAME=P.CONSUMER_INACTIVE_THRESHOLD=P.STREAM_CONFIGURATION=P.SPECIFIED_BY=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=void 0;P.AND_UPPER="AND";P.ANY_SCALAR="_Any";P.ARGUMENT="Argument";P.AUTHENTICATED="authenticated";P.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";P.BOOLEAN="boolean";P.BOOLEAN_SCALAR="Boolean";P.COMPOSE_DIRECTIVE="composeDirective";P.CONDITION="condition";P.CONSUMER_NAME="consumerName";P.DEFAULT="default";P.DEFAULT_EDFS_PROVIDER_ID="default";P.DEFAULT_MUTATION="Mutation";P.DEFAULT_QUERY="Query";P.DEFAULT_SUBSCRIPTION="Subscription";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";P.DIRECTIVE_DEFINITION="directive definition";P.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";P.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";P.EDFS_NATS_PUBLISH="edfs__natsPublish";P.EDFS_NATS_REQUEST="edfs__natsRequest";P.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";P.EDFS_PUBLISH_RESULT="edfs__PublishResult";P.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";P.ENTITIES="entities";P.ENTITIES_FIELD="_entities";P.ENTITY_UNION="_Entity";P.ENUM="Enum";P.ENUM_UPPER="ENUM";P.ENUM_VALUE="Enum Value";P.ENUM_VALUE_UPPER="ENUM_VALUE";P.EXTERNAL="external";P.EXTENDS="extends";P.EXTENSIONS="extensions";P.FIELD="Field";P.FIELD_PATH="fieldPath";P.FIELD_UPPER="FIELD";P.FIELD_SET_SCALAR="openfed__FieldSet";P.FIELDS="fields";P.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";P.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.IN_UPPER="IN";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";P.INPUT_FIELD="Input Field";P.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";P.INPUT_OBJECT="Input Object";P.INPUT_OBJECT_UPPER="INPUT_OBJECT";P.INPUT_VALUE="Input Value";P.INT_SCALAR="Int";P.INTERFACE="Interface";P.INTERFACE_UPPER="INTERFACE";P.INTERFACE_OBJECT="interfaceObject";P.KEY="key";P.LEFT_PARENTHESIS="(";P.LINK="link";P.LIST="list";P.LITERAL_SPACE=" ";P.LITERAL_NEW_LINE=` +`;P.NUMBER="number";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.PROVIDER_TYPE_KAFKA="kafka";P.PROVIDER_TYPE_NATS="nats";P.NOT_APPLICABLE="N/A";P.NAME="name";P.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";P.NON_NULLABLE_BOOLEAN="Boolean!";P.NON_NULLABLE_INT="Int!";P.NON_NULLABLE_STRING="String!";P.NOT_UPPER="NOT";P.NULL="Null";P.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";P.OBJECT="Object";P.OBJECT_UPPER="OBJECT";P.OR_UPPER="OR";P.OVERRIDE="override";P.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";P.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";P.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";P.PERIOD=".";P.PROVIDER_ID="providerId";P.PROVIDES="provides";P.PUBLISH="publish";P.QUERY="Query";P.QUERY_UPPER="QUERY";P.QUOTATION_JOIN='", "';P.REASON="reason";P.REQUEST="request";P.REQUIRES="requires";P.REQUIRES_SCOPES="requiresScopes";P.RESOLVABLE="resolvable";P.SCALAR="Scalar";P.SCALAR_UPPER="SCALAR";P.SCHEMA="schema";P.SCHEMA_UPPER="SCHEMA";P.SCOPES="scopes";P.SCOPE_SCALAR="openfed__Scope";P.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SPECIFIED_BY="specifiedBy";P.STREAM_CONFIGURATION="streamConfiguration";P.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";P.STREAM_NAME="streamName";P.STRING="string";P.STRING_SCALAR="String";P.SUBJECT="subject";P.SUBJECTS="subjects";P.SUBSCRIPTION="Subscription";P.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";P.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";P.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";P.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";P.SUBSCRIBE="subscribe";P.SUBSCRIPTION_UPPER="SUBSCRIPTION";P.SUCCESS="success";P.TAG="tag";P.TOPIC="topic";P.TOPICS="topics";P.UNION="Union";P.UNION_UPPER="UNION";P.URL_LOWER="url";P.VALUES="values";P.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";P.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([P.FIELD_UPPER,P.FRAGMENT_DEFINITION_UPPER,P.FRAGMENT_SPREAD_UPPER,P.INLINE_FRAGMENT_UPPER,P.MUTATION_UPPER,P.QUERY_UPPER,P.SUBSCRIPTION_UPPER]);P.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.REQUIRES_SCOPES]);P.ROOT_TYPE_NAMES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION]);P.EVENT_DIRECTIVE_NAMES=new Set([P.EDFS_KAFKA_PUBLISH,P.EDFS_KAFKA_SUBSCRIBE,P.EDFS_NATS_PUBLISH,P.EDFS_NATS_REQUEST,P.EDFS_NATS_SUBSCRIBE]);P.STREAM_CONFIGURATION_FIELD_NAMES=new Set([P.CONSUMER_INACTIVE_THRESHOLD,P.CONSUMER_NAME,P.STREAM_NAME]);P.PERSISTED_CLIENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.DEPRECATED,P.REQUIRES_SCOPES]);P.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([P.AND_UPPER,P.IN_UPPER,P.NOT_UPPER,P.OR_UPPER]);P.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([P.AND_UPPER,P.OR_UPPER])});var $i=j(ar=>{"use strict";m();T();h();Object.defineProperty(ar,"__esModule",{value:!0});ar.operationTypeNodeToDefaultType=void 0;ar.isObjectLikeNodeEntity=y4;ar.isNodeInterfaceObject=N4;ar.isNodeExtension=E4;ar.areBaseAndExtensionKindsCompatible=g4;ar.stringToNameNode=SN;ar.stringArrayToNameNodeArray=I4;ar.setToNameNodeArray=v4;ar.stringToNamedTypeNode=OC;ar.setToNamedTypeNodeArray=_4;ar.nodeKindToDirectiveLocation=b4;ar.isKindAbstract=O4;ar.extractExecutableDirectiveLocations=S4;ar.formatDescription=D4;ar.lexicographicallySortArgumentNodes=SC;ar.lexicographicallySortSelectionSetNode=ON;ar.lexicographicallySortDocumentNode=A4;ar.parse=DC;ar.safeParse=R4;var vt=(Le(),Me(je)),Jn=bi();function y4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.KEY)return!0;return!1}function N4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.INTERFACE_OBJECT)return!0;return!1}function E4(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===Jn.EXTENDS)return!0;return!1}function g4(e,t,n){switch(e){case vt.Kind.ENUM_TYPE_DEFINITION:return t===vt.Kind.ENUM_TYPE_EXTENSION;case vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===vt.Kind.INPUT_OBJECT_TYPE_EXTENSION;case vt.Kind.INTERFACE_TYPE_DEFINITION:return t===vt.Kind.INTERFACE_TYPE_EXTENSION;case vt.Kind.OBJECT_TYPE_DEFINITION:return t===vt.Kind.OBJECT_TYPE_EXTENSION;case vt.Kind.SCALAR_TYPE_DEFINITION:return t===vt.Kind.SCALAR_TYPE_EXTENSION;case vt.Kind.UNION_TYPE_DEFINITION:return t===vt.Kind.UNION_TYPE_EXTENSION;default:return!1}}function SN(e){return{kind:vt.Kind.NAME,value:e}}function I4(e){let t=[];for(let n of e)t.push(SN(n));return t}function v4(e){let t=[];for(let n of e)t.push(SN(n));return t}function OC(e){return{kind:vt.Kind.NAMED_TYPE,name:SN(e)}}function _4(e){let t=[];for(let n of e)t.push(OC(n));return t}function b4(e){switch(e){case vt.Kind.ARGUMENT:return Jn.ARGUMENT_DEFINITION_UPPER;case vt.Kind.ENUM_TYPE_DEFINITION:case vt.Kind.ENUM_TYPE_EXTENSION:return Jn.ENUM_UPPER;case vt.Kind.ENUM_VALUE_DEFINITION:return Jn.ENUM_VALUE_UPPER;case vt.Kind.FIELD_DEFINITION:return Jn.FIELD_DEFINITION_UPPER;case vt.Kind.FRAGMENT_DEFINITION:return Jn.FRAGMENT_DEFINITION_UPPER;case vt.Kind.FRAGMENT_SPREAD:return Jn.FRAGMENT_SPREAD_UPPER;case vt.Kind.INLINE_FRAGMENT:return Jn.INLINE_FRAGMENT_UPPER;case vt.Kind.INPUT_VALUE_DEFINITION:return Jn.INPUT_FIELD_DEFINITION_UPPER;case vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case vt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Jn.INPUT_OBJECT_UPPER;case vt.Kind.INTERFACE_TYPE_DEFINITION:case vt.Kind.INTERFACE_TYPE_EXTENSION:return Jn.INTERFACE_UPPER;case vt.Kind.OBJECT_TYPE_DEFINITION:case vt.Kind.OBJECT_TYPE_EXTENSION:return Jn.OBJECT_UPPER;case vt.Kind.SCALAR_TYPE_DEFINITION:case vt.Kind.SCALAR_TYPE_EXTENSION:return Jn.SCALAR_UPPER;case vt.Kind.SCHEMA_DEFINITION:case vt.Kind.SCHEMA_EXTENSION:return Jn.SCHEMA_UPPER;case vt.Kind.UNION_TYPE_DEFINITION:case vt.Kind.UNION_TYPE_EXTENSION:return Jn.UNION_UPPER;default:return e}}ar.operationTypeNodeToDefaultType=new Map([[vt.OperationTypeNode.MUTATION,Jn.MUTATION],[vt.OperationTypeNode.QUERY,Jn.QUERY],[vt.OperationTypeNode.SUBSCRIPTION,Jn.SUBSCRIPTION]]);function O4(e){return e===vt.Kind.INTERFACE_TYPE_DEFINITION||e===vt.Kind.UNION_TYPE_DEFINITION}function S4(e,t){for(let n of e){let r=n.value;Jn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function D4(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` `);n.length>1&&(t=n.map(r=>r.trimStart()).join(` -`))}return G(k({},e),{value:t,block:!0})}function fx(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function EN(e){let t=e.selections;return G(k({},e),{selections:t.sort((n,r)=>{var s,o,u,l;return Jn.NAME in n?Jn.NAME in r?n.name.value.localeCompare(r.name.value):-1:Jn.NAME in r?1:((o=(s=n.typeCondition)==null?void 0:s.name.value)!=null?o:"").localeCompare((l=(u=r.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case vt.Kind.FIELD:return G(k({},n),{arguments:fx(n),selectionSet:n.selectionSet?EN(n.selectionSet):n.selectionSet});case vt.Kind.FRAGMENT_SPREAD:return n;case vt.Kind.INLINE_FRAGMENT:return G(k({},n),{selectionSet:EN(n.selectionSet)})}})})}function m4(e){return G(k({},e),{definitions:e.definitions.map(t=>t.kind!==vt.Kind.OPERATION_DEFINITION?t:G(k({},t),{selectionSet:EN(t.selectionSet)}))})}function mx(e,t=!0){return(0,vt.parse)(e,{noLocation:t})}function h4(e,t=!0){try{return{documentNode:mx(e,t)}}catch(n){return{error:n}}}});var Oi=j(lO=>{"use strict";m();T();h();Object.defineProperty(lO,"__esModule",{value:!0});lO.devAssert=T4;function T4(e,t){if(!!!e)throw new Error(t)}});var qo=j(dO=>{"use strict";m();T();h();Object.defineProperty(dO,"__esModule",{value:!0});dO.isObjectLike=y4;function y4(e){return typeof e=="object"&&e!==null}});var ci=j(pO=>{"use strict";m();T();h();Object.defineProperty(pO,"__esModule",{value:!0});pO.invariant=N4;function N4(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var IN=j(fO=>{"use strict";m();T();h();Object.defineProperty(fO,"__esModule",{value:!0});fO.getLocation=I4;var E4=ci(),g4=/\r\n|[\n\r]/g;function I4(e,t){let n=0,r=1;for(let i of e.body.matchAll(g4)){if(typeof i.index=="number"||(0,E4.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var mO=j(vN=>{"use strict";m();T();h();Object.defineProperty(vN,"__esModule",{value:!0});vN.printLocation=_4;vN.printSourceLocation=Tx;var v4=IN();function _4(e){return Tx(e.source,(0,v4.getLocation)(e.source,e.start))}function Tx(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} -`,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,O=[];for(let x=0;x["|",x]),["|","^".padStart(I)],["|",O[N+1]]])}return d+hx([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function hx(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}});var ut=j(tp=>{"use strict";m();T();h();Object.defineProperty(tp,"__esModule",{value:!0});tp.GraphQLError=void 0;tp.formatError=D4;tp.printError=S4;var b4=qo(),yx=IN(),Nx=mO();function O4(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var hO=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=O4(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=Ex(Array.isArray(o)?o:o?[o]:void 0);let N=Ex((r=this.nodes)===null||r===void 0?void 0:r.map(O=>O.loc).filter(O=>O!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(O=>O.start),this.locations=l&&u?l.map(O=>(0,yx.getLocation)(u,O)):N==null?void 0:N.map(O=>(0,yx.getLocation)(O.source,O.start));let I=(0,b4.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +`))}return Q(k({},e),{value:t,block:!0})}function SC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function ON(e){let t=e.selections;return Q(k({},e),{selections:t.sort((n,r)=>{var s,o,u,l;return Jn.NAME in n?Jn.NAME in r?n.name.value.localeCompare(r.name.value):-1:Jn.NAME in r?1:((o=(s=n.typeCondition)==null?void 0:s.name.value)!=null?o:"").localeCompare((l=(u=r.typeCondition)==null?void 0:u.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case vt.Kind.FIELD:return Q(k({},n),{arguments:SC(n),selectionSet:n.selectionSet?ON(n.selectionSet):n.selectionSet});case vt.Kind.FRAGMENT_SPREAD:return n;case vt.Kind.INLINE_FRAGMENT:return Q(k({},n),{selectionSet:ON(n.selectionSet)})}})})}function A4(e){return Q(k({},e),{definitions:e.definitions.map(t=>t.kind!==vt.Kind.OPERATION_DEFINITION?t:Q(k({},t),{selectionSet:ON(t.selectionSet)}))})}function DC(e,t=!0){return(0,vt.parse)(e,{noLocation:t})}function R4(e,t=!0){try{return{documentNode:DC(e,t)}}catch(n){return{error:n}}}});var Oi=j(NO=>{"use strict";m();T();h();Object.defineProperty(NO,"__esModule",{value:!0});NO.devAssert=F4;function F4(e,t){if(!!!e)throw new Error(t)}});var qo=j(EO=>{"use strict";m();T();h();Object.defineProperty(EO,"__esModule",{value:!0});EO.isObjectLike=w4;function w4(e){return typeof e=="object"&&e!==null}});var ci=j(gO=>{"use strict";m();T();h();Object.defineProperty(gO,"__esModule",{value:!0});gO.invariant=L4;function L4(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var DN=j(IO=>{"use strict";m();T();h();Object.defineProperty(IO,"__esModule",{value:!0});IO.getLocation=x4;var P4=ci(),k4=/\r\n|[\n\r]/g;function x4(e,t){let n=0,r=1;for(let i of e.body.matchAll(k4)){if(typeof i.index=="number"||(0,P4.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var vO=j(AN=>{"use strict";m();T();h();Object.defineProperty(AN,"__esModule",{value:!0});AN.printLocation=U4;AN.printSourceLocation=RC;var C4=DN();function U4(e){return RC(e.source,(0,C4.getLocation)(e.source,e.start))}function RC(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,u=t.line===1?n:0,l=t.column+u,d=`${e.name}:${o}:${l} +`,p=r.split(/\r\n|[\n\r]/g),y=p[i];if(y.length>120){let N=Math.floor(l/80),I=l%80,S=[];for(let C=0;C["|",C]),["|","^".padStart(I)],["|",S[N+1]]])}return d+AC([[`${o-1} |`,p[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function AC(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` +`)}});var ct=j(ap=>{"use strict";m();T();h();Object.defineProperty(ap,"__esModule",{value:!0});ap.GraphQLError=void 0;ap.formatError=j4;ap.printError=V4;var M4=qo(),FC=DN(),wC=vO();function B4(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var _O=class e extends Error{constructor(t,...n){var r,i,s;let{nodes:o,source:u,positions:l,path:d,originalError:p,extensions:y}=B4(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=LC(Array.isArray(o)?o:o?[o]:void 0);let N=LC((r=this.nodes)===null||r===void 0?void 0:r.map(S=>S.loc).filter(S=>S!=null));this.source=u!=null?u:N==null||(i=N[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:N==null?void 0:N.map(S=>S.start),this.locations=l&&u?l.map(S=>(0,FC.getLocation)(u,S)):N==null?void 0:N.map(S=>(0,FC.getLocation)(S.source,S.start));let I=(0,M4.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=y!=null?y:I)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` -`+(0,Nx.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+(0,wC.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,Nx.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};tp.GraphQLError=hO;function Ex(e){return e===void 0||e.length===0?void 0:e}function S4(e){return e.toString()}function D4(e){return e.toJSON()}});var En=j(TO=>{"use strict";m();T();h();Object.defineProperty(TO,"__esModule",{value:!0});TO.inspect=R4;var A4=10,gx=2;function R4(e){return _N(e,[])}function _N(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return F4(e,t);default:return String(e)}}function F4(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(w4(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:_N(r,n)}else if(Array.isArray(e))return P4(e,n);return L4(e,n)}function w4(e){return typeof e.toJSON=="function"}function L4(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>gx?"["+k4(e)+"]":"{ "+n.map(([i,s])=>i+": "+_N(s,t)).join(", ")+" }"}function P4(e,t){if(e.length===0)return"[]";if(t.length>gx)return"[Array]";let n=Math.min(A4,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function k4(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Ko=j(Ls=>{"use strict";m();T();h();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.Token=Ls.QueryDocumentKeys=Ls.OperationTypeNode=Ls.Location=void 0;Ls.isNode=x4;var yO=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ls.Location=yO;var NO=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Ls.Token=NO;var Ix={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Ls.QueryDocumentKeys=Ix;var C4=new Set(Object.keys(Ix));function x4(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&C4.has(t)}var EO;Ls.OperationTypeNode=EO;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(EO||(Ls.OperationTypeNode=EO={}))});var en=j(zm=>{"use strict";m();T();h();Object.defineProperty(zm,"__esModule",{value:!0});zm.Kind=void 0;var gO;zm.Kind=gO;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(gO||(zm.Kind=gO={}))});var hl=j(hc=>{"use strict";m();T();h();Object.defineProperty(hc,"__esModule",{value:!0});hc.BREAK=void 0;hc.getEnterLeaveForKind=bN;hc.getVisitFn=j4;hc.visit=B4;hc.visitInParallel=V4;var U4=Oi(),M4=En(),IO=Ko(),vx=en(),np=Object.freeze({});hc.BREAK=np;function B4(e,t,n=IO.QueryDocumentKeys){let r=new Map;for(let K of Object.values(vx.Kind))r.set(K,bN(t,K));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let K=u===o.length,re=K&&l.length!==0;if(K){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[he,xe]of l){let ht=he-fe;xe===null?(d.splice(ht,1),fe++):d[ht]=xe}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,he]of l)d[fe]=he}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var O,x;(0,IO.isNode)(d)||(0,U4.devAssert)(!1,`Invalid AST Node: ${(0,M4.inspect)(d)}.`);let fe=K?(O=r.get(d.kind))===null||O===void 0?void 0:O.leave:(x=r.get(d.kind))===null||x===void 0?void 0:x.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===np)break;if(se===!1){if(!K){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!K))if((0,IO.isNode)(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),K)N.pop();else{var V;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(V=n[d.kind])!==null&&V!==void 0?V:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function V4(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(vx.Kind)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Object.defineProperty(vO,"__esModule",{value:!0});vO.didYouMean=q4;var $4=5;function q4(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,$4),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var _x=j(_O=>{"use strict";m();T();h();Object.defineProperty(_O,"__esModule",{value:!0});_O.identityFunc=K4;function K4(e){return e}});var Hm=j(ON=>{"use strict";m();T();h();Object.defineProperty(ON,"__esModule",{value:!0});ON.instanceOf=void 0;var G4=En(),Q4=globalThis.process&&b.env.NODE_ENV==="production",Y4=Q4?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=(0,G4.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`+(0,wC.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};ap.GraphQLError=_O;function LC(e){return e===void 0||e.length===0?void 0:e}function V4(e){return e.toString()}function j4(e){return e.toJSON()}});var En=j(bO=>{"use strict";m();T();h();Object.defineProperty(bO,"__esModule",{value:!0});bO.inspect=q4;var $4=10,PC=2;function q4(e){return RN(e,[])}function RN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return K4(e,t);default:return String(e)}}function K4(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(G4(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:RN(r,n)}else if(Array.isArray(e))return Y4(e,n);return Q4(e,n)}function G4(e){return typeof e.toJSON=="function"}function Q4(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>PC?"["+J4(e)+"]":"{ "+n.map(([i,s])=>i+": "+RN(s,t)).join(", ")+" }"}function Y4(e,t){if(e.length===0)return"[]";if(t.length>PC)return"[Array]";let n=Math.min($4,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function J4(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Ko=j(Ls=>{"use strict";m();T();h();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.Token=Ls.QueryDocumentKeys=Ls.OperationTypeNode=Ls.Location=void 0;Ls.isNode=H4;var OO=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ls.Location=OO;var SO=class{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Ls.Token=SO;var kC={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Ls.QueryDocumentKeys=kC;var z4=new Set(Object.keys(kC));function H4(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&z4.has(t)}var DO;Ls.OperationTypeNode=DO;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(DO||(Ls.OperationTypeNode=DO={}))});var en=j(th=>{"use strict";m();T();h();Object.defineProperty(th,"__esModule",{value:!0});th.Kind=void 0;var AO;th.Kind=AO;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(AO||(th.Kind=AO={}))});var Il=j(Ic=>{"use strict";m();T();h();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.BREAK=void 0;Ic.getEnterLeaveForKind=FN;Ic.getVisitFn=tW;Ic.visit=Z4;Ic.visitInParallel=eW;var W4=Oi(),X4=En(),RO=Ko(),xC=en(),up=Object.freeze({});Ic.BREAK=up;function Z4(e,t,n=RO.QueryDocumentKeys){let r=new Map;for(let G of Object.values(xC.Kind))r.set(G,FN(t,G));let i,s=Array.isArray(e),o=[e],u=-1,l=[],d=e,p,y,N=[],I=[];do{u++;let G=u===o.length,re=G&&l.length!==0;if(G){if(p=I.length===0?void 0:N[N.length-1],d=y,y=I.pop(),re)if(s){d=d.slice();let fe=0;for(let[he,Ce]of l){let ht=he-fe;Ce===null?(d.splice(ht,1),fe++):d[ht]=Ce}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[fe,he]of l)d[fe]=he}u=i.index,o=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(y){if(p=s?u:o[u],d=y[p],d==null)continue;N.push(p)}let se;if(!Array.isArray(d)){var S,C;(0,RO.isNode)(d)||(0,W4.devAssert)(!1,`Invalid AST Node: ${(0,X4.inspect)(d)}.`);let fe=G?(S=r.get(d.kind))===null||S===void 0?void 0:S.leave:(C=r.get(d.kind))===null||C===void 0?void 0:C.enter;if(se=fe==null?void 0:fe.call(t,d,p,y,N,I),se===up)break;if(se===!1){if(!G){N.pop();continue}}else if(se!==void 0&&(l.push([p,se]),!G))if((0,RO.isNode)(se))d=se;else{N.pop();continue}}if(se===void 0&&re&&l.push([p,d]),G)N.pop();else{var V;i={inArray:s,index:u,keys:o,edits:l,prev:i},s=Array.isArray(d),o=s?d:(V=n[d.kind])!==null&&V!==void 0?V:[],u=-1,l=[],y&&I.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function eW(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(xC.Kind)){let i=!1,s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();h();Object.defineProperty(FO,"__esModule",{value:!0});FO.didYouMean=rW;var nW=5;function rW(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let s=r.map(l=>`"${l}"`);switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}let o=s.slice(0,nW),u=o.pop();return i+o.join(", ")+", or "+u+"?"}});var CC=j(wO=>{"use strict";m();T();h();Object.defineProperty(wO,"__esModule",{value:!0});wO.identityFunc=iW;function iW(e){return e}});var nh=j(wN=>{"use strict";m();T();h();Object.defineProperty(wN,"__esModule",{value:!0});wN.instanceOf=void 0;var sW=En(),oW=globalThis.process&&O.env.NODE_ENV==="production",aW=oW?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){let o=(0,sW.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 @@ -207,19 +207,19 @@ 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};ON.instanceOf=Y4});var yc=j(bO=>{"use strict";m();T();h();Object.defineProperty(bO,"__esModule",{value:!0});bO.keyMap=J4;function J4(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var Wm=j(OO=>{"use strict";m();T();h();Object.defineProperty(OO,"__esModule",{value:!0});OO.keyValMap=z4;function z4(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var DO=j(SO=>{"use strict";m();T();h();Object.defineProperty(SO,"__esModule",{value:!0});SO.mapValue=H4;function H4(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Xm=j(RO=>{"use strict";m();T();h();Object.defineProperty(RO,"__esModule",{value:!0});RO.naturalCompare=W4;function W4(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-AO,s=t.charCodeAt(r);while(SN(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}var AO=48,X4=57;function SN(e){return!isNaN(e)&&AO<=e&&e<=X4}});var Nc=j(wO=>{"use strict";m();T();h();Object.defineProperty(wO,"__esModule",{value:!0});wO.suggestionList=eW;var Z4=Xm();function eW(e,t){let n=Object.create(null),r=new FO(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:(0,Z4.naturalCompare)(s,o)})}var FO=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=bx(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=bx(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let O=1;O<=u;O++){let x=i[p-1]===s[O-1]?0:1,V=Math.min(y[O]+1,N[O-1]+1,y[O-1]+x);if(p>1&&O>1&&i[p-1]===s[O-2]&&i[p-2]===s[O-1]){let K=l[(p-2)%3][O-2];V=Math.min(V,K+1)}Vn)return}let d=l[o%3][u];return d<=n?d:void 0}};function bx(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Object.defineProperty(LO,"__esModule",{value:!0});LO.toObjMap=tW;function tW(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var AN=j(Tl=>{"use strict";m();T();h();Object.defineProperty(Tl,"__esModule",{value:!0});Tl.isDigit=Ox;Tl.isLetter=PO;Tl.isNameContinue=iW;Tl.isNameStart=rW;Tl.isWhiteSpace=nW;function nW(e){return e===9||e===32}function Ox(e){return e>=48&&e<=57}function PO(e){return e>=97&&e<=122||e>=65&&e<=90}function rW(e){return PO(e)||e===95}function iW(e){return PO(e)||Ox(e)||e===95}});var eh=j(Zm=>{"use strict";m();T();h();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.dedentBlockStringLines=sW;Zm.isPrintableAsBlockString=aW;Zm.printBlockString=uW;var kO=AN();function sW(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function oW(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||(0,kO.isWhiteSpace)(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&(0,kO.isWhiteSpace)(e.charCodeAt(0));return(p&&!N||s)&&(y+=` +spurious results.`)}}return!1};wN.instanceOf=aW});var _c=j(LO=>{"use strict";m();T();h();Object.defineProperty(LO,"__esModule",{value:!0});LO.keyMap=uW;function uW(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var rh=j(PO=>{"use strict";m();T();h();Object.defineProperty(PO,"__esModule",{value:!0});PO.keyValMap=cW;function cW(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var xO=j(kO=>{"use strict";m();T();h();Object.defineProperty(kO,"__esModule",{value:!0});kO.mapValue=lW;function lW(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var ih=j(UO=>{"use strict";m();T();h();Object.defineProperty(UO,"__esModule",{value:!0});UO.naturalCompare=dW;function dW(e,t){let n=0,r=0;for(;n0);let u=0;do++r,u=u*10+s-CO,s=t.charCodeAt(r);while(LN(s)&&u>0);if(ou)return 1}else{if(is)return 1;++n,++r}}return e.length-t.length}var CO=48,pW=57;function LN(e){return!isNaN(e)&&CO<=e&&e<=pW}});var bc=j(BO=>{"use strict";m();T();h();Object.defineProperty(BO,"__esModule",{value:!0});BO.suggestionList=mW;var fW=ih();function mW(e,t){let n=Object.create(null),r=new MO(e),i=Math.floor(e.length*.4)+1;for(let s of t){let o=r.measure(s,i);o!==void 0&&(n[s]=o)}return Object.keys(n).sort((s,o)=>{let u=n[s]-n[o];return u!==0?u:(0,fW.naturalCompare)(s,o)})}var MO=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=UC(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=UC(r),s=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=u;p++)l[0][p]=p;for(let p=1;p<=o;p++){let y=l[(p-1)%3],N=l[p%3],I=N[0]=p;for(let S=1;S<=u;S++){let C=i[p-1]===s[S-1]?0:1,V=Math.min(y[S]+1,N[S-1]+1,y[S-1]+C);if(p>1&&S>1&&i[p-1]===s[S-2]&&i[p-2]===s[S-1]){let G=l[(p-2)%3][S-2];V=Math.min(V,G+1)}Vn)return}let d=l[o%3][u];return d<=n?d:void 0}};function UC(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();h();Object.defineProperty(VO,"__esModule",{value:!0});VO.toObjMap=hW;function hW(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var kN=j(vl=>{"use strict";m();T();h();Object.defineProperty(vl,"__esModule",{value:!0});vl.isDigit=MC;vl.isLetter=jO;vl.isNameContinue=NW;vl.isNameStart=yW;vl.isWhiteSpace=TW;function TW(e){return e===9||e===32}function MC(e){return e>=48&&e<=57}function jO(e){return e>=97&&e<=122||e>=65&&e<=90}function yW(e){return jO(e)||e===95}function NW(e){return jO(e)||MC(e)||e===95}});var oh=j(sh=>{"use strict";m();T();h();Object.defineProperty(sh,"__esModule",{value:!0});sh.dedentBlockStringLines=EW;sh.isPrintableAsBlockString=IW;sh.printBlockString=vW;var $O=kN();function EW(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;ou===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function gW(e){let t=0;for(;t1&&r.slice(1).every(I=>I.length===0||(0,$O.isWhiteSpace)(I.charCodeAt(0))),o=n.endsWith('\\"""'),u=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=u||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||s||o),y="",N=i&&(0,$O.isWhiteSpace)(e.charCodeAt(0));return(p&&!N||s)&&(y+=` `),y+=n,(p||d)&&(y+=` -`),'"""'+y+'"""'}});var Sx=j(CO=>{"use strict";m();T();h();Object.defineProperty(CO,"__esModule",{value:!0});CO.printString=cW;function cW(e){return`"${e.replace(lW,dW)}"`}var lW=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function dW(e){return pW[e.charCodeAt(0)]}var pW=["\\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 ds=j(xO=>{"use strict";m();T();h();Object.defineProperty(xO,"__esModule",{value:!0});xO.print=TW;var fW=eh(),mW=Sx(),hW=hl();function TW(e){return(0,hW.visit)(e,NW)}var yW=80,NW={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ye(e.definitions,` +`),'"""'+y+'"""'}});var BC=j(qO=>{"use strict";m();T();h();Object.defineProperty(qO,"__esModule",{value:!0});qO.printString=_W;function _W(e){return`"${e.replace(bW,OW)}"`}var bW=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function OW(e){return SW[e.charCodeAt(0)]}var SW=["\\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 ds=j(KO=>{"use strict";m();T();h();Object.defineProperty(KO,"__esModule",{value:!0});KO.print=FW;var DW=oh(),AW=BC(),RW=Il();function FW(e){return(0,RW.visit)(e,LW)}var wW=80,LW={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ye(e.definitions,` -`)},OperationDefinition:{leave(e){let t=Jt("(",Ye(e.variableDefinitions,", "),")"),n=Ye([e.operation,Ye([e.name,t]),Ye(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Jt(" = ",n)+Jt(" ",Ye(r," "))},SelectionSet:{leave:({selections:e})=>lo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Jt("",e,": ")+t,o=s+Jt("(",Ye(n,", "),")");return o.length>yW&&(o=s+Jt(`( -`,RN(Ye(n,` +`)},OperationDefinition:{leave(e){let t=Jt("(",Ye(e.variableDefinitions,", "),")"),n=Ye([e.operation,Ye([e.name,t]),Ye(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Jt(" = ",n)+Jt(" ",Ye(r," "))},SelectionSet:{leave:({selections:e})=>lo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=Jt("",e,": ")+t,o=s+Jt("(",Ye(n,", "),")");return o.length>wW&&(o=s+Jt(`( +`,xN(Ye(n,` `)),` -)`)),Ye([o,Ye(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Jt(" ",Ye(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ye(["...",Jt("on ",e),Ye(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Jt("(",Ye(n,", "),")")} on ${t} ${Jt("",Ye(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,fW.printBlockString)(e):(0,mW.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ye(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ye(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Jt("(",Ye(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Jt("",e,` +)`)),Ye([o,Ye(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Jt(" ",Ye(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ye(["...",Jt("on ",e),Ye(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Jt("(",Ye(n,", "),")")} on ${t} ${Jt("",Ye(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,DW.printBlockString)(e):(0,AW.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ye(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ye(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Jt("(",Ye(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Jt("",e,` `)+Ye(["schema",Ye(t," "),lo(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Jt("",e,` `)+Ye(["scalar",t,Ye(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Jt("",e,` `)+Ye(["type",t,Jt("implements ",Ye(n," & ")),Ye(r," "),lo(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Jt("",e,` -`)+t+(Dx(n)?Jt(`( -`,RN(Ye(n,` +`)+t+(VC(n)?Jt(`( +`,xN(Ye(n,` `)),` )`):Jt("(",Ye(n,", "),")"))+": "+r+Jt(" ",Ye(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Jt("",e,` `)+Ye([t+": "+n,Jt("= ",r),Ye(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Jt("",e,` @@ -228,51 +228,51 @@ spurious results.`)}}return!1};ON.instanceOf=Y4});var yc=j(bO=>{"use strict";m() `)+Ye(["enum",t,Ye(n," "),lo(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Jt("",e,` `)+Ye([t,Ye(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Jt("",e,` `)+Ye(["input",t,Ye(n," "),lo(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Jt("",e,` -`)+"directive @"+t+(Dx(n)?Jt(`( -`,RN(Ye(n,` +`)+"directive @"+t+(VC(n)?Jt(`( +`,xN(Ye(n,` `)),` )`):Jt("(",Ye(n,", "),")"))+(r?" repeatable":"")+" on "+Ye(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ye(["extend schema",Ye(e," "),lo(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ye(["extend scalar",e,Ye(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ye(["extend type",e,Jt("implements ",Ye(t," & ")),Ye(n," "),lo(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ye(["extend interface",e,Jt("implements ",Ye(t," & ")),Ye(n," "),lo(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ye(["extend union",e,Ye(t," "),Jt("= ",Ye(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ye(["extend enum",e,Ye(t," "),lo(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ye(["extend input",e,Ye(t," "),lo(n)]," ")}};function Ye(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function lo(e){return Jt(`{ -`,RN(Ye(e,` +`,xN(Ye(e,` `)),` -}`)}function Jt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function RN(e){return Jt(" ",e.replace(/\n/g,` - `))}function Dx(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var BO=j(MO=>{"use strict";m();T();h();Object.defineProperty(MO,"__esModule",{value:!0});MO.valueFromASTUntyped=UO;var EW=Wm(),Va=en();function UO(e,t){switch(e.kind){case Va.Kind.NULL:return null;case Va.Kind.INT:return parseInt(e.value,10);case Va.Kind.FLOAT:return parseFloat(e.value);case Va.Kind.STRING:case Va.Kind.ENUM:case Va.Kind.BOOLEAN:return e.value;case Va.Kind.LIST:return e.values.map(n=>UO(n,t));case Va.Kind.OBJECT:return(0,EW.keyValMap)(e.fields,n=>n.name.value,n=>UO(n.value,t));case Va.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var th=j(wN=>{"use strict";m();T();h();Object.defineProperty(wN,"__esModule",{value:!0});wN.assertEnumValueName=gW;wN.assertName=Fx;var Ax=Oi(),FN=ut(),Rx=AN();function Fx(e){if(e!=null||(0,Ax.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,Ax.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new FN.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Object.defineProperty(We,"__esModule",{value:!0});We.GraphQLUnionType=We.GraphQLScalarType=We.GraphQLObjectType=We.GraphQLNonNull=We.GraphQLList=We.GraphQLInterfaceType=We.GraphQLInputObjectType=We.GraphQLEnumType=void 0;We.argsToArgsConfig=qx;We.assertAbstractType=VW;We.assertCompositeType=BW;We.assertEnumType=LW;We.assertInputObjectType=PW;We.assertInputType=xW;We.assertInterfaceType=FW;We.assertLeafType=MW;We.assertListType=kW;We.assertNamedType=KW;We.assertNonNullType=CW;We.assertNullableType=$W;We.assertObjectType=RW;We.assertOutputType=UW;We.assertScalarType=AW;We.assertType=DW;We.assertUnionType=wW;We.assertWrappingType=jW;We.defineArguments=jx;We.getNamedType=GW;We.getNullableType=qW;We.isAbstractType=Ux;We.isCompositeType=xx;We.isEnumType=gl;We.isInputObjectType=rh;We.isInputType=VO;We.isInterfaceType=Nl;We.isLeafType=Cx;We.isListType=qN;We.isNamedType=Mx;We.isNonNullType=gc;We.isNullableType=$O;We.isObjectType=ip;We.isOutputType=jO;We.isRequiredArgument=QW;We.isRequiredInputField=zW;We.isScalarType=yl;We.isType=$N;We.isUnionType=El;We.isWrappingType=ih;We.resolveObjMapThunk=KO;We.resolveReadonlyArrayThunk=qO;var jr=Oi(),IW=Tc(),wx=_x(),Pn=En(),Ec=Hm(),vW=qo(),_W=yc(),kx=Wm(),jN=DO(),bW=Nc(),Go=DN(),nh=ut(),OW=en(),Lx=ds(),SW=BO(),Qo=th();function $N(e){return yl(e)||ip(e)||Nl(e)||El(e)||gl(e)||rh(e)||qN(e)||gc(e)}function DW(e){if(!$N(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL type.`);return e}function yl(e){return(0,Ec.instanceOf)(e,CN)}function AW(e){if(!yl(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function ip(e){return(0,Ec.instanceOf)(e,xN)}function RW(e){if(!ip(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Object type.`);return e}function Nl(e){return(0,Ec.instanceOf)(e,UN)}function FW(e){if(!Nl(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Interface type.`);return e}function El(e){return(0,Ec.instanceOf)(e,MN)}function wW(e){if(!El(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Union type.`);return e}function gl(e){return(0,Ec.instanceOf)(e,BN)}function LW(e){if(!gl(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Enum type.`);return e}function rh(e){return(0,Ec.instanceOf)(e,VN)}function PW(e){if(!rh(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function qN(e){return(0,Ec.instanceOf)(e,PN)}function kW(e){if(!qN(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL List type.`);return e}function gc(e){return(0,Ec.instanceOf)(e,kN)}function CW(e){if(!gc(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function VO(e){return yl(e)||gl(e)||rh(e)||ih(e)&&VO(e.ofType)}function xW(e){if(!VO(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL input type.`);return e}function jO(e){return yl(e)||ip(e)||Nl(e)||El(e)||gl(e)||ih(e)&&jO(e.ofType)}function UW(e){if(!jO(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL output type.`);return e}function Cx(e){return yl(e)||gl(e)}function MW(e){if(!Cx(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL leaf type.`);return e}function xx(e){return ip(e)||Nl(e)||El(e)}function BW(e){if(!xx(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL composite type.`);return e}function Ux(e){return Nl(e)||El(e)}function VW(e){if(!Ux(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL abstract type.`);return e}var PN=class{constructor(t){$N(t)||(0,jr.devAssert)(!1,`Expected ${(0,Pn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};We.GraphQLList=PN;var kN=class{constructor(t){$O(t)||(0,jr.devAssert)(!1,`Expected ${(0,Pn.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()}};We.GraphQLNonNull=kN;function ih(e){return qN(e)||gc(e)}function jW(e){if(!ih(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function $O(e){return $N(e)&&!gc(e)}function $W(e){if(!$O(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL nullable type.`);return e}function qW(e){if(e)return gc(e)?e.ofType:e}function Mx(e){return yl(e)||ip(e)||Nl(e)||El(e)||gl(e)||rh(e)}function KW(e){if(!Mx(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL named type.`);return e}function GW(e){if(e){let t=e;for(;ih(t);)t=t.ofType;return t}}function qO(e){return typeof e=="function"?e():e}function KO(e){return typeof e=="function"?e():e}var CN=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:wx.identityFunc;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:wx.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,SW.valueFromASTUntyped)(u,l)),this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,jr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Pn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,jr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLScalarType=CN;var xN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Vx(t),this._interfaces=()=>Bx(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Pn.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:$x(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLObjectType=xN;function Bx(e){var t;let n=qO((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,jr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Vx(e){let t=KO(e.fields);return rp(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,jN.mapValue)(t,(n,r)=>{var i;rp(n)||(0,jr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,jr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Pn.inspect)(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return rp(s)||(0,jr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Qo.assertName)(r),description:n.description,type:n.type,args:jx(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}})}function jx(e){return Object.entries(e).map(([t,n])=>({name:(0,Qo.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}))}function rp(e){return(0,vW.isObjectLike)(e)&&!Array.isArray(e)}function $x(e){return(0,jN.mapValue)(e,t=>({description:t.description,type:t.type,args:qx(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function qx(e){return(0,kx.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 QW(e){return gc(e.type)&&e.defaultValue===void 0}var UN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Vx.bind(void 0,t),this._interfaces=Bx.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Pn.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:$x(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInterfaceType=UN;var MN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=YW.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Pn.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()}};We.GraphQLUnionType=MN;function YW(e){let t=qO(e.types);return Array.isArray(t)||(0,jr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var BN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Px(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Px(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,_W.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new nh.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Pn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Pn.inspect)(t);throw new nh.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+LN(this,r))}let n=this.getValue(t);if(n==null)throw new nh.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+LN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==OW.Kind.ENUM){let i=(0,Lx.print)(t);throw new nh.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+LN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,Lx.print)(t);throw new nh.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+LN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,kx.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLEnumType=BN;function LN(e,t){let n=e.getValues().map(i=>i.name),r=(0,bW.suggestionList)(t,n);return(0,IW.didYouMean)("the enum value",r)}function Px(e,t){return rp(t)||(0,jr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(rp(r)||(0,jr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Pn.inspect)(r)}.`),{name:(0,Qo.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Go.toObjMap)(r.extensions),astNode:r.astNode}))}var VN=class{constructor(t){var n,r;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=JW.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,jN.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInputObjectType=VN;function JW(e){let t=KO(e.fields);return rp(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,jN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,jr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Qo.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}))}function zW(e){return gc(e.type)&&e.defaultValue===void 0}});var oh=j(sh=>{"use strict";m();T();h();Object.defineProperty(sh,"__esModule",{value:!0});sh.doTypesOverlap=HW;sh.isEqualType=GO;sh.isTypeSubTypeOf=KN;var li=tn();function GO(e,t){return e===t?!0:(0,li.isNonNullType)(e)&&(0,li.isNonNullType)(t)||(0,li.isListType)(e)&&(0,li.isListType)(t)?GO(e.ofType,t.ofType):!1}function KN(e,t,n){return t===n?!0:(0,li.isNonNullType)(n)?(0,li.isNonNullType)(t)?KN(e,t.ofType,n.ofType):!1:(0,li.isNonNullType)(t)?KN(e,t.ofType,n):(0,li.isListType)(n)?(0,li.isListType)(t)?KN(e,t.ofType,n.ofType):!1:(0,li.isListType)(t)?!1:(0,li.isAbstractType)(n)&&((0,li.isInterfaceType)(t)||(0,li.isObjectType)(t))&&e.isSubType(n,t)}function HW(e,t,n){return t===n?!0:(0,li.isAbstractType)(t)?(0,li.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,li.isAbstractType)(n)?e.isSubType(n,t):!1}});var sp=j(ah=>{"use strict";m();T();h();Object.defineProperty(ah,"__esModule",{value:!0});ah.DirectiveLocation=void 0;var QO;ah.DirectiveLocation=QO;(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"})(QO||(ah.DirectiveLocation=QO={}))});var Yo=j(Fr=>{"use strict";m();T();h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.GraphQLString=Fr.GraphQLInt=Fr.GraphQLID=Fr.GraphQLFloat=Fr.GraphQLBoolean=Fr.GRAPHQL_MIN_INT=Fr.GRAPHQL_MAX_INT=void 0;Fr.isSpecifiedScalarType=WW;Fr.specifiedScalarTypes=void 0;var po=En(),Kx=qo(),$r=ut(),Il=en(),uh=ds(),ch=tn(),GN=2147483647;Fr.GRAPHQL_MAX_INT=GN;var QN=-2147483648;Fr.GRAPHQL_MIN_INT=QN;var Gx=new ch.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=lh(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new $r.GraphQLError(`Int cannot represent non-integer value: ${(0,po.inspect)(t)}`);if(n>GN||nGN||eGN||te.name===t)}function lh(e){if((0,Kx.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,Kx.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var qi=j(Er=>{"use strict";m();T();h();Object.defineProperty(Er,"__esModule",{value:!0});Er.GraphQLSpecifiedByDirective=Er.GraphQLSkipDirective=Er.GraphQLOneOfDirective=Er.GraphQLIncludeDirective=Er.GraphQLDirective=Er.GraphQLDeprecatedDirective=Er.DEFAULT_DEPRECATION_REASON=void 0;Er.assertDirective=r8;Er.isDirective=Xx;Er.isSpecifiedDirective=i8;Er.specifiedDirectives=void 0;var Wx=Oi(),XW=En(),ZW=Hm(),e8=qo(),t8=DN(),Ps=sp(),n8=th(),dh=tn(),YN=Yo();function Xx(e){return(0,ZW.instanceOf)(e,ja)}function r8(e){if(!Xx(e))throw new Error(`Expected ${(0,XW.inspect)(e)} to be a GraphQL directive.`);return e}var ja=class{constructor(t){var n,r;this.name=(0,n8.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,t8.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,Wx.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,e8.isObjectLike)(i)&&!Array.isArray(i)||(0,Wx.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,dh.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,dh.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Er.GraphQLDirective=ja;var Zx=new ja({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ps.DirectiveLocation.FIELD,Ps.DirectiveLocation.FRAGMENT_SPREAD,Ps.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new dh.GraphQLNonNull(YN.GraphQLBoolean),description:"Included when true."}}});Er.GraphQLIncludeDirective=Zx;var eU=new ja({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ps.DirectiveLocation.FIELD,Ps.DirectiveLocation.FRAGMENT_SPREAD,Ps.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new dh.GraphQLNonNull(YN.GraphQLBoolean),description:"Skipped when true."}}});Er.GraphQLSkipDirective=eU;var tU="No longer supported";Er.DEFAULT_DEPRECATION_REASON=tU;var nU=new ja({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ps.DirectiveLocation.FIELD_DEFINITION,Ps.DirectiveLocation.ARGUMENT_DEFINITION,Ps.DirectiveLocation.INPUT_FIELD_DEFINITION,Ps.DirectiveLocation.ENUM_VALUE],args:{reason:{type:YN.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:tU}}});Er.GraphQLDeprecatedDirective=nU;var rU=new ja({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ps.DirectiveLocation.SCALAR],args:{url:{type:new dh.GraphQLNonNull(YN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Er.GraphQLSpecifiedByDirective=rU;var iU=new ja({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ps.DirectiveLocation.INPUT_OBJECT],args:{}});Er.GraphQLOneOfDirective=iU;var sU=Object.freeze([Zx,eU,nU,rU,iU]);Er.specifiedDirectives=sU;function i8(e){return sU.some(({name:t})=>t===e.name)}});var JN=j(YO=>{"use strict";m();T();h();Object.defineProperty(YO,"__esModule",{value:!0});YO.isIterableObject=s8;function s8(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var mh=j(JO=>{"use strict";m();T();h();Object.defineProperty(JO,"__esModule",{value:!0});JO.astFromValue=fh;var oU=En(),o8=ci(),a8=JN(),u8=qo(),ks=en(),ph=tn(),c8=Yo();function fh(e,t){if((0,ph.isNonNullType)(t)){let n=fh(e,t.ofType);return(n==null?void 0:n.kind)===ks.Kind.NULL?null:n}if(e===null)return{kind:ks.Kind.NULL};if(e===void 0)return null;if((0,ph.isListType)(t)){let n=t.ofType;if((0,a8.isIterableObject)(e)){let r=[];for(let i of e){let s=fh(i,n);s!=null&&r.push(s)}return{kind:ks.Kind.LIST,values:r}}return fh(e,n)}if((0,ph.isInputObjectType)(t)){if(!(0,u8.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=fh(e[r.name],r.type);i&&n.push({kind:ks.Kind.OBJECT_FIELD,name:{kind:ks.Kind.NAME,value:r.name},value:i})}return{kind:ks.Kind.OBJECT,fields:n}}if((0,ph.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:ks.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return aU.test(r)?{kind:ks.Kind.INT,value:r}:{kind:ks.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,ph.isEnumType)(t)?{kind:ks.Kind.ENUM,value:n}:t===c8.GraphQLID&&aU.test(n)?{kind:ks.Kind.INT,value:n}:{kind:ks.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,oU.inspect)(n)}.`)}(0,o8.invariant)(!1,"Unexpected input type: "+(0,oU.inspect)(t))}var aU=/^-?(?:0|[1-9][0-9]*)$/});var xs=j(gn=>{"use strict";m();T();h();Object.defineProperty(gn,"__esModule",{value:!0});gn.introspectionTypes=gn.__TypeKind=gn.__Type=gn.__Schema=gn.__InputValue=gn.__Field=gn.__EnumValue=gn.__DirectiveLocation=gn.__Directive=gn.TypeNameMetaFieldDef=gn.TypeMetaFieldDef=gn.TypeKind=gn.SchemaMetaFieldDef=void 0;gn.isIntrospectionType=y8;var l8=En(),d8=ci(),wr=sp(),p8=ds(),f8=mh(),$e=tn(),Rn=Yo(),zO=new $e.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:Rn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(Cs))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new $e.GraphQLNonNull(Cs),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Cs,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Cs,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(HO))),resolve:e=>e.getDirectives()}})});gn.__Schema=zO;var HO=new $e.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`)}function Jt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function xN(e){return Jt(" ",e.replace(/\n/g,` + `))}function VC(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!==null&&t!==void 0?t:!1}});var YO=j(QO=>{"use strict";m();T();h();Object.defineProperty(QO,"__esModule",{value:!0});QO.valueFromASTUntyped=GO;var PW=rh(),Va=en();function GO(e,t){switch(e.kind){case Va.Kind.NULL:return null;case Va.Kind.INT:return parseInt(e.value,10);case Va.Kind.FLOAT:return parseFloat(e.value);case Va.Kind.STRING:case Va.Kind.ENUM:case Va.Kind.BOOLEAN:return e.value;case Va.Kind.LIST:return e.values.map(n=>GO(n,t));case Va.Kind.OBJECT:return(0,PW.keyValMap)(e.fields,n=>n.name.value,n=>GO(n.value,t));case Va.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var ah=j(UN=>{"use strict";m();T();h();Object.defineProperty(UN,"__esModule",{value:!0});UN.assertEnumValueName=kW;UN.assertName=qC;var jC=Oi(),CN=ct(),$C=kN();function qC(e){if(e!=null||(0,jC.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,jC.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new CN.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();h();Object.defineProperty(We,"__esModule",{value:!0});We.GraphQLUnionType=We.GraphQLScalarType=We.GraphQLObjectType=We.GraphQLNonNull=We.GraphQLList=We.GraphQLInterfaceType=We.GraphQLInputObjectType=We.GraphQLEnumType=void 0;We.argsToArgsConfig=nU;We.assertAbstractType=e8;We.assertCompositeType=ZW;We.assertEnumType=QW;We.assertInputObjectType=YW;We.assertInputType=HW;We.assertInterfaceType=KW;We.assertLeafType=XW;We.assertListType=JW;We.assertNamedType=i8;We.assertNonNullType=zW;We.assertNullableType=n8;We.assertObjectType=qW;We.assertOutputType=WW;We.assertScalarType=$W;We.assertType=jW;We.assertUnionType=GW;We.assertWrappingType=t8;We.defineArguments=eU;We.getNamedType=s8;We.getNullableType=r8;We.isAbstractType=HC;We.isCompositeType=zC;We.isEnumType=Sl;We.isInputObjectType=ch;We.isInputType=JO;We.isInterfaceType=bl;We.isLeafType=JC;We.isListType=zN;We.isNamedType=WC;We.isNonNullType=Sc;We.isNullableType=HO;We.isObjectType=lp;We.isOutputType=zO;We.isRequiredArgument=o8;We.isRequiredInputField=c8;We.isScalarType=_l;We.isType=JN;We.isUnionType=Ol;We.isWrappingType=lh;We.resolveObjMapThunk=XO;We.resolveReadonlyArrayThunk=WO;var jr=Oi(),xW=vc(),KC=CC(),Pn=En(),Oc=nh(),CW=qo(),UW=_c(),YC=rh(),YN=xO(),MW=bc(),Go=PN(),uh=ct(),BW=en(),GC=ds(),VW=YO(),Qo=ah();function JN(e){return _l(e)||lp(e)||bl(e)||Ol(e)||Sl(e)||ch(e)||zN(e)||Sc(e)}function jW(e){if(!JN(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL type.`);return e}function _l(e){return(0,Oc.instanceOf)(e,jN)}function $W(e){if(!_l(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function lp(e){return(0,Oc.instanceOf)(e,$N)}function qW(e){if(!lp(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Object type.`);return e}function bl(e){return(0,Oc.instanceOf)(e,qN)}function KW(e){if(!bl(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Interface type.`);return e}function Ol(e){return(0,Oc.instanceOf)(e,KN)}function GW(e){if(!Ol(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Union type.`);return e}function Sl(e){return(0,Oc.instanceOf)(e,GN)}function QW(e){if(!Sl(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Enum type.`);return e}function ch(e){return(0,Oc.instanceOf)(e,QN)}function YW(e){if(!ch(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function zN(e){return(0,Oc.instanceOf)(e,BN)}function JW(e){if(!zN(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL List type.`);return e}function Sc(e){return(0,Oc.instanceOf)(e,VN)}function zW(e){if(!Sc(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function JO(e){return _l(e)||Sl(e)||ch(e)||lh(e)&&JO(e.ofType)}function HW(e){if(!JO(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL input type.`);return e}function zO(e){return _l(e)||lp(e)||bl(e)||Ol(e)||Sl(e)||lh(e)&&zO(e.ofType)}function WW(e){if(!zO(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL output type.`);return e}function JC(e){return _l(e)||Sl(e)}function XW(e){if(!JC(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL leaf type.`);return e}function zC(e){return lp(e)||bl(e)||Ol(e)}function ZW(e){if(!zC(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL composite type.`);return e}function HC(e){return bl(e)||Ol(e)}function e8(e){if(!HC(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL abstract type.`);return e}var BN=class{constructor(t){JN(t)||(0,jr.devAssert)(!1,`Expected ${(0,Pn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};We.GraphQLList=BN;var VN=class{constructor(t){HO(t)||(0,jr.devAssert)(!1,`Expected ${(0,Pn.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()}};We.GraphQLNonNull=VN;function lh(e){return zN(e)||Sc(e)}function t8(e){if(!lh(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function HO(e){return JN(e)&&!Sc(e)}function n8(e){if(!HO(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL nullable type.`);return e}function r8(e){if(e)return Sc(e)?e.ofType:e}function WC(e){return _l(e)||lp(e)||bl(e)||Ol(e)||Sl(e)||ch(e)}function i8(e){if(!WC(e))throw new Error(`Expected ${(0,Pn.inspect)(e)} to be a GraphQL named type.`);return e}function s8(e){if(e){let t=e;for(;lh(t);)t=t.ofType;return t}}function WO(e){return typeof e=="function"?e():e}function XO(e){return typeof e=="function"?e():e}var jN=class{constructor(t){var n,r,i,s;let o=(n=t.parseValue)!==null&&n!==void 0?n:KC.identityFunc;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:KC.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(u,l)=>o((0,VW.valueFromASTUntyped)(u,l)),this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,jr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Pn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,jr.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLScalarType=jN;var $N=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>ZC(t),this._interfaces=()=>XC(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Pn.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:tU(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLObjectType=$N;function XC(e){var t;let n=WO((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,jr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ZC(e){let t=XO(e.fields);return cp(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,YN.mapValue)(t,(n,r)=>{var i;cp(n)||(0,jr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,jr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Pn.inspect)(n.resolve)}.`);let s=(i=n.args)!==null&&i!==void 0?i:{};return cp(s)||(0,jr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Qo.assertName)(r),description:n.description,type:n.type,args:eU(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}})}function eU(e){return Object.entries(e).map(([t,n])=>({name:(0,Qo.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}))}function cp(e){return(0,CW.isObjectLike)(e)&&!Array.isArray(e)}function tU(e){return(0,YN.mapValue)(e,t=>({description:t.description,type:t.type,args:nU(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function nU(e){return(0,YC.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 o8(e){return Sc(e.type)&&e.defaultValue===void 0}var qN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=ZC.bind(void 0,t),this._interfaces=XC.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Pn.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:tU(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInterfaceType=qN;var KN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=a8.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,jr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Pn.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()}};We.GraphQLUnionType=KN;function a8(e){let t=WO(e.types);return Array.isArray(t)||(0,jr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var GN=class{constructor(t){var n;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:QC(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=QC(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,UW.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new uh.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Pn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Pn.inspect)(t);throw new uh.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+MN(this,r))}let n=this.getValue(t);if(n==null)throw new uh.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+MN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==BW.Kind.ENUM){let i=(0,GC.print)(t);throw new uh.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+MN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,GC.print)(t);throw new uh.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+MN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,YC.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLEnumType=GN;function MN(e,t){let n=e.getValues().map(i=>i.name),r=(0,MW.suggestionList)(t,n);return(0,xW.didYouMean)("the enum value",r)}function QC(e,t){return cp(t)||(0,jr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(cp(r)||(0,jr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Pn.inspect)(r)}.`),{name:(0,Qo.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Go.toObjMap)(r.extensions),astNode:r.astNode}))}var QN=class{constructor(t){var n,r;this.name=(0,Qo.assertName)(t.name),this.description=t.description,this.extensions=(0,Go.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=u8.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,YN.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};We.GraphQLInputObjectType=QN;function u8(e){let t=XO(e.fields);return cp(t)||(0,jr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,YN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,jr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Qo.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Go.toObjMap)(n.extensions),astNode:n.astNode}))}function c8(e){return Sc(e.type)&&e.defaultValue===void 0}});var ph=j(dh=>{"use strict";m();T();h();Object.defineProperty(dh,"__esModule",{value:!0});dh.doTypesOverlap=l8;dh.isEqualType=ZO;dh.isTypeSubTypeOf=HN;var li=tn();function ZO(e,t){return e===t?!0:(0,li.isNonNullType)(e)&&(0,li.isNonNullType)(t)||(0,li.isListType)(e)&&(0,li.isListType)(t)?ZO(e.ofType,t.ofType):!1}function HN(e,t,n){return t===n?!0:(0,li.isNonNullType)(n)?(0,li.isNonNullType)(t)?HN(e,t.ofType,n.ofType):!1:(0,li.isNonNullType)(t)?HN(e,t.ofType,n):(0,li.isListType)(n)?(0,li.isListType)(t)?HN(e,t.ofType,n.ofType):!1:(0,li.isListType)(t)?!1:(0,li.isAbstractType)(n)&&((0,li.isInterfaceType)(t)||(0,li.isObjectType)(t))&&e.isSubType(n,t)}function l8(e,t,n){return t===n?!0:(0,li.isAbstractType)(t)?(0,li.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,li.isAbstractType)(n)?e.isSubType(n,t):!1}});var dp=j(fh=>{"use strict";m();T();h();Object.defineProperty(fh,"__esModule",{value:!0});fh.DirectiveLocation=void 0;var eS;fh.DirectiveLocation=eS;(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"})(eS||(fh.DirectiveLocation=eS={}))});var Yo=j(Fr=>{"use strict";m();T();h();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.GraphQLString=Fr.GraphQLInt=Fr.GraphQLID=Fr.GraphQLFloat=Fr.GraphQLBoolean=Fr.GRAPHQL_MIN_INT=Fr.GRAPHQL_MAX_INT=void 0;Fr.isSpecifiedScalarType=d8;Fr.specifiedScalarTypes=void 0;var po=En(),rU=qo(),$r=ct(),Dl=en(),mh=ds(),hh=tn(),WN=2147483647;Fr.GRAPHQL_MAX_INT=WN;var XN=-2147483648;Fr.GRAPHQL_MIN_INT=XN;var iU=new hh.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=Th(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new $r.GraphQLError(`Int cannot represent non-integer value: ${(0,po.inspect)(t)}`);if(n>WN||nWN||eWN||te.name===t)}function Th(e){if((0,rU.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,rU.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var qi=j(Er=>{"use strict";m();T();h();Object.defineProperty(Er,"__esModule",{value:!0});Er.GraphQLSpecifiedByDirective=Er.GraphQLSkipDirective=Er.GraphQLOneOfDirective=Er.GraphQLIncludeDirective=Er.GraphQLDirective=Er.GraphQLDeprecatedDirective=Er.DEFAULT_DEPRECATION_REASON=void 0;Er.assertDirective=y8;Er.isDirective=dU;Er.isSpecifiedDirective=N8;Er.specifiedDirectives=void 0;var lU=Oi(),p8=En(),f8=nh(),m8=qo(),h8=PN(),Ps=dp(),T8=ah(),yh=tn(),ZN=Yo();function dU(e){return(0,f8.instanceOf)(e,ja)}function y8(e){if(!dU(e))throw new Error(`Expected ${(0,p8.inspect)(e)} to be a GraphQL directive.`);return e}var ja=class{constructor(t){var n,r;this.name=(0,T8.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,h8.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,lU.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,m8.isObjectLike)(i)&&!Array.isArray(i)||(0,lU.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,yh.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,yh.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Er.GraphQLDirective=ja;var pU=new ja({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ps.DirectiveLocation.FIELD,Ps.DirectiveLocation.FRAGMENT_SPREAD,Ps.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new yh.GraphQLNonNull(ZN.GraphQLBoolean),description:"Included when true."}}});Er.GraphQLIncludeDirective=pU;var fU=new ja({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ps.DirectiveLocation.FIELD,Ps.DirectiveLocation.FRAGMENT_SPREAD,Ps.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new yh.GraphQLNonNull(ZN.GraphQLBoolean),description:"Skipped when true."}}});Er.GraphQLSkipDirective=fU;var mU="No longer supported";Er.DEFAULT_DEPRECATION_REASON=mU;var hU=new ja({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ps.DirectiveLocation.FIELD_DEFINITION,Ps.DirectiveLocation.ARGUMENT_DEFINITION,Ps.DirectiveLocation.INPUT_FIELD_DEFINITION,Ps.DirectiveLocation.ENUM_VALUE],args:{reason:{type:ZN.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:mU}}});Er.GraphQLDeprecatedDirective=hU;var TU=new ja({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ps.DirectiveLocation.SCALAR],args:{url:{type:new yh.GraphQLNonNull(ZN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Er.GraphQLSpecifiedByDirective=TU;var yU=new ja({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ps.DirectiveLocation.INPUT_OBJECT],args:{}});Er.GraphQLOneOfDirective=yU;var NU=Object.freeze([pU,fU,hU,TU,yU]);Er.specifiedDirectives=NU;function N8(e){return NU.some(({name:t})=>t===e.name)}});var eE=j(tS=>{"use strict";m();T();h();Object.defineProperty(tS,"__esModule",{value:!0});tS.isIterableObject=E8;function E8(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var gh=j(nS=>{"use strict";m();T();h();Object.defineProperty(nS,"__esModule",{value:!0});nS.astFromValue=Eh;var EU=En(),g8=ci(),I8=eE(),v8=qo(),ks=en(),Nh=tn(),_8=Yo();function Eh(e,t){if((0,Nh.isNonNullType)(t)){let n=Eh(e,t.ofType);return(n==null?void 0:n.kind)===ks.Kind.NULL?null:n}if(e===null)return{kind:ks.Kind.NULL};if(e===void 0)return null;if((0,Nh.isListType)(t)){let n=t.ofType;if((0,I8.isIterableObject)(e)){let r=[];for(let i of e){let s=Eh(i,n);s!=null&&r.push(s)}return{kind:ks.Kind.LIST,values:r}}return Eh(e,n)}if((0,Nh.isInputObjectType)(t)){if(!(0,v8.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Eh(e[r.name],r.type);i&&n.push({kind:ks.Kind.OBJECT_FIELD,name:{kind:ks.Kind.NAME,value:r.name},value:i})}return{kind:ks.Kind.OBJECT,fields:n}}if((0,Nh.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:ks.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return gU.test(r)?{kind:ks.Kind.INT,value:r}:{kind:ks.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Nh.isEnumType)(t)?{kind:ks.Kind.ENUM,value:n}:t===_8.GraphQLID&&gU.test(n)?{kind:ks.Kind.INT,value:n}:{kind:ks.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,EU.inspect)(n)}.`)}(0,g8.invariant)(!1,"Unexpected input type: "+(0,EU.inspect)(t))}var gU=/^-?(?:0|[1-9][0-9]*)$/});var Cs=j(gn=>{"use strict";m();T();h();Object.defineProperty(gn,"__esModule",{value:!0});gn.introspectionTypes=gn.__TypeKind=gn.__Type=gn.__Schema=gn.__InputValue=gn.__Field=gn.__EnumValue=gn.__DirectiveLocation=gn.__Directive=gn.TypeNameMetaFieldDef=gn.TypeMetaFieldDef=gn.TypeKind=gn.SchemaMetaFieldDef=void 0;gn.isIntrospectionType=w8;var b8=En(),O8=ci(),wr=dp(),S8=ds(),D8=gh(),$e=tn(),Rn=Yo(),rS=new $e.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:Rn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(xs))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new $e.GraphQLNonNull(xs),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:xs,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:xs,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(iS))),resolve:e=>e.getDirectives()}})});gn.__Schema=rS;var iS=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(WO))),resolve:e=>e.locations},args:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(hh))),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});gn.__Directive=HO;var WO=new $e.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});gn.__DirectiveLocation=WO;var Cs=new $e.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 $e.GraphQLNonNull(eS),resolve(e){if((0,$e.isScalarType)(e))return Lr.SCALAR;if((0,$e.isObjectType)(e))return Lr.OBJECT;if((0,$e.isInterfaceType)(e))return Lr.INTERFACE;if((0,$e.isUnionType)(e))return Lr.UNION;if((0,$e.isEnumType)(e))return Lr.ENUM;if((0,$e.isInputObjectType)(e))return Lr.INPUT_OBJECT;if((0,$e.isListType)(e))return Lr.LIST;if((0,$e.isNonNullType)(e))return Lr.NON_NULL;(0,d8.invariant)(!1,`Unexpected type: "${(0,l8.inspect)(e)}".`)}},name:{type:Rn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Rn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Rn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new $e.GraphQLList(new $e.GraphQLNonNull(XO)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isObjectType)(e)||(0,$e.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new $e.GraphQLList(new $e.GraphQLNonNull(Cs)),resolve(e){if((0,$e.isObjectType)(e)||(0,$e.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new $e.GraphQLList(new $e.GraphQLNonNull(Cs)),resolve(e,t,n,{schema:r}){if((0,$e.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new $e.GraphQLList(new $e.GraphQLNonNull(ZO)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new $e.GraphQLList(new $e.GraphQLNonNull(hh)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Cs,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Rn.GraphQLBoolean,resolve:e=>{if((0,$e.isInputObjectType)(e))return e.isOneOf}}})});gn.__Type=Cs;var XO=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},args:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(hh))),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new $e.GraphQLNonNull(Cs),resolve:e=>e.type},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__Field=XO;var hh=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},type:{type:new $e.GraphQLNonNull(Cs),resolve:e=>e.type},defaultValue:{type:Rn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,f8.astFromValue)(n,t);return r?(0,p8.print)(r):null}},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__InputValue=hh;var ZO=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__EnumValue=ZO;var Lr;gn.TypeKind=Lr;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Lr||(gn.TypeKind=Lr={}));var eS=new $e.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Lr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Lr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Lr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Lr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Lr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Lr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Lr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Lr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});gn.__TypeKind=eS;var m8={name:"__schema",type:new $e.GraphQLNonNull(zO),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.SchemaMetaFieldDef=m8;var h8={name:"__type",type:Cs,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new $e.GraphQLNonNull(Rn.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.TypeMetaFieldDef=h8;var T8={name:"__typename",type:new $e.GraphQLNonNull(Rn.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.TypeNameMetaFieldDef=T8;var uU=Object.freeze([zO,HO,WO,Cs,XO,hh,ZO,eS]);gn.introspectionTypes=uU;function y8(e){return uU.some(({name:t})=>e.name===t)}});var vl=j(op=>{"use strict";m();T();h();Object.defineProperty(op,"__esModule",{value:!0});op.GraphQLSchema=void 0;op.assertSchema=v8;op.isSchema=lU;var zN=Oi(),nS=En(),N8=Hm(),E8=qo(),g8=DN(),tS=Ko(),fo=tn(),cU=qi(),I8=xs();function lU(e){return(0,N8.instanceOf)(e,HN)}function v8(e){if(!lU(e))throw new Error(`Expected ${(0,nS.inspect)(e)} to be a GraphQL schema.`);return e}var HN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,E8.isObjectLike)(t)||(0,zN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,zN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,nS.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,zN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,nS.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,g8.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:cU.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),mo(s,i);this._queryType!=null&&mo(this._queryType,i),this._mutationType!=null&&mo(this._mutationType,i),this._subscriptionType!=null&&mo(this._subscriptionType,i);for(let s of this._directives)if((0,cU.isDirective)(s))for(let o of s.args)mo(o.type,i);mo(I8.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||(0,zN.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,(0,fo.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,fo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if((0,fo.isObjectType)(s)){for(let u of s.getInterfaces())if((0,fo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case tS.OperationTypeNode.QUERY:return this.getQueryType();case tS.OperationTypeNode.MUTATION:return this.getMutationType();case tS.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,fo.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,fo.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};op.GraphQLSchema=HN;function mo(e,t){let n=(0,fo.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,fo.isUnionType)(n))for(let r of n.getTypes())mo(r,t);else if((0,fo.isObjectType)(n)||(0,fo.isInterfaceType)(n)){for(let r of n.getInterfaces())mo(r,t);for(let r of Object.values(n.getFields())){mo(r.type,t);for(let i of r.args)mo(i.type,t)}}else if((0,fo.isInputObjectType)(n))for(let r of Object.values(n.getFields()))mo(r.type,t)}return t}});var yh=j(WN=>{"use strict";m();T();h();Object.defineProperty(WN,"__esModule",{value:!0});WN.assertValidSchema=S8;WN.validateSchema=TU;var di=En(),_8=ut(),rS=Ko(),dU=oh(),ur=tn(),hU=qi(),b8=xs(),O8=vl();function TU(e){if((0,O8.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new sS(e);D8(t),A8(t),R8(t);let n=t.getErrors();return e.__validationErrors=n,n}function S8(e){let t=TU(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(sS))),resolve:e=>e.locations},args:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(Ih))),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});gn.__Directive=iS;var sS=new $e.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});gn.__DirectiveLocation=sS;var xs=new $e.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 $e.GraphQLNonNull(uS),resolve(e){if((0,$e.isScalarType)(e))return Lr.SCALAR;if((0,$e.isObjectType)(e))return Lr.OBJECT;if((0,$e.isInterfaceType)(e))return Lr.INTERFACE;if((0,$e.isUnionType)(e))return Lr.UNION;if((0,$e.isEnumType)(e))return Lr.ENUM;if((0,$e.isInputObjectType)(e))return Lr.INPUT_OBJECT;if((0,$e.isListType)(e))return Lr.LIST;if((0,$e.isNonNullType)(e))return Lr.NON_NULL;(0,O8.invariant)(!1,`Unexpected type: "${(0,b8.inspect)(e)}".`)}},name:{type:Rn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Rn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Rn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new $e.GraphQLList(new $e.GraphQLNonNull(oS)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isObjectType)(e)||(0,$e.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new $e.GraphQLList(new $e.GraphQLNonNull(xs)),resolve(e){if((0,$e.isObjectType)(e)||(0,$e.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new $e.GraphQLList(new $e.GraphQLNonNull(xs)),resolve(e,t,n,{schema:r}){if((0,$e.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new $e.GraphQLList(new $e.GraphQLNonNull(aS)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new $e.GraphQLList(new $e.GraphQLNonNull(Ih)),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,$e.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:xs,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Rn.GraphQLBoolean,resolve:e=>{if((0,$e.isInputObjectType)(e))return e.isOneOf}}})});gn.__Type=xs;var oS=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},args:{type:new $e.GraphQLNonNull(new $e.GraphQLList(new $e.GraphQLNonNull(Ih))),args:{includeDeprecated:{type:Rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new $e.GraphQLNonNull(xs),resolve:e=>e.type},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__Field=oS;var Ih=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},type:{type:new $e.GraphQLNonNull(xs),resolve:e=>e.type},defaultValue:{type:Rn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,D8.astFromValue)(n,t);return r?(0,S8.print)(r):null}},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__InputValue=Ih;var aS=new $e.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 $e.GraphQLNonNull(Rn.GraphQLString),resolve:e=>e.name},description:{type:Rn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new $e.GraphQLNonNull(Rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Rn.GraphQLString,resolve:e=>e.deprecationReason}})});gn.__EnumValue=aS;var Lr;gn.TypeKind=Lr;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(Lr||(gn.TypeKind=Lr={}));var uS=new $e.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Lr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Lr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Lr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Lr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Lr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Lr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Lr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Lr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});gn.__TypeKind=uS;var A8={name:"__schema",type:new $e.GraphQLNonNull(rS),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.SchemaMetaFieldDef=A8;var R8={name:"__type",type:xs,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new $e.GraphQLNonNull(Rn.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.TypeMetaFieldDef=R8;var F8={name:"__typename",type:new $e.GraphQLNonNull(Rn.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};gn.TypeNameMetaFieldDef=F8;var IU=Object.freeze([rS,iS,sS,xs,oS,Ih,aS,uS]);gn.introspectionTypes=IU;function w8(e){return IU.some(({name:t})=>e.name===t)}});var Al=j(pp=>{"use strict";m();T();h();Object.defineProperty(pp,"__esModule",{value:!0});pp.GraphQLSchema=void 0;pp.assertSchema=C8;pp.isSchema=_U;var tE=Oi(),lS=En(),L8=nh(),P8=qo(),k8=PN(),cS=Ko(),fo=tn(),vU=qi(),x8=Cs();function _U(e){return(0,L8.instanceOf)(e,nE)}function C8(e){if(!_U(e))throw new Error(`Expected ${(0,lS.inspect)(e)} to be a GraphQL schema.`);return e}var nE=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,P8.isObjectLike)(t)||(0,tE.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,tE.devAssert)(!1,`"types" must be Array if provided but got: ${(0,lS.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,tE.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,lS.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,k8.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:vU.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let s of t.types)i.delete(s),mo(s,i);this._queryType!=null&&mo(this._queryType,i),this._mutationType!=null&&mo(this._mutationType,i),this._subscriptionType!=null&&mo(this._subscriptionType,i);for(let s of this._directives)if((0,vU.isDirective)(s))for(let o of s.args)mo(o.type,i);mo(x8.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let s of i){if(s==null)continue;let o=s.name;if(o||(0,tE.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=s,(0,fo.isInterfaceType)(s)){for(let u of s.getInterfaces())if((0,fo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.interfaces.push(s)}}else if((0,fo.isObjectType)(s)){for(let u of s.getInterfaces())if((0,fo.isInterfaceType)(u)){let l=this._implementationsMap[u.name];l===void 0&&(l=this._implementationsMap[u.name]={objects:[],interfaces:[]}),l.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case cS.OperationTypeNode.QUERY:return this.getQueryType();case cS.OperationTypeNode.MUTATION:return this.getMutationType();case cS.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,fo.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,fo.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let s of i.objects)r[s.name]=!0;for(let s of i.interfaces)r[s.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}};pp.GraphQLSchema=nE;function mo(e,t){let n=(0,fo.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,fo.isUnionType)(n))for(let r of n.getTypes())mo(r,t);else if((0,fo.isObjectType)(n)||(0,fo.isInterfaceType)(n)){for(let r of n.getInterfaces())mo(r,t);for(let r of Object.values(n.getFields())){mo(r.type,t);for(let i of r.args)mo(i.type,t)}}else if((0,fo.isInputObjectType)(n))for(let r of Object.values(n.getFields()))mo(r.type,t)}return t}});var _h=j(rE=>{"use strict";m();T();h();Object.defineProperty(rE,"__esModule",{value:!0});rE.assertValidSchema=V8;rE.validateSchema=RU;var di=En(),U8=ct(),dS=Ko(),bU=ph(),ur=tn(),AU=qi(),M8=Cs(),B8=Al();function RU(e){if((0,B8.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new fS(e);j8(t),$8(t),q8(t);let n=t.getErrors();return e.__validationErrors=n,n}function V8(e){let t=RU(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var sS=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new _8.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function D8(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,ur.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,di.inspect)(n)}.`,(r=iS(t,rS.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,ur.isObjectType)(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,di.inspect)(i)}.`,(s=iS(t,rS.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,ur.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,di.inspect)(o)}.`,(u=iS(t,rS.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function iS(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function A8(e){for(let n of e.schema.getDirectives()){if(!(0,hU.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,di.inspect)(n)}.`,n==null?void 0:n.astNode);continue}_l(e,n);for(let r of n.args)if(_l(e,r),(0,ur.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,di.inspect)(r.type)}.`,r.astNode),(0,ur.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[oS(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function _l(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function R8(e){let t=x8(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,ur.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,di.inspect)(r)}.`,r.astNode);continue}(0,b8.isIntrospectionType)(r)||_l(e,r),(0,ur.isObjectType)(r)||(0,ur.isInterfaceType)(r)?(pU(e,r),fU(e,r)):(0,ur.isUnionType)(r)?L8(e,r):(0,ur.isEnumType)(r)?P8(e,r):(0,ur.isInputObjectType)(r)&&(k8(e,r),t(r))}}function pU(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(_l(e,o),!(0,ur.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,di.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(_l(e,u),!(0,ur.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,di.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,ur.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[oS(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function fU(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,ur.isInterfaceType)(r)){e.reportError(`Type ${(0,di.inspect)(t)} must only implement Interface types, it cannot implement ${(0,di.inspect)(r)}.`,Th(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Th(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Th(t,r));continue}n[r.name]=!0,w8(e,t,r),F8(e,t,r)}}function F8(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,dU.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,di.inspect)(l.type)} but ${t.name}.${d} is type ${(0,di.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(O=>O.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,dU.isEqualType)(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${(0,di.inspect)(y.type)} but ${t.name}.${d}(${N}:) is type ${(0,di.inspect)(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(O=>O.name===N)&&(0,ur.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function w8(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Th(n,i),...Th(t,n)])}function L8(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,mU(t,i.name));continue}r[i.name]=!0,(0,ur.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,di.inspect)(i)}.`,mU(t,String(i)))}}function P8(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)_l(e,r)}function k8(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(_l(e,s),!(0,ur.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,di.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,ur.isRequiredInputField)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[oS(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&C8(t,s,e)}}function C8(e,t,n){if((0,ur.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function x8(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if((0,ur.isNonNullType)(u.type)&&(0,ur.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function Th(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function mU(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function oS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===hU.GraphQLDeprecatedDirective.name)}});var Jo=j(cS=>{"use strict";m();T();h();Object.defineProperty(cS,"__esModule",{value:!0});cS.typeFromAST=uS;var aS=en(),yU=tn();function uS(e,t){switch(t.kind){case aS.Kind.LIST_TYPE:{let n=uS(e,t.type);return n&&new yU.GraphQLList(n)}case aS.Kind.NON_NULL_TYPE:{let n=uS(e,t.type);return n&&new yU.GraphQLNonNull(n)}case aS.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var XN=j(Nh=>{"use strict";m();T();h();Object.defineProperty(Nh,"__esModule",{value:!0});Nh.TypeInfo=void 0;Nh.visitWithTypeInfo=B8;var U8=Ko(),cr=en(),NU=hl(),lr=tn(),ap=xs(),EU=Jo(),lS=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:M8,n&&((0,lr.isInputType)(n)&&this._inputTypeStack.push(n),(0,lr.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,lr.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case cr.Kind.SELECTION_SET:{let i=(0,lr.getNamedType)(this.getType());this._parentTypeStack.push((0,lr.isCompositeType)(i)?i:void 0);break}case cr.Kind.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,lr.isOutputType)(o)?o:void 0);break}case cr.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case cr.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,lr.isObjectType)(i)?i:void 0);break}case cr.Kind.INLINE_FRAGMENT:case cr.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?(0,EU.typeFromAST)(n,i):(0,lr.getNamedType)(this.getType());this._typeStack.push((0,lr.isOutputType)(s)?s:void 0);break}case cr.Kind.VARIABLE_DEFINITION:{let i=(0,EU.typeFromAST)(n,t.type);this._inputTypeStack.push((0,lr.isInputType)(i)?i:void 0);break}case cr.Kind.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.LIST:{let i=(0,lr.getNullableType)(this.getInputType()),s=(0,lr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.OBJECT_FIELD:{let i=(0,lr.getNamedType)(this.getInputType()),s,o;(0,lr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.ENUM:{let i=(0,lr.getNamedType)(this.getInputType()),s;(0,lr.isEnumType)(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case cr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case cr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case cr.Kind.DIRECTIVE:this._directive=null;break;case cr.Kind.OPERATION_DEFINITION:case cr.Kind.INLINE_FRAGMENT:case cr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case cr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case cr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case cr.Kind.LIST:case cr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case cr.Kind.ENUM:this._enumValue=null;break;default:}}};Nh.TypeInfo=lS;function M8(e,t,n){let r=n.name.value;if(r===ap.SchemaMetaFieldDef.name&&e.getQueryType()===t)return ap.SchemaMetaFieldDef;if(r===ap.TypeMetaFieldDef.name&&e.getQueryType()===t)return ap.TypeMetaFieldDef;if(r===ap.TypeNameMetaFieldDef.name&&(0,lr.isCompositeType)(t))return ap.TypeNameMetaFieldDef;if((0,lr.isObjectType)(t)||(0,lr.isInterfaceType)(t))return t.getFields()[r]}function B8(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,NU.getEnterLeaveForKind)(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),(0,U8.isNode)(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=(0,NU.getEnterLeaveForKind)(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}});var bl=j(Us=>{"use strict";m();T();h();Object.defineProperty(Us,"__esModule",{value:!0});Us.isConstValueNode=dS;Us.isDefinitionNode=V8;Us.isExecutableDefinitionNode=gU;Us.isSelectionNode=j8;Us.isTypeDefinitionNode=_U;Us.isTypeExtensionNode=OU;Us.isTypeNode=$8;Us.isTypeSystemDefinitionNode=vU;Us.isTypeSystemExtensionNode=bU;Us.isValueNode=IU;var nn=en();function V8(e){return gU(e)||vU(e)||bU(e)}function gU(e){return e.kind===nn.Kind.OPERATION_DEFINITION||e.kind===nn.Kind.FRAGMENT_DEFINITION}function j8(e){return e.kind===nn.Kind.FIELD||e.kind===nn.Kind.FRAGMENT_SPREAD||e.kind===nn.Kind.INLINE_FRAGMENT}function IU(e){return e.kind===nn.Kind.VARIABLE||e.kind===nn.Kind.INT||e.kind===nn.Kind.FLOAT||e.kind===nn.Kind.STRING||e.kind===nn.Kind.BOOLEAN||e.kind===nn.Kind.NULL||e.kind===nn.Kind.ENUM||e.kind===nn.Kind.LIST||e.kind===nn.Kind.OBJECT}function dS(e){return IU(e)&&(e.kind===nn.Kind.LIST?e.values.some(dS):e.kind===nn.Kind.OBJECT?e.fields.some(t=>dS(t.value)):e.kind!==nn.Kind.VARIABLE)}function $8(e){return e.kind===nn.Kind.NAMED_TYPE||e.kind===nn.Kind.LIST_TYPE||e.kind===nn.Kind.NON_NULL_TYPE}function vU(e){return e.kind===nn.Kind.SCHEMA_DEFINITION||_U(e)||e.kind===nn.Kind.DIRECTIVE_DEFINITION}function _U(e){return e.kind===nn.Kind.SCALAR_TYPE_DEFINITION||e.kind===nn.Kind.OBJECT_TYPE_DEFINITION||e.kind===nn.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nn.Kind.UNION_TYPE_DEFINITION||e.kind===nn.Kind.ENUM_TYPE_DEFINITION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_DEFINITION}function bU(e){return e.kind===nn.Kind.SCHEMA_EXTENSION||OU(e)}function OU(e){return e.kind===nn.Kind.SCALAR_TYPE_EXTENSION||e.kind===nn.Kind.OBJECT_TYPE_EXTENSION||e.kind===nn.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nn.Kind.UNION_TYPE_EXTENSION||e.kind===nn.Kind.ENUM_TYPE_EXTENSION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var fS=j(pS=>{"use strict";m();T();h();Object.defineProperty(pS,"__esModule",{value:!0});pS.ExecutableDefinitionsRule=G8;var q8=ut(),SU=en(),K8=bl();function G8(e){return{Document(t){for(let n of t.definitions)if(!(0,K8.isExecutableDefinitionNode)(n)){let r=n.kind===SU.Kind.SCHEMA_DEFINITION||n.kind===SU.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new q8.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var hS=j(mS=>{"use strict";m();T();h();Object.defineProperty(mS,"__esModule",{value:!0});mS.FieldsOnCorrectTypeRule=z8;var DU=Tc(),Q8=Xm(),Y8=Nc(),J8=ut(),Eh=tn();function z8(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=(0,DU.didYouMean)("to use an inline fragment on",H8(i,n,s));o===""&&(o=(0,DU.didYouMean)(W8(n,s))),e.reportError(new J8.GraphQLError(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function H8(e,t,n){if(!(0,Eh.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Eh.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Eh.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,Q8.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function W8(e,t){if((0,Eh.isObjectType)(e)||(0,Eh.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,Y8.suggestionList)(t,n)}return[]}});var yS=j(TS=>{"use strict";m();T();h();Object.defineProperty(TS,"__esModule",{value:!0});TS.FragmentsOnCompositeTypesRule=X8;var AU=ut(),RU=ds(),FU=tn(),wU=Jo();function X8(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,wU.typeFromAST)(e.getSchema(),n);if(r&&!(0,FU.isCompositeType)(r)){let i=(0,RU.print)(n);e.reportError(new AU.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,wU.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,FU.isCompositeType)(n)){let r=(0,RU.print)(t.typeCondition);e.reportError(new AU.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var NS=j(ZN=>{"use strict";m();T();h();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.KnownArgumentNamesOnDirectivesRule=CU;ZN.KnownArgumentNamesRule=tX;var LU=Tc(),PU=Nc(),kU=ut(),Z8=en(),eX=qi();function tX(e){return G(k({},CU(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=(0,PU.suggestionList)(s,o);e.reportError(new kU.GraphQLError(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+(0,LU.didYouMean)(u),{nodes:t}))}}})}function CU(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():eX.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===Z8.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,PU.suggestionList)(p,l);e.reportError(new kU.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,LU.didYouMean)(y),{nodes:d}))}}return!1}}}});var vS=j(IS=>{"use strict";m();T();h();Object.defineProperty(IS,"__esModule",{value:!0});IS.KnownDirectivesRule=iX;var nX=En(),ES=ci(),xU=ut(),gS=Ko(),Pr=sp(),jn=en(),rX=qi();function iX(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():rX.specifiedDirectives;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===jn.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new xU.GraphQLError(`Unknown directive "@${p}".`,{nodes:s}));return}let N=sX(d);N&&!y.includes(N)&&e.reportError(new xU.GraphQLError(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function sX(e){let t=e[e.length-1];switch("kind"in t||(0,ES.invariant)(!1),t.kind){case jn.Kind.OPERATION_DEFINITION:return oX(t.operation);case jn.Kind.FIELD:return Pr.DirectiveLocation.FIELD;case jn.Kind.FRAGMENT_SPREAD:return Pr.DirectiveLocation.FRAGMENT_SPREAD;case jn.Kind.INLINE_FRAGMENT:return Pr.DirectiveLocation.INLINE_FRAGMENT;case jn.Kind.FRAGMENT_DEFINITION:return Pr.DirectiveLocation.FRAGMENT_DEFINITION;case jn.Kind.VARIABLE_DEFINITION:return Pr.DirectiveLocation.VARIABLE_DEFINITION;case jn.Kind.SCHEMA_DEFINITION:case jn.Kind.SCHEMA_EXTENSION:return Pr.DirectiveLocation.SCHEMA;case jn.Kind.SCALAR_TYPE_DEFINITION:case jn.Kind.SCALAR_TYPE_EXTENSION:return Pr.DirectiveLocation.SCALAR;case jn.Kind.OBJECT_TYPE_DEFINITION:case jn.Kind.OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.OBJECT;case jn.Kind.FIELD_DEFINITION:return Pr.DirectiveLocation.FIELD_DEFINITION;case jn.Kind.INTERFACE_TYPE_DEFINITION:case jn.Kind.INTERFACE_TYPE_EXTENSION:return Pr.DirectiveLocation.INTERFACE;case jn.Kind.UNION_TYPE_DEFINITION:case jn.Kind.UNION_TYPE_EXTENSION:return Pr.DirectiveLocation.UNION;case jn.Kind.ENUM_TYPE_DEFINITION:case jn.Kind.ENUM_TYPE_EXTENSION:return Pr.DirectiveLocation.ENUM;case jn.Kind.ENUM_VALUE_DEFINITION:return Pr.DirectiveLocation.ENUM_VALUE;case jn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.INPUT_OBJECT;case jn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,ES.invariant)(!1),n.kind===jn.Kind.INPUT_OBJECT_TYPE_DEFINITION?Pr.DirectiveLocation.INPUT_FIELD_DEFINITION:Pr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ES.invariant)(!1,"Unexpected kind: "+(0,nX.inspect)(t.kind))}}function oX(e){switch(e){case gS.OperationTypeNode.QUERY:return Pr.DirectiveLocation.QUERY;case gS.OperationTypeNode.MUTATION:return Pr.DirectiveLocation.MUTATION;case gS.OperationTypeNode.SUBSCRIPTION:return Pr.DirectiveLocation.SUBSCRIPTION}}});var bS=j(_S=>{"use strict";m();T();h();Object.defineProperty(_S,"__esModule",{value:!0});_S.KnownFragmentNamesRule=uX;var aX=ut();function uX(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new aX.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var DS=j(SS=>{"use strict";m();T();h();Object.defineProperty(SS,"__esModule",{value:!0});SS.KnownTypeNamesRule=mX;var cX=Tc(),lX=Nc(),dX=ut(),OS=bl(),pX=xs(),fX=Yo();function mX(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)(0,OS.isTypeDefinitionNode)(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&hX(N);if(I&&UU.includes(p))return;let O=(0,lX.suggestionList)(p,I?UU.concat(i):i);e.reportError(new dX.GraphQLError(`Unknown type "${p}".`+(0,cX.didYouMean)(O),{nodes:s}))}}}}var UU=[...fX.specifiedScalarTypes,...pX.introspectionTypes].map(e=>e.name);function hX(e){return"kind"in e&&((0,OS.isTypeSystemDefinitionNode)(e)||(0,OS.isTypeSystemExtensionNode)(e))}});var RS=j(AS=>{"use strict";m();T();h();Object.defineProperty(AS,"__esModule",{value:!0});AS.LoneAnonymousOperationRule=NX;var TX=ut(),yX=en();function NX(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===yX.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new TX.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var wS=j(FS=>{"use strict";m();T();h();Object.defineProperty(FS,"__esModule",{value:!0});FS.LoneSchemaDefinitionRule=EX;var MU=ut();function EX(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(s){e.reportError(new MU.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new MU.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var PS=j(LS=>{"use strict";m();T();h();Object.defineProperty(LS,"__esModule",{value:!0});LS.MaxIntrospectionDepthRule=vX;var gX=ut(),BU=en(),IX=3;function vX(e){function t(n,r=Object.create(null),i=0){if(n.kind===BU.Kind.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===BU.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=IX))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new gX.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var CS=j(kS=>{"use strict";m();T();h();Object.defineProperty(kS,"__esModule",{value:!0});kS.NoFragmentCyclesRule=bX;var _X=ut();function bX(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new _X.GraphQLError(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var US=j(xS=>{"use strict";m();T();h();Object.defineProperty(xS,"__esModule",{value:!0});xS.NoUndefinedVariablesRule=SX;var OX=ut();function SX(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new OX.GraphQLError(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var BS=j(MS=>{"use strict";m();T();h();Object.defineProperty(MS,"__esModule",{value:!0});MS.NoUnusedFragmentsRule=AX;var DX=ut();function AX(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new DX.GraphQLError(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}});var jS=j(VS=>{"use strict";m();T();h();Object.defineProperty(VS,"__esModule",{value:!0});VS.NoUnusedVariablesRule=FX;var RX=ut();function FX(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new RX.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}});var KS=j(qS=>{"use strict";m();T();h();Object.defineProperty(qS,"__esModule",{value:!0});qS.sortValueNode=$S;var wX=Xm(),$a=en();function $S(e){switch(e.kind){case $a.Kind.OBJECT:return G(k({},e),{fields:LX(e.fields)});case $a.Kind.LIST:return G(k({},e),{values:e.values.map($S)});case $a.Kind.INT:case $a.Kind.FLOAT:case $a.Kind.STRING:case $a.Kind.BOOLEAN:case $a.Kind.NULL:case $a.Kind.ENUM:case $a.Kind.VARIABLE:return e}}function LX(e){return e.map(t=>G(k({},t),{value:$S(t.value)})).sort((t,n)=>(0,wX.naturalCompare)(t.name.value,n.name.value))}});var WS=j(HS=>{"use strict";m();T();h();Object.defineProperty(HS,"__esModule",{value:!0});HS.OverlappingFieldsCanBeMergedRule=xX;var VU=En(),PX=ut(),GS=en(),kX=ds(),Ki=tn(),CX=KS(),$U=Jo();function qU(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+qU(n)).join(" and "):e}function xX(e){let t=new JS,n=new Map;return{SelectionSet(r){let i=UX(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=qU(o);e.reportError(new PX.GraphQLError(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function UX(e,t,n,r,i){let s=[],[o,u]=nE(e,t,r,i);if(BX(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:jU(o)===jU(u)})}function jU(e){return(0,kX.print)((0,CX.sortValueNode)(e))}function QS(e,t){return(0,Ki.isListType)(e)?(0,Ki.isListType)(t)?QS(e.ofType,t.ofType):!0:(0,Ki.isListType)(t)?!0:(0,Ki.isNonNullType)(e)?(0,Ki.isNonNullType)(t)?QS(e.ofType,t.ofType):!0:(0,Ki.isNonNullType)(t)?!0:(0,Ki.isLeafType)(e)||(0,Ki.isLeafType)(t)?e!==t:!1}function nE(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);GU(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function YS(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,$U.typeFromAST)(e.getSchema(),n.typeCondition);return nE(e,t,i,n.selectionSet)}function GU(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case GS.Kind.FIELD:{let o=s.name.value,u;((0,Ki.isObjectType)(t)||(0,Ki.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case GS.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case GS.Kind.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?(0,$U.typeFromAST)(e.getSchema(),o):t;GU(e,u,s.selectionSet,r,i);break}}}function jX(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var JS=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Object.defineProperty(ZS,"__esModule",{value:!0});ZS.PossibleFragmentSpreadsRule=qX;var rE=En(),QU=ut(),XS=tn(),YU=oh(),$X=Jo();function qX(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,XS.isCompositeType)(n)&&(0,XS.isCompositeType)(r)&&!(0,YU.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,rE.inspect)(r),s=(0,rE.inspect)(n);e.reportError(new QU.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=KX(e,n),i=e.getParentType();if(r&&i&&!(0,YU.doTypesOverlap)(e.getSchema(),r,i)){let s=(0,rE.inspect)(i),o=(0,rE.inspect)(r);e.reportError(new QU.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function KX(e,t){let n=e.getFragment(t);if(n){let r=(0,$X.typeFromAST)(e.getSchema(),n.typeCondition);if((0,XS.isCompositeType)(r))return r}}});var n0=j(t0=>{"use strict";m();T();h();Object.defineProperty(t0,"__esModule",{value:!0});t0.PossibleTypeExtensionsRule=JX;var GX=Tc(),zU=En(),HU=ci(),QX=Nc(),JU=ut(),zn=en(),YX=bl(),up=tn();function JX(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,YX.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=zX[o.kind]:u&&(l=HX(u)),l){if(l!==i.kind){let d=WX(i.kind);e.reportError(new JU.GraphQLError(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=(0,QX.suggestionList)(s,d);e.reportError(new JU.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,GX.didYouMean)(p),{nodes:i.name}))}}}var zX={[zn.Kind.SCALAR_TYPE_DEFINITION]:zn.Kind.SCALAR_TYPE_EXTENSION,[zn.Kind.OBJECT_TYPE_DEFINITION]:zn.Kind.OBJECT_TYPE_EXTENSION,[zn.Kind.INTERFACE_TYPE_DEFINITION]:zn.Kind.INTERFACE_TYPE_EXTENSION,[zn.Kind.UNION_TYPE_DEFINITION]:zn.Kind.UNION_TYPE_EXTENSION,[zn.Kind.ENUM_TYPE_DEFINITION]:zn.Kind.ENUM_TYPE_EXTENSION,[zn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function HX(e){if((0,up.isScalarType)(e))return zn.Kind.SCALAR_TYPE_EXTENSION;if((0,up.isObjectType)(e))return zn.Kind.OBJECT_TYPE_EXTENSION;if((0,up.isInterfaceType)(e))return zn.Kind.INTERFACE_TYPE_EXTENSION;if((0,up.isUnionType)(e))return zn.Kind.UNION_TYPE_EXTENSION;if((0,up.isEnumType)(e))return zn.Kind.ENUM_TYPE_EXTENSION;if((0,up.isInputObjectType)(e))return zn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,HU.invariant)(!1,"Unexpected type: "+(0,zU.inspect)(e))}function WX(e){switch(e){case zn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zn.Kind.OBJECT_TYPE_EXTENSION:return"object";case zn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zn.Kind.UNION_TYPE_EXTENSION:return"union";case zn.Kind.ENUM_TYPE_EXTENSION:return"enum";case zn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,HU.invariant)(!1,"Unexpected kind: "+(0,zU.inspect)(e))}}});var i0=j(iE=>{"use strict";m();T();h();Object.defineProperty(iE,"__esModule",{value:!0});iE.ProvidedRequiredArgumentsOnDirectivesRule=tM;iE.ProvidedRequiredArgumentsRule=e5;var XU=En(),WU=yc(),ZU=ut(),eM=en(),XX=ds(),r0=tn(),ZX=qi();function e5(e){return G(k({},tM(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&(0,r0.isRequiredArgument)(s)){let o=(0,XU.inspect)(s.type);e.reportError(new ZU.GraphQLError(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function tM(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:ZX.specifiedDirectives;for(let u of i)n[u.name]=(0,WU.keyMap)(u.args.filter(r0.isRequiredArgument),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===eM.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=(0,WU.keyMap)(l.filter(t5),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,O]of Object.entries(d))if(!N.has(I)){let x=(0,r0.isType)(O.type)?(0,XU.inspect)(O.type):(0,XX.print)(O.type);e.reportError(new ZU.GraphQLError(`Directive "@${l}" argument "${I}" of type "${x}" is required, but it was not provided.`,{nodes:u}))}}}}}}function t5(e){return e.type.kind===eM.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var o0=j(s0=>{"use strict";m();T();h();Object.defineProperty(s0,"__esModule",{value:!0});s0.ScalarLeafsRule=n5;var nM=En(),rM=ut(),iM=tn();function n5(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,iM.isLeafType)((0,iM.getNamedType)(n))){if(r){let i=t.name.value,s=(0,nM.inspect)(n);e.reportError(new rM.GraphQLError(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=(0,nM.inspect)(n);e.reportError(new rM.GraphQLError(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var u0=j(a0=>{"use strict";m();T();h();Object.defineProperty(a0,"__esModule",{value:!0});a0.printPathArray=r5;function r5(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var gh=j(sE=>{"use strict";m();T();h();Object.defineProperty(sE,"__esModule",{value:!0});sE.addPath=i5;sE.pathToArray=s5;function i5(e,t,n){return{prev:e,key:t,typename:n}}function s5(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var l0=j(c0=>{"use strict";m();T();h();Object.defineProperty(c0,"__esModule",{value:!0});c0.coerceInputValue=p5;var o5=Tc(),oE=En(),a5=ci(),u5=JN(),c5=qo(),ho=gh(),l5=u0(),d5=Nc(),qa=ut(),Ih=tn();function p5(e,t,n=f5){return vh(e,t,n,void 0)}function f5(e,t,n){let r="Invalid value "+(0,oE.inspect)(t);throw e.length>0&&(r+=` at "value${(0,l5.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function vh(e,t,n,r){if((0,Ih.isNonNullType)(t)){if(e!=null)return vh(e,t.ofType,n,r);n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected non-nullable type "${(0,oE.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Ih.isListType)(t)){let i=t.ofType;return(0,u5.isIterableObject)(e)?Array.from(e,(s,o)=>{let u=(0,ho.addPath)(r,o,void 0);return vh(s,i,n,u)}):[vh(e,i,n,r)]}if((0,Ih.isInputObjectType)(t)){if(!(0,c5.isObjectLike)(e)){n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Ih.isNonNullType)(o.type)){let l=(0,oE.inspect)(o.type);n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=vh(u,o.type,n,(0,ho.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=(0,d5.suggestionList)(o,Object.keys(t.getFields()));n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,o5.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n((0,ho.pathToArray)(r).concat(u),l,new qa.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,Ih.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof qa.GraphQLError?n((0,ho.pathToArray)(r),e,s):n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}".`)),i}(0,a5.invariant)(!1,"Unexpected input type: "+(0,oE.inspect)(t))}});var bh=j(d0=>{"use strict";m();T();h();Object.defineProperty(d0,"__esModule",{value:!0});d0.valueFromAST=_h;var m5=En(),h5=ci(),T5=yc(),cp=en(),Ol=tn();function _h(e,t,n){if(e){if(e.kind===cp.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,Ol.isNonNullType)(t)?void 0:i}if((0,Ol.isNonNullType)(t))return e.kind===cp.Kind.NULL?void 0:_h(e,t.ofType,n);if(e.kind===cp.Kind.NULL)return null;if((0,Ol.isListType)(t)){let r=t.ofType;if(e.kind===cp.Kind.LIST){let s=[];for(let o of e.values)if(sM(o,n)){if((0,Ol.isNonNullType)(r))return;s.push(null)}else{let u=_h(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=_h(e,r,n);return i===void 0?void 0:[i]}if((0,Ol.isInputObjectType)(t)){if(e.kind!==cp.Kind.OBJECT)return;let r=Object.create(null),i=(0,T5.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||sM(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if((0,Ol.isNonNullType)(s.type))return;continue}let u=_h(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if((0,Ol.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,h5.invariant)(!1,"Unexpected input type: "+(0,m5.inspect)(t))}}function sM(e,t){return e.kind===cp.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var pp=j(Oh=>{"use strict";m();T();h();Object.defineProperty(Oh,"__esModule",{value:!0});Oh.getArgumentValues=cM;Oh.getDirectiveValues=_5;Oh.getVariableValues=I5;var lp=En(),y5=yc(),N5=u0(),Ka=ut(),oM=en(),aM=ds(),dp=tn(),E5=l0(),g5=Jo(),uM=bh();function I5(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=v5(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Ka.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 v5(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=(0,g5.typeFromAST)(e,s.type);if(!(0,dp.isInputType)(u)){let d=(0,aM.print)(s.type);r(new Ka.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!lM(n,o)){if(s.defaultValue)i[o]=(0,uM.valueFromAST)(s.defaultValue,u);else if((0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new Ka.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&(0,dp.isNonNullType)(u)){let d=(0,lp.inspect)(u);r(new Ka.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=(0,E5.coerceInputValue)(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+(0,lp.inspect)(p);d.length>0&&(N+=` at "${o}${(0,N5.printPathArray)(d)}"`),r(new Ka.GraphQLError(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function cM(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,y5.keyMap)(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===oM.Kind.NULL;if(y.kind===oM.Kind.VARIABLE){let O=y.name.value;if(n==null||!lM(n,O)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,dp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of required type "${(0,lp.inspect)(d)}" was provided the variable "$${O}" which was not provided a runtime value.`,{nodes:y});continue}N=n[O]==null}if(N&&(0,dp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of non-null type "${(0,lp.inspect)(d)}" must not be null.`,{nodes:y});let I=(0,uM.valueFromAST)(y,d,n);if(I===void 0)throw new Ka.GraphQLError(`Argument "${l}" has invalid value ${(0,aM.print)(y)}.`,{nodes:y});i[l]=I}return i}function _5(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return cM(e,i,n)}function lM(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var cE=j(uE=>{"use strict";m();T();h();Object.defineProperty(uE,"__esModule",{value:!0});uE.collectFields=S5;uE.collectSubfields=D5;var p0=en(),b5=tn(),dM=qi(),O5=Jo(),pM=pp();function S5(e,t,n,r,i){let s=new Map;return aE(e,t,n,r,i,s,new Set),s}function D5(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&aE(e,t,n,r,u.selectionSet,s,o);return s}function aE(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case p0.Kind.FIELD:{if(!f0(n,u))continue;let l=A5(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case p0.Kind.INLINE_FRAGMENT:{if(!f0(n,u)||!fM(e,u,r))continue;aE(e,t,n,r,u.selectionSet,s,o);break}case p0.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!f0(n,u))continue;o.add(l);let d=t[l];if(!d||!fM(e,d,r))continue;aE(e,t,n,r,d.selectionSet,s,o);break}}}function f0(e,t){let n=(0,pM.getDirectiveValues)(dM.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,pM.getDirectiveValues)(dM.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function fM(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,O5.typeFromAST)(e,r);return i===n?!0:(0,b5.isAbstractType)(i)?e.isSubType(i,n):!1}function A5(e){return e.alias?e.alias.value:e.name.value}});var h0=j(m0=>{"use strict";m();T();h();Object.defineProperty(m0,"__esModule",{value:!0});m0.SingleFieldSubscriptionsRule=w5;var mM=ut(),R5=en(),F5=cE();function w5(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===R5.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,F5.collectFields)(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new mM.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new mM.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var lE=j(T0=>{"use strict";m();T();h();Object.defineProperty(T0,"__esModule",{value:!0});T0.groupBy=L5;function L5(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}});var N0=j(y0=>{"use strict";m();T();h();Object.defineProperty(y0,"__esModule",{value:!0});y0.UniqueArgumentDefinitionNamesRule=C5;var P5=lE(),k5=ut();function C5(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=(0,P5.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new k5.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var g0=j(E0=>{"use strict";m();T();h();Object.defineProperty(E0,"__esModule",{value:!0});E0.UniqueArgumentNamesRule=M5;var x5=lE(),U5=ut();function M5(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=(0,x5.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new U5.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var v0=j(I0=>{"use strict";m();T();h();Object.defineProperty(I0,"__esModule",{value:!0});I0.UniqueDirectiveNamesRule=B5;var hM=ut();function B5(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new hM.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new hM.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var O0=j(b0=>{"use strict";m();T();h();Object.defineProperty(b0,"__esModule",{value:!0});b0.UniqueDirectivesPerLocationRule=$5;var V5=ut(),_0=en(),TM=bl(),j5=qi();function $5(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():j5.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===_0.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===_0.Kind.SCHEMA_DEFINITION||u.kind===_0.Kind.SCHEMA_EXTENSION)l=s;else if((0,TM.isTypeDefinitionNode)(u)||(0,TM.isTypeExtensionNode)(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new V5.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var D0=j(S0=>{"use strict";m();T();h();Object.defineProperty(S0,"__esModule",{value:!0});S0.UniqueEnumValueNamesRule=K5;var yM=ut(),q5=tn();function K5(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];(0,q5.isEnumType)(N)&&N.getValue(y)?e.reportError(new yM.GraphQLError(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new yM.GraphQLError(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var F0=j(R0=>{"use strict";m();T();h();Object.defineProperty(R0,"__esModule",{value:!0});R0.UniqueFieldDefinitionNamesRule=G5;var NM=ut(),A0=tn();function G5(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;Q5(n[u],y)?e.reportError(new NM.GraphQLError(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new NM.GraphQLError(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function Q5(e,t){return(0,A0.isObjectType)(e)||(0,A0.isInterfaceType)(e)||(0,A0.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var L0=j(w0=>{"use strict";m();T();h();Object.defineProperty(w0,"__esModule",{value:!0});w0.UniqueFragmentNamesRule=J5;var Y5=ut();function J5(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new Y5.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var k0=j(P0=>{"use strict";m();T();h();Object.defineProperty(P0,"__esModule",{value:!0});P0.UniqueInputFieldNamesRule=W5;var z5=ci(),H5=ut();function W5(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,z5.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new H5.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var x0=j(C0=>{"use strict";m();T();h();Object.defineProperty(C0,"__esModule",{value:!0});C0.UniqueOperationNamesRule=Z5;var X5=ut();function Z5(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new X5.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var M0=j(U0=>{"use strict";m();T();h();Object.defineProperty(U0,"__esModule",{value:!0});U0.UniqueOperationTypesRule=e9;var EM=ut();function e9(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new EM.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new EM.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var V0=j(B0=>{"use strict";m();T();h();Object.defineProperty(B0,"__esModule",{value:!0});B0.UniqueTypeNamesRule=t9;var gM=ut();function t9(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new gM.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new gM.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}});var $0=j(j0=>{"use strict";m();T();h();Object.defineProperty(j0,"__esModule",{value:!0});j0.UniqueVariableNamesRule=i9;var n9=lE(),r9=ut();function i9(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,n9.groupBy)(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new r9.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var G0=j(K0=>{"use strict";m();T();h();Object.defineProperty(K0,"__esModule",{value:!0});K0.ValuesOfCorrectTypeRule=u9;var s9=Tc(),Sh=En(),o9=yc(),a9=Nc(),Ho=ut(),q0=en(),dE=ds(),zo=tn();function u9(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,zo.getNullableType)(e.getParentInputType());if(!(0,zo.isListType)(r))return Sl(e,n),!1},ObjectValue(n){let r=(0,zo.getNamedType)(e.getInputType());if(!(0,zo.isInputObjectType)(r))return Sl(e,n),!1;let i=(0,o9.keyMap)(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&(0,zo.isRequiredInputField)(s)){let u=(0,Sh.inspect)(s.type);e.reportError(new Ho.GraphQLError(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&c9(e,n,r,i,t)},ObjectField(n){let r=(0,zo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,zo.isInputObjectType)(r)){let s=(0,a9.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Ho.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,s9.didYouMean)(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,zo.isNonNullType)(r)&&e.reportError(new Ho.GraphQLError(`Expected value of type "${(0,Sh.inspect)(r)}", found ${(0,dE.print)(n)}.`,{nodes:n}))},EnumValue:n=>Sl(e,n),IntValue:n=>Sl(e,n),FloatValue:n=>Sl(e,n),StringValue:n=>Sl(e,n),BooleanValue:n=>Sl(e,n)}}function Sl(e,t){let n=e.getInputType();if(!n)return;let r=(0,zo.getNamedType)(n);if(!(0,zo.isLeafType)(r)){let i=(0,Sh.inspect)(n);e.reportError(new Ho.GraphQLError(`Expected value of type "${i}", found ${(0,dE.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=(0,Sh.inspect)(n);e.reportError(new Ho.GraphQLError(`Expected value of type "${s}", found ${(0,dE.print)(t)}.`,{nodes:t}))}}catch(i){let s=(0,Sh.inspect)(n);i instanceof Ho.GraphQLError?e.reportError(i):e.reportError(new Ho.GraphQLError(`Expected value of type "${s}", found ${(0,dE.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function c9(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new Ho.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===q0.Kind.NULL,p=(l==null?void 0:l.kind)===q0.Kind.VARIABLE;if(d){e.reportError(new Ho.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==q0.Kind.NON_NULL_TYPE&&e.reportError(new Ho.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var Y0=j(Q0=>{"use strict";m();T();h();Object.defineProperty(Q0,"__esModule",{value:!0});Q0.VariablesAreInputTypesRule=m9;var l9=ut(),d9=ds(),p9=tn(),f9=Jo();function m9(e){return{VariableDefinition(t){let n=(0,f9.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,p9.isInputType)(n)){let r=t.variable.name.value,i=(0,d9.print)(t.type);e.reportError(new l9.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var z0=j(J0=>{"use strict";m();T();h();Object.defineProperty(J0,"__esModule",{value:!0});J0.VariablesInAllowedPositionRule=N9;var IM=En(),h9=ut(),T9=en(),vM=tn(),_M=oh(),y9=Jo();function N9(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=(0,y9.typeFromAST)(d,l.type);if(p&&!E9(d,p,l.defaultValue,s,o)){let y=(0,IM.inspect)(p),N=(0,IM.inspect)(s);e.reportError(new h9.GraphQLError(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function E9(e,t,n,r,i){if((0,vM.isNonNullType)(r)&&!(0,vM.isNonNullType)(t)){if(!(n!=null&&n.kind!==T9.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,_M.isTypeSubTypeOf)(e,t,u)}return(0,_M.isTypeSubTypeOf)(e,t,r)}});var H0=j(Ic=>{"use strict";m();T();h();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.specifiedSDLRules=Ic.specifiedRules=Ic.recommendedRules=void 0;var g9=fS(),I9=hS(),v9=yS(),bM=NS(),OM=vS(),_9=bS(),SM=DS(),b9=RS(),O9=wS(),S9=PS(),D9=CS(),A9=US(),R9=BS(),F9=jS(),w9=WS(),L9=e0(),P9=n0(),DM=i0(),k9=o0(),C9=h0(),x9=N0(),AM=g0(),U9=v0(),RM=O0(),M9=D0(),B9=F0(),V9=L0(),FM=k0(),j9=x0(),$9=M0(),q9=V0(),K9=$0(),G9=G0(),Q9=Y0(),Y9=z0(),wM=Object.freeze([S9.MaxIntrospectionDepthRule]);Ic.recommendedRules=wM;var J9=Object.freeze([g9.ExecutableDefinitionsRule,j9.UniqueOperationNamesRule,b9.LoneAnonymousOperationRule,C9.SingleFieldSubscriptionsRule,SM.KnownTypeNamesRule,v9.FragmentsOnCompositeTypesRule,Q9.VariablesAreInputTypesRule,k9.ScalarLeafsRule,I9.FieldsOnCorrectTypeRule,V9.UniqueFragmentNamesRule,_9.KnownFragmentNamesRule,R9.NoUnusedFragmentsRule,L9.PossibleFragmentSpreadsRule,D9.NoFragmentCyclesRule,K9.UniqueVariableNamesRule,A9.NoUndefinedVariablesRule,F9.NoUnusedVariablesRule,OM.KnownDirectivesRule,RM.UniqueDirectivesPerLocationRule,bM.KnownArgumentNamesRule,AM.UniqueArgumentNamesRule,G9.ValuesOfCorrectTypeRule,DM.ProvidedRequiredArgumentsRule,Y9.VariablesInAllowedPositionRule,w9.OverlappingFieldsCanBeMergedRule,FM.UniqueInputFieldNamesRule,...wM]);Ic.specifiedRules=J9;var z9=Object.freeze([O9.LoneSchemaDefinitionRule,$9.UniqueOperationTypesRule,q9.UniqueTypeNamesRule,M9.UniqueEnumValueNamesRule,B9.UniqueFieldDefinitionNamesRule,x9.UniqueArgumentDefinitionNamesRule,U9.UniqueDirectiveNamesRule,SM.KnownTypeNamesRule,OM.KnownDirectivesRule,RM.UniqueDirectivesPerLocationRule,P9.PossibleTypeExtensionsRule,bM.KnownArgumentNamesOnDirectivesRule,AM.UniqueArgumentNamesRule,FM.UniqueInputFieldNamesRule,DM.ProvidedRequiredArgumentsOnDirectivesRule]);Ic.specifiedSDLRules=z9});var Z0=j(vc=>{"use strict";m();T();h();Object.defineProperty(vc,"__esModule",{value:!0});vc.ValidationContext=vc.SDLValidationContext=vc.ASTValidationContext=void 0;var LM=en(),H9=hl(),PM=XN(),Dh=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===LM.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===LM.Kind.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};vc.ASTValidationContext=Dh;var W0=class extends Dh{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};vc.SDLValidationContext=W0;var X0=class extends Dh{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new PM.TypeInfo(this._schema);(0,H9.visit)(t,(0,PM.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};vc.ValidationContext=X0});var mp=j(fp=>{"use strict";m();T();h();Object.defineProperty(fp,"__esModule",{value:!0});fp.assertValidSDL=t7;fp.assertValidSDLExtension=n7;fp.validate=e7;fp.validateSDL=eD;var W9=Oi(),X9=ut(),pE=hl(),Z9=yh(),kM=XN(),CM=H0(),xM=Z0();function e7(e,t,n=CM.specifiedRules,r,i=new kM.TypeInfo(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||(0,W9.devAssert)(!1,"Must provide document."),(0,Z9.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new xM.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new X9.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=(0,pE.visitInParallel)(n.map(y=>y(d)));try{(0,pE.visit)(t,(0,kM.visitWithTypeInfo)(i,p))}catch(y){if(y!==u)throw y}return l}function eD(e,t,n=CM.specifiedSDLRules){let r=[],i=new xM.SDLValidationContext(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return(0,pE.visit)(e,(0,pE.visitInParallel)(s)),r}function t7(e){let t=eD(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var fS=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new U8.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function j8(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,ur.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,di.inspect)(n)}.`,(r=pS(t,dS.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,ur.isObjectType)(i)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,di.inspect)(i)}.`,(s=pS(t,dS.OperationTypeNode.MUTATION))!==null&&s!==void 0?s:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,ur.isObjectType)(o)){var u;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,di.inspect)(o)}.`,(u=pS(t,dS.OperationTypeNode.SUBSCRIPTION))!==null&&u!==void 0?u:o.astNode)}}function pS(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function $8(e){for(let n of e.schema.getDirectives()){if(!(0,AU.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,di.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Rl(e,n);for(let r of n.args)if(Rl(e,r),(0,ur.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,di.inspect)(r.type)}.`,r.astNode),(0,ur.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[mS(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Rl(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function q8(e){let t=H8(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,ur.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,di.inspect)(r)}.`,r.astNode);continue}(0,M8.isIntrospectionType)(r)||Rl(e,r),(0,ur.isObjectType)(r)||(0,ur.isInterfaceType)(r)?(OU(e,r),SU(e,r)):(0,ur.isUnionType)(r)?Q8(e,r):(0,ur.isEnumType)(r)?Y8(e,r):(0,ur.isInputObjectType)(r)&&(J8(e,r),t(r))}}function OU(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Rl(e,o),!(0,ur.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,di.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let u of o.args){let l=u.name;if(Rl(e,u),!(0,ur.isInputType)(u.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,di.inspect)(u.type)}.`,(i=u.astNode)===null||i===void 0?void 0:i.type)}if((0,ur.isRequiredArgument)(u)&&u.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[mS(u.astNode),(s=u.astNode)===null||s===void 0?void 0:s.type])}}}}function SU(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,ur.isInterfaceType)(r)){e.reportError(`Type ${(0,di.inspect)(t)} must only implement Interface types, it cannot implement ${(0,di.inspect)(r)}.`,vh(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,vh(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,vh(t,r));continue}n[r.name]=!0,G8(e,t,r),K8(e,t,r)}}function K8(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,bU.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,s;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,di.inspect)(l.type)} but ${t.name}.${d} is type ${(0,di.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(let y of l.args){let N=y.name,I=p.args.find(S=>S.name===N);if(!I){e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,p.astNode]);continue}if(!(0,bU.isEqualType)(y.type,I.type)){var o,u;e.reportError(`Interface field argument ${n.name}.${d}(${N}:) expects type ${(0,di.inspect)(y.type)} but ${t.name}.${d}(${N}:) is type ${(0,di.inspect)(I.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(u=I.astNode)===null||u===void 0?void 0:u.type])}}for(let y of p.args){let N=y.name;!l.args.find(S=>S.name===N)&&(0,ur.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${N} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function G8(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...vh(n,i),...vh(t,n)])}function Q8(e,t){let n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,DU(t,i.name));continue}r[i.name]=!0,(0,ur.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,di.inspect)(i)}.`,DU(t,String(i)))}}function Y8(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Rl(e,r)}function J8(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(Rl(e,s),!(0,ur.isInputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,di.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}if((0,ur.isRequiredInputField)(s)&&s.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[mS(s.astNode),(i=s.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&z8(t,s,e)}}function z8(e,t,n){if((0,ur.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function H8(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(s){if(t[s.name])return;t[s.name]=!0,r[s.name]=n.length;let o=Object.values(s.getFields());for(let u of o)if((0,ur.isNonNullType)(u.type)&&(0,ur.isInputObjectType)(u.type.ofType)){let l=u.type.ofType,d=r[l.name];if(n.push(u),d===void 0)i(l);else{let p=n.slice(d),y=p.map(N=>N.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,p.map(N=>N.astNode))}n.pop()}r[s.name]=void 0}}function vh(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.interfaces)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t.name)}function DU(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(s=>{var o;return(o=s.types)!==null&&o!==void 0?o:[]}).filter(s=>s.name.value===t)}function mS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===AU.GraphQLDeprecatedDirective.name)}});var Jo=j(yS=>{"use strict";m();T();h();Object.defineProperty(yS,"__esModule",{value:!0});yS.typeFromAST=TS;var hS=en(),FU=tn();function TS(e,t){switch(t.kind){case hS.Kind.LIST_TYPE:{let n=TS(e,t.type);return n&&new FU.GraphQLList(n)}case hS.Kind.NON_NULL_TYPE:{let n=TS(e,t.type);return n&&new FU.GraphQLNonNull(n)}case hS.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var iE=j(bh=>{"use strict";m();T();h();Object.defineProperty(bh,"__esModule",{value:!0});bh.TypeInfo=void 0;bh.visitWithTypeInfo=Z8;var W8=Ko(),cr=en(),wU=Il(),lr=tn(),fp=Cs(),LU=Jo(),NS=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:X8,n&&((0,lr.isInputType)(n)&&this._inputTypeStack.push(n),(0,lr.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,lr.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){let n=this._schema;switch(t.kind){case cr.Kind.SELECTION_SET:{let i=(0,lr.getNamedType)(this.getType());this._parentTypeStack.push((0,lr.isCompositeType)(i)?i:void 0);break}case cr.Kind.FIELD:{let i=this.getParentType(),s,o;i&&(s=this._getFieldDef(n,i,t),s&&(o=s.type)),this._fieldDefStack.push(s),this._typeStack.push((0,lr.isOutputType)(o)?o:void 0);break}case cr.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case cr.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,lr.isObjectType)(i)?i:void 0);break}case cr.Kind.INLINE_FRAGMENT:case cr.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,s=i?(0,LU.typeFromAST)(n,i):(0,lr.getNamedType)(this.getType());this._typeStack.push((0,lr.isOutputType)(s)?s:void 0);break}case cr.Kind.VARIABLE_DEFINITION:{let i=(0,LU.typeFromAST)(n,t.type);this._inputTypeStack.push((0,lr.isInputType)(i)?i:void 0);break}case cr.Kind.ARGUMENT:{var r;let i,s,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(u=>u.name===t.name.value),i&&(s=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.LIST:{let i=(0,lr.getNullableType)(this.getInputType()),s=(0,lr.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.OBJECT_FIELD:{let i=(0,lr.getNamedType)(this.getInputType()),s,o;(0,lr.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(s=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,lr.isInputType)(s)?s:void 0);break}case cr.Kind.ENUM:{let i=(0,lr.getNamedType)(this.getInputType()),s;(0,lr.isEnumType)(i)&&(s=i.getValue(t.value)),this._enumValue=s;break}default:}}leave(t){switch(t.kind){case cr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case cr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case cr.Kind.DIRECTIVE:this._directive=null;break;case cr.Kind.OPERATION_DEFINITION:case cr.Kind.INLINE_FRAGMENT:case cr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case cr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case cr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case cr.Kind.LIST:case cr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case cr.Kind.ENUM:this._enumValue=null;break;default:}}};bh.TypeInfo=NS;function X8(e,t,n){let r=n.name.value;if(r===fp.SchemaMetaFieldDef.name&&e.getQueryType()===t)return fp.SchemaMetaFieldDef;if(r===fp.TypeMetaFieldDef.name&&e.getQueryType()===t)return fp.TypeMetaFieldDef;if(r===fp.TypeNameMetaFieldDef.name&&(0,lr.isCompositeType)(t))return fp.TypeNameMetaFieldDef;if((0,lr.isObjectType)(t)||(0,lr.isInterfaceType)(t))return t.getFields()[r]}function Z8(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,wU.getEnterLeaveForKind)(t,r.kind).enter;if(i){let s=i.apply(t,n);return s!==void 0&&(e.leave(r),(0,W8.isNode)(s)&&e.enter(s)),s}},leave(...n){let r=n[0],i=(0,wU.getEnterLeaveForKind)(t,r.kind).leave,s;return i&&(s=i.apply(t,n)),e.leave(r),s}}}});var Fl=j(Us=>{"use strict";m();T();h();Object.defineProperty(Us,"__esModule",{value:!0});Us.isConstValueNode=ES;Us.isDefinitionNode=eX;Us.isExecutableDefinitionNode=PU;Us.isSelectionNode=tX;Us.isTypeDefinitionNode=CU;Us.isTypeExtensionNode=MU;Us.isTypeNode=nX;Us.isTypeSystemDefinitionNode=xU;Us.isTypeSystemExtensionNode=UU;Us.isValueNode=kU;var nn=en();function eX(e){return PU(e)||xU(e)||UU(e)}function PU(e){return e.kind===nn.Kind.OPERATION_DEFINITION||e.kind===nn.Kind.FRAGMENT_DEFINITION}function tX(e){return e.kind===nn.Kind.FIELD||e.kind===nn.Kind.FRAGMENT_SPREAD||e.kind===nn.Kind.INLINE_FRAGMENT}function kU(e){return e.kind===nn.Kind.VARIABLE||e.kind===nn.Kind.INT||e.kind===nn.Kind.FLOAT||e.kind===nn.Kind.STRING||e.kind===nn.Kind.BOOLEAN||e.kind===nn.Kind.NULL||e.kind===nn.Kind.ENUM||e.kind===nn.Kind.LIST||e.kind===nn.Kind.OBJECT}function ES(e){return kU(e)&&(e.kind===nn.Kind.LIST?e.values.some(ES):e.kind===nn.Kind.OBJECT?e.fields.some(t=>ES(t.value)):e.kind!==nn.Kind.VARIABLE)}function nX(e){return e.kind===nn.Kind.NAMED_TYPE||e.kind===nn.Kind.LIST_TYPE||e.kind===nn.Kind.NON_NULL_TYPE}function xU(e){return e.kind===nn.Kind.SCHEMA_DEFINITION||CU(e)||e.kind===nn.Kind.DIRECTIVE_DEFINITION}function CU(e){return e.kind===nn.Kind.SCALAR_TYPE_DEFINITION||e.kind===nn.Kind.OBJECT_TYPE_DEFINITION||e.kind===nn.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nn.Kind.UNION_TYPE_DEFINITION||e.kind===nn.Kind.ENUM_TYPE_DEFINITION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_DEFINITION}function UU(e){return e.kind===nn.Kind.SCHEMA_EXTENSION||MU(e)}function MU(e){return e.kind===nn.Kind.SCALAR_TYPE_EXTENSION||e.kind===nn.Kind.OBJECT_TYPE_EXTENSION||e.kind===nn.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nn.Kind.UNION_TYPE_EXTENSION||e.kind===nn.Kind.ENUM_TYPE_EXTENSION||e.kind===nn.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var IS=j(gS=>{"use strict";m();T();h();Object.defineProperty(gS,"__esModule",{value:!0});gS.ExecutableDefinitionsRule=sX;var rX=ct(),BU=en(),iX=Fl();function sX(e){return{Document(t){for(let n of t.definitions)if(!(0,iX.isExecutableDefinitionNode)(n)){let r=n.kind===BU.Kind.SCHEMA_DEFINITION||n.kind===BU.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new rX.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var _S=j(vS=>{"use strict";m();T();h();Object.defineProperty(vS,"__esModule",{value:!0});vS.FieldsOnCorrectTypeRule=cX;var VU=vc(),oX=ih(),aX=bc(),uX=ct(),Oh=tn();function cX(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),s=t.name.value,o=(0,VU.didYouMean)("to use an inline fragment on",lX(i,n,s));o===""&&(o=(0,VU.didYouMean)(dX(n,s))),e.reportError(new uX.GraphQLError(`Cannot query field "${s}" on type "${n.name}".`+o,{nodes:t}))}}}}function lX(e,t,n){if(!(0,Oh.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let u of o.getInterfaces()){var s;u.getFields()[n]&&(r.add(u),i[u.name]=((s=i[u.name])!==null&&s!==void 0?s:0)+1)}}return[...r].sort((o,u)=>{let l=i[u.name]-i[o.name];return l!==0?l:(0,Oh.isInterfaceType)(o)&&e.isSubType(o,u)?-1:(0,Oh.isInterfaceType)(u)&&e.isSubType(u,o)?1:(0,oX.naturalCompare)(o.name,u.name)}).map(o=>o.name)}function dX(e,t){if((0,Oh.isObjectType)(e)||(0,Oh.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,aX.suggestionList)(t,n)}return[]}});var OS=j(bS=>{"use strict";m();T();h();Object.defineProperty(bS,"__esModule",{value:!0});bS.FragmentsOnCompositeTypesRule=pX;var jU=ct(),$U=ds(),qU=tn(),KU=Jo();function pX(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,KU.typeFromAST)(e.getSchema(),n);if(r&&!(0,qU.isCompositeType)(r)){let i=(0,$U.print)(n);e.reportError(new jU.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,KU.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,qU.isCompositeType)(n)){let r=(0,$U.print)(t.typeCondition);e.reportError(new jU.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var SS=j(sE=>{"use strict";m();T();h();Object.defineProperty(sE,"__esModule",{value:!0});sE.KnownArgumentNamesOnDirectivesRule=JU;sE.KnownArgumentNamesRule=hX;var GU=vc(),QU=bc(),YU=ct(),fX=en(),mX=qi();function hX(e){return Q(k({},JU(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let s=t.name.value,o=r.args.map(l=>l.name),u=(0,QU.suggestionList)(s,o);e.reportError(new YU.GraphQLError(`Unknown argument "${s}" on field "${i.name}.${r.name}".`+(0,GU.didYouMean)(u),{nodes:t}))}}})}function JU(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():mX.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(u=>u.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===fX.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=o.arguments)!==null&&s!==void 0?s:[];t[o.name.value]=u.map(l=>l.name.value)}return{Directive(o){let u=o.name.value,l=t[u];if(o.arguments&&l)for(let d of o.arguments){let p=d.name.value;if(!l.includes(p)){let y=(0,QU.suggestionList)(p,l);e.reportError(new YU.GraphQLError(`Unknown argument "${p}" on directive "@${u}".`+(0,GU.didYouMean)(y),{nodes:d}))}}return!1}}}});var FS=j(RS=>{"use strict";m();T();h();Object.defineProperty(RS,"__esModule",{value:!0});RS.KnownDirectivesRule=NX;var TX=En(),DS=ci(),zU=ct(),AS=Ko(),Pr=dp(),jn=en(),yX=qi();function NX(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():yX.specifiedDirectives;for(let s of r)t[s.name]=s.locations;let i=e.getDocument().definitions;for(let s of i)s.kind===jn.Kind.DIRECTIVE_DEFINITION&&(t[s.name.value]=s.locations.map(o=>o.value));return{Directive(s,o,u,l,d){let p=s.name.value,y=t[p];if(!y){e.reportError(new zU.GraphQLError(`Unknown directive "@${p}".`,{nodes:s}));return}let N=EX(d);N&&!y.includes(N)&&e.reportError(new zU.GraphQLError(`Directive "@${p}" may not be used on ${N}.`,{nodes:s}))}}}function EX(e){let t=e[e.length-1];switch("kind"in t||(0,DS.invariant)(!1),t.kind){case jn.Kind.OPERATION_DEFINITION:return gX(t.operation);case jn.Kind.FIELD:return Pr.DirectiveLocation.FIELD;case jn.Kind.FRAGMENT_SPREAD:return Pr.DirectiveLocation.FRAGMENT_SPREAD;case jn.Kind.INLINE_FRAGMENT:return Pr.DirectiveLocation.INLINE_FRAGMENT;case jn.Kind.FRAGMENT_DEFINITION:return Pr.DirectiveLocation.FRAGMENT_DEFINITION;case jn.Kind.VARIABLE_DEFINITION:return Pr.DirectiveLocation.VARIABLE_DEFINITION;case jn.Kind.SCHEMA_DEFINITION:case jn.Kind.SCHEMA_EXTENSION:return Pr.DirectiveLocation.SCHEMA;case jn.Kind.SCALAR_TYPE_DEFINITION:case jn.Kind.SCALAR_TYPE_EXTENSION:return Pr.DirectiveLocation.SCALAR;case jn.Kind.OBJECT_TYPE_DEFINITION:case jn.Kind.OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.OBJECT;case jn.Kind.FIELD_DEFINITION:return Pr.DirectiveLocation.FIELD_DEFINITION;case jn.Kind.INTERFACE_TYPE_DEFINITION:case jn.Kind.INTERFACE_TYPE_EXTENSION:return Pr.DirectiveLocation.INTERFACE;case jn.Kind.UNION_TYPE_DEFINITION:case jn.Kind.UNION_TYPE_EXTENSION:return Pr.DirectiveLocation.UNION;case jn.Kind.ENUM_TYPE_DEFINITION:case jn.Kind.ENUM_TYPE_EXTENSION:return Pr.DirectiveLocation.ENUM;case jn.Kind.ENUM_VALUE_DEFINITION:return Pr.DirectiveLocation.ENUM_VALUE;case jn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case jn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Pr.DirectiveLocation.INPUT_OBJECT;case jn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,DS.invariant)(!1),n.kind===jn.Kind.INPUT_OBJECT_TYPE_DEFINITION?Pr.DirectiveLocation.INPUT_FIELD_DEFINITION:Pr.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,DS.invariant)(!1,"Unexpected kind: "+(0,TX.inspect)(t.kind))}}function gX(e){switch(e){case AS.OperationTypeNode.QUERY:return Pr.DirectiveLocation.QUERY;case AS.OperationTypeNode.MUTATION:return Pr.DirectiveLocation.MUTATION;case AS.OperationTypeNode.SUBSCRIPTION:return Pr.DirectiveLocation.SUBSCRIPTION}}});var LS=j(wS=>{"use strict";m();T();h();Object.defineProperty(wS,"__esModule",{value:!0});wS.KnownFragmentNamesRule=vX;var IX=ct();function vX(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new IX.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var xS=j(kS=>{"use strict";m();T();h();Object.defineProperty(kS,"__esModule",{value:!0});kS.KnownTypeNamesRule=AX;var _X=vc(),bX=bc(),OX=ct(),PS=Fl(),SX=Cs(),DX=Yo();function AX(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let s of e.getDocument().definitions)(0,PS.isTypeDefinitionNode)(s)&&(r[s.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(s,o,u,l,d){let p=s.name.value;if(!n[p]&&!r[p]){var y;let N=(y=d[2])!==null&&y!==void 0?y:u,I=N!=null&&RX(N);if(I&&HU.includes(p))return;let S=(0,bX.suggestionList)(p,I?HU.concat(i):i);e.reportError(new OX.GraphQLError(`Unknown type "${p}".`+(0,_X.didYouMean)(S),{nodes:s}))}}}}var HU=[...DX.specifiedScalarTypes,...SX.introspectionTypes].map(e=>e.name);function RX(e){return"kind"in e&&((0,PS.isTypeSystemDefinitionNode)(e)||(0,PS.isTypeSystemExtensionNode)(e))}});var US=j(CS=>{"use strict";m();T();h();Object.defineProperty(CS,"__esModule",{value:!0});CS.LoneAnonymousOperationRule=LX;var FX=ct(),wX=en();function LX(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===wX.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new FX.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var BS=j(MS=>{"use strict";m();T();h();Object.defineProperty(MS,"__esModule",{value:!0});MS.LoneSchemaDefinitionRule=PX;var WU=ct();function PX(e){var t,n,r;let i=e.getSchema(),s=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition(u){if(s){e.reportError(new WU.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:u}));return}o>0&&e.reportError(new WU.GraphQLError("Must provide only one schema definition.",{nodes:u})),++o}}}});var jS=j(VS=>{"use strict";m();T();h();Object.defineProperty(VS,"__esModule",{value:!0});VS.MaxIntrospectionDepthRule=CX;var kX=ct(),XU=en(),xX=3;function CX(e){function t(n,r=Object.create(null),i=0){if(n.kind===XU.Kind.FRAGMENT_SPREAD){let s=n.name.value;if(r[s]===!0)return!1;let o=e.getFragment(s);if(!o)return!1;try{return r[s]=!0,t(o,r,i)}finally{r[s]=void 0}}if(n.kind===XU.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=xX))return!0;if("selectionSet"in n&&n.selectionSet){for(let s of n.selectionSet.selections)if(t(s,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new kX.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var qS=j($S=>{"use strict";m();T();h();Object.defineProperty($S,"__esModule",{value:!0});$S.NoFragmentCyclesRule=MX;var UX=ct();function MX(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(s){return i(s),!1}};function i(s){if(t[s.name.value])return;let o=s.name.value;t[o]=!0;let u=e.getFragmentSpreads(s.selectionSet);if(u.length!==0){r[o]=n.length;for(let l of u){let d=l.name.value,p=r[d];if(n.push(l),p===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(p),N=y.slice(0,-1).map(I=>'"'+I.name.value+'"').join(", ");e.reportError(new UX.GraphQLError(`Cannot spread fragment "${d}" within itself`+(N!==""?` via ${N}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var GS=j(KS=>{"use strict";m();T();h();Object.defineProperty(KS,"__esModule",{value:!0});KS.NoUndefinedVariablesRule=VX;var BX=ct();function VX(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i}of r){let s=i.name.value;t[s]!==!0&&e.reportError(new BX.GraphQLError(n.name?`Variable "$${s}" is not defined by operation "${n.name.value}".`:`Variable "$${s}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var YS=j(QS=>{"use strict";m();T();h();Object.defineProperty(QS,"__esModule",{value:!0});QS.NoUnusedFragmentsRule=$X;var jX=ct();function $X(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let s of e.getRecursivelyReferencedFragments(i))r[s.name.value]=!0;for(let i of n){let s=i.name.value;r[s]!==!0&&e.reportError(new jX.GraphQLError(`Fragment "${s}" is never used.`,{nodes:i}))}}}}}});var zS=j(JS=>{"use strict";m();T();h();Object.defineProperty(JS,"__esModule",{value:!0});JS.NoUnusedVariablesRule=KX;var qX=ct();function KX(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:s}of i)r[s.name.value]=!0;for(let s of t){let o=s.variable.name.value;r[o]!==!0&&e.reportError(new qX.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:s}))}}},VariableDefinition(n){t.push(n)}}}});var XS=j(WS=>{"use strict";m();T();h();Object.defineProperty(WS,"__esModule",{value:!0});WS.sortValueNode=HS;var GX=ih(),$a=en();function HS(e){switch(e.kind){case $a.Kind.OBJECT:return Q(k({},e),{fields:QX(e.fields)});case $a.Kind.LIST:return Q(k({},e),{values:e.values.map(HS)});case $a.Kind.INT:case $a.Kind.FLOAT:case $a.Kind.STRING:case $a.Kind.BOOLEAN:case $a.Kind.NULL:case $a.Kind.ENUM:case $a.Kind.VARIABLE:return e}}function QX(e){return e.map(t=>Q(k({},t),{value:HS(t.value)})).sort((t,n)=>(0,GX.naturalCompare)(t.name.value,n.name.value))}});var s0=j(i0=>{"use strict";m();T();h();Object.defineProperty(i0,"__esModule",{value:!0});i0.OverlappingFieldsCanBeMergedRule=HX;var ZU=En(),YX=ct(),ZS=en(),JX=ds(),Ki=tn(),zX=XS(),tM=Jo();function nM(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+nM(n)).join(" and "):e}function HX(e){let t=new n0,n=new Map;return{SelectionSet(r){let i=WX(e,n,t,e.getParentType(),r);for(let[[s,o],u,l]of i){let d=nM(o);e.reportError(new YX.GraphQLError(`Fields "${s}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:u.concat(l)}))}}}}function WX(e,t,n,r,i){let s=[],[o,u]=uE(e,t,r,i);if(ZX(e,s,t,n,o),u.length!==0)for(let l=0;l1)for(let u=0;u[s.value,o]));return n.every(s=>{let o=s.value,u=i.get(s.name.value);return u===void 0?!1:eM(o)===eM(u)})}function eM(e){return(0,JX.print)((0,zX.sortValueNode)(e))}function e0(e,t){return(0,Ki.isListType)(e)?(0,Ki.isListType)(t)?e0(e.ofType,t.ofType):!0:(0,Ki.isListType)(t)?!0:(0,Ki.isNonNullType)(e)?(0,Ki.isNonNullType)(t)?e0(e.ofType,t.ofType):!0:(0,Ki.isNonNullType)(t)?!0:(0,Ki.isLeafType)(e)||(0,Ki.isLeafType)(t)?e!==t:!1}function uE(e,t,n,r){let i=t.get(r);if(i)return i;let s=Object.create(null),o=Object.create(null);iM(e,n,r,s,o);let u=[s,Object.keys(o)];return t.set(r,u),u}function t0(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,tM.typeFromAST)(e.getSchema(),n.typeCondition);return uE(e,t,i,n.selectionSet)}function iM(e,t,n,r,i){for(let s of n.selections)switch(s.kind){case ZS.Kind.FIELD:{let o=s.name.value,u;((0,Ki.isObjectType)(t)||(0,Ki.isInterfaceType)(t))&&(u=t.getFields()[o]);let l=s.alias?s.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,s,u]);break}case ZS.Kind.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case ZS.Kind.INLINE_FRAGMENT:{let o=s.typeCondition,u=o?(0,tM.typeFromAST)(e.getSchema(),o):t;iM(e,u,s.selectionSet,r,i);break}}}function t5(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var n0=class{constructor(){this._data=new Map}has(t,n,r){var i;let[s,o]=t{"use strict";m();T();h();Object.defineProperty(a0,"__esModule",{value:!0});a0.PossibleFragmentSpreadsRule=r5;var cE=En(),sM=ct(),o0=tn(),oM=ph(),n5=Jo();function r5(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,o0.isCompositeType)(n)&&(0,o0.isCompositeType)(r)&&!(0,oM.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,cE.inspect)(r),s=(0,cE.inspect)(n);e.reportError(new sM.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=i5(e,n),i=e.getParentType();if(r&&i&&!(0,oM.doTypesOverlap)(e.getSchema(),r,i)){let s=(0,cE.inspect)(i),o=(0,cE.inspect)(r);e.reportError(new sM.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function i5(e,t){let n=e.getFragment(t);if(n){let r=(0,n5.typeFromAST)(e.getSchema(),n.typeCondition);if((0,o0.isCompositeType)(r))return r}}});var l0=j(c0=>{"use strict";m();T();h();Object.defineProperty(c0,"__esModule",{value:!0});c0.PossibleTypeExtensionsRule=u5;var s5=vc(),uM=En(),cM=ci(),o5=bc(),aM=ct(),zn=en(),a5=Fl(),mp=tn();function u5(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,a5.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let s=i.name.value,o=n[s],u=t==null?void 0:t.getType(s),l;if(o?l=c5[o.kind]:u&&(l=l5(u)),l){if(l!==i.kind){let d=d5(i.kind);e.reportError(new aM.GraphQLError(`Cannot extend non-${d} type "${s}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(k(k({},n),t==null?void 0:t.getTypeMap())),p=(0,o5.suggestionList)(s,d);e.reportError(new aM.GraphQLError(`Cannot extend type "${s}" because it is not defined.`+(0,s5.didYouMean)(p),{nodes:i.name}))}}}var c5={[zn.Kind.SCALAR_TYPE_DEFINITION]:zn.Kind.SCALAR_TYPE_EXTENSION,[zn.Kind.OBJECT_TYPE_DEFINITION]:zn.Kind.OBJECT_TYPE_EXTENSION,[zn.Kind.INTERFACE_TYPE_DEFINITION]:zn.Kind.INTERFACE_TYPE_EXTENSION,[zn.Kind.UNION_TYPE_DEFINITION]:zn.Kind.UNION_TYPE_EXTENSION,[zn.Kind.ENUM_TYPE_DEFINITION]:zn.Kind.ENUM_TYPE_EXTENSION,[zn.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zn.Kind.INPUT_OBJECT_TYPE_EXTENSION};function l5(e){if((0,mp.isScalarType)(e))return zn.Kind.SCALAR_TYPE_EXTENSION;if((0,mp.isObjectType)(e))return zn.Kind.OBJECT_TYPE_EXTENSION;if((0,mp.isInterfaceType)(e))return zn.Kind.INTERFACE_TYPE_EXTENSION;if((0,mp.isUnionType)(e))return zn.Kind.UNION_TYPE_EXTENSION;if((0,mp.isEnumType)(e))return zn.Kind.ENUM_TYPE_EXTENSION;if((0,mp.isInputObjectType)(e))return zn.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,cM.invariant)(!1,"Unexpected type: "+(0,uM.inspect)(e))}function d5(e){switch(e){case zn.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zn.Kind.OBJECT_TYPE_EXTENSION:return"object";case zn.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zn.Kind.UNION_TYPE_EXTENSION:return"union";case zn.Kind.ENUM_TYPE_EXTENSION:return"enum";case zn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,cM.invariant)(!1,"Unexpected kind: "+(0,uM.inspect)(e))}}});var p0=j(lE=>{"use strict";m();T();h();Object.defineProperty(lE,"__esModule",{value:!0});lE.ProvidedRequiredArgumentsOnDirectivesRule=mM;lE.ProvidedRequiredArgumentsRule=m5;var dM=En(),lM=_c(),pM=ct(),fM=en(),p5=ds(),d0=tn(),f5=qi();function m5(e){return Q(k({},mM(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(s=>s.name.value));for(let s of r.args)if(!i.has(s.name)&&(0,d0.isRequiredArgument)(s)){let o=(0,dM.inspect)(s.type);e.reportError(new pM.GraphQLError(`Field "${r.name}" argument "${s.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function mM(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:f5.specifiedDirectives;for(let u of i)n[u.name]=(0,lM.keyMap)(u.args.filter(d0.isRequiredArgument),l=>l.name);let s=e.getDocument().definitions;for(let u of s)if(u.kind===fM.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=u.arguments)!==null&&o!==void 0?o:[];n[u.name.value]=(0,lM.keyMap)(l.filter(h5),d=>d.name.value)}return{Directive:{leave(u){let l=u.name.value,d=n[l];if(d){var p;let y=(p=u.arguments)!==null&&p!==void 0?p:[],N=new Set(y.map(I=>I.name.value));for(let[I,S]of Object.entries(d))if(!N.has(I)){let C=(0,d0.isType)(S.type)?(0,dM.inspect)(S.type):(0,p5.print)(S.type);e.reportError(new pM.GraphQLError(`Directive "@${l}" argument "${I}" of type "${C}" is required, but it was not provided.`,{nodes:u}))}}}}}}function h5(e){return e.type.kind===fM.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var m0=j(f0=>{"use strict";m();T();h();Object.defineProperty(f0,"__esModule",{value:!0});f0.ScalarLeafsRule=T5;var hM=En(),TM=ct(),yM=tn();function T5(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,yM.isLeafType)((0,yM.getNamedType)(n))){if(r){let i=t.name.value,s=(0,hM.inspect)(n);e.reportError(new TM.GraphQLError(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,s=(0,hM.inspect)(n);e.reportError(new TM.GraphQLError(`Field "${i}" of type "${s}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var T0=j(h0=>{"use strict";m();T();h();Object.defineProperty(h0,"__esModule",{value:!0});h0.printPathArray=y5;function y5(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Sh=j(dE=>{"use strict";m();T();h();Object.defineProperty(dE,"__esModule",{value:!0});dE.addPath=N5;dE.pathToArray=E5;function N5(e,t,n){return{prev:e,key:t,typename:n}}function E5(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var N0=j(y0=>{"use strict";m();T();h();Object.defineProperty(y0,"__esModule",{value:!0});y0.coerceInputValue=S5;var g5=vc(),pE=En(),I5=ci(),v5=eE(),_5=qo(),ho=Sh(),b5=T0(),O5=bc(),qa=ct(),Dh=tn();function S5(e,t,n=D5){return Ah(e,t,n,void 0)}function D5(e,t,n){let r="Invalid value "+(0,pE.inspect)(t);throw e.length>0&&(r+=` at "value${(0,b5.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function Ah(e,t,n,r){if((0,Dh.isNonNullType)(t)){if(e!=null)return Ah(e,t.ofType,n,r);n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected non-nullable type "${(0,pE.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Dh.isListType)(t)){let i=t.ofType;return(0,v5.isIterableObject)(e)?Array.from(e,(s,o)=>{let u=(0,ho.addPath)(r,o,void 0);return Ah(s,i,n,u)}):[Ah(e,i,n,r)]}if((0,Dh.isInputObjectType)(t)){if(!(0,_5.isObjectLike)(e)){n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},s=t.getFields();for(let o of Object.values(s)){let u=e[o.name];if(u===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Dh.isNonNullType)(o.type)){let l=(0,pE.inspect)(o.type);n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ah(u,o.type,n,(0,ho.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!s[o]){let u=(0,O5.suggestionList)(o,Object.keys(t.getFields()));n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,g5.didYouMean)(u)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let u=o[0],l=i[u];l===null&&n((0,ho.pathToArray)(r).concat(u),l,new qa.GraphQLError(`Field "${u}" must be non-null.`))}return i}if((0,Dh.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(s){s instanceof qa.GraphQLError?n((0,ho.pathToArray)(r),e,s):n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}". `+s.message,{originalError:s}));return}return i===void 0&&n((0,ho.pathToArray)(r),e,new qa.GraphQLError(`Expected type "${t.name}".`)),i}(0,I5.invariant)(!1,"Unexpected input type: "+(0,pE.inspect)(t))}});var Fh=j(E0=>{"use strict";m();T();h();Object.defineProperty(E0,"__esModule",{value:!0});E0.valueFromAST=Rh;var A5=En(),R5=ci(),F5=_c(),hp=en(),wl=tn();function Rh(e,t,n){if(e){if(e.kind===hp.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,wl.isNonNullType)(t)?void 0:i}if((0,wl.isNonNullType)(t))return e.kind===hp.Kind.NULL?void 0:Rh(e,t.ofType,n);if(e.kind===hp.Kind.NULL)return null;if((0,wl.isListType)(t)){let r=t.ofType;if(e.kind===hp.Kind.LIST){let s=[];for(let o of e.values)if(NM(o,n)){if((0,wl.isNonNullType)(r))return;s.push(null)}else{let u=Rh(o,r,n);if(u===void 0)return;s.push(u)}return s}let i=Rh(e,r,n);return i===void 0?void 0:[i]}if((0,wl.isInputObjectType)(t)){if(e.kind!==hp.Kind.OBJECT)return;let r=Object.create(null),i=(0,F5.keyMap)(e.fields,s=>s.name.value);for(let s of Object.values(t.getFields())){let o=i[s.name];if(!o||NM(o.value,n)){if(s.defaultValue!==void 0)r[s.name]=s.defaultValue;else if((0,wl.isNonNullType)(s.type))return;continue}let u=Rh(o.value,s.type,n);if(u===void 0)return;r[s.name]=u}if(t.isOneOf){let s=Object.keys(r);if(s.length!==1||r[s[0]]===null)return}return r}if((0,wl.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,R5.invariant)(!1,"Unexpected input type: "+(0,A5.inspect)(t))}}function NM(e,t){return e.kind===hp.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Np=j(wh=>{"use strict";m();T();h();Object.defineProperty(wh,"__esModule",{value:!0});wh.getArgumentValues=vM;wh.getDirectiveValues=U5;wh.getVariableValues=x5;var Tp=En(),w5=_c(),L5=T0(),Ka=ct(),EM=en(),gM=ds(),yp=tn(),P5=N0(),k5=Jo(),IM=Fh();function x5(e,t,n,r){let i=[],s=r==null?void 0:r.maxErrors;try{let o=C5(e,t,n,u=>{if(s!=null&&i.length>=s)throw new Ka.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 C5(e,t,n,r){let i={};for(let s of t){let o=s.variable.name.value,u=(0,k5.typeFromAST)(e,s.type);if(!(0,yp.isInputType)(u)){let d=(0,gM.print)(s.type);r(new Ka.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!_M(n,o)){if(s.defaultValue)i[o]=(0,IM.valueFromAST)(s.defaultValue,u);else if((0,yp.isNonNullType)(u)){let d=(0,Tp.inspect)(u);r(new Ka.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:s}))}continue}let l=n[o];if(l===null&&(0,yp.isNonNullType)(u)){let d=(0,Tp.inspect)(u);r(new Ka.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:s}));continue}i[o]=(0,P5.coerceInputValue)(l,u,(d,p,y)=>{let N=`Variable "$${o}" got invalid value `+(0,Tp.inspect)(p);d.length>0&&(N+=` at "${o}${(0,L5.printPathArray)(d)}"`),r(new Ka.GraphQLError(N+"; "+y.message,{nodes:s,originalError:y}))})}return i}function vM(e,t,n){var r;let i={},s=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,w5.keyMap)(s,u=>u.name.value);for(let u of e.args){let l=u.name,d=u.type,p=o[l];if(!p){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,yp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of required type "${(0,Tp.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=p.value,N=y.kind===EM.Kind.NULL;if(y.kind===EM.Kind.VARIABLE){let S=y.name.value;if(n==null||!_M(n,S)){if(u.defaultValue!==void 0)i[l]=u.defaultValue;else if((0,yp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of required type "${(0,Tp.inspect)(d)}" was provided the variable "$${S}" which was not provided a runtime value.`,{nodes:y});continue}N=n[S]==null}if(N&&(0,yp.isNonNullType)(d))throw new Ka.GraphQLError(`Argument "${l}" of non-null type "${(0,Tp.inspect)(d)}" must not be null.`,{nodes:y});let I=(0,IM.valueFromAST)(y,d,n);if(I===void 0)throw new Ka.GraphQLError(`Argument "${l}" has invalid value ${(0,gM.print)(y)}.`,{nodes:y});i[l]=I}return i}function U5(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(s=>s.name.value===e.name);if(i)return vM(e,i,n)}function _M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var hE=j(mE=>{"use strict";m();T();h();Object.defineProperty(mE,"__esModule",{value:!0});mE.collectFields=V5;mE.collectSubfields=j5;var g0=en(),M5=tn(),bM=qi(),B5=Jo(),OM=Np();function V5(e,t,n,r,i){let s=new Map;return fE(e,t,n,r,i,s,new Set),s}function j5(e,t,n,r,i){let s=new Map,o=new Set;for(let u of i)u.selectionSet&&fE(e,t,n,r,u.selectionSet,s,o);return s}function fE(e,t,n,r,i,s,o){for(let u of i.selections)switch(u.kind){case g0.Kind.FIELD:{if(!I0(n,u))continue;let l=$5(u),d=s.get(l);d!==void 0?d.push(u):s.set(l,[u]);break}case g0.Kind.INLINE_FRAGMENT:{if(!I0(n,u)||!SM(e,u,r))continue;fE(e,t,n,r,u.selectionSet,s,o);break}case g0.Kind.FRAGMENT_SPREAD:{let l=u.name.value;if(o.has(l)||!I0(n,u))continue;o.add(l);let d=t[l];if(!d||!SM(e,d,r))continue;fE(e,t,n,r,d.selectionSet,s,o);break}}}function I0(e,t){let n=(0,OM.getDirectiveValues)(bM.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,OM.getDirectiveValues)(bM.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function SM(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,B5.typeFromAST)(e,r);return i===n?!0:(0,M5.isAbstractType)(i)?e.isSubType(i,n):!1}function $5(e){return e.alias?e.alias.value:e.name.value}});var _0=j(v0=>{"use strict";m();T();h();Object.defineProperty(v0,"__esModule",{value:!0});v0.SingleFieldSubscriptionsRule=G5;var DM=ct(),q5=en(),K5=hE();function G5(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),u=Object.create(null);for(let d of o.definitions)d.kind===q5.Kind.FRAGMENT_DEFINITION&&(u[d.name.value]=d);let l=(0,K5.collectFields)(n,u,s,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new DM.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new DM.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var TE=j(b0=>{"use strict";m();T();h();Object.defineProperty(b0,"__esModule",{value:!0});b0.groupBy=Q5;function Q5(e,t){let n=new Map;for(let r of e){let i=t(r),s=n.get(i);s===void 0?n.set(i,[r]):s.push(r)}return n}});var S0=j(O0=>{"use strict";m();T();h();Object.defineProperty(O0,"__esModule",{value:!0});O0.UniqueArgumentDefinitionNamesRule=z5;var Y5=TE(),J5=ct();function z5(e){return{DirectiveDefinition(r){var i;let s=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,s)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let s=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var u;let d=l.name.value,p=(u=l.arguments)!==null&&u!==void 0?u:[];n(`${s}.${d}`,p)}return!1}function n(r,i){let s=(0,Y5.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new J5.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:u.map(l=>l.name)}));return!1}}});var A0=j(D0=>{"use strict";m();T();h();Object.defineProperty(D0,"__esModule",{value:!0});D0.UniqueArgumentNamesRule=X5;var H5=TE(),W5=ct();function X5(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],s=(0,H5.groupBy)(i,o=>o.name.value);for(let[o,u]of s)u.length>1&&e.reportError(new W5.GraphQLError(`There can be only one argument named "${o}".`,{nodes:u.map(l=>l.name)}))}}});var F0=j(R0=>{"use strict";m();T();h();Object.defineProperty(R0,"__esModule",{value:!0});R0.UniqueDirectiveNamesRule=Z5;var AM=ct();function Z5(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new AM.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new AM.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var P0=j(L0=>{"use strict";m();T();h();Object.defineProperty(L0,"__esModule",{value:!0});L0.UniqueDirectivesPerLocationRule=n9;var e9=ct(),w0=en(),RM=Fl(),t9=qi();function n9(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():t9.specifiedDirectives;for(let u of r)t[u.name]=!u.isRepeatable;let i=e.getDocument().definitions;for(let u of i)u.kind===w0.Kind.DIRECTIVE_DEFINITION&&(t[u.name.value]=!u.repeatable);let s=Object.create(null),o=Object.create(null);return{enter(u){if(!("directives"in u)||!u.directives)return;let l;if(u.kind===w0.Kind.SCHEMA_DEFINITION||u.kind===w0.Kind.SCHEMA_EXTENSION)l=s;else if((0,RM.isTypeDefinitionNode)(u)||(0,RM.isTypeExtensionNode)(u)){let d=u.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of u.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new e9.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var x0=j(k0=>{"use strict";m();T();h();Object.defineProperty(k0,"__esModule",{value:!0});k0.UniqueEnumValueNamesRule=i9;var FM=ct(),r9=tn();function i9(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.values)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value,N=n[u];(0,r9.isEnumType)(N)&&N.getValue(y)?e.reportError(new FM.GraphQLError(`Enum value "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new FM.GraphQLError(`Enum value "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}});var M0=j(U0=>{"use strict";m();T();h();Object.defineProperty(U0,"__esModule",{value:!0});U0.UniqueFieldDefinitionNamesRule=s9;var wM=ct(),C0=tn();function s9(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(s){var o;let u=s.name.value;r[u]||(r[u]=Object.create(null));let l=(o=s.fields)!==null&&o!==void 0?o:[],d=r[u];for(let p of l){let y=p.name.value;o9(n[u],y)?e.reportError(new wM.GraphQLError(`Field "${u}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[y]?e.reportError(new wM.GraphQLError(`Field "${u}.${y}" can only be defined once.`,{nodes:[d[y],p.name]})):d[y]=p.name}return!1}}function o9(e,t){return(0,C0.isObjectType)(e)||(0,C0.isInterfaceType)(e)||(0,C0.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var V0=j(B0=>{"use strict";m();T();h();Object.defineProperty(B0,"__esModule",{value:!0});B0.UniqueFragmentNamesRule=u9;var a9=ct();function u9(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new a9.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var $0=j(j0=>{"use strict";m();T();h();Object.defineProperty(j0,"__esModule",{value:!0});j0.UniqueInputFieldNamesRule=d9;var c9=ci(),l9=ct();function d9(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,c9.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new l9.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var K0=j(q0=>{"use strict";m();T();h();Object.defineProperty(q0,"__esModule",{value:!0});q0.UniqueOperationNamesRule=f9;var p9=ct();function f9(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new p9.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var Q0=j(G0=>{"use strict";m();T();h();Object.defineProperty(G0,"__esModule",{value:!0});G0.UniqueOperationTypesRule=m9;var LM=ct();function m9(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(s){var o;let u=(o=s.operationTypes)!==null&&o!==void 0?o:[];for(let l of u){let d=l.operation,p=n[d];r[d]?e.reportError(new LM.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new LM.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var J0=j(Y0=>{"use strict";m();T();h();Object.defineProperty(Y0,"__esModule",{value:!0});Y0.UniqueTypeNamesRule=h9;var PM=ct();function h9(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let s=i.name.value;if(n!=null&&n.getType(s)){e.reportError(new PM.GraphQLError(`Type "${s}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[s]?e.reportError(new PM.GraphQLError(`There can be only one type named "${s}".`,{nodes:[t[s],i.name]})):t[s]=i.name,!1}}});var H0=j(z0=>{"use strict";m();T();h();Object.defineProperty(z0,"__esModule",{value:!0});z0.UniqueVariableNamesRule=N9;var T9=TE(),y9=ct();function N9(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,T9.groupBy)(r,s=>s.variable.name.value);for(let[s,o]of i)o.length>1&&e.reportError(new y9.GraphQLError(`There can be only one variable named "$${s}".`,{nodes:o.map(u=>u.variable.name)}))}}}});var Z0=j(X0=>{"use strict";m();T();h();Object.defineProperty(X0,"__esModule",{value:!0});X0.ValuesOfCorrectTypeRule=v9;var E9=vc(),Lh=En(),g9=_c(),I9=bc(),Ho=ct(),W0=en(),yE=ds(),zo=tn();function v9(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,zo.getNullableType)(e.getParentInputType());if(!(0,zo.isListType)(r))return Ll(e,n),!1},ObjectValue(n){let r=(0,zo.getNamedType)(e.getInputType());if(!(0,zo.isInputObjectType)(r))return Ll(e,n),!1;let i=(0,g9.keyMap)(n.fields,s=>s.name.value);for(let s of Object.values(r.getFields()))if(!i[s.name]&&(0,zo.isRequiredInputField)(s)){let u=(0,Lh.inspect)(s.type);e.reportError(new Ho.GraphQLError(`Field "${r.name}.${s.name}" of required type "${u}" was not provided.`,{nodes:n}))}r.isOneOf&&_9(e,n,r,i,t)},ObjectField(n){let r=(0,zo.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,zo.isInputObjectType)(r)){let s=(0,I9.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Ho.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,E9.didYouMean)(s),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,zo.isNonNullType)(r)&&e.reportError(new Ho.GraphQLError(`Expected value of type "${(0,Lh.inspect)(r)}", found ${(0,yE.print)(n)}.`,{nodes:n}))},EnumValue:n=>Ll(e,n),IntValue:n=>Ll(e,n),FloatValue:n=>Ll(e,n),StringValue:n=>Ll(e,n),BooleanValue:n=>Ll(e,n)}}function Ll(e,t){let n=e.getInputType();if(!n)return;let r=(0,zo.getNamedType)(n);if(!(0,zo.isLeafType)(r)){let i=(0,Lh.inspect)(n);e.reportError(new Ho.GraphQLError(`Expected value of type "${i}", found ${(0,yE.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let s=(0,Lh.inspect)(n);e.reportError(new Ho.GraphQLError(`Expected value of type "${s}", found ${(0,yE.print)(t)}.`,{nodes:t}))}}catch(i){let s=(0,Lh.inspect)(n);i instanceof Ho.GraphQLError?e.reportError(i):e.reportError(new Ho.GraphQLError(`Expected value of type "${s}", found ${(0,yE.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function _9(e,t,n,r,i){var s;let o=Object.keys(r);if(o.length!==1){e.reportError(new Ho.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(s=r[o[0]])===null||s===void 0?void 0:s.value,d=!l||l.kind===W0.Kind.NULL,p=(l==null?void 0:l.kind)===W0.Kind.VARIABLE;if(d){e.reportError(new Ho.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let y=l.name.value;i[y].type.kind!==W0.Kind.NON_NULL_TYPE&&e.reportError(new Ho.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var tD=j(eD=>{"use strict";m();T();h();Object.defineProperty(eD,"__esModule",{value:!0});eD.VariablesAreInputTypesRule=A9;var b9=ct(),O9=ds(),S9=tn(),D9=Jo();function A9(e){return{VariableDefinition(t){let n=(0,D9.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,S9.isInputType)(n)){let r=t.variable.name.value,i=(0,O9.print)(t.type);e.reportError(new b9.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var rD=j(nD=>{"use strict";m();T();h();Object.defineProperty(nD,"__esModule",{value:!0});nD.VariablesInAllowedPositionRule=L9;var kM=En(),R9=ct(),F9=en(),xM=tn(),CM=ph(),w9=Jo();function L9(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:s,defaultValue:o}of r){let u=i.name.value,l=t[u];if(l&&s){let d=e.getSchema(),p=(0,w9.typeFromAST)(d,l.type);if(p&&!P9(d,p,l.defaultValue,s,o)){let y=(0,kM.inspect)(p),N=(0,kM.inspect)(s);e.reportError(new R9.GraphQLError(`Variable "$${u}" of type "${y}" used in position expecting type "${N}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function P9(e,t,n,r,i){if((0,xM.isNonNullType)(r)&&!(0,xM.isNonNullType)(t)){if(!(n!=null&&n.kind!==F9.Kind.NULL)&&!(i!==void 0))return!1;let u=r.ofType;return(0,CM.isTypeSubTypeOf)(e,t,u)}return(0,CM.isTypeSubTypeOf)(e,t,r)}});var iD=j(Dc=>{"use strict";m();T();h();Object.defineProperty(Dc,"__esModule",{value:!0});Dc.specifiedSDLRules=Dc.specifiedRules=Dc.recommendedRules=void 0;var k9=IS(),x9=_S(),C9=OS(),UM=SS(),MM=FS(),U9=LS(),BM=xS(),M9=US(),B9=BS(),V9=jS(),j9=qS(),$9=GS(),q9=YS(),K9=zS(),G9=s0(),Q9=u0(),Y9=l0(),VM=p0(),J9=m0(),z9=_0(),H9=S0(),jM=A0(),W9=F0(),$M=P0(),X9=x0(),Z9=M0(),e7=V0(),qM=$0(),t7=K0(),n7=Q0(),r7=J0(),i7=H0(),s7=Z0(),o7=tD(),a7=rD(),KM=Object.freeze([V9.MaxIntrospectionDepthRule]);Dc.recommendedRules=KM;var u7=Object.freeze([k9.ExecutableDefinitionsRule,t7.UniqueOperationNamesRule,M9.LoneAnonymousOperationRule,z9.SingleFieldSubscriptionsRule,BM.KnownTypeNamesRule,C9.FragmentsOnCompositeTypesRule,o7.VariablesAreInputTypesRule,J9.ScalarLeafsRule,x9.FieldsOnCorrectTypeRule,e7.UniqueFragmentNamesRule,U9.KnownFragmentNamesRule,q9.NoUnusedFragmentsRule,Q9.PossibleFragmentSpreadsRule,j9.NoFragmentCyclesRule,i7.UniqueVariableNamesRule,$9.NoUndefinedVariablesRule,K9.NoUnusedVariablesRule,MM.KnownDirectivesRule,$M.UniqueDirectivesPerLocationRule,UM.KnownArgumentNamesRule,jM.UniqueArgumentNamesRule,s7.ValuesOfCorrectTypeRule,VM.ProvidedRequiredArgumentsRule,a7.VariablesInAllowedPositionRule,G9.OverlappingFieldsCanBeMergedRule,qM.UniqueInputFieldNamesRule,...KM]);Dc.specifiedRules=u7;var c7=Object.freeze([B9.LoneSchemaDefinitionRule,n7.UniqueOperationTypesRule,r7.UniqueTypeNamesRule,X9.UniqueEnumValueNamesRule,Z9.UniqueFieldDefinitionNamesRule,H9.UniqueArgumentDefinitionNamesRule,W9.UniqueDirectiveNamesRule,BM.KnownTypeNamesRule,MM.KnownDirectivesRule,$M.UniqueDirectivesPerLocationRule,Y9.PossibleTypeExtensionsRule,UM.KnownArgumentNamesOnDirectivesRule,jM.UniqueArgumentNamesRule,qM.UniqueInputFieldNamesRule,VM.ProvidedRequiredArgumentsOnDirectivesRule]);Dc.specifiedSDLRules=c7});var aD=j(Ac=>{"use strict";m();T();h();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ValidationContext=Ac.SDLValidationContext=Ac.ASTValidationContext=void 0;var GM=en(),l7=Il(),QM=iE(),Ph=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===GM.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let s of i.selections)s.kind===GM.Kind.FRAGMENT_SPREAD?n.push(s):s.selectionSet&&r.push(s.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],s;for(;s=i.pop();)for(let o of this.getFragmentSpreads(s)){let u=o.name.value;if(r[u]!==!0){r[u]=!0;let l=this.getFragment(u);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};Ac.ASTValidationContext=Ph;var sD=class extends Ph{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Ac.SDLValidationContext=sD;var oD=class extends Ph{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new QM.TypeInfo(this._schema);(0,l7.visit)(t,(0,QM.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(s){r.push({node:s,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}};Ac.ValidationContext=oD});var gp=j(Ep=>{"use strict";m();T();h();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.assertValidSDL=h7;Ep.assertValidSDLExtension=T7;Ep.validate=m7;Ep.validateSDL=uD;var d7=Oi(),p7=ct(),NE=Il(),f7=_h(),YM=iE(),JM=iD(),zM=aD();function m7(e,t,n=JM.specifiedRules,r,i=new YM.TypeInfo(e)){var s;let o=(s=r==null?void 0:r.maxErrors)!==null&&s!==void 0?s:100;t||(0,d7.devAssert)(!1,"Must provide document."),(0,f7.assertValidSchema)(e);let u=Object.freeze({}),l=[],d=new zM.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new p7.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(y)}),p=(0,NE.visitInParallel)(n.map(y=>y(d)));try{(0,NE.visit)(t,(0,YM.visitWithTypeInfo)(i,p))}catch(y){if(y!==u)throw y}return l}function uD(e,t,n=JM.specifiedSDLRules){let r=[],i=new zM.SDLValidationContext(e,t,o=>{r.push(o)}),s=n.map(o=>o(i));return(0,NE.visit)(e,(0,NE.visitInParallel)(s)),r}function h7(e){let t=uD(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function n7(e,t){let n=eD(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` +`))}function T7(e,t){let n=uD(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var BM=j(Tp=>{"use strict";m();T();h();Object.defineProperty(Tp,"__esModule",{value:!0});Tp.AccumulatorMap=void 0;Tp.mapValue=hp;Tp.extendSchemaImpl=r7;var Ve=(Le(),Me(je)),Ga=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Tp.AccumulatorMap=Ga;function hp(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function r7(e,t,n){var ae,te,ce,Ke;let r=[],i=new Ga,s=new Ga,o=new Ga,u=new Ga,l=new Ga,d=new Ga,p=[],y,N=[],I=!1;for(let Q of t.definitions){switch(Q.kind){case Ve.Kind.SCHEMA_DEFINITION:y=Q;break;case Ve.Kind.SCHEMA_EXTENSION:N.push(Q);break;case Ve.Kind.DIRECTIVE_DEFINITION:p.push(Q);break;case Ve.Kind.SCALAR_TYPE_DEFINITION:case Ve.Kind.OBJECT_TYPE_DEFINITION:case Ve.Kind.INTERFACE_TYPE_DEFINITION:case Ve.Kind.UNION_TYPE_DEFINITION:case Ve.Kind.ENUM_TYPE_DEFINITION:case Ve.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Q);break;case Ve.Kind.SCALAR_TYPE_EXTENSION:i.add(Q.name.value,Q);break;case Ve.Kind.OBJECT_TYPE_EXTENSION:s.add(Q.name.value,Q);break;case Ve.Kind.INTERFACE_TYPE_EXTENSION:o.add(Q.name.value,Q);break;case Ve.Kind.UNION_TYPE_EXTENSION:u.add(Q.name.value,Q);break;case Ve.Kind.ENUM_TYPE_EXTENSION:l.add(Q.name.value,Q);break;case Ve.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Q.name.value,Q);break;default:continue}I=!0}if(!I)return e;let O=new Map;for(let Q of e.types){let ee=se(Q);ee&&O.set(Q.name,ee)}for(let Q of r){let ee=Q.name.value;O.set(ee,(ae=UM.get(ee))!=null?ae:U(Q))}for(let[Q,ee]of s)O.set(Q,new Ve.GraphQLObjectType({name:Q,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Q,ee]of o)O.set(Q,new Ve.GraphQLInterfaceType({name:Q,interfaces:()=>on(ee),fields:()=>_n(ee),extensionASTNodes:ee}));for(let[Q,ee]of l)O.set(Q,new Ve.GraphQLEnumType({name:Q,values:kn(ee),extensionASTNodes:ee}));for(let[Q,ee]of u)O.set(Q,new Ve.GraphQLUnionType({name:Q,types:()=>$n(ee),extensionASTNodes:ee}));for(let[Q,ee]of i)O.set(Q,new Ve.GraphQLScalarType({name:Q,extensionASTNodes:ee}));for(let[Q,ee]of d)O.set(Q,new Ve.GraphQLInputObjectType({name:Q,fields:()=>Xr(ee),extensionASTNodes:ee}))}let x=k(k({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},y&&xt([y])),xt(N));return G(k({description:(ce=(te=y==null?void 0:y.description)==null?void 0:te.value)!=null?ce:e.description},x),{types:Array.from(O.values()),directives:[...e.directives.map(re),...p.map(vn)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(Ke=n==null?void 0:n.assumeValid)!=null?Ke:!1});function V(Q){return(0,Ve.isListType)(Q)?new Ve.GraphQLList(V(Q.ofType)):(0,Ve.isNonNullType)(Q)?new Ve.GraphQLNonNull(V(Q.ofType)):K(Q)}function K(Q){return O.get(Q.name)}function re(Q){if((0,Ve.isSpecifiedDirective)(Q))return Q;let ee=Q.toConfig();return new Ve.GraphQLDirective(G(k({},ee),{args:hp(ee.args,nt)}))}function se(Q){if((0,Ve.isIntrospectionType)(Q)||(0,Ve.isSpecifiedScalarType)(Q))return Q;if((0,Ve.isScalarType)(Q))return xe(Q);if((0,Ve.isObjectType)(Q))return ht(Q);if((0,Ve.isInterfaceType)(Q))return Ct(Q);if((0,Ve.isUnionType)(Q))return B(Q);if((0,Ve.isEnumType)(Q))return he(Q);if((0,Ve.isInputObjectType)(Q))return fe(Q)}function fe(Q){var Xe;let ee=Q.toConfig(),Ue=(Xe=d.get(ee.name))!=null?Xe:[];return new Ve.GraphQLInputObjectType(G(k({},ee),{fields:()=>k(k({},hp(ee.fields,$t=>G(k({},$t),{type:V($t.type)}))),Xr(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function he(Q){var Xe;let ee=Q.toConfig(),Ue=(Xe=l.get(Q.name))!=null?Xe:[];return new Ve.GraphQLEnumType(G(k({},ee),{values:k(k({},ee.values),kn(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function xe(Q){var $t,Je;let ee=Q.toConfig(),Ue=($t=i.get(ee.name))!=null?$t:[],Xe=ee.specifiedByURL;for(let Ht of Ue)Xe=(Je=MM(Ht))!=null?Je:Xe;return new Ve.GraphQLScalarType(G(k({},ee),{specifiedByURL:Xe,extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function ht(Q){var Xe;let ee=Q.toConfig(),Ue=(Xe=s.get(ee.name))!=null?Xe:[];return new Ve.GraphQLObjectType(G(k({},ee),{interfaces:()=>[...Q.getInterfaces().map(K),...on(Ue)],fields:()=>k(k({},hp(ee.fields,Te)),_n(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function Ct(Q){var Xe;let ee=Q.toConfig(),Ue=(Xe=o.get(ee.name))!=null?Xe:[];return new Ve.GraphQLInterfaceType(G(k({},ee),{interfaces:()=>[...Q.getInterfaces().map(K),...on(Ue)],fields:()=>k(k({},hp(ee.fields,Te)),_n(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function B(Q){var Xe;let ee=Q.toConfig(),Ue=(Xe=u.get(ee.name))!=null?Xe:[];return new Ve.GraphQLUnionType(G(k({},ee),{types:()=>[...Q.getTypes().map(K),...$n(Ue)],extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function Te(Q){return G(k({},Q),{type:V(Q.type),args:Q.args&&hp(Q.args,nt)})}function nt(Q){return G(k({},Q),{type:V(Q.type)})}function xt(Q){var Ue;let ee={};for(let Xe of Q){let $t=(Ue=Xe.operationTypes)!=null?Ue:[];for(let Je of $t)ee[Je.operation]=rn(Je.type)}return ee}function rn(Q){var Xe;let ee=Q.name.value,Ue=(Xe=UM.get(ee))!=null?Xe:O.get(ee);if(Ue===void 0)throw new Error(`Unknown type: "${ee}".`);return Ue}function wn(Q){return Q.kind===Ve.Kind.LIST_TYPE?new Ve.GraphQLList(wn(Q.type)):Q.kind===Ve.Kind.NON_NULL_TYPE?new Ve.GraphQLNonNull(wn(Q.type)):rn(Q)}function vn(Q){var ee;return new Ve.GraphQLDirective({name:Q.name.value,description:(ee=Q.description)==null?void 0:ee.value,locations:Q.locations.map(({value:Ue})=>Ue),isRepeatable:Q.repeatable,args:mi(Q.arguments),astNode:Q})}function _n(Q){var Ue,Xe;let ee=Object.create(null);for(let $t of Q){let Je=(Ue=$t.fields)!=null?Ue:[];for(let Ht of Je)ee[Ht.name.value]={type:wn(Ht.type),description:(Xe=Ht.description)==null?void 0:Xe.value,args:mi(Ht.arguments),deprecationReason:fE(Ht),astNode:Ht}}return ee}function mi(Q){var Xe;let ee=Q!=null?Q:[],Ue=Object.create(null);for(let $t of ee){let Je=wn($t.type);Ue[$t.name.value]={type:Je,description:(Xe=$t.description)==null?void 0:Xe.value,defaultValue:(0,Ve.valueFromAST)($t.defaultValue,Je),deprecationReason:fE($t),astNode:$t}}return Ue}function Xr(Q){var Ue,Xe;let ee=Object.create(null);for(let $t of Q){let Je=(Ue=$t.fields)!=null?Ue:[];for(let Ht of Je){let Ta=wn(Ht.type);ee[Ht.name.value]={type:Ta,description:(Xe=Ht.description)==null?void 0:Xe.value,defaultValue:(0,Ve.valueFromAST)(Ht.defaultValue,Ta),deprecationReason:fE(Ht),astNode:Ht}}}return ee}function kn(Q){var Ue,Xe;let ee=Object.create(null);for(let $t of Q){let Je=(Ue=$t.values)!=null?Ue:[];for(let Ht of Je)ee[Ht.name.value]={description:(Xe=Ht.description)==null?void 0:Xe.value,deprecationReason:fE(Ht),astNode:Ht}}return ee}function on(Q){return Q.flatMap(ee=>{var Ue,Xe;return(Xe=(Ue=ee.interfaces)==null?void 0:Ue.map(rn))!=null?Xe:[]})}function $n(Q){return Q.flatMap(ee=>{var Ue,Xe;return(Xe=(Ue=ee.types)==null?void 0:Ue.map(rn))!=null?Xe:[]})}function U(Q){var Ue,Xe,$t,Je,Ht,Ta,ki,ya,ud,Ao,Gr,Wi;let ee=Q.name.value;switch(Q.kind){case Ve.Kind.OBJECT_TYPE_DEFINITION:{let cn=(Ue=s.get(ee))!=null?Ue:[],Qr=[Q,...cn];return s.delete(ee),new Ve.GraphQLObjectType({name:ee,description:(Xe=Q.description)==null?void 0:Xe.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:Q,extensionASTNodes:cn})}case Ve.Kind.INTERFACE_TYPE_DEFINITION:{let cn=($t=o.get(ee))!=null?$t:[],Qr=[Q,...cn];return o.delete(ee),new Ve.GraphQLInterfaceType({name:ee,description:(Je=Q.description)==null?void 0:Je.value,interfaces:()=>on(Qr),fields:()=>_n(Qr),astNode:Q,extensionASTNodes:cn})}case Ve.Kind.ENUM_TYPE_DEFINITION:{let cn=(Ht=l.get(ee))!=null?Ht:[],Qr=[Q,...cn];return l.delete(ee),new Ve.GraphQLEnumType({name:ee,description:(Ta=Q.description)==null?void 0:Ta.value,values:kn(Qr),astNode:Q,extensionASTNodes:cn})}case Ve.Kind.UNION_TYPE_DEFINITION:{let cn=(ki=u.get(ee))!=null?ki:[],Qr=[Q,...cn];return u.delete(ee),new Ve.GraphQLUnionType({name:ee,description:(ya=Q.description)==null?void 0:ya.value,types:()=>$n(Qr),astNode:Q,extensionASTNodes:cn})}case Ve.Kind.SCALAR_TYPE_DEFINITION:{let cn=(ud=i.get(ee))!=null?ud:[];return i.delete(ee),new Ve.GraphQLScalarType({name:ee,description:(Ao=Q.description)==null?void 0:Ao.value,specifiedByURL:MM(Q),astNode:Q,extensionASTNodes:cn})}case Ve.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let cn=(Gr=d.get(ee))!=null?Gr:[],Qr=[Q,...cn];return d.delete(ee),new Ve.GraphQLInputObjectType({name:ee,description:(Wi=Q.description)==null?void 0:Wi.value,fields:()=>Xr(Qr),astNode:Q,extensionASTNodes:cn})}}}}var UM=new Map([...Ve.specifiedScalarTypes,...Ve.introspectionTypes].map(e=>[e.name,e]));function fE(e){let t=(0,Ve.getDirectiveValues)(Ve.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function MM(e){let t=(0,Ve.getDirectiveValues)(Ve.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var nD=j(tD=>{"use strict";m();T();h();Object.defineProperty(tD,"__esModule",{value:!0});tD.buildASTSchema=o7;var VM=(Le(),Me(je)),i7=mp(),s7=BM();function o7(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,i7.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,s7.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...VM.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new VM.GraphQLSchema(G(k({},r),{directives:i}))}});var ps=j(Dt=>{"use strict";m();T();h();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.maxOrScopes=void 0;Dt.areSetsEqual=u7;Dt.getAllMutualEntries=c7;Dt.getOrThrowError=l7;Dt.getAllSetDisparities=d7;Dt.getEntriesNotInHashSet=p7;Dt.doSetsIntersect=f7;Dt.subtractSourceSetFromTargetSet=m7;Dt.mapToArrayOfValues=h7;Dt.numberToOrdinal=T7;Dt.addIterableValuesToSet=Dl;Dt.addSetsAndReturnMutationBoolean=jM;Dt.kindToTypeString=y7;Dt.kindToConvertedTypeString=N7;Dt.fieldDatasToSimpleFieldDatas=E7;Dt.isNodeLeaf=g7;Dt.newEntityInterfaceFederationData=I7;Dt.upsertEntityInterfaceFederationData=v7;Dt.getValueOrDefault=$M;Dt.newEntityData=qM;Dt.upsertEntityDataProperties=_7;Dt.upsertEntityData=b7;Dt.newFieldAuthorizationData=iD;Dt.resetAuthorizationData=O7;Dt.getAuthorizationDataToUpdate=S7;Dt.newAuthorizationData=D7;Dt.mergeAuthorizationDataByAND=GM;Dt.upsertFieldAuthorizationData=QM;Dt.upsertAuthorizationData=A7;Dt.upsertAuthorizationConfiguration=R7;Dt.setAndGetValue=F7;Dt.generateSimpleDirective=w7;Dt.generateRequiresScopesDirective=L7;Dt.isNodeKindInterface=P7;Dt.addMapEntries=k7;Dt.getSingleSetEntry=C7;Dt.add=x7;var et=(Le(),Me(je)),In=bi(),a7=To(),rD=$i();function u7(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function c7(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}function l7(e,t,n){let r=e.get(t);if(r===void 0)throw(0,a7.invalidKeyFatalError)(t,n);return r}function d7(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}function p7(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function f7(e,t){for(let n of e)if(t.has(n))return!0;return!1}function m7(e,t){for(let n of e)t.delete(n)}function h7(e){let t=[];for(let n of e.values())t.push(n);return t}function T7(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}function Dl(e,t){for(let n of e)t.add(n)}function jM(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}function y7(e){switch(e){case et.Kind.BOOLEAN:return In.BOOLEAN_SCALAR;case et.Kind.ENUM:case et.Kind.ENUM_TYPE_DEFINITION:return In.ENUM;case et.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case et.Kind.ENUM_VALUE_DEFINITION:return In.ENUM_VALUE;case et.Kind.FIELD_DEFINITION:return In.FIELD;case et.Kind.FLOAT:return In.FLOAT_SCALAR;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:return In.INPUT_OBJECT;case et.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case et.Kind.INPUT_VALUE_DEFINITION:return In.INPUT_VALUE;case et.Kind.INT:return In.INT_SCALAR;case et.Kind.INTERFACE_TYPE_DEFINITION:return In.INTERFACE;case et.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case et.Kind.NULL:return In.NULL;case et.Kind.OBJECT:case et.Kind.OBJECT_TYPE_DEFINITION:return In.OBJECT;case et.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case et.Kind.STRING:return In.STRING_SCALAR;case et.Kind.SCALAR_TYPE_DEFINITION:return In.SCALAR;case et.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case et.Kind.UNION_TYPE_DEFINITION:return In.UNION;case et.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function N7(e){switch(e){case et.Kind.BOOLEAN:return In.BOOLEAN_SCALAR;case et.Kind.ENUM:case et.Kind.ENUM_TYPE_DEFINITION:case et.Kind.ENUM_TYPE_EXTENSION:return In.ENUM;case et.Kind.ENUM_VALUE_DEFINITION:return In.ENUM_VALUE;case et.Kind.FIELD_DEFINITION:return In.FIELD;case et.Kind.FLOAT:return In.FLOAT_SCALAR;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:case et.Kind.INPUT_OBJECT_TYPE_EXTENSION:return In.INPUT_OBJECT;case et.Kind.INPUT_VALUE_DEFINITION:return In.INPUT_VALUE;case et.Kind.INT:return In.INT_SCALAR;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.INTERFACE_TYPE_EXTENSION:return In.INTERFACE;case et.Kind.NULL:return In.NULL;case et.Kind.OBJECT:case et.Kind.OBJECT_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_EXTENSION:return In.OBJECT;case et.Kind.STRING:return In.STRING_SCALAR;case et.Kind.SCALAR_TYPE_DEFINITION:case et.Kind.SCALAR_TYPE_EXTENSION:return In.SCALAR;case et.Kind.UNION_TYPE_DEFINITION:case et.Kind.UNION_TYPE_EXTENSION:return In.UNION;default:return e}}function E7(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function g7(e){if(!e)return!0;switch(e){case et.Kind.OBJECT_TYPE_DEFINITION:case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function I7(e,t){return k({fieldDatasBySubgraphName:new Map().set(t,e.fieldDatas),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}function v7(e,t,n){return e.fieldDatasBySubgraphName.set(n,t.fieldDatas),Dl(t.interfaceFieldNames,e.interfaceFieldNames),Dl(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?jM(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}function $M(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function qM(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}function KM(e,t){Dl(e.fieldNames||[],t.fieldNames),Dl(e.keyFieldSets||[],t.keyFieldSets),Dl(e.subgraphNames||[],t.subgraphNames)}function _7(e,t){let n=e.get(t.typeName);n?KM(t,n):e.set(t.typeName,qM(t))}function b7(e,t){let n=e.get(t.typeName);n?KM(t,n):e.set(t.typeName,t)}function iD(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}function O7(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}function S7(e,t,n){return t.kind===et.Kind.FIELD_DEFINITION?$M(e.fieldAuthorizationDataByFieldName,n,()=>iD(n)):(e.hasParentLevelAuthorization=!0,e)}function D7(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}Dt.maxOrScopes=16;function GM(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>Dt.maxOrScopes)return!1;for(let s of e.requiredScopes)t.requiredScopes.push(new Set(s));return!0}if(n*r>Dt.maxOrScopes)return!1;let i=[];for(let s of t.requiredScopes)for(let o of e.requiredScopes){let u=new Set(s);Dl(o,u),i.push(u)}return t.requiredScopes=i,!0}function QM(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>Dt.maxOrScopes)return!1;let i=iD(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let s of t.requiredScopes)i.requiredScopes.push(new Set(s));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),GM(t,r)}function A7(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,s]of t.fieldAuthorizationDataByFieldName)QM(r.fieldAuthorizationDataByFieldName,s)||n.add(`${t.typeName}.${i}`)}function R7(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let s=`${n}.${r}`,o=e.get(s);o?(o.requiresAuthentication=i.requiresAuthentication,o.requiredScopes=i.requiredScopes.map(u=>[...u])):e.set(s,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(u=>[...u])})}}function F7(e,t,n){return e.set(t,n),n}function w7(e){return{kind:et.Kind.DIRECTIVE,name:(0,rD.stringToNameNode)(e)}}function L7(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:et.Kind.STRING,value:i});t.push({kind:et.Kind.LIST,values:r})}return{kind:et.Kind.DIRECTIVE,name:(0,rD.stringToNameNode)(In.REQUIRES_SCOPES),arguments:[{kind:et.Kind.ARGUMENT,name:(0,rD.stringToNameNode)(In.SCOPES),value:{kind:et.Kind.LIST,values:t}}]}}function P7(e){return e===et.Kind.INTERFACE_TYPE_DEFINITION||e===et.Kind.INTERFACE_TYPE_EXTENSION}function k7(e,t){for(let[n,r]of e)t.set(n,r)}function C7(e){for(let t of e)return t}function x7(e,t){return e.has(t)?!1:(e.add(t),!0)}});var Al=j(Wo=>{"use strict";m();T();h();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=Wo.MAX_INT32=Wo.MAX_SUBSCRIPTION_FILTER_DEPTH=Wo.MAXIMUM_TYPE_NESTING=void 0;Wo.MAXIMUM_TYPE_NESTING=30;Wo.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Wo.MAX_INT32=An(2,31)-1;Wo.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var To=j(Z=>{"use strict";m();T();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.invalidEventProviderIdErrorMessage=Z.invalidNatsStreamConfigurationDefinitionErrorMessage=Z.undefinedNatsStreamConfigurationInputErrorMessage=Z.invalidEdfsPublishResultObjectErrorMessage=Z.invalidNatsStreamInputErrorMessage=Z.inlineFragmentInFieldSetErrorMessage=Z.inaccessibleQueryRootTypeError=Z.noQueryRootTypeError=Z.federationFactoryInitializationFatalError=Z.subgraphValidationFailureError=Z.minimumSubgraphRequirementError=void 0;Z.multipleNamedTypeDefinitionError=B7;Z.incompatibleExtensionError=V7;Z.incompatibleArgumentTypesError=j7;Z.incompatibleInputValueDefaultValueTypeError=$7;Z.incompatibleChildTypesError=q7;Z.incompatibleInputValueDefaultValuesError=K7;Z.incompatibleSharedEnumError=G7;Z.incompatibleExtensionKindsError=Q7;Z.invalidSubgraphNamesError=Y7;Z.duplicateDirectiveDefinitionError=J7;Z.duplicateEnumValueDefinitionError=z7;Z.duplicateFieldDefinitionError=H7;Z.duplicateInputFieldDefinitionError=W7;Z.duplicateImplementedInterfaceError=X7;Z.duplicateUnionMemberDefinitionError=Z7;Z.duplicateTypeDefinitionError=eZ;Z.duplicateOperationTypeDefinitionError=tZ;Z.noBaseDefinitionForExtensionError=nZ;Z.noBaseScalarDefinitionError=rZ;Z.noDefinedUnionMembersError=iZ;Z.noDefinedEnumValuesError=sZ;Z.operationDefinitionError=oZ;Z.invalidFieldShareabilityError=aZ;Z.undefinedDirectiveErrorMessage=uZ;Z.undefinedTypeError=cZ;Z.invalidRepeatedDirectiveErrorMessage=lZ;Z.invalidRepeatedFederatedDirectiveErrorMessage=dZ;Z.invalidDirectiveError=pZ;Z.invalidDirectiveLocationErrorMessage=fZ;Z.unexpectedDirectiveArgumentsErrorMessage=mZ;Z.undefinedRequiredArgumentsErrorMessage=hZ;Z.unexpectedDirectiveArgumentErrorMessage=TZ;Z.duplicateDirectiveArgumentDefinitionsErrorMessage=yZ;Z.invalidDirectiveArgumentTypeErrorMessage=NZ;Z.invalidKeyDirectiveArgumentErrorMessage=EZ;Z.invalidKeyDirectivesError=gZ;Z.maximumTypeNestingExceededError=IZ;Z.unexpectedKindFatalError=vZ;Z.incompatibleParentKindFatalError=_Z;Z.unexpectedEdgeFatalError=bZ;Z.incompatibleParentKindMergeError=OZ;Z.fieldTypeMergeFatalError=SZ;Z.unexpectedDirectiveLocationError=DZ;Z.unexpectedTypeNodeKindFatalError=AZ;Z.invalidKeyFatalError=RZ;Z.invalidConfigurationResultFatalError=FZ;Z.unexpectedParentKindErrorMessage=wZ;Z.unexpectedParentKindForChildError=LZ;Z.subgraphValidationError=PZ;Z.invalidSubgraphNameErrorMessage=kZ;Z.invalidOperationTypeDefinitionError=CZ;Z.invalidRootTypeDefinitionError=xZ;Z.subgraphInvalidSyntaxError=UZ;Z.invalidInterfaceImplementationError=MZ;Z.invalidRequiredInputValueError=BZ;Z.duplicateArgumentsError=VZ;Z.invalidArgumentsError=jZ;Z.expectedEntityError=$Z;Z.abstractTypeInKeyFieldSetErrorMessage=qZ;Z.unknownTypeInFieldSetErrorMessage=KZ;Z.invalidSelectionSetErrorMessage=GZ;Z.invalidSelectionSetDefinitionErrorMessage=QZ;Z.undefinedFieldInFieldSetErrorMessage=YZ;Z.unparsableFieldSetErrorMessage=JZ;Z.unparsableFieldSetSelectionErrorMessage=zZ;Z.undefinedObjectLikeParentError=HZ;Z.unexpectedArgumentErrorMessage=WZ;Z.argumentsInKeyFieldSetErrorMessage=XZ;Z.invalidProvidesOrRequiresDirectivesError=ZZ;Z.duplicateFieldInFieldSetErrorMessage=eee;Z.invalidConfigurationDataErrorMessage=tee;Z.incompatibleTypeWithProvidesErrorMessage=nee;Z.invalidInlineFragmentTypeErrorMessage=ree;Z.inlineFragmentWithoutTypeConditionErrorMessage=iee;Z.unknownInlineFragmentTypeConditionErrorMessage=see;Z.invalidInlineFragmentTypeConditionTypeErrorMessage=oee;Z.invalidInlineFragmentTypeConditionErrorMessage=aee;Z.invalidSelectionOnUnionErrorMessage=uee;Z.duplicateOverriddenFieldErrorMessage=cee;Z.duplicateOverriddenFieldsError=lee;Z.noFieldDefinitionsError=dee;Z.noInputValueDefinitionsError=pee;Z.allChildDefinitionsAreInaccessibleError=fee;Z.equivalentSourceAndTargetOverrideErrorMessage=mee;Z.undefinedEntityInterfaceImplementationsError=hee;Z.orScopesLimitError=Tee;Z.invalidEventDrivenGraphError=yee;Z.invalidRootTypeFieldEventsDirectivesErrorMessage=Nee;Z.invalidEventDrivenMutationResponseTypeErrorMessage=Eee;Z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=gee;Z.invalidArgumentValueErrorMessage=Iee;Z.invalidNatsStreamInputFieldsErrorMessage=vee;Z.invalidKeyFieldSetsEventDrivenErrorMessage=_ee;Z.nonExternalKeyFieldNamesEventDrivenErrorMessage=bee;Z.nonKeyFieldNamesEventDrivenErrorMessage=Oee;Z.nonEntityObjectExtensionsEventDrivenErrorMessage=See;Z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=Dee;Z.invalidEdfsDirectiveName=Aee;Z.invalidImplementedTypeError=Ree;Z.selfImplementationError=Fee;Z.invalidEventSubjectErrorMessage=wee;Z.invalidEventSubjectsErrorMessage=Lee;Z.invalidEventSubjectsItemErrorMessage=Pee;Z.invalidEventSubjectsArgumentErrorMessage=kee;Z.undefinedEventSubjectsArgumentErrorMessage=Cee;Z.invalidEventDirectiveError=xee;Z.invalidReferencesOfInaccessibleTypeError=Uee;Z.inaccessibleRequiredArgumentError=Mee;Z.invalidUnionMemberTypeError=Bee;Z.invalidRootTypeError=Vee;Z.invalidSubscriptionFilterLocationError=jee;Z.invalidSubscriptionFilterDirectiveError=$ee;Z.subscriptionFilterNamedTypeErrorMessage=qee;Z.subscriptionFilterConditionDepthExceededErrorMessage=Kee;Z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Gee;Z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Qee;Z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Yee;Z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Jee;Z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=zee;Z.invalidInputFieldTypeErrorMessage=Hee;Z.subscriptionFieldConditionInvalidInputFieldErrorMessage=Wee;Z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Xee;Z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Zee;Z.unknownFieldSubgraphNameError=ete;Z.invalidSubscriptionFieldConditionFieldPathErrorMessage=tte;Z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=nte;Z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=rte;Z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=ite;Z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=ste;Z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=ote;Z.unresolvablePathError=ate;Z.allExternalFieldInstancesError=ute;Z.externalInterfaceFieldsError=cte;Z.nonExternalConditionalFieldError=lte;Z.incompatibleFederatedFieldNamedTypeError=dte;Z.unknownNamedTypeErrorMessage=WM;Z.unknownNamedTypeError=pte;Z.unknownFieldDataError=fte;Z.unexpectedNonCompositeOutputTypeError=mte;Z.invalidExternalDirectiveError=hte;var U7=$i(),M7=(Le(),Me(je)),yp=ps(),Et=bi(),YM=Al();Z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function B7(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". -However, there must be only one type named "${e}".`)}function V7(e,t,n){return new Error(`Extension error: - Incompatible types: "${e}" is type "${t}", but an extension of the same name is type "${n}.`)}function j7(e,t,n,r){return new Error(`Incompatible types when merging two instances of argument "${e}" on path "${t}": - Expected type "${n}" but received "${r}"`)}function $7(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function q7(e,t,n){return new Error(`Incompatible types when merging two instances of "${e}": - Expected type "${t}" but received "${n}"`)}function K7(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". +`))}});var XM=j(vp=>{"use strict";m();T();h();Object.defineProperty(vp,"__esModule",{value:!0});vp.AccumulatorMap=void 0;vp.mapValue=Ip;vp.extendSchemaImpl=y7;var Ve=(Le(),Me(je)),Ga=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};vp.AccumulatorMap=Ga;function Ip(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function y7(e,t,n){var ae,te,ce,Ke;let r=[],i=new Ga,s=new Ga,o=new Ga,u=new Ga,l=new Ga,d=new Ga,p=[],y,N=[],I=!1;for(let Y of t.definitions){switch(Y.kind){case Ve.Kind.SCHEMA_DEFINITION:y=Y;break;case Ve.Kind.SCHEMA_EXTENSION:N.push(Y);break;case Ve.Kind.DIRECTIVE_DEFINITION:p.push(Y);break;case Ve.Kind.SCALAR_TYPE_DEFINITION:case Ve.Kind.OBJECT_TYPE_DEFINITION:case Ve.Kind.INTERFACE_TYPE_DEFINITION:case Ve.Kind.UNION_TYPE_DEFINITION:case Ve.Kind.ENUM_TYPE_DEFINITION:case Ve.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Y);break;case Ve.Kind.SCALAR_TYPE_EXTENSION:i.add(Y.name.value,Y);break;case Ve.Kind.OBJECT_TYPE_EXTENSION:s.add(Y.name.value,Y);break;case Ve.Kind.INTERFACE_TYPE_EXTENSION:o.add(Y.name.value,Y);break;case Ve.Kind.UNION_TYPE_EXTENSION:u.add(Y.name.value,Y);break;case Ve.Kind.ENUM_TYPE_EXTENSION:l.add(Y.name.value,Y);break;case Ve.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Y.name.value,Y);break;default:continue}I=!0}if(!I)return e;let S=new Map;for(let Y of e.types){let ee=se(Y);ee&&S.set(Y.name,ee)}for(let Y of r){let ee=Y.name.value;S.set(ee,(ae=HM.get(ee))!=null?ae:U(Y))}for(let[Y,ee]of s)S.set(Y,new Ve.GraphQLObjectType({name:Y,interfaces:()=>on(ee),fields:()=>bn(ee),extensionASTNodes:ee}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Y,ee]of o)S.set(Y,new Ve.GraphQLInterfaceType({name:Y,interfaces:()=>on(ee),fields:()=>bn(ee),extensionASTNodes:ee}));for(let[Y,ee]of l)S.set(Y,new Ve.GraphQLEnumType({name:Y,values:kn(ee),extensionASTNodes:ee}));for(let[Y,ee]of u)S.set(Y,new Ve.GraphQLUnionType({name:Y,types:()=>$n(ee),extensionASTNodes:ee}));for(let[Y,ee]of i)S.set(Y,new Ve.GraphQLScalarType({name:Y,extensionASTNodes:ee}));for(let[Y,ee]of d)S.set(Y,new Ve.GraphQLInputObjectType({name:Y,fields:()=>Xr(ee),extensionASTNodes:ee}))}let C=k(k({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},y&&Ct([y])),Ct(N));return Q(k({description:(ce=(te=y==null?void 0:y.description)==null?void 0:te.value)!=null?ce:e.description},C),{types:Array.from(S.values()),directives:[...e.directives.map(re),...p.map(_n)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(N),assumeValid:(Ke=n==null?void 0:n.assumeValid)!=null?Ke:!1});function V(Y){return(0,Ve.isListType)(Y)?new Ve.GraphQLList(V(Y.ofType)):(0,Ve.isNonNullType)(Y)?new Ve.GraphQLNonNull(V(Y.ofType)):G(Y)}function G(Y){return S.get(Y.name)}function re(Y){if((0,Ve.isSpecifiedDirective)(Y))return Y;let ee=Y.toConfig();return new Ve.GraphQLDirective(Q(k({},ee),{args:Ip(ee.args,rt)}))}function se(Y){if((0,Ve.isIntrospectionType)(Y)||(0,Ve.isSpecifiedScalarType)(Y))return Y;if((0,Ve.isScalarType)(Y))return Ce(Y);if((0,Ve.isObjectType)(Y))return ht(Y);if((0,Ve.isInterfaceType)(Y))return xt(Y);if((0,Ve.isUnionType)(Y))return B(Y);if((0,Ve.isEnumType)(Y))return he(Y);if((0,Ve.isInputObjectType)(Y))return fe(Y)}function fe(Y){var Xe;let ee=Y.toConfig(),Ue=(Xe=d.get(ee.name))!=null?Xe:[];return new Ve.GraphQLInputObjectType(Q(k({},ee),{fields:()=>k(k({},Ip(ee.fields,$t=>Q(k({},$t),{type:V($t.type)}))),Xr(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function he(Y){var Xe;let ee=Y.toConfig(),Ue=(Xe=l.get(Y.name))!=null?Xe:[];return new Ve.GraphQLEnumType(Q(k({},ee),{values:k(k({},ee.values),kn(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function Ce(Y){var $t,Je;let ee=Y.toConfig(),Ue=($t=i.get(ee.name))!=null?$t:[],Xe=ee.specifiedByURL;for(let Ht of Ue)Xe=(Je=WM(Ht))!=null?Je:Xe;return new Ve.GraphQLScalarType(Q(k({},ee),{specifiedByURL:Xe,extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function ht(Y){var Xe;let ee=Y.toConfig(),Ue=(Xe=s.get(ee.name))!=null?Xe:[];return new Ve.GraphQLObjectType(Q(k({},ee),{interfaces:()=>[...Y.getInterfaces().map(G),...on(Ue)],fields:()=>k(k({},Ip(ee.fields,Te)),bn(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function xt(Y){var Xe;let ee=Y.toConfig(),Ue=(Xe=o.get(ee.name))!=null?Xe:[];return new Ve.GraphQLInterfaceType(Q(k({},ee),{interfaces:()=>[...Y.getInterfaces().map(G),...on(Ue)],fields:()=>k(k({},Ip(ee.fields,Te)),bn(Ue)),extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function B(Y){var Xe;let ee=Y.toConfig(),Ue=(Xe=u.get(ee.name))!=null?Xe:[];return new Ve.GraphQLUnionType(Q(k({},ee),{types:()=>[...Y.getTypes().map(G),...$n(Ue)],extensionASTNodes:ee.extensionASTNodes.concat(Ue)}))}function Te(Y){return Q(k({},Y),{type:V(Y.type),args:Y.args&&Ip(Y.args,rt)})}function rt(Y){return Q(k({},Y),{type:V(Y.type)})}function Ct(Y){var Ue;let ee={};for(let Xe of Y){let $t=(Ue=Xe.operationTypes)!=null?Ue:[];for(let Je of $t)ee[Je.operation]=rn(Je.type)}return ee}function rn(Y){var Xe;let ee=Y.name.value,Ue=(Xe=HM.get(ee))!=null?Xe:S.get(ee);if(Ue===void 0)throw new Error(`Unknown type: "${ee}".`);return Ue}function wn(Y){return Y.kind===Ve.Kind.LIST_TYPE?new Ve.GraphQLList(wn(Y.type)):Y.kind===Ve.Kind.NON_NULL_TYPE?new Ve.GraphQLNonNull(wn(Y.type)):rn(Y)}function _n(Y){var ee;return new Ve.GraphQLDirective({name:Y.name.value,description:(ee=Y.description)==null?void 0:ee.value,locations:Y.locations.map(({value:Ue})=>Ue),isRepeatable:Y.repeatable,args:mi(Y.arguments),astNode:Y})}function bn(Y){var Ue,Xe;let ee=Object.create(null);for(let $t of Y){let Je=(Ue=$t.fields)!=null?Ue:[];for(let Ht of Je)ee[Ht.name.value]={type:wn(Ht.type),description:(Xe=Ht.description)==null?void 0:Xe.value,args:mi(Ht.arguments),deprecationReason:EE(Ht),astNode:Ht}}return ee}function mi(Y){var Xe;let ee=Y!=null?Y:[],Ue=Object.create(null);for(let $t of ee){let Je=wn($t.type);Ue[$t.name.value]={type:Je,description:(Xe=$t.description)==null?void 0:Xe.value,defaultValue:(0,Ve.valueFromAST)($t.defaultValue,Je),deprecationReason:EE($t),astNode:$t}}return Ue}function Xr(Y){var Ue,Xe;let ee=Object.create(null);for(let $t of Y){let Je=(Ue=$t.fields)!=null?Ue:[];for(let Ht of Je){let Ta=wn(Ht.type);ee[Ht.name.value]={type:Ta,description:(Xe=Ht.description)==null?void 0:Xe.value,defaultValue:(0,Ve.valueFromAST)(Ht.defaultValue,Ta),deprecationReason:EE(Ht),astNode:Ht}}}return ee}function kn(Y){var Ue,Xe;let ee=Object.create(null);for(let $t of Y){let Je=(Ue=$t.values)!=null?Ue:[];for(let Ht of Je)ee[Ht.name.value]={description:(Xe=Ht.description)==null?void 0:Xe.value,deprecationReason:EE(Ht),astNode:Ht}}return ee}function on(Y){return Y.flatMap(ee=>{var Ue,Xe;return(Xe=(Ue=ee.interfaces)==null?void 0:Ue.map(rn))!=null?Xe:[]})}function $n(Y){return Y.flatMap(ee=>{var Ue,Xe;return(Xe=(Ue=ee.types)==null?void 0:Ue.map(rn))!=null?Xe:[]})}function U(Y){var Ue,Xe,$t,Je,Ht,Ta,ki,ya,md,Ao,Gr,Wi;let ee=Y.name.value;switch(Y.kind){case Ve.Kind.OBJECT_TYPE_DEFINITION:{let cn=(Ue=s.get(ee))!=null?Ue:[],Qr=[Y,...cn];return s.delete(ee),new Ve.GraphQLObjectType({name:ee,description:(Xe=Y.description)==null?void 0:Xe.value,interfaces:()=>on(Qr),fields:()=>bn(Qr),astNode:Y,extensionASTNodes:cn})}case Ve.Kind.INTERFACE_TYPE_DEFINITION:{let cn=($t=o.get(ee))!=null?$t:[],Qr=[Y,...cn];return o.delete(ee),new Ve.GraphQLInterfaceType({name:ee,description:(Je=Y.description)==null?void 0:Je.value,interfaces:()=>on(Qr),fields:()=>bn(Qr),astNode:Y,extensionASTNodes:cn})}case Ve.Kind.ENUM_TYPE_DEFINITION:{let cn=(Ht=l.get(ee))!=null?Ht:[],Qr=[Y,...cn];return l.delete(ee),new Ve.GraphQLEnumType({name:ee,description:(Ta=Y.description)==null?void 0:Ta.value,values:kn(Qr),astNode:Y,extensionASTNodes:cn})}case Ve.Kind.UNION_TYPE_DEFINITION:{let cn=(ki=u.get(ee))!=null?ki:[],Qr=[Y,...cn];return u.delete(ee),new Ve.GraphQLUnionType({name:ee,description:(ya=Y.description)==null?void 0:ya.value,types:()=>$n(Qr),astNode:Y,extensionASTNodes:cn})}case Ve.Kind.SCALAR_TYPE_DEFINITION:{let cn=(md=i.get(ee))!=null?md:[];return i.delete(ee),new Ve.GraphQLScalarType({name:ee,description:(Ao=Y.description)==null?void 0:Ao.value,specifiedByURL:WM(Y),astNode:Y,extensionASTNodes:cn})}case Ve.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let cn=(Gr=d.get(ee))!=null?Gr:[],Qr=[Y,...cn];return d.delete(ee),new Ve.GraphQLInputObjectType({name:ee,description:(Wi=Y.description)==null?void 0:Wi.value,fields:()=>Xr(Qr),astNode:Y,extensionASTNodes:cn})}}}}var HM=new Map([...Ve.specifiedScalarTypes,...Ve.introspectionTypes].map(e=>[e.name,e]));function EE(e){let t=(0,Ve.getDirectiveValues)(Ve.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function WM(e){let t=(0,Ve.getDirectiveValues)(Ve.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var lD=j(cD=>{"use strict";m();T();h();Object.defineProperty(cD,"__esModule",{value:!0});cD.buildASTSchema=g7;var ZM=(Le(),Me(je)),N7=gp(),E7=XM();function g7(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,N7.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,E7.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...ZM.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new ZM.GraphQLSchema(Q(k({},r),{directives:i}))}});var ps=j(Dt=>{"use strict";m();T();h();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.maxOrScopes=void 0;Dt.areSetsEqual=v7;Dt.getAllMutualEntries=_7;Dt.getOrThrowError=b7;Dt.getAllSetDisparities=O7;Dt.getEntriesNotInHashSet=S7;Dt.doSetsIntersect=D7;Dt.subtractSourceSetFromTargetSet=A7;Dt.mapToArrayOfValues=R7;Dt.numberToOrdinal=F7;Dt.addIterableValuesToSet=Pl;Dt.addSetsAndReturnMutationBoolean=eB;Dt.kindToTypeString=w7;Dt.kindToConvertedTypeString=L7;Dt.fieldDatasToSimpleFieldDatas=P7;Dt.isNodeLeaf=k7;Dt.newEntityInterfaceFederationData=x7;Dt.upsertEntityInterfaceFederationData=C7;Dt.getValueOrDefault=tB;Dt.newEntityData=nB;Dt.upsertEntityDataProperties=U7;Dt.upsertEntityData=M7;Dt.newFieldAuthorizationData=pD;Dt.resetAuthorizationData=B7;Dt.getAuthorizationDataToUpdate=V7;Dt.newAuthorizationData=j7;Dt.mergeAuthorizationDataByAND=iB;Dt.upsertFieldAuthorizationData=sB;Dt.upsertAuthorizationData=$7;Dt.upsertAuthorizationConfiguration=q7;Dt.setAndGetValue=K7;Dt.generateSimpleDirective=G7;Dt.generateRequiresScopesDirective=Q7;Dt.isNodeKindInterface=Y7;Dt.addMapEntries=J7;Dt.getSingleSetEntry=z7;Dt.add=H7;var et=(Le(),Me(je)),In=bi(),I7=To(),dD=$i();function v7(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function _7(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}function b7(e,t,n){let r=e.get(t);if(r===void 0)throw(0,I7.invalidKeyFatalError)(t,n);return r}function O7(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}function S7(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function D7(e,t){for(let n of e)if(t.has(n))return!0;return!1}function A7(e,t){for(let n of e)t.delete(n)}function R7(e){let t=[];for(let n of e.values())t.push(n);return t}function F7(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 Pl(e,t){for(let n of e)t.add(n)}function eB(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}function w7(e){switch(e){case et.Kind.BOOLEAN:return In.BOOLEAN_SCALAR;case et.Kind.ENUM:case et.Kind.ENUM_TYPE_DEFINITION:return In.ENUM;case et.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case et.Kind.ENUM_VALUE_DEFINITION:return In.ENUM_VALUE;case et.Kind.FIELD_DEFINITION:return In.FIELD;case et.Kind.FLOAT:return In.FLOAT_SCALAR;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:return In.INPUT_OBJECT;case et.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case et.Kind.INPUT_VALUE_DEFINITION:return In.INPUT_VALUE;case et.Kind.INT:return In.INT_SCALAR;case et.Kind.INTERFACE_TYPE_DEFINITION:return In.INTERFACE;case et.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case et.Kind.NULL:return In.NULL;case et.Kind.OBJECT:case et.Kind.OBJECT_TYPE_DEFINITION:return In.OBJECT;case et.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case et.Kind.STRING:return In.STRING_SCALAR;case et.Kind.SCALAR_TYPE_DEFINITION:return In.SCALAR;case et.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case et.Kind.UNION_TYPE_DEFINITION:return In.UNION;case et.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function L7(e){switch(e){case et.Kind.BOOLEAN:return In.BOOLEAN_SCALAR;case et.Kind.ENUM:case et.Kind.ENUM_TYPE_DEFINITION:case et.Kind.ENUM_TYPE_EXTENSION:return In.ENUM;case et.Kind.ENUM_VALUE_DEFINITION:return In.ENUM_VALUE;case et.Kind.FIELD_DEFINITION:return In.FIELD;case et.Kind.FLOAT:return In.FLOAT_SCALAR;case et.Kind.INPUT_OBJECT_TYPE_DEFINITION:case et.Kind.INPUT_OBJECT_TYPE_EXTENSION:return In.INPUT_OBJECT;case et.Kind.INPUT_VALUE_DEFINITION:return In.INPUT_VALUE;case et.Kind.INT:return In.INT_SCALAR;case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.INTERFACE_TYPE_EXTENSION:return In.INTERFACE;case et.Kind.NULL:return In.NULL;case et.Kind.OBJECT:case et.Kind.OBJECT_TYPE_DEFINITION:case et.Kind.OBJECT_TYPE_EXTENSION:return In.OBJECT;case et.Kind.STRING:return In.STRING_SCALAR;case et.Kind.SCALAR_TYPE_DEFINITION:case et.Kind.SCALAR_TYPE_EXTENSION:return In.SCALAR;case et.Kind.UNION_TYPE_DEFINITION:case et.Kind.UNION_TYPE_EXTENSION:return In.UNION;default:return e}}function P7(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function k7(e){if(!e)return!0;switch(e){case et.Kind.OBJECT_TYPE_DEFINITION:case et.Kind.INTERFACE_TYPE_DEFINITION:case et.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function x7(e,t){return k({fieldDatasBySubgraphName:new Map().set(t,e.fieldDatas),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}function C7(e,t,n){return e.fieldDatasBySubgraphName.set(n,t.fieldDatas),Pl(t.interfaceFieldNames,e.interfaceFieldNames),Pl(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?eB(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}function tB(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function nB(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}function rB(e,t){Pl(e.fieldNames||[],t.fieldNames),Pl(e.keyFieldSets||[],t.keyFieldSets),Pl(e.subgraphNames||[],t.subgraphNames)}function U7(e,t){let n=e.get(t.typeName);n?rB(t,n):e.set(t.typeName,nB(t))}function M7(e,t){let n=e.get(t.typeName);n?rB(t,n):e.set(t.typeName,t)}function pD(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}function B7(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}function V7(e,t,n){return t.kind===et.Kind.FIELD_DEFINITION?tB(e.fieldAuthorizationDataByFieldName,n,()=>pD(n)):(e.hasParentLevelAuthorization=!0,e)}function j7(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}Dt.maxOrScopes=16;function iB(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>Dt.maxOrScopes)return!1;for(let s of e.requiredScopes)t.requiredScopes.push(new Set(s));return!0}if(n*r>Dt.maxOrScopes)return!1;let i=[];for(let s of t.requiredScopes)for(let o of e.requiredScopes){let u=new Set(s);Pl(o,u),i.push(u)}return t.requiredScopes=i,!0}function sB(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>Dt.maxOrScopes)return!1;let i=pD(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let s of t.requiredScopes)i.requiredScopes.push(new Set(s));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),iB(t,r)}function $7(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,s]of t.fieldAuthorizationDataByFieldName)sB(r.fieldAuthorizationDataByFieldName,s)||n.add(`${t.typeName}.${i}`)}function q7(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let s=`${n}.${r}`,o=e.get(s);o?(o.requiresAuthentication=i.requiresAuthentication,o.requiredScopes=i.requiredScopes.map(u=>[...u])):e.set(s,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(u=>[...u])})}}function K7(e,t,n){return e.set(t,n),n}function G7(e){return{kind:et.Kind.DIRECTIVE,name:(0,dD.stringToNameNode)(e)}}function Q7(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:et.Kind.STRING,value:i});t.push({kind:et.Kind.LIST,values:r})}return{kind:et.Kind.DIRECTIVE,name:(0,dD.stringToNameNode)(In.REQUIRES_SCOPES),arguments:[{kind:et.Kind.ARGUMENT,name:(0,dD.stringToNameNode)(In.SCOPES),value:{kind:et.Kind.LIST,values:t}}]}}function Y7(e){return e===et.Kind.INTERFACE_TYPE_DEFINITION||e===et.Kind.INTERFACE_TYPE_EXTENSION}function J7(e,t){for(let[n,r]of e)t.set(n,r)}function z7(e){for(let t of e)return t}function H7(e,t){return e.has(t)?!1:(e.add(t),!0)}});var kl=j(Wo=>{"use strict";m();T();h();Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=Wo.MAX_INT32=Wo.MAX_SUBSCRIPTION_FILTER_DEPTH=Wo.MAXIMUM_TYPE_NESTING=void 0;Wo.MAXIMUM_TYPE_NESTING=30;Wo.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Wo.MAX_INT32=An(2,31)-1;Wo.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var To=j(Z=>{"use strict";m();T();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.invalidEventProviderIdErrorMessage=Z.invalidNatsStreamConfigurationDefinitionErrorMessage=Z.undefinedNatsStreamConfigurationInputErrorMessage=Z.invalidEdfsPublishResultObjectErrorMessage=Z.invalidNatsStreamInputErrorMessage=Z.inlineFragmentInFieldSetErrorMessage=Z.inaccessibleQueryRootTypeError=Z.noQueryRootTypeError=Z.federationFactoryInitializationFatalError=Z.subgraphValidationFailureError=Z.minimumSubgraphRequirementError=void 0;Z.multipleNamedTypeDefinitionError=Z7;Z.incompatibleExtensionError=eZ;Z.incompatibleArgumentTypesError=tZ;Z.incompatibleInputValueDefaultValueTypeError=nZ;Z.incompatibleChildTypesError=rZ;Z.incompatibleInputValueDefaultValuesError=iZ;Z.incompatibleSharedEnumError=sZ;Z.incompatibleExtensionKindsError=oZ;Z.invalidSubgraphNamesError=aZ;Z.duplicateDirectiveDefinitionError=uZ;Z.duplicateEnumValueDefinitionError=cZ;Z.duplicateFieldDefinitionError=lZ;Z.duplicateInputFieldDefinitionError=dZ;Z.duplicateImplementedInterfaceError=pZ;Z.duplicateUnionMemberDefinitionError=fZ;Z.duplicateTypeDefinitionError=mZ;Z.duplicateOperationTypeDefinitionError=hZ;Z.noBaseDefinitionForExtensionError=TZ;Z.noBaseScalarDefinitionError=yZ;Z.noDefinedUnionMembersError=NZ;Z.noDefinedEnumValuesError=EZ;Z.operationDefinitionError=gZ;Z.invalidFieldShareabilityError=IZ;Z.undefinedDirectiveErrorMessage=vZ;Z.undefinedTypeError=_Z;Z.invalidRepeatedDirectiveErrorMessage=bZ;Z.invalidRepeatedFederatedDirectiveErrorMessage=OZ;Z.invalidDirectiveError=SZ;Z.invalidDirectiveLocationErrorMessage=DZ;Z.unexpectedDirectiveArgumentsErrorMessage=AZ;Z.undefinedRequiredArgumentsErrorMessage=RZ;Z.unexpectedDirectiveArgumentErrorMessage=FZ;Z.duplicateDirectiveArgumentDefinitionsErrorMessage=wZ;Z.invalidDirectiveArgumentTypeErrorMessage=LZ;Z.invalidKeyDirectiveArgumentErrorMessage=PZ;Z.invalidKeyDirectivesError=kZ;Z.maximumTypeNestingExceededError=xZ;Z.unexpectedKindFatalError=CZ;Z.incompatibleParentKindFatalError=UZ;Z.unexpectedEdgeFatalError=MZ;Z.incompatibleParentKindMergeError=BZ;Z.fieldTypeMergeFatalError=VZ;Z.unexpectedDirectiveLocationError=jZ;Z.unexpectedTypeNodeKindFatalError=$Z;Z.invalidKeyFatalError=qZ;Z.invalidConfigurationResultFatalError=KZ;Z.unexpectedParentKindErrorMessage=GZ;Z.unexpectedParentKindForChildError=QZ;Z.subgraphValidationError=YZ;Z.invalidSubgraphNameErrorMessage=JZ;Z.invalidOperationTypeDefinitionError=zZ;Z.invalidRootTypeDefinitionError=HZ;Z.subgraphInvalidSyntaxError=WZ;Z.invalidInterfaceImplementationError=XZ;Z.invalidRequiredInputValueError=ZZ;Z.duplicateArgumentsError=eee;Z.invalidArgumentsError=tee;Z.expectedEntityError=nee;Z.abstractTypeInKeyFieldSetErrorMessage=ree;Z.unknownTypeInFieldSetErrorMessage=iee;Z.invalidSelectionSetErrorMessage=see;Z.invalidSelectionSetDefinitionErrorMessage=oee;Z.undefinedFieldInFieldSetErrorMessage=aee;Z.unparsableFieldSetErrorMessage=uee;Z.unparsableFieldSetSelectionErrorMessage=cee;Z.undefinedObjectLikeParentError=lee;Z.unexpectedArgumentErrorMessage=dee;Z.argumentsInKeyFieldSetErrorMessage=pee;Z.invalidProvidesOrRequiresDirectivesError=fee;Z.duplicateFieldInFieldSetErrorMessage=mee;Z.invalidConfigurationDataErrorMessage=hee;Z.incompatibleTypeWithProvidesErrorMessage=Tee;Z.invalidInlineFragmentTypeErrorMessage=yee;Z.inlineFragmentWithoutTypeConditionErrorMessage=Nee;Z.unknownInlineFragmentTypeConditionErrorMessage=Eee;Z.invalidInlineFragmentTypeConditionTypeErrorMessage=gee;Z.invalidInlineFragmentTypeConditionErrorMessage=Iee;Z.invalidSelectionOnUnionErrorMessage=vee;Z.duplicateOverriddenFieldErrorMessage=_ee;Z.duplicateOverriddenFieldsError=bee;Z.noFieldDefinitionsError=Oee;Z.noInputValueDefinitionsError=See;Z.allChildDefinitionsAreInaccessibleError=Dee;Z.equivalentSourceAndTargetOverrideErrorMessage=Aee;Z.undefinedEntityInterfaceImplementationsError=Ree;Z.orScopesLimitError=Fee;Z.invalidEventDrivenGraphError=wee;Z.invalidRootTypeFieldEventsDirectivesErrorMessage=Lee;Z.invalidEventDrivenMutationResponseTypeErrorMessage=Pee;Z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=kee;Z.invalidArgumentValueErrorMessage=xee;Z.invalidNatsStreamInputFieldsErrorMessage=Cee;Z.invalidKeyFieldSetsEventDrivenErrorMessage=Uee;Z.nonExternalKeyFieldNamesEventDrivenErrorMessage=Mee;Z.nonKeyFieldNamesEventDrivenErrorMessage=Bee;Z.nonEntityObjectExtensionsEventDrivenErrorMessage=Vee;Z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=jee;Z.invalidEdfsDirectiveName=$ee;Z.invalidImplementedTypeError=qee;Z.selfImplementationError=Kee;Z.invalidEventSubjectErrorMessage=Gee;Z.invalidEventSubjectsErrorMessage=Qee;Z.invalidEventSubjectsItemErrorMessage=Yee;Z.invalidEventSubjectsArgumentErrorMessage=Jee;Z.undefinedEventSubjectsArgumentErrorMessage=zee;Z.invalidEventDirectiveError=Hee;Z.invalidReferencesOfInaccessibleTypeError=Wee;Z.inaccessibleRequiredArgumentError=Xee;Z.invalidUnionMemberTypeError=Zee;Z.invalidRootTypeError=ete;Z.invalidSubscriptionFilterLocationError=tte;Z.invalidSubscriptionFilterDirectiveError=nte;Z.subscriptionFilterNamedTypeErrorMessage=rte;Z.subscriptionFilterConditionDepthExceededErrorMessage=ite;Z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=ste;Z.subscriptionFilterConditionInvalidInputFieldErrorMessage=ote;Z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=ate;Z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=ute;Z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=cte;Z.invalidInputFieldTypeErrorMessage=lte;Z.subscriptionFieldConditionInvalidInputFieldErrorMessage=dte;Z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=pte;Z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=fte;Z.unknownFieldSubgraphNameError=mte;Z.invalidSubscriptionFieldConditionFieldPathErrorMessage=hte;Z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Tte;Z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=yte;Z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=Nte;Z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=Ete;Z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=gte;Z.unresolvablePathError=Ite;Z.allExternalFieldInstancesError=vte;Z.externalInterfaceFieldsError=_te;Z.nonExternalConditionalFieldError=bte;Z.incompatibleFederatedFieldNamedTypeError=Ote;Z.unknownNamedTypeErrorMessage=lB;Z.unknownNamedTypeError=Ste;Z.unknownFieldDataError=Dte;Z.unexpectedNonCompositeOutputTypeError=Ate;Z.invalidExternalDirectiveError=Rte;var W7=$i(),X7=(Le(),Me(je)),_p=ps(),Et=bi(),oB=kl();Z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Z7(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". +However, there must be only one type named "${e}".`)}function eZ(e,t,n){return new Error(`Extension error: + Incompatible types: "${e}" is type "${t}", but an extension of the same name is type "${n}.`)}function tZ(e,t,n,r){return new Error(`Incompatible types when merging two instances of argument "${e}" on path "${t}": + Expected type "${n}" but received "${r}"`)}function nZ(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function rZ(e,t,n){return new Error(`Incompatible types when merging two instances of "${e}": + Expected type "${t}" but received "${n}"`)}function iZ(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: "`+n.join(Et.QUOTATION_JOIN)+`" -If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function G7(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function Q7(e,t){let n=e.kind===M7.Kind.SCHEMA_EXTENSION?"schema":e.name.value;return new Error(`Expected extension "${n}" to be type ${t} but received ${e.kind}.`)}function Y7(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` +If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function sZ(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function oZ(e,t){let n=e.kind===X7.Kind.SCHEMA_EXTENSION?"schema":e.name.value;return new Error(`Expected extension "${n}" to be type ${t} but received ${e.kind}.`)}function aZ(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` The following subgraph names are not unique: "`+e.join('", "')+'"');for(let r of t)n+=` - ${r}`;return new Error(n)}function J7(e){return new Error(`The directive "${e}" must only be defined once.`)}function z7(e,t){return new Error(`The Enum "${e}" must only define the Enum Value definition "${t}" once.`)}function H7(e,t,n){return new Error(`The ${e} "${t}" must only define the Field definition "${n}" once.`)}function W7(e,t){return new Error(`The Input Object "${e}" must only define the Input Field definition "${t}" once.`)}function X7(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function Z7(e,t){return new Error(`The Union "${e}" must only define the Union Member "${t}" once.`)}function eZ(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function tZ(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function nZ(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function rZ(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function iZ(e){return new Error(`The Union "${e}" must define at least one Union Member.`)}function sZ(e){return new Error(`The Enum "${e}" must define at least one Enum Value.`)}function oZ(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type object but received "${n}.`)}function aZ(e,t){let n=e.name,r=[];for(let[i,s]of e.fieldDataByFieldName){if(!t.has(i))continue;let o=[],u=[];for(let[l,d]of s.isShareableBySubgraphName)d?o.push(l):u.push(l);o.length<1?r.push(` + ${r}`;return new Error(n)}function uZ(e){return new Error(`The directive "${e}" must only be defined once.`)}function cZ(e,t){return new Error(`The Enum "${e}" must only define the Enum Value definition "${t}" once.`)}function lZ(e,t,n){return new Error(`The ${e} "${t}" must only define the Field definition "${n}" once.`)}function dZ(e,t){return new Error(`The Input Object "${e}" must only define the Input Field definition "${t}" once.`)}function pZ(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function fZ(e,t){return new Error(`The Union "${e}" must only define the Union Member "${t}" once.`)}function mZ(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function hZ(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function TZ(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function yZ(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function NZ(e){return new Error(`The Union "${e}" must define at least one Union Member.`)}function EZ(e){return new Error(`The Enum "${e}" must define at least one Enum Value.`)}function gZ(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type object but received "${n}.`)}function IZ(e,t){let n=e.name,r=[];for(let[i,s]of e.fieldDataByFieldName){if(!t.has(i))continue;let o=[],u=[];for(let[l,d]of s.isShareableBySubgraphName)d?o.push(l):u.push(l);o.length<1?r.push(` The field "${i}" is defined in the following subgraphs: "${[...s.subgraphNames].join('", "')}". However, it is not declared "@shareable" in any of them.`):r.push(` The field "${i}" is defined and declared "@shareable" in the following subgraph`+(o.length>1?"s":"")+': "'+o.join(Et.QUOTATION_JOIN)+`". However, it is not declared "@shareable" in the following subgraph`+(u.length>1?"s":"")+`: "${u.join(Et.QUOTATION_JOIN)}".`)}return new Error(`The object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` -`)}`)}function uZ(e,t){return`The directive "${e}" is declared on "${t}", but the directive is not defined in the schema.`}function cZ(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function lZ(e,t){return`The definition for the directive "${e}" does not define it as repeatable, but the same directive is declared more than once on type "${t}".`}function dZ(e,t){return new Error(`The definition for the directive "${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function pZ(e,t,n){return new Error(`The directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?`s: +`)}`)}function vZ(e,t){return`The directive "${e}" is declared on "${t}", but the directive is not defined in the schema.`}function _Z(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function bZ(e,t){return`The definition for the directive "${e}" does not define it as repeatable, but the same directive is declared more than once on type "${t}".`}function OZ(e,t){return new Error(`The definition for the directive "${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function SZ(e,t,n){return new Error(`The directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?`s: `:`: `)+n.join(` -`))}function fZ(e,t,n){return` "${e}" is type "${t}", but the directive "${n}" does not define "${(0,U7.nodeKindToDirectiveLocation)(t)}" as a valid location.`}function mZ(e,t){var i;let n=e.name.value,r=((i=e.arguments)==null?void 0:i.length)||1;return` The definition for the directive "${n}" does not define any arguments. - However, the same directive declared on "${t}" defines ${r} argument`+(r>1?"s.":".")}function hZ(e,t,n,r=[]){let i=` The definition for the directive "${e}" defines the following `+n.length+" required argument"+(n.length>1?"s: ":": ")+'"'+n.join('", "')+`". - However, the same directive that is declared on "${t}" does not define`;return r.length<1?i+" any arguments.":i+" the following required argument"+(r.length>1?"s":"")+': "'+r.join(Et.QUOTATION_JOIN)+'".'}function TZ(e,t){return` The definition for the directive "${e}" does not define the following provided argument`+(t.length>1?"s":"")+': "'+t.join(Et.QUOTATION_JOIN)+'".'}function yZ(e,t,n){return` The directive "${e}" that is declared on "${t}" defines the following argument`+(n.length>1?"s":"")+' more than once: "'+n.join(Et.QUOTATION_JOIN)+'"'}function NZ(e,t,n,r){return` The ${e?"required ":""}argument "${t} must be type "${n}" and not type "${r}".`}function EZ(e){return` The required argument named "fields" must be type "String" and not type "${e}".`}function gZ(e,t){return new Error(`The entity "${e}" defines the following invalid "key" directive`+(t.length>1?"s":"")+`: +`))}function DZ(e,t,n){return` "${e}" is type "${t}", but the directive "${n}" does not define "${(0,W7.nodeKindToDirectiveLocation)(t)}" as a valid location.`}function AZ(e,t){var i;let n=e.name.value,r=((i=e.arguments)==null?void 0:i.length)||1;return` The definition for the directive "${n}" does not define any arguments. + However, the same directive declared on "${t}" defines ${r} argument`+(r>1?"s.":".")}function RZ(e,t,n,r=[]){let i=` The definition for the directive "${e}" defines the following `+n.length+" required argument"+(n.length>1?"s: ":": ")+'"'+n.join('", "')+`". + However, the same directive that is declared on "${t}" does not define`;return r.length<1?i+" any arguments.":i+" the following required argument"+(r.length>1?"s":"")+': "'+r.join(Et.QUOTATION_JOIN)+'".'}function FZ(e,t){return` The definition for the directive "${e}" does not define the following provided argument`+(t.length>1?"s":"")+': "'+t.join(Et.QUOTATION_JOIN)+'".'}function wZ(e,t,n){return` The directive "${e}" that is declared on "${t}" defines the following argument`+(n.length>1?"s":"")+' more than once: "'+n.join(Et.QUOTATION_JOIN)+'"'}function LZ(e,t,n,r){return` The ${e?"required ":""}argument "${t} must be type "${n}" and not type "${r}".`}function PZ(e){return` The required argument named "fields" must be type "String" and not type "${e}".`}function kZ(e,t){return new Error(`The entity "${e}" defines the following invalid "key" directive`+(t.length>1?"s":"")+`: `+t.join(` -`))}function IZ(e){return new Error(` The type defined at path "${e}" has more than ${YM.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function vZ(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function _Z(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,yp.kindToTypeString)(t)} but received "${(0,yp.kindToTypeString)(n)}".`)}function bZ(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: - " ${t.join(Et.QUOTATION_JOIN)}".`)}function OZ(e,t,n){return new Error(` When merging types, expected "${e}" to be type "${t}" but received "${n}".`)}function SZ(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}function DZ(e){return new Error(`Fatal: Unknown directive location "${e}".`)}function AZ(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function RZ(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}function FZ(e){return new Error(`Fatal: Expected either errors or configurations for the path ${e}" but received neither".`)}Z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");Z.federationFactoryInitializationFatalError=new Error("Fatal: FederationFactory was unsuccessfully initialized.");function wZ(e,t,n){return` Expected "${e}" to be type ${t} but received "${n}".`}function LZ(e,t,n,r,i){return new Error(` Expected "${e}" to be type ${t} but received "${n}" when handling child "${r}" of type "${i}".`)}function PZ(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: +`))}function xZ(e){return new Error(` The type defined at path "${e}" has more than ${oB.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function CZ(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function UZ(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,_p.kindToTypeString)(t)} but received "${(0,_p.kindToTypeString)(n)}".`)}function MZ(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: + " ${t.join(Et.QUOTATION_JOIN)}".`)}function BZ(e,t,n){return new Error(` When merging types, expected "${e}" to be type "${t}" but received "${n}".`)}function VZ(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}function jZ(e){return new Error(`Fatal: Unknown directive location "${e}".`)}function $Z(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function qZ(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}function KZ(e){return new Error(`Fatal: Expected either errors or configurations for the path ${e}" but received neither".`)}Z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");Z.federationFactoryInitializationFatalError=new Error("Fatal: FederationFactory was unsuccessfully initialized.");function GZ(e,t,n){return` Expected "${e}" to be type ${t} but received "${n}".`}function QZ(e,t,n,r,i){return new Error(` Expected "${e}" to be type ${t} but received "${n}" when handling child "${r}" of type "${i}".`)}function YZ(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: `+t.map(n=>n.message).join(` -`))}function kZ(e,t){return`The ${(0,yp.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function CZ(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. - If explicitly defined, each operation type must be a unique and valid Object type.`)}function xZ(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. -For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function UZ(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` - The reason provided was: `+e.message),new Error(t)}function MZ(e,t,n){let r=[];for(let[i,s]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: +`))}function JZ(e,t){return`The ${(0,_p.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function zZ(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. + If explicitly defined, each operation type must be a unique and valid Object type.`)}function HZ(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. +For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function WZ(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` + The reason provided was: `+e.message),new Error(t)}function XZ(e,t,n){let r=[];for(let[i,s]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: `,u=s.unimplementedFields.length;u&&(o+=` The following Field${u>1?"s are":" is"} not implemented: "`+s.unimplementedFields.join('", "')+`" `);for(let[l,d]of s.invalidFieldImplementations){let p=d.unimplementedArguments.size,y=d.invalidImplementedArguments.length,N=d.invalidAdditionalArguments.size;if(o+=` The Field "${l}" is invalid because: `,p&&(o+=` The following Argument${p>1?"s are":" is"} not implemented: "`+[...d.unimplementedArguments].join('", "')+`" @@ -285,89 +285,89 @@ For federation, it is only possible to use the default root types names ("Mutati Consequently, the Interface implementation cannot be satisfied. `)}r.push(o)}return new Error(`The ${t} "${e}" has the following Interface implementation errors: `+r.join(` -`))}function BZ(e,t,n,r=!0){let i=r?Et.ARGUMENT:Et.INPUT_FIELD,s=`The ${e} "${t}" could not be federated because: +`))}function ZZ(e,t,n,r=!0){let i=r?Et.ARGUMENT:Et.INPUT_FIELD,s=`The ${e} "${t}" could not be federated because: `;for(let o of n)s+=` The ${i} "${o.inputValueName}" is required in the following subgraph`+(o.requiredSubgraphs.length>1?"s":"")+': "'+o.requiredSubgraphs.join('", "')+`" However, the ${i} "${o.inputValueName}" is not defined in the following subgraph`+(o.missingSubgraphs.length>1?"s":"")+': "'+o.missingSubgraphs.join('", "')+`" If an ${i} is required on a ${e} in any one subgraph, it must be at least defined as optional on all other definitions of that ${e} in all other subgraphs. -`;return new Error(s)}function VZ(e,t){return new Error(`The field "${e}" is invalid because: +`;return new Error(s)}function eee(e,t){return new Error(`The field "${e}" is invalid because: The following argument`+(t.length>1?"s are":" is")+' defined more than once: "'+t.join(Et.QUOTATION_JOIN)+`" -`)}function jZ(e,t){let n=`The field "${e}" is invalid because: +`)}function tee(e,t){let n=`The field "${e}" is invalid because: The named type (root type) of an input must be on of Enum, Input Object, or Scalar type. For example: "Float", "[[String!]]!", or "[SomeInputObjectName]" `;for(let r of t)n+=` The argument "${r.argumentName}" defines type "${r.typeName}" but the named type "${r.namedType}" is type "`+r.typeString+`", which is not a valid input type. `;return new Error(n)}Z.noQueryRootTypeError=new Error(`A valid federated graph must have at least one accessible query root type field. For example: type Query { dummy: String - }`);Z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared @inaccessible.');function $Z(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}Z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function qZ(e,t,n,r){return` The following field set is invalid: + }`);Z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared @inaccessible.');function nee(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}Z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function ree(e,t,n,r){return` The following field set is invalid: "${e}" This is because "${t}" returns "${n}", which is type "${r}". - Fields that return abstract types (interfaces and unions) cannot be included in the field set of "@key" directives.`}function KZ(e,t,n){return` The following field set is invalid: + Fields that return abstract types (interfaces and unions) cannot be included in the field set of "@key" directives.`}function iee(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" returns the unknown type "${n}".`}function GZ(e,t,n,r){return` The following field set is invalid: + This is because "${t}" returns the unknown type "${n}".`}function see(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+mE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function QZ(e,t,n,r){return` The following field set is invalid: + This is because of the selection set corresponding to the `+gE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function oee(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+mE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function YZ(e,t,n){return` The following field set is invalid: + This is because of the selection set corresponding to the `+gE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function aee(e,t,n){return` The following field set is invalid: "${e}" This is because of the selection set corresponding to the Field coordinates "${t}.${n}". - The type "${t}" does not define a field named "${n}".`}function JZ(e,t){let n=` The following field set is invalid: + The type "${t}" does not define a field named "${n}".`}function uee(e,t){let n=` The following field set is invalid: "${e}" The field set could not be parsed.`;return t&&(n+=` - The reason provided was: `+t.message),n}function zZ(e,t){return` The following field set is invalid: + The reason provided was: `+t.message),n}function cee(e,t){return` The following field set is invalid: "${e}" - This is because the selection set defined on "${t}" could not be parsed.`}function HZ(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function WZ(e,t,n){return` The following field set is invalid: + This is because the selection set defined on "${t}" could not be parsed.`}function lee(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function dee(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" does not define an argument named "${n}".`}function XZ(e,t){return` The following field set is invalid: + This is because "${t}" does not define an argument named "${n}".`}function pee(e,t){return` The following field set is invalid: "${e}" This is because "${t}" defines arguments. - Fields that define arguments cannot be included in the field set of @key directives.`}function ZZ(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: + Fields that define arguments cannot be included in the field set of @key directives.`}function fee(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: `+t.join(` -`))}function eee(e,t){return` The following field set is invalid: +`))}function mee(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" was included in the field set more than once.`}function tee(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function nee(e,t){return` A "@provides" directive is declared on Field "${e}". - However, the response type "${t}" is not an Object not Interface.`}function sD(e,t,n=!1){return e.length<1?`enclosing type name "${t}". + This is because "${t}" was included in the field set more than once.`}function hee(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function Tee(e,t){return` A "@provides" directive is declared on Field "${e}". + However, the response type "${t}" is not an Object not Interface.`}function fD(e,t,n=!1){return e.length<1?`enclosing type name "${t}". `:`field coordinates "${e[e.length-1]}"`+(n?` that returns "${t}"`:"")+`. -`}function mE(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". +`}function gE(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". `:`field coordinates "${e[e.length-1]}" that returns "${t}", which is type "${n}". -`}function ree(e,t,n,r){return` The following field set is invalid: +`}function yee(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+sD(t,r,!0)+` However, "${r}" is not an abstract (interface or union) type. - Consequently, the only valid type condition at this selection set would be "${r}".`}function iee(e,t){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+fD(t,r,!0)+` However, "${r}" is not an abstract (interface or union) type. + Consequently, the only valid type condition at this selection set would be "${r}".`}function Nee(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" defines an inline fragment without a type condition.`}function see(e,t,n,r){return` The following field set is invalid: + This is because "${t}" defines an inline fragment without a type condition.`}function Eee(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+sD(t,n)}function oee(e,t,n,r,i){return` The following field set is invalid: + This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+fD(t,n)}function gee(e,t,n,r,i){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+sD(t,n)+` However, "${r}" is type "${i}" when types "interface" or "object" would be expected.`}function aee(e,t,n,r,i){let s=` The following field set is invalid: + This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+fD(t,n)+` However, "${r}" is type "${i}" when types "interface" or "object" would be expected.`}function Iee(e,t,n,r,i){let s=` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+mE(t,i,r);return r===Et.INTERFACE?s+` However, "${n}" does not implement "${i}"`:s+` However, "${n}" is not a member of "${i}".`}function uee(e,t,n){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+gE(t,i,r);return r===Et.INTERFACE?s+` However, "${n}" does not implement "${i}"`:s+` However, "${n}" is not a member of "${i}".`}function vee(e,t,n){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+mE(t,n,Et.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function cee(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Et.QUOTATION_JOIN)+'".'}function lee(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(Et.QUOTATION_JOIN)+`". -`)}function dee(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function pee(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function fee(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function mee(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function hee(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity interface must also define each and every entity object that implements that entity interface. -`;for(let[r,i]of e){let o=(0,yp.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entity object`+(o.size>1?"s":"")+`: + This is because of the selection set corresponding to the `+gE(t,n,Et.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function _ee(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Et.QUOTATION_JOIN)+'".'}function bee(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(Et.QUOTATION_JOIN)+`". +`)}function Oee(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function See(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function Dee(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function Aee(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function Ree(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity interface must also define each and every entity object that implements that entity interface. +`;for(let[r,i]of e){let o=(0,_p.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entity object`+(o.size>1?"s":"")+`: "`+Array.from(o).join(Et.QUOTATION_JOIN)+`" However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": -`;for(let{subgraphName:u,concreteTypeNames:l}of i){let d=(0,yp.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${u}" does not define the following implementations: "`+d.join(Et.QUOTATION_JOIN)+`" -`}}return new Error(n)}function Tee(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following path`+(t.length>1?"s attempt":" attempts")+` to define more: +`;for(let{subgraphName:u,concreteTypeNames:l}of i){let d=(0,_p.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${u}" does not define the following implementations: "`+d.join(Et.QUOTATION_JOIN)+`" +`}}return new Error(n)}function Fee(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following path`+(t.length>1?"s attempt":" attempts")+` to define more: "`+t.join(Et.QUOTATION_JOIN)+`" -If you require more, please contact support.`)}function yee(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. +If you require more, please contact support.`)}function wee(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. Consequently, any "@key" definitions must also include the "resolvable: false" argument. Moreover, only fields that compose part of an entity's (composite) key and are declared "@external" are permitted. `+e.join(` -`))}function Nee(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: +`))}function Lee(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: Mutation type fields must define either a edfs publish or request directive." Query type fields must define "@edfs__natsRequest" Subscription type fields must define an edfs subscribe directive The following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)r.definesDirectives?t+=` The root field path "${n}" defines the following invalid events directive`+(r.invalidDirectiveNames.length>1?"s":"")+': "@'+r.invalidDirectiveNames.join('", "@')+`" `:t+=` The root field path "${n}" does not define any valid events directives. -`;return t}function Eee(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: +`;return t}function Pee(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: type edfs__PublishResult { success: Boolean! } However, the following mutation field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The mutation field path "${n}" returns "${r}". -`;return t}function gee(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. +`;return t}function kee(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. Consequently, the following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The root field path "${n}", which returns the invalid type "${r}" `;return t}Z.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: @@ -375,19 +375,19 @@ Moreover, only fields that compose part of an entity's (composite) key and are d consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function Iee(e,t,n){return"The value "+(n?`"${n}" `:"")+`passed to "${e}" is not type "${(0,yp.kindToTypeString)(t)}".`}function vee(e,t,n,r){let i=Z.invalidNatsStreamInputErrorMessage,s=[];return e.length>0&&s.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(Et.QUOTATION_JOIN)+'".'),t.length>0&&s.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(Et.QUOTATION_JOIN)+'".'),n.length>0&&s.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(Et.QUOTATION_JOIN)+'".'),r.length>0&&s.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(Et.QUOTATION_JOIN)+'".'),i+=` + }`;function xee(e,t,n){return"The value "+(n?`"${n}" `:"")+`passed to "${e}" is not type "${(0,_p.kindToTypeString)(t)}".`}function Cee(e,t,n,r){let i=Z.invalidNatsStreamInputErrorMessage,s=[];return e.length>0&&s.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(Et.QUOTATION_JOIN)+'".'),t.length>0&&s.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(Et.QUOTATION_JOIN)+'".'),n.length>0&&s.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(Et.QUOTATION_JOIN)+'".'),r.length>0&&s.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(Et.QUOTATION_JOIN)+'".'),i+=` However, the provided input was invalid for the following reason`+(s.length>1?"s":"")+`: `+s.join(` - `),i}function _ee(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: + `),i}function Uee(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: "`+r.join(Et.QUOTATION_JOIN)+`" -`;return t}function bee(e){let t=" The following field"+(e.size>1?"s":"")+` compose part of an entity's primary key but are not declared "@external": +`;return t}function Mee(e){let t=" The following field"+(e.size>1?"s":"")+` compose part of an entity's primary key but are not declared "@external": `;for(let[n,r]of e)t+=` field "${r}" defined on path "${n}" -`;return t}function Oee(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: +`;return t}function Bee(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: `;for(let[n,r]of e)t+=` Field "${r}" defined on path "${n}" -`;return t}function See(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. +`;return t}function Vee(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. Consequently, the following object extension definition`+(e.length>1?"s are":" is")+` invalid: "`+e.join(Et.QUOTATION_JOIN)+`" -`}function Dee(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: +`}function jee(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: "`+e.join(Et.QUOTATION_JOIN)+`" `}Z.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: type edfs__PublishResult { @@ -403,20 +403,20 @@ Consequently, the following object extension definition`+(e.length>1?"s are":" i consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function Aee(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function Ree(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: + }`;function $ee(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function qee(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: `;for(let[r,i]of t)n+=` "${r}", which is type "${i}" -`;return new Error(n)}function Fee(e){return new Error(` The interface "${e}" must not implement itself.`)}function wee(e){return`The "${e}" argument must be string with a minimum length of one.`}function Lee(e){return`The "${e}" argument must be a list of strings.`}function Pee(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function kee(e){return`An argument template references the invalid argument "${e}".`}function Cee(e){return`An argument template references the undefined argument "${e}".`}Z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function xee(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: +`;return new Error(n)}function Kee(e){return new Error(` The interface "${e}" must not implement itself.`)}function Gee(e){return`The "${e}" argument must be string with a minimum length of one.`}function Qee(e){return`The "${e}" argument must be a list of strings.`}function Yee(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Jee(e){return`An argument template references the invalid argument "${e}".`}function zee(e){return`An argument template references the undefined argument "${e}".`}Z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function Hee(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: `+n.join(` - `))}function Uee(e,t,n){return new Error(`The ${e} "${t}" is declared @inaccessible; however, the ${e} is still referenced at the following paths: + `))}function Wee(e,t,n){return new Error(`The ${e} "${t}" is declared @inaccessible; however, the ${e} is still referenced at the following paths: "`+n.join(Et.QUOTATION_JOIN)+`" -`)}function Mee(e,t,n){return new Error(`The argument "${e}" on path "${t}" is declared @inaccessible; however, it is a required argument for field "${n}".`)}function Bee(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: +`)}function Xee(e,t,n){return new Error(`The argument "${e}" on path "${t}" is declared @inaccessible; however, it is a required argument for field "${n}".`)}function Zee(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: `+t.join(` - `))}function Vee(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function jee(e){return new Error(`The "@${Et.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function $ee(e,t){return new Error(`The "@${Et.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: + `))}function ete(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function tte(e){return new Error(`The "@${Et.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function nte(e,t){return new Error(`The "@${Et.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(` -`))}function qee(e){return` Unknown type "${e}".`}function Kee(e){return` The input path "${e}" exceeds the maximum depth of ${YM.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. - If you require a larger maximum depth, please contact support.`}var JM=` Each "${Et.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${Et.AND_UPPER}", "${Et.IN_UPPER}", "${Et.NOT_UPPER}", or "${Et.OR_UPPER}". -`;function Gee(e,t){return JM+` However, input path "${e}" defines ${t} fields.`}function Qee(e,t){return JM+` However, input path "${e}" defines the invalid input value field "${t}".`}function Yee(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var zM=` An AND or OR input field defined on a "${Et.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. -`;function Jee(e,t){let n=t.length>1;return zM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function zee(e,t){return zM+` However, the list defined on input path "${e}" has a length of ${t}.`}function Hee(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function Wee(e,t,n,r,i){let s=` Each "${Et.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${Et.FIELD_PATH}" and "${Et.VALUES}". +`))}function rte(e){return` Unknown type "${e}".`}function ite(e){return` The input path "${e}" exceeds the maximum depth of ${oB.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. + If you require a larger maximum depth, please contact support.`}var aB=` Each "${Et.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${Et.AND_UPPER}", "${Et.IN_UPPER}", "${Et.NOT_UPPER}", or "${Et.OR_UPPER}". +`;function ste(e,t){return aB+` However, input path "${e}" defines ${t} fields.`}function ote(e,t){return aB+` However, input path "${e}" defines the invalid input value field "${t}".`}function ate(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var uB=` An AND or OR input field defined on a "${Et.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. +`;function ute(e,t){let n=t.length>1;return uB+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function cte(e,t){return uB+` However, the list defined on input path "${e}" has a length of ${t}.`}function lte(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function dte(e,t,n,r,i){let s=` Each "${Et.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${Et.FIELD_PATH}" and "${Et.VALUES}". However, input path "${e}" is invalid because:`;return t.length>0&&(s+=` The following required field`+(t.length>1?"s are":" is")+` not defined: "`+t.join(Et.QUOTATION_JOIN)+'"'),n.length>0&&(s+=` @@ -425,33 +425,33 @@ Consequently, the following object extension definition`+(e.length>1?"s are":" i The following invalid field`+(r.length>1?"s are":" is")+` defined: "`+r.join(Et.QUOTATION_JOIN)+'"'),i.length>0&&(s+=` `+i.join(` - `)),s}var HM=` A "${Et.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${Et.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). -`;function Xee(e,t){let n=t.length>1;return HM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${Et.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function Zee(e){return HM+` However, the list defined on input path "${e}" is empty.`}function ete(e){return new Error(` Field "${e}" defined no subgraph names.`)}function tte(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function nte(e,t,n){return` Input path "${e}" defines the value "${t}". - However, "${n}" is not type "object"`}function rte(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function ite(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". + `)),s}var cB=` A "${Et.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${Et.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). +`;function pte(e,t){let n=t.length>1;return cB+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${Et.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function fte(e){return cB+` However, the list defined on input path "${e}" is empty.`}function mte(e){return new Error(` Field "${e}" defined no subgraph names.`)}function hte(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function Tte(e,t,n){return` Input path "${e}" defines the value "${t}". + However, "${n}" is not type "object"`}function yte(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function Nte(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". However, only fields that are defined in the same graph as the "@${Et.SUBSCRIPTION_FILTER}" directive can compose part of an "IN" condition's "fieldPath" input value field. - Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function ste(e,t,n,r){return` Input path "${e}" defines the value "${t}". - The path segment "${n}" is invalid because it refers to "${r}", which is declared @inaccessible.`}function ote(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function ate({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: + Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function Ete(e,t,n,r){return` Input path "${e}" defines the value "${t}". + The path segment "${n}" is invalid because it refers to "${r}", which is declared @inaccessible.`}function gte(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function Ite({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: ${t} This is because: - `+n.join(` - - `);return new Error(r)}function ute(e,t){let n=`The Object "${e}" is invalid because the following Field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that Field: + - `);return new Error(r)}function vte(e,t){let n=`The Object "${e}" is invalid because the following Field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that Field: `;for(let[r,i]of t)n+=` "${r}" in subgraph`+(i.length>1?"s":"")+' "'+i.join(Et.QUOTATION_JOIN)+`" -`;return n+='At least one instance of a Field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function cte(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared @external: +`;return n+='At least one instance of a Field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function _te(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared @external: "`+t.join(Et.QUOTATION_JOIN)+`" -Interface fields should not be declared @external. This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function lte(e,t,n,r,i){return new Error(`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: +Interface fields should not be declared @external. This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function bte(e,t,n,r,i){return new Error(`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}function dte(e,t){let n=[];for(let[r,i]of t){let s=[...i];n.push(` The Named Type "${r}" is returned by the following subgraph`+(s.length>1?"s":"")+': "'+s.join(Et.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared Field must resolve identically across subgraphs. +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}function Ote(e,t){let n=[];for(let[r,i]of t){let s=[...i];n.push(` The Named Type "${r}" is returned by the following subgraph`+(s.length>1?"s":"")+': "'+s.join(Et.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared Field must resolve identically across subgraphs. The Field "${e}" could not be federated due to incompatible types across subgraphs. The discrepancies are as follows: `+n.join(` -`))}function WM(e,t){return`The Field "${e}" returns the unknown named type "${t}".`}function pte(e,t){return new Error(WM(e,t))}function fte(e){return new Error(`Could not find FieldData for Field "${e}" -.This should never happen. Please report this issue on GitHub.`)}function mte(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". -This should never happen. Please report this issue on GitHub.`)}function hte(e){return new Error(`The Object Field "${e}" is invalidly declared "@external". An Object Field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" FieldSet, or the Field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}});var ZM=j(XM=>{"use strict";m();T();h();Object.defineProperty(XM,"__esModule",{value:!0})});var Qa=j(Di=>{"use strict";m();T();h();Object.defineProperty(Di,"__esModule",{value:!0});Di.getMutableDirectiveDefinitionNode=yte;Di.getMutableEnumNode=Nte;Di.getMutableEnumValueNode=Ete;Di.getMutableFieldNode=gte;Di.getMutableInputObjectNode=Ite;Di.getMutableInputValueNode=vte;Di.getMutableInterfaceNode=_te;Di.getMutableObjectNode=bte;Di.getMutableObjectExtensionNode=Ote;Di.getMutableScalarNode=Ste;Di.getMutableTypeNode=oD;Di.getMutableUnionNode=Dte;Di.getTypeNodeNamedTypeName=aD;var Si=(Le(),Me(je)),Np=$i(),eB=To(),Tte=Al();function yte(e){return{arguments:[],kind:e.kind,locations:[],name:k({},e.name),repeatable:e.repeatable,description:(0,Np.formatDescription)(e.description)}}function Nte(e){return{kind:Si.Kind.ENUM_TYPE_DEFINITION,name:k({},e)}}function Ete(e){return{directives:[],kind:e.kind,name:k({},e.name),description:(0,Np.formatDescription)(e.description)}}function gte(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:k({},e.name),type:oD(e.type,t,n),description:(0,Np.formatDescription)(e.description)}}function Ite(e){return{kind:Si.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:k({},e)}}function vte(e,t,n){return{directives:[],kind:e.kind,name:k({},e.name),type:oD(e.type,t,n),defaultValue:e.defaultValue,description:(0,Np.formatDescription)(e.description)}}function _te(e){return{kind:Si.Kind.INTERFACE_TYPE_DEFINITION,name:k({},e)}}function bte(e){return{kind:Si.Kind.OBJECT_TYPE_DEFINITION,name:k({},e)}}function Ote(e){let t=e.kind===Si.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Si.Kind.OBJECT_TYPE_EXTENSION,name:k({},e.name),description:(0,Np.formatDescription)(t)}}function Ste(e){return{kind:Si.Kind.SCALAR_TYPE_DEFINITION,name:k({},e)}}function oD(e,t,n){let r={kind:e.kind},i=r;for(let s=0;s{"use strict";m();T();h();Object.defineProperty(Ep,"__esModule",{value:!0});Ep.versionInfo=Ep.version=void 0;var Ate="16.9.0";Ep.version=Ate;var Rte=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Ep.versionInfo=Rte});var hE=j(uD=>{"use strict";m();T();h();Object.defineProperty(uD,"__esModule",{value:!0});uD.isPromise=Fte;function Fte(e){return typeof(e==null?void 0:e.then)=="function"}});var TE=j(cD=>{"use strict";m();T();h();Object.defineProperty(cD,"__esModule",{value:!0});cD.syntaxError=Lte;var wte=ut();function Lte(e,t,n){return new wte.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var Rh=j(Ah=>{"use strict";m();T();h();Object.defineProperty(Ah,"__esModule",{value:!0});Ah.TokenKind=void 0;var lD;Ah.TokenKind=lD;(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"})(lD||(Ah.TokenKind=lD={}))});var NE=j(wh=>{"use strict";m();T();h();Object.defineProperty(wh,"__esModule",{value:!0});wh.Lexer=void 0;wh.isPunctuatorTokenKind=kte;var yo=TE(),rB=Ko(),Pte=eh(),Rl=AN(),Vt=Rh(),pD=class{constructor(t){let n=new rB.Token(Vt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Vt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=Cte(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Vt.TokenKind.COMMENT);return t}};wh.Lexer=pD;function kte(e){return e===Vt.TokenKind.BANG||e===Vt.TokenKind.DOLLAR||e===Vt.TokenKind.AMP||e===Vt.TokenKind.PAREN_L||e===Vt.TokenKind.PAREN_R||e===Vt.TokenKind.SPREAD||e===Vt.TokenKind.COLON||e===Vt.TokenKind.EQUALS||e===Vt.TokenKind.AT||e===Vt.TokenKind.BRACKET_L||e===Vt.TokenKind.BRACKET_R||e===Vt.TokenKind.BRACE_L||e===Vt.TokenKind.PIPE||e===Vt.TokenKind.BRACE_R}function gp(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function yE(e,t){return iB(e.charCodeAt(t))&&sB(e.charCodeAt(t+1))}function iB(e){return e>=55296&&e<=56319}function sB(e){return e>=56320&&e<=57343}function Fl(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return Vt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Or(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new rB.Token(t,n,r,s,o,i)}function Cte(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function jte(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,yo.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function $te(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Object.defineProperty(Lh,"__esModule",{value:!0});Lh.Source=void 0;Lh.isSource=Qte;var fD=Oi(),Kte=En(),Gte=Hm(),EE=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,fD.devAssert)(!1,`Body must be a string. Received: ${(0,Kte.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,fD.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,fD.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Lh.Source=EE;function Qte(e){return(0,Gte.instanceOf)(e,EE)}});var Ip=j(_c=>{"use strict";m();T();h();Object.defineProperty(_c,"__esModule",{value:!0});_c.Parser=void 0;_c.parse=Jte;_c.parseConstValue=Hte;_c.parseType=Wte;_c.parseValue=zte;var wl=TE(),Ph=Ko(),Yte=sp(),gt=en(),aB=NE(),oB=gE(),Ae=Rh();function Jte(e,t){return new Ll(e,t).parseDocument()}function zte(e,t){let n=new Ll(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Ae.TokenKind.EOF),r}function Hte(e,t){let n=new Ll(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Ae.TokenKind.EOF),r}function Wte(e,t){let n=new Ll(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Ae.TokenKind.EOF),r}var Ll=class{constructor(t,n={}){let r=(0,oB.isSource)(t)?t:new oB.Source(t);this._lexer=new aB.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Ae.TokenKind.NAME);return this.node(t,{kind:gt.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:gt.Kind.DOCUMENT,definitions:this.many(Ae.TokenKind.SOF,this.parseDefinition,Ae.TokenKind.EOF)})}parseDefinition(){if(this.peek(Ae.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Ae.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw(0,wl.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Ae.TokenKind.BRACE_L))return this.node(t,{kind:gt.Kind.OPERATION_DEFINITION,operation:Ph.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Ae.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:gt.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Ae.TokenKind.NAME);switch(t.value){case"query":return Ph.OperationTypeNode.QUERY;case"mutation":return Ph.OperationTypeNode.MUTATION;case"subscription":return Ph.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Ae.TokenKind.PAREN_L,this.parseVariableDefinition,Ae.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:gt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ae.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ae.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Ae.TokenKind.DOLLAR),this.node(t,{kind:gt.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:gt.Kind.SELECTION_SET,selections:this.many(Ae.TokenKind.BRACE_L,this.parseSelection,Ae.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Ae.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Ae.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:gt.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ae.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ae.TokenKind.PAREN_L,n,Ae.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Ae.TokenKind.COLON),this.node(n,{kind:gt.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Ae.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Ae.TokenKind.NAME)?this.node(t,{kind:gt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:gt.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:gt.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:gt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case Ae.TokenKind.BRACKET_L:return this.parseList(t);case Ae.TokenKind.BRACE_L:return this.parseObject(t);case Ae.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:gt.Kind.INT,value:n.value});case Ae.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:gt.Kind.FLOAT,value:n.value});case Ae.TokenKind.STRING:case Ae.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Ae.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:gt.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:gt.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:gt.Kind.NULL});default:return this.node(n,{kind:gt.Kind.ENUM,value:n.value})}case Ae.TokenKind.DOLLAR:if(t)if(this.expectToken(Ae.TokenKind.DOLLAR),this._lexer.token.kind===Ae.TokenKind.NAME){let r=this._lexer.token.value;throw(0,wl.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:gt.Kind.STRING,value:t.value,block:t.kind===Ae.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:gt.Kind.LIST,values:this.any(Ae.TokenKind.BRACKET_L,n,Ae.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:gt.Kind.OBJECT,fields:this.any(Ae.TokenKind.BRACE_L,n,Ae.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Ae.TokenKind.COLON),this.node(n,{kind:gt.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Ae.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Ae.TokenKind.AT),this.node(n,{kind:gt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Ae.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Ae.TokenKind.BRACKET_R),n=this.node(t,{kind:gt.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Ae.TokenKind.BANG)?this.node(t,{kind:gt.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:gt.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ae.TokenKind.STRING)||this.peek(Ae.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(Ae.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Ae.TokenKind.BRACE_R);return this.node(t,{kind:gt.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Ae.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:gt.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:gt.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ae.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseFieldDefinition,Ae.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ae.TokenKind.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(Ae.TokenKind.PAREN_L,this.parseInputValueDef,Ae.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Ae.TokenKind.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(Ae.TokenKind.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:gt.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:gt.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Ae.TokenKind.EQUALS)?this.delimitedMany(Ae.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:gt.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseEnumValueDefinition,Ae.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,wl.syntaxError)(this._lexer.source,this._lexer.token.start,`${IE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:gt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseInputValueDef,Ae.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Ae.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(Ae.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Ae.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ae.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:gt.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Ae.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Yte.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Ph.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,wl.syntaxError)(this._lexer.source,n.start,`Expected ${uB(t)}, found ${IE(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Ae.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,wl.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${IE(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Ae.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,wl.syntaxError)(this._lexer.source,n.start,`Unexpected ${IE(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==Ae.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,wl.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};_c.Parser=Ll;function IE(e){let t=e.value;return uB(e.kind)+(t!=null?` "${t}"`:"")}function uB(e){return(0,aB.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var cB=j(mD=>{"use strict";m();T();h();Object.defineProperty(mD,"__esModule",{value:!0});mD.memoize3=Xte;function Xte(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}});var lB=j(hD=>{"use strict";m();T();h();Object.defineProperty(hD,"__esModule",{value:!0});hD.promiseForObject=Zte;function Zte(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}});var dB=j(TD=>{"use strict";m();T();h();Object.defineProperty(TD,"__esModule",{value:!0});TD.promiseReduce=tne;var ene=hE();function tne(e,t,n){let r=n;for(let i of e)r=(0,ene.isPromise)(r)?r.then(s=>t(s,i)):t(r,i);return r}});var pB=j(ND=>{"use strict";m();T();h();Object.defineProperty(ND,"__esModule",{value:!0});ND.toError=rne;var nne=En();function rne(e){return e instanceof Error?e:new yD(e)}var yD=class extends Error{constructor(t){super("Unexpected error value: "+(0,nne.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var vE=j(ED=>{"use strict";m();T();h();Object.defineProperty(ED,"__esModule",{value:!0});ED.locatedError=one;var ine=pB(),sne=ut();function one(e,t,n){var r;let i=(0,ine.toError)(e);return ane(i)?i:new sne.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function ane(e){return Array.isArray(e.path)}});var Ch=j(Bs=>{"use strict";m();T();h();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.assertValidExecutionArguments=gB;Bs.buildExecutionContext=IB;Bs.buildResolveInfo=_B;Bs.defaultTypeResolver=Bs.defaultFieldResolver=void 0;Bs.execute=EB;Bs.executeSync=mne;Bs.getFieldDef=OB;var ID=Oi(),Pl=En(),une=ci(),cne=JN(),bD=qo(),No=hE(),lne=cB(),kl=gh(),fB=lB(),dne=dB(),Ms=ut(),bE=vE(),gD=Ko(),mB=en(),bc=tn(),vp=xs(),pne=yh(),yB=cE(),NB=pp(),fne=(0,lne.memoize3)((e,t,n)=>(0,yB.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function EB(e){arguments.length<2||(0,ID.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;gB(t,n,r);let s=IB(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=hne(s,o,i);return(0,No.isPromise)(u)?u.then(l=>_E(l,s.errors),l=>(s.errors.push(l),_E(null,s.errors))):_E(u,s.errors)}catch(o){return s.errors.push(o),_E(null,s.errors)}}function mne(e){let t=EB(e);if((0,No.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function _E(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function gB(e,t,n){t||(0,ID.devAssert)(!1,"Must provide document."),(0,pne.assertValidSchema)(e),n==null||(0,bD.isObjectLike)(n)||(0,ID.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 IB(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let V of i.definitions)switch(V.kind){case mB.Kind.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Ms.GraphQLError("Must provide operation name if query contains multiple operations.")];N=V}else((t=V.name)===null||t===void 0?void 0:t.value)===l&&(N=V);break;case mB.Kind.FRAGMENT_DEFINITION:I[V.name.value]=V;break;default:}if(!N)return l!=null?[new Ms.GraphQLError(`Unknown operation named "${l}".`)]:[new Ms.GraphQLError("Must provide an operation.")];let O=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],x=(0,NB.getVariableValues)(r,O,u!=null?u:{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:x.coerced,fieldResolver:d!=null?d:_D,typeResolver:p!=null?p:bB,subscribeFieldResolver:y!=null?y:_D,errors:[]}}function hne(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Ms.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,yB.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case gD.OperationTypeNode.QUERY:return OE(e,r,n,s,i);case gD.OperationTypeNode.MUTATION:return Tne(e,r,n,s,i);case gD.OperationTypeNode.SUBSCRIPTION:return OE(e,r,n,s,i)}}function Tne(e,t,n,r,i){return(0,dne.promiseReduce)(i.entries(),(s,[o,u])=>{let l=(0,kl.addPath)(r,o,t.name),d=vB(e,t,n,u,l);return d===void 0?s:(0,No.isPromise)(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function OE(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=(0,kl.addPath)(r,u,t.name),p=vB(e,t,n,l,d);p!==void 0&&(s[u]=p,(0,No.isPromise)(p)&&(o=!0))}}catch(u){if(o)return(0,fB.promiseForObject)(s).finally(()=>{throw u});throw u}return o?(0,fB.promiseForObject)(s):s}function vB(e,t,n,r,i){var s;let o=OB(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=_B(e,o,r,t,i);try{let p=(0,NB.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return(0,No.isPromise)(N)?I=N.then(O=>kh(e,u,r,d,i,O)):I=kh(e,u,r,d,i,N),(0,No.isPromise)(I)?I.then(void 0,O=>{let x=(0,bE.locatedError)(O,r,(0,kl.pathToArray)(i));return SE(x,u,e)}):I}catch(p){let y=(0,bE.locatedError)(p,r,(0,kl.pathToArray)(i));return SE(y,u,e)}}function _B(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function SE(e,t,n){if((0,bc.isNonNullType)(t))throw e;return n.errors.push(e),null}function kh(e,t,n,r,i,s){if(s instanceof Error)throw s;if((0,bc.isNonNullType)(t)){let o=kh(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if((0,bc.isListType)(t))return yne(e,t,n,r,i,s);if((0,bc.isLeafType)(t))return Nne(t,s);if((0,bc.isAbstractType)(t))return Ene(e,t,n,r,i,s);if((0,bc.isObjectType)(t))return vD(e,t,n,r,i,s);(0,une.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Pl.inspect)(t))}function yne(e,t,n,r,i,s){if(!(0,cne.isIterableObject)(s))throw new Ms.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=(0,kl.addPath)(i,p,void 0);try{let N;return(0,No.isPromise)(d)?N=d.then(I=>kh(e,o,n,r,y,I)):N=kh(e,o,n,r,y,d),(0,No.isPromise)(N)?(u=!0,N.then(void 0,I=>{let O=(0,bE.locatedError)(I,n,(0,kl.pathToArray)(y));return SE(O,o,e)})):N}catch(N){let I=(0,bE.locatedError)(N,n,(0,kl.pathToArray)(y));return SE(I,o,e)}});return u?Promise.all(l):l}function Nne(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Pl.inspect)(e)}.serialize(${(0,Pl.inspect)(t)})\` to return non-nullable value, returned: ${(0,Pl.inspect)(n)}`);return n}function Ene(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return(0,No.isPromise)(d)?d.then(p=>vD(e,hB(p,e,t,n,r,s),n,r,i,s)):vD(e,hB(d,e,t,n,r,s),n,r,i,s)}function hB(e,t,n,r,i,s){if(e==null)throw new Ms.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,bc.isObjectType)(e))throw new Ms.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 Ms.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Pl.inspect)(s)}, received "${(0,Pl.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Ms.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,bc.isObjectType)(o))throw new Ms.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Ms.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function vD(e,t,n,r,i,s){let o=fne(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if((0,No.isPromise)(u))return u.then(l=>{if(!l)throw TB(t,s,n);return OE(e,t,s,i,o)});if(!u)throw TB(t,s,n)}return OE(e,t,s,i,o)}function TB(e,t,n){return new Ms.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Pl.inspect)(t)}.`,{nodes:n})}var bB=function(e,t,n,r){if((0,bD.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;u{"use strict";m();T();h();Object.defineProperty(DE,"__esModule",{value:!0});DE.graphql=Sne;DE.graphqlSync=Dne;var gne=Oi(),Ine=hE(),vne=Ip(),_ne=yh(),bne=mp(),One=Ch();function Sne(e){return new Promise(t=>t(SB(e)))}function Dne(e){let t=SB(e);if((0,Ine.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function SB(e){arguments.length<2||(0,gne.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=(0,_ne.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,vne.parse)(n)}catch(N){return{errors:[N]}}let y=(0,bne.validate)(t,p);return y.length>0?{errors:y}:(0,One.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}});var FB=j(be=>{"use strict";m();T();h();Object.defineProperty(be,"__esModule",{value:!0});Object.defineProperty(be,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Eo.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(be,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ya.GRAPHQL_MAX_INT}});Object.defineProperty(be,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ya.GRAPHQL_MIN_INT}});Object.defineProperty(be,"GraphQLBoolean",{enumerable:!0,get:function(){return Ya.GraphQLBoolean}});Object.defineProperty(be,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Eo.GraphQLDeprecatedDirective}});Object.defineProperty(be,"GraphQLDirective",{enumerable:!0,get:function(){return Eo.GraphQLDirective}});Object.defineProperty(be,"GraphQLEnumType",{enumerable:!0,get:function(){return Tt.GraphQLEnumType}});Object.defineProperty(be,"GraphQLFloat",{enumerable:!0,get:function(){return Ya.GraphQLFloat}});Object.defineProperty(be,"GraphQLID",{enumerable:!0,get:function(){return Ya.GraphQLID}});Object.defineProperty(be,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Eo.GraphQLIncludeDirective}});Object.defineProperty(be,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Tt.GraphQLInputObjectType}});Object.defineProperty(be,"GraphQLInt",{enumerable:!0,get:function(){return Ya.GraphQLInt}});Object.defineProperty(be,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Tt.GraphQLInterfaceType}});Object.defineProperty(be,"GraphQLList",{enumerable:!0,get:function(){return Tt.GraphQLList}});Object.defineProperty(be,"GraphQLNonNull",{enumerable:!0,get:function(){return Tt.GraphQLNonNull}});Object.defineProperty(be,"GraphQLObjectType",{enumerable:!0,get:function(){return Tt.GraphQLObjectType}});Object.defineProperty(be,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Eo.GraphQLOneOfDirective}});Object.defineProperty(be,"GraphQLScalarType",{enumerable:!0,get:function(){return Tt.GraphQLScalarType}});Object.defineProperty(be,"GraphQLSchema",{enumerable:!0,get:function(){return OD.GraphQLSchema}});Object.defineProperty(be,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Eo.GraphQLSkipDirective}});Object.defineProperty(be,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Eo.GraphQLSpecifiedByDirective}});Object.defineProperty(be,"GraphQLString",{enumerable:!0,get:function(){return Ya.GraphQLString}});Object.defineProperty(be,"GraphQLUnionType",{enumerable:!0,get:function(){return Tt.GraphQLUnionType}});Object.defineProperty(be,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Gi.SchemaMetaFieldDef}});Object.defineProperty(be,"TypeKind",{enumerable:!0,get:function(){return Gi.TypeKind}});Object.defineProperty(be,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Gi.TypeMetaFieldDef}});Object.defineProperty(be,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Gi.TypeNameMetaFieldDef}});Object.defineProperty(be,"__Directive",{enumerable:!0,get:function(){return Gi.__Directive}});Object.defineProperty(be,"__DirectiveLocation",{enumerable:!0,get:function(){return Gi.__DirectiveLocation}});Object.defineProperty(be,"__EnumValue",{enumerable:!0,get:function(){return Gi.__EnumValue}});Object.defineProperty(be,"__Field",{enumerable:!0,get:function(){return Gi.__Field}});Object.defineProperty(be,"__InputValue",{enumerable:!0,get:function(){return Gi.__InputValue}});Object.defineProperty(be,"__Schema",{enumerable:!0,get:function(){return Gi.__Schema}});Object.defineProperty(be,"__Type",{enumerable:!0,get:function(){return Gi.__Type}});Object.defineProperty(be,"__TypeKind",{enumerable:!0,get:function(){return Gi.__TypeKind}});Object.defineProperty(be,"assertAbstractType",{enumerable:!0,get:function(){return Tt.assertAbstractType}});Object.defineProperty(be,"assertCompositeType",{enumerable:!0,get:function(){return Tt.assertCompositeType}});Object.defineProperty(be,"assertDirective",{enumerable:!0,get:function(){return Eo.assertDirective}});Object.defineProperty(be,"assertEnumType",{enumerable:!0,get:function(){return Tt.assertEnumType}});Object.defineProperty(be,"assertEnumValueName",{enumerable:!0,get:function(){return RB.assertEnumValueName}});Object.defineProperty(be,"assertInputObjectType",{enumerable:!0,get:function(){return Tt.assertInputObjectType}});Object.defineProperty(be,"assertInputType",{enumerable:!0,get:function(){return Tt.assertInputType}});Object.defineProperty(be,"assertInterfaceType",{enumerable:!0,get:function(){return Tt.assertInterfaceType}});Object.defineProperty(be,"assertLeafType",{enumerable:!0,get:function(){return Tt.assertLeafType}});Object.defineProperty(be,"assertListType",{enumerable:!0,get:function(){return Tt.assertListType}});Object.defineProperty(be,"assertName",{enumerable:!0,get:function(){return RB.assertName}});Object.defineProperty(be,"assertNamedType",{enumerable:!0,get:function(){return Tt.assertNamedType}});Object.defineProperty(be,"assertNonNullType",{enumerable:!0,get:function(){return Tt.assertNonNullType}});Object.defineProperty(be,"assertNullableType",{enumerable:!0,get:function(){return Tt.assertNullableType}});Object.defineProperty(be,"assertObjectType",{enumerable:!0,get:function(){return Tt.assertObjectType}});Object.defineProperty(be,"assertOutputType",{enumerable:!0,get:function(){return Tt.assertOutputType}});Object.defineProperty(be,"assertScalarType",{enumerable:!0,get:function(){return Tt.assertScalarType}});Object.defineProperty(be,"assertSchema",{enumerable:!0,get:function(){return OD.assertSchema}});Object.defineProperty(be,"assertType",{enumerable:!0,get:function(){return Tt.assertType}});Object.defineProperty(be,"assertUnionType",{enumerable:!0,get:function(){return Tt.assertUnionType}});Object.defineProperty(be,"assertValidSchema",{enumerable:!0,get:function(){return AB.assertValidSchema}});Object.defineProperty(be,"assertWrappingType",{enumerable:!0,get:function(){return Tt.assertWrappingType}});Object.defineProperty(be,"getNamedType",{enumerable:!0,get:function(){return Tt.getNamedType}});Object.defineProperty(be,"getNullableType",{enumerable:!0,get:function(){return Tt.getNullableType}});Object.defineProperty(be,"introspectionTypes",{enumerable:!0,get:function(){return Gi.introspectionTypes}});Object.defineProperty(be,"isAbstractType",{enumerable:!0,get:function(){return Tt.isAbstractType}});Object.defineProperty(be,"isCompositeType",{enumerable:!0,get:function(){return Tt.isCompositeType}});Object.defineProperty(be,"isDirective",{enumerable:!0,get:function(){return Eo.isDirective}});Object.defineProperty(be,"isEnumType",{enumerable:!0,get:function(){return Tt.isEnumType}});Object.defineProperty(be,"isInputObjectType",{enumerable:!0,get:function(){return Tt.isInputObjectType}});Object.defineProperty(be,"isInputType",{enumerable:!0,get:function(){return Tt.isInputType}});Object.defineProperty(be,"isInterfaceType",{enumerable:!0,get:function(){return Tt.isInterfaceType}});Object.defineProperty(be,"isIntrospectionType",{enumerable:!0,get:function(){return Gi.isIntrospectionType}});Object.defineProperty(be,"isLeafType",{enumerable:!0,get:function(){return Tt.isLeafType}});Object.defineProperty(be,"isListType",{enumerable:!0,get:function(){return Tt.isListType}});Object.defineProperty(be,"isNamedType",{enumerable:!0,get:function(){return Tt.isNamedType}});Object.defineProperty(be,"isNonNullType",{enumerable:!0,get:function(){return Tt.isNonNullType}});Object.defineProperty(be,"isNullableType",{enumerable:!0,get:function(){return Tt.isNullableType}});Object.defineProperty(be,"isObjectType",{enumerable:!0,get:function(){return Tt.isObjectType}});Object.defineProperty(be,"isOutputType",{enumerable:!0,get:function(){return Tt.isOutputType}});Object.defineProperty(be,"isRequiredArgument",{enumerable:!0,get:function(){return Tt.isRequiredArgument}});Object.defineProperty(be,"isRequiredInputField",{enumerable:!0,get:function(){return Tt.isRequiredInputField}});Object.defineProperty(be,"isScalarType",{enumerable:!0,get:function(){return Tt.isScalarType}});Object.defineProperty(be,"isSchema",{enumerable:!0,get:function(){return OD.isSchema}});Object.defineProperty(be,"isSpecifiedDirective",{enumerable:!0,get:function(){return Eo.isSpecifiedDirective}});Object.defineProperty(be,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ya.isSpecifiedScalarType}});Object.defineProperty(be,"isType",{enumerable:!0,get:function(){return Tt.isType}});Object.defineProperty(be,"isUnionType",{enumerable:!0,get:function(){return Tt.isUnionType}});Object.defineProperty(be,"isWrappingType",{enumerable:!0,get:function(){return Tt.isWrappingType}});Object.defineProperty(be,"resolveObjMapThunk",{enumerable:!0,get:function(){return Tt.resolveObjMapThunk}});Object.defineProperty(be,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Tt.resolveReadonlyArrayThunk}});Object.defineProperty(be,"specifiedDirectives",{enumerable:!0,get:function(){return Eo.specifiedDirectives}});Object.defineProperty(be,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ya.specifiedScalarTypes}});Object.defineProperty(be,"validateSchema",{enumerable:!0,get:function(){return AB.validateSchema}});var OD=vl(),Tt=tn(),Eo=qi(),Ya=Yo(),Gi=xs(),AB=yh(),RB=th()});var LB=j(an=>{"use strict";m();T();h();Object.defineProperty(an,"__esModule",{value:!0});Object.defineProperty(an,"BREAK",{enumerable:!0,get:function(){return xh.BREAK}});Object.defineProperty(an,"DirectiveLocation",{enumerable:!0,get:function(){return kne.DirectiveLocation}});Object.defineProperty(an,"Kind",{enumerable:!0,get:function(){return Fne.Kind}});Object.defineProperty(an,"Lexer",{enumerable:!0,get:function(){return Lne.Lexer}});Object.defineProperty(an,"Location",{enumerable:!0,get:function(){return SD.Location}});Object.defineProperty(an,"OperationTypeNode",{enumerable:!0,get:function(){return SD.OperationTypeNode}});Object.defineProperty(an,"Source",{enumerable:!0,get:function(){return Ane.Source}});Object.defineProperty(an,"Token",{enumerable:!0,get:function(){return SD.Token}});Object.defineProperty(an,"TokenKind",{enumerable:!0,get:function(){return wne.TokenKind}});Object.defineProperty(an,"getEnterLeaveForKind",{enumerable:!0,get:function(){return xh.getEnterLeaveForKind}});Object.defineProperty(an,"getLocation",{enumerable:!0,get:function(){return Rne.getLocation}});Object.defineProperty(an,"getVisitFn",{enumerable:!0,get:function(){return xh.getVisitFn}});Object.defineProperty(an,"isConstValueNode",{enumerable:!0,get:function(){return Xo.isConstValueNode}});Object.defineProperty(an,"isDefinitionNode",{enumerable:!0,get:function(){return Xo.isDefinitionNode}});Object.defineProperty(an,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Xo.isExecutableDefinitionNode}});Object.defineProperty(an,"isSelectionNode",{enumerable:!0,get:function(){return Xo.isSelectionNode}});Object.defineProperty(an,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Xo.isTypeDefinitionNode}});Object.defineProperty(an,"isTypeExtensionNode",{enumerable:!0,get:function(){return Xo.isTypeExtensionNode}});Object.defineProperty(an,"isTypeNode",{enumerable:!0,get:function(){return Xo.isTypeNode}});Object.defineProperty(an,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Xo.isTypeSystemDefinitionNode}});Object.defineProperty(an,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Xo.isTypeSystemExtensionNode}});Object.defineProperty(an,"isValueNode",{enumerable:!0,get:function(){return Xo.isValueNode}});Object.defineProperty(an,"parse",{enumerable:!0,get:function(){return AE.parse}});Object.defineProperty(an,"parseConstValue",{enumerable:!0,get:function(){return AE.parseConstValue}});Object.defineProperty(an,"parseType",{enumerable:!0,get:function(){return AE.parseType}});Object.defineProperty(an,"parseValue",{enumerable:!0,get:function(){return AE.parseValue}});Object.defineProperty(an,"print",{enumerable:!0,get:function(){return Pne.print}});Object.defineProperty(an,"printLocation",{enumerable:!0,get:function(){return wB.printLocation}});Object.defineProperty(an,"printSourceLocation",{enumerable:!0,get:function(){return wB.printSourceLocation}});Object.defineProperty(an,"visit",{enumerable:!0,get:function(){return xh.visit}});Object.defineProperty(an,"visitInParallel",{enumerable:!0,get:function(){return xh.visitInParallel}});var Ane=gE(),Rne=IN(),wB=mO(),Fne=en(),wne=Rh(),Lne=NE(),AE=Ip(),Pne=ds(),xh=hl(),SD=Ko(),Xo=bl(),kne=sp()});var PB=j(DD=>{"use strict";m();T();h();Object.defineProperty(DD,"__esModule",{value:!0});DD.isAsyncIterable=Cne;function Cne(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var kB=j(AD=>{"use strict";m();T();h();Object.defineProperty(AD,"__esModule",{value:!0});AD.mapAsyncIterator=xne;function xne(e,t){let n=e[Symbol.asyncIterator]();function r(s){return yr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return yr(this,null,function*(){return r(yield n.next())})},return(){return yr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return yr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}});var MB=j(RE=>{"use strict";m();T();h();Object.defineProperty(RE,"__esModule",{value:!0});RE.createSourceEventStream=UB;RE.subscribe=qne;var Une=Oi(),Mne=En(),xB=PB(),CB=gh(),RD=ut(),Bne=vE(),Vne=cE(),Uh=Ch(),jne=kB(),$ne=pp();function qne(t){return yr(this,arguments,function*(e){arguments.length<2||(0,Une.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield UB(e);if(!(0,xB.isAsyncIterable)(n))return n;let r=i=>(0,Uh.execute)(G(k({},e),{rootValue:i}));return(0,jne.mapAsyncIterator)(n,r)})}function Kne(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 UB(...e){return yr(this,null,function*(){let t=Kne(e),{schema:n,document:r,variableValues:i}=t;(0,Uh.assertValidExecutionArguments)(n,r,i);let s=(0,Uh.buildExecutionContext)(t);if(!("schema"in s))return{errors:s};try{let o=yield Gne(s);if(!(0,xB.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Mne.inspect)(o)}.`);return o}catch(o){if(o instanceof RD.GraphQLError)return{errors:[o]};throw o}})}function Gne(e){return yr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new RD.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let u=(0,Vne.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=(0,Uh.getFieldDef)(t,o,d[0]);if(!p){let O=d[0].name.value;throw new RD.GraphQLError(`The subscription field "${O}" is not defined.`,{nodes:d})}let y=(0,CB.addPath)(void 0,l,o.name),N=(0,Uh.buildResolveInfo)(e,p,d,o,y);try{var I;let O=(0,$ne.getArgumentValues)(p,d[0],i),x=e.contextValue,K=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,O,x,N);if(K instanceof Error)throw K;return K}catch(O){throw(0,Bne.locatedError)(O,d,(0,CB.pathToArray)(y))}})}});var VB=j(Vs=>{"use strict";m();T();h();Object.defineProperty(Vs,"__esModule",{value:!0});Object.defineProperty(Vs,"createSourceEventStream",{enumerable:!0,get:function(){return BB.createSourceEventStream}});Object.defineProperty(Vs,"defaultFieldResolver",{enumerable:!0,get:function(){return FE.defaultFieldResolver}});Object.defineProperty(Vs,"defaultTypeResolver",{enumerable:!0,get:function(){return FE.defaultTypeResolver}});Object.defineProperty(Vs,"execute",{enumerable:!0,get:function(){return FE.execute}});Object.defineProperty(Vs,"executeSync",{enumerable:!0,get:function(){return FE.executeSync}});Object.defineProperty(Vs,"getArgumentValues",{enumerable:!0,get:function(){return FD.getArgumentValues}});Object.defineProperty(Vs,"getDirectiveValues",{enumerable:!0,get:function(){return FD.getDirectiveValues}});Object.defineProperty(Vs,"getVariableValues",{enumerable:!0,get:function(){return FD.getVariableValues}});Object.defineProperty(Vs,"responsePathAsArray",{enumerable:!0,get:function(){return Qne.pathToArray}});Object.defineProperty(Vs,"subscribe",{enumerable:!0,get:function(){return BB.subscribe}});var Qne=gh(),FE=Ch(),BB=MB(),FD=pp()});var jB=j(PD=>{"use strict";m();T();h();Object.defineProperty(PD,"__esModule",{value:!0});PD.NoDeprecatedCustomRule=Yne;var wD=ci(),Mh=ut(),LD=tn();function Yne(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,wD.invariant)(!1),e.reportError(new Mh.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new Mh.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||(0,wD.invariant)(!1),e.reportError(new Mh.GraphQLError(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,LD.getNamedType)(e.getParentInputType());if((0,LD.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Mh.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,LD.getNamedType)(e.getInputType());i!=null||(0,wD.invariant)(!1),e.reportError(new Mh.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var $B=j(kD=>{"use strict";m();T();h();Object.defineProperty(kD,"__esModule",{value:!0});kD.NoSchemaIntrospectionCustomRule=Wne;var Jne=ut(),zne=tn(),Hne=xs();function Wne(e){return{Field(t){let n=(0,zne.getNamedType)(e.getType());n&&(0,Hne.isIntrospectionType)(n)&&e.reportError(new Jne.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var KB=j(At=>{"use strict";m();T();h();Object.defineProperty(At,"__esModule",{value:!0});Object.defineProperty(At,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ere.ExecutableDefinitionsRule}});Object.defineProperty(At,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return tre.FieldsOnCorrectTypeRule}});Object.defineProperty(At,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return nre.FragmentsOnCompositeTypesRule}});Object.defineProperty(At,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return rre.KnownArgumentNamesRule}});Object.defineProperty(At,"KnownDirectivesRule",{enumerable:!0,get:function(){return ire.KnownDirectivesRule}});Object.defineProperty(At,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return sre.KnownFragmentNamesRule}});Object.defineProperty(At,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ore.KnownTypeNamesRule}});Object.defineProperty(At,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return are.LoneAnonymousOperationRule}});Object.defineProperty(At,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Dre.LoneSchemaDefinitionRule}});Object.defineProperty(At,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Sre.MaxIntrospectionDepthRule}});Object.defineProperty(At,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Cre.NoDeprecatedCustomRule}});Object.defineProperty(At,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ure.NoFragmentCyclesRule}});Object.defineProperty(At,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return xre.NoSchemaIntrospectionCustomRule}});Object.defineProperty(At,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return cre.NoUndefinedVariablesRule}});Object.defineProperty(At,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return lre.NoUnusedFragmentsRule}});Object.defineProperty(At,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return dre.NoUnusedVariablesRule}});Object.defineProperty(At,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return pre.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(At,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return fre.PossibleFragmentSpreadsRule}});Object.defineProperty(At,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return kre.PossibleTypeExtensionsRule}});Object.defineProperty(At,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return mre.ProvidedRequiredArgumentsRule}});Object.defineProperty(At,"ScalarLeafsRule",{enumerable:!0,get:function(){return hre.ScalarLeafsRule}});Object.defineProperty(At,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Tre.SingleFieldSubscriptionsRule}});Object.defineProperty(At,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Lre.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(At,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return yre.UniqueArgumentNamesRule}});Object.defineProperty(At,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Pre.UniqueDirectiveNamesRule}});Object.defineProperty(At,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Nre.UniqueDirectivesPerLocationRule}});Object.defineProperty(At,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Fre.UniqueEnumValueNamesRule}});Object.defineProperty(At,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return wre.UniqueFieldDefinitionNamesRule}});Object.defineProperty(At,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Ere.UniqueFragmentNamesRule}});Object.defineProperty(At,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return gre.UniqueInputFieldNamesRule}});Object.defineProperty(At,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Ire.UniqueOperationNamesRule}});Object.defineProperty(At,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Are.UniqueOperationTypesRule}});Object.defineProperty(At,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Rre.UniqueTypeNamesRule}});Object.defineProperty(At,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return vre.UniqueVariableNamesRule}});Object.defineProperty(At,"ValidationContext",{enumerable:!0,get:function(){return Zne.ValidationContext}});Object.defineProperty(At,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return _re.ValuesOfCorrectTypeRule}});Object.defineProperty(At,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return bre.VariablesAreInputTypesRule}});Object.defineProperty(At,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Ore.VariablesInAllowedPositionRule}});Object.defineProperty(At,"recommendedRules",{enumerable:!0,get:function(){return qB.recommendedRules}});Object.defineProperty(At,"specifiedRules",{enumerable:!0,get:function(){return qB.specifiedRules}});Object.defineProperty(At,"validate",{enumerable:!0,get:function(){return Xne.validate}});var Xne=mp(),Zne=Z0(),qB=H0(),ere=fS(),tre=hS(),nre=yS(),rre=NS(),ire=vS(),sre=bS(),ore=DS(),are=RS(),ure=CS(),cre=US(),lre=BS(),dre=jS(),pre=WS(),fre=e0(),mre=i0(),hre=o0(),Tre=h0(),yre=g0(),Nre=O0(),Ere=L0(),gre=k0(),Ire=x0(),vre=$0(),_re=G0(),bre=Y0(),Ore=z0(),Sre=PS(),Dre=wS(),Are=M0(),Rre=V0(),Fre=D0(),wre=F0(),Lre=N0(),Pre=v0(),kre=n0(),Cre=jB(),xre=$B()});var GB=j(Cl=>{"use strict";m();T();h();Object.defineProperty(Cl,"__esModule",{value:!0});Object.defineProperty(Cl,"GraphQLError",{enumerable:!0,get:function(){return CD.GraphQLError}});Object.defineProperty(Cl,"formatError",{enumerable:!0,get:function(){return CD.formatError}});Object.defineProperty(Cl,"locatedError",{enumerable:!0,get:function(){return Mre.locatedError}});Object.defineProperty(Cl,"printError",{enumerable:!0,get:function(){return CD.printError}});Object.defineProperty(Cl,"syntaxError",{enumerable:!0,get:function(){return Ure.syntaxError}});var CD=ut(),Ure=TE(),Mre=vE()});var UD=j(xD=>{"use strict";m();T();h();Object.defineProperty(xD,"__esModule",{value:!0});xD.getIntrospectionQuery=Bre;function Bre(e){let t=k({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` +`))}function lB(e,t){return`The Field "${e}" returns the unknown named type "${t}".`}function Ste(e,t){return new Error(lB(e,t))}function Dte(e){return new Error(`Could not find FieldData for Field "${e}" +.This should never happen. Please report this issue on GitHub.`)}function Ate(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". +This should never happen. Please report this issue on GitHub.`)}function Rte(e){return new Error(`The Object Field "${e}" is invalidly declared "@external". An Object Field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" FieldSet, or the Field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}});var pB=j(dB=>{"use strict";m();T();h();Object.defineProperty(dB,"__esModule",{value:!0})});var Qa=j(Di=>{"use strict";m();T();h();Object.defineProperty(Di,"__esModule",{value:!0});Di.getMutableDirectiveDefinitionNode=wte;Di.getMutableEnumNode=Lte;Di.getMutableEnumValueNode=Pte;Di.getMutableFieldNode=kte;Di.getMutableInputObjectNode=xte;Di.getMutableInputValueNode=Cte;Di.getMutableInterfaceNode=Ute;Di.getMutableObjectNode=Mte;Di.getMutableObjectExtensionNode=Bte;Di.getMutableScalarNode=Vte;Di.getMutableTypeNode=mD;Di.getMutableUnionNode=jte;Di.getTypeNodeNamedTypeName=hD;var Si=(Le(),Me(je)),bp=$i(),fB=To(),Fte=kl();function wte(e){return{arguments:[],kind:e.kind,locations:[],name:k({},e.name),repeatable:e.repeatable,description:(0,bp.formatDescription)(e.description)}}function Lte(e){return{kind:Si.Kind.ENUM_TYPE_DEFINITION,name:k({},e)}}function Pte(e){return{directives:[],kind:e.kind,name:k({},e.name),description:(0,bp.formatDescription)(e.description)}}function kte(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:k({},e.name),type:mD(e.type,t,n),description:(0,bp.formatDescription)(e.description)}}function xte(e){return{kind:Si.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:k({},e)}}function Cte(e,t,n){return{directives:[],kind:e.kind,name:k({},e.name),type:mD(e.type,t,n),defaultValue:e.defaultValue,description:(0,bp.formatDescription)(e.description)}}function Ute(e){return{kind:Si.Kind.INTERFACE_TYPE_DEFINITION,name:k({},e)}}function Mte(e){return{kind:Si.Kind.OBJECT_TYPE_DEFINITION,name:k({},e)}}function Bte(e){let t=e.kind===Si.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Si.Kind.OBJECT_TYPE_EXTENSION,name:k({},e.name),description:(0,bp.formatDescription)(t)}}function Vte(e){return{kind:Si.Kind.SCALAR_TYPE_DEFINITION,name:k({},e)}}function mD(e,t,n){let r={kind:e.kind},i=r;for(let s=0;s{"use strict";m();T();h();Object.defineProperty(Op,"__esModule",{value:!0});Op.versionInfo=Op.version=void 0;var $te="16.9.0";Op.version=$te;var qte=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Op.versionInfo=qte});var IE=j(TD=>{"use strict";m();T();h();Object.defineProperty(TD,"__esModule",{value:!0});TD.isPromise=Kte;function Kte(e){return typeof(e==null?void 0:e.then)=="function"}});var vE=j(yD=>{"use strict";m();T();h();Object.defineProperty(yD,"__esModule",{value:!0});yD.syntaxError=Qte;var Gte=ct();function Qte(e,t,n){return new Gte.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var xh=j(kh=>{"use strict";m();T();h();Object.defineProperty(kh,"__esModule",{value:!0});kh.TokenKind=void 0;var ND;kh.TokenKind=ND;(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"})(ND||(kh.TokenKind=ND={}))});var bE=j(Uh=>{"use strict";m();T();h();Object.defineProperty(Uh,"__esModule",{value:!0});Uh.Lexer=void 0;Uh.isPunctuatorTokenKind=Jte;var yo=vE(),TB=Ko(),Yte=oh(),xl=kN(),Vt=xh(),gD=class{constructor(t){let n=new TB.Token(Vt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Vt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=zte(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Vt.TokenKind.COMMENT);return t}};Uh.Lexer=gD;function Jte(e){return e===Vt.TokenKind.BANG||e===Vt.TokenKind.DOLLAR||e===Vt.TokenKind.AMP||e===Vt.TokenKind.PAREN_L||e===Vt.TokenKind.PAREN_R||e===Vt.TokenKind.SPREAD||e===Vt.TokenKind.COLON||e===Vt.TokenKind.EQUALS||e===Vt.TokenKind.AT||e===Vt.TokenKind.BRACKET_L||e===Vt.TokenKind.BRACKET_R||e===Vt.TokenKind.BRACE_L||e===Vt.TokenKind.PIPE||e===Vt.TokenKind.BRACE_R}function Sp(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _E(e,t){return yB(e.charCodeAt(t))&&NB(e.charCodeAt(t+1))}function yB(e){return e>=55296&&e<=56319}function NB(e){return e>=56320&&e<=57343}function Cl(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return Vt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Or(e,t,n,r,i){let s=e.line,o=1+n-e.lineStart;return new TB.Token(t,n,r,s,o,i)}function zte(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function tne(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,yo.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function nne(e,t){let n=e.source.body,r=n.length,i=e.lineStart,s=t+3,o=s,u="",l=[];for(;s{"use strict";m();T();h();Object.defineProperty(Mh,"__esModule",{value:!0});Mh.Source=void 0;Mh.isSource=one;var ID=Oi(),ine=En(),sne=nh(),OE=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,ID.devAssert)(!1,`Body must be a string. Received: ${(0,ine.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,ID.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,ID.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Mh.Source=OE;function one(e){return(0,sne.instanceOf)(e,OE)}});var Dp=j(Rc=>{"use strict";m();T();h();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.Parser=void 0;Rc.parse=une;Rc.parseConstValue=lne;Rc.parseType=dne;Rc.parseValue=cne;var Ul=vE(),Bh=Ko(),ane=dp(),gt=en(),gB=bE(),EB=SE(),Ae=xh();function une(e,t){return new Ml(e,t).parseDocument()}function cne(e,t){let n=new Ml(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Ae.TokenKind.EOF),r}function lne(e,t){let n=new Ml(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Ae.TokenKind.EOF),r}function dne(e,t){let n=new Ml(e,t);n.expectToken(Ae.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Ae.TokenKind.EOF),r}var Ml=class{constructor(t,n={}){let r=(0,EB.isSource)(t)?t:new EB.Source(t);this._lexer=new gB.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Ae.TokenKind.NAME);return this.node(t,{kind:gt.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:gt.Kind.DOCUMENT,definitions:this.many(Ae.TokenKind.SOF,this.parseDefinition,Ae.TokenKind.EOF)})}parseDefinition(){if(this.peek(Ae.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Ae.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw(0,Ul.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(Ae.TokenKind.BRACE_L))return this.node(t,{kind:gt.Kind.OPERATION_DEFINITION,operation:Bh.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Ae.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:gt.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Ae.TokenKind.NAME);switch(t.value){case"query":return Bh.OperationTypeNode.QUERY;case"mutation":return Bh.OperationTypeNode.MUTATION;case"subscription":return Bh.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Ae.TokenKind.PAREN_L,this.parseVariableDefinition,Ae.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:gt.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ae.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ae.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Ae.TokenKind.DOLLAR),this.node(t,{kind:gt.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:gt.Kind.SELECTION_SET,selections:this.many(Ae.TokenKind.BRACE_L,this.parseSelection,Ae.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Ae.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Ae.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:gt.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ae.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ae.TokenKind.PAREN_L,n,Ae.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Ae.TokenKind.COLON),this.node(n,{kind:gt.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Ae.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Ae.TokenKind.NAME)?this.node(t,{kind:gt.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:gt.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:gt.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:gt.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case Ae.TokenKind.BRACKET_L:return this.parseList(t);case Ae.TokenKind.BRACE_L:return this.parseObject(t);case Ae.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:gt.Kind.INT,value:n.value});case Ae.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:gt.Kind.FLOAT,value:n.value});case Ae.TokenKind.STRING:case Ae.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Ae.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:gt.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:gt.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:gt.Kind.NULL});default:return this.node(n,{kind:gt.Kind.ENUM,value:n.value})}case Ae.TokenKind.DOLLAR:if(t)if(this.expectToken(Ae.TokenKind.DOLLAR),this._lexer.token.kind===Ae.TokenKind.NAME){let r=this._lexer.token.value;throw(0,Ul.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:gt.Kind.STRING,value:t.value,block:t.kind===Ae.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:gt.Kind.LIST,values:this.any(Ae.TokenKind.BRACKET_L,n,Ae.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:gt.Kind.OBJECT,fields:this.any(Ae.TokenKind.BRACE_L,n,Ae.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Ae.TokenKind.COLON),this.node(n,{kind:gt.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Ae.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Ae.TokenKind.AT),this.node(n,{kind:gt.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Ae.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Ae.TokenKind.BRACKET_R),n=this.node(t,{kind:gt.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Ae.TokenKind.BANG)?this.node(t,{kind:gt.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:gt.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ae.TokenKind.STRING)||this.peek(Ae.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(Ae.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Ae.TokenKind.BRACE_R);return this.node(t,{kind:gt.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Ae.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:gt.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:gt.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ae.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseFieldDefinition,Ae.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ae.TokenKind.COLON);let s=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:s,directives:o})}parseArgumentDefs(){return this.optionalMany(Ae.TokenKind.PAREN_L,this.parseInputValueDef,Ae.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Ae.TokenKind.COLON);let i=this.parseTypeReference(),s;this.expectOptionalToken(Ae.TokenKind.EQUALS)&&(s=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:s,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:gt.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:s,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:gt.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Ae.TokenKind.EQUALS)?this.delimitedMany(Ae.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:gt.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseEnumValueDefinition,Ae.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:gt.Kind.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw(0,Ul.syntaxError)(this._lexer.source,this._lexer.token.start,`${DE(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:gt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Ae.TokenKind.BRACE_L,this.parseInputValueDef,Ae.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Ae.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(Ae.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Ae.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:gt.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ae.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:gt.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Ae.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(ane.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Bh.Location(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw(0,Ul.syntaxError)(this._lexer.source,n.start,`Expected ${IB(t)}, found ${DE(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Ae.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,Ul.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${DE(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Ae.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,Ul.syntaxError)(this._lexer.source,n.start,`Unexpected ${DE(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==Ae.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,Ul.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Rc.Parser=Ml;function DE(e){let t=e.value;return IB(e.kind)+(t!=null?` "${t}"`:"")}function IB(e){return(0,gB.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var vB=j(vD=>{"use strict";m();T();h();Object.defineProperty(vD,"__esModule",{value:!0});vD.memoize3=pne;function pne(e){let t;return function(r,i,s){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let u=o.get(i);u===void 0&&(u=new WeakMap,o.set(i,u));let l=u.get(s);return l===void 0&&(l=e(r,i,s),u.set(s,l)),l}}});var _B=j(_D=>{"use strict";m();T();h();Object.defineProperty(_D,"__esModule",{value:!0});_D.promiseForObject=fne;function fne(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}});var bB=j(bD=>{"use strict";m();T();h();Object.defineProperty(bD,"__esModule",{value:!0});bD.promiseReduce=hne;var mne=IE();function hne(e,t,n){let r=n;for(let i of e)r=(0,mne.isPromise)(r)?r.then(s=>t(s,i)):t(r,i);return r}});var OB=j(SD=>{"use strict";m();T();h();Object.defineProperty(SD,"__esModule",{value:!0});SD.toError=yne;var Tne=En();function yne(e){return e instanceof Error?e:new OD(e)}var OD=class extends Error{constructor(t){super("Unexpected error value: "+(0,Tne.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var AE=j(DD=>{"use strict";m();T();h();Object.defineProperty(DD,"__esModule",{value:!0});DD.locatedError=gne;var Nne=OB(),Ene=ct();function gne(e,t,n){var r;let i=(0,Nne.toError)(e);return Ine(i)?i:new Ene.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function Ine(e){return Array.isArray(e.path)}});var jh=j(Bs=>{"use strict";m();T();h();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.assertValidExecutionArguments=PB;Bs.buildExecutionContext=kB;Bs.buildResolveInfo=CB;Bs.defaultTypeResolver=Bs.defaultFieldResolver=void 0;Bs.execute=LB;Bs.executeSync=Ane;Bs.getFieldDef=MB;var RD=Oi(),Bl=En(),vne=ci(),_ne=eE(),LD=qo(),No=IE(),bne=vB(),Vl=Sh(),SB=_B(),One=bB(),Ms=ct(),FE=AE(),AD=Ko(),DB=en(),Fc=tn(),Ap=Cs(),Sne=_h(),FB=hE(),wB=Np(),Dne=(0,bne.memoize3)((e,t,n)=>(0,FB.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function LB(e){arguments.length<2||(0,RD.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;PB(t,n,r);let s=kB(e);if(!("schema"in s))return{errors:s};try{let{operation:o}=s,u=Rne(s,o,i);return(0,No.isPromise)(u)?u.then(l=>RE(l,s.errors),l=>(s.errors.push(l),RE(null,s.errors))):RE(u,s.errors)}catch(o){return s.errors.push(o),RE(null,s.errors)}}function Ane(e){let t=LB(e);if((0,No.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function RE(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function PB(e,t,n){t||(0,RD.devAssert)(!1,"Must provide document."),(0,Sne.assertValidSchema)(e),n==null||(0,LD.isObjectLike)(n)||(0,RD.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 kB(e){var t,n;let{schema:r,document:i,rootValue:s,contextValue:o,variableValues:u,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:y}=e,N,I=Object.create(null);for(let V of i.definitions)switch(V.kind){case DB.Kind.OPERATION_DEFINITION:if(l==null){if(N!==void 0)return[new Ms.GraphQLError("Must provide operation name if query contains multiple operations.")];N=V}else((t=V.name)===null||t===void 0?void 0:t.value)===l&&(N=V);break;case DB.Kind.FRAGMENT_DEFINITION:I[V.name.value]=V;break;default:}if(!N)return l!=null?[new Ms.GraphQLError(`Unknown operation named "${l}".`)]:[new Ms.GraphQLError("Must provide an operation.")];let S=(n=N.variableDefinitions)!==null&&n!==void 0?n:[],C=(0,wB.getVariableValues)(r,S,u!=null?u:{},{maxErrors:50});return C.errors?C.errors:{schema:r,fragments:I,rootValue:s,contextValue:o,operation:N,variableValues:C.coerced,fieldResolver:d!=null?d:wD,typeResolver:p!=null?p:UB,subscribeFieldResolver:y!=null?y:wD,errors:[]}}function Rne(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Ms.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,FB.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),s=void 0;switch(t.operation){case AD.OperationTypeNode.QUERY:return wE(e,r,n,s,i);case AD.OperationTypeNode.MUTATION:return Fne(e,r,n,s,i);case AD.OperationTypeNode.SUBSCRIPTION:return wE(e,r,n,s,i)}}function Fne(e,t,n,r,i){return(0,One.promiseReduce)(i.entries(),(s,[o,u])=>{let l=(0,Vl.addPath)(r,o,t.name),d=xB(e,t,n,u,l);return d===void 0?s:(0,No.isPromise)(d)?d.then(p=>(s[o]=p,s)):(s[o]=d,s)},Object.create(null))}function wE(e,t,n,r,i){let s=Object.create(null),o=!1;try{for(let[u,l]of i.entries()){let d=(0,Vl.addPath)(r,u,t.name),p=xB(e,t,n,l,d);p!==void 0&&(s[u]=p,(0,No.isPromise)(p)&&(o=!0))}}catch(u){if(o)return(0,SB.promiseForObject)(s).finally(()=>{throw u});throw u}return o?(0,SB.promiseForObject)(s):s}function xB(e,t,n,r,i){var s;let o=MB(e.schema,t,r[0]);if(!o)return;let u=o.type,l=(s=o.resolve)!==null&&s!==void 0?s:e.fieldResolver,d=CB(e,o,r,t,i);try{let p=(0,wB.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,N=l(n,p,y,d),I;return(0,No.isPromise)(N)?I=N.then(S=>Vh(e,u,r,d,i,S)):I=Vh(e,u,r,d,i,N),(0,No.isPromise)(I)?I.then(void 0,S=>{let C=(0,FE.locatedError)(S,r,(0,Vl.pathToArray)(i));return LE(C,u,e)}):I}catch(p){let y=(0,FE.locatedError)(p,r,(0,Vl.pathToArray)(i));return LE(y,u,e)}}function CB(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function LE(e,t,n){if((0,Fc.isNonNullType)(t))throw e;return n.errors.push(e),null}function Vh(e,t,n,r,i,s){if(s instanceof Error)throw s;if((0,Fc.isNonNullType)(t)){let o=Vh(e,t.ofType,n,r,i,s);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(s==null)return null;if((0,Fc.isListType)(t))return wne(e,t,n,r,i,s);if((0,Fc.isLeafType)(t))return Lne(t,s);if((0,Fc.isAbstractType)(t))return Pne(e,t,n,r,i,s);if((0,Fc.isObjectType)(t))return FD(e,t,n,r,i,s);(0,vne.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Bl.inspect)(t))}function wne(e,t,n,r,i,s){if(!(0,_ne.isIterableObject)(s))throw new Ms.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,u=!1,l=Array.from(s,(d,p)=>{let y=(0,Vl.addPath)(i,p,void 0);try{let N;return(0,No.isPromise)(d)?N=d.then(I=>Vh(e,o,n,r,y,I)):N=Vh(e,o,n,r,y,d),(0,No.isPromise)(N)?(u=!0,N.then(void 0,I=>{let S=(0,FE.locatedError)(I,n,(0,Vl.pathToArray)(y));return LE(S,o,e)})):N}catch(N){let I=(0,FE.locatedError)(N,n,(0,Vl.pathToArray)(y));return LE(I,o,e)}});return u?Promise.all(l):l}function Lne(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Bl.inspect)(e)}.serialize(${(0,Bl.inspect)(t)})\` to return non-nullable value, returned: ${(0,Bl.inspect)(n)}`);return n}function Pne(e,t,n,r,i,s){var o;let u=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=u(s,l,r,t);return(0,No.isPromise)(d)?d.then(p=>FD(e,AB(p,e,t,n,r,s),n,r,i,s)):FD(e,AB(d,e,t,n,r,s),n,r,i,s)}function AB(e,t,n,r,i,s){if(e==null)throw new Ms.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,Fc.isObjectType)(e))throw new Ms.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 Ms.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Bl.inspect)(s)}, received "${(0,Bl.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Ms.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,Fc.isObjectType)(o))throw new Ms.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Ms.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function FD(e,t,n,r,i,s){let o=Dne(e,t,n);if(t.isTypeOf){let u=t.isTypeOf(s,e.contextValue,r);if((0,No.isPromise)(u))return u.then(l=>{if(!l)throw RB(t,s,n);return wE(e,t,s,i,o)});if(!u)throw RB(t,s,n)}return wE(e,t,s,i,o)}function RB(e,t,n){return new Ms.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Bl.inspect)(t)}.`,{nodes:n})}var UB=function(e,t,n,r){if((0,LD.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),s=[];for(let o=0;o{for(let u=0;u{"use strict";m();T();h();Object.defineProperty(PE,"__esModule",{value:!0});PE.graphql=Vne;PE.graphqlSync=jne;var kne=Oi(),xne=IE(),Cne=Dp(),Une=_h(),Mne=gp(),Bne=jh();function Vne(e){return new Promise(t=>t(BB(e)))}function jne(e){let t=BB(e);if((0,xne.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function BB(e){arguments.length<2||(0,kne.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l}=e,d=(0,Une.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,Cne.parse)(n)}catch(N){return{errors:[N]}}let y=(0,Mne.validate)(t,p);return y.length>0?{errors:y}:(0,Bne.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:s,operationName:o,fieldResolver:u,typeResolver:l})}});var qB=j(be=>{"use strict";m();T();h();Object.defineProperty(be,"__esModule",{value:!0});Object.defineProperty(be,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Eo.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(be,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ya.GRAPHQL_MAX_INT}});Object.defineProperty(be,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ya.GRAPHQL_MIN_INT}});Object.defineProperty(be,"GraphQLBoolean",{enumerable:!0,get:function(){return Ya.GraphQLBoolean}});Object.defineProperty(be,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Eo.GraphQLDeprecatedDirective}});Object.defineProperty(be,"GraphQLDirective",{enumerable:!0,get:function(){return Eo.GraphQLDirective}});Object.defineProperty(be,"GraphQLEnumType",{enumerable:!0,get:function(){return Tt.GraphQLEnumType}});Object.defineProperty(be,"GraphQLFloat",{enumerable:!0,get:function(){return Ya.GraphQLFloat}});Object.defineProperty(be,"GraphQLID",{enumerable:!0,get:function(){return Ya.GraphQLID}});Object.defineProperty(be,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Eo.GraphQLIncludeDirective}});Object.defineProperty(be,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Tt.GraphQLInputObjectType}});Object.defineProperty(be,"GraphQLInt",{enumerable:!0,get:function(){return Ya.GraphQLInt}});Object.defineProperty(be,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Tt.GraphQLInterfaceType}});Object.defineProperty(be,"GraphQLList",{enumerable:!0,get:function(){return Tt.GraphQLList}});Object.defineProperty(be,"GraphQLNonNull",{enumerable:!0,get:function(){return Tt.GraphQLNonNull}});Object.defineProperty(be,"GraphQLObjectType",{enumerable:!0,get:function(){return Tt.GraphQLObjectType}});Object.defineProperty(be,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Eo.GraphQLOneOfDirective}});Object.defineProperty(be,"GraphQLScalarType",{enumerable:!0,get:function(){return Tt.GraphQLScalarType}});Object.defineProperty(be,"GraphQLSchema",{enumerable:!0,get:function(){return PD.GraphQLSchema}});Object.defineProperty(be,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Eo.GraphQLSkipDirective}});Object.defineProperty(be,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Eo.GraphQLSpecifiedByDirective}});Object.defineProperty(be,"GraphQLString",{enumerable:!0,get:function(){return Ya.GraphQLString}});Object.defineProperty(be,"GraphQLUnionType",{enumerable:!0,get:function(){return Tt.GraphQLUnionType}});Object.defineProperty(be,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Gi.SchemaMetaFieldDef}});Object.defineProperty(be,"TypeKind",{enumerable:!0,get:function(){return Gi.TypeKind}});Object.defineProperty(be,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Gi.TypeMetaFieldDef}});Object.defineProperty(be,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Gi.TypeNameMetaFieldDef}});Object.defineProperty(be,"__Directive",{enumerable:!0,get:function(){return Gi.__Directive}});Object.defineProperty(be,"__DirectiveLocation",{enumerable:!0,get:function(){return Gi.__DirectiveLocation}});Object.defineProperty(be,"__EnumValue",{enumerable:!0,get:function(){return Gi.__EnumValue}});Object.defineProperty(be,"__Field",{enumerable:!0,get:function(){return Gi.__Field}});Object.defineProperty(be,"__InputValue",{enumerable:!0,get:function(){return Gi.__InputValue}});Object.defineProperty(be,"__Schema",{enumerable:!0,get:function(){return Gi.__Schema}});Object.defineProperty(be,"__Type",{enumerable:!0,get:function(){return Gi.__Type}});Object.defineProperty(be,"__TypeKind",{enumerable:!0,get:function(){return Gi.__TypeKind}});Object.defineProperty(be,"assertAbstractType",{enumerable:!0,get:function(){return Tt.assertAbstractType}});Object.defineProperty(be,"assertCompositeType",{enumerable:!0,get:function(){return Tt.assertCompositeType}});Object.defineProperty(be,"assertDirective",{enumerable:!0,get:function(){return Eo.assertDirective}});Object.defineProperty(be,"assertEnumType",{enumerable:!0,get:function(){return Tt.assertEnumType}});Object.defineProperty(be,"assertEnumValueName",{enumerable:!0,get:function(){return $B.assertEnumValueName}});Object.defineProperty(be,"assertInputObjectType",{enumerable:!0,get:function(){return Tt.assertInputObjectType}});Object.defineProperty(be,"assertInputType",{enumerable:!0,get:function(){return Tt.assertInputType}});Object.defineProperty(be,"assertInterfaceType",{enumerable:!0,get:function(){return Tt.assertInterfaceType}});Object.defineProperty(be,"assertLeafType",{enumerable:!0,get:function(){return Tt.assertLeafType}});Object.defineProperty(be,"assertListType",{enumerable:!0,get:function(){return Tt.assertListType}});Object.defineProperty(be,"assertName",{enumerable:!0,get:function(){return $B.assertName}});Object.defineProperty(be,"assertNamedType",{enumerable:!0,get:function(){return Tt.assertNamedType}});Object.defineProperty(be,"assertNonNullType",{enumerable:!0,get:function(){return Tt.assertNonNullType}});Object.defineProperty(be,"assertNullableType",{enumerable:!0,get:function(){return Tt.assertNullableType}});Object.defineProperty(be,"assertObjectType",{enumerable:!0,get:function(){return Tt.assertObjectType}});Object.defineProperty(be,"assertOutputType",{enumerable:!0,get:function(){return Tt.assertOutputType}});Object.defineProperty(be,"assertScalarType",{enumerable:!0,get:function(){return Tt.assertScalarType}});Object.defineProperty(be,"assertSchema",{enumerable:!0,get:function(){return PD.assertSchema}});Object.defineProperty(be,"assertType",{enumerable:!0,get:function(){return Tt.assertType}});Object.defineProperty(be,"assertUnionType",{enumerable:!0,get:function(){return Tt.assertUnionType}});Object.defineProperty(be,"assertValidSchema",{enumerable:!0,get:function(){return jB.assertValidSchema}});Object.defineProperty(be,"assertWrappingType",{enumerable:!0,get:function(){return Tt.assertWrappingType}});Object.defineProperty(be,"getNamedType",{enumerable:!0,get:function(){return Tt.getNamedType}});Object.defineProperty(be,"getNullableType",{enumerable:!0,get:function(){return Tt.getNullableType}});Object.defineProperty(be,"introspectionTypes",{enumerable:!0,get:function(){return Gi.introspectionTypes}});Object.defineProperty(be,"isAbstractType",{enumerable:!0,get:function(){return Tt.isAbstractType}});Object.defineProperty(be,"isCompositeType",{enumerable:!0,get:function(){return Tt.isCompositeType}});Object.defineProperty(be,"isDirective",{enumerable:!0,get:function(){return Eo.isDirective}});Object.defineProperty(be,"isEnumType",{enumerable:!0,get:function(){return Tt.isEnumType}});Object.defineProperty(be,"isInputObjectType",{enumerable:!0,get:function(){return Tt.isInputObjectType}});Object.defineProperty(be,"isInputType",{enumerable:!0,get:function(){return Tt.isInputType}});Object.defineProperty(be,"isInterfaceType",{enumerable:!0,get:function(){return Tt.isInterfaceType}});Object.defineProperty(be,"isIntrospectionType",{enumerable:!0,get:function(){return Gi.isIntrospectionType}});Object.defineProperty(be,"isLeafType",{enumerable:!0,get:function(){return Tt.isLeafType}});Object.defineProperty(be,"isListType",{enumerable:!0,get:function(){return Tt.isListType}});Object.defineProperty(be,"isNamedType",{enumerable:!0,get:function(){return Tt.isNamedType}});Object.defineProperty(be,"isNonNullType",{enumerable:!0,get:function(){return Tt.isNonNullType}});Object.defineProperty(be,"isNullableType",{enumerable:!0,get:function(){return Tt.isNullableType}});Object.defineProperty(be,"isObjectType",{enumerable:!0,get:function(){return Tt.isObjectType}});Object.defineProperty(be,"isOutputType",{enumerable:!0,get:function(){return Tt.isOutputType}});Object.defineProperty(be,"isRequiredArgument",{enumerable:!0,get:function(){return Tt.isRequiredArgument}});Object.defineProperty(be,"isRequiredInputField",{enumerable:!0,get:function(){return Tt.isRequiredInputField}});Object.defineProperty(be,"isScalarType",{enumerable:!0,get:function(){return Tt.isScalarType}});Object.defineProperty(be,"isSchema",{enumerable:!0,get:function(){return PD.isSchema}});Object.defineProperty(be,"isSpecifiedDirective",{enumerable:!0,get:function(){return Eo.isSpecifiedDirective}});Object.defineProperty(be,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ya.isSpecifiedScalarType}});Object.defineProperty(be,"isType",{enumerable:!0,get:function(){return Tt.isType}});Object.defineProperty(be,"isUnionType",{enumerable:!0,get:function(){return Tt.isUnionType}});Object.defineProperty(be,"isWrappingType",{enumerable:!0,get:function(){return Tt.isWrappingType}});Object.defineProperty(be,"resolveObjMapThunk",{enumerable:!0,get:function(){return Tt.resolveObjMapThunk}});Object.defineProperty(be,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Tt.resolveReadonlyArrayThunk}});Object.defineProperty(be,"specifiedDirectives",{enumerable:!0,get:function(){return Eo.specifiedDirectives}});Object.defineProperty(be,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ya.specifiedScalarTypes}});Object.defineProperty(be,"validateSchema",{enumerable:!0,get:function(){return jB.validateSchema}});var PD=Al(),Tt=tn(),Eo=qi(),Ya=Yo(),Gi=Cs(),jB=_h(),$B=ah()});var GB=j(an=>{"use strict";m();T();h();Object.defineProperty(an,"__esModule",{value:!0});Object.defineProperty(an,"BREAK",{enumerable:!0,get:function(){return $h.BREAK}});Object.defineProperty(an,"DirectiveLocation",{enumerable:!0,get:function(){return Jne.DirectiveLocation}});Object.defineProperty(an,"Kind",{enumerable:!0,get:function(){return Kne.Kind}});Object.defineProperty(an,"Lexer",{enumerable:!0,get:function(){return Qne.Lexer}});Object.defineProperty(an,"Location",{enumerable:!0,get:function(){return kD.Location}});Object.defineProperty(an,"OperationTypeNode",{enumerable:!0,get:function(){return kD.OperationTypeNode}});Object.defineProperty(an,"Source",{enumerable:!0,get:function(){return $ne.Source}});Object.defineProperty(an,"Token",{enumerable:!0,get:function(){return kD.Token}});Object.defineProperty(an,"TokenKind",{enumerable:!0,get:function(){return Gne.TokenKind}});Object.defineProperty(an,"getEnterLeaveForKind",{enumerable:!0,get:function(){return $h.getEnterLeaveForKind}});Object.defineProperty(an,"getLocation",{enumerable:!0,get:function(){return qne.getLocation}});Object.defineProperty(an,"getVisitFn",{enumerable:!0,get:function(){return $h.getVisitFn}});Object.defineProperty(an,"isConstValueNode",{enumerable:!0,get:function(){return Xo.isConstValueNode}});Object.defineProperty(an,"isDefinitionNode",{enumerable:!0,get:function(){return Xo.isDefinitionNode}});Object.defineProperty(an,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Xo.isExecutableDefinitionNode}});Object.defineProperty(an,"isSelectionNode",{enumerable:!0,get:function(){return Xo.isSelectionNode}});Object.defineProperty(an,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Xo.isTypeDefinitionNode}});Object.defineProperty(an,"isTypeExtensionNode",{enumerable:!0,get:function(){return Xo.isTypeExtensionNode}});Object.defineProperty(an,"isTypeNode",{enumerable:!0,get:function(){return Xo.isTypeNode}});Object.defineProperty(an,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Xo.isTypeSystemDefinitionNode}});Object.defineProperty(an,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Xo.isTypeSystemExtensionNode}});Object.defineProperty(an,"isValueNode",{enumerable:!0,get:function(){return Xo.isValueNode}});Object.defineProperty(an,"parse",{enumerable:!0,get:function(){return kE.parse}});Object.defineProperty(an,"parseConstValue",{enumerable:!0,get:function(){return kE.parseConstValue}});Object.defineProperty(an,"parseType",{enumerable:!0,get:function(){return kE.parseType}});Object.defineProperty(an,"parseValue",{enumerable:!0,get:function(){return kE.parseValue}});Object.defineProperty(an,"print",{enumerable:!0,get:function(){return Yne.print}});Object.defineProperty(an,"printLocation",{enumerable:!0,get:function(){return KB.printLocation}});Object.defineProperty(an,"printSourceLocation",{enumerable:!0,get:function(){return KB.printSourceLocation}});Object.defineProperty(an,"visit",{enumerable:!0,get:function(){return $h.visit}});Object.defineProperty(an,"visitInParallel",{enumerable:!0,get:function(){return $h.visitInParallel}});var $ne=SE(),qne=DN(),KB=vO(),Kne=en(),Gne=xh(),Qne=bE(),kE=Dp(),Yne=ds(),$h=Il(),kD=Ko(),Xo=Fl(),Jne=dp()});var QB=j(xD=>{"use strict";m();T();h();Object.defineProperty(xD,"__esModule",{value:!0});xD.isAsyncIterable=zne;function zne(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var YB=j(CD=>{"use strict";m();T();h();Object.defineProperty(CD,"__esModule",{value:!0});CD.mapAsyncIterator=Hne;function Hne(e,t){let n=e[Symbol.asyncIterator]();function r(s){return yr(this,null,function*(){if(s.done)return s;try{return{value:yield t(s.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(u){}throw o}})}return{next(){return yr(this,null,function*(){return r(yield n.next())})},return(){return yr(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(s){return yr(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(s));throw s})},[Symbol.asyncIterator](){return this}}}});var WB=j(xE=>{"use strict";m();T();h();Object.defineProperty(xE,"__esModule",{value:!0});xE.createSourceEventStream=HB;xE.subscribe=rre;var Wne=Oi(),Xne=En(),zB=QB(),JB=Sh(),UD=ct(),Zne=AE(),ere=hE(),qh=jh(),tre=YB(),nre=Np();function rre(t){return yr(this,arguments,function*(e){arguments.length<2||(0,Wne.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield HB(e);if(!(0,zB.isAsyncIterable)(n))return n;let r=i=>(0,qh.execute)(Q(k({},e),{rootValue:i}));return(0,tre.mapAsyncIterator)(n,r)})}function ire(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 HB(...e){return yr(this,null,function*(){let t=ire(e),{schema:n,document:r,variableValues:i}=t;(0,qh.assertValidExecutionArguments)(n,r,i);let s=(0,qh.buildExecutionContext)(t);if(!("schema"in s))return{errors:s};try{let o=yield sre(s);if(!(0,zB.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,Xne.inspect)(o)}.`);return o}catch(o){if(o instanceof UD.GraphQLError)return{errors:[o]};throw o}})}function sre(e){return yr(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(o==null)throw new UD.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let u=(0,ere.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...u.entries()][0],p=(0,qh.getFieldDef)(t,o,d[0]);if(!p){let S=d[0].name.value;throw new UD.GraphQLError(`The subscription field "${S}" is not defined.`,{nodes:d})}let y=(0,JB.addPath)(void 0,l,o.name),N=(0,qh.buildResolveInfo)(e,p,d,o,y);try{var I;let S=(0,nre.getArgumentValues)(p,d[0],i),C=e.contextValue,G=yield((I=p.subscribe)!==null&&I!==void 0?I:e.subscribeFieldResolver)(s,S,C,N);if(G instanceof Error)throw G;return G}catch(S){throw(0,Zne.locatedError)(S,d,(0,JB.pathToArray)(y))}})}});var ZB=j(Vs=>{"use strict";m();T();h();Object.defineProperty(Vs,"__esModule",{value:!0});Object.defineProperty(Vs,"createSourceEventStream",{enumerable:!0,get:function(){return XB.createSourceEventStream}});Object.defineProperty(Vs,"defaultFieldResolver",{enumerable:!0,get:function(){return CE.defaultFieldResolver}});Object.defineProperty(Vs,"defaultTypeResolver",{enumerable:!0,get:function(){return CE.defaultTypeResolver}});Object.defineProperty(Vs,"execute",{enumerable:!0,get:function(){return CE.execute}});Object.defineProperty(Vs,"executeSync",{enumerable:!0,get:function(){return CE.executeSync}});Object.defineProperty(Vs,"getArgumentValues",{enumerable:!0,get:function(){return MD.getArgumentValues}});Object.defineProperty(Vs,"getDirectiveValues",{enumerable:!0,get:function(){return MD.getDirectiveValues}});Object.defineProperty(Vs,"getVariableValues",{enumerable:!0,get:function(){return MD.getVariableValues}});Object.defineProperty(Vs,"responsePathAsArray",{enumerable:!0,get:function(){return ore.pathToArray}});Object.defineProperty(Vs,"subscribe",{enumerable:!0,get:function(){return XB.subscribe}});var ore=Sh(),CE=jh(),XB=WB(),MD=Np()});var eV=j(jD=>{"use strict";m();T();h();Object.defineProperty(jD,"__esModule",{value:!0});jD.NoDeprecatedCustomRule=are;var BD=ci(),Kh=ct(),VD=tn();function are(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||(0,BD.invariant)(!1),e.reportError(new Kh.GraphQLError(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new Kh.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let s=e.getParentType(),o=e.getFieldDef();s!=null&&o!=null||(0,BD.invariant)(!1),e.reportError(new Kh.GraphQLError(`Field "${s.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,VD.getNamedType)(e.getParentInputType());if((0,VD.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Kh.GraphQLError(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=(0,VD.getNamedType)(e.getInputType());i!=null||(0,BD.invariant)(!1),e.reportError(new Kh.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var tV=j($D=>{"use strict";m();T();h();Object.defineProperty($D,"__esModule",{value:!0});$D.NoSchemaIntrospectionCustomRule=dre;var ure=ct(),cre=tn(),lre=Cs();function dre(e){return{Field(t){let n=(0,cre.getNamedType)(e.getType());n&&(0,lre.isIntrospectionType)(n)&&e.reportError(new ure.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var rV=j(At=>{"use strict";m();T();h();Object.defineProperty(At,"__esModule",{value:!0});Object.defineProperty(At,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return mre.ExecutableDefinitionsRule}});Object.defineProperty(At,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return hre.FieldsOnCorrectTypeRule}});Object.defineProperty(At,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Tre.FragmentsOnCompositeTypesRule}});Object.defineProperty(At,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return yre.KnownArgumentNamesRule}});Object.defineProperty(At,"KnownDirectivesRule",{enumerable:!0,get:function(){return Nre.KnownDirectivesRule}});Object.defineProperty(At,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Ere.KnownFragmentNamesRule}});Object.defineProperty(At,"KnownTypeNamesRule",{enumerable:!0,get:function(){return gre.KnownTypeNamesRule}});Object.defineProperty(At,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return Ire.LoneAnonymousOperationRule}});Object.defineProperty(At,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return jre.LoneSchemaDefinitionRule}});Object.defineProperty(At,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Vre.MaxIntrospectionDepthRule}});Object.defineProperty(At,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return zre.NoDeprecatedCustomRule}});Object.defineProperty(At,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return vre.NoFragmentCyclesRule}});Object.defineProperty(At,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Hre.NoSchemaIntrospectionCustomRule}});Object.defineProperty(At,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return _re.NoUndefinedVariablesRule}});Object.defineProperty(At,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return bre.NoUnusedFragmentsRule}});Object.defineProperty(At,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Ore.NoUnusedVariablesRule}});Object.defineProperty(At,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Sre.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(At,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Dre.PossibleFragmentSpreadsRule}});Object.defineProperty(At,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Jre.PossibleTypeExtensionsRule}});Object.defineProperty(At,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Are.ProvidedRequiredArgumentsRule}});Object.defineProperty(At,"ScalarLeafsRule",{enumerable:!0,get:function(){return Rre.ScalarLeafsRule}});Object.defineProperty(At,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Fre.SingleFieldSubscriptionsRule}});Object.defineProperty(At,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Qre.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(At,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return wre.UniqueArgumentNamesRule}});Object.defineProperty(At,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Yre.UniqueDirectiveNamesRule}});Object.defineProperty(At,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Lre.UniqueDirectivesPerLocationRule}});Object.defineProperty(At,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return Kre.UniqueEnumValueNamesRule}});Object.defineProperty(At,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Gre.UniqueFieldDefinitionNamesRule}});Object.defineProperty(At,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Pre.UniqueFragmentNamesRule}});Object.defineProperty(At,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return kre.UniqueInputFieldNamesRule}});Object.defineProperty(At,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return xre.UniqueOperationNamesRule}});Object.defineProperty(At,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return $re.UniqueOperationTypesRule}});Object.defineProperty(At,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return qre.UniqueTypeNamesRule}});Object.defineProperty(At,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Cre.UniqueVariableNamesRule}});Object.defineProperty(At,"ValidationContext",{enumerable:!0,get:function(){return fre.ValidationContext}});Object.defineProperty(At,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Ure.ValuesOfCorrectTypeRule}});Object.defineProperty(At,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Mre.VariablesAreInputTypesRule}});Object.defineProperty(At,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Bre.VariablesInAllowedPositionRule}});Object.defineProperty(At,"recommendedRules",{enumerable:!0,get:function(){return nV.recommendedRules}});Object.defineProperty(At,"specifiedRules",{enumerable:!0,get:function(){return nV.specifiedRules}});Object.defineProperty(At,"validate",{enumerable:!0,get:function(){return pre.validate}});var pre=gp(),fre=aD(),nV=iD(),mre=IS(),hre=_S(),Tre=OS(),yre=SS(),Nre=FS(),Ere=LS(),gre=xS(),Ire=US(),vre=qS(),_re=GS(),bre=YS(),Ore=zS(),Sre=s0(),Dre=u0(),Are=p0(),Rre=m0(),Fre=_0(),wre=A0(),Lre=P0(),Pre=V0(),kre=$0(),xre=K0(),Cre=H0(),Ure=Z0(),Mre=tD(),Bre=rD(),Vre=jS(),jre=BS(),$re=Q0(),qre=J0(),Kre=x0(),Gre=M0(),Qre=S0(),Yre=F0(),Jre=l0(),zre=eV(),Hre=tV()});var iV=j(jl=>{"use strict";m();T();h();Object.defineProperty(jl,"__esModule",{value:!0});Object.defineProperty(jl,"GraphQLError",{enumerable:!0,get:function(){return qD.GraphQLError}});Object.defineProperty(jl,"formatError",{enumerable:!0,get:function(){return qD.formatError}});Object.defineProperty(jl,"locatedError",{enumerable:!0,get:function(){return Xre.locatedError}});Object.defineProperty(jl,"printError",{enumerable:!0,get:function(){return qD.printError}});Object.defineProperty(jl,"syntaxError",{enumerable:!0,get:function(){return Wre.syntaxError}});var qD=ct(),Wre=vE(),Xre=AE()});var GD=j(KD=>{"use strict";m();T();h();Object.defineProperty(KD,"__esModule",{value:!0});KD.getIntrospectionQuery=Zre;function Zre(e){let t=k({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let u=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${s} @@ -557,21 +557,21 @@ This should never happen. Please report this issue on GitHub.`)}function hte(e){ } } } - `}});var QB=j(MD=>{"use strict";m();T();h();Object.defineProperty(MD,"__esModule",{value:!0});MD.getOperationAST=jre;var Vre=en();function jre(e,t){let n=null;for(let i of e.definitions)if(i.kind===Vre.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var YB=j(BD=>{"use strict";m();T();h();Object.defineProperty(BD,"__esModule",{value:!0});BD.getOperationRootType=$re;var wE=ut();function $re(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new wE.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new wE.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new wE.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new wE.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var JB=j(VD=>{"use strict";m();T();h();Object.defineProperty(VD,"__esModule",{value:!0});VD.introspectionFromSchema=Yre;var qre=ci(),Kre=Ip(),Gre=Ch(),Qre=UD();function Yre(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,Kre.parse)((0,Qre.getIntrospectionQuery)(n)),i=(0,Gre.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,qre.invariant)(!1),i.data}});var HB=j(jD=>{"use strict";m();T();h();Object.defineProperty(jD,"__esModule",{value:!0});jD.buildClientSchema=eie;var Jre=Oi(),fs=En(),zB=qo(),LE=Wm(),zre=Ip(),ms=tn(),Hre=qi(),Zo=xs(),Wre=Yo(),Xre=vl(),Zre=bh();function eie(e,t){(0,zB.isObjectLike)(e)&&(0,zB.isObjectLike)(e.__schema)||(0,Jre.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,fs.inspect)(e)}.`);let n=e.__schema,r=(0,LE.keyValMap)(n.types,B=>B.name,B=>N(B));for(let B of[...Wre.specifiedScalarTypes,...Zo.introspectionTypes])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(Ct):[];return new Xre.GraphQLSchema({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===Zo.TypeKind.LIST){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");return new ms.GraphQLList(l(Te))}if(B.kind===Zo.TypeKind.NON_NULL){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");let nt=l(Te);return new ms.GraphQLNonNull((0,ms.assertNullableType)(nt))}return d(B)}function d(B){let Te=B.name;if(!Te)throw new Error(`Unknown type reference: ${(0,fs.inspect)(B)}.`);let nt=r[Te];if(!nt)throw new Error(`Invalid or incomplete schema, unknown type: ${Te}. Ensure that a full introspection query is used in order to build a client schema.`);return nt}function p(B){return(0,ms.assertObjectType)(d(B))}function y(B){return(0,ms.assertInterfaceType)(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case Zo.TypeKind.SCALAR:return I(B);case Zo.TypeKind.OBJECT:return x(B);case Zo.TypeKind.INTERFACE:return V(B);case Zo.TypeKind.UNION:return K(B);case Zo.TypeKind.ENUM:return re(B);case Zo.TypeKind.INPUT_OBJECT:return se(B)}let Te=(0,fs.inspect)(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Te}.`)}function I(B){return new ms.GraphQLScalarType({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function O(B){if(B.interfaces===null&&B.kind===Zo.TypeKind.INTERFACE)return[];if(!B.interfaces){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing interfaces: ${Te}.`)}return B.interfaces.map(y)}function x(B){return new ms.GraphQLObjectType({name:B.name,description:B.description,interfaces:()=>O(B),fields:()=>fe(B)})}function V(B){return new ms.GraphQLInterfaceType({name:B.name,description:B.description,interfaces:()=>O(B),fields:()=>fe(B)})}function K(B){if(!B.possibleTypes){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing possibleTypes: ${Te}.`)}return new ms.GraphQLUnionType({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing enumValues: ${Te}.`)}return new ms.GraphQLEnumType({name:B.name,description:B.description,values:(0,LE.keyValMap)(B.enumValues,Te=>Te.name,Te=>({description:Te.description,deprecationReason:Te.deprecationReason}))})}function se(B){if(!B.inputFields){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing inputFields: ${Te}.`)}return new ms.GraphQLInputObjectType({name:B.name,description:B.description,fields:()=>xe(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${(0,fs.inspect)(B)}.`);return(0,LE.keyValMap)(B.fields,Te=>Te.name,he)}function he(B){let Te=l(B.type);if(!(0,ms.isOutputType)(Te)){let nt=(0,fs.inspect)(Te);throw new Error(`Introspection must provide output type for fields, but received: ${nt}.`)}if(!B.args){let nt=(0,fs.inspect)(B);throw new Error(`Introspection result missing field args: ${nt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:Te,args:xe(B.args)}}function xe(B){return(0,LE.keyValMap)(B,Te=>Te.name,ht)}function ht(B){let Te=l(B.type);if(!(0,ms.isInputType)(Te)){let xt=(0,fs.inspect)(Te);throw new Error(`Introspection must provide input type for arguments, but received: ${xt}.`)}let nt=B.defaultValue!=null?(0,Zre.valueFromAST)((0,zre.parseValue)(B.defaultValue),Te):void 0;return{description:B.description,type:Te,defaultValue:nt,deprecationReason:B.deprecationReason}}function Ct(B){if(!B.args){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive args: ${Te}.`)}if(!B.locations){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive locations: ${Te}.`)}return new Hre.GraphQLDirective({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:xe(B.args)})}}});var qD=j(kE=>{"use strict";m();T();h();Object.defineProperty(kE,"__esModule",{value:!0});kE.extendSchema=oie;kE.extendSchemaImpl=iV;var tie=Oi(),nie=En(),rie=ci(),iie=yc(),Bh=DO(),js=en(),WB=bl(),Hn=tn(),Vh=qi(),nV=xs(),rV=Yo(),XB=vl(),sie=mp(),$D=pp(),ZB=bh();function oie(e,t,n){(0,XB.assertSchema)(e),t!=null&&t.kind===js.Kind.DOCUMENT||(0,tie.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,sie.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=iV(r,t,n);return r===i?e:new XB.GraphQLSchema(i)}function iV(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===js.Kind.SCHEMA_DEFINITION)p=U;else if(U.kind===js.Kind.SCHEMA_EXTENSION)y.push(U);else if((0,WB.isTypeDefinitionNode)(U))u.push(U);else if((0,WB.isTypeExtensionNode)(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===js.Kind.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=eV[ae])!==null&&I!==void 0?I:$n(U)}let O=k(k({query:e.query&&V(e.query),mutation:e.mutation&&V(e.mutation),subscription:e.subscription&&V(e.subscription)},p&&nt([p])),nt(y));return G(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},O),{types:Object.values(N),directives:[...e.directives.map(K),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function x(U){return(0,Hn.isListType)(U)?new Hn.GraphQLList(x(U.ofType)):(0,Hn.isNonNullType)(U)?new Hn.GraphQLNonNull(x(U.ofType)):V(U)}function V(U){return N[U.name]}function K(U){let ae=U.toConfig();return new Vh.GraphQLDirective(G(k({},ae),{args:(0,Bh.mapValue)(ae.args,Te)}))}function re(U){if((0,nV.isIntrospectionType)(U)||(0,rV.isSpecifiedScalarType)(U))return U;if((0,Hn.isScalarType)(U))return he(U);if((0,Hn.isObjectType)(U))return xe(U);if((0,Hn.isInterfaceType)(U))return ht(U);if((0,Hn.isUnionType)(U))return Ct(U);if((0,Hn.isEnumType)(U))return fe(U);if((0,Hn.isInputObjectType)(U))return se(U);(0,rie.invariant)(!1,"Unexpected type: "+(0,nie.inspect)(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInputObjectType(G(k({},te),{fields:()=>k(k({},(0,Bh.mapValue)(te.fields,Ke=>G(k({},Ke),{type:x(Ke.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLEnumType(G(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function he(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],Ke=te.specifiedByURL;for(let ee of ce){var Q;Ke=(Q=tV(ee))!==null&&Q!==void 0?Q:Ke}return new Hn.GraphQLScalarType(G(k({},te),{specifiedByURL:Ke,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xe(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLObjectType(G(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},(0,Bh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInterfaceType(G(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},(0,Bh.mapValue)(te.fields,B)),vn(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function Ct(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLUnionType(G(k({},te),{types:()=>[...U.getTypes().map(V),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return G(k({},U),{type:x(U.type),args:U.args&&(0,Bh.mapValue)(U.args,Te)})}function Te(U){return G(k({},U),{type:x(U.type)})}function nt(U){let ae={};for(let ce of U){var te;let Ke=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let Q of Ke)ae[Q.operation]=xt(Q.type)}return ae}function xt(U){var ae;let te=U.name.value,ce=(ae=eV[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function rn(U){return U.kind===js.Kind.LIST_TYPE?new Hn.GraphQLList(rn(U.type)):U.kind===js.Kind.NON_NULL_TYPE?new Hn.GraphQLNonNull(rn(U.type)):xt(U)}function wn(U){var ae;return new Vh.GraphQLDirective({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:_n(U.arguments),astNode:U})}function vn(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;ae[ee.name.value]={type:rn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:_n(ee.arguments),deprecationReason:PE(ee),astNode:ee}}}return ae}function _n(U){let ae=U!=null?U:[],te=Object.create(null);for(let Ke of ae){var ce;let Q=rn(Ke.type);te[Ke.name.value]={type:Q,description:(ce=Ke.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,ZB.valueFromAST)(Ke.defaultValue,Q),deprecationReason:PE(Ke),astNode:Ke}}return te}function mi(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;let Ue=rn(ee.type);ae[ee.name.value]={type:Ue,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,ZB.valueFromAST)(ee.defaultValue,Ue),deprecationReason:PE(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let Ke of U){var te;let Q=(te=Ke.values)!==null&&te!==void 0?te:[];for(let ee of Q){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:PE(ee),astNode:ee}}}return ae}function kn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(xt))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(xt))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case js.Kind.OBJECT_TYPE_DEFINITION:{var Ke;let Je=[U,...ce];return new Hn.GraphQLObjectType({name:te,description:(Ke=U.description)===null||Ke===void 0?void 0:Ke.value,interfaces:()=>kn(Je),fields:()=>vn(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.INTERFACE_TYPE_DEFINITION:{var Q;let Je=[U,...ce];return new Hn.GraphQLInterfaceType({name:te,description:(Q=U.description)===null||Q===void 0?void 0:Q.value,interfaces:()=>kn(Je),fields:()=>vn(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.ENUM_TYPE_DEFINITION:{var ee;let Je=[U,...ce];return new Hn.GraphQLEnumType({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.UNION_TYPE_DEFINITION:{var Ue;let Je=[U,...ce];return new Hn.GraphQLUnionType({name:te,description:(Ue=U.description)===null||Ue===void 0?void 0:Ue.value,types:()=>on(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.SCALAR_TYPE_DEFINITION:{var Xe;return new Hn.GraphQLScalarType({name:te,description:(Xe=U.description)===null||Xe===void 0?void 0:Xe.value,specifiedByURL:tV(U),astNode:U,extensionASTNodes:ce})}case js.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var $t;let Je=[U,...ce];return new Hn.GraphQLInputObjectType({name:te,description:($t=U.description)===null||$t===void 0?void 0:$t.value,fields:()=>mi(Je),astNode:U,extensionASTNodes:ce,isOneOf:aie(U)})}}}}var eV=(0,iie.keyMap)([...rV.specifiedScalarTypes,...nV.introspectionTypes],e=>e.name);function PE(e){let t=(0,$D.getDirectiveValues)(Vh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function tV(e){let t=(0,$D.getDirectiveValues)(Vh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function aie(e){return!!(0,$D.getDirectiveValues)(Vh.GraphQLOneOfDirective,e)}});var oV=j(CE=>{"use strict";m();T();h();Object.defineProperty(CE,"__esModule",{value:!0});CE.buildASTSchema=sV;CE.buildSchema=hie;var uie=Oi(),cie=en(),lie=Ip(),die=qi(),pie=vl(),fie=mp(),mie=qD();function sV(e,t){e!=null&&e.kind===cie.Kind.DOCUMENT||(0,uie.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,fie.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,mie.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...die.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new pie.GraphQLSchema(G(k({},r),{directives:i}))}function hie(e,t){let n=(0,lie.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return sV(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var cV=j(GD=>{"use strict";m();T();h();Object.defineProperty(GD,"__esModule",{value:!0});GD.lexicographicSortSchema=vie;var Tie=En(),yie=ci(),Nie=Wm(),aV=Xm(),Ai=tn(),Eie=qi(),gie=xs(),Iie=vl();function vie(e){let t=e.toConfig(),n=(0,Nie.keyValMap)(KD(t.types),N=>N.name,y);return new Iie.GraphQLSchema(G(k({},t),{types:Object.values(n),directives:KD(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return(0,Ai.isListType)(N)?new Ai.GraphQLList(r(N.ofType)):(0,Ai.isNonNullType)(N)?new Ai.GraphQLNonNull(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Eie.GraphQLDirective(G(k({},I),{locations:uV(I.locations,O=>O),args:u(I.args)}))}function u(N){return xE(N,I=>G(k({},I),{type:r(I.type)}))}function l(N){return xE(N,I=>G(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return xE(N,I=>G(k({},I),{type:r(I.type)}))}function p(N){return KD(N).map(i)}function y(N){if((0,Ai.isScalarType)(N)||(0,gie.isIntrospectionType)(N))return N;if((0,Ai.isObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLObjectType(G(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isInterfaceType)(N)){let I=N.toConfig();return new Ai.GraphQLInterfaceType(G(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isUnionType)(N)){let I=N.toConfig();return new Ai.GraphQLUnionType(G(k({},I),{types:()=>p(I.types)}))}if((0,Ai.isEnumType)(N)){let I=N.toConfig();return new Ai.GraphQLEnumType(G(k({},I),{values:xE(I.values,O=>O)}))}if((0,Ai.isInputObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLInputObjectType(G(k({},I),{fields:()=>d(I.fields)}))}(0,yie.invariant)(!1,"Unexpected type: "+(0,Tie.inspect)(N))}}function xE(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(aV.naturalCompare))n[r]=t(e[r]);return n}function KD(e){return uV(e,t=>t.name)}function uV(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return(0,aV.naturalCompare)(i,s)})}});var TV=j(jh=>{"use strict";m();T();h();Object.defineProperty(jh,"__esModule",{value:!0});jh.printIntrospectionSchema=Rie;jh.printSchema=Aie;jh.printType=pV;var _ie=En(),bie=ci(),Oie=eh(),YD=en(),UE=ds(),_p=tn(),JD=qi(),lV=xs(),Sie=Yo(),Die=mh();function Aie(e){return dV(e,t=>!(0,JD.isSpecifiedDirective)(t),Fie)}function Rie(e){return dV(e,JD.isSpecifiedDirective,lV.isIntrospectionType)}function Fie(e){return!(0,Sie.isSpecifiedScalarType)(e)&&!(0,lV.isIntrospectionType)(e)}function dV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[wie(e),...r.map(s=>Bie(s)),...i.map(s=>pV(s))].filter(Boolean).join(` + `}});var sV=j(QD=>{"use strict";m();T();h();Object.defineProperty(QD,"__esModule",{value:!0});QD.getOperationAST=tie;var eie=en();function tie(e,t){let n=null;for(let i of e.definitions)if(i.kind===eie.Kind.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}});var oV=j(YD=>{"use strict";m();T();h();Object.defineProperty(YD,"__esModule",{value:!0});YD.getOperationRootType=nie;var UE=ct();function nie(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new UE.GraphQLError("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new UE.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new UE.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new UE.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var aV=j(JD=>{"use strict";m();T();h();Object.defineProperty(JD,"__esModule",{value:!0});JD.introspectionFromSchema=aie;var rie=ci(),iie=Dp(),sie=jh(),oie=GD();function aie(e,t){let n=k({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,iie.parse)((0,oie.getIntrospectionQuery)(n)),i=(0,sie.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,rie.invariant)(!1),i.data}});var cV=j(zD=>{"use strict";m();T();h();Object.defineProperty(zD,"__esModule",{value:!0});zD.buildClientSchema=mie;var uie=Oi(),fs=En(),uV=qo(),ME=rh(),cie=Dp(),ms=tn(),lie=qi(),Zo=Cs(),die=Yo(),pie=Al(),fie=Fh();function mie(e,t){(0,uV.isObjectLike)(e)&&(0,uV.isObjectLike)(e.__schema)||(0,uie.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,fs.inspect)(e)}.`);let n=e.__schema,r=(0,ME.keyValMap)(n.types,B=>B.name,B=>N(B));for(let B of[...die.specifiedScalarTypes,...Zo.introspectionTypes])r[B.name]&&(r[B.name]=B);let i=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,u=n.directives?n.directives.map(xt):[];return new pie.GraphQLSchema({description:n.description,query:i,mutation:s,subscription:o,types:Object.values(r),directives:u,assumeValid:t==null?void 0:t.assumeValid});function l(B){if(B.kind===Zo.TypeKind.LIST){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");return new ms.GraphQLList(l(Te))}if(B.kind===Zo.TypeKind.NON_NULL){let Te=B.ofType;if(!Te)throw new Error("Decorated type deeper than introspection query.");let rt=l(Te);return new ms.GraphQLNonNull((0,ms.assertNullableType)(rt))}return d(B)}function d(B){let Te=B.name;if(!Te)throw new Error(`Unknown type reference: ${(0,fs.inspect)(B)}.`);let rt=r[Te];if(!rt)throw new Error(`Invalid or incomplete schema, unknown type: ${Te}. Ensure that a full introspection query is used in order to build a client schema.`);return rt}function p(B){return(0,ms.assertObjectType)(d(B))}function y(B){return(0,ms.assertInterfaceType)(d(B))}function N(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case Zo.TypeKind.SCALAR:return I(B);case Zo.TypeKind.OBJECT:return C(B);case Zo.TypeKind.INTERFACE:return V(B);case Zo.TypeKind.UNION:return G(B);case Zo.TypeKind.ENUM:return re(B);case Zo.TypeKind.INPUT_OBJECT:return se(B)}let Te=(0,fs.inspect)(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Te}.`)}function I(B){return new ms.GraphQLScalarType({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function S(B){if(B.interfaces===null&&B.kind===Zo.TypeKind.INTERFACE)return[];if(!B.interfaces){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing interfaces: ${Te}.`)}return B.interfaces.map(y)}function C(B){return new ms.GraphQLObjectType({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>fe(B)})}function V(B){return new ms.GraphQLInterfaceType({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>fe(B)})}function G(B){if(!B.possibleTypes){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing possibleTypes: ${Te}.`)}return new ms.GraphQLUnionType({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function re(B){if(!B.enumValues){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing enumValues: ${Te}.`)}return new ms.GraphQLEnumType({name:B.name,description:B.description,values:(0,ME.keyValMap)(B.enumValues,Te=>Te.name,Te=>({description:Te.description,deprecationReason:Te.deprecationReason}))})}function se(B){if(!B.inputFields){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing inputFields: ${Te}.`)}return new ms.GraphQLInputObjectType({name:B.name,description:B.description,fields:()=>Ce(B.inputFields),isOneOf:B.isOneOf})}function fe(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${(0,fs.inspect)(B)}.`);return(0,ME.keyValMap)(B.fields,Te=>Te.name,he)}function he(B){let Te=l(B.type);if(!(0,ms.isOutputType)(Te)){let rt=(0,fs.inspect)(Te);throw new Error(`Introspection must provide output type for fields, but received: ${rt}.`)}if(!B.args){let rt=(0,fs.inspect)(B);throw new Error(`Introspection result missing field args: ${rt}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:Te,args:Ce(B.args)}}function Ce(B){return(0,ME.keyValMap)(B,Te=>Te.name,ht)}function ht(B){let Te=l(B.type);if(!(0,ms.isInputType)(Te)){let Ct=(0,fs.inspect)(Te);throw new Error(`Introspection must provide input type for arguments, but received: ${Ct}.`)}let rt=B.defaultValue!=null?(0,fie.valueFromAST)((0,cie.parseValue)(B.defaultValue),Te):void 0;return{description:B.description,type:Te,defaultValue:rt,deprecationReason:B.deprecationReason}}function xt(B){if(!B.args){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive args: ${Te}.`)}if(!B.locations){let Te=(0,fs.inspect)(B);throw new Error(`Introspection result missing directive locations: ${Te}.`)}return new lie.GraphQLDirective({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:Ce(B.args)})}}});var WD=j(VE=>{"use strict";m();T();h();Object.defineProperty(VE,"__esModule",{value:!0});VE.extendSchema=gie;VE.extendSchemaImpl=yV;var hie=Oi(),Tie=En(),yie=ci(),Nie=_c(),Gh=xO(),js=en(),lV=Fl(),Hn=tn(),Qh=qi(),hV=Cs(),TV=Yo(),dV=Al(),Eie=gp(),HD=Np(),pV=Fh();function gie(e,t,n){(0,dV.assertSchema)(e),t!=null&&t.kind===js.Kind.DOCUMENT||(0,hie.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,Eie.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=yV(r,t,n);return r===i?e:new dV.GraphQLSchema(i)}function yV(e,t,n){var r,i,s,o;let u=[],l=Object.create(null),d=[],p,y=[];for(let U of t.definitions)if(U.kind===js.Kind.SCHEMA_DEFINITION)p=U;else if(U.kind===js.Kind.SCHEMA_EXTENSION)y.push(U);else if((0,lV.isTypeDefinitionNode)(U))u.push(U);else if((0,lV.isTypeExtensionNode)(U)){let ae=U.name.value,te=l[ae];l[ae]=te?te.concat([U]):[U]}else U.kind===js.Kind.DIRECTIVE_DEFINITION&&d.push(U);if(Object.keys(l).length===0&&u.length===0&&d.length===0&&y.length===0&&p==null)return e;let N=Object.create(null);for(let U of e.types)N[U.name]=re(U);for(let U of u){var I;let ae=U.name.value;N[ae]=(I=fV[ae])!==null&&I!==void 0?I:$n(U)}let S=k(k({query:e.query&&V(e.query),mutation:e.mutation&&V(e.mutation),subscription:e.subscription&&V(e.subscription)},p&&rt([p])),rt(y));return Q(k({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},S),{types:Object.values(N),directives:[...e.directives.map(G),...d.map(wn)],extensions:Object.create(null),astNode:(s=p)!==null&&s!==void 0?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function C(U){return(0,Hn.isListType)(U)?new Hn.GraphQLList(C(U.ofType)):(0,Hn.isNonNullType)(U)?new Hn.GraphQLNonNull(C(U.ofType)):V(U)}function V(U){return N[U.name]}function G(U){let ae=U.toConfig();return new Qh.GraphQLDirective(Q(k({},ae),{args:(0,Gh.mapValue)(ae.args,Te)}))}function re(U){if((0,hV.isIntrospectionType)(U)||(0,TV.isSpecifiedScalarType)(U))return U;if((0,Hn.isScalarType)(U))return he(U);if((0,Hn.isObjectType)(U))return Ce(U);if((0,Hn.isInterfaceType)(U))return ht(U);if((0,Hn.isUnionType)(U))return xt(U);if((0,Hn.isEnumType)(U))return fe(U);if((0,Hn.isInputObjectType)(U))return se(U);(0,yie.invariant)(!1,"Unexpected type: "+(0,Tie.inspect)(U))}function se(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInputObjectType(Q(k({},te),{fields:()=>k(k({},(0,Gh.mapValue)(te.fields,Ke=>Q(k({},Ke),{type:C(Ke.type)}))),mi(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function fe(U){var ae;let te=U.toConfig(),ce=(ae=l[U.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLEnumType(Q(k({},te),{values:k(k({},te.values),Xr(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function he(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[],Ke=te.specifiedByURL;for(let ee of ce){var Y;Ke=(Y=mV(ee))!==null&&Y!==void 0?Y:Ke}return new Hn.GraphQLScalarType(Q(k({},te),{specifiedByURL:Ke,extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function Ce(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLObjectType(Q(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},(0,Gh.mapValue)(te.fields,B)),_n(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function ht(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLInterfaceType(Q(k({},te),{interfaces:()=>[...U.getInterfaces().map(V),...kn(ce)],fields:()=>k(k({},(0,Gh.mapValue)(te.fields,B)),_n(ce)),extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function xt(U){var ae;let te=U.toConfig(),ce=(ae=l[te.name])!==null&&ae!==void 0?ae:[];return new Hn.GraphQLUnionType(Q(k({},te),{types:()=>[...U.getTypes().map(V),...on(ce)],extensionASTNodes:te.extensionASTNodes.concat(ce)}))}function B(U){return Q(k({},U),{type:C(U.type),args:U.args&&(0,Gh.mapValue)(U.args,Te)})}function Te(U){return Q(k({},U),{type:C(U.type)})}function rt(U){let ae={};for(let ce of U){var te;let Ke=(te=ce.operationTypes)!==null&&te!==void 0?te:[];for(let Y of Ke)ae[Y.operation]=Ct(Y.type)}return ae}function Ct(U){var ae;let te=U.name.value,ce=(ae=fV[te])!==null&&ae!==void 0?ae:N[te];if(ce===void 0)throw new Error(`Unknown type: "${te}".`);return ce}function rn(U){return U.kind===js.Kind.LIST_TYPE?new Hn.GraphQLList(rn(U.type)):U.kind===js.Kind.NON_NULL_TYPE?new Hn.GraphQLNonNull(rn(U.type)):Ct(U)}function wn(U){var ae;return new Qh.GraphQLDirective({name:U.name.value,description:(ae=U.description)===null||ae===void 0?void 0:ae.value,locations:U.locations.map(({value:te})=>te),isRepeatable:U.repeatable,args:bn(U.arguments),astNode:U})}function _n(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;ae[ee.name.value]={type:rn(ee.type),description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,args:bn(ee.arguments),deprecationReason:BE(ee),astNode:ee}}}return ae}function bn(U){let ae=U!=null?U:[],te=Object.create(null);for(let Ke of ae){var ce;let Y=rn(Ke.type);te[Ke.name.value]={type:Y,description:(ce=Ke.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,pV.valueFromAST)(Ke.defaultValue,Y),deprecationReason:BE(Ke),astNode:Ke}}return te}function mi(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.fields)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;let Ue=rn(ee.type);ae[ee.name.value]={type:Ue,description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,defaultValue:(0,pV.valueFromAST)(ee.defaultValue,Ue),deprecationReason:BE(ee),astNode:ee}}}return ae}function Xr(U){let ae=Object.create(null);for(let Ke of U){var te;let Y=(te=Ke.values)!==null&&te!==void 0?te:[];for(let ee of Y){var ce;ae[ee.name.value]={description:(ce=ee.description)===null||ce===void 0?void 0:ce.value,deprecationReason:BE(ee),astNode:ee}}}return ae}function kn(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.interfaces)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function on(U){return U.flatMap(ae=>{var te,ce;return(te=(ce=ae.types)===null||ce===void 0?void 0:ce.map(Ct))!==null&&te!==void 0?te:[]})}function $n(U){var ae;let te=U.name.value,ce=(ae=l[te])!==null&&ae!==void 0?ae:[];switch(U.kind){case js.Kind.OBJECT_TYPE_DEFINITION:{var Ke;let Je=[U,...ce];return new Hn.GraphQLObjectType({name:te,description:(Ke=U.description)===null||Ke===void 0?void 0:Ke.value,interfaces:()=>kn(Je),fields:()=>_n(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.INTERFACE_TYPE_DEFINITION:{var Y;let Je=[U,...ce];return new Hn.GraphQLInterfaceType({name:te,description:(Y=U.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>kn(Je),fields:()=>_n(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.ENUM_TYPE_DEFINITION:{var ee;let Je=[U,...ce];return new Hn.GraphQLEnumType({name:te,description:(ee=U.description)===null||ee===void 0?void 0:ee.value,values:Xr(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.UNION_TYPE_DEFINITION:{var Ue;let Je=[U,...ce];return new Hn.GraphQLUnionType({name:te,description:(Ue=U.description)===null||Ue===void 0?void 0:Ue.value,types:()=>on(Je),astNode:U,extensionASTNodes:ce})}case js.Kind.SCALAR_TYPE_DEFINITION:{var Xe;return new Hn.GraphQLScalarType({name:te,description:(Xe=U.description)===null||Xe===void 0?void 0:Xe.value,specifiedByURL:mV(U),astNode:U,extensionASTNodes:ce})}case js.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var $t;let Je=[U,...ce];return new Hn.GraphQLInputObjectType({name:te,description:($t=U.description)===null||$t===void 0?void 0:$t.value,fields:()=>mi(Je),astNode:U,extensionASTNodes:ce,isOneOf:Iie(U)})}}}}var fV=(0,Nie.keyMap)([...TV.specifiedScalarTypes,...hV.introspectionTypes],e=>e.name);function BE(e){let t=(0,HD.getDirectiveValues)(Qh.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function mV(e){let t=(0,HD.getDirectiveValues)(Qh.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function Iie(e){return!!(0,HD.getDirectiveValues)(Qh.GraphQLOneOfDirective,e)}});var EV=j(jE=>{"use strict";m();T();h();Object.defineProperty(jE,"__esModule",{value:!0});jE.buildASTSchema=NV;jE.buildSchema=Rie;var vie=Oi(),_ie=en(),bie=Dp(),Oie=qi(),Sie=Al(),Die=gp(),Aie=WD();function NV(e,t){e!=null&&e.kind===_ie.Kind.DOCUMENT||(0,vie.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Die.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,Aie.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let s of r.types)switch(s.name){case"Query":r.query=s;break;case"Mutation":r.mutation=s;break;case"Subscription":r.subscription=s;break}let i=[...r.directives,...Oie.specifiedDirectives.filter(s=>r.directives.every(o=>o.name!==s.name))];return new Sie.GraphQLSchema(Q(k({},r),{directives:i}))}function Rie(e,t){let n=(0,bie.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return NV(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var vV=j(ZD=>{"use strict";m();T();h();Object.defineProperty(ZD,"__esModule",{value:!0});ZD.lexicographicSortSchema=Cie;var Fie=En(),wie=ci(),Lie=rh(),gV=ih(),Ai=tn(),Pie=qi(),kie=Cs(),xie=Al();function Cie(e){let t=e.toConfig(),n=(0,Lie.keyValMap)(XD(t.types),N=>N.name,y);return new xie.GraphQLSchema(Q(k({},t),{types:Object.values(n),directives:XD(t.directives).map(o),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)}));function r(N){return(0,Ai.isListType)(N)?new Ai.GraphQLList(r(N.ofType)):(0,Ai.isNonNullType)(N)?new Ai.GraphQLNonNull(r(N.ofType)):i(N)}function i(N){return n[N.name]}function s(N){return N&&i(N)}function o(N){let I=N.toConfig();return new Pie.GraphQLDirective(Q(k({},I),{locations:IV(I.locations,S=>S),args:u(I.args)}))}function u(N){return $E(N,I=>Q(k({},I),{type:r(I.type)}))}function l(N){return $E(N,I=>Q(k({},I),{type:r(I.type),args:I.args&&u(I.args)}))}function d(N){return $E(N,I=>Q(k({},I),{type:r(I.type)}))}function p(N){return XD(N).map(i)}function y(N){if((0,Ai.isScalarType)(N)||(0,kie.isIntrospectionType)(N))return N;if((0,Ai.isObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLObjectType(Q(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isInterfaceType)(N)){let I=N.toConfig();return new Ai.GraphQLInterfaceType(Q(k({},I),{interfaces:()=>p(I.interfaces),fields:()=>l(I.fields)}))}if((0,Ai.isUnionType)(N)){let I=N.toConfig();return new Ai.GraphQLUnionType(Q(k({},I),{types:()=>p(I.types)}))}if((0,Ai.isEnumType)(N)){let I=N.toConfig();return new Ai.GraphQLEnumType(Q(k({},I),{values:$E(I.values,S=>S)}))}if((0,Ai.isInputObjectType)(N)){let I=N.toConfig();return new Ai.GraphQLInputObjectType(Q(k({},I),{fields:()=>d(I.fields)}))}(0,wie.invariant)(!1,"Unexpected type: "+(0,Fie.inspect)(N))}}function $E(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(gV.naturalCompare))n[r]=t(e[r]);return n}function XD(e){return IV(e,t=>t.name)}function IV(e,t){return e.slice().sort((n,r)=>{let i=t(n),s=t(r);return(0,gV.naturalCompare)(i,s)})}});var RV=j(Yh=>{"use strict";m();T();h();Object.defineProperty(Yh,"__esModule",{value:!0});Yh.printIntrospectionSchema=qie;Yh.printSchema=$ie;Yh.printType=OV;var Uie=En(),Mie=ci(),Bie=oh(),tA=en(),qE=ds(),Rp=tn(),nA=qi(),_V=Cs(),Vie=Yo(),jie=gh();function $ie(e){return bV(e,t=>!(0,nA.isSpecifiedDirective)(t),Kie)}function qie(e){return bV(e,nA.isSpecifiedDirective,_V.isIntrospectionType)}function Kie(e){return!(0,Vie.isSpecifiedScalarType)(e)&&!(0,_V.isIntrospectionType)(e)}function bV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Gie(e),...r.map(s=>Zie(s)),...i.map(s=>OV(s))].filter(Boolean).join(` -`)}function wie(e){if(e.description==null&&Lie(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),$s(e)+`schema { +`)}function Gie(e){if(e.description==null&&Qie(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),$s(e)+`schema { ${t.join(` `)} -}`}function Lie(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function pV(e){if((0,_p.isScalarType)(e))return Pie(e);if((0,_p.isObjectType)(e))return kie(e);if((0,_p.isInterfaceType)(e))return Cie(e);if((0,_p.isUnionType)(e))return xie(e);if((0,_p.isEnumType)(e))return Uie(e);if((0,_p.isInputObjectType)(e))return Mie(e);(0,bie.invariant)(!1,"Unexpected type: "+(0,_ie.inspect)(e))}function Pie(e){return $s(e)+`scalar ${e.name}`+Vie(e)}function fV(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function kie(e){return $s(e)+`type ${e.name}`+fV(e)+mV(e)}function Cie(e){return $s(e)+`interface ${e.name}`+fV(e)+mV(e)}function xie(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return $s(e)+"union "+e.name+n}function Uie(e){let t=e.getValues().map((n,r)=>$s(n," ",!r)+" "+n.name+HD(n.deprecationReason));return $s(e)+`enum ${e.name}`+zD(t)}function Mie(e){let t=Object.values(e.getFields()).map((n,r)=>$s(n," ",!r)+" "+QD(n));return $s(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+zD(t)}function mV(e){let t=Object.values(e.getFields()).map((n,r)=>$s(n," ",!r)+" "+n.name+hV(n.args," ")+": "+String(n.type)+HD(n.deprecationReason));return zD(t)}function zD(e){return e.length!==0?` { +}`}function Qie(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function OV(e){if((0,Rp.isScalarType)(e))return Yie(e);if((0,Rp.isObjectType)(e))return Jie(e);if((0,Rp.isInterfaceType)(e))return zie(e);if((0,Rp.isUnionType)(e))return Hie(e);if((0,Rp.isEnumType)(e))return Wie(e);if((0,Rp.isInputObjectType)(e))return Xie(e);(0,Mie.invariant)(!1,"Unexpected type: "+(0,Uie.inspect)(e))}function Yie(e){return $s(e)+`scalar ${e.name}`+ese(e)}function SV(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function Jie(e){return $s(e)+`type ${e.name}`+SV(e)+DV(e)}function zie(e){return $s(e)+`interface ${e.name}`+SV(e)+DV(e)}function Hie(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return $s(e)+"union "+e.name+n}function Wie(e){let t=e.getValues().map((n,r)=>$s(n," ",!r)+" "+n.name+iA(n.deprecationReason));return $s(e)+`enum ${e.name}`+rA(t)}function Xie(e){let t=Object.values(e.getFields()).map((n,r)=>$s(n," ",!r)+" "+eA(n));return $s(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+rA(t)}function DV(e){let t=Object.values(e.getFields()).map((n,r)=>$s(n," ",!r)+" "+n.name+AV(n.args," ")+": "+String(n.type)+iA(n.deprecationReason));return rA(t)}function rA(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function hV(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(QD).join(", ")+")":`( -`+e.map((n,r)=>$s(n," "+t,!r)+" "+t+QD(n)).join(` +}`:""}function AV(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(eA).join(", ")+")":`( +`+e.map((n,r)=>$s(n," "+t,!r)+" "+t+eA(n)).join(` `)+` -`+t+")"}function QD(e){let t=(0,Die.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,UE.print)(t)}`),n+HD(e.deprecationReason)}function Bie(e){return $s(e)+"directive @"+e.name+hV(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function HD(e){return e==null?"":e!==JD.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,UE.print)({kind:YD.Kind.STRING,value:e})})`:" @deprecated"}function Vie(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,UE.print)({kind:YD.Kind.STRING,value:e.specifiedByURL})})`}function $s(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,UE.print)({kind:YD.Kind.STRING,value:r,block:(0,Oie.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function eA(e){let t=(0,jie.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,qE.print)(t)}`),n+iA(e.deprecationReason)}function Zie(e){return $s(e)+"directive @"+e.name+AV(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function iA(e){return e==null?"":e!==nA.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,qE.print)({kind:tA.Kind.STRING,value:e})})`:" @deprecated"}function ese(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,qE.print)({kind:tA.Kind.STRING,value:e.specifiedByURL})})`}function $s(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,qE.print)({kind:tA.Kind.STRING,value:r,block:(0,Bie.isPrintableAsBlockString)(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var yV=j(WD=>{"use strict";m();T();h();Object.defineProperty(WD,"__esModule",{value:!0});WD.concatAST=$ie;var jie=en();function $ie(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:jie.Kind.DOCUMENT,definitions:t}}});var gV=j(XD=>{"use strict";m();T();h();Object.defineProperty(XD,"__esModule",{value:!0});XD.separateOperations=Kie;var ME=en(),qie=hl();function Kie(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case ME.Kind.OPERATION_DEFINITION:t.push(i);break;case ME.Kind.FRAGMENT_DEFINITION:n[i.name.value]=NV(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of NV(i.selectionSet))EV(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:ME.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===ME.Kind.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function EV(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)EV(e,t,i)}}function NV(e){let t=[];return(0,qie.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var _V=j(eA=>{"use strict";m();T();h();Object.defineProperty(eA,"__esModule",{value:!0});eA.stripIgnoredCharacters=Qie;var Gie=eh(),IV=NE(),vV=gE(),ZD=Rh();function Qie(e){let t=(0,vV.isSource)(e)?e:new vV.Source(e),n=t.body,r=new IV.Lexer(t),i="",s=!1;for(;r.advance().kind!==ZD.TokenKind.EOF;){let o=r.token,u=o.kind,l=!(0,IV.isPunctuatorTokenKind)(o.kind);s&&(l||o.kind===ZD.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===ZD.TokenKind.BLOCK_STRING?i+=(0,Gie.printBlockString)(o.value,{minimize:!0}):i+=d,s=l}return i}});var OV=j(BE=>{"use strict";m();T();h();Object.defineProperty(BE,"__esModule",{value:!0});BE.assertValidName=Hie;BE.isValidNameError=bV;var Yie=Oi(),Jie=ut(),zie=th();function Hie(e){let t=bV(e);if(t)throw t;return e}function bV(e){if(typeof e=="string"||(0,Yie.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new Jie.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,zie.assertName)(e)}catch(t){return t}}});var PV=j(ea=>{"use strict";m();T();h();Object.defineProperty(ea,"__esModule",{value:!0});ea.DangerousChangeType=ea.BreakingChangeType=void 0;ea.findBreakingChanges=nse;ea.findDangerousChanges=rse;var Wie=En(),wV=ci(),SV=yc(),Xie=ds(),ln=tn(),Zie=Yo(),ese=mh(),tse=KS(),dr;ea.BreakingChangeType=dr;(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"})(dr||(ea.BreakingChangeType=dr={}));var go;ea.DangerousChangeType=go;(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"})(go||(ea.DangerousChangeType=go={}));function nse(e,t){return LV(e,t).filter(n=>n.type in dr)}function rse(e,t){return LV(e,t).filter(n=>n.type in go)}function LV(e,t){return[...sse(e,t),...ise(e,t)]}function ise(e,t){let n=[],r=Ja(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:dr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=Ja(i.args,s.args);for(let u of o.added)(0,ln.isRequiredArgument)(u)&&n.push({type:dr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:dr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:dr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:dr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function sse(e,t){let n=[],r=Ja(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:dr.TYPE_REMOVED,description:(0,Zie.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)(0,ln.isEnumType)(i)&&(0,ln.isEnumType)(s)?n.push(...use(i,s)):(0,ln.isUnionType)(i)&&(0,ln.isUnionType)(s)?n.push(...ase(i,s)):(0,ln.isInputObjectType)(i)&&(0,ln.isInputObjectType)(s)?n.push(...ose(i,s)):(0,ln.isObjectType)(i)&&(0,ln.isObjectType)(s)?n.push(...AV(i,s),...DV(i,s)):(0,ln.isInterfaceType)(i)&&(0,ln.isInterfaceType)(s)?n.push(...AV(i,s),...DV(i,s)):i.constructor!==s.constructor&&n.push({type:dr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${RV(i)} to ${RV(s)}.`});return n}function ose(e,t){let n=[],r=Ja(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,ln.isRequiredInputField)(i)?n.push({type:dr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:go.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)qh(i.type,s.type)||n.push({type:dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function ase(e,t){let n=[],r=Ja(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:go.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:dr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function use(e,t){let n=[],r=Ja(e.getValues(),t.getValues());for(let i of r.added)n.push({type:go.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:dr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function DV(e,t){let n=[],r=Ja(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:go.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:dr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function AV(e,t){let n=[],r=Ja(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(...cse(e,i,s)),$h(i.type,s.type)||n.push({type:dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function cse(e,t,n){let r=[],i=Ja(t.args,n.args);for(let s of i.removed)r.push({type:dr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!qh(s.type,o.type))r.push({type:dr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:go.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=FV(s.defaultValue,s.type),d=FV(o.defaultValue,o.type);l!==d&&r.push({type:go.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)(0,ln.isRequiredArgument)(s)?r.push({type:dr.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:go.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function $h(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&$h(e.ofType,t.ofType)||(0,ln.isNonNullType)(t)&&$h(e,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&$h(e.ofType,t.ofType):(0,ln.isNamedType)(t)&&e.name===t.name||(0,ln.isNonNullType)(t)&&$h(e,t.ofType)}function qh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&qh(e.ofType,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&qh(e.ofType,t.ofType)||!(0,ln.isNonNullType)(t)&&qh(e.ofType,t):(0,ln.isNamedType)(t)&&e.name===t.name}function RV(e){if((0,ln.isScalarType)(e))return"a Scalar type";if((0,ln.isObjectType)(e))return"an Object type";if((0,ln.isInterfaceType)(e))return"an Interface type";if((0,ln.isUnionType)(e))return"a Union type";if((0,ln.isEnumType)(e))return"an Enum type";if((0,ln.isInputObjectType)(e))return"an Input type";(0,wV.invariant)(!1,"Unexpected type: "+(0,Wie.inspect)(e))}function FV(e,t){let n=(0,ese.astFromValue)(e,t);return n!=null||(0,wV.invariant)(!1),(0,Xie.print)((0,tse.sortValueNode)(n))}function Ja(e,t){let n=[],r=[],i=[],s=(0,SV.keyMap)(e,({name:u})=>u),o=(0,SV.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}});var UV=j(un=>{"use strict";m();T();h();Object.defineProperty(un,"__esModule",{value:!0});Object.defineProperty(un,"BreakingChangeType",{enumerable:!0,get:function(){return VE.BreakingChangeType}});Object.defineProperty(un,"DangerousChangeType",{enumerable:!0,get:function(){return VE.DangerousChangeType}});Object.defineProperty(un,"TypeInfo",{enumerable:!0,get:function(){return CV.TypeInfo}});Object.defineProperty(un,"assertValidName",{enumerable:!0,get:function(){return xV.assertValidName}});Object.defineProperty(un,"astFromValue",{enumerable:!0,get:function(){return gse.astFromValue}});Object.defineProperty(un,"buildASTSchema",{enumerable:!0,get:function(){return kV.buildASTSchema}});Object.defineProperty(un,"buildClientSchema",{enumerable:!0,get:function(){return mse.buildClientSchema}});Object.defineProperty(un,"buildSchema",{enumerable:!0,get:function(){return kV.buildSchema}});Object.defineProperty(un,"coerceInputValue",{enumerable:!0,get:function(){return Ise.coerceInputValue}});Object.defineProperty(un,"concatAST",{enumerable:!0,get:function(){return vse.concatAST}});Object.defineProperty(un,"doTypesOverlap",{enumerable:!0,get:function(){return nA.doTypesOverlap}});Object.defineProperty(un,"extendSchema",{enumerable:!0,get:function(){return hse.extendSchema}});Object.defineProperty(un,"findBreakingChanges",{enumerable:!0,get:function(){return VE.findBreakingChanges}});Object.defineProperty(un,"findDangerousChanges",{enumerable:!0,get:function(){return VE.findDangerousChanges}});Object.defineProperty(un,"getIntrospectionQuery",{enumerable:!0,get:function(){return lse.getIntrospectionQuery}});Object.defineProperty(un,"getOperationAST",{enumerable:!0,get:function(){return dse.getOperationAST}});Object.defineProperty(un,"getOperationRootType",{enumerable:!0,get:function(){return pse.getOperationRootType}});Object.defineProperty(un,"introspectionFromSchema",{enumerable:!0,get:function(){return fse.introspectionFromSchema}});Object.defineProperty(un,"isEqualType",{enumerable:!0,get:function(){return nA.isEqualType}});Object.defineProperty(un,"isTypeSubTypeOf",{enumerable:!0,get:function(){return nA.isTypeSubTypeOf}});Object.defineProperty(un,"isValidNameError",{enumerable:!0,get:function(){return xV.isValidNameError}});Object.defineProperty(un,"lexicographicSortSchema",{enumerable:!0,get:function(){return Tse.lexicographicSortSchema}});Object.defineProperty(un,"printIntrospectionSchema",{enumerable:!0,get:function(){return tA.printIntrospectionSchema}});Object.defineProperty(un,"printSchema",{enumerable:!0,get:function(){return tA.printSchema}});Object.defineProperty(un,"printType",{enumerable:!0,get:function(){return tA.printType}});Object.defineProperty(un,"separateOperations",{enumerable:!0,get:function(){return _se.separateOperations}});Object.defineProperty(un,"stripIgnoredCharacters",{enumerable:!0,get:function(){return bse.stripIgnoredCharacters}});Object.defineProperty(un,"typeFromAST",{enumerable:!0,get:function(){return yse.typeFromAST}});Object.defineProperty(un,"valueFromAST",{enumerable:!0,get:function(){return Nse.valueFromAST}});Object.defineProperty(un,"valueFromASTUntyped",{enumerable:!0,get:function(){return Ese.valueFromASTUntyped}});Object.defineProperty(un,"visitWithTypeInfo",{enumerable:!0,get:function(){return CV.visitWithTypeInfo}});var lse=UD(),dse=QB(),pse=YB(),fse=JB(),mse=HB(),kV=oV(),hse=qD(),Tse=cV(),tA=TV(),yse=Jo(),Nse=bh(),Ese=BO(),gse=mh(),CV=XN(),Ise=l0(),vse=yV(),_se=gV(),bse=_V(),nA=oh(),xV=OV(),VE=PV()});var VV=j($=>{"use strict";m();T();h();Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return mn.BREAK}});Object.defineProperty($,"BreakingChangeType",{enumerable:!0,get:function(){return hn.BreakingChangeType}});Object.defineProperty($,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Oe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty($,"DangerousChangeType",{enumerable:!0,get:function(){return hn.DangerousChangeType}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return mn.DirectiveLocation}});Object.defineProperty($,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return kt.ExecutableDefinitionsRule}});Object.defineProperty($,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kt.FieldsOnCorrectTypeRule}});Object.defineProperty($,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return kt.FragmentsOnCompositeTypesRule}});Object.defineProperty($,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Oe.GRAPHQL_MAX_INT}});Object.defineProperty($,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Oe.GRAPHQL_MIN_INT}});Object.defineProperty($,"GraphQLBoolean",{enumerable:!0,get:function(){return Oe.GraphQLBoolean}});Object.defineProperty($,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Oe.GraphQLDeprecatedDirective}});Object.defineProperty($,"GraphQLDirective",{enumerable:!0,get:function(){return Oe.GraphQLDirective}});Object.defineProperty($,"GraphQLEnumType",{enumerable:!0,get:function(){return Oe.GraphQLEnumType}});Object.defineProperty($,"GraphQLError",{enumerable:!0,get:function(){return Kh.GraphQLError}});Object.defineProperty($,"GraphQLFloat",{enumerable:!0,get:function(){return Oe.GraphQLFloat}});Object.defineProperty($,"GraphQLID",{enumerable:!0,get:function(){return Oe.GraphQLID}});Object.defineProperty($,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Oe.GraphQLIncludeDirective}});Object.defineProperty($,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Oe.GraphQLInputObjectType}});Object.defineProperty($,"GraphQLInt",{enumerable:!0,get:function(){return Oe.GraphQLInt}});Object.defineProperty($,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Oe.GraphQLInterfaceType}});Object.defineProperty($,"GraphQLList",{enumerable:!0,get:function(){return Oe.GraphQLList}});Object.defineProperty($,"GraphQLNonNull",{enumerable:!0,get:function(){return Oe.GraphQLNonNull}});Object.defineProperty($,"GraphQLObjectType",{enumerable:!0,get:function(){return Oe.GraphQLObjectType}});Object.defineProperty($,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Oe.GraphQLOneOfDirective}});Object.defineProperty($,"GraphQLScalarType",{enumerable:!0,get:function(){return Oe.GraphQLScalarType}});Object.defineProperty($,"GraphQLSchema",{enumerable:!0,get:function(){return Oe.GraphQLSchema}});Object.defineProperty($,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Oe.GraphQLSkipDirective}});Object.defineProperty($,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Oe.GraphQLSpecifiedByDirective}});Object.defineProperty($,"GraphQLString",{enumerable:!0,get:function(){return Oe.GraphQLString}});Object.defineProperty($,"GraphQLUnionType",{enumerable:!0,get:function(){return Oe.GraphQLUnionType}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return mn.Kind}});Object.defineProperty($,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return kt.KnownArgumentNamesRule}});Object.defineProperty($,"KnownDirectivesRule",{enumerable:!0,get:function(){return kt.KnownDirectivesRule}});Object.defineProperty($,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return kt.KnownFragmentNamesRule}});Object.defineProperty($,"KnownTypeNamesRule",{enumerable:!0,get:function(){return kt.KnownTypeNamesRule}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return mn.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return mn.Location}});Object.defineProperty($,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return kt.LoneAnonymousOperationRule}});Object.defineProperty($,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return kt.LoneSchemaDefinitionRule}});Object.defineProperty($,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return kt.MaxIntrospectionDepthRule}});Object.defineProperty($,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return kt.NoDeprecatedCustomRule}});Object.defineProperty($,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return kt.NoFragmentCyclesRule}});Object.defineProperty($,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return kt.NoSchemaIntrospectionCustomRule}});Object.defineProperty($,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return kt.NoUndefinedVariablesRule}});Object.defineProperty($,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return kt.NoUnusedFragmentsRule}});Object.defineProperty($,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return kt.NoUnusedVariablesRule}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return mn.OperationTypeNode}});Object.defineProperty($,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return kt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty($,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return kt.PossibleFragmentSpreadsRule}});Object.defineProperty($,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return kt.PossibleTypeExtensionsRule}});Object.defineProperty($,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return kt.ProvidedRequiredArgumentsRule}});Object.defineProperty($,"ScalarLeafsRule",{enumerable:!0,get:function(){return kt.ScalarLeafsRule}});Object.defineProperty($,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Oe.SchemaMetaFieldDef}});Object.defineProperty($,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return kt.SingleFieldSubscriptionsRule}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return mn.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return mn.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return mn.TokenKind}});Object.defineProperty($,"TypeInfo",{enumerable:!0,get:function(){return hn.TypeInfo}});Object.defineProperty($,"TypeKind",{enumerable:!0,get:function(){return Oe.TypeKind}});Object.defineProperty($,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeMetaFieldDef}});Object.defineProperty($,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeNameMetaFieldDef}});Object.defineProperty($,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty($,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentNamesRule}});Object.defineProperty($,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return kt.UniqueDirectiveNamesRule}});Object.defineProperty($,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return kt.UniqueDirectivesPerLocationRule}});Object.defineProperty($,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return kt.UniqueEnumValueNamesRule}});Object.defineProperty($,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueFieldDefinitionNamesRule}});Object.defineProperty($,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return kt.UniqueFragmentNamesRule}});Object.defineProperty($,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return kt.UniqueInputFieldNamesRule}});Object.defineProperty($,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return kt.UniqueOperationNamesRule}});Object.defineProperty($,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kt.UniqueOperationTypesRule}});Object.defineProperty($,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return kt.UniqueTypeNamesRule}});Object.defineProperty($,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return kt.UniqueVariableNamesRule}});Object.defineProperty($,"ValidationContext",{enumerable:!0,get:function(){return kt.ValidationContext}});Object.defineProperty($,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return kt.ValuesOfCorrectTypeRule}});Object.defineProperty($,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return kt.VariablesAreInputTypesRule}});Object.defineProperty($,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return kt.VariablesInAllowedPositionRule}});Object.defineProperty($,"__Directive",{enumerable:!0,get:function(){return Oe.__Directive}});Object.defineProperty($,"__DirectiveLocation",{enumerable:!0,get:function(){return Oe.__DirectiveLocation}});Object.defineProperty($,"__EnumValue",{enumerable:!0,get:function(){return Oe.__EnumValue}});Object.defineProperty($,"__Field",{enumerable:!0,get:function(){return Oe.__Field}});Object.defineProperty($,"__InputValue",{enumerable:!0,get:function(){return Oe.__InputValue}});Object.defineProperty($,"__Schema",{enumerable:!0,get:function(){return Oe.__Schema}});Object.defineProperty($,"__Type",{enumerable:!0,get:function(){return Oe.__Type}});Object.defineProperty($,"__TypeKind",{enumerable:!0,get:function(){return Oe.__TypeKind}});Object.defineProperty($,"assertAbstractType",{enumerable:!0,get:function(){return Oe.assertAbstractType}});Object.defineProperty($,"assertCompositeType",{enumerable:!0,get:function(){return Oe.assertCompositeType}});Object.defineProperty($,"assertDirective",{enumerable:!0,get:function(){return Oe.assertDirective}});Object.defineProperty($,"assertEnumType",{enumerable:!0,get:function(){return Oe.assertEnumType}});Object.defineProperty($,"assertEnumValueName",{enumerable:!0,get:function(){return Oe.assertEnumValueName}});Object.defineProperty($,"assertInputObjectType",{enumerable:!0,get:function(){return Oe.assertInputObjectType}});Object.defineProperty($,"assertInputType",{enumerable:!0,get:function(){return Oe.assertInputType}});Object.defineProperty($,"assertInterfaceType",{enumerable:!0,get:function(){return Oe.assertInterfaceType}});Object.defineProperty($,"assertLeafType",{enumerable:!0,get:function(){return Oe.assertLeafType}});Object.defineProperty($,"assertListType",{enumerable:!0,get:function(){return Oe.assertListType}});Object.defineProperty($,"assertName",{enumerable:!0,get:function(){return Oe.assertName}});Object.defineProperty($,"assertNamedType",{enumerable:!0,get:function(){return Oe.assertNamedType}});Object.defineProperty($,"assertNonNullType",{enumerable:!0,get:function(){return Oe.assertNonNullType}});Object.defineProperty($,"assertNullableType",{enumerable:!0,get:function(){return Oe.assertNullableType}});Object.defineProperty($,"assertObjectType",{enumerable:!0,get:function(){return Oe.assertObjectType}});Object.defineProperty($,"assertOutputType",{enumerable:!0,get:function(){return Oe.assertOutputType}});Object.defineProperty($,"assertScalarType",{enumerable:!0,get:function(){return Oe.assertScalarType}});Object.defineProperty($,"assertSchema",{enumerable:!0,get:function(){return Oe.assertSchema}});Object.defineProperty($,"assertType",{enumerable:!0,get:function(){return Oe.assertType}});Object.defineProperty($,"assertUnionType",{enumerable:!0,get:function(){return Oe.assertUnionType}});Object.defineProperty($,"assertValidName",{enumerable:!0,get:function(){return hn.assertValidName}});Object.defineProperty($,"assertValidSchema",{enumerable:!0,get:function(){return Oe.assertValidSchema}});Object.defineProperty($,"assertWrappingType",{enumerable:!0,get:function(){return Oe.assertWrappingType}});Object.defineProperty($,"astFromValue",{enumerable:!0,get:function(){return hn.astFromValue}});Object.defineProperty($,"buildASTSchema",{enumerable:!0,get:function(){return hn.buildASTSchema}});Object.defineProperty($,"buildClientSchema",{enumerable:!0,get:function(){return hn.buildClientSchema}});Object.defineProperty($,"buildSchema",{enumerable:!0,get:function(){return hn.buildSchema}});Object.defineProperty($,"coerceInputValue",{enumerable:!0,get:function(){return hn.coerceInputValue}});Object.defineProperty($,"concatAST",{enumerable:!0,get:function(){return hn.concatAST}});Object.defineProperty($,"createSourceEventStream",{enumerable:!0,get:function(){return ta.createSourceEventStream}});Object.defineProperty($,"defaultFieldResolver",{enumerable:!0,get:function(){return ta.defaultFieldResolver}});Object.defineProperty($,"defaultTypeResolver",{enumerable:!0,get:function(){return ta.defaultTypeResolver}});Object.defineProperty($,"doTypesOverlap",{enumerable:!0,get:function(){return hn.doTypesOverlap}});Object.defineProperty($,"execute",{enumerable:!0,get:function(){return ta.execute}});Object.defineProperty($,"executeSync",{enumerable:!0,get:function(){return ta.executeSync}});Object.defineProperty($,"extendSchema",{enumerable:!0,get:function(){return hn.extendSchema}});Object.defineProperty($,"findBreakingChanges",{enumerable:!0,get:function(){return hn.findBreakingChanges}});Object.defineProperty($,"findDangerousChanges",{enumerable:!0,get:function(){return hn.findDangerousChanges}});Object.defineProperty($,"formatError",{enumerable:!0,get:function(){return Kh.formatError}});Object.defineProperty($,"getArgumentValues",{enumerable:!0,get:function(){return ta.getArgumentValues}});Object.defineProperty($,"getDirectiveValues",{enumerable:!0,get:function(){return ta.getDirectiveValues}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return mn.getEnterLeaveForKind}});Object.defineProperty($,"getIntrospectionQuery",{enumerable:!0,get:function(){return hn.getIntrospectionQuery}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return mn.getLocation}});Object.defineProperty($,"getNamedType",{enumerable:!0,get:function(){return Oe.getNamedType}});Object.defineProperty($,"getNullableType",{enumerable:!0,get:function(){return Oe.getNullableType}});Object.defineProperty($,"getOperationAST",{enumerable:!0,get:function(){return hn.getOperationAST}});Object.defineProperty($,"getOperationRootType",{enumerable:!0,get:function(){return hn.getOperationRootType}});Object.defineProperty($,"getVariableValues",{enumerable:!0,get:function(){return ta.getVariableValues}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return mn.getVisitFn}});Object.defineProperty($,"graphql",{enumerable:!0,get:function(){return BV.graphql}});Object.defineProperty($,"graphqlSync",{enumerable:!0,get:function(){return BV.graphqlSync}});Object.defineProperty($,"introspectionFromSchema",{enumerable:!0,get:function(){return hn.introspectionFromSchema}});Object.defineProperty($,"introspectionTypes",{enumerable:!0,get:function(){return Oe.introspectionTypes}});Object.defineProperty($,"isAbstractType",{enumerable:!0,get:function(){return Oe.isAbstractType}});Object.defineProperty($,"isCompositeType",{enumerable:!0,get:function(){return Oe.isCompositeType}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return mn.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return mn.isDefinitionNode}});Object.defineProperty($,"isDirective",{enumerable:!0,get:function(){return Oe.isDirective}});Object.defineProperty($,"isEnumType",{enumerable:!0,get:function(){return Oe.isEnumType}});Object.defineProperty($,"isEqualType",{enumerable:!0,get:function(){return hn.isEqualType}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return mn.isExecutableDefinitionNode}});Object.defineProperty($,"isInputObjectType",{enumerable:!0,get:function(){return Oe.isInputObjectType}});Object.defineProperty($,"isInputType",{enumerable:!0,get:function(){return Oe.isInputType}});Object.defineProperty($,"isInterfaceType",{enumerable:!0,get:function(){return Oe.isInterfaceType}});Object.defineProperty($,"isIntrospectionType",{enumerable:!0,get:function(){return Oe.isIntrospectionType}});Object.defineProperty($,"isLeafType",{enumerable:!0,get:function(){return Oe.isLeafType}});Object.defineProperty($,"isListType",{enumerable:!0,get:function(){return Oe.isListType}});Object.defineProperty($,"isNamedType",{enumerable:!0,get:function(){return Oe.isNamedType}});Object.defineProperty($,"isNonNullType",{enumerable:!0,get:function(){return Oe.isNonNullType}});Object.defineProperty($,"isNullableType",{enumerable:!0,get:function(){return Oe.isNullableType}});Object.defineProperty($,"isObjectType",{enumerable:!0,get:function(){return Oe.isObjectType}});Object.defineProperty($,"isOutputType",{enumerable:!0,get:function(){return Oe.isOutputType}});Object.defineProperty($,"isRequiredArgument",{enumerable:!0,get:function(){return Oe.isRequiredArgument}});Object.defineProperty($,"isRequiredInputField",{enumerable:!0,get:function(){return Oe.isRequiredInputField}});Object.defineProperty($,"isScalarType",{enumerable:!0,get:function(){return Oe.isScalarType}});Object.defineProperty($,"isSchema",{enumerable:!0,get:function(){return Oe.isSchema}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return mn.isSelectionNode}});Object.defineProperty($,"isSpecifiedDirective",{enumerable:!0,get:function(){return Oe.isSpecifiedDirective}});Object.defineProperty($,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Oe.isSpecifiedScalarType}});Object.defineProperty($,"isType",{enumerable:!0,get:function(){return Oe.isType}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return mn.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return mn.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return mn.isTypeNode}});Object.defineProperty($,"isTypeSubTypeOf",{enumerable:!0,get:function(){return hn.isTypeSubTypeOf}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return mn.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return mn.isTypeSystemExtensionNode}});Object.defineProperty($,"isUnionType",{enumerable:!0,get:function(){return Oe.isUnionType}});Object.defineProperty($,"isValidNameError",{enumerable:!0,get:function(){return hn.isValidNameError}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return mn.isValueNode}});Object.defineProperty($,"isWrappingType",{enumerable:!0,get:function(){return Oe.isWrappingType}});Object.defineProperty($,"lexicographicSortSchema",{enumerable:!0,get:function(){return hn.lexicographicSortSchema}});Object.defineProperty($,"locatedError",{enumerable:!0,get:function(){return Kh.locatedError}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return mn.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return mn.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return mn.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return mn.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return mn.print}});Object.defineProperty($,"printError",{enumerable:!0,get:function(){return Kh.printError}});Object.defineProperty($,"printIntrospectionSchema",{enumerable:!0,get:function(){return hn.printIntrospectionSchema}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return mn.printLocation}});Object.defineProperty($,"printSchema",{enumerable:!0,get:function(){return hn.printSchema}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return mn.printSourceLocation}});Object.defineProperty($,"printType",{enumerable:!0,get:function(){return hn.printType}});Object.defineProperty($,"recommendedRules",{enumerable:!0,get:function(){return kt.recommendedRules}});Object.defineProperty($,"resolveObjMapThunk",{enumerable:!0,get:function(){return Oe.resolveObjMapThunk}});Object.defineProperty($,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Oe.resolveReadonlyArrayThunk}});Object.defineProperty($,"responsePathAsArray",{enumerable:!0,get:function(){return ta.responsePathAsArray}});Object.defineProperty($,"separateOperations",{enumerable:!0,get:function(){return hn.separateOperations}});Object.defineProperty($,"specifiedDirectives",{enumerable:!0,get:function(){return Oe.specifiedDirectives}});Object.defineProperty($,"specifiedRules",{enumerable:!0,get:function(){return kt.specifiedRules}});Object.defineProperty($,"specifiedScalarTypes",{enumerable:!0,get:function(){return Oe.specifiedScalarTypes}});Object.defineProperty($,"stripIgnoredCharacters",{enumerable:!0,get:function(){return hn.stripIgnoredCharacters}});Object.defineProperty($,"subscribe",{enumerable:!0,get:function(){return ta.subscribe}});Object.defineProperty($,"syntaxError",{enumerable:!0,get:function(){return Kh.syntaxError}});Object.defineProperty($,"typeFromAST",{enumerable:!0,get:function(){return hn.typeFromAST}});Object.defineProperty($,"validate",{enumerable:!0,get:function(){return kt.validate}});Object.defineProperty($,"validateSchema",{enumerable:!0,get:function(){return Oe.validateSchema}});Object.defineProperty($,"valueFromAST",{enumerable:!0,get:function(){return hn.valueFromAST}});Object.defineProperty($,"valueFromASTUntyped",{enumerable:!0,get:function(){return hn.valueFromASTUntyped}});Object.defineProperty($,"version",{enumerable:!0,get:function(){return MV.version}});Object.defineProperty($,"versionInfo",{enumerable:!0,get:function(){return MV.versionInfo}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return mn.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return mn.visitInParallel}});Object.defineProperty($,"visitWithTypeInfo",{enumerable:!0,get:function(){return hn.visitWithTypeInfo}});var MV=tB(),BV=DB(),Oe=FB(),mn=LB(),ta=VB(),kt=KB(),Kh=GB(),hn=UV()});var Oc=j(it=>{"use strict";m();T();h();Object.defineProperty(it,"__esModule",{value:!0});it.EDFS_ARGS_REGEXP=it.baseDirectives=it.INHERITABLE_DIRECTIVE_NAMES=it.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=it.SCOPE_SCALAR_DEFINITION=it.FIELD_SET_SCALAR_DEFINITION=it.VERSION_TWO_DIRECTIVE_DEFINITIONS=it.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=it.BASE_DIRECTIVE_DEFINITIONS=it.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=it.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=it.SUBSCRIPTION_FILTER_VALUE_DEFINITION=it.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=it.SUBSCRIPTION_FILTER_DEFINITION=it.REQUIRES_SCOPES_DEFINITION=it.INACCESSIBLE_DEFINITION=it.AUTHENTICATED_DEFINITION=it.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=it.TAG_DEFINITION=it.DEPRECATED_DEFINITION=it.BASE_SCALARS=void 0;var ge=(Le(),Me(je)),pe=$i(),H=bi(),jV=Al();it.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",H.FIELD_SET_SCALAR,H.SCOPE_SCALAR,H.STRING_SCALAR]);it.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.REASON),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR),defaultValue:{kind:ge.Kind.STRING,value:ge.DEFAULT_DEPRECATION_REASON}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.DEPRECATED),repeatable:!1};var $V={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTENDS),repeatable:!1},qV={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTERNAL),repeatable:!1},KV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPIC),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1},GV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPICS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1},QV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_PUBLISH),repeatable:!1},YV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_REQUEST),repeatable:!1},JV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECTS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("streamConfiguration"),type:(0,pe.stringToNamedTypeNode)(H.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_SUBSCRIBE),repeatable:!1},zV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.RESOLVABLE),type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR),defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.KEY),repeatable:!0},HV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.PROVIDES),repeatable:!1},WV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.REQUIRES),repeatable:!1},XV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.SPECIFIED_BY),repeatable:!1};it.TAG_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.TAG),repeatable:!0};it.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[H.DEPRECATED,it.DEPRECATED_DEFINITION],[H.EXTENDS,$V],[H.EXTERNAL,qV],[H.EDFS_KAFKA_PUBLISH,KV],[H.EDFS_KAFKA_SUBSCRIBE,GV],[H.EDFS_NATS_PUBLISH,QV],[H.EDFS_NATS_REQUEST,YV],[H.EDFS_NATS_SUBSCRIBE,JV],[H.KEY,zV],[H.PROVIDES,HV],[H.REQUIRES,WV],[H.SPECIFIED_BY,XV],[H.TAG,it.TAG_DEFINITION]]);it.AUTHENTICATED_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.AUTHENTICATED),repeatable:!1};var ZV={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.COMPOSE_DIRECTIVE),repeatable:!0};it.INACCESSIBLE_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.INACCESSIBLE),repeatable:!1};var ej={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.INTERFACE_OBJECT),repeatable:!1},tj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("as"),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("for"),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("import"),type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.LINK),repeatable:!0},nj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FROM),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.OVERRIDE),repeatable:!1};it.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SCOPE_SCALAR)}}}}}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRES_SCOPES),repeatable:!1};var rj={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.SHAREABLE),repeatable:!1};it.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONDITION),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER),repeatable:!1};it.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.AND_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.IN_UPPER),type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FIELD_CONDITION)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.OR_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NOT_UPPER),type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER_CONDITION)};it.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER_VALUE)};it.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELD_PATH),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.VALUES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FIELD_CONDITION)};it.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[H.AUTHENTICATED,it.AUTHENTICATED_DEFINITION],[H.COMPOSE_DIRECTIVE,ZV],[H.INACCESSIBLE,it.INACCESSIBLE_DEFINITION],[H.INTERFACE_OBJECT,ej],[H.LINK,tj],[H.OVERRIDE,nj],[H.REQUIRES_SCOPES,it.REQUIRES_SCOPES_DEFINITION],[H.SHAREABLE,rj]]);it.BASE_DIRECTIVE_DEFINITIONS=[it.DEPRECATED_DEFINITION,$V,qV,zV,HV,WV,XV,it.TAG_DEFINITION];it.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[H.EDFS_KAFKA_PUBLISH,KV],[H.EDFS_KAFKA_SUBSCRIBE,GV],[H.EDFS_NATS_PUBLISH,QV],[H.EDFS_NATS_REQUEST,YV],[H.EDFS_NATS_SUBSCRIBE,JV]]);it.VERSION_TWO_DIRECTIVE_DEFINITIONS=[it.AUTHENTICATED_DEFINITION,ZV,it.INACCESSIBLE_DEFINITION,ej,tj,nj,it.REQUIRES_SCOPES_DEFINITION,rj];it.FIELD_SET_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELD_SET_SCALAR)};it.SCOPE_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPE_SCALAR)};it.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONSUMER_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.STREAM_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.INT_SCALAR)},defaultValue:{kind:ge.Kind.INT,value:jV.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};it.INHERITABLE_DIRECTIVE_NAMES=[H.EXTERNAL,H.SHAREABLE];it.baseDirectives=` +`}});var FV=j(sA=>{"use strict";m();T();h();Object.defineProperty(sA,"__esModule",{value:!0});sA.concatAST=nse;var tse=en();function nse(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:tse.Kind.DOCUMENT,definitions:t}}});var PV=j(oA=>{"use strict";m();T();h();Object.defineProperty(oA,"__esModule",{value:!0});oA.separateOperations=ise;var KE=en(),rse=Il();function ise(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case KE.Kind.OPERATION_DEFINITION:t.push(i);break;case KE.Kind.FRAGMENT_DEFINITION:n[i.name.value]=wV(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let s=new Set;for(let u of wV(i.selectionSet))LV(s,n,u);let o=i.name?i.name.value:"";r[o]={kind:KE.Kind.DOCUMENT,definitions:e.definitions.filter(u=>u===i||u.kind===KE.Kind.FRAGMENT_DEFINITION&&s.has(u.name.value))}}return r}function LV(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)LV(e,t,i)}}function wV(e){let t=[];return(0,rse.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var CV=j(uA=>{"use strict";m();T();h();Object.defineProperty(uA,"__esModule",{value:!0});uA.stripIgnoredCharacters=ose;var sse=oh(),kV=bE(),xV=SE(),aA=xh();function ose(e){let t=(0,xV.isSource)(e)?e:new xV.Source(e),n=t.body,r=new kV.Lexer(t),i="",s=!1;for(;r.advance().kind!==aA.TokenKind.EOF;){let o=r.token,u=o.kind,l=!(0,kV.isPunctuatorTokenKind)(o.kind);s&&(l||o.kind===aA.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);u===aA.TokenKind.BLOCK_STRING?i+=(0,sse.printBlockString)(o.value,{minimize:!0}):i+=d,s=l}return i}});var MV=j(GE=>{"use strict";m();T();h();Object.defineProperty(GE,"__esModule",{value:!0});GE.assertValidName=lse;GE.isValidNameError=UV;var ase=Oi(),use=ct(),cse=ah();function lse(e){let t=UV(e);if(t)throw t;return e}function UV(e){if(typeof e=="string"||(0,ase.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new use.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,cse.assertName)(e)}catch(t){return t}}});var QV=j(ea=>{"use strict";m();T();h();Object.defineProperty(ea,"__esModule",{value:!0});ea.DangerousChangeType=ea.BreakingChangeType=void 0;ea.findBreakingChanges=Tse;ea.findDangerousChanges=yse;var dse=En(),KV=ci(),BV=_c(),pse=ds(),ln=tn(),fse=Yo(),mse=gh(),hse=XS(),dr;ea.BreakingChangeType=dr;(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"})(dr||(ea.BreakingChangeType=dr={}));var go;ea.DangerousChangeType=go;(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"})(go||(ea.DangerousChangeType=go={}));function Tse(e,t){return GV(e,t).filter(n=>n.type in dr)}function yse(e,t){return GV(e,t).filter(n=>n.type in go)}function GV(e,t){return[...Ese(e,t),...Nse(e,t)]}function Nse(e,t){let n=[],r=Ja(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:dr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,s]of r.persisted){let o=Ja(i.args,s.args);for(let u of o.added)(0,ln.isRequiredArgument)(u)&&n.push({type:dr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${u.name} on directive ${i.name} was added.`});for(let u of o.removed)n.push({type:dr.DIRECTIVE_ARG_REMOVED,description:`${u.name} was removed from ${i.name}.`});i.isRepeatable&&!s.isRepeatable&&n.push({type:dr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let u of i.locations)s.locations.includes(u)||n.push({type:dr.DIRECTIVE_LOCATION_REMOVED,description:`${u} was removed from ${i.name}.`})}return n}function Ese(e,t){let n=[],r=Ja(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:dr.TYPE_REMOVED,description:(0,fse.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,s]of r.persisted)(0,ln.isEnumType)(i)&&(0,ln.isEnumType)(s)?n.push(...vse(i,s)):(0,ln.isUnionType)(i)&&(0,ln.isUnionType)(s)?n.push(...Ise(i,s)):(0,ln.isInputObjectType)(i)&&(0,ln.isInputObjectType)(s)?n.push(...gse(i,s)):(0,ln.isObjectType)(i)&&(0,ln.isObjectType)(s)?n.push(...jV(i,s),...VV(i,s)):(0,ln.isInterfaceType)(i)&&(0,ln.isInterfaceType)(s)?n.push(...jV(i,s),...VV(i,s)):i.constructor!==s.constructor&&n.push({type:dr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${$V(i)} to ${$V(s)}.`});return n}function gse(e,t){let n=[],r=Ja(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,ln.isRequiredInputField)(i)?n.push({type:dr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:go.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)zh(i.type,s.type)||n.push({type:dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function Ise(e,t){let n=[],r=Ja(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:go.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:dr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function vse(e,t){let n=[],r=Ja(e.getValues(),t.getValues());for(let i of r.added)n.push({type:go.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:dr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function VV(e,t){let n=[],r=Ja(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:go.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:dr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function jV(e,t){let n=[],r=Ja(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:dr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,s]of r.persisted)n.push(..._se(e,i,s)),Jh(i.type,s.type)||n.push({type:dr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(s.type)}.`});return n}function _se(e,t,n){let r=[],i=Ja(t.args,n.args);for(let s of i.removed)r.push({type:dr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${s.name} was removed.`});for(let[s,o]of i.persisted)if(!zh(s.type,o.type))r.push({type:dr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${s.name} has changed type from ${String(s.type)} to ${String(o.type)}.`});else if(s.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:go.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} defaultValue was removed.`});else{let l=qV(s.defaultValue,s.type),d=qV(o.defaultValue,o.type);l!==d&&r.push({type:go.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${s.name} has changed defaultValue from ${l} to ${d}.`})}for(let s of i.added)(0,ln.isRequiredArgument)(s)?r.push({type:dr.REQUIRED_ARG_ADDED,description:`A required arg ${s.name} on ${e.name}.${t.name} was added.`}):r.push({type:go.OPTIONAL_ARG_ADDED,description:`An optional arg ${s.name} on ${e.name}.${t.name} was added.`});return r}function Jh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&Jh(e.ofType,t.ofType)||(0,ln.isNonNullType)(t)&&Jh(e,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&Jh(e.ofType,t.ofType):(0,ln.isNamedType)(t)&&e.name===t.name||(0,ln.isNonNullType)(t)&&Jh(e,t.ofType)}function zh(e,t){return(0,ln.isListType)(e)?(0,ln.isListType)(t)&&zh(e.ofType,t.ofType):(0,ln.isNonNullType)(e)?(0,ln.isNonNullType)(t)&&zh(e.ofType,t.ofType)||!(0,ln.isNonNullType)(t)&&zh(e.ofType,t):(0,ln.isNamedType)(t)&&e.name===t.name}function $V(e){if((0,ln.isScalarType)(e))return"a Scalar type";if((0,ln.isObjectType)(e))return"an Object type";if((0,ln.isInterfaceType)(e))return"an Interface type";if((0,ln.isUnionType)(e))return"a Union type";if((0,ln.isEnumType)(e))return"an Enum type";if((0,ln.isInputObjectType)(e))return"an Input type";(0,KV.invariant)(!1,"Unexpected type: "+(0,dse.inspect)(e))}function qV(e,t){let n=(0,mse.astFromValue)(e,t);return n!=null||(0,KV.invariant)(!1),(0,pse.print)((0,hse.sortValueNode)(n))}function Ja(e,t){let n=[],r=[],i=[],s=(0,BV.keyMap)(e,({name:u})=>u),o=(0,BV.keyMap)(t,({name:u})=>u);for(let u of e){let l=o[u.name];l===void 0?r.push(u):i.push([u,l])}for(let u of t)s[u.name]===void 0&&n.push(u);return{added:n,persisted:i,removed:r}}});var HV=j(un=>{"use strict";m();T();h();Object.defineProperty(un,"__esModule",{value:!0});Object.defineProperty(un,"BreakingChangeType",{enumerable:!0,get:function(){return QE.BreakingChangeType}});Object.defineProperty(un,"DangerousChangeType",{enumerable:!0,get:function(){return QE.DangerousChangeType}});Object.defineProperty(un,"TypeInfo",{enumerable:!0,get:function(){return JV.TypeInfo}});Object.defineProperty(un,"assertValidName",{enumerable:!0,get:function(){return zV.assertValidName}});Object.defineProperty(un,"astFromValue",{enumerable:!0,get:function(){return kse.astFromValue}});Object.defineProperty(un,"buildASTSchema",{enumerable:!0,get:function(){return YV.buildASTSchema}});Object.defineProperty(un,"buildClientSchema",{enumerable:!0,get:function(){return Ase.buildClientSchema}});Object.defineProperty(un,"buildSchema",{enumerable:!0,get:function(){return YV.buildSchema}});Object.defineProperty(un,"coerceInputValue",{enumerable:!0,get:function(){return xse.coerceInputValue}});Object.defineProperty(un,"concatAST",{enumerable:!0,get:function(){return Cse.concatAST}});Object.defineProperty(un,"doTypesOverlap",{enumerable:!0,get:function(){return lA.doTypesOverlap}});Object.defineProperty(un,"extendSchema",{enumerable:!0,get:function(){return Rse.extendSchema}});Object.defineProperty(un,"findBreakingChanges",{enumerable:!0,get:function(){return QE.findBreakingChanges}});Object.defineProperty(un,"findDangerousChanges",{enumerable:!0,get:function(){return QE.findDangerousChanges}});Object.defineProperty(un,"getIntrospectionQuery",{enumerable:!0,get:function(){return bse.getIntrospectionQuery}});Object.defineProperty(un,"getOperationAST",{enumerable:!0,get:function(){return Ose.getOperationAST}});Object.defineProperty(un,"getOperationRootType",{enumerable:!0,get:function(){return Sse.getOperationRootType}});Object.defineProperty(un,"introspectionFromSchema",{enumerable:!0,get:function(){return Dse.introspectionFromSchema}});Object.defineProperty(un,"isEqualType",{enumerable:!0,get:function(){return lA.isEqualType}});Object.defineProperty(un,"isTypeSubTypeOf",{enumerable:!0,get:function(){return lA.isTypeSubTypeOf}});Object.defineProperty(un,"isValidNameError",{enumerable:!0,get:function(){return zV.isValidNameError}});Object.defineProperty(un,"lexicographicSortSchema",{enumerable:!0,get:function(){return Fse.lexicographicSortSchema}});Object.defineProperty(un,"printIntrospectionSchema",{enumerable:!0,get:function(){return cA.printIntrospectionSchema}});Object.defineProperty(un,"printSchema",{enumerable:!0,get:function(){return cA.printSchema}});Object.defineProperty(un,"printType",{enumerable:!0,get:function(){return cA.printType}});Object.defineProperty(un,"separateOperations",{enumerable:!0,get:function(){return Use.separateOperations}});Object.defineProperty(un,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Mse.stripIgnoredCharacters}});Object.defineProperty(un,"typeFromAST",{enumerable:!0,get:function(){return wse.typeFromAST}});Object.defineProperty(un,"valueFromAST",{enumerable:!0,get:function(){return Lse.valueFromAST}});Object.defineProperty(un,"valueFromASTUntyped",{enumerable:!0,get:function(){return Pse.valueFromASTUntyped}});Object.defineProperty(un,"visitWithTypeInfo",{enumerable:!0,get:function(){return JV.visitWithTypeInfo}});var bse=GD(),Ose=sV(),Sse=oV(),Dse=aV(),Ase=cV(),YV=EV(),Rse=WD(),Fse=vV(),cA=RV(),wse=Jo(),Lse=Fh(),Pse=YO(),kse=gh(),JV=iE(),xse=N0(),Cse=FV(),Use=PV(),Mse=CV(),lA=ph(),zV=MV(),QE=QV()});var ZV=j($=>{"use strict";m();T();h();Object.defineProperty($,"__esModule",{value:!0});Object.defineProperty($,"BREAK",{enumerable:!0,get:function(){return mn.BREAK}});Object.defineProperty($,"BreakingChangeType",{enumerable:!0,get:function(){return hn.BreakingChangeType}});Object.defineProperty($,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Oe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty($,"DangerousChangeType",{enumerable:!0,get:function(){return hn.DangerousChangeType}});Object.defineProperty($,"DirectiveLocation",{enumerable:!0,get:function(){return mn.DirectiveLocation}});Object.defineProperty($,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return kt.ExecutableDefinitionsRule}});Object.defineProperty($,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kt.FieldsOnCorrectTypeRule}});Object.defineProperty($,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return kt.FragmentsOnCompositeTypesRule}});Object.defineProperty($,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Oe.GRAPHQL_MAX_INT}});Object.defineProperty($,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Oe.GRAPHQL_MIN_INT}});Object.defineProperty($,"GraphQLBoolean",{enumerable:!0,get:function(){return Oe.GraphQLBoolean}});Object.defineProperty($,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Oe.GraphQLDeprecatedDirective}});Object.defineProperty($,"GraphQLDirective",{enumerable:!0,get:function(){return Oe.GraphQLDirective}});Object.defineProperty($,"GraphQLEnumType",{enumerable:!0,get:function(){return Oe.GraphQLEnumType}});Object.defineProperty($,"GraphQLError",{enumerable:!0,get:function(){return Hh.GraphQLError}});Object.defineProperty($,"GraphQLFloat",{enumerable:!0,get:function(){return Oe.GraphQLFloat}});Object.defineProperty($,"GraphQLID",{enumerable:!0,get:function(){return Oe.GraphQLID}});Object.defineProperty($,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Oe.GraphQLIncludeDirective}});Object.defineProperty($,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Oe.GraphQLInputObjectType}});Object.defineProperty($,"GraphQLInt",{enumerable:!0,get:function(){return Oe.GraphQLInt}});Object.defineProperty($,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Oe.GraphQLInterfaceType}});Object.defineProperty($,"GraphQLList",{enumerable:!0,get:function(){return Oe.GraphQLList}});Object.defineProperty($,"GraphQLNonNull",{enumerable:!0,get:function(){return Oe.GraphQLNonNull}});Object.defineProperty($,"GraphQLObjectType",{enumerable:!0,get:function(){return Oe.GraphQLObjectType}});Object.defineProperty($,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Oe.GraphQLOneOfDirective}});Object.defineProperty($,"GraphQLScalarType",{enumerable:!0,get:function(){return Oe.GraphQLScalarType}});Object.defineProperty($,"GraphQLSchema",{enumerable:!0,get:function(){return Oe.GraphQLSchema}});Object.defineProperty($,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Oe.GraphQLSkipDirective}});Object.defineProperty($,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Oe.GraphQLSpecifiedByDirective}});Object.defineProperty($,"GraphQLString",{enumerable:!0,get:function(){return Oe.GraphQLString}});Object.defineProperty($,"GraphQLUnionType",{enumerable:!0,get:function(){return Oe.GraphQLUnionType}});Object.defineProperty($,"Kind",{enumerable:!0,get:function(){return mn.Kind}});Object.defineProperty($,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return kt.KnownArgumentNamesRule}});Object.defineProperty($,"KnownDirectivesRule",{enumerable:!0,get:function(){return kt.KnownDirectivesRule}});Object.defineProperty($,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return kt.KnownFragmentNamesRule}});Object.defineProperty($,"KnownTypeNamesRule",{enumerable:!0,get:function(){return kt.KnownTypeNamesRule}});Object.defineProperty($,"Lexer",{enumerable:!0,get:function(){return mn.Lexer}});Object.defineProperty($,"Location",{enumerable:!0,get:function(){return mn.Location}});Object.defineProperty($,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return kt.LoneAnonymousOperationRule}});Object.defineProperty($,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return kt.LoneSchemaDefinitionRule}});Object.defineProperty($,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return kt.MaxIntrospectionDepthRule}});Object.defineProperty($,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return kt.NoDeprecatedCustomRule}});Object.defineProperty($,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return kt.NoFragmentCyclesRule}});Object.defineProperty($,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return kt.NoSchemaIntrospectionCustomRule}});Object.defineProperty($,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return kt.NoUndefinedVariablesRule}});Object.defineProperty($,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return kt.NoUnusedFragmentsRule}});Object.defineProperty($,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return kt.NoUnusedVariablesRule}});Object.defineProperty($,"OperationTypeNode",{enumerable:!0,get:function(){return mn.OperationTypeNode}});Object.defineProperty($,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return kt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty($,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return kt.PossibleFragmentSpreadsRule}});Object.defineProperty($,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return kt.PossibleTypeExtensionsRule}});Object.defineProperty($,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return kt.ProvidedRequiredArgumentsRule}});Object.defineProperty($,"ScalarLeafsRule",{enumerable:!0,get:function(){return kt.ScalarLeafsRule}});Object.defineProperty($,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Oe.SchemaMetaFieldDef}});Object.defineProperty($,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return kt.SingleFieldSubscriptionsRule}});Object.defineProperty($,"Source",{enumerable:!0,get:function(){return mn.Source}});Object.defineProperty($,"Token",{enumerable:!0,get:function(){return mn.Token}});Object.defineProperty($,"TokenKind",{enumerable:!0,get:function(){return mn.TokenKind}});Object.defineProperty($,"TypeInfo",{enumerable:!0,get:function(){return hn.TypeInfo}});Object.defineProperty($,"TypeKind",{enumerable:!0,get:function(){return Oe.TypeKind}});Object.defineProperty($,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeMetaFieldDef}});Object.defineProperty($,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeNameMetaFieldDef}});Object.defineProperty($,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentDefinitionNamesRule}});Object.defineProperty($,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return kt.UniqueArgumentNamesRule}});Object.defineProperty($,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return kt.UniqueDirectiveNamesRule}});Object.defineProperty($,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return kt.UniqueDirectivesPerLocationRule}});Object.defineProperty($,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return kt.UniqueEnumValueNamesRule}});Object.defineProperty($,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return kt.UniqueFieldDefinitionNamesRule}});Object.defineProperty($,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return kt.UniqueFragmentNamesRule}});Object.defineProperty($,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return kt.UniqueInputFieldNamesRule}});Object.defineProperty($,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return kt.UniqueOperationNamesRule}});Object.defineProperty($,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kt.UniqueOperationTypesRule}});Object.defineProperty($,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return kt.UniqueTypeNamesRule}});Object.defineProperty($,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return kt.UniqueVariableNamesRule}});Object.defineProperty($,"ValidationContext",{enumerable:!0,get:function(){return kt.ValidationContext}});Object.defineProperty($,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return kt.ValuesOfCorrectTypeRule}});Object.defineProperty($,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return kt.VariablesAreInputTypesRule}});Object.defineProperty($,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return kt.VariablesInAllowedPositionRule}});Object.defineProperty($,"__Directive",{enumerable:!0,get:function(){return Oe.__Directive}});Object.defineProperty($,"__DirectiveLocation",{enumerable:!0,get:function(){return Oe.__DirectiveLocation}});Object.defineProperty($,"__EnumValue",{enumerable:!0,get:function(){return Oe.__EnumValue}});Object.defineProperty($,"__Field",{enumerable:!0,get:function(){return Oe.__Field}});Object.defineProperty($,"__InputValue",{enumerable:!0,get:function(){return Oe.__InputValue}});Object.defineProperty($,"__Schema",{enumerable:!0,get:function(){return Oe.__Schema}});Object.defineProperty($,"__Type",{enumerable:!0,get:function(){return Oe.__Type}});Object.defineProperty($,"__TypeKind",{enumerable:!0,get:function(){return Oe.__TypeKind}});Object.defineProperty($,"assertAbstractType",{enumerable:!0,get:function(){return Oe.assertAbstractType}});Object.defineProperty($,"assertCompositeType",{enumerable:!0,get:function(){return Oe.assertCompositeType}});Object.defineProperty($,"assertDirective",{enumerable:!0,get:function(){return Oe.assertDirective}});Object.defineProperty($,"assertEnumType",{enumerable:!0,get:function(){return Oe.assertEnumType}});Object.defineProperty($,"assertEnumValueName",{enumerable:!0,get:function(){return Oe.assertEnumValueName}});Object.defineProperty($,"assertInputObjectType",{enumerable:!0,get:function(){return Oe.assertInputObjectType}});Object.defineProperty($,"assertInputType",{enumerable:!0,get:function(){return Oe.assertInputType}});Object.defineProperty($,"assertInterfaceType",{enumerable:!0,get:function(){return Oe.assertInterfaceType}});Object.defineProperty($,"assertLeafType",{enumerable:!0,get:function(){return Oe.assertLeafType}});Object.defineProperty($,"assertListType",{enumerable:!0,get:function(){return Oe.assertListType}});Object.defineProperty($,"assertName",{enumerable:!0,get:function(){return Oe.assertName}});Object.defineProperty($,"assertNamedType",{enumerable:!0,get:function(){return Oe.assertNamedType}});Object.defineProperty($,"assertNonNullType",{enumerable:!0,get:function(){return Oe.assertNonNullType}});Object.defineProperty($,"assertNullableType",{enumerable:!0,get:function(){return Oe.assertNullableType}});Object.defineProperty($,"assertObjectType",{enumerable:!0,get:function(){return Oe.assertObjectType}});Object.defineProperty($,"assertOutputType",{enumerable:!0,get:function(){return Oe.assertOutputType}});Object.defineProperty($,"assertScalarType",{enumerable:!0,get:function(){return Oe.assertScalarType}});Object.defineProperty($,"assertSchema",{enumerable:!0,get:function(){return Oe.assertSchema}});Object.defineProperty($,"assertType",{enumerable:!0,get:function(){return Oe.assertType}});Object.defineProperty($,"assertUnionType",{enumerable:!0,get:function(){return Oe.assertUnionType}});Object.defineProperty($,"assertValidName",{enumerable:!0,get:function(){return hn.assertValidName}});Object.defineProperty($,"assertValidSchema",{enumerable:!0,get:function(){return Oe.assertValidSchema}});Object.defineProperty($,"assertWrappingType",{enumerable:!0,get:function(){return Oe.assertWrappingType}});Object.defineProperty($,"astFromValue",{enumerable:!0,get:function(){return hn.astFromValue}});Object.defineProperty($,"buildASTSchema",{enumerable:!0,get:function(){return hn.buildASTSchema}});Object.defineProperty($,"buildClientSchema",{enumerable:!0,get:function(){return hn.buildClientSchema}});Object.defineProperty($,"buildSchema",{enumerable:!0,get:function(){return hn.buildSchema}});Object.defineProperty($,"coerceInputValue",{enumerable:!0,get:function(){return hn.coerceInputValue}});Object.defineProperty($,"concatAST",{enumerable:!0,get:function(){return hn.concatAST}});Object.defineProperty($,"createSourceEventStream",{enumerable:!0,get:function(){return ta.createSourceEventStream}});Object.defineProperty($,"defaultFieldResolver",{enumerable:!0,get:function(){return ta.defaultFieldResolver}});Object.defineProperty($,"defaultTypeResolver",{enumerable:!0,get:function(){return ta.defaultTypeResolver}});Object.defineProperty($,"doTypesOverlap",{enumerable:!0,get:function(){return hn.doTypesOverlap}});Object.defineProperty($,"execute",{enumerable:!0,get:function(){return ta.execute}});Object.defineProperty($,"executeSync",{enumerable:!0,get:function(){return ta.executeSync}});Object.defineProperty($,"extendSchema",{enumerable:!0,get:function(){return hn.extendSchema}});Object.defineProperty($,"findBreakingChanges",{enumerable:!0,get:function(){return hn.findBreakingChanges}});Object.defineProperty($,"findDangerousChanges",{enumerable:!0,get:function(){return hn.findDangerousChanges}});Object.defineProperty($,"formatError",{enumerable:!0,get:function(){return Hh.formatError}});Object.defineProperty($,"getArgumentValues",{enumerable:!0,get:function(){return ta.getArgumentValues}});Object.defineProperty($,"getDirectiveValues",{enumerable:!0,get:function(){return ta.getDirectiveValues}});Object.defineProperty($,"getEnterLeaveForKind",{enumerable:!0,get:function(){return mn.getEnterLeaveForKind}});Object.defineProperty($,"getIntrospectionQuery",{enumerable:!0,get:function(){return hn.getIntrospectionQuery}});Object.defineProperty($,"getLocation",{enumerable:!0,get:function(){return mn.getLocation}});Object.defineProperty($,"getNamedType",{enumerable:!0,get:function(){return Oe.getNamedType}});Object.defineProperty($,"getNullableType",{enumerable:!0,get:function(){return Oe.getNullableType}});Object.defineProperty($,"getOperationAST",{enumerable:!0,get:function(){return hn.getOperationAST}});Object.defineProperty($,"getOperationRootType",{enumerable:!0,get:function(){return hn.getOperationRootType}});Object.defineProperty($,"getVariableValues",{enumerable:!0,get:function(){return ta.getVariableValues}});Object.defineProperty($,"getVisitFn",{enumerable:!0,get:function(){return mn.getVisitFn}});Object.defineProperty($,"graphql",{enumerable:!0,get:function(){return XV.graphql}});Object.defineProperty($,"graphqlSync",{enumerable:!0,get:function(){return XV.graphqlSync}});Object.defineProperty($,"introspectionFromSchema",{enumerable:!0,get:function(){return hn.introspectionFromSchema}});Object.defineProperty($,"introspectionTypes",{enumerable:!0,get:function(){return Oe.introspectionTypes}});Object.defineProperty($,"isAbstractType",{enumerable:!0,get:function(){return Oe.isAbstractType}});Object.defineProperty($,"isCompositeType",{enumerable:!0,get:function(){return Oe.isCompositeType}});Object.defineProperty($,"isConstValueNode",{enumerable:!0,get:function(){return mn.isConstValueNode}});Object.defineProperty($,"isDefinitionNode",{enumerable:!0,get:function(){return mn.isDefinitionNode}});Object.defineProperty($,"isDirective",{enumerable:!0,get:function(){return Oe.isDirective}});Object.defineProperty($,"isEnumType",{enumerable:!0,get:function(){return Oe.isEnumType}});Object.defineProperty($,"isEqualType",{enumerable:!0,get:function(){return hn.isEqualType}});Object.defineProperty($,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return mn.isExecutableDefinitionNode}});Object.defineProperty($,"isInputObjectType",{enumerable:!0,get:function(){return Oe.isInputObjectType}});Object.defineProperty($,"isInputType",{enumerable:!0,get:function(){return Oe.isInputType}});Object.defineProperty($,"isInterfaceType",{enumerable:!0,get:function(){return Oe.isInterfaceType}});Object.defineProperty($,"isIntrospectionType",{enumerable:!0,get:function(){return Oe.isIntrospectionType}});Object.defineProperty($,"isLeafType",{enumerable:!0,get:function(){return Oe.isLeafType}});Object.defineProperty($,"isListType",{enumerable:!0,get:function(){return Oe.isListType}});Object.defineProperty($,"isNamedType",{enumerable:!0,get:function(){return Oe.isNamedType}});Object.defineProperty($,"isNonNullType",{enumerable:!0,get:function(){return Oe.isNonNullType}});Object.defineProperty($,"isNullableType",{enumerable:!0,get:function(){return Oe.isNullableType}});Object.defineProperty($,"isObjectType",{enumerable:!0,get:function(){return Oe.isObjectType}});Object.defineProperty($,"isOutputType",{enumerable:!0,get:function(){return Oe.isOutputType}});Object.defineProperty($,"isRequiredArgument",{enumerable:!0,get:function(){return Oe.isRequiredArgument}});Object.defineProperty($,"isRequiredInputField",{enumerable:!0,get:function(){return Oe.isRequiredInputField}});Object.defineProperty($,"isScalarType",{enumerable:!0,get:function(){return Oe.isScalarType}});Object.defineProperty($,"isSchema",{enumerable:!0,get:function(){return Oe.isSchema}});Object.defineProperty($,"isSelectionNode",{enumerable:!0,get:function(){return mn.isSelectionNode}});Object.defineProperty($,"isSpecifiedDirective",{enumerable:!0,get:function(){return Oe.isSpecifiedDirective}});Object.defineProperty($,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Oe.isSpecifiedScalarType}});Object.defineProperty($,"isType",{enumerable:!0,get:function(){return Oe.isType}});Object.defineProperty($,"isTypeDefinitionNode",{enumerable:!0,get:function(){return mn.isTypeDefinitionNode}});Object.defineProperty($,"isTypeExtensionNode",{enumerable:!0,get:function(){return mn.isTypeExtensionNode}});Object.defineProperty($,"isTypeNode",{enumerable:!0,get:function(){return mn.isTypeNode}});Object.defineProperty($,"isTypeSubTypeOf",{enumerable:!0,get:function(){return hn.isTypeSubTypeOf}});Object.defineProperty($,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return mn.isTypeSystemDefinitionNode}});Object.defineProperty($,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return mn.isTypeSystemExtensionNode}});Object.defineProperty($,"isUnionType",{enumerable:!0,get:function(){return Oe.isUnionType}});Object.defineProperty($,"isValidNameError",{enumerable:!0,get:function(){return hn.isValidNameError}});Object.defineProperty($,"isValueNode",{enumerable:!0,get:function(){return mn.isValueNode}});Object.defineProperty($,"isWrappingType",{enumerable:!0,get:function(){return Oe.isWrappingType}});Object.defineProperty($,"lexicographicSortSchema",{enumerable:!0,get:function(){return hn.lexicographicSortSchema}});Object.defineProperty($,"locatedError",{enumerable:!0,get:function(){return Hh.locatedError}});Object.defineProperty($,"parse",{enumerable:!0,get:function(){return mn.parse}});Object.defineProperty($,"parseConstValue",{enumerable:!0,get:function(){return mn.parseConstValue}});Object.defineProperty($,"parseType",{enumerable:!0,get:function(){return mn.parseType}});Object.defineProperty($,"parseValue",{enumerable:!0,get:function(){return mn.parseValue}});Object.defineProperty($,"print",{enumerable:!0,get:function(){return mn.print}});Object.defineProperty($,"printError",{enumerable:!0,get:function(){return Hh.printError}});Object.defineProperty($,"printIntrospectionSchema",{enumerable:!0,get:function(){return hn.printIntrospectionSchema}});Object.defineProperty($,"printLocation",{enumerable:!0,get:function(){return mn.printLocation}});Object.defineProperty($,"printSchema",{enumerable:!0,get:function(){return hn.printSchema}});Object.defineProperty($,"printSourceLocation",{enumerable:!0,get:function(){return mn.printSourceLocation}});Object.defineProperty($,"printType",{enumerable:!0,get:function(){return hn.printType}});Object.defineProperty($,"recommendedRules",{enumerable:!0,get:function(){return kt.recommendedRules}});Object.defineProperty($,"resolveObjMapThunk",{enumerable:!0,get:function(){return Oe.resolveObjMapThunk}});Object.defineProperty($,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return Oe.resolveReadonlyArrayThunk}});Object.defineProperty($,"responsePathAsArray",{enumerable:!0,get:function(){return ta.responsePathAsArray}});Object.defineProperty($,"separateOperations",{enumerable:!0,get:function(){return hn.separateOperations}});Object.defineProperty($,"specifiedDirectives",{enumerable:!0,get:function(){return Oe.specifiedDirectives}});Object.defineProperty($,"specifiedRules",{enumerable:!0,get:function(){return kt.specifiedRules}});Object.defineProperty($,"specifiedScalarTypes",{enumerable:!0,get:function(){return Oe.specifiedScalarTypes}});Object.defineProperty($,"stripIgnoredCharacters",{enumerable:!0,get:function(){return hn.stripIgnoredCharacters}});Object.defineProperty($,"subscribe",{enumerable:!0,get:function(){return ta.subscribe}});Object.defineProperty($,"syntaxError",{enumerable:!0,get:function(){return Hh.syntaxError}});Object.defineProperty($,"typeFromAST",{enumerable:!0,get:function(){return hn.typeFromAST}});Object.defineProperty($,"validate",{enumerable:!0,get:function(){return kt.validate}});Object.defineProperty($,"validateSchema",{enumerable:!0,get:function(){return Oe.validateSchema}});Object.defineProperty($,"valueFromAST",{enumerable:!0,get:function(){return hn.valueFromAST}});Object.defineProperty($,"valueFromASTUntyped",{enumerable:!0,get:function(){return hn.valueFromASTUntyped}});Object.defineProperty($,"version",{enumerable:!0,get:function(){return WV.version}});Object.defineProperty($,"versionInfo",{enumerable:!0,get:function(){return WV.versionInfo}});Object.defineProperty($,"visit",{enumerable:!0,get:function(){return mn.visit}});Object.defineProperty($,"visitInParallel",{enumerable:!0,get:function(){return mn.visitInParallel}});Object.defineProperty($,"visitWithTypeInfo",{enumerable:!0,get:function(){return hn.visitWithTypeInfo}});var WV=mB(),XV=VB(),Oe=qB(),mn=GB(),ta=ZB(),kt=rV(),Hh=iV(),hn=HV()});var wc=j(st=>{"use strict";m();T();h();Object.defineProperty(st,"__esModule",{value:!0});st.EDFS_ARGS_REGEXP=st.baseDirectives=st.INHERITABLE_DIRECTIVE_NAMES=st.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=st.SCOPE_SCALAR_DEFINITION=st.FIELD_SET_SCALAR_DEFINITION=st.VERSION_TWO_DIRECTIVE_DEFINITIONS=st.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=st.BASE_DIRECTIVE_DEFINITIONS=st.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=st.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=st.SUBSCRIPTION_FILTER_VALUE_DEFINITION=st.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=st.SUBSCRIPTION_FILTER_DEFINITION=st.REQUIRES_SCOPES_DEFINITION=st.INACCESSIBLE_DEFINITION=st.AUTHENTICATED_DEFINITION=st.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=st.TAG_DEFINITION=st.DEPRECATED_DEFINITION=st.BASE_SCALARS=void 0;var ge=(Le(),Me(je)),pe=$i(),H=bi(),ej=kl();st.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",H.FIELD_SET_SCALAR,H.SCOPE_SCALAR,H.STRING_SCALAR]);st.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.REASON),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR),defaultValue:{kind:ge.Kind.STRING,value:ge.DEFAULT_DEPRECATION_REASON}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.DEPRECATED),repeatable:!1};var tj={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTENDS),repeatable:!1},nj={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTERNAL),repeatable:!1},rj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPIC),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1},ij={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPICS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1},sj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_PUBLISH),repeatable:!1},oj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_REQUEST),repeatable:!1},aj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECTS),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:ge.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("streamConfiguration"),type:(0,pe.stringToNamedTypeNode)(H.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_SUBSCRIBE),repeatable:!1},uj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.RESOLVABLE),type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR),defaultValue:{kind:ge.Kind.BOOLEAN,value:!0}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.KEY),repeatable:!0},cj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.PROVIDES),repeatable:!1},lj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.FIELD_SET_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.REQUIRES),repeatable:!1},dj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.SPECIFIED_BY),repeatable:!1};st.TAG_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.TAG),repeatable:!0};st.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[H.DEPRECATED,st.DEPRECATED_DEFINITION],[H.EXTENDS,tj],[H.EXTERNAL,nj],[H.EDFS_KAFKA_PUBLISH,rj],[H.EDFS_KAFKA_SUBSCRIBE,ij],[H.EDFS_NATS_PUBLISH,sj],[H.EDFS_NATS_REQUEST,oj],[H.EDFS_NATS_SUBSCRIBE,aj],[H.KEY,uj],[H.PROVIDES,cj],[H.REQUIRES,lj],[H.SPECIFIED_BY,dj],[H.TAG,st.TAG_DEFINITION]]);st.AUTHENTICATED_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.AUTHENTICATED),repeatable:!1};var pj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.COMPOSE_DIRECTIVE),repeatable:!0};st.INACCESSIBLE_DEFINITION={arguments:[],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.INACCESSIBLE),repeatable:!1};var fj={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.INTERFACE_OBJECT),repeatable:!1},mj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("as"),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("for"),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)("import"),type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.LINK),repeatable:!0},hj={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FROM),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.OVERRIDE),repeatable:!1};st.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SCOPE_SCALAR)}}}}}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRES_SCOPES),repeatable:!1};var Tj={kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.SHAREABLE),repeatable:!1};st.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONDITION),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ge.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER),repeatable:!1};st.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.AND_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.IN_UPPER),type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FIELD_CONDITION)},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.OR_UPPER),type:{kind:ge.Kind.LIST_TYPE,type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NOT_UPPER),type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER_CONDITION)};st.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER_VALUE)};st.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELD_PATH),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.VALUES),type:{kind:ge.Kind.NON_NULL_TYPE,type:{kind:ge.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FIELD_CONDITION)};st.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[H.AUTHENTICATED,st.AUTHENTICATED_DEFINITION],[H.COMPOSE_DIRECTIVE,pj],[H.INACCESSIBLE,st.INACCESSIBLE_DEFINITION],[H.INTERFACE_OBJECT,fj],[H.LINK,mj],[H.OVERRIDE,hj],[H.REQUIRES_SCOPES,st.REQUIRES_SCOPES_DEFINITION],[H.SHAREABLE,Tj]]);st.BASE_DIRECTIVE_DEFINITIONS=[st.DEPRECATED_DEFINITION,tj,nj,uj,cj,lj,dj,st.TAG_DEFINITION];st.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[H.EDFS_KAFKA_PUBLISH,rj],[H.EDFS_KAFKA_SUBSCRIBE,ij],[H.EDFS_NATS_PUBLISH,sj],[H.EDFS_NATS_REQUEST,oj],[H.EDFS_NATS_SUBSCRIBE,aj]]);st.VERSION_TWO_DIRECTIVE_DEFINITIONS=[st.AUTHENTICATED_DEFINITION,pj,st.INACCESSIBLE_DEFINITION,fj,mj,hj,st.REQUIRES_SCOPES_DEFINITION,Tj];st.FIELD_SET_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELD_SET_SCALAR)};st.SCOPE_SCALAR_DEFINITION={kind:ge.Kind.SCALAR_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPE_SCALAR)};st.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pe.stringToNameNode)(H.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONSUMER_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.STREAM_NAME),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:ge.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ge.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.INT_SCALAR)},defaultValue:{kind:ge.Kind.INT,value:ej.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};st.INHERITABLE_DIRECTIVE_NAMES=[H.EXTERNAL,H.SHAREABLE];st.baseDirectives=` directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION directive @extends on INTERFACE | OBJECT directive @external on FIELD_DEFINITION | OBJECT @@ -596,85 +596,85 @@ ${t.join(` scalar openfed__FieldSet scalar openfed__Scope input edfs__NatsStreamConfiguration { - consumerInactiveThreshold: Int! = ${jV.DEFAULT_CONSUMER_INACTIVE_THRESHOLD} + consumerInactiveThreshold: Int! = ${ej.DEFAULT_CONSUMER_INACTIVE_THRESHOLD} consumerName: String! streamName: String! } -`;it.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g});var iA=j(rA=>{"use strict";m();T();h();Object.defineProperty(rA,"__esModule",{value:!0});rA.newFieldSetConditionData=Ose;function Ose({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}});var Gh=j(jE=>{"use strict";m();T();h();Object.defineProperty(jE,"__esModule",{value:!0});jE.ExtensionType=void 0;var ij;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(ij||(jE.ExtensionType=ij={}))});var aA={};Sf(aA,{__addDisposableResource:()=>Oj,__assign:()=>$E,__asyncDelegator:()=>yj,__asyncGenerator:()=>Tj,__asyncValues:()=>Nj,__await:()=>bp,__awaiter:()=>lj,__classPrivateFieldGet:()=>vj,__classPrivateFieldIn:()=>bj,__classPrivateFieldSet:()=>_j,__createBinding:()=>KE,__decorate:()=>aj,__disposeResources:()=>Sj,__esDecorate:()=>Sse,__exportStar:()=>pj,__extends:()=>sj,__generator:()=>dj,__importDefault:()=>Ij,__importStar:()=>gj,__makeTemplateObject:()=>Ej,__metadata:()=>cj,__param:()=>uj,__propKey:()=>Ase,__read:()=>oA,__rest:()=>oj,__runInitializers:()=>Dse,__setFunctionName:()=>Rse,__spread:()=>fj,__spreadArray:()=>hj,__spreadArrays:()=>mj,__values:()=>qE,default:()=>Lse});function sj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function oj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function uj(e,t){return function(n,r){t(n,r,e)}}function Sse(e,t,n,r,i,s){function o(K){if(K!==void 0&&typeof K!="function")throw new TypeError("Function expected");return K}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var O={};for(var x in r)O[x]=x==="access"?{}:r[x];for(var x in r.access)O.access[x]=r.access[x];O.addInitializer=function(K){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(K||null))};var V=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],O);if(u==="accessor"){if(V===void 0)continue;if(V===null||typeof V!="object")throw new TypeError("Object expected");(y=o(V.get))&&(p.get=y),(y=o(V.set))&&(p.set=y),(y=o(V.init))&&i.unshift(y)}else(y=o(V))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function Dse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function fj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(O){y(s[0][3],O)}}function l(N){N.value instanceof bp?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function yj(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:bp(e[i](o)),done:!1}:s?s(o):o}:s}}function Nj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qE=="function"?qE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function Ej(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function gj(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&KE(t,e,n);return Fse(t,e),t}function Ij(e){return e&&e.__esModule?e:{default:e}}function vj(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function _j(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function bj(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 Oj(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Sj(e){function t(r){e.error=e.hasError?new wse(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var sA,$E,KE,Fse,wse,Lse,uA=ue(()=>{"use strict";m();T();h();sA=function(e,t){return sA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},sA(e,t)};$E=function(){return $E=Object.assign||function(t){for(var n,r=1,i=arguments.length;rYj,__assign:()=>GE,__asyncDelegator:()=>Bj,__asyncGenerator:()=>Mj,__asyncValues:()=>Vj,__await:()=>Op,__awaiter:()=>Lj,__classPrivateFieldGet:()=>Kj,__classPrivateFieldIn:()=>Qj,__classPrivateFieldSet:()=>Gj,__createBinding:()=>YE,__decorate:()=>Rj,__disposeResources:()=>Jj,__esDecorate:()=>Pse,__exportStar:()=>kj,__extends:()=>Dj,__generator:()=>Pj,__importDefault:()=>qj,__importStar:()=>$j,__makeTemplateObject:()=>jj,__metadata:()=>wj,__param:()=>Fj,__propKey:()=>Cse,__read:()=>lA,__rest:()=>Aj,__runInitializers:()=>kse,__setFunctionName:()=>xse,__spread:()=>Cj,__spreadArray:()=>Uj,__spreadArrays:()=>xj,__values:()=>QE,default:()=>Bse});function Dj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");cA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Aj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function Fj(e,t){return function(n,r){t(n,r,e)}}function Pse(e,t,n,r,i,s){function o(K){if(K!==void 0&&typeof K!="function")throw new TypeError("Function expected");return K}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var O={};for(var x in r)O[x]=x==="access"?{}:r[x];for(var x in r.access)O.access[x]=r.access[x];O.addInitializer=function(K){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(K||null))};var V=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],O);if(u==="accessor"){if(V===void 0)continue;if(V===null||typeof V!="object")throw new TypeError("Object expected");(y=o(V.get))&&(p.get=y),(y=o(V.set))&&(p.set=y),(y=o(V.init))&&i.unshift(y)}else(y=o(V))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function kse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Cj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(O){y(s[0][3],O)}}function l(N){N.value instanceof Op?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Bj(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:Op(e[i](o)),done:!1}:s?s(o):o}:s}}function Vj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof QE=="function"?QE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function jj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function $j(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&YE(t,e,n);return Use(t,e),t}function qj(e){return e&&e.__esModule?e:{default:e}}function Kj(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Gj(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function Qj(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 Yj(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Jj(e){function t(r){e.error=e.hasError?new Mse(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var cA,GE,YE,Use,Mse,Bse,Hj=ue(()=>{"use strict";m();T();h();cA=function(e,t){return cA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},cA(e,t)};GE=function(){return GE=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();h()});var Qh=j(qr=>{"use strict";m();T();h();Object.defineProperty(qr,"__esModule",{value:!0});qr.assertSome=qr.isSome=qr.compareNodes=qr.nodeToString=qr.compareStrings=qr.isValidPath=qr.isDocumentString=qr.asArray=void 0;var Vse=(Le(),Me(je)),jse=e=>Array.isArray(e)?e:e?[e]:[];qr.asArray=jse;var $se=/\.[a-z0-9]+$/i;function qse(e){if(typeof e!="string"||$se.test(e))return!1;try{return(0,Vse.parse)(e),!0}catch(t){}return!1}qr.isDocumentString=qse;var Kse=/[‘“!%^<>`]/;function Gse(e){return typeof e=="string"&&!Kse.test(e)}qr.isValidPath=Gse;function Xj(e,t){return String(e)String(t)?1:0}qr.compareStrings=Xj;function dA(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}qr.nodeToString=dA;function Qse(e,t,n){let r=dA(e),i=dA(t);return typeof n=="function"?n(r,i):Xj(r,i)}qr.compareNodes=Qse;function Yse(e){return e!=null}qr.isSome=Yse;function Jse(e,t="Value should be something"){if(e==null)throw new Error(t)}qr.assertSome=Jse});var Yh=j(zE=>{"use strict";m();T();h();Object.defineProperty(zE,"__esModule",{value:!0});zE.inspect=void 0;var t1=3;function zse(e){return JE(e,[])}zE.inspect=zse;function JE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Hse(e,t);default:return String(e)}}function Zj(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function Hse(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?Zj(e)+` -`+e1(e.errors,t):Zj(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Wse(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:JE(r,n)}else if(Array.isArray(e))return e1(e,n);return Xse(e,n)}function Wse(e){return typeof e.toJSON=="function"}function Xse(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>t1?"["+Zse(e)+"]":"{ "+n.map(([i,s])=>i+": "+JE(s,t)).join(", ")+" }"}function e1(e,t){if(e.length===0)return"[]";if(t.length>t1)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();h();Object.defineProperty(Sp,"__esModule",{value:!0});Sp.relocatedError=Sp.createGraphQLError=void 0;var pA=(Le(),Me(je)),eoe=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function toe(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>eoe.includes(t))}function fA(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&toe(t.originalError)&&(t.originalError=fA(t.originalError.message,t.originalError)),pA.versionInfo.major>=17?new pA.GraphQLError(e,t):new pA.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)}Sp.createGraphQLError=fA;function noe(e,t){return fA(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Sp.relocatedError=noe});var Jh=j(qs=>{"use strict";m();T();h();Object.defineProperty(qs,"__esModule",{value:!0});qs.hasOwnProperty=qs.promiseReduce=qs.isPromise=qs.isObjectLike=qs.isIterableObject=void 0;function roe(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}qs.isIterableObject=roe;function ioe(e){return typeof e=="object"&&e!==null}qs.isObjectLike=ioe;function n1(e){return(e==null?void 0:e.then)!=null}qs.isPromise=n1;function soe(e,t,n){let r=n;for(let i of e)r=n1(r)?r.then(s=>t(s,i)):t(r,i);return r}qs.promiseReduce=soe;function ooe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}qs.hasOwnProperty=ooe});var hA=j(XE=>{"use strict";m();T();h();Object.defineProperty(XE,"__esModule",{value:!0});XE.getArgumentValues=void 0;var mA=Yh(),xl=(Le(),Me(je)),WE=HE(),aoe=Jh();function uoe(e,t,n={}){var o;let r={},s=((o=t.arguments)!=null?o:[]).reduce((u,l)=>G(k({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=s[u];if(!p){if(d!==void 0)r[u]=d;else if((0,xl.isNonNullType)(l))throw(0,WE.createGraphQLError)(`Argument "${u}" of required type "${(0,mA.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,N=y.kind===xl.Kind.NULL;if(y.kind===xl.Kind.VARIABLE){let O=y.name.value;if(n==null||!(0,aoe.hasOwnProperty)(n,O)){if(d!==void 0)r[u]=d;else if((0,xl.isNonNullType)(l))throw(0,WE.createGraphQLError)(`Argument "${u}" of required type "${(0,mA.inspect)(l)}" was provided the variable "$${O}" which was not provided a runtime value.`,{nodes:[y]});continue}N=n[O]==null}if(N&&(0,xl.isNonNullType)(l))throw(0,WE.createGraphQLError)(`Argument "${u}" of non-null type "${(0,mA.inspect)(l)}" must not be null.`,{nodes:[y]});let I=(0,xl.valueFromAST)(y,l,n);if(I===void 0)throw(0,WE.createGraphQLError)(`Argument "${u}" has invalid value ${(0,xl.print)(y)}.`,{nodes:[y]});r[u]=I}return r}XE.getArgumentValues=uoe});var TA=j(na=>{"use strict";m();T();h();Object.defineProperty(na,"__esModule",{value:!0});na.getDirective=na.getDirectives=na.getDirectiveInExtensions=na.getDirectivesInExtensions=void 0;var i1=hA();function s1(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}na.getDirectivesInExtensions=s1;function r1(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function o1(e,t,n=["directives"]){let r=n.reduce((s,o)=>s==null?s:s[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return r1(r,t);let i=[];for(let[s,o]of Object.entries(r))if(Array.isArray(o))for(let u of o)i.push({name:s,args:u});else i.push({name:s,args:o});return r1(i,t)}na.getDirectiveInExtensions=o1;function coe(e,t,n=["directives"]){let r=s1(t,n);if(r!=null&&r.length>0)return r;let s=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=s[d.name.value];p&&u.push({name:d.name.value,args:(0,i1.getArgumentValues)(p,d)})}return u}na.getDirectives=coe;function loe(e,t,n,r=["directives"]){let i=o1(t,n,r);if(i!=null)return i;let s=e&&e.getDirective?e.getDirective(n):void 0;if(s==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&u.push((0,i1.getArgumentValues)(s,d));if(u.length)return u}na.getDirective=loe});var yA=j(ZE=>{"use strict";m();T();h();Object.defineProperty(ZE,"__esModule",{value:!0});ZE.getFieldsWithDirectives=void 0;var doe=(Le(),Me(je));function poe(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(s=>r.includes(s.kind));for(let s of i){let o=s.name.value;if(s.fields!=null){for(let u of s.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${o}.${l}`,p=u.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((N,I)=>G(k({},N),{[I.name.value]:(0,doe.valueFromASTUntyped)(I.value)}),{})}));n[d]=p}}}return n}ZE.getFieldsWithDirectives=poe});var a1=j(eg=>{"use strict";m();T();h();Object.defineProperty(eg,"__esModule",{value:!0});eg.getArgumentsWithDirectives=void 0;var NA=(Le(),Me(je));function foe(e){return e.kind===NA.Kind.OBJECT_TYPE_DEFINITION||e.kind===NA.Kind.OBJECT_TYPE_EXTENSION}function moe(e){var r;let t={},n=e.definitions.filter(foe);for(let i of n)if(i.fields!=null)for(let s of i.fields){let o=(r=s.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${s.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,N)=>G(k({},y),{[N.name.value]:(0,NA.valueFromASTUntyped)(N.value)}),{})}));u[l.name.value]=d}}return t}eg.getArgumentsWithDirectives=moe});var EA=j(tg=>{"use strict";m();T();h();Object.defineProperty(tg,"__esModule",{value:!0});tg.getImplementingTypes=void 0;var hoe=(Le(),Me(je));function Toe(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let s=n[i];(0,hoe.isObjectType)(s)&&s.getInterfaces().find(u=>u.name===e)&&r.push(s.name)}return r}tg.getImplementingTypes=Toe});var IA=j(ng=>{"use strict";m();T();h();Object.defineProperty(ng,"__esModule",{value:!0});ng.astFromType=void 0;var yoe=Yh(),Ul=(Le(),Me(je));function gA(e){if((0,Ul.isNonNullType)(e)){let t=gA(e.ofType);if(t.kind===Ul.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,yoe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ul.Kind.NON_NULL_TYPE,type:t}}else if((0,Ul.isListType)(e))return{kind:Ul.Kind.LIST_TYPE,type:gA(e.ofType)};return{kind:Ul.Kind.NAMED_TYPE,name:{kind:Ul.Kind.NAME,value:e.name}}}ng.astFromType=gA});var ig=j(rg=>{"use strict";m();T();h();Object.defineProperty(rg,"__esModule",{value:!0});rg.astFromValueUntyped=void 0;var ra=(Le(),Me(je));function vA(e){if(e===null)return{kind:ra.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=vA(n);r!=null&&t.push(r)}return{kind:ra.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=vA(r);i&&t.push({kind:ra.Kind.OBJECT_FIELD,name:{kind:ra.Kind.NAME,value:n},value:i})}return{kind:ra.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ra.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ra.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Noe.test(t)?{kind:ra.Kind.INT,value:t}:{kind:ra.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ra.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}rg.astFromValueUntyped=vA;var Noe=/^-?(?:0|[1-9][0-9]*)$/});var c1=j(sg=>{"use strict";m();T();h();Object.defineProperty(sg,"__esModule",{value:!0});sg.astFromValue=void 0;var Eoe=Yh(),hs=(Le(),Me(je)),goe=ig(),u1=Jh();function zh(e,t){if((0,hs.isNonNullType)(t)){let n=zh(e,t.ofType);return(n==null?void 0:n.kind)===hs.Kind.NULL?null:n}if(e===null)return{kind:hs.Kind.NULL};if(e===void 0)return null;if((0,hs.isListType)(t)){let n=t.ofType;if((0,u1.isIterableObject)(e)){let r=[];for(let i of e){let s=zh(i,n);s!=null&&r.push(s)}return{kind:hs.Kind.LIST,values:r}}return zh(e,n)}if((0,hs.isInputObjectType)(t)){if(!(0,u1.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=zh(e[r.name],r.type);i&&n.push({kind:hs.Kind.OBJECT_FIELD,name:{kind:hs.Kind.NAME,value:r.name},value:i})}return{kind:hs.Kind.OBJECT,fields:n}}if((0,hs.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,hs.isEnumType)(t)?{kind:hs.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&Ioe.test(n)?{kind:hs.Kind.INT,value:n}:(0,goe.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,Eoe.inspect)(t))}sg.astFromValue=zh;var Ioe=/^-?(?:0|[1-9][0-9]*)$/});var l1=j(og=>{"use strict";m();T();h();Object.defineProperty(og,"__esModule",{value:!0});og.getDescriptionNode=void 0;var voe=(Le(),Me(je));function _oe(e){var t;if((t=e.astNode)!=null&&t.description)return G(k({},e.astNode.description),{block:!0});if(e.description)return{kind:voe.Kind.STRING,value:e.description,block:!0}}og.getDescriptionNode=_oe});var Dp=j(pi=>{"use strict";m();T();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.memoize2of5=pi.memoize2of4=pi.memoize5=pi.memoize4=pi.memoize3=pi.memoize2=pi.memoize1=void 0;function boe(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}pi.memoize1=boe;function Ooe(e){let t=new WeakMap;return function(r,i){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let u=e(r,i);return s.set(i,u),u}let o=s.get(i);if(o===void 0){let u=e(r,i);return s.set(i,u),u}return o}}pi.memoize2=Ooe;function Soe(e){let t=new WeakMap;return function(r,i,s){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,s);return d.set(s,p),p}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let d=e(r,i,s);return u.set(s,d),d}let l=u.get(s);if(l===void 0){let d=e(r,i,s);return u.set(s,d),d}return l}}pi.memoize3=Soe;function Doe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let y=new WeakMap;u.set(i,y);let N=new WeakMap;y.set(s,N);let I=e(r,i,s,o);return N.set(o,I),I}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let d=l.get(s);if(!d){let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let p=d.get(o);if(p===void 0){let y=e(r,i,s,o);return d.set(o,y),y}return p}}pi.memoize4=Doe;function Aoe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let I=new WeakMap;l.set(i,I);let O=new WeakMap;I.set(s,O);let x=new WeakMap;O.set(o,x);let V=e(r,i,s,o,u);return x.set(u,V),V}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let I=new WeakMap;d.set(s,I);let O=new WeakMap;I.set(o,O);let x=e(r,i,s,o,u);return O.set(u,x),x}let p=d.get(s);if(!p){p=new WeakMap,d.set(s,p);let I=new WeakMap;p.set(o,I);let O=e(r,i,s,o,u);return I.set(u,O),O}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let I=e(r,i,s,o,u);return y.set(u,I),I}let N=y.get(u);if(N===void 0){let I=e(r,i,s,o,u);return y.set(u,I),I}return N}}pi.memoize5=Aoe;function Roe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,s,o);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,s,o);return u.set(i,d),d}return l}}pi.memoize2of4=Roe;function Foe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,s,o,u);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,s,o,u);return l.set(i,p),p}return d}}pi.memoize2of5=Foe});var Hh=j(Ts=>{"use strict";m();T();h();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getRootTypeMap=Ts.getRootTypes=Ts.getRootTypeNames=Ts.getDefinedRootType=void 0;var woe=HE(),_A=Dp();function Loe(e,t,n){let i=(0,Ts.getRootTypeMap)(e).get(t);if(i==null)throw(0,woe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ts.getDefinedRootType=Loe;Ts.getRootTypeNames=(0,_A.memoize1)(function(t){let n=(0,Ts.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ts.getRootTypes=(0,_A.memoize1)(function(t){let n=(0,Ts.getRootTypeMap)(t);return new Set(n.values())});Ts.getRootTypeMap=(0,_A.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n})});var AA=j(Mt=>{"use strict";m();T();h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.makeDirectiveNodes=Mt.makeDirectiveNode=Mt.makeDeprecatedDirective=Mt.astFromEnumValue=Mt.astFromInputField=Mt.astFromField=Mt.astFromScalarType=Mt.astFromEnumType=Mt.astFromInputObjectType=Mt.astFromUnionType=Mt.astFromInterfaceType=Mt.astFromObjectType=Mt.astFromArg=Mt.getDeprecatableDirectiveNodes=Mt.getDirectiveNodes=Mt.astFromDirective=Mt.astFromSchema=Mt.printSchemaWithDirectives=Mt.getDocumentNodeFromSchema=void 0;var bt=(Le(),Me(je)),Ml=IA(),bA=c1(),Poe=ig(),Ks=l1(),OA=TA(),koe=Qh(),Coe=Hh();function d1(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=p1(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,bt.isSpecifiedDirective)(u)||s.push(f1(u,e,n));for(let u in r){let l=r[u],d=(0,bt.isSpecifiedScalarType)(l),p=(0,bt.isIntrospectionType)(l);if(!(d||p))if((0,bt.isObjectType)(l))s.push(m1(l,e,n));else if((0,bt.isInterfaceType)(l))s.push(h1(l,e,n));else if((0,bt.isUnionType)(l))s.push(T1(l,e,n));else if((0,bt.isInputObjectType)(l))s.push(y1(l,e,n));else if((0,bt.isEnumType)(l))s.push(N1(l,e,n));else if((0,bt.isScalarType)(l))s.push(E1(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:bt.Kind.DOCUMENT,definitions:s}}Mt.getDocumentNodeFromSchema=d1;function xoe(e,t={}){let n=d1(e,t);return(0,bt.print)(n)}Mt.printSchemaWithDirectives=xoe;function p1(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,Coe.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let N=(0,Ml.astFromType)(y);p!=null?p.type=N:n.set(d,{kind:bt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:N})}}let s=[...n.values()].filter(koe.isSome),o=Bl(e,e,t);if(!s.length&&!o.length)return null;let u={kind:s!=null?bt.Kind.SCHEMA_DEFINITION:bt.Kind.SCHEMA_EXTENSION,operationTypes:s,directives:o},l=(0,Ks.getDescriptionNode)(e);return l&&(u.description=l),u}Mt.astFromSchema=p1;function f1(e,t,n){var r,i;return{kind:bt.Kind.DIRECTIVE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(s=>SA(s,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(s=>({kind:bt.Kind.NAME,value:s})))||[]}}Mt.astFromDirective=f1;function Bl(e,t,n){let r=(0,OA.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=ag(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}Mt.getDirectiveNodes=Bl;function Xh(e,t,n){var u,l;let r=[],i=null,s=(0,OA.getDirectivesInExtensions)(e,n),o;return s!=null?o=ag(t,s):o=(u=e.astNode)==null?void 0:u.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=v1(e.deprecationReason)),i==null?r:[i].concat(r)}Mt.getDeprecatableDirectiveNodes=Xh;function SA(e,t,n){var r;return{kind:bt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},type:(0,Ml.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,bA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Xh(e,t,n)}}Mt.astFromArg=SA;function m1(e,t,n){return{kind:bt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>DA(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Ml.astFromType)(r)),directives:Bl(e,t,n)}}Mt.astFromObjectType=m1;function h1(e,t,n){let r={kind:bt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>DA(i,t,n)),directives:Bl(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Ml.astFromType)(i))),r}Mt.astFromInterfaceType=h1;function T1(e,t,n){return{kind:bt.Kind.UNION_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:Bl(e,t,n),types:e.getTypes().map(r=>(0,Ml.astFromType)(r))}}Mt.astFromUnionType=T1;function y1(e,t,n){return{kind:bt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>g1(r,t,n)),directives:Bl(e,t,n)}}Mt.astFromInputObjectType=y1;function N1(e,t,n){return{kind:bt.Kind.ENUM_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>I1(r,t,n)),directives:Bl(e,t,n)}}Mt.astFromEnumType=N1;function E1(e,t,n){var o;let r=(0,OA.getDirectivesInExtensions)(e,n),i=r?ag(t,r):((o=e.astNode)==null?void 0:o.directives)||[],s=e.specifiedByUrl||e.specifiedByURL;if(s&&!i.some(u=>u.name.value==="specifiedBy")){let u={url:s};i.push(Wh("specifiedBy",u))}return{kind:bt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:i}}Mt.astFromScalarType=E1;function DA(e,t,n){return{kind:bt.Kind.FIELD_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},arguments:e.args.map(r=>SA(r,t,n)),type:(0,Ml.astFromType)(e.type),directives:Xh(e,t,n)}}Mt.astFromField=DA;function g1(e,t,n){var r;return{kind:bt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},type:(0,Ml.astFromType)(e.type),directives:Xh(e,t,n),defaultValue:(r=(0,bA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Mt.astFromInputField=g1;function I1(e,t,n){return{kind:bt.Kind.ENUM_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:Xh(e,t,n)}}Mt.astFromEnumValue=I1;function v1(e){return Wh("deprecated",{reason:e},bt.GraphQLDeprecatedDirective)}Mt.makeDeprecatedDirective=v1;function Wh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=(0,bA.astFromValue)(o,i.type);u&&r.push({kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=(0,Poe.astFromValueUntyped)(s);o&&r.push({kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:i},value:o})}return{kind:bt.Kind.DIRECTIVE,name:{kind:bt.Kind.NAME,value:e},arguments:r}}Mt.makeDirectiveNode=Wh;function ag(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Wh(r,o,s));else n.push(Wh(r,i,s))}return n}Mt.makeDirectiveNodes=ag});var b1=j(Ap=>{"use strict";m();T();h();Object.defineProperty(Ap,"__esModule",{value:!0});Ap.createDefaultRules=Ap.validateGraphQlDocuments=void 0;var Zh=(Le(),Me(je));function Uoe(e,t,n=_1()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Zh.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let s={kind:Zh.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Zh.validate)(e,s,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` - at ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return o}Ap.validateGraphQlDocuments=Uoe;function _1(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Zh.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Zh.specifiedRules.filter(t=>!e.includes(t.name))}Ap.createDefaultRules=_1});var O1=j(ug=>{"use strict";m();T();h();Object.defineProperty(ug,"__esModule",{value:!0});ug.parseGraphQLJSON=void 0;var Moe=(Le(),Me(je));function Boe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Voe(e){return JSON.parse(Boe(e))}function joe(e,t,n){let r=Voe(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Moe.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}ug.parseGraphQLJSON=joe});var FA=j(pr=>{"use strict";m();T();h();Object.defineProperty(pr,"__esModule",{value:!0});pr.getBlockStringIndentation=pr.dedentBlockStringValue=pr.getLeadingCommentBlock=pr.getComment=pr.getDescription=pr.printWithComments=pr.printComment=pr.pushComment=pr.collectComment=pr.resetComments=void 0;var R1=(Le(),Me(je)),$oe=80,Rp={};function qoe(){Rp={}}pr.resetComments=qoe;function Koe(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(eT(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)eT(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(eT(r,t,r.name.value),zoe(r)&&r.arguments)for(let i of r.arguments)eT(i,t,r.name.value,i.name.value)}break}}pr.collectComment=Koe;function eT(e,t,n,r){let i=RA(e);if(typeof i!="string"||i.length===0)return;let s=[t];n&&(s.push(n),r&&s.push(r));let o=s.join(".");Rp[o]||(Rp[o]=[]),Rp[o].push(i)}pr.pushComment=eT;function F1(e){return` +`;st.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g});var pA=j(dA=>{"use strict";m();T();h();Object.defineProperty(dA,"__esModule",{value:!0});dA.newFieldSetConditionData=Bse;function Bse({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}});var Wh=j(YE=>{"use strict";m();T();h();Object.defineProperty(YE,"__esModule",{value:!0});YE.ExtensionType=void 0;var yj;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(yj||(YE.ExtensionType=yj={}))});var hA={};Lf(hA,{__addDisposableResource:()=>Mj,__assign:()=>JE,__asyncDelegator:()=>Fj,__asyncGenerator:()=>Rj,__asyncValues:()=>wj,__await:()=>Fp,__awaiter:()=>_j,__classPrivateFieldGet:()=>xj,__classPrivateFieldIn:()=>Uj,__classPrivateFieldSet:()=>Cj,__createBinding:()=>HE,__decorate:()=>gj,__disposeResources:()=>Bj,__esDecorate:()=>Vse,__exportStar:()=>Oj,__extends:()=>Nj,__generator:()=>bj,__importDefault:()=>kj,__importStar:()=>Pj,__makeTemplateObject:()=>Lj,__metadata:()=>vj,__param:()=>Ij,__propKey:()=>$se,__read:()=>mA,__rest:()=>Ej,__runInitializers:()=>jse,__setFunctionName:()=>qse,__spread:()=>Sj,__spreadArray:()=>Aj,__spreadArrays:()=>Dj,__values:()=>zE,default:()=>Qse});function Nj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Ej(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function Ij(e,t){return function(n,r){t(n,r,e)}}function Vse(e,t,n,r,i,s){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var S={};for(var C in r)S[C]=C==="access"?{}:r[C];for(var C in r.access)S.access[C]=r.access[C];S.addInitializer=function(G){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(G||null))};var V=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],S);if(u==="accessor"){if(V===void 0)continue;if(V===null||typeof V!="object")throw new TypeError("Object expected");(y=o(V.get))&&(p.get=y),(y=o(V.set))&&(p.set=y),(y=o(V.init))&&i.unshift(y)}else(y=o(V))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function jse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Sj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(S){y(s[0][3],S)}}function l(N){N.value instanceof Fp?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Fj(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:Fp(e[i](o)),done:!1}:s?s(o):o}:s}}function wj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zE=="function"?zE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function Lj(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Pj(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&HE(t,e,n);return Kse(t,e),t}function kj(e){return e&&e.__esModule?e:{default:e}}function xj(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Cj(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function Uj(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 Mj(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Bj(e){function t(r){e.error=e.hasError?new Gse(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var fA,JE,HE,Kse,Gse,Qse,TA=ue(()=>{"use strict";m();T();h();fA=function(e,t){return fA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},fA(e,t)};JE=function(){return JE=Object.assign||function(t){for(var n,r=1,i=arguments.length;ro1,__assign:()=>WE,__asyncDelegator:()=>Xj,__asyncGenerator:()=>Wj,__asyncValues:()=>Zj,__await:()=>wp,__awaiter:()=>Gj,__classPrivateFieldGet:()=>r1,__classPrivateFieldIn:()=>s1,__classPrivateFieldSet:()=>i1,__createBinding:()=>ZE,__decorate:()=>$j,__disposeResources:()=>a1,__esDecorate:()=>Yse,__exportStar:()=>Yj,__extends:()=>Vj,__generator:()=>Qj,__importDefault:()=>n1,__importStar:()=>t1,__makeTemplateObject:()=>e1,__metadata:()=>Kj,__param:()=>qj,__propKey:()=>zse,__read:()=>NA,__rest:()=>jj,__runInitializers:()=>Jse,__setFunctionName:()=>Hse,__spread:()=>Jj,__spreadArray:()=>Hj,__spreadArrays:()=>zj,__values:()=>XE,default:()=>Zse});function Vj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function jj(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function qj(e,t){return function(n,r){t(n,r,e)}}function Yse(e,t,n,r,i,s){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var u=r.kind,l=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,N=!1,I=n.length-1;I>=0;I--){var S={};for(var C in r)S[C]=C==="access"?{}:r[C];for(var C in r.access)S.access[C]=r.access[C];S.addInitializer=function(G){if(N)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(G||null))};var V=(0,n[I])(u==="accessor"?{get:p.get,set:p.set}:p[l],S);if(u==="accessor"){if(V===void 0)continue;if(V===null||typeof V!="object")throw new TypeError("Object expected");(y=o(V.get))&&(p.get=y),(y=o(V.set))&&(p.set=y),(y=o(V.init))&&i.unshift(y)}else(y=o(V))&&(u==="field"?i.unshift(y):p[l]=y)}d&&Object.defineProperty(d,r.name,p),N=!0}function Jse(e,t,n){for(var r=arguments.length>2,i=0;i0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function NA(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(u){o={error:u}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function Jj(){for(var e=[],t=0;t1||u(N,I)})})}function u(N,I){try{l(r[N](I))}catch(S){y(s[0][3],S)}}function l(N){N.value instanceof wp?Promise.resolve(N.value.v).then(d,p):y(s[0][2],N)}function d(N){u("next",N)}function p(N){u("throw",N)}function y(N,I){N(I),s.shift(),s.length&&u(s[0][0],s[0][1])}}function Xj(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:wp(e[i](o)),done:!1}:s?s(o):o}:s}}function Zj(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof XE=="function"?XE(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(u,l){o=e[s](o),i(u,l,o.done,o.value)})}}function i(s,o,u,l){Promise.resolve(l).then(function(d){s({value:d,done:u})},o)}}function e1(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function t1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&ZE(t,e,n);return Wse(t,e),t}function n1(e){return e&&e.__esModule?e:{default:e}}function r1(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function i1(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function s1(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 o1(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function a1(e){function t(r){e.error=e.hasError?new Xse(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(s){return t(s),n()})}catch(s){t(s)}}if(e.hasError)throw e.error}return n()}var yA,WE,ZE,Wse,Xse,Zse,c1=ue(()=>{"use strict";m();T();h();yA=function(e,t){return yA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},yA(e,t)};WE=function(){return WE=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();h()});var Xh=j(qr=>{"use strict";m();T();h();Object.defineProperty(qr,"__esModule",{value:!0});qr.assertSome=qr.isSome=qr.compareNodes=qr.nodeToString=qr.compareStrings=qr.isValidPath=qr.isDocumentString=qr.asArray=void 0;var eoe=(Le(),Me(je)),toe=e=>Array.isArray(e)?e:e?[e]:[];qr.asArray=toe;var noe=/\.[a-z0-9]+$/i;function roe(e){if(typeof e!="string"||noe.test(e))return!1;try{return(0,eoe.parse)(e),!0}catch(t){}return!1}qr.isDocumentString=roe;var ioe=/[‘“!%^<>`]/;function soe(e){return typeof e=="string"&&!ioe.test(e)}qr.isValidPath=soe;function d1(e,t){return String(e)String(t)?1:0}qr.compareStrings=d1;function EA(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}qr.nodeToString=EA;function ooe(e,t,n){let r=EA(e),i=EA(t);return typeof n=="function"?n(r,i):d1(r,i)}qr.compareNodes=ooe;function aoe(e){return e!=null}qr.isSome=aoe;function uoe(e,t="Value should be something"){if(e==null)throw new Error(t)}qr.assertSome=uoe});var Zh=j(tg=>{"use strict";m();T();h();Object.defineProperty(tg,"__esModule",{value:!0});tg.inspect=void 0;var m1=3;function coe(e){return eg(e,[])}tg.inspect=coe;function eg(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return loe(e,t);default:return String(e)}}function p1(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function loe(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?p1(e)+` +`+f1(e.errors,t):p1(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(doe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:eg(r,n)}else if(Array.isArray(e))return f1(e,n);return poe(e,n)}function doe(e){return typeof e.toJSON=="function"}function poe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>m1?"["+foe(e)+"]":"{ "+n.map(([i,s])=>i+": "+eg(s,t)).join(", ")+" }"}function f1(e,t){if(e.length===0)return"[]";if(t.length>m1)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();h();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.relocatedError=Lp.createGraphQLError=void 0;var gA=(Le(),Me(je)),moe=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function hoe(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>moe.includes(t))}function IA(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&hoe(t.originalError)&&(t.originalError=IA(t.originalError.message,t.originalError)),gA.versionInfo.major>=17?new gA.GraphQLError(e,t):new gA.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)}Lp.createGraphQLError=IA;function Toe(e,t){return IA(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Lp.relocatedError=Toe});var eT=j(qs=>{"use strict";m();T();h();Object.defineProperty(qs,"__esModule",{value:!0});qs.hasOwnProperty=qs.promiseReduce=qs.isPromise=qs.isObjectLike=qs.isIterableObject=void 0;function yoe(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}qs.isIterableObject=yoe;function Noe(e){return typeof e=="object"&&e!==null}qs.isObjectLike=Noe;function h1(e){return(e==null?void 0:e.then)!=null}qs.isPromise=h1;function Eoe(e,t,n){let r=n;for(let i of e)r=h1(r)?r.then(s=>t(s,i)):t(r,i);return r}qs.promiseReduce=Eoe;function goe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}qs.hasOwnProperty=goe});var _A=j(ig=>{"use strict";m();T();h();Object.defineProperty(ig,"__esModule",{value:!0});ig.getArgumentValues=void 0;var vA=Zh(),$l=(Le(),Me(je)),rg=ng(),Ioe=eT();function voe(e,t,n={}){var o;let r={},s=((o=t.arguments)!=null?o:[]).reduce((u,l)=>Q(k({},u),{[l.name.value]:l}),{});for(let{name:u,type:l,defaultValue:d}of e.args){let p=s[u];if(!p){if(d!==void 0)r[u]=d;else if((0,$l.isNonNullType)(l))throw(0,rg.createGraphQLError)(`Argument "${u}" of required type "${(0,vA.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=p.value,N=y.kind===$l.Kind.NULL;if(y.kind===$l.Kind.VARIABLE){let S=y.name.value;if(n==null||!(0,Ioe.hasOwnProperty)(n,S)){if(d!==void 0)r[u]=d;else if((0,$l.isNonNullType)(l))throw(0,rg.createGraphQLError)(`Argument "${u}" of required type "${(0,vA.inspect)(l)}" was provided the variable "$${S}" which was not provided a runtime value.`,{nodes:[y]});continue}N=n[S]==null}if(N&&(0,$l.isNonNullType)(l))throw(0,rg.createGraphQLError)(`Argument "${u}" of non-null type "${(0,vA.inspect)(l)}" must not be null.`,{nodes:[y]});let I=(0,$l.valueFromAST)(y,l,n);if(I===void 0)throw(0,rg.createGraphQLError)(`Argument "${u}" has invalid value ${(0,$l.print)(y)}.`,{nodes:[y]});r[u]=I}return r}ig.getArgumentValues=voe});var bA=j(na=>{"use strict";m();T();h();Object.defineProperty(na,"__esModule",{value:!0});na.getDirective=na.getDirectives=na.getDirectiveInExtensions=na.getDirectivesInExtensions=void 0;var y1=_A();function N1(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}na.getDirectivesInExtensions=N1;function T1(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function E1(e,t,n=["directives"]){let r=n.reduce((s,o)=>s==null?s:s[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return T1(r,t);let i=[];for(let[s,o]of Object.entries(r))if(Array.isArray(o))for(let u of o)i.push({name:s,args:u});else i.push({name:s,args:o});return T1(i,t)}na.getDirectiveInExtensions=E1;function _oe(e,t,n=["directives"]){let r=N1(t,n);if(r!=null&&r.length>0)return r;let s=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives){let p=s[d.name.value];p&&u.push({name:d.name.value,args:(0,y1.getArgumentValues)(p,d)})}return u}na.getDirectives=_oe;function boe(e,t,n,r=["directives"]){let i=E1(t,n,r);if(i!=null)return i;let s=e&&e.getDirective?e.getDirective(n):void 0;if(s==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let u=[];for(let l of o)if(l.directives)for(let d of l.directives)d.name.value===n&&u.push((0,y1.getArgumentValues)(s,d));if(u.length)return u}na.getDirective=boe});var OA=j(sg=>{"use strict";m();T();h();Object.defineProperty(sg,"__esModule",{value:!0});sg.getFieldsWithDirectives=void 0;var Ooe=(Le(),Me(je));function Soe(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(s=>r.includes(s.kind));for(let s of i){let o=s.name.value;if(s.fields!=null){for(let u of s.fields)if(u.directives&&u.directives.length>0){let l=u.name.value,d=`${o}.${l}`,p=u.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((N,I)=>Q(k({},N),{[I.name.value]:(0,Ooe.valueFromASTUntyped)(I.value)}),{})}));n[d]=p}}}return n}sg.getFieldsWithDirectives=Soe});var g1=j(og=>{"use strict";m();T();h();Object.defineProperty(og,"__esModule",{value:!0});og.getArgumentsWithDirectives=void 0;var SA=(Le(),Me(je));function Doe(e){return e.kind===SA.Kind.OBJECT_TYPE_DEFINITION||e.kind===SA.Kind.OBJECT_TYPE_EXTENSION}function Aoe(e){var r;let t={},n=e.definitions.filter(Doe);for(let i of n)if(i.fields!=null)for(let s of i.fields){let o=(r=s.arguments)==null?void 0:r.filter(l=>{var d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let u=t[`${i.name.value}.${s.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((y,N)=>Q(k({},y),{[N.name.value]:(0,SA.valueFromASTUntyped)(N.value)}),{})}));u[l.name.value]=d}}return t}og.getArgumentsWithDirectives=Aoe});var DA=j(ag=>{"use strict";m();T();h();Object.defineProperty(ag,"__esModule",{value:!0});ag.getImplementingTypes=void 0;var Roe=(Le(),Me(je));function Foe(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let s=n[i];(0,Roe.isObjectType)(s)&&s.getInterfaces().find(u=>u.name===e)&&r.push(s.name)}return r}ag.getImplementingTypes=Foe});var RA=j(ug=>{"use strict";m();T();h();Object.defineProperty(ug,"__esModule",{value:!0});ug.astFromType=void 0;var woe=Zh(),ql=(Le(),Me(je));function AA(e){if((0,ql.isNonNullType)(e)){let t=AA(e.ofType);if(t.kind===ql.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,woe.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:ql.Kind.NON_NULL_TYPE,type:t}}else if((0,ql.isListType)(e))return{kind:ql.Kind.LIST_TYPE,type:AA(e.ofType)};return{kind:ql.Kind.NAMED_TYPE,name:{kind:ql.Kind.NAME,value:e.name}}}ug.astFromType=AA});var lg=j(cg=>{"use strict";m();T();h();Object.defineProperty(cg,"__esModule",{value:!0});cg.astFromValueUntyped=void 0;var ra=(Le(),Me(je));function FA(e){if(e===null)return{kind:ra.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=FA(n);r!=null&&t.push(r)}return{kind:ra.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=FA(r);i&&t.push({kind:ra.Kind.OBJECT_FIELD,name:{kind:ra.Kind.NAME,value:n},value:i})}return{kind:ra.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ra.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ra.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Loe.test(t)?{kind:ra.Kind.INT,value:t}:{kind:ra.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ra.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}cg.astFromValueUntyped=FA;var Loe=/^-?(?:0|[1-9][0-9]*)$/});var v1=j(dg=>{"use strict";m();T();h();Object.defineProperty(dg,"__esModule",{value:!0});dg.astFromValue=void 0;var Poe=Zh(),hs=(Le(),Me(je)),koe=lg(),I1=eT();function tT(e,t){if((0,hs.isNonNullType)(t)){let n=tT(e,t.ofType);return(n==null?void 0:n.kind)===hs.Kind.NULL?null:n}if(e===null)return{kind:hs.Kind.NULL};if(e===void 0)return null;if((0,hs.isListType)(t)){let n=t.ofType;if((0,I1.isIterableObject)(e)){let r=[];for(let i of e){let s=tT(i,n);s!=null&&r.push(s)}return{kind:hs.Kind.LIST,values:r}}return tT(e,n)}if((0,hs.isInputObjectType)(t)){if(!(0,I1.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=tT(e[r.name],r.type);i&&n.push({kind:hs.Kind.OBJECT_FIELD,name:{kind:hs.Kind.NAME,value:r.name},value:i})}return{kind:hs.Kind.OBJECT,fields:n}}if((0,hs.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,hs.isEnumType)(t)?{kind:hs.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&xoe.test(n)?{kind:hs.Kind.INT,value:n}:(0,koe.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,Poe.inspect)(t))}dg.astFromValue=tT;var xoe=/^-?(?:0|[1-9][0-9]*)$/});var _1=j(pg=>{"use strict";m();T();h();Object.defineProperty(pg,"__esModule",{value:!0});pg.getDescriptionNode=void 0;var Coe=(Le(),Me(je));function Uoe(e){var t;if((t=e.astNode)!=null&&t.description)return Q(k({},e.astNode.description),{block:!0});if(e.description)return{kind:Coe.Kind.STRING,value:e.description,block:!0}}pg.getDescriptionNode=Uoe});var Pp=j(pi=>{"use strict";m();T();h();Object.defineProperty(pi,"__esModule",{value:!0});pi.memoize2of5=pi.memoize2of4=pi.memoize5=pi.memoize4=pi.memoize3=pi.memoize2=pi.memoize1=void 0;function Moe(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}pi.memoize1=Moe;function Boe(e){let t=new WeakMap;return function(r,i){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let u=e(r,i);return s.set(i,u),u}let o=s.get(i);if(o===void 0){let u=e(r,i);return s.set(i,u),u}return o}}pi.memoize2=Boe;function Voe(e){let t=new WeakMap;return function(r,i,s){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let d=new WeakMap;o.set(i,d);let p=e(r,i,s);return d.set(s,p),p}let u=o.get(i);if(!u){u=new WeakMap,o.set(i,u);let d=e(r,i,s);return u.set(s,d),d}let l=u.get(s);if(l===void 0){let d=e(r,i,s);return u.set(s,d),d}return l}}pi.memoize3=Voe;function joe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let y=new WeakMap;u.set(i,y);let N=new WeakMap;y.set(s,N);let I=e(r,i,s,o);return N.set(o,I),I}let l=u.get(i);if(!l){l=new WeakMap,u.set(i,l);let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let d=l.get(s);if(!d){let y=new WeakMap;l.set(s,y);let N=e(r,i,s,o);return y.set(o,N),N}let p=d.get(o);if(p===void 0){let y=e(r,i,s,o);return d.set(o,y),y}return p}}pi.memoize4=joe;function $oe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let I=new WeakMap;l.set(i,I);let S=new WeakMap;I.set(s,S);let C=new WeakMap;S.set(o,C);let V=e(r,i,s,o,u);return C.set(u,V),V}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let I=new WeakMap;d.set(s,I);let S=new WeakMap;I.set(o,S);let C=e(r,i,s,o,u);return S.set(u,C),C}let p=d.get(s);if(!p){p=new WeakMap,d.set(s,p);let I=new WeakMap;p.set(o,I);let S=e(r,i,s,o,u);return I.set(u,S),S}let y=p.get(o);if(!y){y=new WeakMap,p.set(o,y);let I=e(r,i,s,o,u);return y.set(u,I),I}let N=y.get(u);if(N===void 0){let I=e(r,i,s,o,u);return y.set(u,I),I}return N}}pi.memoize5=$oe;function qoe(e){let t=new WeakMap;return function(r,i,s,o){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let d=e(r,i,s,o);return u.set(i,d),d}let l=u.get(i);if(l===void 0){let d=e(r,i,s,o);return u.set(i,d),d}return l}}pi.memoize2of4=qoe;function Koe(e){let t=new WeakMap;return function(r,i,s,o,u){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let p=e(r,i,s,o,u);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,s,o,u);return l.set(i,p),p}return d}}pi.memoize2of5=Koe});var nT=j(Ts=>{"use strict";m();T();h();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.getRootTypeMap=Ts.getRootTypes=Ts.getRootTypeNames=Ts.getDefinedRootType=void 0;var Goe=ng(),wA=Pp();function Qoe(e,t,n){let i=(0,Ts.getRootTypeMap)(e).get(t);if(i==null)throw(0,Goe.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ts.getDefinedRootType=Qoe;Ts.getRootTypeNames=(0,wA.memoize1)(function(t){let n=(0,Ts.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ts.getRootTypes=(0,wA.memoize1)(function(t){let n=(0,Ts.getRootTypeMap)(t);return new Set(n.values())});Ts.getRootTypeMap=(0,wA.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n})});var CA=j(Mt=>{"use strict";m();T();h();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.makeDirectiveNodes=Mt.makeDirectiveNode=Mt.makeDeprecatedDirective=Mt.astFromEnumValue=Mt.astFromInputField=Mt.astFromField=Mt.astFromScalarType=Mt.astFromEnumType=Mt.astFromInputObjectType=Mt.astFromUnionType=Mt.astFromInterfaceType=Mt.astFromObjectType=Mt.astFromArg=Mt.getDeprecatableDirectiveNodes=Mt.getDirectiveNodes=Mt.astFromDirective=Mt.astFromSchema=Mt.printSchemaWithDirectives=Mt.getDocumentNodeFromSchema=void 0;var bt=(Le(),Me(je)),Kl=RA(),LA=v1(),Yoe=lg(),Ks=_1(),PA=bA(),Joe=Xh(),zoe=nT();function b1(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=O1(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)(0,bt.isSpecifiedDirective)(u)||s.push(S1(u,e,n));for(let u in r){let l=r[u],d=(0,bt.isSpecifiedScalarType)(l),p=(0,bt.isIntrospectionType)(l);if(!(d||p))if((0,bt.isObjectType)(l))s.push(D1(l,e,n));else if((0,bt.isInterfaceType)(l))s.push(A1(l,e,n));else if((0,bt.isUnionType)(l))s.push(R1(l,e,n));else if((0,bt.isInputObjectType)(l))s.push(F1(l,e,n));else if((0,bt.isEnumType)(l))s.push(w1(l,e,n));else if((0,bt.isScalarType)(l))s.push(L1(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:bt.Kind.DOCUMENT,definitions:s}}Mt.getDocumentNodeFromSchema=b1;function Hoe(e,t={}){let n=b1(e,t);return(0,bt.print)(n)}Mt.printSchemaWithDirectives=Hoe;function O1(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,zoe.getRootTypeMap)(e);for(let[d,p]of n){let y=i.get(d);if(y!=null){let N=(0,Kl.astFromType)(y);p!=null?p.type=N:n.set(d,{kind:bt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:N})}}let s=[...n.values()].filter(Joe.isSome),o=Gl(e,e,t);if(!s.length&&!o.length)return null;let u={kind:s!=null?bt.Kind.SCHEMA_DEFINITION:bt.Kind.SCHEMA_EXTENSION,operationTypes:s,directives:o},l=(0,Ks.getDescriptionNode)(e);return l&&(u.description=l),u}Mt.astFromSchema=O1;function S1(e,t,n){var r,i;return{kind:bt.Kind.DIRECTIVE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(s=>kA(s,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(s=>({kind:bt.Kind.NAME,value:s})))||[]}}Mt.astFromDirective=S1;function Gl(e,t,n){let r=(0,PA.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=fg(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}Mt.getDirectiveNodes=Gl;function iT(e,t,n){var u,l;let r=[],i=null,s=(0,PA.getDirectivesInExtensions)(e,n),o;return s!=null?o=fg(t,s):o=(u=e.astNode)==null?void 0:u.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=x1(e.deprecationReason)),i==null?r:[i].concat(r)}Mt.getDeprecatableDirectiveNodes=iT;function kA(e,t,n){var r;return{kind:bt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},type:(0,Kl.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,LA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:iT(e,t,n)}}Mt.astFromArg=kA;function D1(e,t,n){return{kind:bt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>xA(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Kl.astFromType)(r)),directives:Gl(e,t,n)}}Mt.astFromObjectType=D1;function A1(e,t,n){let r={kind:bt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>xA(i,t,n)),directives:Gl(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Kl.astFromType)(i))),r}Mt.astFromInterfaceType=A1;function R1(e,t,n){return{kind:bt.Kind.UNION_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:Gl(e,t,n),types:e.getTypes().map(r=>(0,Kl.astFromType)(r))}}Mt.astFromUnionType=R1;function F1(e,t,n){return{kind:bt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>P1(r,t,n)),directives:Gl(e,t,n)}}Mt.astFromInputObjectType=F1;function w1(e,t,n){return{kind:bt.Kind.ENUM_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>k1(r,t,n)),directives:Gl(e,t,n)}}Mt.astFromEnumType=w1;function L1(e,t,n){var o;let r=(0,PA.getDirectivesInExtensions)(e,n),i=r?fg(t,r):((o=e.astNode)==null?void 0:o.directives)||[],s=e.specifiedByUrl||e.specifiedByURL;if(s&&!i.some(u=>u.name.value==="specifiedBy")){let u={url:s};i.push(rT("specifiedBy",u))}return{kind:bt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:i}}Mt.astFromScalarType=L1;function xA(e,t,n){return{kind:bt.Kind.FIELD_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},arguments:e.args.map(r=>kA(r,t,n)),type:(0,Kl.astFromType)(e.type),directives:iT(e,t,n)}}Mt.astFromField=xA;function P1(e,t,n){var r;return{kind:bt.Kind.INPUT_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},type:(0,Kl.astFromType)(e.type),directives:iT(e,t,n),defaultValue:(r=(0,LA.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Mt.astFromInputField=P1;function k1(e,t,n){return{kind:bt.Kind.ENUM_VALUE_DEFINITION,description:(0,Ks.getDescriptionNode)(e),name:{kind:bt.Kind.NAME,value:e.name},directives:iT(e,t,n)}}Mt.astFromEnumValue=k1;function x1(e){return rT("deprecated",{reason:e},bt.GraphQLDeprecatedDirective)}Mt.makeDeprecatedDirective=x1;function rT(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=(0,LA.astFromValue)(o,i.type);u&&r.push({kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=(0,Yoe.astFromValueUntyped)(s);o&&r.push({kind:bt.Kind.ARGUMENT,name:{kind:bt.Kind.NAME,value:i},value:o})}return{kind:bt.Kind.DIRECTIVE,name:{kind:bt.Kind.NAME,value:e},arguments:r}}Mt.makeDirectiveNode=rT;function fg(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(rT(r,o,s));else n.push(rT(r,i,s))}return n}Mt.makeDirectiveNodes=fg});var U1=j(kp=>{"use strict";m();T();h();Object.defineProperty(kp,"__esModule",{value:!0});kp.createDefaultRules=kp.validateGraphQlDocuments=void 0;var sT=(Le(),Me(je));function Woe(e,t,n=C1()){var u;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===sT.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let s={kind:sT.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,sT.validate)(e,s,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` + at ${(u=l.source)==null?void 0:u.name}:${d.line}:${d.column}`;return o}kp.validateGraphQlDocuments=Woe;function C1(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return sT.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),sT.specifiedRules.filter(t=>!e.includes(t.name))}kp.createDefaultRules=C1});var M1=j(mg=>{"use strict";m();T();h();Object.defineProperty(mg,"__esModule",{value:!0});mg.parseGraphQLJSON=void 0;var Xoe=(Le(),Me(je));function Zoe(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function eae(e){return JSON.parse(Zoe(e))}function tae(e,t,n){let r=eae(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Xoe.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}mg.parseGraphQLJSON=tae});var MA=j(pr=>{"use strict";m();T();h();Object.defineProperty(pr,"__esModule",{value:!0});pr.getBlockStringIndentation=pr.dedentBlockStringValue=pr.getLeadingCommentBlock=pr.getComment=pr.getDescription=pr.printWithComments=pr.printComment=pr.pushComment=pr.collectComment=pr.resetComments=void 0;var $1=(Le(),Me(je)),nae=80,xp={};function rae(){xp={}}pr.resetComments=rae;function iae(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(oT(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)oT(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(oT(r,t,r.name.value),cae(r)&&r.arguments)for(let i of r.arguments)oT(i,t,r.name.value,i.name.value)}break}}pr.collectComment=iae;function oT(e,t,n,r){let i=UA(e);if(typeof i!="string"||i.length===0)return;let s=[t];n&&(s.push(n),r&&s.push(r));let o=s.join(".");xp[o]||(xp[o]=[]),xp[o].push(i)}pr.pushComment=oT;function q1(e){return` # `+e.replace(/\n/g,` -# `)}pr.printComment=F1;function qe(e,t){return e?e.filter(n=>n).join(t||""):""}function S1(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!=null?t:!1}function Goe(e){return(t,n,r,i,s)=>{var p;let o=[],u=i.reduce((y,N)=>(["fields","arguments","values"].includes(N)&&y.name&&o.push(y.name.value),y[N]),s[0]),l=[...o,(p=u==null?void 0:u.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&Rp[l]&&d.push(...Rp[l]),qe([...d.map(F1),t.description,e(t,n,r,i,s)],` -`)}}function tT(e){return e&&` ${e.replace(/\n/g,` +# `)}pr.printComment=q1;function qe(e,t){return e?e.filter(n=>n).join(t||""):""}function B1(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!=null?t:!1}function sae(e){return(t,n,r,i,s)=>{var p;let o=[],u=i.reduce((y,N)=>(["fields","arguments","values"].includes(N)&&y.name&&o.push(y.name.value),y[N]),s[0]),l=[...o,(p=u==null?void 0:u.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&xp[l]&&d.push(...xp[l]),qe([...d.map(q1),t.description,e(t,n,r,i,s)],` +`)}}function aT(e){return e&&` ${e.replace(/\n/g,` `)}`}function Io(e){return e&&e.length!==0?`{ -${tT(qe(e,` +${aT(qe(e,` `))} -}`:""}function tr(e,t,n){return t?e+t+(n||""):""}function Qoe(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +}`:""}function nr(e,t,n){return t?e+t+(n||""):""}function oae(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` `)===-1?`"""${n.replace(/"$/,`" `)}"""`:`""" -${t?n:tT(n)} -"""`}var D1={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` +${t?n:aT(n)} +"""`}var V1={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=tr("(",qe(e.variableDefinitions,", "),")");return qe([e.operation,qe([e.name,t]),qe(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+tr(" = ",n)+tr(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>Io(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=tr("",e,": ")+t,o=s+tr("(",qe(n,", "),")");return o.length>$oe&&(o=s+tr(`( -`,tT(qe(n,` +`)},OperationDefinition:{leave:e=>{let t=nr("(",qe(e.variableDefinitions,", "),")");return qe([e.operation,qe([e.name,t]),qe(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+nr(" = ",n)+nr(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>Io(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let s=nr("",e,": ")+t,o=s+nr("(",qe(n,", "),")");return o.length>nae&&(o=s+nr(`( +`,aT(qe(n,` `)),` -)`)),qe([o,qe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+tr(" ",qe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>qe(["...",tr("on ",e),qe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${tr("(",qe(n,", "),")")} on ${t} ${tr("",qe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Qoe(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+tr("(",qe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>qe(["schema",qe(e," "),Io(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>qe(["scalar",e,qe(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["type",e,tr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(S1(t)?tr(`( -`,tT(qe(t,` +)`)),qe([o,qe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+nr(" ",qe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>qe(["...",nr("on ",e),qe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${nr("(",qe(n,", "),")")} on ${t} ${nr("",qe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?oae(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+nr("(",qe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>qe(["schema",qe(e," "),Io(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>qe(["scalar",e,qe(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["type",e,nr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(B1(t)?nr(`( +`,aT(qe(t,` `)),` -)`):tr("(",qe(t,", "),")"))+": "+n+tr(" ",qe(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>qe([e+": "+t,tr("= ",n),qe(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["interface",e,tr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>qe(["union",e,qe(t," "),tr("= ",qe(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>qe(["enum",e,qe(t," "),Io(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>qe([e,qe(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>qe(["input",e,qe(t," "),Io(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(S1(t)?tr(`( -`,tT(qe(t,` +)`):nr("(",qe(t,", "),")"))+": "+n+nr(" ",qe(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>qe([e+": "+t,nr("= ",n),qe(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["interface",e,nr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>qe(["union",e,qe(t," "),nr("= ",qe(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>qe(["enum",e,qe(t," "),Io(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>qe([e,qe(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>qe(["input",e,qe(t," "),Io(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(B1(t)?nr(`( +`,aT(qe(t,` `)),` -)`):tr("(",qe(t,", "),")"))+(n?" repeatable":"")+" on "+qe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>qe(["extend schema",qe(e," "),Io(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>qe(["extend scalar",e,qe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend type",e,tr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend interface",e,tr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>qe(["extend union",e,qe(t," "),tr("= ",qe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>qe(["extend enum",e,qe(t," "),Io(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>qe(["extend input",e,qe(t," "),Io(n)]," ")}},Yoe=Object.keys(D1).reduce((e,t)=>G(k({},e),{[t]:{leave:Goe(D1[t].leave)}}),{});function Joe(e){return(0,R1.visit)(e,Yoe)}pr.printWithComments=Joe;function zoe(e){return e.kind==="FieldDefinition"}function Hoe(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return RA(e)}pr.getDescription=Hoe;function RA(e){let t=w1(e);if(t!==void 0)return L1(` -${t}`)}pr.getComment=RA;function w1(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===R1.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` -`):void 0}pr.getLeadingCommentBlock=w1;function L1(e){let t=e.split(/\r\n|[\n\r]/g),n=P1(t);if(n!==0)for(let r=1;r0&&A1(t[0]);)t.shift();for(;t.length>0&&A1(t[t.length-1]);)t.pop();return t.join(` -`)}pr.dedentBlockStringValue=L1;function P1(e){let t=null;for(let n=1;n{"use strict";m();T();h();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.isDescribable=Sc.transformCommentsToDescriptions=Sc.parseGraphQLSDL=void 0;var Gs=(Le(),Me(je)),C1=FA();function Woe(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=x1(t,n),n.noLocation&&(r=(0,Gs.parse)((0,Gs.print)(r),n))):r=(0,Gs.parse)(new Gs.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Gs.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}Sc.parseGraphQLSDL=Woe;function x1(e,t={}){let n=(0,Gs.parse)(e,G(k({},t),{noLocation:!1}));return(0,Gs.visit)(n,{leave:i=>{if(U1(i)){let s=(0,C1.getLeadingCommentBlock)(i);if(s!==void 0){let o=(0,C1.dedentBlockStringValue)(` +)`):nr("(",qe(t,", "),")"))+(n?" repeatable":"")+" on "+qe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>qe(["extend schema",qe(e," "),Io(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>qe(["extend scalar",e,qe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend type",e,nr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend interface",e,nr("implements ",qe(t," & ")),qe(n," "),Io(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>qe(["extend union",e,qe(t," "),nr("= ",qe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>qe(["extend enum",e,qe(t," "),Io(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>qe(["extend input",e,qe(t," "),Io(n)]," ")}},aae=Object.keys(V1).reduce((e,t)=>Q(k({},e),{[t]:{leave:sae(V1[t].leave)}}),{});function uae(e){return(0,$1.visit)(e,aae)}pr.printWithComments=uae;function cae(e){return e.kind==="FieldDefinition"}function lae(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return UA(e)}pr.getDescription=lae;function UA(e){let t=K1(e);if(t!==void 0)return G1(` +${t}`)}pr.getComment=UA;function K1(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===$1.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` +`):void 0}pr.getLeadingCommentBlock=K1;function G1(e){let t=e.split(/\r\n|[\n\r]/g),n=Q1(t);if(n!==0)for(let r=1;r0&&j1(t[0]);)t.shift();for(;t.length>0&&j1(t[t.length-1]);)t.pop();return t.join(` +`)}pr.dedentBlockStringValue=G1;function Q1(e){let t=null;for(let n=1;n{"use strict";m();T();h();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.isDescribable=Lc.transformCommentsToDescriptions=Lc.parseGraphQLSDL=void 0;var Gs=(Le(),Me(je)),J1=MA();function dae(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=z1(t,n),n.noLocation&&(r=(0,Gs.parse)((0,Gs.print)(r),n))):r=(0,Gs.parse)(new Gs.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Gs.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}Lc.parseGraphQLSDL=dae;function z1(e,t={}){let n=(0,Gs.parse)(e,Q(k({},t),{noLocation:!1}));return(0,Gs.visit)(n,{leave:i=>{if(H1(i)){let s=(0,J1.getLeadingCommentBlock)(i);if(s!==void 0){let o=(0,J1.dedentBlockStringValue)(` `+s),u=o.includes(` -`);return i.description?G(k({},i),{description:G(k({},i.description),{value:i.description.value+` -`+o,block:!0})}):G(k({},i),{description:{kind:Gs.Kind.STRING,value:o,block:u}})}}}})}Sc.transformCommentsToDescriptions=x1;function U1(e){return(0,Gs.isTypeSystemDefinitionNode)(e)||e.kind===Gs.Kind.FIELD_DEFINITION||e.kind===Gs.Kind.INPUT_VALUE_DEFINITION||e.kind===Gs.Kind.ENUM_VALUE_DEFINITION}Sc.isDescribable=U1});var Q1=j(lg=>{"use strict";m();T();h();Object.defineProperty(lg,"__esModule",{value:!0});lg.buildOperationNodeForField=void 0;var Ot=(Le(),Me(je)),$1=Hh(),PA=[],cg=new Map;function q1(e){PA.push(e)}function B1(){PA=[]}function V1(){cg=new Map}function Xoe({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){B1(),V1();let d=(0,$1.getRootTypeNames)(e),p=Zoe({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:s||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...PA],B1(),V1(),p}lg.buildOperationNodeForField=Xoe;function Zoe({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:d}){let p=(0,$1.getDefinedRootType)(e,n),y=p.getFields()[t],N=`${t}_${n}`;if(y.args)for(let I of y.args){let O=I.name;(!u||u.includes(O))&&q1(K1(I,O))}return{kind:Ot.Kind.OPERATION_DEFINITION,operation:n,name:{kind:Ot.Kind.NAME,value:N},variableDefinitions:[],selectionSet:{kind:Ot.Kind.SELECTION_SET,selections:[G1({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:s,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function LA({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){if(!(typeof N=="boolean"&&p>u)){if((0,Ot.isUnionType)(t)){let O=t.getTypes();return{kind:Ot.Kind.SELECTION_SET,selections:O.filter(x=>!wA([...s,x],{depth:l})).map(x=>({kind:Ot.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:x.name}},selectionSet:LA({parent:t,type:x,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(x=>{var V,K;return((K=(V=x==null?void 0:x.selectionSet)==null?void 0:V.selections)==null?void 0:K.length)>0})}}if((0,Ot.isInterfaceType)(t)){let O=Object.values(d.getTypeMap()).filter(x=>(0,Ot.isObjectType)(x)&&x.getInterfaces().includes(t));return{kind:Ot.Kind.SELECTION_SET,selections:O.filter(x=>!wA([...s,x],{depth:l})).map(x=>({kind:Ot.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:x.name}},selectionSet:LA({parent:t,type:x,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(x=>{var V,K;return((K=(V=x==null?void 0:x.selectionSet)==null?void 0:V.selections)==null?void 0:K.length)>0})}}if((0,Ot.isObjectType)(t)&&!I.has(t.name)){let O=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),x=n.includes(t.name);if(!r&&x&&!O)return{kind:Ot.Kind.SELECTION_SET,selections:[{kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:"id"}}]};let V=t.getFields();return{kind:Ot.Kind.SELECTION_SET,selections:Object.keys(V).filter(K=>!wA([...s,(0,Ot.getNamedType)(V[K].type)],{depth:l})).map(K=>{let re=typeof N=="object"?N[K]:!0;return re?G1({type:t,field:V[K],models:n,path:[...i,K],ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:re,rootTypeNames:I}):null}).filter(K=>{var re,se;return K==null?!1:"selectionSet"in K?!!((se=(re=K.selectionSet)==null?void 0:re.selections)!=null&&se.length):!0})}}}}function K1(e,t){function n(r){return(0,Ot.isListType)(r)?{kind:Ot.Kind.LIST_TYPE,type:n(r.ofType)}:(0,Ot.isNonNullType)(r)?{kind:Ot.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:r.name}}}return{kind:Ot.Kind.VARIABLE_DEFINITION,variable:{kind:Ot.Kind.VARIABLE,name:{kind:Ot.Kind.NAME,value:t||e.name}},type:n(e.type)}}function j1(e,t){return[...t,e].join("_")}function G1({type:e,field:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){let O=(0,Ot.getNamedType)(t.type),x=[],V=!1;if(t.args&&t.args.length&&(x=t.args.map(fe=>{let he=j1(fe.name,i);return y&&!y.includes(he)?((0,Ot.isNonNullType)(fe.type)&&(V=!0),null):(r||q1(K1(fe,he)),{kind:Ot.Kind.ARGUMENT,name:{kind:Ot.Kind.NAME,value:fe.name},value:{kind:Ot.Kind.VARIABLE,name:{kind:Ot.Kind.NAME,value:j1(fe.name,i)}}})}).filter(Boolean)),V)return null;let K=[...i,t.name],re=K.join("."),se=t.name;return cg.has(re)&&cg.get(re)!==t.type.toString()&&(se+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),cg.set(re,t.type.toString()),!(0,Ot.isScalarType)(O)&&!(0,Ot.isEnumType)(O)?G(k({kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:Ot.Kind.NAME,value:se}}),{selectionSet:LA({parent:e,type:O,models:n,firstCall:r,path:K,ancestors:[...s,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:N,rootTypeNames:I})||void 0,arguments:x}):G(k({kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:Ot.Kind.NAME,value:se}}),{arguments:x})}function wA(e,t={depth:1}){let n=e[e.length-1];return(0,Ot.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var J1=j(dg=>{"use strict";m();T();h();Object.defineProperty(dg,"__esModule",{value:!0});dg.DirectiveLocation=void 0;var Y1;(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"})(Y1||(dg.DirectiveLocation=Y1={}))});var Vl=j(pg=>{"use strict";m();T();h();Object.defineProperty(pg,"__esModule",{value:!0});pg.MapperKind=void 0;var z1;(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"})(z1||(pg.MapperKind=z1={}))});var kA=j(fg=>{"use strict";m();T();h();Object.defineProperty(fg,"__esModule",{value:!0});fg.getObjectTypeFromTypeMap=void 0;var eae=(Le(),Me(je));function tae(e,t){if(t){let n=e[t.name];if((0,eae.isObjectType)(n))return n}}fg.getObjectTypeFromTypeMap=tae});var UA=j(ia=>{"use strict";m();T();h();Object.defineProperty(ia,"__esModule",{value:!0});ia.getBuiltInForStub=ia.isNamedStub=ia.createStub=ia.createNamedStub=void 0;var Kr=(Le(),Me(je));function CA(e,t){let n;return t==="object"?n=Kr.GraphQLObjectType:t==="interface"?n=Kr.GraphQLInterfaceType:n=Kr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Kr.GraphQLString}}})}ia.createNamedStub=CA;function xA(e,t){switch(e.kind){case Kr.Kind.LIST_TYPE:return new Kr.GraphQLList(xA(e.type,t));case Kr.Kind.NON_NULL_TYPE:return new Kr.GraphQLNonNull(xA(e.type,t));default:return t==="output"?CA(e.name.value,"object"):CA(e.name.value,"input")}}ia.createStub=xA;function nae(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ia.isNamedStub=nae;function rae(e){switch(e.name){case Kr.GraphQLInt.name:return Kr.GraphQLInt;case Kr.GraphQLFloat.name:return Kr.GraphQLFloat;case Kr.GraphQLString.name:return Kr.GraphQLString;case Kr.GraphQLBoolean.name:return Kr.GraphQLBoolean;case Kr.GraphQLID.name:return Kr.GraphQLID;default:return e}}ia.getBuiltInForStub=rae});var hg=j(mg=>{"use strict";m();T();h();Object.defineProperty(mg,"__esModule",{value:!0});mg.rewireTypes=void 0;var Sr=(Le(),Me(je)),H1=UA();function iae(e,t){let n=Object.create(null);for(let N in e)n[N]=e[N];let r=Object.create(null);for(let N in n){let I=n[N];if(I==null||N.startsWith("__"))continue;let O=I.name;if(!O.startsWith("__")){if(r[O]!=null){console.warn(`Duplicate schema type name ${O} found; keeping the existing one found in the schema`);continue}r[O]=I}}for(let N in r)r[N]=u(r[N]);let i=t.map(N=>s(N));return{typeMap:r,directives:i};function s(N){if((0,Sr.isSpecifiedDirective)(N))return N;let I=N.toConfig();return I.args=o(I.args),new Sr.GraphQLDirective(I)}function o(N){let I={};for(let O in N){let x=N[O],V=y(x.type);V!=null&&(x.type=V,I[O]=x)}return I}function u(N){if((0,Sr.isObjectType)(N)){let I=N.toConfig(),O=G(k({},I),{fields:()=>l(I.fields),interfaces:()=>p(I.interfaces)});return new Sr.GraphQLObjectType(O)}else if((0,Sr.isInterfaceType)(N)){let I=N.toConfig(),O=G(k({},I),{fields:()=>l(I.fields)});return"interfaces"in O&&(O.interfaces=()=>p(I.interfaces)),new Sr.GraphQLInterfaceType(O)}else if((0,Sr.isUnionType)(N)){let I=N.toConfig(),O=G(k({},I),{types:()=>p(I.types)});return new Sr.GraphQLUnionType(O)}else if((0,Sr.isInputObjectType)(N)){let I=N.toConfig(),O=G(k({},I),{fields:()=>d(I.fields)});return new Sr.GraphQLInputObjectType(O)}else if((0,Sr.isEnumType)(N)){let I=N.toConfig();return new Sr.GraphQLEnumType(I)}else if((0,Sr.isScalarType)(N)){if((0,Sr.isSpecifiedScalarType)(N))return N;let I=N.toConfig();return new Sr.GraphQLScalarType(I)}throw new Error(`Unexpected schema type: ${N}`)}function l(N){let I={};for(let O in N){let x=N[O],V=y(x.type);V!=null&&x.args&&(x.type=V,x.args=o(x.args),I[O]=x)}return I}function d(N){let I={};for(let O in N){let x=N[O],V=y(x.type);V!=null&&(x.type=V,I[O]=x)}return I}function p(N){let I=[];for(let O of N){let x=y(O);x!=null&&I.push(x)}return I}function y(N){if((0,Sr.isListType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLList(I):null}else if((0,Sr.isNonNullType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLNonNull(I):null}else if((0,Sr.isNamedType)(N)){let I=n[N.name];return I===void 0&&(I=(0,H1.isNamedStub)(N)?(0,H1.getBuiltInForStub)(N):u(N),r[I.name]=n[N.name]=I),I!=null?r[I.name]:null}return null}}mg.rewireTypes=iae});var MA=j(sa=>{"use strict";m();T();h();Object.defineProperty(sa,"__esModule",{value:!0});sa.parseInputValueLiteral=sa.parseInputValue=sa.serializeInputValue=sa.transformInputValue=void 0;var Tg=(Le(),Me(je)),sae=Qh();function Fp(e,t,n=null,r=null){if(t==null)return t;let i=(0,Tg.getNullableType)(e);if((0,Tg.isLeafType)(i))return n!=null?n(i,t):t;if((0,Tg.isListType)(i))return(0,sae.asArray)(t).map(s=>Fp(i.ofType,s,n,r));if((0,Tg.isInputObjectType)(i)){let s=i.getFields(),o={};for(let u in t){let l=s[u];l!=null&&(o[u]=Fp(l.type,t[u],n,r))}return r!=null?r(i,o):o}}sa.transformInputValue=Fp;function oae(e,t){return Fp(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}sa.serializeInputValue=oae;function aae(e,t){return Fp(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}sa.parseInputValue=aae;function uae(e,t){return Fp(e,t,(n,r)=>n.parseLiteral(r,{}))}sa.parseInputValueLiteral=uae});var Pp=j(Lp=>{"use strict";m();T();h();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.correctASTNodes=Lp.mapSchema=void 0;var yt=(Le(),Me(je)),wp=kA(),zt=Vl(),cae=hg(),W1=MA();function lae(e,t={}){let n=e$(Z1(BA(X1(dae(BA(X1(e.getTypeMap(),e,W1.serializeInputValue),e,t,u=>(0,yt.isLeafType)(u)),e,t),e,W1.parseInputValue),e,t,u=>!(0,yt.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=pae(r,e,t),{typeMap:s,directives:o}=(0,cae.rewireTypes)(n,i);return new yt.GraphQLSchema(G(k({},e.toConfig()),{query:(0,wp.getObjectTypeFromTypeMap)(s,(0,wp.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,wp.getObjectTypeFromTypeMap)(s,(0,wp.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,wp.getObjectTypeFromTypeMap)(s,(0,wp.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(s),directives:o}))}Lp.mapSchema=lae;function BA(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")){let o=e[s];if(o==null||!r(o)){i[s]=o;continue}let u=mae(t,n,s);if(u==null){i[s]=o;continue}let l=u(o,t);if(l===void 0){i[s]=o;continue}i[s]=l}return i}function dae(e,t,n){let r=Eae(n);return r?BA(e,t,{[zt.MapperKind.ENUM_TYPE]:i=>{let s=i.toConfig(),o=s.values,u={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)u[l]=d;else if(Array.isArray(p)){let[y,N]=p;u[y]=N===void 0?d:N}else p!==null&&(u[l]=p)}return nT(new yt.GraphQLEnumType(G(k({},s),{values:u})))}},i=>(0,yt.isEnumType)(i)):e}function X1(e,t,n){let r=e$(e,t,{[zt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let s=yg(e,i.type);if(s!=null)return G(k({},i),{defaultValue:n(s,i.defaultValue)})}});return Z1(r,t,{[zt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let s=yg(r,i.type);if(s!=null)return G(k({},i),{defaultValue:n(s,i.defaultValue)})}})}function yg(e,t){if((0,yt.isListType)(t)){let n=yg(e,t.ofType);return n!=null?new yt.GraphQLList(n):null}else if((0,yt.isNonNullType)(t)){let n=yg(e,t.ofType);return n!=null?new yt.GraphQLNonNull(n):null}else if((0,yt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function Z1(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)&&!(0,yt.isInputObjectType)(s)){r[i]=s;continue}let o=Tae(t,n,i);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=o(y,p,i,t);if(N===void 0)d[p]=y;else if(Array.isArray(N)){let[I,O]=N;O.astNode!=null&&(O.astNode=G(k({},O.astNode),{name:G(k({},O.astNode.name),{value:I})})),d[I]=O===void 0?y:O}else N!==null&&(d[p]=N)}(0,yt.isObjectType)(s)?r[i]=nT(new yt.GraphQLObjectType(G(k({},u),{fields:d}))):(0,yt.isInterfaceType)(s)?r[i]=nT(new yt.GraphQLInterfaceType(G(k({},u),{fields:d}))):r[i]=nT(new yt.GraphQLInputObjectType(G(k({},u),{fields:d})))}return r}function e$(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)){r[i]=s;continue}let o=yae(n);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=y.args;if(N==null){d[p]=y;continue}let I=Object.keys(N);if(!I.length){d[p]=y;continue}let O={};for(let x of I){let V=N[x],K=o(V,p,i,t);if(K===void 0)O[x]=V;else if(Array.isArray(K)){let[re,se]=K;O[re]=se}else K!==null&&(O[x]=K)}d[p]=G(k({},y),{args:O})}(0,yt.isObjectType)(s)?r[i]=new yt.GraphQLObjectType(G(k({},u),{fields:d})):(0,yt.isInterfaceType)(s)?r[i]=new yt.GraphQLInterfaceType(G(k({},u),{fields:d})):r[i]=new yt.GraphQLInputObjectType(G(k({},u),{fields:d}))}return r}function pae(e,t,n){let r=Nae(n);if(r==null)return e.slice();let i=[];for(let s of e){let o=r(s,t);o===void 0?i.push(s):o!==null&&i.push(o)}return i}function fae(e,t){var i,s,o;let n=e.getType(t),r=[zt.MapperKind.TYPE];return(0,yt.isObjectType)(n)?(r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.QUERY):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.SUBSCRIPTION)):(0,yt.isInputObjectType)(n)?r.push(zt.MapperKind.INPUT_OBJECT_TYPE):(0,yt.isInterfaceType)(n)?r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.ABSTRACT_TYPE,zt.MapperKind.INTERFACE_TYPE):(0,yt.isUnionType)(n)?r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.ABSTRACT_TYPE,zt.MapperKind.UNION_TYPE):(0,yt.isEnumType)(n)?r.push(zt.MapperKind.ENUM_TYPE):(0,yt.isScalarType)(n)&&r.push(zt.MapperKind.SCALAR_TYPE),r}function mae(e,t,n){let r=fae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function hae(e,t){var i,s,o;let n=e.getType(t),r=[zt.MapperKind.FIELD];return(0,yt.isObjectType)(n)?(r.push(zt.MapperKind.COMPOSITE_FIELD,zt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.QUERY_ROOT_FIELD):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,yt.isInterfaceType)(n)?r.push(zt.MapperKind.COMPOSITE_FIELD,zt.MapperKind.INTERFACE_FIELD):(0,yt.isInputObjectType)(n)&&r.push(zt.MapperKind.INPUT_OBJECT_FIELD),r}function Tae(e,t,n){let r=hae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function yae(e){let t=e[zt.MapperKind.ARGUMENT];return t!=null?t:null}function Nae(e){let t=e[zt.MapperKind.DIRECTIVE];return t!=null?t:null}function Eae(e){let t=e[zt.MapperKind.ENUM_VALUE];return t!=null?t:null}function nT(e){if((0,yt.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=G(k({},t.astNode),{kind:yt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(k({},n),{kind:yt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLObjectType(t)}else if((0,yt.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=G(k({},t.astNode),{kind:yt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(k({},n),{kind:yt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInterfaceType(t)}else if((0,yt.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=G(k({},t.astNode),{kind:yt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(k({},n),{kind:yt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInputObjectType(t)}else if((0,yt.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=G(k({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>G(k({},n),{values:void 0}))),new yt.GraphQLEnumType(t)}else return e}Lp.correctASTNodes=nT});var t$=j(Eg=>{"use strict";m();T();h();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.filterSchema=void 0;var Ng=(Le(),Me(je)),za=Vl(),gae=Pp();function Iae({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0}){return(0,gae.mapSchema)(e,{[za.MapperKind.QUERY]:d=>VA(d,"Query",r,u),[za.MapperKind.MUTATION]:d=>VA(d,"Mutation",r,u),[za.MapperKind.SUBSCRIPTION]:d=>VA(d,"Subscription",r,u),[za.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?jA(Ng.GraphQLObjectType,d,i||n,u):null,[za.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?jA(Ng.GraphQLInterfaceType,d,s||n,u):null,[za.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?jA(Ng.GraphQLInputObjectType,d,o||n):null,[za.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[za.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[za.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}Eg.filterSchema=Iae;function VA(e,t,n,r){if(n||r){let i=e.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t,s,i.fields[s]))delete i.fields[s];else if(r&&o.args)for(let u in o.args)r(t,s,u,o.args[u])||delete o.args[u]}return new Ng.GraphQLObjectType(i)}return e}function jA(e,t,n,r){if(n||r){let i=t.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t.name,s,i.fields[s]))delete i.fields[s];else if(r&&"args"in o)for(let u in o.args)r(t.name,s,u,o.args[u])||delete o.args[u]}return new e(i)}}});var r$=j(kp=>{"use strict";m();T();h();Object.defineProperty(kp,"__esModule",{value:!0});kp.healTypes=kp.healSchema=void 0;var oa=(Le(),Me(je));function vae(e){return n$(e.getTypeMap(),e.getDirectives()),e}kp.healSchema=vae;function n$(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,oa.isObjectType)(d)){i(d),s(d);return}else if((0,oa.isInterfaceType)(d)){i(d),"getInterfaces"in d&&s(d);return}else if((0,oa.isUnionType)(d)){u(d);return}else if((0,oa.isInputObjectType)(d)){o(d);return}else if((0,oa.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.args.map(I=>(I.type=l(I.type),I.type===null?null:I)).filter(Boolean),N.type=l(N.type),N.type===null&&delete p[y]}function s(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.type=l(N.type),N.type===null&&delete p[y]}function u(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,oa.isListType)(d)){let p=l(d.ofType);return p!=null?new oa.GraphQLList(p):null}else if((0,oa.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new oa.GraphQLNonNull(p):null}else if((0,oa.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}kp.healTypes=n$});var i$=j(gg=>{"use strict";m();T();h();Object.defineProperty(gg,"__esModule",{value:!0});gg.getResolversFromSchema=void 0;var jl=(Le(),Me(je));function _ae(e,t){var i,s;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let u=r[o];if((0,jl.isScalarType)(u)){if(!(0,jl.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[o]=new jl.GraphQLScalarType(l)}}else if((0,jl.isEnumType)(u)){n[o]={};let l=u.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,jl.isInterfaceType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,jl.isUnionType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,jl.isObjectType)(u)){n[o]={},u.isTypeOf!=null&&(n[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((s=p.resolve)==null?void 0:s.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}gg.getResolversFromSchema=_ae});var o$=j(Ig=>{"use strict";m();T();h();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.forEachField=void 0;var s$=(Le(),Me(je));function bae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,s$.getNamedType)(i).name.startsWith("__")&&(0,s$.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];t(u,r,o)}}}}Ig.forEachField=bae});var a$=j(vg=>{"use strict";m();T();h();Object.defineProperty(vg,"__esModule",{value:!0});vg.forEachDefaultValue=void 0;var $A=(Le(),Me(je));function Oae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,$A.getNamedType)(i).name.startsWith("__")){if((0,$A.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,$A.isInputObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}vg.forEachDefaultValue=Oae});var GA=j(_g=>{"use strict";m();T();h();Object.defineProperty(_g,"__esModule",{value:!0});_g.addTypes=void 0;var qA=(Le(),Me(je)),KA=kA(),Sae=hg();function Dae(e,t){let n=e.toConfig(),r={};for(let u of n.types)r[u.name]=u;let i={};for(let u of n.directives)i[u.name]=u;for(let u of t)(0,qA.isNamedType)(u)?r[u.name]=u:(0,qA.isDirective)(u)&&(i[u.name]=u);let{typeMap:s,directives:o}=(0,Sae.rewireTypes)(r,Object.values(i));return new qA.GraphQLSchema(G(k({},n),{query:(0,KA.getObjectTypeFromTypeMap)(s,e.getQueryType()),mutation:(0,KA.getObjectTypeFromTypeMap)(s,e.getMutationType()),subscription:(0,KA.getObjectTypeFromTypeMap)(s,e.getSubscriptionType()),types:Object.values(s),directives:o}))}_g.addTypes=Dae});var c$=j(Og=>{"use strict";m();T();h();Object.defineProperty(Og,"__esModule",{value:!0});Og.pruneSchema=void 0;var kr=(Le(),Me(je)),Aae=EA(),Rae=Vl(),Fae=Pp(),wae=Hh();function Lae(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:s,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let d=Pae(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let N=l.getType(y);N&&i(N)&&p.push(y)}d=u$(p,l,d)}u=[],l=(0,Fae.mapSchema)(l,{[Rae.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,kr.isSpecifiedScalarType)(p)?((0,kr.isUnionType)(p)||(0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p)||(0,kr.isScalarType)(p))&&(o||(0,kr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,kr.isInterfaceType)(p)&&s)?p:(u.push(p.name),d.delete(p.name),null):p})}while(u.length);return l}Og.pruneSchema=Lae;function Pae(e){let t=[];for(let n of(0,wae.getRootTypes)(e))t.push(n.name);return u$(t,e)}function u$(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let s=t.getType(i);if(s){if((0,kr.isUnionType)(s)&&e.push(...s.getTypes().map(o=>o.name)),(0,kr.isInterfaceType)(s)&&r[i]===!0&&(e.push(...(0,Aae.getImplementingTypes)(s.name,t)),r[i]=!1),(0,kr.isEnumType)(s)&&e.push(...s.getValues().flatMap(o=>o.astNode?bg(t,o.astNode):[])),"getInterfaces"in s&&e.push(...s.getInterfaces().map(o=>o.name)),"getFields"in s){let o=s.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,kr.isObjectType)(s)&&e.push(...l.args.flatMap(p=>{let y=[(0,kr.getNamedType)(p.type).name];return p.astNode&&y.push(...bg(t,p.astNode)),y}));let d=(0,kr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...bg(t,l.astNode)),(0,kr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}s.astNode&&e.push(...bg(t,s.astNode)),n.add(i)}}return n}function bg(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,s;return(s=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,kr.getNamedType)(o.type).name))!=null?s:[]})}});var d$=j(Sg=>{"use strict";m();T();h();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.mergeDeep=void 0;var kae=Qh();function l$(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let s of e)if(QA(r)&&QA(s)){if(t){let o=Object.getPrototypeOf(i),u=Object.getPrototypeOf(s);if(u)for(let l of Object.getOwnPropertyNames(u)){let d=Object.getOwnPropertyDescriptor(u,l);(0,kae.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in s)QA(s[o])?o in i?i[o]=l$([i[o],s[o]],t,n):Object.assign(i,{[o]:s[o]}):n&&Array.isArray(i[o])?Array.isArray(s[o])?i[o].push(...s[o]):i[o].push(s[o]):Object.assign(i,{[o]:s[o]})}else if(n&&Array.isArray(r))Array.isArray(s)?r.push(...s):r.push(s);else if(n&&Array.isArray(s))return[r,...s];return i}Sg.mergeDeep=l$;function QA(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var p$=j(Dg=>{"use strict";m();T();h();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.parseSelectionSet=void 0;var Cae=(Le(),Me(je));function xae(e,t){return(0,Cae.parse)(e,t).definitions[0].selectionSet}Dg.parseSelectionSet=xae});var f$=j(Ag=>{"use strict";m();T();h();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.getResponseKeyFromInfo=void 0;function Uae(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}Ag.getResponseKeyFromInfo=Uae});var m$=j(aa=>{"use strict";m();T();h();Object.defineProperty(aa,"__esModule",{value:!0});aa.modifyObjectFields=aa.selectObjectFields=aa.removeObjectFields=aa.appendObjectFields=void 0;var Rg=(Le(),Me(je)),Mae=GA(),Fg=Vl(),$l=Pp();function Bae(e,t,n){return e.getType(t)==null?(0,Mae.addTypes)(e,[new Rg.GraphQLObjectType({name:t,fields:n})]):(0,$l.mapSchema)(e,{[Fg.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),s=i.fields,o={};for(let u in s)o[u]=s[u];for(let u in n)o[u]=n[u];return(0,$l.correctASTNodes)(new Rg.GraphQLObjectType(G(k({},i),{fields:o})))}}})}aa.appendObjectFields=Bae;function Vae(e,t,n){let r={};return[(0,$l.mapSchema)(e,{[Fg.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let o=s.toConfig(),u=o.fields,l={};for(let d in u){let p=u[d];n(d,p)?r[d]=p:l[d]=p}return(0,$l.correctASTNodes)(new Rg.GraphQLObjectType(G(k({},o),{fields:l})))}}}),r]}aa.removeObjectFields=Vae;function jae(e,t,n){let r={};return(0,$l.mapSchema)(e,{[Fg.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];n(u,l)&&(r[u]=l)}}}}),r}aa.selectObjectFields=jae;function $ae(e,t,n,r){let i={};return[(0,$l.mapSchema)(e,{[Fg.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,$l.correctASTNodes)(new Rg.GraphQLObjectType(G(k({},u),{fields:d})))}}}),i]}aa.modifyObjectFields=$ae});var h$=j(wg=>{"use strict";m();T();h();Object.defineProperty(wg,"__esModule",{value:!0});wg.renameType=void 0;var Qs=(Le(),Me(je));function qae(e,t){if((0,Qs.isObjectType)(e))return new Qs.GraphQLObjectType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));if((0,Qs.isInterfaceType)(e))return new Qs.GraphQLInterfaceType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));if((0,Qs.isUnionType)(e))return new Qs.GraphQLUnionType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));if((0,Qs.isInputObjectType)(e))return new Qs.GraphQLInputObjectType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));if((0,Qs.isEnumType)(e))return new Qs.GraphQLEnumType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));if((0,Qs.isScalarType)(e))return new Qs.GraphQLScalarType(G(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:G(k({},e.astNode),{name:G(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>G(k({},n),{name:G(k({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}wg.renameType=qae});var N$=j(Lg=>{"use strict";m();T();h();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.mapAsyncIterator=void 0;var Kae=Jh();function Gae(e,t,n,r){let i,s,o;r&&(o=d=>{let p=r();return(0,Kae.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,s=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function u(d){return d.done?o?o(d):d:T$(d.value,t).then(y$,s)}let l;if(n){let d=n;l=p=>T$(p,d).then(y$,s)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):Promise.reject(d).catch(s)},[Symbol.asyncIterator](){return this}}}Lg.mapAsyncIterator=Gae;function T$(e,t){return new Promise(n=>n(t(e)))}function y$(e){return{value:e,done:!1}}});var E$=j(Cp=>{"use strict";m();T();h();Object.defineProperty(Cp,"__esModule",{value:!0});Cp.createVariableNameGenerator=Cp.updateArgument=void 0;var ql=(Le(),Me(je)),Qae=IA();function Yae(e,t,n,r,i,s,o){if(e[r]={kind:ql.Kind.ARGUMENT,name:{kind:ql.Kind.NAME,value:r},value:{kind:ql.Kind.VARIABLE,name:{kind:ql.Kind.NAME,value:i}}},t[i]={kind:ql.Kind.VARIABLE_DEFINITION,variable:{kind:ql.Kind.VARIABLE,name:{kind:ql.Kind.NAME,value:i}},type:(0,Qae.astFromType)(s)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Cp.updateArgument=Yae;function Jae(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Cp.createVariableNameGenerator=Jae});var g$=j(Pg=>{"use strict";m();T();h();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.implementsAbstractType=void 0;var YA=(Le(),Me(je));function zae(e,t,n){return n==null||t==null?!1:t===n?!0:(0,YA.isCompositeType)(t)&&(0,YA.isCompositeType)(n)?(0,YA.doTypesOverlap)(e,t,n):!1}Pg.implementsAbstractType=zae});var I$=j(kg=>{"use strict";m();T();h();Object.defineProperty(kg,"__esModule",{value:!0});kg.observableToAsyncIterable=void 0;function Hae(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},s=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},u=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){s(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?u():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}kg.observableToAsyncIterable=Hae});var v$=j(Cg=>{"use strict";m();T();h();Object.defineProperty(Cg,"__esModule",{value:!0});Cg.AccumulatorMap=void 0;var JA=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};Cg.AccumulatorMap=JA});var zA=j(xp=>{"use strict";m();T();h();Object.defineProperty(xp,"__esModule",{value:!0});xp.GraphQLStreamDirective=xp.GraphQLDeferDirective=void 0;var Ys=(Le(),Me(je));xp.GraphQLDeferDirective=new Ys.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Ys.DirectiveLocation.FRAGMENT_SPREAD,Ys.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ys.GraphQLNonNull(Ys.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Ys.GraphQLString,description:"Unique name"}}});xp.GraphQLStreamDirective=new Ys.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Ys.DirectiveLocation.FIELD],args:{if:{type:new Ys.GraphQLNonNull(Ys.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Ys.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Ys.GraphQLInt,description:"Number of items to return immediately"}}})});var XA=j(Qi=>{"use strict";m();T();h();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.collectSubFields=Qi.getDeferValues=Qi.getFieldEntryKey=Qi.doesFragmentConditionMatch=Qi.shouldIncludeNode=Qi.collectFields=void 0;var ua=(Le(),Me(je)),Ug=v$(),Wae=zA(),Xae=Dp();function Up(e,t,n,r,i,s,o,u){for(let l of i.selections)switch(l.kind){case ua.Kind.FIELD:{if(!xg(n,l))continue;s.add(_$(l),l);break}case ua.Kind.INLINE_FRAGMENT:{if(!xg(n,l)||!HA(e,l,r))continue;let d=WA(n,l);if(d){let p=new Ug.AccumulatorMap;Up(e,t,n,r,l.selectionSet,p,o,u),o.push({label:d.label,fields:p})}else Up(e,t,n,r,l.selectionSet,s,o,u);break}case ua.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!xg(n,l))continue;let p=WA(n,l);if(u.has(d)&&!p)continue;let y=t[d];if(!y||!HA(e,y,r))continue;if(p||u.add(d),p){let N=new Ug.AccumulatorMap;Up(e,t,n,r,y.selectionSet,N,o,u),o.push({label:p.label,fields:N})}else Up(e,t,n,r,y.selectionSet,s,o,u);break}}}function Zae(e,t,n,r,i){let s=new Ug.AccumulatorMap,o=[];return Up(e,t,n,r,i,s,o,new Set),{fields:s,patches:o}}Qi.collectFields=Zae;function xg(e,t){let n=(0,ua.getDirectiveValues)(ua.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,ua.getDirectiveValues)(ua.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Qi.shouldIncludeNode=xg;function HA(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,ua.typeFromAST)(e,r);return i===n?!0:(0,ua.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Qi.doesFragmentConditionMatch=HA;function _$(e){return e.alias?e.alias.value:e.name.value}Qi.getFieldEntryKey=_$;function WA(e,t){let n=(0,ua.getDirectiveValues)(Wae.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Qi.getDeferValues=WA;Qi.collectSubFields=(0,Xae.memoize5)(function(t,n,r,i,s){let o=new Ug.AccumulatorMap,u=new Set,l=[],d={fields:o,patches:l};for(let p of s)p.selectionSet&&Up(t,n,r,i,p.selectionSet,o,l,u);return d})});var ZA=j(Mp=>{"use strict";m();T();h();Object.defineProperty(Mp,"__esModule",{value:!0});Mp.getOperationASTFromRequest=Mp.getOperationASTFromDocument=void 0;var eue=(Le(),Me(je)),tue=Dp();function b$(e,t){let n=(0,eue.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Mp.getOperationASTFromDocument=b$;Mp.getOperationASTFromRequest=(0,tue.memoize1)(function(t){return b$(t.document,t.operationName)})});var D$=j(Ac=>{"use strict";m();T();h();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.visitResult=Ac.visitErrors=Ac.visitData=void 0;var Dc=(Le(),Me(je)),eR=XA(),nue=ZA();function tR(e,t,n){if(Array.isArray(e))return e.map(r=>tR(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let s=r[i];Object.defineProperty(r,i,{value:tR(s,t,n)})}return n!=null?n(r):r}return e}Ac.visitData=tR;function rue(e,t){return e.map(n=>t(n))}Ac.visitErrors=rue;function iue(e,t,n,r,i){let s=t.document.definitions.reduce((N,I)=>(I.kind===Dc.Kind.FRAGMENT_DEFINITION&&(N[I.name.value]=I),N),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,nue.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=aue(l,y,n,s,o,r,p?d:void 0,u)),d!=null&&i&&(e.errors=sue(d,i,u)),e}Ac.visitResult=iue;function sue(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,s=t.__unpathed;return e.map(o=>{let u=r.get(o),l=u==null?o:u.reduceRight((d,p)=>{let y=p.type.name,N=t[y];if(N==null)return d;let I=N[p.fieldName];return I==null?d:I(d,p.pathIndex)},o);return s&&i.has(o)?s(l):l})}function oue(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function aue(e,t,n,r,i,s,o,u){let l=oue(n,t),{fields:d}=(0,eR.collectFields)(n,r,i,l,t.selectionSet);return nR(e,l,d,n,r,i,s,0,o,u)}function nR(e,t,n,r,i,s,o,u,l,d){var re;let p=t.getFields(),y=o==null?void 0:o[t.name],N=y==null?void 0:y.__enter,I=N!=null?N(e):e,O,x=null;if(l!=null){O=cue(l,u),x=O.errorMap;for(let se of O.unpathedErrors)d.unpathedErrors.add(se)}for(let[se,fe]of n){let he=fe[0].name.value,xe=(re=p[he])==null?void 0:re.type;if(xe==null)switch(he){case"__typename":xe=Dc.TypeNameMetaFieldDef.type;break;case"__schema":xe=Dc.SchemaMetaFieldDef.type;break;case"__type":xe=Dc.TypeMetaFieldDef.type;break}let ht=u+1,Ct;x&&(Ct=x[se],Ct!=null&&delete x[se],lue(t,he,ht,Ct,d));let B=S$(e[se],xe,fe,r,i,s,o,ht,Ct,d);O$(I,se,B,y,he)}let V=I.__typename;if(V!=null&&O$(I,"__typename",V,y,"__typename"),x)for(let se in x){let fe=x[se];for(let he of fe)d.unpathedErrors.add(he)}let K=y==null?void 0:y.__leave;return K!=null?K(I):I}function O$(e,t,n,r,i){if(r==null){e[t]=n;return}let s=r[i];if(s==null){e[t]=n;return}let o=s(n);if(o===void 0){delete e[t];return}e[t]=o}function uue(e,t,n,r,i,s,o,u,l,d){return e.map(p=>S$(p,t,n,r,i,s,o,u+1,l,d))}function S$(e,t,n,r,i,s,o,u,l=[],d){if(e==null)return e;let p=(0,Dc.getNullableType)(t);if((0,Dc.isListType)(p))return uue(e,p.ofType,n,r,i,s,o,u,l,d);if((0,Dc.isAbstractType)(p)){let I=r.getType(e.__typename),{fields:O}=(0,eR.collectSubFields)(r,i,s,I,n);return nR(e,I,O,r,i,s,o,u,l,d)}else if((0,Dc.isObjectType)(p)){let{fields:I}=(0,eR.collectSubFields)(r,i,s,p,n);return nR(e,p,I,r,i,s,o,u,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let N=y(e);return N===void 0?e:N}function cue(e,t){var i;let n=Object.create(null),r=new Set;for(let s of e){let o=(i=s.path)==null?void 0:i[t];if(o==null){r.add(s);continue}o in n?n[o].push(s):n[o]=[s]}return{errorMap:n,unpathedErrors:r}}function lue(e,t,n,r=[],i){for(let s of r){let o={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(s);u==null?i.segmentInfoMap.set(s,[o]):u.push(o)}}});var A$=j(Mg=>{"use strict";m();T();h();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.valueMatchesCriteria=void 0;function rR(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>rR(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>rR(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}Mg.valueMatchesCriteria=rR});var R$=j(Bg=>{"use strict";m();T();h();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.isAsyncIterable=void 0;function due(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}Bg.isAsyncIterable=due});var F$=j(Vg=>{"use strict";m();T();h();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.isDocumentNode=void 0;var pue=(Le(),Me(je));function fue(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===pue.Kind.DOCUMENT}Vg.isDocumentNode=fue});var w$=j(()=>{"use strict";m();T();h()});var C$=j(Rc=>{"use strict";m();T();h();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.withCancel=Rc.getAsyncIterableWithCancel=Rc.getAsyncIteratorWithCancel=void 0;var mue=Dp();function hue(e){return yr(this,null,function*(){return{value:e,done:!0}})}var L$=(0,mue.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function P$(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let s=Reflect.get(n,r,i);if(r==="return"){let o=s||hue;return function(l){return yr(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof s=="function")return L$(n,s);return s}})}Rc.getAsyncIteratorWithCancel=P$;function k$(e,t){return new Proxy(e,{get(n,r,i){let s=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(s,n,[]);return P$(u,t)}:typeof s=="function"?L$(n,s):s}})}Rc.getAsyncIterableWithCancel=k$;Rc.withCancel=k$});var x$=j(jg=>{"use strict";m();T();h();Object.defineProperty(jg,"__esModule",{value:!0});jg.fixSchemaAst=void 0;var Tue=(Le(),Me(je)),yue=AA();function Nue(e,t){let n=(0,yue.getDocumentNodeFromSchema)(e);return(0,Tue.buildASTSchema)(n,k({},t||{}))}function Eue(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=Nue(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}jg.fixSchemaAst=Eue});var U$=j($g=>{"use strict";m();T();h();Object.defineProperty($g,"__esModule",{value:!0});$g.extractExtensionsFromSchema=void 0;var Ha=Vl(),gue=Pp();function vo(e={}){let t=k({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function Iue(e){let t={schemaExtensions:vo(e.extensions),types:{}};return(0,gue.mapSchema)(e,{[Ha.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:vo(n.extensions)},n),[Ha.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:vo(n.extensions)},n),[Ha.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:vo(n.extensions)};let s=n.args;if(s!=null)for(let o in s)t.types[i].fields[r].arguments[o]=vo(s[o].extensions);return n},[Ha.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:vo(n.extensions)},n),[Ha.MapperKind.ENUM_VALUE]:(n,r,i,s)=>(t.types[r].values[s]=vo(n.extensions),n),[Ha.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:vo(n.extensions)},n),[Ha.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:vo(n.extensions)},n),[Ha.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:vo(n.extensions)},n),[Ha.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:vo(n.extensions)},n)}),t}$g.extractExtensionsFromSchema=Iue});var M$=j(Fc=>{"use strict";m();T();h();Object.defineProperty(Fc,"__esModule",{value:!0});Fc.printPathArray=Fc.pathToArray=Fc.addPath=void 0;function vue(e,t,n){return{prev:e,key:t,typename:n}}Fc.addPath=vue;function _ue(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Fc.pathToArray=_ue;function bue(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Fc.printPathArray=bue});var B$=j(iR=>{"use strict";m();T();h();function qg(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();h();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.mergeIncrementalResult=void 0;var sR=B$();function V$({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,sR.dset)(t,n,i),n[n.length-1]++;e.data&&(0,sR.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,sR.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{V$({incrementalResult:i,executionResult:t})})}Kg.mergeIncrementalResult=V$});var q$=j(Bp=>{"use strict";m();T();h();Object.defineProperty(Bp,"__esModule",{value:!0});Bp.debugTimerEnd=Bp.debugTimerStart=void 0;var $$=new Set;function Sue(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&($$.add(e),console.time(e))}Bp.debugTimerStart=Sue;function Due(e){$$.has(e)&&console.timeEnd(e)}Bp.debugTimerEnd=Due});var _o=j(Ze=>{"use strict";m();T();h();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.inspect=void 0;var tt=(Hj(),Me(zj));tt.__exportStar(Wj(),Ze);tt.__exportStar(Qh(),Ze);tt.__exportStar(TA(),Ze);tt.__exportStar(yA(),Ze);tt.__exportStar(a1(),Ze);tt.__exportStar(EA(),Ze);tt.__exportStar(AA(),Ze);tt.__exportStar(yA(),Ze);tt.__exportStar(b1(),Ze);tt.__exportStar(O1(),Ze);tt.__exportStar(M1(),Ze);tt.__exportStar(Q1(),Ze);tt.__exportStar(J1(),Ze);tt.__exportStar(t$(),Ze);tt.__exportStar(r$(),Ze);tt.__exportStar(i$(),Ze);tt.__exportStar(o$(),Ze);tt.__exportStar(a$(),Ze);tt.__exportStar(Pp(),Ze);tt.__exportStar(GA(),Ze);tt.__exportStar(hg(),Ze);tt.__exportStar(c$(),Ze);tt.__exportStar(d$(),Ze);tt.__exportStar(Vl(),Ze);tt.__exportStar(UA(),Ze);tt.__exportStar(p$(),Ze);tt.__exportStar(f$(),Ze);tt.__exportStar(m$(),Ze);tt.__exportStar(h$(),Ze);tt.__exportStar(MA(),Ze);tt.__exportStar(N$(),Ze);tt.__exportStar(E$(),Ze);tt.__exportStar(g$(),Ze);tt.__exportStar(HE(),Ze);tt.__exportStar(I$(),Ze);tt.__exportStar(D$(),Ze);tt.__exportStar(hA(),Ze);tt.__exportStar(A$(),Ze);tt.__exportStar(R$(),Ze);tt.__exportStar(F$(),Ze);tt.__exportStar(ig(),Ze);tt.__exportStar(w$(),Ze);tt.__exportStar(C$(),Ze);tt.__exportStar(Hh(),Ze);tt.__exportStar(FA(),Ze);tt.__exportStar(XA(),Ze);var Aue=Yh();Object.defineProperty(Ze,"inspect",{enumerable:!0,get:function(){return Aue.inspect}});tt.__exportStar(Dp(),Ze);tt.__exportStar(x$(),Ze);tt.__exportStar(ZA(),Ze);tt.__exportStar(U$(),Ze);tt.__exportStar(M$(),Ze);tt.__exportStar(Jh(),Ze);tt.__exportStar(zA(),Ze);tt.__exportStar(j$(),Ze);tt.__exportStar(q$(),Ze)});var G$=j(Gg=>{"use strict";m();T();h();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.mergeResolvers=void 0;var Rue=_o();function K$(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=K$(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Rue.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[s,o]=i.split(".");!o||o==="*"?delete r[s]:r[s]&&delete r[s][o]}return r}Gg.mergeResolvers=K$});var oR=j(Qg=>{"use strict";m();T();h();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.mergeArguments=void 0;var Q$=_o();function Fue(e,t,n){let r=wue([...t,...e].filter(Q$.isSome),n);return n&&n.sort&&r.sort(Q$.compareNodes),r}Qg.mergeArguments=Fue;function wue(e,t){return e.reduce((n,r)=>{let i=n.findIndex(s=>s.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Js=j(Vp=>{"use strict";m();T();h();Object.defineProperty(Vp,"__esModule",{value:!0});Vp.mergeDirective=Vp.mergeDirectives=void 0;var Y$=(Le(),Me(je)),Lue=_o();function Pue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function J$(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function kue(e,t){return t.some(({value:n})=>n===e.value)}function z$(e,t){let n=[...t];for(let r of e){let i=n.findIndex(s=>s.name.value===r.name.value);if(i>-1){let s=n[i];if(s.value.kind==="ListValue"){let o=s.value.values,u=r.value.values;s.value.values=Bue(o,u,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else s.value=r.value}else n.push(r)}return n}function Cue(e,t){return e.map((n,r,i)=>{let s=i.findIndex(o=>o.name.value===n.name.value);if(s!==r&&!J$(n,t)){let o=i[s];return n.arguments=z$(n.arguments,o.arguments),null}return n}).filter(Lue.isSome)}function xue(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=i?e:t,o=i?t:e,u=Cue([...s],r);for(let l of o)if(Pue(u,l)&&!J$(l,r)){let d=u.findIndex(y=>y.name.value===l.name.value),p=u[d];u[d].arguments=z$(l.arguments||[],p.arguments||[])}else u.push(l);return u}Vp.mergeDirectives=xue;function Uue(e,t){let n=(0,Y$.print)(G(k({},e),{description:void 0})),r=(0,Y$.print)(G(k({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +`);return i.description?Q(k({},i),{description:Q(k({},i.description),{value:i.description.value+` +`+o,block:!0})}):Q(k({},i),{description:{kind:Gs.Kind.STRING,value:o,block:u}})}}}})}Lc.transformCommentsToDescriptions=z1;function H1(e){return(0,Gs.isTypeSystemDefinitionNode)(e)||e.kind===Gs.Kind.FIELD_DEFINITION||e.kind===Gs.Kind.INPUT_VALUE_DEFINITION||e.kind===Gs.Kind.ENUM_VALUE_DEFINITION}Lc.isDescribable=H1});var s$=j(Tg=>{"use strict";m();T();h();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.buildOperationNodeForField=void 0;var Ot=(Le(),Me(je)),t$=nT(),jA=[],hg=new Map;function n$(e){jA.push(e)}function X1(){jA=[]}function Z1(){hg=new Map}function pae({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l=!0}){X1(),Z1();let d=(0,t$.getRootTypeNames)(e),p=fae({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:s||1/0,circularReferenceDepth:o||1,argNames:u,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...jA],X1(),Z1(),p}Tg.buildOperationNodeForField=pae;function fae({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:s,circularReferenceDepth:o,argNames:u,selectedFields:l,rootTypeNames:d}){let p=(0,t$.getDefinedRootType)(e,n),y=p.getFields()[t],N=`${t}_${n}`;if(y.args)for(let I of y.args){let S=I.name;(!u||u.includes(S))&&n$(r$(I,S))}return{kind:Ot.Kind.OPERATION_DEFINITION,operation:n,name:{kind:Ot.Kind.NAME,value:N},variableDefinitions:[],selectionSet:{kind:Ot.Kind.SELECTION_SET,selections:[i$({type:p,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:s,circularReferenceDepth:o,schema:e,depth:0,argNames:u,selectedFields:l,rootTypeNames:d})]}}}function VA({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){if(!(typeof N=="boolean"&&p>u)){if((0,Ot.isUnionType)(t)){let S=t.getTypes();return{kind:Ot.Kind.SELECTION_SET,selections:S.filter(C=>!BA([...s,C],{depth:l})).map(C=>({kind:Ot.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:C.name}},selectionSet:VA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var V,G;return((G=(V=C==null?void 0:C.selectionSet)==null?void 0:V.selections)==null?void 0:G.length)>0})}}if((0,Ot.isInterfaceType)(t)){let S=Object.values(d.getTypeMap()).filter(C=>(0,Ot.isObjectType)(C)&&C.getInterfaces().includes(t));return{kind:Ot.Kind.SELECTION_SET,selections:S.filter(C=>!BA([...s,C],{depth:l})).map(C=>({kind:Ot.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:C.name}},selectionSet:VA({parent:t,type:C,models:n,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I})})).filter(C=>{var V,G;return((G=(V=C==null?void 0:C.selectionSet)==null?void 0:V.selections)==null?void 0:G.length)>0})}}if((0,Ot.isObjectType)(t)&&!I.has(t.name)){let S=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),C=n.includes(t.name);if(!r&&C&&!S)return{kind:Ot.Kind.SELECTION_SET,selections:[{kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:"id"}}]};let V=t.getFields();return{kind:Ot.Kind.SELECTION_SET,selections:Object.keys(V).filter(G=>!BA([...s,(0,Ot.getNamedType)(V[G].type)],{depth:l})).map(G=>{let re=typeof N=="object"?N[G]:!0;return re?i$({type:t,field:V[G],models:n,path:[...i,G],ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:re,rootTypeNames:I}):null}).filter(G=>{var re,se;return G==null?!1:"selectionSet"in G?!!((se=(re=G.selectionSet)==null?void 0:re.selections)!=null&&se.length):!0})}}}}function r$(e,t){function n(r){return(0,Ot.isListType)(r)?{kind:Ot.Kind.LIST_TYPE,type:n(r.ofType)}:(0,Ot.isNonNullType)(r)?{kind:Ot.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:Ot.Kind.NAMED_TYPE,name:{kind:Ot.Kind.NAME,value:r.name}}}return{kind:Ot.Kind.VARIABLE_DEFINITION,variable:{kind:Ot.Kind.VARIABLE,name:{kind:Ot.Kind.NAME,value:t||e.name}},type:n(e.type)}}function e$(e,t){return[...t,e].join("_")}function i$({type:e,field:t,models:n,firstCall:r,path:i,ancestors:s,ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p,argNames:y,selectedFields:N,rootTypeNames:I}){let S=(0,Ot.getNamedType)(t.type),C=[],V=!1;if(t.args&&t.args.length&&(C=t.args.map(fe=>{let he=e$(fe.name,i);return y&&!y.includes(he)?((0,Ot.isNonNullType)(fe.type)&&(V=!0),null):(r||n$(r$(fe,he)),{kind:Ot.Kind.ARGUMENT,name:{kind:Ot.Kind.NAME,value:fe.name},value:{kind:Ot.Kind.VARIABLE,name:{kind:Ot.Kind.NAME,value:e$(fe.name,i)}}})}).filter(Boolean)),V)return null;let G=[...i,t.name],re=G.join("."),se=t.name;return hg.has(re)&&hg.get(re)!==t.type.toString()&&(se+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),hg.set(re,t.type.toString()),!(0,Ot.isScalarType)(S)&&!(0,Ot.isEnumType)(S)?Q(k({kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:Ot.Kind.NAME,value:se}}),{selectionSet:VA({parent:e,type:S,models:n,firstCall:r,path:G,ancestors:[...s,e],ignore:o,depthLimit:u,circularReferenceDepth:l,schema:d,depth:p+1,argNames:y,selectedFields:N,rootTypeNames:I})||void 0,arguments:C}):Q(k({kind:Ot.Kind.FIELD,name:{kind:Ot.Kind.NAME,value:t.name}},se!==t.name&&{alias:{kind:Ot.Kind.NAME,value:se}}),{arguments:C})}function BA(e,t={depth:1}){let n=e[e.length-1];return(0,Ot.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var a$=j(yg=>{"use strict";m();T();h();Object.defineProperty(yg,"__esModule",{value:!0});yg.DirectiveLocation=void 0;var o$;(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"})(o$||(yg.DirectiveLocation=o$={}))});var Ql=j(Ng=>{"use strict";m();T();h();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.MapperKind=void 0;var u$;(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"})(u$||(Ng.MapperKind=u$={}))});var $A=j(Eg=>{"use strict";m();T();h();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.getObjectTypeFromTypeMap=void 0;var mae=(Le(),Me(je));function hae(e,t){if(t){let n=e[t.name];if((0,mae.isObjectType)(n))return n}}Eg.getObjectTypeFromTypeMap=hae});var GA=j(ia=>{"use strict";m();T();h();Object.defineProperty(ia,"__esModule",{value:!0});ia.getBuiltInForStub=ia.isNamedStub=ia.createStub=ia.createNamedStub=void 0;var Kr=(Le(),Me(je));function qA(e,t){let n;return t==="object"?n=Kr.GraphQLObjectType:t==="interface"?n=Kr.GraphQLInterfaceType:n=Kr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Kr.GraphQLString}}})}ia.createNamedStub=qA;function KA(e,t){switch(e.kind){case Kr.Kind.LIST_TYPE:return new Kr.GraphQLList(KA(e.type,t));case Kr.Kind.NON_NULL_TYPE:return new Kr.GraphQLNonNull(KA(e.type,t));default:return t==="output"?qA(e.name.value,"object"):qA(e.name.value,"input")}}ia.createStub=KA;function Tae(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ia.isNamedStub=Tae;function yae(e){switch(e.name){case Kr.GraphQLInt.name:return Kr.GraphQLInt;case Kr.GraphQLFloat.name:return Kr.GraphQLFloat;case Kr.GraphQLString.name:return Kr.GraphQLString;case Kr.GraphQLBoolean.name:return Kr.GraphQLBoolean;case Kr.GraphQLID.name:return Kr.GraphQLID;default:return e}}ia.getBuiltInForStub=yae});var Ig=j(gg=>{"use strict";m();T();h();Object.defineProperty(gg,"__esModule",{value:!0});gg.rewireTypes=void 0;var Sr=(Le(),Me(je)),c$=GA();function Nae(e,t){let n=Object.create(null);for(let N in e)n[N]=e[N];let r=Object.create(null);for(let N in n){let I=n[N];if(I==null||N.startsWith("__"))continue;let S=I.name;if(!S.startsWith("__")){if(r[S]!=null){console.warn(`Duplicate schema type name ${S} found; keeping the existing one found in the schema`);continue}r[S]=I}}for(let N in r)r[N]=u(r[N]);let i=t.map(N=>s(N));return{typeMap:r,directives:i};function s(N){if((0,Sr.isSpecifiedDirective)(N))return N;let I=N.toConfig();return I.args=o(I.args),new Sr.GraphQLDirective(I)}function o(N){let I={};for(let S in N){let C=N[S],V=y(C.type);V!=null&&(C.type=V,I[S]=C)}return I}function u(N){if((0,Sr.isObjectType)(N)){let I=N.toConfig(),S=Q(k({},I),{fields:()=>l(I.fields),interfaces:()=>p(I.interfaces)});return new Sr.GraphQLObjectType(S)}else if((0,Sr.isInterfaceType)(N)){let I=N.toConfig(),S=Q(k({},I),{fields:()=>l(I.fields)});return"interfaces"in S&&(S.interfaces=()=>p(I.interfaces)),new Sr.GraphQLInterfaceType(S)}else if((0,Sr.isUnionType)(N)){let I=N.toConfig(),S=Q(k({},I),{types:()=>p(I.types)});return new Sr.GraphQLUnionType(S)}else if((0,Sr.isInputObjectType)(N)){let I=N.toConfig(),S=Q(k({},I),{fields:()=>d(I.fields)});return new Sr.GraphQLInputObjectType(S)}else if((0,Sr.isEnumType)(N)){let I=N.toConfig();return new Sr.GraphQLEnumType(I)}else if((0,Sr.isScalarType)(N)){if((0,Sr.isSpecifiedScalarType)(N))return N;let I=N.toConfig();return new Sr.GraphQLScalarType(I)}throw new Error(`Unexpected schema type: ${N}`)}function l(N){let I={};for(let S in N){let C=N[S],V=y(C.type);V!=null&&C.args&&(C.type=V,C.args=o(C.args),I[S]=C)}return I}function d(N){let I={};for(let S in N){let C=N[S],V=y(C.type);V!=null&&(C.type=V,I[S]=C)}return I}function p(N){let I=[];for(let S of N){let C=y(S);C!=null&&I.push(C)}return I}function y(N){if((0,Sr.isListType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLList(I):null}else if((0,Sr.isNonNullType)(N)){let I=y(N.ofType);return I!=null?new Sr.GraphQLNonNull(I):null}else if((0,Sr.isNamedType)(N)){let I=n[N.name];return I===void 0&&(I=(0,c$.isNamedStub)(N)?(0,c$.getBuiltInForStub)(N):u(N),r[I.name]=n[N.name]=I),I!=null?r[I.name]:null}return null}}gg.rewireTypes=Nae});var QA=j(sa=>{"use strict";m();T();h();Object.defineProperty(sa,"__esModule",{value:!0});sa.parseInputValueLiteral=sa.parseInputValue=sa.serializeInputValue=sa.transformInputValue=void 0;var vg=(Le(),Me(je)),Eae=Xh();function Cp(e,t,n=null,r=null){if(t==null)return t;let i=(0,vg.getNullableType)(e);if((0,vg.isLeafType)(i))return n!=null?n(i,t):t;if((0,vg.isListType)(i))return(0,Eae.asArray)(t).map(s=>Cp(i.ofType,s,n,r));if((0,vg.isInputObjectType)(i)){let s=i.getFields(),o={};for(let u in t){let l=s[u];l!=null&&(o[u]=Cp(l.type,t[u],n,r))}return r!=null?r(i,o):o}}sa.transformInputValue=Cp;function gae(e,t){return Cp(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}sa.serializeInputValue=gae;function Iae(e,t){return Cp(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}sa.parseInputValue=Iae;function vae(e,t){return Cp(e,t,(n,r)=>n.parseLiteral(r,{}))}sa.parseInputValueLiteral=vae});var Bp=j(Mp=>{"use strict";m();T();h();Object.defineProperty(Mp,"__esModule",{value:!0});Mp.correctASTNodes=Mp.mapSchema=void 0;var yt=(Le(),Me(je)),Up=$A(),zt=Ql(),_ae=Ig(),l$=QA();function bae(e,t={}){let n=f$(p$(YA(d$(Oae(YA(d$(e.getTypeMap(),e,l$.serializeInputValue),e,t,u=>(0,yt.isLeafType)(u)),e,t),e,l$.parseInputValue),e,t,u=>!(0,yt.isLeafType)(u)),e,t),e,t),r=e.getDirectives(),i=Sae(r,e,t),{typeMap:s,directives:o}=(0,_ae.rewireTypes)(n,i);return new yt.GraphQLSchema(Q(k({},e.toConfig()),{query:(0,Up.getObjectTypeFromTypeMap)(s,(0,Up.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Up.getObjectTypeFromTypeMap)(s,(0,Up.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Up.getObjectTypeFromTypeMap)(s,(0,Up.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(s),directives:o}))}Mp.mapSchema=bae;function YA(e,t,n,r=()=>!0){let i={};for(let s in e)if(!s.startsWith("__")){let o=e[s];if(o==null||!r(o)){i[s]=o;continue}let u=Aae(t,n,s);if(u==null){i[s]=o;continue}let l=u(o,t);if(l===void 0){i[s]=o;continue}i[s]=l}return i}function Oae(e,t,n){let r=Pae(n);return r?YA(e,t,{[zt.MapperKind.ENUM_TYPE]:i=>{let s=i.toConfig(),o=s.values,u={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)u[l]=d;else if(Array.isArray(p)){let[y,N]=p;u[y]=N===void 0?d:N}else p!==null&&(u[l]=p)}return uT(new yt.GraphQLEnumType(Q(k({},s),{values:u})))}},i=>(0,yt.isEnumType)(i)):e}function d$(e,t,n){let r=f$(e,t,{[zt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let s=_g(e,i.type);if(s!=null)return Q(k({},i),{defaultValue:n(s,i.defaultValue)})}});return p$(r,t,{[zt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let s=_g(r,i.type);if(s!=null)return Q(k({},i),{defaultValue:n(s,i.defaultValue)})}})}function _g(e,t){if((0,yt.isListType)(t)){let n=_g(e,t.ofType);return n!=null?new yt.GraphQLList(n):null}else if((0,yt.isNonNullType)(t)){let n=_g(e,t.ofType);return n!=null?new yt.GraphQLNonNull(n):null}else if((0,yt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function p$(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)&&!(0,yt.isInputObjectType)(s)){r[i]=s;continue}let o=Fae(t,n,i);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=o(y,p,i,t);if(N===void 0)d[p]=y;else if(Array.isArray(N)){let[I,S]=N;S.astNode!=null&&(S.astNode=Q(k({},S.astNode),{name:Q(k({},S.astNode.name),{value:I})})),d[I]=S===void 0?y:S}else N!==null&&(d[p]=N)}(0,yt.isObjectType)(s)?r[i]=uT(new yt.GraphQLObjectType(Q(k({},u),{fields:d}))):(0,yt.isInterfaceType)(s)?r[i]=uT(new yt.GraphQLInterfaceType(Q(k({},u),{fields:d}))):r[i]=uT(new yt.GraphQLInputObjectType(Q(k({},u),{fields:d})))}return r}function f$(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let s=e[i];if(!(0,yt.isObjectType)(s)&&!(0,yt.isInterfaceType)(s)){r[i]=s;continue}let o=wae(n);if(o==null){r[i]=s;continue}let u=s.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p],N=y.args;if(N==null){d[p]=y;continue}let I=Object.keys(N);if(!I.length){d[p]=y;continue}let S={};for(let C of I){let V=N[C],G=o(V,p,i,t);if(G===void 0)S[C]=V;else if(Array.isArray(G)){let[re,se]=G;S[re]=se}else G!==null&&(S[C]=G)}d[p]=Q(k({},y),{args:S})}(0,yt.isObjectType)(s)?r[i]=new yt.GraphQLObjectType(Q(k({},u),{fields:d})):(0,yt.isInterfaceType)(s)?r[i]=new yt.GraphQLInterfaceType(Q(k({},u),{fields:d})):r[i]=new yt.GraphQLInputObjectType(Q(k({},u),{fields:d}))}return r}function Sae(e,t,n){let r=Lae(n);if(r==null)return e.slice();let i=[];for(let s of e){let o=r(s,t);o===void 0?i.push(s):o!==null&&i.push(o)}return i}function Dae(e,t){var i,s,o;let n=e.getType(t),r=[zt.MapperKind.TYPE];return(0,yt.isObjectType)(n)?(r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.QUERY):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(zt.MapperKind.ROOT_OBJECT,zt.MapperKind.SUBSCRIPTION)):(0,yt.isInputObjectType)(n)?r.push(zt.MapperKind.INPUT_OBJECT_TYPE):(0,yt.isInterfaceType)(n)?r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.ABSTRACT_TYPE,zt.MapperKind.INTERFACE_TYPE):(0,yt.isUnionType)(n)?r.push(zt.MapperKind.COMPOSITE_TYPE,zt.MapperKind.ABSTRACT_TYPE,zt.MapperKind.UNION_TYPE):(0,yt.isEnumType)(n)?r.push(zt.MapperKind.ENUM_TYPE):(0,yt.isScalarType)(n)&&r.push(zt.MapperKind.SCALAR_TYPE),r}function Aae(e,t,n){let r=Dae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function Rae(e,t){var i,s,o;let n=e.getType(t),r=[zt.MapperKind.FIELD];return(0,yt.isObjectType)(n)?(r.push(zt.MapperKind.COMPOSITE_FIELD,zt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.QUERY_ROOT_FIELD):t===((s=e.getMutationType())==null?void 0:s.name)?r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(zt.MapperKind.ROOT_FIELD,zt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,yt.isInterfaceType)(n)?r.push(zt.MapperKind.COMPOSITE_FIELD,zt.MapperKind.INTERFACE_FIELD):(0,yt.isInputObjectType)(n)&&r.push(zt.MapperKind.INPUT_OBJECT_FIELD),r}function Fae(e,t,n){let r=Rae(e,n),i,s=[...r];for(;!i&&s.length>0;){let o=s.pop();i=t[o]}return i!=null?i:null}function wae(e){let t=e[zt.MapperKind.ARGUMENT];return t!=null?t:null}function Lae(e){let t=e[zt.MapperKind.DIRECTIVE];return t!=null?t:null}function Pae(e){let t=e[zt.MapperKind.ENUM_VALUE];return t!=null?t:null}function uT(e){if((0,yt.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(k({},t.astNode),{kind:yt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(k({},n),{kind:yt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLObjectType(t)}else if((0,yt.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(k({},t.astNode),{kind:yt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(k({},n),{kind:yt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInterfaceType(t)}else if((0,yt.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(k({},t.astNode),{kind:yt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(k({},n),{kind:yt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new yt.GraphQLInputObjectType(t)}else if((0,yt.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=Q(k({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(k({},n),{values:void 0}))),new yt.GraphQLEnumType(t)}else return e}Mp.correctASTNodes=uT});var m$=j(Og=>{"use strict";m();T();h();Object.defineProperty(Og,"__esModule",{value:!0});Og.filterSchema=void 0;var bg=(Le(),Me(je)),za=Ql(),kae=Bp();function xae({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:s=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:u=void 0}){return(0,kae.mapSchema)(e,{[za.MapperKind.QUERY]:d=>JA(d,"Query",r,u),[za.MapperKind.MUTATION]:d=>JA(d,"Mutation",r,u),[za.MapperKind.SUBSCRIPTION]:d=>JA(d,"Subscription",r,u),[za.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?zA(bg.GraphQLObjectType,d,i||n,u):null,[za.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?zA(bg.GraphQLInterfaceType,d,s||n,u):null,[za.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?zA(bg.GraphQLInputObjectType,d,o||n):null,[za.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[za.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[za.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}Og.filterSchema=xae;function JA(e,t,n,r){if(n||r){let i=e.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t,s,i.fields[s]))delete i.fields[s];else if(r&&o.args)for(let u in o.args)r(t,s,u,o.args[u])||delete o.args[u]}return new bg.GraphQLObjectType(i)}return e}function zA(e,t,n,r){if(n||r){let i=t.toConfig();for(let s in i.fields){let o=i.fields[s];if(n&&!n(t.name,s,i.fields[s]))delete i.fields[s];else if(r&&"args"in o)for(let u in o.args)r(t.name,s,u,o.args[u])||delete o.args[u]}return new e(i)}}});var T$=j(Vp=>{"use strict";m();T();h();Object.defineProperty(Vp,"__esModule",{value:!0});Vp.healTypes=Vp.healSchema=void 0;var oa=(Le(),Me(je));function Cae(e){return h$(e.getTypeMap(),e.getDirectives()),e}Vp.healSchema=Cae;function h$(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let y=p.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,oa.isObjectType)(d)){i(d),s(d);return}else if((0,oa.isInterfaceType)(d)){i(d),"getInterfaces"in d&&s(d);return}else if((0,oa.isUnionType)(d)){u(d);return}else if((0,oa.isInputObjectType)(d)){o(d);return}else if((0,oa.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.args.map(I=>(I.type=l(I.type),I.type===null?null:I)).filter(Boolean),N.type=l(N.type),N.type===null&&delete p[y]}function s(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[y,N]of Object.entries(p))N.type=l(N.type),N.type===null&&delete p[y]}function u(d){let p=d.getTypes();p.push(...p.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,oa.isListType)(d)){let p=l(d.ofType);return p!=null?new oa.GraphQLList(p):null}else if((0,oa.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new oa.GraphQLNonNull(p):null}else if((0,oa.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}Vp.healTypes=h$});var y$=j(Sg=>{"use strict";m();T();h();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.getResolversFromSchema=void 0;var Yl=(Le(),Me(je));function Uae(e,t){var i,s;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let u=r[o];if((0,Yl.isScalarType)(u)){if(!(0,Yl.isSpecifiedScalarType)(u)){let l=u.toConfig();delete l.astNode,n[o]=new Yl.GraphQLScalarType(l)}}else if((0,Yl.isEnumType)(u)){n[o]={};let l=u.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,Yl.isInterfaceType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Yl.isUnionType)(u))u.resolveType!=null&&(n[o]={__resolveType:u.resolveType});else if((0,Yl.isObjectType)(u)){n[o]={},u.isTypeOf!=null&&(n[o].__isTypeOf=u.isTypeOf);let l=u.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((s=p.resolve)==null?void 0:s.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}Sg.getResolversFromSchema=Uae});var E$=j(Dg=>{"use strict";m();T();h();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.forEachField=void 0;var N$=(Le(),Me(je));function Mae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,N$.getNamedType)(i).name.startsWith("__")&&(0,N$.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];t(u,r,o)}}}}Dg.forEachField=Mae});var g$=j(Ag=>{"use strict";m();T();h();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.forEachDefaultValue=void 0;var HA=(Le(),Me(je));function Bae(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,HA.getNamedType)(i).name.startsWith("__")){if((0,HA.isObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];for(let l of u.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,HA.isInputObjectType)(i)){let s=i.getFields();for(let o in s){let u=s[o];u.defaultValue=t(u.type,u.defaultValue)}}}}}Ag.forEachDefaultValue=Bae});var ZA=j(Rg=>{"use strict";m();T();h();Object.defineProperty(Rg,"__esModule",{value:!0});Rg.addTypes=void 0;var WA=(Le(),Me(je)),XA=$A(),Vae=Ig();function jae(e,t){let n=e.toConfig(),r={};for(let u of n.types)r[u.name]=u;let i={};for(let u of n.directives)i[u.name]=u;for(let u of t)(0,WA.isNamedType)(u)?r[u.name]=u:(0,WA.isDirective)(u)&&(i[u.name]=u);let{typeMap:s,directives:o}=(0,Vae.rewireTypes)(r,Object.values(i));return new WA.GraphQLSchema(Q(k({},n),{query:(0,XA.getObjectTypeFromTypeMap)(s,e.getQueryType()),mutation:(0,XA.getObjectTypeFromTypeMap)(s,e.getMutationType()),subscription:(0,XA.getObjectTypeFromTypeMap)(s,e.getSubscriptionType()),types:Object.values(s),directives:o}))}Rg.addTypes=jae});var v$=j(wg=>{"use strict";m();T();h();Object.defineProperty(wg,"__esModule",{value:!0});wg.pruneSchema=void 0;var kr=(Le(),Me(je)),$ae=DA(),qae=Ql(),Kae=Bp(),Gae=nT();function Qae(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:s,skipUnusedTypesPruning:o}=t,u=[],l=e;do{let d=Yae(l);if(i){let p=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let N=l.getType(y);N&&i(N)&&p.push(y)}d=I$(p,l,d)}u=[],l=(0,Kae.mapSchema)(l,{[qae.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,kr.isSpecifiedScalarType)(p)?((0,kr.isUnionType)(p)||(0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p)||(0,kr.isScalarType)(p))&&(o||(0,kr.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,kr.isInputObjectType)(p)||(0,kr.isInterfaceType)(p)||(0,kr.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,kr.isInterfaceType)(p)&&s)?p:(u.push(p.name),d.delete(p.name),null):p})}while(u.length);return l}wg.pruneSchema=Qae;function Yae(e){let t=[];for(let n of(0,Gae.getRootTypes)(e))t.push(n.name);return I$(t,e)}function I$(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let s=t.getType(i);if(s){if((0,kr.isUnionType)(s)&&e.push(...s.getTypes().map(o=>o.name)),(0,kr.isInterfaceType)(s)&&r[i]===!0&&(e.push(...(0,$ae.getImplementingTypes)(s.name,t)),r[i]=!1),(0,kr.isEnumType)(s)&&e.push(...s.getValues().flatMap(o=>o.astNode?Fg(t,o.astNode):[])),"getInterfaces"in s&&e.push(...s.getInterfaces().map(o=>o.name)),"getFields"in s){let o=s.getFields(),u=Object.entries(o);if(!u.length)continue;for(let[,l]of u){(0,kr.isObjectType)(s)&&e.push(...l.args.flatMap(p=>{let y=[(0,kr.getNamedType)(p.type).name];return p.astNode&&y.push(...Fg(t,p.astNode)),y}));let d=(0,kr.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...Fg(t,l.astNode)),(0,kr.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}s.astNode&&e.push(...Fg(t,s.astNode)),n.add(i)}}return n}function Fg(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,s;return(s=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,kr.getNamedType)(o.type).name))!=null?s:[]})}});var b$=j(Lg=>{"use strict";m();T();h();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.mergeDeep=void 0;var Jae=Xh();function _$(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let s of e)if(eR(r)&&eR(s)){if(t){let o=Object.getPrototypeOf(i),u=Object.getPrototypeOf(s);if(u)for(let l of Object.getOwnPropertyNames(u)){let d=Object.getOwnPropertyDescriptor(u,l);(0,Jae.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in s)eR(s[o])?o in i?i[o]=_$([i[o],s[o]],t,n):Object.assign(i,{[o]:s[o]}):n&&Array.isArray(i[o])?Array.isArray(s[o])?i[o].push(...s[o]):i[o].push(s[o]):Object.assign(i,{[o]:s[o]})}else if(n&&Array.isArray(r))Array.isArray(s)?r.push(...s):r.push(s);else if(n&&Array.isArray(s))return[r,...s];return i}Lg.mergeDeep=_$;function eR(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var O$=j(Pg=>{"use strict";m();T();h();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.parseSelectionSet=void 0;var zae=(Le(),Me(je));function Hae(e,t){return(0,zae.parse)(e,t).definitions[0].selectionSet}Pg.parseSelectionSet=Hae});var S$=j(kg=>{"use strict";m();T();h();Object.defineProperty(kg,"__esModule",{value:!0});kg.getResponseKeyFromInfo=void 0;function Wae(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}kg.getResponseKeyFromInfo=Wae});var D$=j(aa=>{"use strict";m();T();h();Object.defineProperty(aa,"__esModule",{value:!0});aa.modifyObjectFields=aa.selectObjectFields=aa.removeObjectFields=aa.appendObjectFields=void 0;var xg=(Le(),Me(je)),Xae=ZA(),Cg=Ql(),Jl=Bp();function Zae(e,t,n){return e.getType(t)==null?(0,Xae.addTypes)(e,[new xg.GraphQLObjectType({name:t,fields:n})]):(0,Jl.mapSchema)(e,{[Cg.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),s=i.fields,o={};for(let u in s)o[u]=s[u];for(let u in n)o[u]=n[u];return(0,Jl.correctASTNodes)(new xg.GraphQLObjectType(Q(k({},i),{fields:o})))}}})}aa.appendObjectFields=Zae;function eue(e,t,n){let r={};return[(0,Jl.mapSchema)(e,{[Cg.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let o=s.toConfig(),u=o.fields,l={};for(let d in u){let p=u[d];n(d,p)?r[d]=p:l[d]=p}return(0,Jl.correctASTNodes)(new xg.GraphQLObjectType(Q(k({},o),{fields:l})))}}}),r]}aa.removeObjectFields=eue;function tue(e,t,n){let r={};return(0,Jl.mapSchema)(e,{[Cg.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let u in o){let l=o[u];n(u,l)&&(r[u]=l)}}}}),r}aa.selectObjectFields=tue;function nue(e,t,n,r){let i={};return[(0,Jl.mapSchema)(e,{[Cg.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let u=o.toConfig(),l=u.fields,d={};for(let p in l){let y=l[p];n(p,y)?i[p]=y:d[p]=y}for(let p in r){let y=r[p];d[p]=y}return(0,Jl.correctASTNodes)(new xg.GraphQLObjectType(Q(k({},u),{fields:d})))}}}),i]}aa.modifyObjectFields=nue});var A$=j(Ug=>{"use strict";m();T();h();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.renameType=void 0;var Qs=(Le(),Me(je));function rue(e,t){if((0,Qs.isObjectType)(e))return new Qs.GraphQLObjectType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));if((0,Qs.isInterfaceType)(e))return new Qs.GraphQLInterfaceType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));if((0,Qs.isUnionType)(e))return new Qs.GraphQLUnionType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));if((0,Qs.isInputObjectType)(e))return new Qs.GraphQLInputObjectType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));if((0,Qs.isEnumType)(e))return new Qs.GraphQLEnumType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));if((0,Qs.isScalarType)(e))return new Qs.GraphQLScalarType(Q(k({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(k({},e.astNode),{name:Q(k({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(k({},n),{name:Q(k({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}Ug.renameType=rue});var w$=j(Mg=>{"use strict";m();T();h();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.mapAsyncIterator=void 0;var iue=eT();function sue(e,t,n,r){let i,s,o;r&&(o=d=>{let p=r();return(0,iue.isPromise)(p)?p.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,s=d=>{let p=()=>Promise.reject(d);return i.call(e).then(p,p)});function u(d){return d.done?o?o(d):d:R$(d.value,t).then(F$,s)}let l;if(n){let d=n;l=p=>R$(p,d).then(F$,s)}return{next(){return e.next().then(u,l)},return(){let d=i?i.call(e).then(u,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(u,l):Promise.reject(d).catch(s)},[Symbol.asyncIterator](){return this}}}Mg.mapAsyncIterator=sue;function R$(e,t){return new Promise(n=>n(t(e)))}function F$(e){return{value:e,done:!1}}});var L$=j(jp=>{"use strict";m();T();h();Object.defineProperty(jp,"__esModule",{value:!0});jp.createVariableNameGenerator=jp.updateArgument=void 0;var zl=(Le(),Me(je)),oue=RA();function aue(e,t,n,r,i,s,o){if(e[r]={kind:zl.Kind.ARGUMENT,name:{kind:zl.Kind.NAME,value:r},value:{kind:zl.Kind.VARIABLE,name:{kind:zl.Kind.NAME,value:i}}},t[i]={kind:zl.Kind.VARIABLE_DEFINITION,variable:{kind:zl.Kind.VARIABLE,name:{kind:zl.Kind.NAME,value:i}},type:(0,oue.astFromType)(s)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}jp.updateArgument=aue;function uue(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}jp.createVariableNameGenerator=uue});var P$=j(Bg=>{"use strict";m();T();h();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.implementsAbstractType=void 0;var tR=(Le(),Me(je));function cue(e,t,n){return n==null||t==null?!1:t===n?!0:(0,tR.isCompositeType)(t)&&(0,tR.isCompositeType)(n)?(0,tR.doTypesOverlap)(e,t,n):!1}Bg.implementsAbstractType=cue});var k$=j(Vg=>{"use strict";m();T();h();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.observableToAsyncIterable=void 0;function lue(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},s=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},u=()=>new Promise(p=>{if(n.length!==0){let y=n.shift();p(y)}else t.push(p)}),l=e.subscribe({next(p){i(p)},error(p){s(p)},complete(){o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?u():this.return()},return(){return d(),Promise.resolve({value:void 0,done:!0})},throw(p){return d(),Promise.reject(p)},[Symbol.asyncIterator](){return this}}}Vg.observableToAsyncIterable=lue});var x$=j(jg=>{"use strict";m();T();h();Object.defineProperty(jg,"__esModule",{value:!0});jg.AccumulatorMap=void 0;var nR=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};jg.AccumulatorMap=nR});var rR=j($p=>{"use strict";m();T();h();Object.defineProperty($p,"__esModule",{value:!0});$p.GraphQLStreamDirective=$p.GraphQLDeferDirective=void 0;var Ys=(Le(),Me(je));$p.GraphQLDeferDirective=new Ys.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Ys.DirectiveLocation.FRAGMENT_SPREAD,Ys.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ys.GraphQLNonNull(Ys.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Ys.GraphQLString,description:"Unique name"}}});$p.GraphQLStreamDirective=new Ys.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Ys.DirectiveLocation.FIELD],args:{if:{type:new Ys.GraphQLNonNull(Ys.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Ys.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Ys.GraphQLInt,description:"Number of items to return immediately"}}})});var oR=j(Qi=>{"use strict";m();T();h();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.collectSubFields=Qi.getDeferValues=Qi.getFieldEntryKey=Qi.doesFragmentConditionMatch=Qi.shouldIncludeNode=Qi.collectFields=void 0;var ua=(Le(),Me(je)),qg=x$(),due=rR(),pue=Pp();function qp(e,t,n,r,i,s,o,u){for(let l of i.selections)switch(l.kind){case ua.Kind.FIELD:{if(!$g(n,l))continue;s.add(C$(l),l);break}case ua.Kind.INLINE_FRAGMENT:{if(!$g(n,l)||!iR(e,l,r))continue;let d=sR(n,l);if(d){let p=new qg.AccumulatorMap;qp(e,t,n,r,l.selectionSet,p,o,u),o.push({label:d.label,fields:p})}else qp(e,t,n,r,l.selectionSet,s,o,u);break}case ua.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!$g(n,l))continue;let p=sR(n,l);if(u.has(d)&&!p)continue;let y=t[d];if(!y||!iR(e,y,r))continue;if(p||u.add(d),p){let N=new qg.AccumulatorMap;qp(e,t,n,r,y.selectionSet,N,o,u),o.push({label:p.label,fields:N})}else qp(e,t,n,r,y.selectionSet,s,o,u);break}}}function fue(e,t,n,r,i){let s=new qg.AccumulatorMap,o=[];return qp(e,t,n,r,i,s,o,new Set),{fields:s,patches:o}}Qi.collectFields=fue;function $g(e,t){let n=(0,ua.getDirectiveValues)(ua.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,ua.getDirectiveValues)(ua.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Qi.shouldIncludeNode=$g;function iR(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,ua.typeFromAST)(e,r);return i===n?!0:(0,ua.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Qi.doesFragmentConditionMatch=iR;function C$(e){return e.alias?e.alias.value:e.name.value}Qi.getFieldEntryKey=C$;function sR(e,t){let n=(0,ua.getDirectiveValues)(due.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Qi.getDeferValues=sR;Qi.collectSubFields=(0,pue.memoize5)(function(t,n,r,i,s){let o=new qg.AccumulatorMap,u=new Set,l=[],d={fields:o,patches:l};for(let p of s)p.selectionSet&&qp(t,n,r,i,p.selectionSet,o,l,u);return d})});var aR=j(Kp=>{"use strict";m();T();h();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.getOperationASTFromRequest=Kp.getOperationASTFromDocument=void 0;var mue=(Le(),Me(je)),hue=Pp();function U$(e,t){let n=(0,mue.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Kp.getOperationASTFromDocument=U$;Kp.getOperationASTFromRequest=(0,hue.memoize1)(function(t){return U$(t.document,t.operationName)})});var V$=j(kc=>{"use strict";m();T();h();Object.defineProperty(kc,"__esModule",{value:!0});kc.visitResult=kc.visitErrors=kc.visitData=void 0;var Pc=(Le(),Me(je)),uR=oR(),Tue=aR();function cR(e,t,n){if(Array.isArray(e))return e.map(r=>cR(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let s=r[i];Object.defineProperty(r,i,{value:cR(s,t,n)})}return n!=null?n(r):r}return e}kc.visitData=cR;function yue(e,t){return e.map(n=>t(n))}kc.visitErrors=yue;function Nue(e,t,n,r,i){let s=t.document.definitions.reduce((N,I)=>(I.kind===Pc.Kind.FRAGMENT_DEFINITION&&(N[I.name.value]=I),N),{}),o=t.variables||{},u={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,y=(0,Tue.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=Iue(l,y,n,s,o,r,p?d:void 0,u)),d!=null&&i&&(e.errors=Eue(d,i,u)),e}kc.visitResult=Nue;function Eue(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,s=t.__unpathed;return e.map(o=>{let u=r.get(o),l=u==null?o:u.reduceRight((d,p)=>{let y=p.type.name,N=t[y];if(N==null)return d;let I=N[p.fieldName];return I==null?d:I(d,p.pathIndex)},o);return s&&i.has(o)?s(l):l})}function gue(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Iue(e,t,n,r,i,s,o,u){let l=gue(n,t),{fields:d}=(0,uR.collectFields)(n,r,i,l,t.selectionSet);return lR(e,l,d,n,r,i,s,0,o,u)}function lR(e,t,n,r,i,s,o,u,l,d){var re;let p=t.getFields(),y=o==null?void 0:o[t.name],N=y==null?void 0:y.__enter,I=N!=null?N(e):e,S,C=null;if(l!=null){S=_ue(l,u),C=S.errorMap;for(let se of S.unpathedErrors)d.unpathedErrors.add(se)}for(let[se,fe]of n){let he=fe[0].name.value,Ce=(re=p[he])==null?void 0:re.type;if(Ce==null)switch(he){case"__typename":Ce=Pc.TypeNameMetaFieldDef.type;break;case"__schema":Ce=Pc.SchemaMetaFieldDef.type;break;case"__type":Ce=Pc.TypeMetaFieldDef.type;break}let ht=u+1,xt;C&&(xt=C[se],xt!=null&&delete C[se],bue(t,he,ht,xt,d));let B=B$(e[se],Ce,fe,r,i,s,o,ht,xt,d);M$(I,se,B,y,he)}let V=I.__typename;if(V!=null&&M$(I,"__typename",V,y,"__typename"),C)for(let se in C){let fe=C[se];for(let he of fe)d.unpathedErrors.add(he)}let G=y==null?void 0:y.__leave;return G!=null?G(I):I}function M$(e,t,n,r,i){if(r==null){e[t]=n;return}let s=r[i];if(s==null){e[t]=n;return}let o=s(n);if(o===void 0){delete e[t];return}e[t]=o}function vue(e,t,n,r,i,s,o,u,l,d){return e.map(p=>B$(p,t,n,r,i,s,o,u+1,l,d))}function B$(e,t,n,r,i,s,o,u,l=[],d){if(e==null)return e;let p=(0,Pc.getNullableType)(t);if((0,Pc.isListType)(p))return vue(e,p.ofType,n,r,i,s,o,u,l,d);if((0,Pc.isAbstractType)(p)){let I=r.getType(e.__typename),{fields:S}=(0,uR.collectSubFields)(r,i,s,I,n);return lR(e,I,S,r,i,s,o,u,l,d)}else if((0,Pc.isObjectType)(p)){let{fields:I}=(0,uR.collectSubFields)(r,i,s,p,n);return lR(e,p,I,r,i,s,o,u,l,d)}let y=o==null?void 0:o[p.name];if(y==null)return e;let N=y(e);return N===void 0?e:N}function _ue(e,t){var i;let n=Object.create(null),r=new Set;for(let s of e){let o=(i=s.path)==null?void 0:i[t];if(o==null){r.add(s);continue}o in n?n[o].push(s):n[o]=[s]}return{errorMap:n,unpathedErrors:r}}function bue(e,t,n,r=[],i){for(let s of r){let o={type:e,fieldName:t,pathIndex:n},u=i.segmentInfoMap.get(s);u==null?i.segmentInfoMap.set(s,[o]):u.push(o)}}});var j$=j(Kg=>{"use strict";m();T();h();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.valueMatchesCriteria=void 0;function dR(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>dR(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>dR(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}Kg.valueMatchesCriteria=dR});var $$=j(Gg=>{"use strict";m();T();h();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.isAsyncIterable=void 0;function Oue(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}Gg.isAsyncIterable=Oue});var q$=j(Qg=>{"use strict";m();T();h();Object.defineProperty(Qg,"__esModule",{value:!0});Qg.isDocumentNode=void 0;var Sue=(Le(),Me(je));function Due(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Sue.Kind.DOCUMENT}Qg.isDocumentNode=Due});var K$=j(()=>{"use strict";m();T();h()});var J$=j(xc=>{"use strict";m();T();h();Object.defineProperty(xc,"__esModule",{value:!0});xc.withCancel=xc.getAsyncIterableWithCancel=xc.getAsyncIteratorWithCancel=void 0;var Aue=Pp();function Rue(e){return yr(this,null,function*(){return{value:e,done:!0}})}var G$=(0,Aue.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Q$(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let s=Reflect.get(n,r,i);if(r==="return"){let o=s||Rue;return function(l){return yr(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof s=="function")return G$(n,s);return s}})}xc.getAsyncIteratorWithCancel=Q$;function Y$(e,t){return new Proxy(e,{get(n,r,i){let s=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let u=Reflect.apply(s,n,[]);return Q$(u,t)}:typeof s=="function"?G$(n,s):s}})}xc.getAsyncIterableWithCancel=Y$;xc.withCancel=Y$});var z$=j(Yg=>{"use strict";m();T();h();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.fixSchemaAst=void 0;var Fue=(Le(),Me(je)),wue=CA();function Lue(e,t){let n=(0,wue.getDocumentNodeFromSchema)(e);return(0,Fue.buildASTSchema)(n,k({},t||{}))}function Pue(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=Lue(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}Yg.fixSchemaAst=Pue});var H$=j(Jg=>{"use strict";m();T();h();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.extractExtensionsFromSchema=void 0;var Ha=Ql(),kue=Bp();function vo(e={}){let t=k({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function xue(e){let t={schemaExtensions:vo(e.extensions),types:{}};return(0,kue.mapSchema)(e,{[Ha.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:vo(n.extensions)},n),[Ha.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:vo(n.extensions)},n),[Ha.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:vo(n.extensions)};let s=n.args;if(s!=null)for(let o in s)t.types[i].fields[r].arguments[o]=vo(s[o].extensions);return n},[Ha.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:vo(n.extensions)},n),[Ha.MapperKind.ENUM_VALUE]:(n,r,i,s)=>(t.types[r].values[s]=vo(n.extensions),n),[Ha.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:vo(n.extensions)},n),[Ha.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:vo(n.extensions)},n),[Ha.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:vo(n.extensions)},n),[Ha.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:vo(n.extensions)},n)}),t}Jg.extractExtensionsFromSchema=xue});var W$=j(Cc=>{"use strict";m();T();h();Object.defineProperty(Cc,"__esModule",{value:!0});Cc.printPathArray=Cc.pathToArray=Cc.addPath=void 0;function Cue(e,t,n){return{prev:e,key:t,typename:n}}Cc.addPath=Cue;function Uue(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Cc.pathToArray=Uue;function Mue(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Cc.printPathArray=Mue});var X$=j(pR=>{"use strict";m();T();h();function zg(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();h();Object.defineProperty(Hg,"__esModule",{value:!0});Hg.mergeIncrementalResult=void 0;var fR=X$();function Z$({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,fR.dset)(t,n,i),n[n.length-1]++;e.data&&(0,fR.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,fR.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{Z$({incrementalResult:i,executionResult:t})})}Hg.mergeIncrementalResult=Z$});var nq=j(Gp=>{"use strict";m();T();h();Object.defineProperty(Gp,"__esModule",{value:!0});Gp.debugTimerEnd=Gp.debugTimerStart=void 0;var tq=new Set;function Vue(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(tq.add(e),console.time(e))}Gp.debugTimerStart=Vue;function jue(e){tq.has(e)&&console.timeEnd(e)}Gp.debugTimerEnd=jue});var _o=j(Ze=>{"use strict";m();T();h();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.inspect=void 0;var nt=(c1(),Me(u1));nt.__exportStar(l1(),Ze);nt.__exportStar(Xh(),Ze);nt.__exportStar(bA(),Ze);nt.__exportStar(OA(),Ze);nt.__exportStar(g1(),Ze);nt.__exportStar(DA(),Ze);nt.__exportStar(CA(),Ze);nt.__exportStar(OA(),Ze);nt.__exportStar(U1(),Ze);nt.__exportStar(M1(),Ze);nt.__exportStar(W1(),Ze);nt.__exportStar(s$(),Ze);nt.__exportStar(a$(),Ze);nt.__exportStar(m$(),Ze);nt.__exportStar(T$(),Ze);nt.__exportStar(y$(),Ze);nt.__exportStar(E$(),Ze);nt.__exportStar(g$(),Ze);nt.__exportStar(Bp(),Ze);nt.__exportStar(ZA(),Ze);nt.__exportStar(Ig(),Ze);nt.__exportStar(v$(),Ze);nt.__exportStar(b$(),Ze);nt.__exportStar(Ql(),Ze);nt.__exportStar(GA(),Ze);nt.__exportStar(O$(),Ze);nt.__exportStar(S$(),Ze);nt.__exportStar(D$(),Ze);nt.__exportStar(A$(),Ze);nt.__exportStar(QA(),Ze);nt.__exportStar(w$(),Ze);nt.__exportStar(L$(),Ze);nt.__exportStar(P$(),Ze);nt.__exportStar(ng(),Ze);nt.__exportStar(k$(),Ze);nt.__exportStar(V$(),Ze);nt.__exportStar(_A(),Ze);nt.__exportStar(j$(),Ze);nt.__exportStar($$(),Ze);nt.__exportStar(q$(),Ze);nt.__exportStar(lg(),Ze);nt.__exportStar(K$(),Ze);nt.__exportStar(J$(),Ze);nt.__exportStar(nT(),Ze);nt.__exportStar(MA(),Ze);nt.__exportStar(oR(),Ze);var $ue=Zh();Object.defineProperty(Ze,"inspect",{enumerable:!0,get:function(){return $ue.inspect}});nt.__exportStar(Pp(),Ze);nt.__exportStar(z$(),Ze);nt.__exportStar(aR(),Ze);nt.__exportStar(H$(),Ze);nt.__exportStar(W$(),Ze);nt.__exportStar(eT(),Ze);nt.__exportStar(rR(),Ze);nt.__exportStar(eq(),Ze);nt.__exportStar(nq(),Ze)});var iq=j(Wg=>{"use strict";m();T();h();Object.defineProperty(Wg,"__esModule",{value:!0});Wg.mergeResolvers=void 0;var que=_o();function rq(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=rq(i)),typeof i=="object"&&i&&n.push(i);let r=(0,que.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[s,o]=i.split(".");!o||o==="*"?delete r[s]:r[s]&&delete r[s][o]}return r}Wg.mergeResolvers=rq});var mR=j(Xg=>{"use strict";m();T();h();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.mergeArguments=void 0;var sq=_o();function Kue(e,t,n){let r=Gue([...t,...e].filter(sq.isSome),n);return n&&n.sort&&r.sort(sq.compareNodes),r}Xg.mergeArguments=Kue;function Gue(e,t){return e.reduce((n,r)=>{let i=n.findIndex(s=>s.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Js=j(Qp=>{"use strict";m();T();h();Object.defineProperty(Qp,"__esModule",{value:!0});Qp.mergeDirective=Qp.mergeDirectives=void 0;var oq=(Le(),Me(je)),Que=_o();function Yue(e,t){return!!e.find(n=>n.name.value===t.name.value)}function aq(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Jue(e,t){return t.some(({value:n})=>n===e.value)}function uq(e,t){let n=[...t];for(let r of e){let i=n.findIndex(s=>s.name.value===r.name.value);if(i>-1){let s=n[i];if(s.value.kind==="ListValue"){let o=s.value.values,u=r.value.values;s.value.values=Zue(o,u,(l,d)=>{let p=l.value;return!p||!d.some(y=>y.value===p)})}else s.value=r.value}else n.push(r)}return n}function zue(e,t){return e.map((n,r,i)=>{let s=i.findIndex(o=>o.name.value===n.name.value);if(s!==r&&!aq(n,t)){let o=i[s];return n.arguments=uq(n.arguments,o.arguments),null}return n}).filter(Que.isSome)}function Hue(e=[],t=[],n,r){let i=n&&n.reverseDirectives,s=i?e:t,o=i?t:e,u=zue([...s],r);for(let l of o)if(Yue(u,l)&&!aq(l,r)){let d=u.findIndex(y=>y.name.value===l.name.value),p=u[d];u[d].arguments=uq(l.arguments||[],p.arguments||[])}else u.push(l);return u}Qp.mergeDirectives=Hue;function Wue(e,t){let n=(0,oq.print)(Q(k({},e),{description:void 0})),r=(0,oq.print)(Q(k({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${r} Received directive: - ${n}`)}function Mue(e,t){return t?(Uue(e,t),G(k({},e),{locations:[...t.locations,...e.locations.filter(n=>!kue(n,t.locations))]})):e}Vp.mergeDirective=Mue;function Bue(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var aR=j(Yg=>{"use strict";m();T();h();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.mergeEnumValues=void 0;var Vue=Js(),jue=_o();function $ue(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,Vue.mergeDirectives)(o.directives,l.directives,r)}else i.set(u,o)}let s=[...i.values()];return n&&n.sort&&s.sort(jue.compareNodes),s}Yg.mergeEnumValues=$ue});var uR=j(Jg=>{"use strict";m();T();h();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.mergeEnum=void 0;var que=(Le(),Me(je)),Kue=Js(),Gue=aR();function Que(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,Kue.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Gue.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?G(k({},e),{kind:que.Kind.ENUM_TYPE_DEFINITION}):e}Jg.mergeEnum=Que});var zg=j(gr=>{"use strict";m();T();h();Object.defineProperty(gr,"__esModule",{value:!0});gr.defaultStringComparator=gr.CompareVal=gr.printTypeNode=gr.isNonNullTypeNode=gr.isListTypeNode=gr.isWrappingTypeNode=gr.extractType=gr.isSourceTypes=gr.isStringTypes=void 0;var rT=(Le(),Me(je));function Yue(e){return typeof e=="string"}gr.isStringTypes=Yue;function Jue(e){return e instanceof rT.Source}gr.isSourceTypes=Jue;function zue(e){let t=e;for(;t.kind===rT.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}gr.extractType=zue;function Hue(e){return e.kind!==rT.Kind.NAMED_TYPE}gr.isWrappingTypeNode=Hue;function H$(e){return e.kind===rT.Kind.LIST_TYPE}gr.isListTypeNode=H$;function W$(e){return e.kind===rT.Kind.NON_NULL_TYPE}gr.isNonNullTypeNode=W$;function cR(e){return H$(e)?`[${cR(e.type)}]`:W$(e)?`${cR(e.type)}!`:e.name.value}gr.printTypeNode=cR;var Kl;(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"})(Kl=gr.CompareVal||(gr.CompareVal={}));function Wue(e,t){return e==null&&t==null?Kl.A_EQUALS_B:e==null?Kl.A_SMALLER_THAN_B:t==null?Kl.A_GREATER_THAN_B:et?Kl.A_GREATER_THAN_B:Kl.A_EQUALS_B}gr.defaultStringComparator=Wue});var sT=j(Hg=>{"use strict";m();T();h();Object.defineProperty(Hg,"__esModule",{value:!0});Hg.mergeFields=void 0;var Yi=zg(),Xue=Js(),Zue=_o(),ece=oR();function tce(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function nce(e,t,n,r,i){let s=[];if(n!=null&&s.push(...n),t!=null)for(let o of t){let[u,l]=tce(s,o);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,o,e,r==null?void 0:r.throwOnConflict)||rce(e,u,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,ece.mergeArguments)(o.arguments||[],u.arguments||[],r),d.directives=(0,Xue.mergeDirectives)(o.directives,u.directives,r,i),d.description=o.description||u.description,s[l]=d}else s.push(o)}if(r&&r.sort&&s.sort(Zue.compareNodes),r&&r.exclusions){let o=r.exclusions;return s.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return s}Hg.mergeFields=nce;function rce(e,t,n,r=!1){let i=(0,Yi.printTypeNode)(t.type),s=(0,Yi.printTypeNode)(n.type);if(i!==s){let o=(0,Yi.extractType)(t.type),u=(0,Yi.extractType)(n.type);if(o.name.value!==u.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${u.name.value}"`);if(!iT(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return(0,Yi.isNonNullTypeNode)(n.type)&&!(0,Yi.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function iT(e,t,n=!1){if(!(0,Yi.isWrappingTypeNode)(e)&&!(0,Yi.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Yi.isNonNullTypeNode)(t)){let r=(0,Yi.isNonNullTypeNode)(e)?e.type:e;return iT(r,t.type)}return(0,Yi.isNonNullTypeNode)(e)?iT(t,e,n):(0,Yi.isListTypeNode)(e)?(0,Yi.isListTypeNode)(t)&&iT(e.type,t.type)||(0,Yi.isNonNullTypeNode)(t)&&iT(e,t.type):!1}});var lR=j(Wg=>{"use strict";m();T();h();Object.defineProperty(Wg,"__esModule",{value:!0});Wg.mergeInputType=void 0;var ice=(Le(),Me(je)),sce=sT(),oce=Js();function ace(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,sce.mergeFields)(e,e.fields,t.fields,n),directives:(0,oce.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?G(k({},e),{kind:ice.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}Wg.mergeInputType=ace});var oT=j(Xg=>{"use strict";m();T();h();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.mergeNamedTypeArray=void 0;var uce=_o();function cce(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lce(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!cce(t,i))];return n&&n.sort&&r.sort(uce.compareNodes),r}Xg.mergeNamedTypeArray=lce});var dR=j(Zg=>{"use strict";m();T();h();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.mergeInterface=void 0;var dce=(Le(),Me(je)),pce=sT(),fce=Js(),mce=oT();function hce(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,pce.mergeFields)(e,e.fields,t.fields,n),directives:(0,fce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,mce.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?G(k({},e),{kind:dce.Kind.INTERFACE_TYPE_DEFINITION}):e}Zg.mergeInterface=hce});var pR=j(eI=>{"use strict";m();T();h();Object.defineProperty(eI,"__esModule",{value:!0});eI.mergeType=void 0;var Tce=(Le(),Me(je)),yce=sT(),Nce=Js(),Ece=oT();function gce(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,yce.mergeFields)(e,e.fields,t.fields,n),directives:(0,Nce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,Ece.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?G(k({},e),{kind:Tce.Kind.OBJECT_TYPE_DEFINITION}):e}eI.mergeType=gce});var fR=j(tI=>{"use strict";m();T();h();Object.defineProperty(tI,"__esModule",{value:!0});tI.mergeScalar=void 0;var Ice=(Le(),Me(je)),vce=Js();function _ce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,vce.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?G(k({},e),{kind:Ice.Kind.SCALAR_TYPE_DEFINITION}):e}tI.mergeScalar=_ce});var hR=j(nI=>{"use strict";m();T();h();Object.defineProperty(nI,"__esModule",{value:!0});nI.mergeUnion=void 0;var mR=(Le(),Me(je)),bce=Js(),Oce=oT();function Sce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,bce.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?mR.Kind.UNION_TYPE_DEFINITION:mR.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Oce.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?G(k({},e),{kind:mR.Kind.UNION_TYPE_DEFINITION}):e}nI.mergeUnion=Sce});var TR=j(Gl=>{"use strict";m();T();h();Object.defineProperty(Gl,"__esModule",{value:!0});Gl.mergeSchemaDefs=Gl.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var aT=(Le(),Me(je)),Dce=Js();Gl.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function Ace(e=[],t=[]){let n=[];for(let r in Gl.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(s=>s.operation===r)||t.find(s=>s.operation===r);i&&n.push(i)}return n}function Rce(e,t,n,r){return t?{kind:e.kind===aT.Kind.SCHEMA_DEFINITION||t.kind===aT.Kind.SCHEMA_DEFINITION?aT.Kind.SCHEMA_DEFINITION:aT.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,Dce.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:Ace(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?G(k({},e),{kind:aT.Kind.SCHEMA_DEFINITION}):e}Gl.mergeSchemaDefs=Rce});var yR=j(ca=>{"use strict";m();T();h();Object.defineProperty(ca,"__esModule",{value:!0});ca.mergeGraphQLNodes=ca.isNamedDefinitionNode=ca.schemaDefSymbol=void 0;var Ri=(Le(),Me(je)),Fce=pR(),wce=uR(),Lce=fR(),Pce=hR(),kce=lR(),Cce=dR(),xce=Js(),Uce=TR(),Mce=_o();ca.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function X$(e){return"name"in e}ca.isNamedDefinitionNode=X$;function Bce(e,t,n={}){var i,s,o;let r=n;for(let u of e)if(X$(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Mce.collectComment)(u),l==null)continue;if((s=t==null?void 0:t.exclusions)!=null&&s.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(u.kind){case Ri.Kind.OBJECT_TYPE_DEFINITION:case Ri.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Fce.mergeType)(u,r[l],t,n);break;case Ri.Kind.ENUM_TYPE_DEFINITION:case Ri.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,wce.mergeEnum)(u,r[l],t,n);break;case Ri.Kind.UNION_TYPE_DEFINITION:case Ri.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Pce.mergeUnion)(u,r[l],t,n);break;case Ri.Kind.SCALAR_TYPE_DEFINITION:case Ri.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Lce.mergeScalar)(u,r[l],t,n);break;case Ri.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ri.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,kce.mergeInputType)(u,r[l],t,n);break;case Ri.Kind.INTERFACE_TYPE_DEFINITION:case Ri.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Cce.mergeInterface)(u,r[l],t,n);break;case Ri.Kind.DIRECTIVE_DEFINITION:r[l]=(0,xce.mergeDirective)(u,r[l]);break}}else(u.kind===Ri.Kind.SCHEMA_DEFINITION||u.kind===Ri.Kind.SCHEMA_EXTENSION)&&(r[ca.schemaDefSymbol]=(0,Uce.mergeSchemaDefs)(u,r[ca.schemaDefSymbol],t));return r}ca.mergeGraphQLNodes=Bce});var tq=j(Kp=>{"use strict";m();T();h();Object.defineProperty(Kp,"__esModule",{value:!0});Kp.mergeGraphQLTypes=Kp.mergeTypeDefs=void 0;var zs=(Le(),Me(je)),NR=zg(),jp=yR(),qp=_o(),Z$=TR();function Vce(e,t){(0,qp.resetComments)();let n={kind:zs.Kind.DOCUMENT,definitions:eq(e,k({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,qp.printWithComments)(n):r=n,(0,qp.resetComments)(),r}Kp.mergeTypeDefs=Vce;function $p(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")$p(e(),t,n,r,i);else if(Array.isArray(e))for(let s of e)$p(s,t,n,r,i);else if((0,zs.isSchema)(e)){let s=(0,qp.getDocumentNodeFromSchema)(e,t);$p(s.definitions,t,n,r,i)}else if((0,NR.isStringTypes)(e)||(0,NR.isSourceTypes)(e)){let s=(0,zs.parse)(e,t);$p(s.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zs.isDefinitionNode)(e))e.kind===zs.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,qp.isDocumentNode)(e))$p(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function eq(e,t){var u,l,d;(0,qp.resetComments)();let{allDirectives:n,allNodes:r}=$p(e,t),i=(0,jp.mergeGraphQLNodes)(n,t),s=(0,jp.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=s[jp.schemaDefSymbol]||{kind:zs.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let N in Z$.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(O=>O.operation===N)){let O=Z$.DEFAULT_OPERATION_TYPE_NAME_MAP[N],x=s[O];x!=null&&x.name!=null&&y.push({kind:zs.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zs.Kind.NAMED_TYPE,name:x.name},operation:N})}((u=p==null?void 0:p.operationTypes)==null?void 0:u.length)!=null&&p.operationTypes.length>0&&(s[jp.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=s[jp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(s[jp.schemaDefSymbol]={kind:zs.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zs.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zs.Kind.NAMED_TYPE,name:{kind:zs.Kind.NAME,value:"Query"}}}]});let o=Object.values(s);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:NR.defaultStringComparator;o.sort((y,N)=>{var I,O;return p((I=y.name)==null?void 0:I.value,(O=N.name)==null?void 0:O.value)})}return o}Kp.mergeGraphQLTypes=eq});var nq=j(fi=>{"use strict";m();T();h();Object.defineProperty(fi,"__esModule",{value:!0});var Ji=(uA(),Me(aA));Ji.__exportStar(oR(),fi);Ji.__exportStar(Js(),fi);Ji.__exportStar(aR(),fi);Ji.__exportStar(uR(),fi);Ji.__exportStar(sT(),fi);Ji.__exportStar(lR(),fi);Ji.__exportStar(dR(),fi);Ji.__exportStar(oT(),fi);Ji.__exportStar(yR(),fi);Ji.__exportStar(tq(),fi);Ji.__exportStar(fR(),fi);Ji.__exportStar(pR(),fi);Ji.__exportStar(hR(),fi);Ji.__exportStar(zg(),fi)});var iq=j(wc=>{"use strict";m();T();h();Object.defineProperty(wc,"__esModule",{value:!0});wc.applyExtensions=wc.mergeExtensions=wc.extractExtensionsFromSchema=void 0;var rq=_o(),jce=_o();Object.defineProperty(wc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return jce.extractExtensionsFromSchema}});function $ce(e){return(0,rq.mergeDeep)(e)}wc.mergeExtensions=$ce;function Gp(e,t){e&&(e.extensions=(0,rq.mergeDeep)([e.extensions||{},t||{}]))}function qce(e,t){Gp(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Gp(i,r.extensions),r.type==="object"||r.type==="interface")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];if(u){Gp(u,o.extensions);for(let[l,d]of Object.entries(o.arguments))Gp(u.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];Gp(u,o.extensions)}else if(r.type==="enum")for(let[s,o]of Object.entries(r.values)){let u=i.getValue(s);Gp(u,o)}}}return e}wc.applyExtensions=qce});var rI=j(uT=>{"use strict";m();T();h();Object.defineProperty(uT,"__esModule",{value:!0});var ER=(uA(),Me(aA));ER.__exportStar(G$(),uT);ER.__exportStar(nq(),uT);ER.__exportStar(iq(),uT)});var Jp=j(ft=>{"use strict";m();T();h();Object.defineProperty(ft,"__esModule",{value:!0});ft.FieldSetDirective=ft.MergeMethod=void 0;ft.newPersistedDirectivesData=oI;ft.isNodeExternalOrShareable=uq;ft.getDefinedArgumentsForDirective=cq;ft.getDirectiveValidationErrors=lq;ft.extractDirectives=vR;ft.extractArguments=Gce;ft.isTypeRequired=_R;ft.compareAndValidateInputValueDefaultValues=Qce;ft.addEnumValueDataByNode=Yce;ft.addInheritedDirectivesToFieldData=Jce;ft.addFieldDataByNode=zce;ft.addInputValueDataByNode=bR;ft.addPersistedDirectiveDefinitionDataByNode=Hce;ft.setMutualExecutableLocations=Wce;ft.isTypeNameRootType=Xce;ft.getRenamedRootTypeName=Zce;ft.getEnumNodeByData=nle;ft.getInputObjectNodeByData=rle;ft.getCompositeOutputNodeByData=ile;ft.getScalarNodeByData=sle;ft.getSchemaNodeByData=ole;ft.getUnionNodeByData=ale;ft.removeInheritableDirectivesFromParentWithFieldsData=ule;ft.setLongestDescription=cle;ft.isParentDataRootType=pq;ft.isParentDataInterfaceType=lle;ft.setParentDataExtensionType=dle;ft.extractPersistedDirectives=mle;ft.pushAuthorizationDirectives=hle;ft.getClientPersistedDirectiveNodes=IR;ft.getNodeForRouterSchemaByData=yle;ft.getNodeWithPersistedDirectivesByFieldData=Nle;ft.getClientSchemaFieldNodeByFieldData=Ele;ft.getNodeWithPersistedDirectivesByInputValueData=DR;ft.getValidFieldArgumentNodes=gle;ft.addValidPersistedDirectiveDefinitionNodeByData=vle;ft.newInvalidFieldNames=_le;ft.validateExternalAndShareable=ble;ft.isTypeValidImplementation=iI;ft.isNodeDataInaccessible=mq;ft.isLeafKind=Ole;ft.getSubscriptionFilterValue=Sle;ft.getParentTypeName=Dle;ft.newConditionalFieldData=Ale;var wt=(Le(),Me(je)),gR=Gh(),Qp=Qa(),Hs=$i(),Cr=To(),Kt=bi(),sq=Ql(),ys=ps(),sI=Oc(),Kce=rI();function oI(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function uq(e,t,n){var i;let r={isExternal:n.has(Kt.EXTERNAL),isShareable:t||n.has(Kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let s of e.directives){let o=s.name.value;if(o===Kt.EXTERNAL){r.isExternal=!0;continue}o===Kt.SHAREABLE&&(r.isShareable=!0)}return r}function cq(e,t,n,r,i){let s=e.arguments||[],o=e.name.value,u=new Set,l=new Set,d=new Set;for(let p of s){let y=p.name.value;if(u.has(y)){l.add(y);continue}if(!t.get(y)){d.add(y);continue}u.add(y)}return l.size>0&&i.push((0,Cr.duplicateDirectiveArgumentDefinitionsErrorMessage)(o,r,[...l])),d.size>0&&i.push((0,Cr.unexpectedDirectiveArgumentErrorMessage)(o,[...d])),u}function lq(e,t,n,r,i,s,o=!1){var O,x,V;let u=e.name.value,l=r.get(u)||sI.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(u),d=[];if(!l)return d.push((0,Cr.undefinedDirectiveErrorMessage)(u,s)),d;let p=new Map,y=new Set;if((0,sq.getDirectiveDefinitionArgumentSets)(l.arguments||[],p,y),(0,sq.areNodeKindAndDirectiveLocationCompatible)(t,l,o)||d.push((0,Cr.invalidDirectiveLocationErrorMessage)(s,o?wt.Kind.ARGUMENT:t,u)),!l.repeatable&&n.get(u)){let K=(0,ys.getValueOrDefault)(i,s,()=>new Set);K.has(u)||(K.add(u),d.push((0,Cr.invalidRepeatedDirectiveErrorMessage)(u,s)))}if(!((O=l.arguments)!=null&&O.length))return(x=e.arguments)!=null&&x.length&&d.push((0,Cr.unexpectedDirectiveArgumentsErrorMessage)(e,s)),d;if(!((V=e.arguments)!=null&&V.length))return y.size>0&&d.push((0,Cr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y])),d;let N=cq(e,p,y,s,d),I=(0,ys.getEntriesNotInHashSet)(y,N);return I.length>0&&d.push((0,Cr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y],I)),d}function vR(e,t,n,r,i,s,o=!1){if(!e.directives)return t;let u=new Set;for(let l of e.directives){let d=lq(l,e.kind,t,r,i,s,o),p=l.name.value;if(d.length>0){n.push((0,Cr.invalidDirectiveError)(p,s,d));continue}if(Kt.IGNORED_PARENT_DIRECTIVES.has(p))continue;if(p===Kt.KEY){let N=l.arguments[0].value.value;if(u.has(N))continue;u.add(N)}let y=t.get(p);y?y.push(l):t.set(p,[l])}return t}function Gce(e,t,n,r,i,s,o,u,l){var I;if(!((I=t.arguments)!=null&&I.length))return e;let d=t.name.value,p=`${o}.${d}`,y=`${u}.${d}`;s.add(o);let N=new Set;for(let O of t.arguments){let x=O.name.value;if(e.has(x)){N.add(x);continue}bR(e,O,r,i,`${p}(${x}: ...)`,l,n,`${y}(${x}: ...)`)}return N.size>0&&n.push((0,Cr.duplicateArgumentsError)(p,[...N])),e}function _R(e){return e.kind===wt.Kind.NON_NULL_TYPE}function dq(e,t){switch(e.kind){case wt.Kind.LIST_TYPE:return t.kind===wt.Kind.LIST||t.kind===wt.Kind.NULL;case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NULL)return!0;switch(e.name.value){case Kt.BOOLEAN_SCALAR:return t.kind===wt.Kind.BOOLEAN;case Kt.FLOAT_SCALAR:return t.kind===wt.Kind.INT||t.kind===wt.Kind.FLOAT;case Kt.INT_SCALAR:return t.kind===wt.Kind.INT;case Kt.STRING_SCALAR:return t.kind===wt.Kind.STRING;default:return!0}case wt.Kind.NON_NULL_TYPE:return t.kind===wt.Kind.NULL?!1:dq(e.type,t)}}function Qce(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,wt.print)(e.defaultValue),i=(0,wt.print)(t.defaultValue);if(r!==i){n.push((0,Cr.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Kt.ARGUMENT:Kt.INPUT_FIELD} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function Yce(e,t,n,r,i,s,o){let u=t.name.value;e.set(u,{appearances:1,directivesByDirectiveName:vR(t,new Map,n,r,i,`${s}.${u}`),name:u,node:(0,Qp.getMutableEnumValueNode)(t),parentTypeName:s,persistedDirectivesData:oI(),subgraphNames:new Set([o]),description:(0,Hs.formatDescription)(t.description)})}function Jce(e,t){for(let n of sI.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,ys.getValueOrDefault)(t,n,()=>[(0,ys.generateSimpleDirective)(n)]);return t}function zce(e,t,n,r,i,s,o,u,l){let d=t.name.value,p=`${i}.${d}`,y=uq(t,!u,r),N={argumentDataByArgumentName:n,isExternalBySubgraphName:new Map([[o,y.isExternal]]),isInaccessible:r.has(Kt.INACCESSIBLE),isShareableBySubgraphName:new Map([[o,y.isShareable]]),node:(0,Qp.getMutableFieldNode)(t,p,l),name:d,namedTypeName:(0,Qp.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:i,persistedDirectivesData:oI(),renamedParentTypeName:s,subgraphNames:new Set([o]),type:(0,Qp.getMutableTypeNode)(t.type,p,l),directivesByDirectiveName:r,description:(0,Hs.formatDescription)(t.description)};return e.set(d,N),N}function bR(e,t,n,r,i,s,o,u){let l=t.name.value,d=!!u;t.defaultValue&&!dq(t.type,t.defaultValue)&&o.push((0,Cr.incompatibleInputValueDefaultValueTypeError)((d?Kt.ARGUMENT:Kt.INPUT_FIELD)+` "${l}"`,i,(0,Kce.printTypeNode)(t.type),(0,wt.print)(t.defaultValue))),e.set(l,{directivesByDirectiveName:vR(t,new Map,o,n,r,i,d),includeDefaultValue:!!t.defaultValue,isArgument:d,name:l,node:(0,Qp.getMutableInputValueNode)(t,i,o),originalPath:i,persistedDirectivesData:oI(),renamedPath:u||i,requiredSubgraphNames:new Set(_R(t.type)?[s]:[]),subgraphNames:new Set([s]),type:(0,Qp.getMutableTypeNode)(t.type,i,o),defaultValue:t.defaultValue,description:(0,Hs.formatDescription)(t.description)})}function Hce(e,t,n,r,i,s,o){let u=t.name.value,l=new Map;for(let d of t.arguments||[]){let p=`@${u}(${d.name.value}: ...)`;bR(l,d,r,i,p,o,n,p)}e.set(u,{argumentDataByArgumentName:l,executableLocations:s,name:u,repeatable:t.repeatable,subgraphNames:new Set([o]),description:(0,Hs.formatDescription)(t.description)})}function Wce(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function Xce(e,t){return Kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function Zce(e,t){let n=t.get(e);if(!n)return e;switch(n){case wt.OperationTypeNode.MUTATION:return Kt.MUTATION;case wt.OperationTypeNode.SUBSCRIPTION:return Kt.SUBSCRIPTION;default:return Kt.QUERY}}function ele(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,ys.generateSimpleDirective)(Kt.AUTHENTICATED);t.directivesByDirectiveName.set(Kt.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,ys.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(Kt.REQUIRES_SCOPES,[i])}}}function tle(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function OR(e,t){let n=[];for(let r of e.values()){if(r.node.kind===wt.Kind.FIELD_DEFINITION){let i=r;ele(t,i),tle(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function Yp(e,t,n,r){let i=[];for(let[s,o]of e){let u=n.get(s)||sI.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(s);if(!u)continue;if(!u.repeatable&&o.length>1){t.push((0,Cr.invalidDirectiveError)(s,r,[(0,Cr.invalidRepeatedDirectiveErrorMessage)(s,r)]));continue}if(s!==Kt.KEY){i.push(...o);continue}let l=[],d=new Set,p=[];for(let y of o){let N=y.arguments[0].value;if(N.kind!==wt.Kind.STRING){p.push((0,Cr.invalidKeyDirectiveArgumentErrorMessage)(N.kind));continue}let I=N.value;d.has(I)||(d.add(I),i.push(y),l.push(y))}e.set(s,l),p.length>0&&t.push((0,Cr.invalidDirectiveError)(s,r,p))}return i}function nle(e,t,n,r){return e.node.description=e.description,e.node.directives=Yp(e.directivesByDirectiveName,t,n,e.name),e.node.values=OR(e.enumValueDataByValueName,r),e.node}function rle(e,t,n,r){return e.node.description=e.description,e.node.directives=Yp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=OR(e.inputValueDataByValueName,r),e.node}function ile(e,t,n,r){return e.node.description=e.description,e.node.directives=Yp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=OR(e.fieldDataByFieldName,r),e.node.interfaces=(0,Hs.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}function sle(e,t,n){return e.node.description=e.description,e.node.directives=Yp(e.directivesByDirectiveName,t,n,e.name),e.node}function ole(e,t,n){return{description:e.description,directives:Yp(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,ys.mapToArrayOfValues)(e.operationTypes)}}function ale(e,t,n){return e.node.description=e.description,e.node.directives=Yp(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,ys.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}function ule(e){for(let t of sI.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}function cle(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(Kt.REQUIRES_SCOPES,[(0,ys.generateRequiresScopesDirective)(n.requiredScopes)]))}function fq(e){return{kind:wt.Kind.DIRECTIVE,name:(0,Hs.stringToNameNode)(Kt.DEPRECATED),arguments:[{kind:wt.Kind.ARGUMENT,name:(0,Hs.stringToNameNode)(Kt.REASON),value:{kind:wt.Kind.STRING,value:e||Kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function Tle(e,t,n,r){let i=[];for(let[s,o]of e){let u=t.get(s);if(u){if(o.length<2){i.push(...o);continue}if(!u.repeatable){r.push((0,Cr.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}i.push(...o)}}return i}function SR(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(fq(e.persistedDirectivesData.deprecatedReason)),r.push(...Tle(e.persistedDirectivesData.directives,t,e.name,n)),r}function IR(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(fq(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directives)Kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function yle(e,t,n){return e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=SR(e,t,n),e.node}function Nle(e,t,n,r){return e.node.arguments=n,e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=SR(e,t,r),e.node}function Ele(e){let t=IR(e),n=[];for(let r of e.argumentDataByArgumentName.values())mq(r)||n.push(G(k({},r.node),{directives:IR(r)}));return G(k({},e.node),{directives:t,arguments:n})}function DR(e,t,n){return e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=SR(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function gle(e,t,n,r){let i=[],s=[],o=[],u=`${e.renamedParentTypeName}.${e.name}`;for(let[l,d]of e.argumentDataByArgumentName)e.subgraphNames.size===d.subgraphNames.size?(s.push(l),i.push(DR(d,t,r))):_R(d.type)&&o.push({inputValueName:l,missingSubgraphs:(0,ys.getEntriesNotInHashSet)(e.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});return o.length>0?r.push((0,Cr.invalidRequiredInputValueError)(Kt.FIELD,u,o)):s.length>0&&((0,ys.getValueOrDefault)(n,u,()=>({argumentNames:s,fieldName:e.name,typeName:e.renamedParentTypeName})).argumentNames=s),i}function Ile(e,t,n,r,i){let s=[];for(let[o,u]of t.argumentDataByArgumentName){let l=(0,ys.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&s.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(DR(u,n,r)),i&&i.add(o)}return s.length>0?(r.push((0,Cr.invalidRequiredInputValueError)(Kt.DIRECTIVE_DEFINITION,`@${t.name}`,s)),!1):!0}function vle(e,t,n,r){let i=[];Ile(i,t,n,r)&&e.push({arguments:i,kind:wt.Kind.DIRECTIVE_DEFINITION,locations:(0,Hs.setToNameNodeArray)(t.executableLocations),name:(0,Hs.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function _le(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function ble(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[s,o]of e.isShareableBySubgraphName){if(e.isExternalBySubgraphName.get(s)){r.push(s);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var oq;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(oq||(ft.MergeMethod=oq={}));function iI(e,t,n){if(e.kind===wt.Kind.NON_NULL_TYPE)return t.kind!==wt.Kind.NON_NULL_TYPE?!1:iI(e.type,t.type,n);if(t.kind===wt.Kind.NON_NULL_TYPE)return iI(e,t.type,n);switch(e.kind){case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let s=n.get(r);return s?s.has(i):!1}return!1;default:return t.kind===wt.Kind.LIST_TYPE?iI(e.type,t.type,n):!1}}function mq(e){return e.persistedDirectivesData.directives.has(Kt.INACCESSIBLE)||e.directivesByDirectiveName.has(Kt.INACCESSIBLE)}function Ole(e){return e===wt.Kind.SCALAR_TYPE_DEFINITION||e===wt.Kind.ENUM_TYPE_DEFINITION}function Sle(e){switch(e.kind){case wt.Kind.BOOLEAN:return e.value;case wt.Kind.ENUM:case wt.Kind.STRING:return e.value;case wt.Kind.FLOAT:case wt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case wt.Kind.NULL:return null}}function Dle(e){return e.kind===wt.Kind.OBJECT_TYPE_DEFINITION?e.renamedTypeName:e.name}var aq;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(aq||(ft.FieldSetDirective=aq={}));function Ale(){return{providedBy:[],requiredBy:[]}}});var cT=j(bo=>{"use strict";m();T();h();Object.defineProperty(bo,"__esModule",{value:!0});bo.Warning=void 0;bo.invalidOverrideTargetSubgraphNameWarning=Rle;bo.externalInterfaceFieldsWarning=Fle;bo.nonExternalConditionalFieldWarning=wle;bo.unimplementedInterfaceOutputTypeWarning=Lle;bo.invalidExternalFieldWarning=Ple;bo.requiresDefinedOnNonEntityFieldWarning=kle;bo.consumerInactiveThresholdInvalidValueWarning=Cle;var hq=bi(),la=class extends Error{constructor(n){super(n.message);A(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};bo.Warning=la;function Rle(e,t,n,r){return new la({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(hq.QUOTATION_JOIN)+`". + ${n}`)}function Xue(e,t){return t?(Wue(e,t),Q(k({},e),{locations:[...t.locations,...e.locations.filter(n=>!Jue(n,t.locations))]})):e}Qp.mergeDirective=Xue;function Zue(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var hR=j(Zg=>{"use strict";m();T();h();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.mergeEnumValues=void 0;var ece=Js(),tce=_o();function nce(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let u=o.name.value;if(i.has(u)){let l=i.get(u);l.description=o.description||l.description,l.directives=(0,ece.mergeDirectives)(o.directives,l.directives,r)}else i.set(u,o)}let s=[...i.values()];return n&&n.sort&&s.sort(tce.compareNodes),s}Zg.mergeEnumValues=nce});var TR=j(eI=>{"use strict";m();T();h();Object.defineProperty(eI,"__esModule",{value:!0});eI.mergeEnum=void 0;var rce=(Le(),Me(je)),ice=Js(),sce=hR();function oce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,ice.mergeDirectives)(e.directives,t.directives,n,r),values:(0,sce.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Q(k({},e),{kind:rce.Kind.ENUM_TYPE_DEFINITION}):e}eI.mergeEnum=oce});var tI=j(gr=>{"use strict";m();T();h();Object.defineProperty(gr,"__esModule",{value:!0});gr.defaultStringComparator=gr.CompareVal=gr.printTypeNode=gr.isNonNullTypeNode=gr.isListTypeNode=gr.isWrappingTypeNode=gr.extractType=gr.isSourceTypes=gr.isStringTypes=void 0;var cT=(Le(),Me(je));function ace(e){return typeof e=="string"}gr.isStringTypes=ace;function uce(e){return e instanceof cT.Source}gr.isSourceTypes=uce;function cce(e){let t=e;for(;t.kind===cT.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}gr.extractType=cce;function lce(e){return e.kind!==cT.Kind.NAMED_TYPE}gr.isWrappingTypeNode=lce;function cq(e){return e.kind===cT.Kind.LIST_TYPE}gr.isListTypeNode=cq;function lq(e){return e.kind===cT.Kind.NON_NULL_TYPE}gr.isNonNullTypeNode=lq;function yR(e){return cq(e)?`[${yR(e.type)}]`:lq(e)?`${yR(e.type)}!`:e.name.value}gr.printTypeNode=yR;var Hl;(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"})(Hl=gr.CompareVal||(gr.CompareVal={}));function dce(e,t){return e==null&&t==null?Hl.A_EQUALS_B:e==null?Hl.A_SMALLER_THAN_B:t==null?Hl.A_GREATER_THAN_B:et?Hl.A_GREATER_THAN_B:Hl.A_EQUALS_B}gr.defaultStringComparator=dce});var dT=j(nI=>{"use strict";m();T();h();Object.defineProperty(nI,"__esModule",{value:!0});nI.mergeFields=void 0;var Yi=tI(),pce=Js(),fce=_o(),mce=mR();function hce(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function Tce(e,t,n,r,i){let s=[];if(n!=null&&s.push(...n),t!=null)for(let o of t){let[u,l]=hce(s,o);if(u&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(u,o,e,r==null?void 0:r.throwOnConflict)||yce(e,u,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,mce.mergeArguments)(o.arguments||[],u.arguments||[],r),d.directives=(0,pce.mergeDirectives)(o.directives,u.directives,r,i),d.description=o.description||u.description,s[l]=d}else s.push(o)}if(r&&r.sort&&s.sort(fce.compareNodes),r&&r.exclusions){let o=r.exclusions;return s.filter(u=>!o.includes(`${e.name.value}.${u.name.value}`))}return s}nI.mergeFields=Tce;function yce(e,t,n,r=!1){let i=(0,Yi.printTypeNode)(t.type),s=(0,Yi.printTypeNode)(n.type);if(i!==s){let o=(0,Yi.extractType)(t.type),u=(0,Yi.extractType)(n.type);if(o.name.value!==u.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${u.name.value}"`);if(!lT(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${s}'`)}return(0,Yi.isNonNullTypeNode)(n.type)&&!(0,Yi.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function lT(e,t,n=!1){if(!(0,Yi.isWrappingTypeNode)(e)&&!(0,Yi.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Yi.isNonNullTypeNode)(t)){let r=(0,Yi.isNonNullTypeNode)(e)?e.type:e;return lT(r,t.type)}return(0,Yi.isNonNullTypeNode)(e)?lT(t,e,n):(0,Yi.isListTypeNode)(e)?(0,Yi.isListTypeNode)(t)&&lT(e.type,t.type)||(0,Yi.isNonNullTypeNode)(t)&&lT(e,t.type):!1}});var NR=j(rI=>{"use strict";m();T();h();Object.defineProperty(rI,"__esModule",{value:!0});rI.mergeInputType=void 0;var Nce=(Le(),Me(je)),Ece=dT(),gce=Js();function Ice(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,Ece.mergeFields)(e,e.fields,t.fields,n),directives:(0,gce.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(k({},e),{kind:Nce.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}rI.mergeInputType=Ice});var pT=j(iI=>{"use strict";m();T();h();Object.defineProperty(iI,"__esModule",{value:!0});iI.mergeNamedTypeArray=void 0;var vce=_o();function _ce(e,t){return!!e.find(n=>n.name.value===t.name.value)}function bce(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!_ce(t,i))];return n&&n.sort&&r.sort(vce.compareNodes),r}iI.mergeNamedTypeArray=bce});var ER=j(sI=>{"use strict";m();T();h();Object.defineProperty(sI,"__esModule",{value:!0});sI.mergeInterface=void 0;var Oce=(Le(),Me(je)),Sce=dT(),Dce=Js(),Ace=pT();function Rce(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,Sce.mergeFields)(e,e.fields,t.fields,n),directives:(0,Dce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,Ace.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(k({},e),{kind:Oce.Kind.INTERFACE_TYPE_DEFINITION}):e}sI.mergeInterface=Rce});var gR=j(oI=>{"use strict";m();T();h();Object.defineProperty(oI,"__esModule",{value:!0});oI.mergeType=void 0;var Fce=(Le(),Me(je)),wce=dT(),Lce=Js(),Pce=pT();function kce(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,wce.mergeFields)(e,e.fields,t.fields,n),directives:(0,Lce.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,Pce.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?Q(k({},e),{kind:Fce.Kind.OBJECT_TYPE_DEFINITION}):e}oI.mergeType=kce});var IR=j(aI=>{"use strict";m();T();h();Object.defineProperty(aI,"__esModule",{value:!0});aI.mergeScalar=void 0;var xce=(Le(),Me(je)),Cce=Js();function Uce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,Cce.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Q(k({},e),{kind:xce.Kind.SCALAR_TYPE_DEFINITION}):e}aI.mergeScalar=Uce});var _R=j(uI=>{"use strict";m();T();h();Object.defineProperty(uI,"__esModule",{value:!0});uI.mergeUnion=void 0;var vR=(Le(),Me(je)),Mce=Js(),Bce=pT();function Vce(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,Mce.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?vR.Kind.UNION_TYPE_DEFINITION:vR.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Bce.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Q(k({},e),{kind:vR.Kind.UNION_TYPE_DEFINITION}):e}uI.mergeUnion=Vce});var bR=j(Wl=>{"use strict";m();T();h();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.mergeSchemaDefs=Wl.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var fT=(Le(),Me(je)),jce=Js();Wl.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function $ce(e=[],t=[]){let n=[];for(let r in Wl.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(s=>s.operation===r)||t.find(s=>s.operation===r);i&&n.push(i)}return n}function qce(e,t,n,r){return t?{kind:e.kind===fT.Kind.SCHEMA_DEFINITION||t.kind===fT.Kind.SCHEMA_DEFINITION?fT.Kind.SCHEMA_DEFINITION:fT.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,jce.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:$ce(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Q(k({},e),{kind:fT.Kind.SCHEMA_DEFINITION}):e}Wl.mergeSchemaDefs=qce});var OR=j(ca=>{"use strict";m();T();h();Object.defineProperty(ca,"__esModule",{value:!0});ca.mergeGraphQLNodes=ca.isNamedDefinitionNode=ca.schemaDefSymbol=void 0;var Ri=(Le(),Me(je)),Kce=gR(),Gce=TR(),Qce=IR(),Yce=_R(),Jce=NR(),zce=ER(),Hce=Js(),Wce=bR(),Xce=_o();ca.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function dq(e){return"name"in e}ca.isNamedDefinitionNode=dq;function Zce(e,t,n={}){var i,s,o;let r=n;for(let u of e)if(dq(u)){let l=(i=u.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Xce.collectComment)(u),l==null)continue;if((s=t==null?void 0:t.exclusions)!=null&&s.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(u.kind){case Ri.Kind.OBJECT_TYPE_DEFINITION:case Ri.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Kce.mergeType)(u,r[l],t,n);break;case Ri.Kind.ENUM_TYPE_DEFINITION:case Ri.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Gce.mergeEnum)(u,r[l],t,n);break;case Ri.Kind.UNION_TYPE_DEFINITION:case Ri.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Yce.mergeUnion)(u,r[l],t,n);break;case Ri.Kind.SCALAR_TYPE_DEFINITION:case Ri.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Qce.mergeScalar)(u,r[l],t,n);break;case Ri.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ri.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Jce.mergeInputType)(u,r[l],t,n);break;case Ri.Kind.INTERFACE_TYPE_DEFINITION:case Ri.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,zce.mergeInterface)(u,r[l],t,n);break;case Ri.Kind.DIRECTIVE_DEFINITION:r[l]=(0,Hce.mergeDirective)(u,r[l]);break}}else(u.kind===Ri.Kind.SCHEMA_DEFINITION||u.kind===Ri.Kind.SCHEMA_EXTENSION)&&(r[ca.schemaDefSymbol]=(0,Wce.mergeSchemaDefs)(u,r[ca.schemaDefSymbol],t));return r}ca.mergeGraphQLNodes=Zce});var mq=j(Hp=>{"use strict";m();T();h();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.mergeGraphQLTypes=Hp.mergeTypeDefs=void 0;var zs=(Le(),Me(je)),SR=tI(),Yp=OR(),zp=_o(),pq=bR();function ele(e,t){(0,zp.resetComments)();let n={kind:zs.Kind.DOCUMENT,definitions:fq(e,k({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,zp.printWithComments)(n):r=n,(0,zp.resetComments)(),r}Hp.mergeTypeDefs=ele;function Jp(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Jp(e(),t,n,r,i);else if(Array.isArray(e))for(let s of e)Jp(s,t,n,r,i);else if((0,zs.isSchema)(e)){let s=(0,zp.getDocumentNodeFromSchema)(e,t);Jp(s.definitions,t,n,r,i)}else if((0,SR.isStringTypes)(e)||(0,SR.isSourceTypes)(e)){let s=(0,zs.parse)(e,t);Jp(s.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zs.isDefinitionNode)(e))e.kind===zs.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,zp.isDocumentNode)(e))Jp(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function fq(e,t){var u,l,d;(0,zp.resetComments)();let{allDirectives:n,allNodes:r}=Jp(e,t),i=(0,Yp.mergeGraphQLNodes)(n,t),s=(0,Yp.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=s[Yp.schemaDefSymbol]||{kind:zs.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=p.operationTypes;for(let N in pq.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(S=>S.operation===N)){let S=pq.DEFAULT_OPERATION_TYPE_NAME_MAP[N],C=s[S];C!=null&&C.name!=null&&y.push({kind:zs.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zs.Kind.NAMED_TYPE,name:C.name},operation:N})}((u=p==null?void 0:p.operationTypes)==null?void 0:u.length)!=null&&p.operationTypes.length>0&&(s[Yp.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=s[Yp.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(s[Yp.schemaDefSymbol]={kind:zs.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zs.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zs.Kind.NAMED_TYPE,name:{kind:zs.Kind.NAME,value:"Query"}}}]});let o=Object.values(s);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:SR.defaultStringComparator;o.sort((y,N)=>{var I,S;return p((I=y.name)==null?void 0:I.value,(S=N.name)==null?void 0:S.value)})}return o}Hp.mergeGraphQLTypes=fq});var hq=j(fi=>{"use strict";m();T();h();Object.defineProperty(fi,"__esModule",{value:!0});var Ji=(TA(),Me(hA));Ji.__exportStar(mR(),fi);Ji.__exportStar(Js(),fi);Ji.__exportStar(hR(),fi);Ji.__exportStar(TR(),fi);Ji.__exportStar(dT(),fi);Ji.__exportStar(NR(),fi);Ji.__exportStar(ER(),fi);Ji.__exportStar(pT(),fi);Ji.__exportStar(OR(),fi);Ji.__exportStar(mq(),fi);Ji.__exportStar(IR(),fi);Ji.__exportStar(gR(),fi);Ji.__exportStar(_R(),fi);Ji.__exportStar(tI(),fi)});var yq=j(Uc=>{"use strict";m();T();h();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.applyExtensions=Uc.mergeExtensions=Uc.extractExtensionsFromSchema=void 0;var Tq=_o(),tle=_o();Object.defineProperty(Uc,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return tle.extractExtensionsFromSchema}});function nle(e){return(0,Tq.mergeDeep)(e)}Uc.mergeExtensions=nle;function Wp(e,t){e&&(e.extensions=(0,Tq.mergeDeep)([e.extensions||{},t||{}]))}function rle(e,t){Wp(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Wp(i,r.extensions),r.type==="object"||r.type==="interface")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];if(u){Wp(u,o.extensions);for(let[l,d]of Object.entries(o.arguments))Wp(u.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[s,o]of Object.entries(r.fields)){let u=i.getFields()[s];Wp(u,o.extensions)}else if(r.type==="enum")for(let[s,o]of Object.entries(r.values)){let u=i.getValue(s);Wp(u,o)}}}return e}Uc.applyExtensions=rle});var cI=j(mT=>{"use strict";m();T();h();Object.defineProperty(mT,"__esModule",{value:!0});var DR=(TA(),Me(hA));DR.__exportStar(iq(),mT);DR.__exportStar(hq(),mT);DR.__exportStar(yq(),mT)});var ef=j(mt=>{"use strict";m();T();h();Object.defineProperty(mt,"__esModule",{value:!0});mt.FieldSetDirective=mt.MergeMethod=void 0;mt.newPersistedDirectivesData=pI;mt.isNodeExternalOrShareable=Iq;mt.getDefinedArgumentsForDirective=vq;mt.getDirectiveValidationErrors=_q;mt.extractDirectives=FR;mt.extractArguments=sle;mt.isTypeRequired=wR;mt.compareAndValidateInputValueDefaultValues=ole;mt.addEnumValueDataByNode=ale;mt.addInheritedDirectivesToFieldData=ule;mt.addFieldDataByNode=cle;mt.addInputValueDataByNode=LR;mt.addPersistedDirectiveDefinitionDataByNode=lle;mt.setMutualExecutableLocations=dle;mt.isTypeNameRootType=ple;mt.getRenamedRootTypeName=fle;mt.getEnumNodeByData=Tle;mt.getInputObjectNodeByData=yle;mt.getCompositeOutputNodeByData=Nle;mt.getScalarNodeByData=Ele;mt.getSchemaNodeByData=gle;mt.getUnionNodeByData=Ile;mt.removeInheritableDirectivesFromParentWithFieldsData=vle;mt.setLongestDescription=_le;mt.isParentDataRootType=Oq;mt.isParentDataInterfaceType=ble;mt.setParentDataExtensionType=Ole;mt.extractPersistedDirectives=Ale;mt.pushAuthorizationDirectives=Rle;mt.getClientPersistedDirectiveNodes=RR;mt.getNodeForRouterSchemaByData=wle;mt.getNodeWithPersistedDirectivesByFieldData=Lle;mt.getClientSchemaFieldNodeByFieldData=Ple;mt.getNodeWithPersistedDirectivesByInputValueData=xR;mt.getValidFieldArgumentNodes=kle;mt.addValidPersistedDirectiveDefinitionNodeByData=Cle;mt.newInvalidFieldNames=Ule;mt.validateExternalAndShareable=Mle;mt.isTypeValidImplementation=lI;mt.isNodeDataInaccessible=Dq;mt.isLeafKind=Ble;mt.getSubscriptionFilterValue=Vle;mt.getParentTypeName=jle;mt.newConditionalFieldData=$le;var wt=(Le(),Me(je)),AR=Wh(),Xp=Qa(),Hs=$i(),xr=To(),Kt=bi(),Nq=Xl(),ys=ps(),dI=wc(),ile=cI();function pI(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function Iq(e,t,n){var i;let r={isExternal:n.has(Kt.EXTERNAL),isShareable:t||n.has(Kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let s of e.directives){let o=s.name.value;if(o===Kt.EXTERNAL){r.isExternal=!0;continue}o===Kt.SHAREABLE&&(r.isShareable=!0)}return r}function vq(e,t,n,r,i){let s=e.arguments||[],o=e.name.value,u=new Set,l=new Set,d=new Set;for(let p of s){let y=p.name.value;if(u.has(y)){l.add(y);continue}if(!t.get(y)){d.add(y);continue}u.add(y)}return l.size>0&&i.push((0,xr.duplicateDirectiveArgumentDefinitionsErrorMessage)(o,r,[...l])),d.size>0&&i.push((0,xr.unexpectedDirectiveArgumentErrorMessage)(o,[...d])),u}function _q(e,t,n,r,i,s,o=!1){var S,C,V;let u=e.name.value,l=r.get(u)||dI.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(u),d=[];if(!l)return d.push((0,xr.undefinedDirectiveErrorMessage)(u,s)),d;let p=new Map,y=new Set;if((0,Nq.getDirectiveDefinitionArgumentSets)(l.arguments||[],p,y),(0,Nq.areNodeKindAndDirectiveLocationCompatible)(t,l,o)||d.push((0,xr.invalidDirectiveLocationErrorMessage)(s,o?wt.Kind.ARGUMENT:t,u)),!l.repeatable&&n.get(u)){let G=(0,ys.getValueOrDefault)(i,s,()=>new Set);G.has(u)||(G.add(u),d.push((0,xr.invalidRepeatedDirectiveErrorMessage)(u,s)))}if(!((S=l.arguments)!=null&&S.length))return(C=e.arguments)!=null&&C.length&&d.push((0,xr.unexpectedDirectiveArgumentsErrorMessage)(e,s)),d;if(!((V=e.arguments)!=null&&V.length))return y.size>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y])),d;let N=vq(e,p,y,s,d),I=(0,ys.getEntriesNotInHashSet)(y,N);return I.length>0&&d.push((0,xr.undefinedRequiredArgumentsErrorMessage)(u,s,[...y],I)),d}function FR(e,t,n,r,i,s,o=!1){if(!e.directives)return t;let u=new Set;for(let l of e.directives){let d=_q(l,e.kind,t,r,i,s,o),p=l.name.value;if(d.length>0){n.push((0,xr.invalidDirectiveError)(p,s,d));continue}if(Kt.IGNORED_PARENT_DIRECTIVES.has(p))continue;if(p===Kt.KEY){let N=l.arguments[0].value.value;if(u.has(N))continue;u.add(N)}let y=t.get(p);y?y.push(l):t.set(p,[l])}return t}function sle(e,t,n,r,i,s,o,u,l){var I;if(!((I=t.arguments)!=null&&I.length))return e;let d=t.name.value,p=`${o}.${d}`,y=`${u}.${d}`;s.add(o);let N=new Set;for(let S of t.arguments){let C=S.name.value;if(e.has(C)){N.add(C);continue}LR(e,S,r,i,`${p}(${C}: ...)`,l,n,`${y}(${C}: ...)`)}return N.size>0&&n.push((0,xr.duplicateArgumentsError)(p,[...N])),e}function wR(e){return e.kind===wt.Kind.NON_NULL_TYPE}function bq(e,t){switch(e.kind){case wt.Kind.LIST_TYPE:return t.kind===wt.Kind.LIST||t.kind===wt.Kind.NULL;case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NULL)return!0;switch(e.name.value){case Kt.BOOLEAN_SCALAR:return t.kind===wt.Kind.BOOLEAN;case Kt.FLOAT_SCALAR:return t.kind===wt.Kind.INT||t.kind===wt.Kind.FLOAT;case Kt.INT_SCALAR:return t.kind===wt.Kind.INT;case Kt.STRING_SCALAR:return t.kind===wt.Kind.STRING;default:return!0}case wt.Kind.NON_NULL_TYPE:return t.kind===wt.Kind.NULL?!1:bq(e.type,t)}}function ole(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,wt.print)(e.defaultValue),i=(0,wt.print)(t.defaultValue);if(r!==i){n.push((0,xr.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Kt.ARGUMENT:Kt.INPUT_FIELD} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function ale(e,t,n,r,i,s,o){let u=t.name.value;e.set(u,{appearances:1,directivesByDirectiveName:FR(t,new Map,n,r,i,`${s}.${u}`),name:u,node:(0,Xp.getMutableEnumValueNode)(t),parentTypeName:s,persistedDirectivesData:pI(),subgraphNames:new Set([o]),description:(0,Hs.formatDescription)(t.description)})}function ule(e,t){for(let n of dI.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,ys.getValueOrDefault)(t,n,()=>[(0,ys.generateSimpleDirective)(n)]);return t}function cle(e,t,n,r,i,s,o,u,l){let d=t.name.value,p=`${i}.${d}`,y=Iq(t,!u,r),N={argumentDataByArgumentName:n,isExternalBySubgraphName:new Map([[o,y.isExternal]]),isInaccessible:r.has(Kt.INACCESSIBLE),isShareableBySubgraphName:new Map([[o,y.isShareable]]),node:(0,Xp.getMutableFieldNode)(t,p,l),name:d,namedTypeName:(0,Xp.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:i,persistedDirectivesData:pI(),renamedParentTypeName:s,subgraphNames:new Set([o]),type:(0,Xp.getMutableTypeNode)(t.type,p,l),directivesByDirectiveName:r,description:(0,Hs.formatDescription)(t.description)};return e.set(d,N),N}function LR(e,t,n,r,i,s,o,u){let l=t.name.value,d=!!u;t.defaultValue&&!bq(t.type,t.defaultValue)&&o.push((0,xr.incompatibleInputValueDefaultValueTypeError)((d?Kt.ARGUMENT:Kt.INPUT_FIELD)+` "${l}"`,i,(0,ile.printTypeNode)(t.type),(0,wt.print)(t.defaultValue))),e.set(l,{directivesByDirectiveName:FR(t,new Map,o,n,r,i,d),includeDefaultValue:!!t.defaultValue,isArgument:d,name:l,node:(0,Xp.getMutableInputValueNode)(t,i,o),originalPath:i,persistedDirectivesData:pI(),renamedPath:u||i,requiredSubgraphNames:new Set(wR(t.type)?[s]:[]),subgraphNames:new Set([s]),type:(0,Xp.getMutableTypeNode)(t.type,i,o),defaultValue:t.defaultValue,description:(0,Hs.formatDescription)(t.description)})}function lle(e,t,n,r,i,s,o){let u=t.name.value,l=new Map;for(let d of t.arguments||[]){let p=`@${u}(${d.name.value}: ...)`;LR(l,d,r,i,p,o,n,p)}e.set(u,{argumentDataByArgumentName:l,executableLocations:s,name:u,repeatable:t.repeatable,subgraphNames:new Set([o]),description:(0,Hs.formatDescription)(t.description)})}function dle(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function ple(e,t){return Kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function fle(e,t){let n=t.get(e);if(!n)return e;switch(n){case wt.OperationTypeNode.MUTATION:return Kt.MUTATION;case wt.OperationTypeNode.SUBSCRIPTION:return Kt.SUBSCRIPTION;default:return Kt.QUERY}}function mle(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,ys.generateSimpleDirective)(Kt.AUTHENTICATED);t.directivesByDirectiveName.set(Kt.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,ys.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(Kt.REQUIRES_SCOPES,[i])}}}function hle(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function PR(e,t){let n=[];for(let r of e.values()){if(r.node.kind===wt.Kind.FIELD_DEFINITION){let i=r;mle(t,i),hle(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function Zp(e,t,n,r){let i=[];for(let[s,o]of e){let u=n.get(s)||dI.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(s);if(!u)continue;if(!u.repeatable&&o.length>1){t.push((0,xr.invalidDirectiveError)(s,r,[(0,xr.invalidRepeatedDirectiveErrorMessage)(s,r)]));continue}if(s!==Kt.KEY){i.push(...o);continue}let l=[],d=new Set,p=[];for(let y of o){let N=y.arguments[0].value;if(N.kind!==wt.Kind.STRING){p.push((0,xr.invalidKeyDirectiveArgumentErrorMessage)(N.kind));continue}let I=N.value;d.has(I)||(d.add(I),i.push(y),l.push(y))}e.set(s,l),p.length>0&&t.push((0,xr.invalidDirectiveError)(s,r,p))}return i}function Tle(e,t,n,r){return e.node.description=e.description,e.node.directives=Zp(e.directivesByDirectiveName,t,n,e.name),e.node.values=PR(e.enumValueDataByValueName,r),e.node}function yle(e,t,n,r){return e.node.description=e.description,e.node.directives=Zp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=PR(e.inputValueDataByValueName,r),e.node}function Nle(e,t,n,r){return e.node.description=e.description,e.node.directives=Zp(e.directivesByDirectiveName,t,n,e.name),e.node.fields=PR(e.fieldDataByFieldName,r),e.node.interfaces=(0,Hs.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}function Ele(e,t,n){return e.node.description=e.description,e.node.directives=Zp(e.directivesByDirectiveName,t,n,e.name),e.node}function gle(e,t,n){return{description:e.description,directives:Zp(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,ys.mapToArrayOfValues)(e.operationTypes)}}function Ile(e,t,n){return e.node.description=e.description,e.node.directives=Zp(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,ys.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}function vle(e){for(let t of dI.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}function _le(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(Kt.REQUIRES_SCOPES,[(0,ys.generateRequiresScopesDirective)(n.requiredScopes)]))}function Sq(e){return{kind:wt.Kind.DIRECTIVE,name:(0,Hs.stringToNameNode)(Kt.DEPRECATED),arguments:[{kind:wt.Kind.ARGUMENT,name:(0,Hs.stringToNameNode)(Kt.REASON),value:{kind:wt.Kind.STRING,value:e||Kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function Fle(e,t,n,r){let i=[];for(let[s,o]of e){let u=t.get(s);if(u){if(o.length<2){i.push(...o);continue}if(!u.repeatable){r.push((0,xr.invalidRepeatedFederatedDirectiveErrorMessage)(s,n));continue}i.push(...o)}}return i}function kR(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(Sq(e.persistedDirectivesData.deprecatedReason)),r.push(...Fle(e.persistedDirectivesData.directives,t,e.name,n)),r}function RR(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(Sq(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directives)Kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function wle(e,t,n){return e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=kR(e,t,n),e.node}function Lle(e,t,n,r){return e.node.arguments=n,e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=kR(e,t,r),e.node}function Ple(e){let t=RR(e),n=[];for(let r of e.argumentDataByArgumentName.values())Dq(r)||n.push(Q(k({},r.node),{directives:RR(r)}));return Q(k({},e.node),{directives:t,arguments:n})}function xR(e,t,n){return e.node.name=(0,Hs.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=kR(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function kle(e,t,n,r){let i=[],s=[],o=[],u=`${e.renamedParentTypeName}.${e.name}`;for(let[l,d]of e.argumentDataByArgumentName)e.subgraphNames.size===d.subgraphNames.size?(s.push(l),i.push(xR(d,t,r))):wR(d.type)&&o.push({inputValueName:l,missingSubgraphs:(0,ys.getEntriesNotInHashSet)(e.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});return o.length>0?r.push((0,xr.invalidRequiredInputValueError)(Kt.FIELD,u,o)):s.length>0&&((0,ys.getValueOrDefault)(n,u,()=>({argumentNames:s,fieldName:e.name,typeName:e.renamedParentTypeName})).argumentNames=s),i}function xle(e,t,n,r,i){let s=[];for(let[o,u]of t.argumentDataByArgumentName){let l=(0,ys.getEntriesNotInHashSet)(t.subgraphNames,u.subgraphNames);if(l.length>0){u.requiredSubgraphNames.size>0&&s.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...u.requiredSubgraphNames]});continue}e.push(xR(u,n,r)),i&&i.add(o)}return s.length>0?(r.push((0,xr.invalidRequiredInputValueError)(Kt.DIRECTIVE_DEFINITION,`@${t.name}`,s)),!1):!0}function Cle(e,t,n,r){let i=[];xle(i,t,n,r)&&e.push({arguments:i,kind:wt.Kind.DIRECTIVE_DEFINITION,locations:(0,Hs.setToNameNodeArray)(t.executableLocations),name:(0,Hs.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function Ule(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function Mle(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[s,o]of e.isShareableBySubgraphName){if(e.isExternalBySubgraphName.get(s)){r.push(s);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var Eq;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(Eq||(mt.MergeMethod=Eq={}));function lI(e,t,n){if(e.kind===wt.Kind.NON_NULL_TYPE)return t.kind!==wt.Kind.NON_NULL_TYPE?!1:lI(e.type,t.type,n);if(t.kind===wt.Kind.NON_NULL_TYPE)return lI(e,t.type,n);switch(e.kind){case wt.Kind.NAMED_TYPE:if(t.kind===wt.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let s=n.get(r);return s?s.has(i):!1}return!1;default:return t.kind===wt.Kind.LIST_TYPE?lI(e.type,t.type,n):!1}}function Dq(e){return e.persistedDirectivesData.directives.has(Kt.INACCESSIBLE)||e.directivesByDirectiveName.has(Kt.INACCESSIBLE)}function Ble(e){return e===wt.Kind.SCALAR_TYPE_DEFINITION||e===wt.Kind.ENUM_TYPE_DEFINITION}function Vle(e){switch(e.kind){case wt.Kind.BOOLEAN:return e.value;case wt.Kind.ENUM:case wt.Kind.STRING:return e.value;case wt.Kind.FLOAT:case wt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case wt.Kind.NULL:return null}}function jle(e){return e.kind===wt.Kind.OBJECT_TYPE_DEFINITION?e.renamedTypeName:e.name}var gq;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(gq||(mt.FieldSetDirective=gq={}));function $le(){return{providedBy:[],requiredBy:[]}}});var hT=j(bo=>{"use strict";m();T();h();Object.defineProperty(bo,"__esModule",{value:!0});bo.Warning=void 0;bo.invalidOverrideTargetSubgraphNameWarning=qle;bo.externalInterfaceFieldsWarning=Kle;bo.nonExternalConditionalFieldWarning=Gle;bo.unimplementedInterfaceOutputTypeWarning=Qle;bo.invalidExternalFieldWarning=Yle;bo.requiresDefinedOnNonEntityFieldWarning=Jle;bo.consumerInactiveThresholdInvalidValueWarning=zle;var Aq=bi(),la=class extends Error{constructor(n){super(n.message);b(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};bo.Warning=la;function qle(e,t,n,r){return new la({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(Aq.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. -If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function AR(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: -`}function Fle(e,t,n){return new la({message:AR(e)+`The Interface "${t}" is invalid because the following Field definition`+(n.length>1?"s are":" is")+` declared "@external": - "`+n.join(hq.QUOTATION_JOIN)+`" -Interface Fields should not be declared "@external". This is because Interface Fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function wle(e,t,n,r,i){return new la({message:AR(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: +If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function CR(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: +`}function Kle(e,t,n){return new la({message:CR(e)+`The Interface "${t}" is invalid because the following Field definition`+(n.length>1?"s are":" is")+` declared "@external": + "`+n.join(Aq.QUOTATION_JOIN)+`" +Interface Fields should not be declared "@external". This is because Interface Fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function Gle(e,t,n,r,i){return new la({message:CR(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the Field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function Lle(e,t){return new la({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function Ple(e,t){return new la({message:AR(t)+` The Object Field "${e}" is invalidly declared "@external". An Object Field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" FieldSet, or the Field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function kle(e,t){return new la({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function Cle(e,t=""){return new la({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` -${t}`:"",subgraph:{name:e}})}});var Ql=j(Ns=>{"use strict";m();T();h();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.newKeyFieldSetData=Ule;Ns.newFieldSetData=Mle;Ns.areNodeKindAndDirectiveLocationCompatible=Ble;Ns.getDirectiveDefinitionArgumentSets=Vle;Ns.addFieldNamesToConfigurationData=jle;Ns.extractFieldSetValue=$le;Ns.getNormalizedFieldSet=FR;Ns.validateKeyFieldSets=Gle;Ns.validateAndAddConditionalFieldSetsToConfiguration=Yle;Ns.isNodeQuery=Jle;Ns.validateArgumentTemplateReferences=zle;var Pe=(Le(),Me(je)),zi=ps(),lT=$i(),Wn=bi(),jt=To(),RR=Oc(),Tq=iA(),dT=Qa(),da=Jp(),xle=cT();function Ule(){return{isUnresolvableByKeyFieldSet:new Map}}function Mle(){return{provides:new Map,requires:new Map}}function Ble(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case Wn.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===Pe.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.ENUM_UPPER:if(e===Pe.Kind.ENUM_TYPE_DEFINITION||e===Pe.Kind.ENUM_TYPE_EXTENSION)return!0;break;case Wn.ENUM_VALUE_UPPER:if(e===Pe.Kind.ENUM_VALUE_DEFINITION)return!0;break;case Wn.FIELD_UPPER:if(e===Pe.Kind.FIELD)return!0;break;case Wn.FIELD_DEFINITION_UPPER:if(e===Pe.Kind.FIELD_DEFINITION)return!0;break;case Wn.INLINE_FRAGMENT_UPPER:if(e===Pe.Kind.INLINE_FRAGMENT)return!0;break;case Wn.INPUT_FIELD_DEFINITION_UPPER:if(e===Pe.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.INPUT_OBJECT_UPPER:if(e===Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===Pe.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case Wn.INTERFACE_UPPER:if(e===Pe.Kind.INTERFACE_TYPE_DEFINITION||e===Pe.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case Wn.OBJECT_UPPER:if(e===Pe.Kind.OBJECT_TYPE_DEFINITION||e===Pe.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case Wn.FRAGMENT_DEFINITION_UPPER:if(e===Pe.Kind.FRAGMENT_DEFINITION)return!0;break;case Wn.FRAGMENT_SPREAD_UPPER:if(e===Pe.Kind.FRAGMENT_SPREAD)return!0;break;case Wn.SCALAR_UPPER:if(e===Pe.Kind.SCALAR_TYPE_DEFINITION||e===Pe.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case Wn.SCHEMA_UPPER:if(e===Pe.Kind.SCHEMA_DEFINITION||e===Pe.Kind.SCHEMA_EXTENSION)return!0;break;case Wn.UNION_UPPER:if(e===Pe.Kind.UNION_TYPE_DEFINITION||e===Pe.Kind.UNION_TYPE_EXTENSION)return!0;break;case Wn.VARIABLE_DEFINITION_UPPER:if(e===Pe.Kind.VARIABLE_DEFINITION)return!0;break;case Wn.QUERY_UPPER:case Wn.MUTATION_UPPER:case Wn.SUBSCRIPTION_UPPER:if(e===Pe.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,jt.unexpectedDirectiveLocationError)(i)}}return!1}function Vle(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===Pe.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}function jle(e,t){let n=new Set;for(let[r,i]of e)i.directivesByDirectiveName.has(Wn.EXTERNAL)?t.externalFieldNames?t.externalFieldNames.add(r):n.add(r):t.fieldNames.add(r);n.size>0&&(t.externalFieldNames=n)}function $le(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==Wn.FIELDS||i.value.kind!==Pe.Kind.STRING||t.set(e,i.value.value)}function FR(e){return(0,Pe.print)((0,lT.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function qle(e,t,n){switch(e){case da.FieldSetDirective.PROVIDES:return[`${t}.${n}`];default:return[]}}function Kle(e,t,n,r,i,s){let{error:o,documentNode:u}=(0,lT.safeParse)("{"+n+"}");if(o||!u)return{errorMessage:(0,jt.unparsableFieldSetErrorMessage)(n,o)};let l=[t],d=[],p=qle(i,s,r),y=[r],N=new Set,I,O=-1,x=!0,V=r;return(0,Pe.visit)(u,{Argument:{enter(){return!1}},Field:{enter(K){let re=l[O],se=re.name;if(re.kind===Pe.Kind.UNION_TYPE_DEFINITION)return I=(0,jt.invalidSelectionOnUnionErrorMessage)(n,p,se),Pe.BREAK;let fe=K.name.value,he=`${se}.${fe}`;if(e.unvalidatedExternalFieldCoords.delete(he),x)return I=(0,jt.invalidSelectionSetErrorMessage)(n,p,se,(0,zi.kindToTypeString)(re.kind)),Pe.BREAK;p.push(he),y.push(fe),V=fe;let xe=re.fieldDataByFieldName.get(fe);if(!xe)return I=(0,jt.undefinedFieldInFieldSetErrorMessage)(n,se,fe),Pe.BREAK;if(d[O].has(fe))return I=(0,jt.duplicateFieldInFieldSetErrorMessage)(n,he),Pe.BREAK;d[O].add(fe);let ht=xe.isExternalBySubgraphName.get(e.subgraphName),Ct=(0,dT.getTypeNodeNamedTypeName)(xe.node.type),B=e.parentDefinitionDataByTypeName.get(Ct);if(RR.BASE_SCALARS.has(Ct)||(B==null?void 0:B.kind)===Pe.Kind.SCALAR_TYPE_DEFINITION||(B==null?void 0:B.kind)===Pe.Kind.ENUM_TYPE_DEFINITION){if(N.size<1&&!ht){e.isSubgraphVersionTwo?e.errors.push((0,jt.nonExternalConditionalFieldError)(`${s}.${r}`,e.subgraphName,he,n,i)):e.warnings.push((0,xle.nonExternalConditionalFieldWarning)(`${s}.${r}`,e.subgraphName,he,n,i));return}let Te=(0,zi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,he,da.newConditionalFieldData),nt=(0,Tq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]});i===da.FieldSetDirective.PROVIDES?Te.providedBy.push(nt):Te.requiredBy.push(nt);return}if(!B)return I=(0,jt.unknownTypeInFieldSetErrorMessage)(n,he,Ct),Pe.BREAK;if(ht){let Te=(0,zi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,he,da.newConditionalFieldData);switch(i){case da.FieldSetDirective.PROVIDES:Te.providedBy.push((0,Tq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]}));break;default:break}N.add(he)}if(B.kind===Pe.Kind.OBJECT_TYPE_DEFINITION||B.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION||B.kind===Pe.Kind.UNION_TYPE_DEFINITION){x=!0,l.push(B);return}},leave(){N.delete(p.pop()||""),y.pop()}},InlineFragment:{enter(K){let re=l[O],se=re.name,fe=p.length<1?t.name:p[p.length-1];if(!K.typeCondition)return I=(0,jt.inlineFragmentWithoutTypeConditionErrorMessage)(n,fe),Pe.BREAK;let he=K.typeCondition.name.value;if(he===se){l.push(re),x=!0;return}if(!(0,lT.isKindAbstract)(re.kind))return I=(0,jt.invalidInlineFragmentTypeErrorMessage)(n,p,he,se),Pe.BREAK;let xe=e.parentDefinitionDataByTypeName.get(he);if(!xe)return I=(0,jt.unknownInlineFragmentTypeConditionErrorMessage)(n,p,se,he),Pe.BREAK;switch(x=!0,xe.kind){case Pe.Kind.INTERFACE_TYPE_DEFINITION:{if(!xe.implementedInterfaceTypeNames.has(se))break;l.push(xe);return}case Pe.Kind.OBJECT_TYPE_DEFINITION:{let ht=e.concreteTypeNamesByAbstractTypeName.get(se);if(!ht||!ht.has(he))break;l.push(xe);return}case Pe.Kind.UNION_TYPE_DEFINITION:{l.push(xe);return}default:return I=(0,jt.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,p,se,he,(0,zi.kindToTypeString)(xe.kind)),Pe.BREAK}return I=(0,jt.invalidInlineFragmentTypeConditionErrorMessage)(n,p,he,(0,zi.kindToTypeString)(re.kind),se),Pe.BREAK}},SelectionSet:{enter(){if(!x){let K=l[O];if(K.kind===Pe.Kind.UNION_TYPE_DEFINITION)return I=(0,jt.unparsableFieldSetSelectionErrorMessage)(n,V),Pe.BREAK;let re=K.fieldDataByFieldName.get(V);if(!re)return I=(0,jt.undefinedFieldInFieldSetErrorMessage)(n,K.name,V),Pe.BREAK;let se=(0,dT.getTypeNodeNamedTypeName)(re.node.type),fe=e.parentDefinitionDataByTypeName.get(se),he=fe?fe.kind:Pe.Kind.SCALAR_TYPE_DEFINITION;return I=(0,jt.invalidSelectionSetDefinitionErrorMessage)(n,p,se,(0,zi.kindToTypeString)(he)),Pe.BREAK}if(O+=1,x=!1,O<0||O>=l.length)return I=(0,jt.unparsableFieldSetSelectionErrorMessage)(n,V),Pe.BREAK;d.push(new Set)},leave(){if(x){let K=l[O+1];I=(0,jt.invalidSelectionSetErrorMessage)(n,p,K.name,(0,zi.kindToTypeString)(K.kind)),x=!1}O-=1,l.pop(),d.pop()}}}),I?{errorMessage:I}:{configuration:{fieldName:r,selectionSet:FR(u)}}}function Gle(e,t,n,r){let i=e.entityInterfaceDataByTypeName.has(t.name),s=t.name,o=[],u=[],l=new Set,d=[],p=i?void 0:e.internalGraph.addEntityDataNode(t.name),y=e.internalGraph.addOrUpdateNode(t.name);for(let[N,I]of n){let{error:O,documentNode:x}=(0,lT.safeParse)("{"+N+"}");if(O||!x){o.push((0,jt.unparsableFieldSetErrorMessage)(N,O));continue}let V=[t],K=[],re=[],se=new Set,fe=-1,he=!0,xe="";if((0,Pe.visit)(x,{Argument:{enter(Ct){return o.push((0,jt.unexpectedArgumentErrorMessage)(N,`${V[fe].name}.${xe}`,Ct.name.value)),Pe.BREAK}},Field:{enter(Ct){let B=V[fe-1],Te=V[fe],nt=Te.name,xt=Ct.name.value,rn=`${nt}.${xt}`;if(e.unvalidatedExternalFieldCoords.delete(rn),he)return o.push((0,jt.invalidSelectionSetErrorMessage)(N,[`${B.name}.${xe}`],nt,(0,zi.kindToTypeString)(Te.kind))),Pe.BREAK;xe=xt;let wn=Te.fieldDataByFieldName.get(xt);if(!wn)return o.push((0,jt.undefinedFieldInFieldSetErrorMessage)(N,nt,xt)),Pe.BREAK;if(wn.argumentDataByArgumentName.size)return o.push((0,jt.argumentsInKeyFieldSetErrorMessage)(N,rn)),Pe.BREAK;if(K[fe].has(xt))return o.push((0,jt.duplicateFieldInFieldSetErrorMessage)(N,rn)),Pe.BREAK;if(re.push(xt),wn.isShareableBySubgraphName.set(e.subgraphName,!0),K[fe].add(xt),fe===0)l.add(xt),r.add(xt);else{let mi=e.configurationDataByParentTypeName.get(nt);if(!mi)return o.push((0,jt.invalidConfigurationDataErrorMessage)(nt,xt,N)),Pe.BREAK;mi.fieldNames.add(xt)}(0,zi.getValueOrDefault)(e.keyFieldNamesByParentTypeName,nt,()=>new Set).add(xt);let vn=(0,dT.getTypeNodeNamedTypeName)(wn.node.type);if(RR.BASE_SCALARS.has(vn)){se.add(re.join(Wn.PERIOD)),re.pop();return}let _n=e.parentDefinitionDataByTypeName.get(vn);if(!_n)return o.push((0,jt.unknownTypeInFieldSetErrorMessage)(N,rn,vn)),Pe.BREAK;if(_n.kind===Pe.Kind.OBJECT_TYPE_DEFINITION){he=!0,V.push(_n);return}if((0,lT.isKindAbstract)(_n.kind))return o.push((0,jt.abstractTypeInKeyFieldSetErrorMessage)(N,rn,vn,(0,zi.kindToTypeString)(_n.kind))),Pe.BREAK;se.add(re.join(Wn.PERIOD)),re.pop()}},InlineFragment:{enter(){return o.push(jt.inlineFragmentInFieldSetErrorMessage),Pe.BREAK}},SelectionSet:{enter(){if(!he){let Ct=V[fe],Te=`${Ct.name}.${xe}`,nt=Ct.fieldDataByFieldName.get(xe);if(!nt)return o.push((0,jt.undefinedFieldInFieldSetErrorMessage)(N,Te,xe)),Pe.BREAK;let xt=(0,dT.getTypeNodeNamedTypeName)(nt.node.type),rn=e.parentDefinitionDataByTypeName.get(xt),wn=rn?rn.kind:Pe.Kind.SCALAR_TYPE_DEFINITION;return o.push((0,jt.invalidSelectionSetDefinitionErrorMessage)(N,[Te],xt,(0,zi.kindToTypeString)(wn))),Pe.BREAK}if(fe+=1,he=!1,fe<0||fe>=V.length)return o.push((0,jt.unparsableFieldSetSelectionErrorMessage)(N,xe)),Pe.BREAK;K.push(new Set)},leave(){if(he){let B=V[fe].name,Te=V[fe+1],nt=`${B}.${xe}`;o.push((0,jt.invalidSelectionSetErrorMessage)(N,[nt],Te.name,(0,zi.kindToTypeString)(Te.kind))),he=!1}fe-=1,V.pop(),K.pop()}}}),o.length>0)continue;let ht=FR(x);u.push(k({fieldName:"",selectionSet:ht},I?{disableEntityResolver:!0}:{})),y.satisfiedFieldSets.add(ht),!I&&(p==null||p.addTargetSubgraphByFieldSet(ht,e.subgraphName),d.push(se))}if(o.length){e.errors.push((0,jt.invalidKeyDirectivesError)(s,o));return}if(u.length)return u}function Qle(e,t,n,r,i){if(t!==da.FieldSetDirective.PROVIDES)return{fieldSetParentData:n};let s=(0,zi.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),o=(0,dT.getTypeNodeNamedTypeName)(s.node.type),u=e.parentDefinitionDataByTypeName.get(o);return u?u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION&&u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,jt.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:u}:{errorString:(0,jt.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}function yq(e,t,n,r){let i=[],s=[],o=(0,da.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:p}=Qle(e,r,t,u,o),y=`${o}.${u}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessage:N,configuration:I}=Kle(e,d,l,u,r,o);if(N){i.push(` On "${y}" \u2014`+N);continue}if(I){s.push(I);continue}throw(0,jt.invalidConfigurationResultFatalError)(y)}if(i.length>0){e.errors.push((0,jt.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(s.length>0)return s}function Yle(e,t,n){let r=(0,zi.getOrThrowError)(e.configurationDataByParentTypeName,(0,da.getParentTypeName)(t),"configurationDataByParentTypeName"),i=yq(e,t,n.provides,da.FieldSetDirective.PROVIDES);i&&(r.provides=i);let s=yq(e,t,n.requires,da.FieldSetDirective.REQUIRES);s&&(r.requires=s)}function Jle(e,t){return e===Wn.QUERY||t===Pe.OperationTypeNode.QUERY}function zle(e,t,n){let r=e.matchAll(RR.EDFS_ARGS_REGEXP),i=new Set,s=new Set;for(let o of r){if(o.length<2){s.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,jt.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of s)n.push((0,jt.invalidEventSubjectsArgumentErrorMessage)(o))}});var wR=j(zp=>{"use strict";m();T();h();Object.defineProperty(zp,"__esModule",{value:!0});zp.newParentTagData=ede;zp.newChildTagData=tde;zp.validateImplicitFieldSets=nde;zp.newContractTagOptionsFromArrays=rde;var Hle=ps(),Wle=Qa(),Ws=VV(),Xle=Oc(),Nq=$i(),Zle=Ql();function ede(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function tde(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function nde({conditionalFieldDataByCoordinates:e,configurationData:t,fieldSets:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:s,graphNode:o}){for(let u of n){let{error:l,documentNode:d}=(0,Nq.safeParse)("{"+u+"}");if(l||!d)continue;let p=[i],y=[],N=new Set,I=[],O=-1,x=!0,V=!0;if((0,Ws.visit)(d,{Argument:{enter(){return V=!1,Ws.BREAK}},Field:{enter(re){let se=p[O];if(x)return V=!1,Ws.BREAK;let fe=re.name.value,he=se.fieldDataByFieldName.get(fe);if(!he||he.argumentDataByArgumentName.size||y[O].has(fe))return V=!1,Ws.BREAK;let xe=e.get(`${he.renamedParentTypeName}.${fe}`);if(xe){if(xe.providedBy.length>0)I.push(...xe.providedBy);else if(xe.requiredBy.length>0)return V=!1,Ws.BREAK}y[O].add(fe),O===0&&N.add(fe);let ht=(0,Wle.getTypeNodeNamedTypeName)(he.node.type);if(Xle.BASE_SCALARS.has(ht))return;let Ct=s.get(ht);if(!Ct)return V=!1,Ws.BREAK;if(Ct.kind===Ws.Kind.OBJECT_TYPE_DEFINITION){x=!0,p.push(Ct);return}if((0,Nq.isKindAbstract)(Ct.kind))return V=!1,Ws.BREAK}},InlineFragment:{enter(){return V=!1,Ws.BREAK}},SelectionSet:{enter(){if(!x||(O+=1,x=!1,O<0||O>=p.length))return V=!1,Ws.BREAK;y.push(new Set)},leave(){if(x)return V=!1,Ws.BREAK;O-=1,p.pop(),y.pop()}}}),!V)continue;(0,Hle.addIterableValuesToSet)(N,t.fieldNames);let K=(0,Zle.getNormalizedFieldSet)(d);r.push(G(k({fieldName:"",selectionSet:K},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(K)}}function rde(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}});var PR=j(LR=>{"use strict";m();T();h();Object.defineProperty(LR,"__esModule",{value:!0});LR.recordSubgraphName=ide;function ide(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var kR=j(mT=>{"use strict";m();T();h();Object.defineProperty(mT,"__esModule",{value:!0});mT.upsertDirectiveSchemaAndEntityDefinitions=ode;mT.upsertParentsAndChildren=ade;mT.consolidateAuthorizationDirectives=ude;var nr=(Le(),Me(je)),Wa=To(),Yl=Oc(),Tn=ps(),pT=$i(),Jl=Ql(),rr=bi(),Fi=Jp(),fT=Qa(),sde=cT();function ode(e,t){let n=new Set,r=[];(0,nr.visit)(t,{Directive:{enter(i){let s=i.name.value;if(rr.EVENT_DIRECTIVE_NAMES.has(s)&&e.edfsDirectiveReferences.add(s),Yl.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return e.isSubgraphVersionTwo=!0,!1;if(Yl.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return!1;s===rr.SUBSCRIPTION_FILTER&&e.directiveDefinitionByDirectiveName.set(rr.SUBSCRIPTION_FILTER,Yl.SUBSCRIPTION_FILTER_DEFINITION),e.referencedDirectiveNames.add(s)}},DirectiveDefinition:{enter(i){let s=i.name.value;return n.has(s)?(e.errors.push((0,Wa.duplicateDirectiveDefinitionError)(s)),!1):(n.add(s),Yl.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)?(e.isSubgraphVersionTwo=!0,!1):(Yl.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)||s===rr.SUBSCRIPTION_FILTER||(e.directiveDefinitionByDirectiveName.set(s,i),e.customDirectiveDefinitions.set(s,i)),!1))}},InterfaceTypeDefinition:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,pT.isObjectLikeNodeEntity)(i))return;let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Jl.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{})),(0,Tn.getValueOrDefault)(e.entityInterfaceDataByTypeName,s,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:s}))}},InterfaceTypeExtension:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,pT.isObjectLikeNodeEntity)(i))return;let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Jl.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeDefinition:{enter(i){if(!(0,pT.isObjectLikeNodeEntity)(i))return;let s=i.name.value;(0,pT.isNodeInterfaceObject)(i)&&(e.entityInterfaceDataByTypeName.set(s,{fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:s}),e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}));let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Jl.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeExtension:{enter(i){if(!(0,pT.isObjectLikeNodeEntity)(i))return;let s=i.name.value,o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,Jl.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},OperationTypeDefinition:{enter(i){let s=i.operation,o=e.schemaDefinition.operationTypes.get(s),u=(0,fT.getTypeNodeNamedTypeName)(i.type);if(o)return(0,Wa.duplicateOperationTypeDefinitionError)(s,u,(0,fT.getTypeNodeNamedTypeName)(o.type)),!1;let l=e.operationTypeNodeByTypeName.get(u);return l?(e.errors.push((0,Wa.invalidOperationTypeDefinitionError)(l,u,s)),!1):(e.operationTypeNodeByTypeName.set(u,s),e.schemaDefinition.operationTypes.set(s,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}},UnionTypeDefinition:{enter(i){i.name.value!==rr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===rr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}});for(let i of r)(0,Fi.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,rr.SCHEMA)}function ade(e,t){let n=!1,r;(0,nr.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},EnumValueDefinition:{enter(i){e.childName=i.name.value,e.lastChildNodeKind=i.kind;let s=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA);if(s.kind!==nr.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,"enum or enum extension",(0,Tn.kindToTypeString)(s.kind),e.childName,(0,Tn.kindToTypeString)(i.kind)));return}if(s.enumValueDataByValueName.has(e.childName)){e.errors.push((0,Wa.duplicateEnumValueDefinitionError)(e.originalParentTypeName,e.childName));return}(0,Fi.addEnumValueDataByNode)(s.enumValueDataByValueName,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName,e.subgraphName)},leave(){e.childName="",e.lastChildNodeKind=nr.Kind.NULL}},FieldDefinition:{enter(i){if(e.childName=i.name.value,n&&(e.childName===rr.SERVICE_FIELD||e.childName===rr.ENTITIES_FIELD))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let s=(0,fT.getTypeNodeNamedTypeName)(i.type);r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(s),e.childName),Yl.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let o=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA);if(o.kind!==nr.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==nr.Kind.INTERFACE_TYPE_DEFINITION){e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,Tn.kindToTypeString)(o.kind),e.childName,(0,Tn.kindToTypeString)(i.kind)));return}if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,Wa.duplicateFieldDefinitionError)((0,Tn.kindToTypeString)(o.kind),o.name,e.childName));return}let u=(0,Fi.extractArguments)(new Map,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),l=e.extractDirectivesAndAuthorization(i,new Map);(0,Fi.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,l);let d=(0,Fi.addFieldDataByNode)(o.fieldDataByFieldName,i,u,l,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo,e.errors);!(0,Fi.isParentDataInterfaceType)(o)&&l.has(rr.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${i.name.value}`),n&&e.extractEventDirectivesToConfiguration(i,u);let p=d.directivesByDirectiveName.get(rr.PROVIDES),y=d.directivesByDirectiveName.get(rr.REQUIRES);if(!y&&!p)return;let N=e.entityDataByTypeName.get(e.originalParentTypeName),I=(0,Tn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,Jl.newFieldSetData);N&&N.fieldNames.add(e.childName),p&&(0,Jl.extractFieldSetValue)(e.childName,I.provides,p),y&&(N||e.warnings.push((0,sde.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${e.childName}`,e.subgraphName)),(0,Jl.extractFieldSetValue)(e.childName,I.requires,y))},leave(){e.childName="",e.lastChildNodeKind=nr.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=nr.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},InputValueDefinition:{enter(i){let s=i.name.value;if(e.lastParentNodeKind!==nr.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==nr.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=s;return}e.childName=s,e.lastChildNodeKind=i.kind;let o=`${e.originalParentTypeName}.${s}`,u=(0,fT.getTypeNodeNamedTypeName)(i.type);Yl.BASE_SCALARS.has(u)||e.referencedTypeNames.add(u);let l=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA);if(l.kind!==nr.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,Tn.kindToTypeString)(l.kind),e.childName,(0,Tn.kindToTypeString)(i.kind))),!1;if(l.inputValueDataByValueName.has(s)){e.errors.push((0,Wa.duplicateInputFieldDefinitionError)(e.originalParentTypeName,s));return}(0,Fi.addInputValueDataByNode)(l.inputValueDataByValueName,i,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===nr.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=nr.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===rr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Fi.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Fi.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ObjectTypeExtension:{enter(i){if(i.name.value===rr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Fi.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Fi.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,rr.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ScalarTypeDefinition:{enter(i){if(i.name.value===rr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===rr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=nr.Kind.NULL}}})}function ude(e,t){let n,r=!1;(0,nr.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let s=(0,fT.getTypeNodeNamedTypeName)(i.type),o=e.leafTypeNamesWithAuthorizationDirectives.has(s);if((!n||!n.hasParentLevelAuthorization)&&!o)return!1;let u=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,Tn.setAndGetValue)(e.authorizationDataByParentTypeName,u,(0,Tn.newAuthorizationData)(u)));let l=(0,Tn.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,Tn.newFieldAuthorizationData)(e.childName));if(!(0,Tn.mergeAuthorizationDataByAND)(n,l))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!o)return!1;if(r)return(0,Tn.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,s,()=>[]).push(l),!1;let d=e.authorizationDataByParentTypeName.get(s);return d&&d.hasParentLevelAuthorization&&!(0,Tn.mergeAuthorizationDataByAND)(d,l)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}});var BR=j(pa=>{"use strict";m();T();h();Object.defineProperty(pa,"__esModule",{value:!0});pa.EntityDataNode=pa.RootNode=pa.GraphNode=pa.Edge=void 0;var aI=ps(),CR=class{constructor(t,n,r,i=!1){A(this,"edgeName");A(this,"id");A(this,"isAbstractEdge");A(this,"isInaccessible",!1);A(this,"node");A(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};pa.Edge=CR;var xR=class{constructor(t,n,r){A(this,"fieldDataByFieldName",new Map);A(this,"headToTailEdges",new Map);A(this,"entityEdges",[]);A(this,"nodeName");A(this,"hasEntitySiblings",!1);A(this,"isAbstract");A(this,"isInaccessible",!1);A(this,"isLeaf",!1);A(this,"isRootNode",!1);A(this,"satisfiedFieldSets",new Set);A(this,"subgraphName");A(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,aI.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,aI.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};pa.GraphNode=xR;var UR=class{constructor(t){A(this,"fieldDataByFieldName",new Map);A(this,"headToShareableTailEdges",new Map);A(this,"isAbstract",!1);A(this,"isRootNode",!0);A(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};pa.RootNode=UR;var MR=class{constructor(t){A(this,"fieldSetsByTargetSubgraphName",new Map);A(this,"targetSubgraphNamesByFieldSet",new Map);A(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,aI.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,aI.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};pa.EntityDataNode=MR});var jR=j(Xa=>{"use strict";m();T();h();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.NodeResolutionData=void 0;Xa.newRootFieldData=cde;Xa.generateResolvabilityErrorReasons=Iq;Xa.generateSelectionSetSegments=vq;Xa.renderSelectionSet=_q;Xa.generateResolvabilityErrors=pde;var Eq=ps(),zl=bi(),gq=To(),VR=class{constructor(t,n){A(this,"fieldDataByFieldName");A(this,"isResolved",!1);A(this,"resolvedFieldNames",new Set);A(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Eq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,gq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};Xa.NodeResolutionData=VR;function cde(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(zl.QUOTATION_JOIN)}".`,subgraphNames:n}}function lde(e,t){return e.isLeaf?e.name+` <-- +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function Qle(e,t){return new la({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function Yle(e,t){return new la({message:CR(t)+` The Object Field "${e}" is invalidly declared "@external". An Object Field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" FieldSet, or the Field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function Jle(e,t){return new la({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function zle(e,t=""){return new la({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` +${t}`:"",subgraph:{name:e}})}});var Xl=j(Ns=>{"use strict";m();T();h();Object.defineProperty(Ns,"__esModule",{value:!0});Ns.newKeyFieldSetData=Wle;Ns.newFieldSetData=Xle;Ns.areNodeKindAndDirectiveLocationCompatible=Zle;Ns.getDirectiveDefinitionArgumentSets=ede;Ns.addFieldNamesToConfigurationData=tde;Ns.extractFieldSetValue=nde;Ns.getNormalizedFieldSet=MR;Ns.validateKeyFieldSets=sde;Ns.validateAndAddConditionalFieldSetsToConfiguration=ade;Ns.isNodeQuery=ude;Ns.validateArgumentTemplateReferences=cde;var Pe=(Le(),Me(je)),zi=ps(),TT=$i(),Wn=bi(),jt=To(),UR=wc(),Rq=pA(),yT=Qa(),da=ef(),Hle=hT();function Wle(){return{isUnresolvableByKeyFieldSet:new Map}}function Xle(){return{provides:new Map,requires:new Map}}function Zle(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case Wn.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===Pe.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.ENUM_UPPER:if(e===Pe.Kind.ENUM_TYPE_DEFINITION||e===Pe.Kind.ENUM_TYPE_EXTENSION)return!0;break;case Wn.ENUM_VALUE_UPPER:if(e===Pe.Kind.ENUM_VALUE_DEFINITION)return!0;break;case Wn.FIELD_UPPER:if(e===Pe.Kind.FIELD)return!0;break;case Wn.FIELD_DEFINITION_UPPER:if(e===Pe.Kind.FIELD_DEFINITION)return!0;break;case Wn.INLINE_FRAGMENT_UPPER:if(e===Pe.Kind.INLINE_FRAGMENT)return!0;break;case Wn.INPUT_FIELD_DEFINITION_UPPER:if(e===Pe.Kind.INPUT_VALUE_DEFINITION)return!0;break;case Wn.INPUT_OBJECT_UPPER:if(e===Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===Pe.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case Wn.INTERFACE_UPPER:if(e===Pe.Kind.INTERFACE_TYPE_DEFINITION||e===Pe.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case Wn.OBJECT_UPPER:if(e===Pe.Kind.OBJECT_TYPE_DEFINITION||e===Pe.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case Wn.FRAGMENT_DEFINITION_UPPER:if(e===Pe.Kind.FRAGMENT_DEFINITION)return!0;break;case Wn.FRAGMENT_SPREAD_UPPER:if(e===Pe.Kind.FRAGMENT_SPREAD)return!0;break;case Wn.SCALAR_UPPER:if(e===Pe.Kind.SCALAR_TYPE_DEFINITION||e===Pe.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case Wn.SCHEMA_UPPER:if(e===Pe.Kind.SCHEMA_DEFINITION||e===Pe.Kind.SCHEMA_EXTENSION)return!0;break;case Wn.UNION_UPPER:if(e===Pe.Kind.UNION_TYPE_DEFINITION||e===Pe.Kind.UNION_TYPE_EXTENSION)return!0;break;case Wn.VARIABLE_DEFINITION_UPPER:if(e===Pe.Kind.VARIABLE_DEFINITION)return!0;break;case Wn.QUERY_UPPER:case Wn.MUTATION_UPPER:case Wn.SUBSCRIPTION_UPPER:if(e===Pe.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,jt.unexpectedDirectiveLocationError)(i)}}return!1}function ede(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===Pe.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}function tde(e,t){let n=new Set;for(let[r,i]of e)i.directivesByDirectiveName.has(Wn.EXTERNAL)?t.externalFieldNames?t.externalFieldNames.add(r):n.add(r):t.fieldNames.add(r);n.size>0&&(t.externalFieldNames=n)}function nde(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==Wn.FIELDS||i.value.kind!==Pe.Kind.STRING||t.set(e,i.value.value)}function MR(e){return(0,Pe.print)((0,TT.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function rde(e,t,n){switch(e){case da.FieldSetDirective.PROVIDES:return[`${t}.${n}`];default:return[]}}function ide(e,t,n,r,i,s){let{error:o,documentNode:u}=(0,TT.safeParse)("{"+n+"}");if(o||!u)return{errorMessage:(0,jt.unparsableFieldSetErrorMessage)(n,o)};let l=[t],d=[],p=rde(i,s,r),y=[r],N=new Set,I,S=-1,C=!0,V=r;return(0,Pe.visit)(u,{Argument:{enter(){return!1}},Field:{enter(G){let re=l[S],se=re.name;if(re.kind===Pe.Kind.UNION_TYPE_DEFINITION)return I=(0,jt.invalidSelectionOnUnionErrorMessage)(n,p,se),Pe.BREAK;let fe=G.name.value,he=`${se}.${fe}`;if(e.unvalidatedExternalFieldCoords.delete(he),C)return I=(0,jt.invalidSelectionSetErrorMessage)(n,p,se,(0,zi.kindToTypeString)(re.kind)),Pe.BREAK;p.push(he),y.push(fe),V=fe;let Ce=re.fieldDataByFieldName.get(fe);if(!Ce)return I=(0,jt.undefinedFieldInFieldSetErrorMessage)(n,se,fe),Pe.BREAK;if(d[S].has(fe))return I=(0,jt.duplicateFieldInFieldSetErrorMessage)(n,he),Pe.BREAK;d[S].add(fe);let ht=Ce.isExternalBySubgraphName.get(e.subgraphName),xt=(0,yT.getTypeNodeNamedTypeName)(Ce.node.type),B=e.parentDefinitionDataByTypeName.get(xt);if(UR.BASE_SCALARS.has(xt)||(B==null?void 0:B.kind)===Pe.Kind.SCALAR_TYPE_DEFINITION||(B==null?void 0:B.kind)===Pe.Kind.ENUM_TYPE_DEFINITION){if(N.size<1&&!ht){e.isSubgraphVersionTwo?e.errors.push((0,jt.nonExternalConditionalFieldError)(`${s}.${r}`,e.subgraphName,he,n,i)):e.warnings.push((0,Hle.nonExternalConditionalFieldWarning)(`${s}.${r}`,e.subgraphName,he,n,i));return}let Te=(0,zi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,he,da.newConditionalFieldData),rt=(0,Rq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]});i===da.FieldSetDirective.PROVIDES?Te.providedBy.push(rt):Te.requiredBy.push(rt);return}if(!B)return I=(0,jt.unknownTypeInFieldSetErrorMessage)(n,he,xt),Pe.BREAK;if(ht){let Te=(0,zi.getValueOrDefault)(e.conditionalFieldDataByCoordinates,he,da.newConditionalFieldData);switch(i){case da.FieldSetDirective.PROVIDES:Te.providedBy.push((0,Rq.newFieldSetConditionData)({fieldCoordinatesPath:[...p],fieldPath:[...y]}));break;default:break}N.add(he)}if(B.kind===Pe.Kind.OBJECT_TYPE_DEFINITION||B.kind===Pe.Kind.INTERFACE_TYPE_DEFINITION||B.kind===Pe.Kind.UNION_TYPE_DEFINITION){C=!0,l.push(B);return}},leave(){N.delete(p.pop()||""),y.pop()}},InlineFragment:{enter(G){let re=l[S],se=re.name,fe=p.length<1?t.name:p[p.length-1];if(!G.typeCondition)return I=(0,jt.inlineFragmentWithoutTypeConditionErrorMessage)(n,fe),Pe.BREAK;let he=G.typeCondition.name.value;if(he===se){l.push(re),C=!0;return}if(!(0,TT.isKindAbstract)(re.kind))return I=(0,jt.invalidInlineFragmentTypeErrorMessage)(n,p,he,se),Pe.BREAK;let Ce=e.parentDefinitionDataByTypeName.get(he);if(!Ce)return I=(0,jt.unknownInlineFragmentTypeConditionErrorMessage)(n,p,se,he),Pe.BREAK;switch(C=!0,Ce.kind){case Pe.Kind.INTERFACE_TYPE_DEFINITION:{if(!Ce.implementedInterfaceTypeNames.has(se))break;l.push(Ce);return}case Pe.Kind.OBJECT_TYPE_DEFINITION:{let ht=e.concreteTypeNamesByAbstractTypeName.get(se);if(!ht||!ht.has(he))break;l.push(Ce);return}case Pe.Kind.UNION_TYPE_DEFINITION:{l.push(Ce);return}default:return I=(0,jt.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,p,se,he,(0,zi.kindToTypeString)(Ce.kind)),Pe.BREAK}return I=(0,jt.invalidInlineFragmentTypeConditionErrorMessage)(n,p,he,(0,zi.kindToTypeString)(re.kind),se),Pe.BREAK}},SelectionSet:{enter(){if(!C){let G=l[S];if(G.kind===Pe.Kind.UNION_TYPE_DEFINITION)return I=(0,jt.unparsableFieldSetSelectionErrorMessage)(n,V),Pe.BREAK;let re=G.fieldDataByFieldName.get(V);if(!re)return I=(0,jt.undefinedFieldInFieldSetErrorMessage)(n,G.name,V),Pe.BREAK;let se=(0,yT.getTypeNodeNamedTypeName)(re.node.type),fe=e.parentDefinitionDataByTypeName.get(se),he=fe?fe.kind:Pe.Kind.SCALAR_TYPE_DEFINITION;return I=(0,jt.invalidSelectionSetDefinitionErrorMessage)(n,p,se,(0,zi.kindToTypeString)(he)),Pe.BREAK}if(S+=1,C=!1,S<0||S>=l.length)return I=(0,jt.unparsableFieldSetSelectionErrorMessage)(n,V),Pe.BREAK;d.push(new Set)},leave(){if(C){let G=l[S+1];I=(0,jt.invalidSelectionSetErrorMessage)(n,p,G.name,(0,zi.kindToTypeString)(G.kind)),C=!1}S-=1,l.pop(),d.pop()}}}),I?{errorMessage:I}:{configuration:{fieldName:r,selectionSet:MR(u)}}}function sde(e,t,n,r){let i=e.entityInterfaceDataByTypeName.has(t.name),s=t.name,o=[],u=[],l=new Set,d=[],p=i?void 0:e.internalGraph.addEntityDataNode(t.name),y=e.internalGraph.addOrUpdateNode(t.name);for(let[N,I]of n){let{error:S,documentNode:C}=(0,TT.safeParse)("{"+N+"}");if(S||!C){o.push((0,jt.unparsableFieldSetErrorMessage)(N,S));continue}let V=[t],G=[],re=[],se=new Set,fe=-1,he=!0,Ce="";if((0,Pe.visit)(C,{Argument:{enter(xt){return o.push((0,jt.unexpectedArgumentErrorMessage)(N,`${V[fe].name}.${Ce}`,xt.name.value)),Pe.BREAK}},Field:{enter(xt){let B=V[fe-1],Te=V[fe],rt=Te.name,Ct=xt.name.value,rn=`${rt}.${Ct}`;if(e.unvalidatedExternalFieldCoords.delete(rn),he)return o.push((0,jt.invalidSelectionSetErrorMessage)(N,[`${B.name}.${Ce}`],rt,(0,zi.kindToTypeString)(Te.kind))),Pe.BREAK;Ce=Ct;let wn=Te.fieldDataByFieldName.get(Ct);if(!wn)return o.push((0,jt.undefinedFieldInFieldSetErrorMessage)(N,rt,Ct)),Pe.BREAK;if(wn.argumentDataByArgumentName.size)return o.push((0,jt.argumentsInKeyFieldSetErrorMessage)(N,rn)),Pe.BREAK;if(G[fe].has(Ct))return o.push((0,jt.duplicateFieldInFieldSetErrorMessage)(N,rn)),Pe.BREAK;if(re.push(Ct),wn.isShareableBySubgraphName.set(e.subgraphName,!0),G[fe].add(Ct),fe===0)l.add(Ct),r.add(Ct);else{let mi=e.configurationDataByParentTypeName.get(rt);if(!mi)return o.push((0,jt.invalidConfigurationDataErrorMessage)(rt,Ct,N)),Pe.BREAK;mi.fieldNames.add(Ct)}(0,zi.getValueOrDefault)(e.keyFieldNamesByParentTypeName,rt,()=>new Set).add(Ct);let _n=(0,yT.getTypeNodeNamedTypeName)(wn.node.type);if(UR.BASE_SCALARS.has(_n)){se.add(re.join(Wn.PERIOD)),re.pop();return}let bn=e.parentDefinitionDataByTypeName.get(_n);if(!bn)return o.push((0,jt.unknownTypeInFieldSetErrorMessage)(N,rn,_n)),Pe.BREAK;if(bn.kind===Pe.Kind.OBJECT_TYPE_DEFINITION){he=!0,V.push(bn);return}if((0,TT.isKindAbstract)(bn.kind))return o.push((0,jt.abstractTypeInKeyFieldSetErrorMessage)(N,rn,_n,(0,zi.kindToTypeString)(bn.kind))),Pe.BREAK;se.add(re.join(Wn.PERIOD)),re.pop()}},InlineFragment:{enter(){return o.push(jt.inlineFragmentInFieldSetErrorMessage),Pe.BREAK}},SelectionSet:{enter(){if(!he){let xt=V[fe],Te=`${xt.name}.${Ce}`,rt=xt.fieldDataByFieldName.get(Ce);if(!rt)return o.push((0,jt.undefinedFieldInFieldSetErrorMessage)(N,Te,Ce)),Pe.BREAK;let Ct=(0,yT.getTypeNodeNamedTypeName)(rt.node.type),rn=e.parentDefinitionDataByTypeName.get(Ct),wn=rn?rn.kind:Pe.Kind.SCALAR_TYPE_DEFINITION;return o.push((0,jt.invalidSelectionSetDefinitionErrorMessage)(N,[Te],Ct,(0,zi.kindToTypeString)(wn))),Pe.BREAK}if(fe+=1,he=!1,fe<0||fe>=V.length)return o.push((0,jt.unparsableFieldSetSelectionErrorMessage)(N,Ce)),Pe.BREAK;G.push(new Set)},leave(){if(he){let B=V[fe].name,Te=V[fe+1],rt=`${B}.${Ce}`;o.push((0,jt.invalidSelectionSetErrorMessage)(N,[rt],Te.name,(0,zi.kindToTypeString)(Te.kind))),he=!1}fe-=1,V.pop(),G.pop()}}}),o.length>0)continue;let ht=MR(C);u.push(k({fieldName:"",selectionSet:ht},I?{disableEntityResolver:!0}:{})),y.satisfiedFieldSets.add(ht),!I&&(p==null||p.addTargetSubgraphByFieldSet(ht,e.subgraphName),d.push(se))}if(o.length){e.errors.push((0,jt.invalidKeyDirectivesError)(s,o));return}if(u.length)return u}function ode(e,t,n,r,i){if(t!==da.FieldSetDirective.PROVIDES)return{fieldSetParentData:n};let s=(0,zi.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),o=(0,yT.getTypeNodeNamedTypeName)(s.node.type),u=e.parentDefinitionDataByTypeName.get(o);return u?u.kind!==Pe.Kind.INTERFACE_TYPE_DEFINITION&&u.kind!==Pe.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,jt.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:u}:{errorString:(0,jt.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}function Fq(e,t,n,r){let i=[],s=[],o=(0,da.getParentTypeName)(t);for(let[u,l]of n){let{fieldSetParentData:d,errorString:p}=ode(e,r,t,u,o),y=`${o}.${u}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessage:N,configuration:I}=ide(e,d,l,u,r,o);if(N){i.push(` On "${y}" \u2014`+N);continue}if(I){s.push(I);continue}throw(0,jt.invalidConfigurationResultFatalError)(y)}if(i.length>0){e.errors.push((0,jt.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(s.length>0)return s}function ade(e,t,n){let r=(0,zi.getOrThrowError)(e.configurationDataByParentTypeName,(0,da.getParentTypeName)(t),"configurationDataByParentTypeName"),i=Fq(e,t,n.provides,da.FieldSetDirective.PROVIDES);i&&(r.provides=i);let s=Fq(e,t,n.requires,da.FieldSetDirective.REQUIRES);s&&(r.requires=s)}function ude(e,t){return e===Wn.QUERY||t===Pe.OperationTypeNode.QUERY}function cde(e,t,n){let r=e.matchAll(UR.EDFS_ARGS_REGEXP),i=new Set,s=new Set;for(let o of r){if(o.length<2){s.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,jt.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of s)n.push((0,jt.invalidEventSubjectsArgumentErrorMessage)(o))}});var BR=j(tf=>{"use strict";m();T();h();Object.defineProperty(tf,"__esModule",{value:!0});tf.newParentTagData=mde;tf.newChildTagData=hde;tf.validateImplicitFieldSets=Tde;tf.newContractTagOptionsFromArrays=yde;var lde=ps(),dde=Qa(),Ws=ZV(),pde=wc(),wq=$i(),fde=Xl();function mde(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function hde(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function Tde({conditionalFieldDataByCoordinates:e,configurationData:t,fieldSets:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:s,graphNode:o}){for(let u of n){let{error:l,documentNode:d}=(0,wq.safeParse)("{"+u+"}");if(l||!d)continue;let p=[i],y=[],N=new Set,I=[],S=-1,C=!0,V=!0;if((0,Ws.visit)(d,{Argument:{enter(){return V=!1,Ws.BREAK}},Field:{enter(re){let se=p[S];if(C)return V=!1,Ws.BREAK;let fe=re.name.value,he=se.fieldDataByFieldName.get(fe);if(!he||he.argumentDataByArgumentName.size||y[S].has(fe))return V=!1,Ws.BREAK;let Ce=e.get(`${he.renamedParentTypeName}.${fe}`);if(Ce){if(Ce.providedBy.length>0)I.push(...Ce.providedBy);else if(Ce.requiredBy.length>0)return V=!1,Ws.BREAK}y[S].add(fe),S===0&&N.add(fe);let ht=(0,dde.getTypeNodeNamedTypeName)(he.node.type);if(pde.BASE_SCALARS.has(ht))return;let xt=s.get(ht);if(!xt)return V=!1,Ws.BREAK;if(xt.kind===Ws.Kind.OBJECT_TYPE_DEFINITION){C=!0,p.push(xt);return}if((0,wq.isKindAbstract)(xt.kind))return V=!1,Ws.BREAK}},InlineFragment:{enter(){return V=!1,Ws.BREAK}},SelectionSet:{enter(){if(!C||(S+=1,C=!1,S<0||S>=p.length))return V=!1,Ws.BREAK;y.push(new Set)},leave(){if(C)return V=!1,Ws.BREAK;S-=1,p.pop(),y.pop()}}}),!V)continue;(0,lde.addIterableValuesToSet)(N,t.fieldNames);let G=(0,fde.getNormalizedFieldSet)(d);r.push(Q(k({fieldName:"",selectionSet:G},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(G)}}function yde(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}});var jR=j(VR=>{"use strict";m();T();h();Object.defineProperty(VR,"__esModule",{value:!0});VR.recordSubgraphName=Nde;function Nde(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var $R=j(gT=>{"use strict";m();T();h();Object.defineProperty(gT,"__esModule",{value:!0});gT.upsertDirectiveSchemaAndEntityDefinitions=gde;gT.upsertParentsAndChildren=Ide;gT.consolidateAuthorizationDirectives=vde;var rr=(Le(),Me(je)),Wa=To(),Zl=wc(),Tn=ps(),NT=$i(),ed=Xl(),ir=bi(),Fi=ef(),ET=Qa(),Ede=hT();function gde(e,t){let n=new Set,r=[];(0,rr.visit)(t,{Directive:{enter(i){let s=i.name.value;if(ir.EVENT_DIRECTIVE_NAMES.has(s)&&e.edfsDirectiveReferences.add(s),Zl.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return e.isSubgraphVersionTwo=!0,!1;if(Zl.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s))return!1;s===ir.SUBSCRIPTION_FILTER&&e.directiveDefinitionByDirectiveName.set(ir.SUBSCRIPTION_FILTER,Zl.SUBSCRIPTION_FILTER_DEFINITION),e.referencedDirectiveNames.add(s)}},DirectiveDefinition:{enter(i){let s=i.name.value;return n.has(s)?(e.errors.push((0,Wa.duplicateDirectiveDefinitionError)(s)),!1):(n.add(s),Zl.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)?(e.isSubgraphVersionTwo=!0,!1):(Zl.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(s)||s===ir.SUBSCRIPTION_FILTER||(e.directiveDefinitionByDirectiveName.set(s,i),e.customDirectiveDefinitions.set(s,i)),!1))}},InterfaceTypeDefinition:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,NT.isObjectLikeNodeEntity)(i))return;let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,ed.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{})),(0,Tn.getValueOrDefault)(e.entityInterfaceDataByTypeName,s,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:s}))}},InterfaceTypeExtension:{enter(i){let s=i.name.value;if(e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}),!(0,NT.isObjectLikeNodeEntity)(i))return;let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,ed.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeDefinition:{enter(i){if(!(0,NT.isObjectLikeNodeEntity)(i))return;let s=i.name.value;(0,NT.isNodeInterfaceObject)(i)&&(e.entityInterfaceDataByTypeName.set(s,{fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:s}),e.internalGraph.addOrUpdateNode(s,{isAbstract:!0}));let o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,ed.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},ObjectTypeExtension:{enter(i){if(!(0,NT.isObjectLikeNodeEntity)(i))return;let s=i.name.value,o=(0,Tn.getValueOrDefault)(e.keyFieldSetDataByTypeName,s,ed.newKeyFieldSetData);e.extractKeyFieldSets(i,o),(0,Tn.upsertEntityDataProperties)(e.entityDataByTypeName,k({typeName:s,keyFieldSets:o.isUnresolvableByKeyFieldSet.keys()},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))}},OperationTypeDefinition:{enter(i){let s=i.operation,o=e.schemaDefinition.operationTypes.get(s),u=(0,ET.getTypeNodeNamedTypeName)(i.type);if(o)return(0,Wa.duplicateOperationTypeDefinitionError)(s,u,(0,ET.getTypeNodeNamedTypeName)(o.type)),!1;let l=e.operationTypeNodeByTypeName.get(u);return l?(e.errors.push((0,Wa.invalidOperationTypeDefinitionError)(l,u,s)),!1):(e.operationTypeNodeByTypeName.set(u,s),e.schemaDefinition.operationTypes.set(s,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}},UnionTypeDefinition:{enter(i){i.name.value!==ir.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===ir.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}});for(let i of r)(0,Fi.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,ir.SCHEMA)}function Ide(e,t){let n=!1,r;(0,rr.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},EnumValueDefinition:{enter(i){e.childName=i.name.value,e.lastChildNodeKind=i.kind;let s=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA);if(s.kind!==rr.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,"enum or enum extension",(0,Tn.kindToTypeString)(s.kind),e.childName,(0,Tn.kindToTypeString)(i.kind)));return}if(s.enumValueDataByValueName.has(e.childName)){e.errors.push((0,Wa.duplicateEnumValueDefinitionError)(e.originalParentTypeName,e.childName));return}(0,Fi.addEnumValueDataByNode)(s.enumValueDataByValueName,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName,e.subgraphName)},leave(){e.childName="",e.lastChildNodeKind=rr.Kind.NULL}},FieldDefinition:{enter(i){if(e.childName=i.name.value,n&&(e.childName===ir.SERVICE_FIELD||e.childName===ir.ENTITIES_FIELD))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let s=(0,ET.getTypeNodeNamedTypeName)(i.type);r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(s),e.childName),Zl.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let o=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA);if(o.kind!==rr.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==rr.Kind.INTERFACE_TYPE_DEFINITION){e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,Tn.kindToTypeString)(o.kind),e.childName,(0,Tn.kindToTypeString)(i.kind)));return}if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,Wa.duplicateFieldDefinitionError)((0,Tn.kindToTypeString)(o.kind),o.name,e.childName));return}let u=(0,Fi.extractArguments)(new Map,i,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),l=e.extractDirectivesAndAuthorization(i,new Map);(0,Fi.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,l);let d=(0,Fi.addFieldDataByNode)(o.fieldDataByFieldName,i,u,l,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo,e.errors);!(0,Fi.isParentDataInterfaceType)(o)&&l.has(ir.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${i.name.value}`),n&&e.extractEventDirectivesToConfiguration(i,u);let p=d.directivesByDirectiveName.get(ir.PROVIDES),y=d.directivesByDirectiveName.get(ir.REQUIRES);if(!y&&!p)return;let N=e.entityDataByTypeName.get(e.originalParentTypeName),I=(0,Tn.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,ed.newFieldSetData);N&&N.fieldNames.add(e.childName),p&&(0,ed.extractFieldSetValue)(e.childName,I.provides,p),y&&(N||e.warnings.push((0,Ede.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${e.childName}`,e.subgraphName)),(0,ed.extractFieldSetValue)(e.childName,I.requires,y))},leave(){e.childName="",e.lastChildNodeKind=rr.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=rr.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=rr.Kind.NULL}},InputValueDefinition:{enter(i){let s=i.name.value;if(e.lastParentNodeKind!==rr.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==rr.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=s;return}e.childName=s,e.lastChildNodeKind=i.kind;let o=`${e.originalParentTypeName}.${s}`,u=(0,ET.getTypeNodeNamedTypeName)(i.type);Zl.BASE_SCALARS.has(u)||e.referencedTypeNames.add(u);let l=(0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA);if(l.kind!==rr.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Wa.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,Tn.kindToTypeString)(l.kind),e.childName,(0,Tn.kindToTypeString)(i.kind))),!1;if(l.inputValueDataByValueName.has(s)){e.errors.push((0,Wa.duplicateInputFieldDefinitionError)(e.originalParentTypeName,s));return}(0,Fi.addInputValueDataByNode)(l.inputValueDataByValueName,i,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===rr.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=rr.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA)),e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===ir.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Fi.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Fi.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},ObjectTypeExtension:{enter(i){if(i.name.value===ir.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,Fi.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,Fi.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){(0,Fi.removeInheritableDirectivesFromParentWithFieldsData)((0,Tn.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ir.PARENT_DEFINITION_DATA)),r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},ScalarTypeDefinition:{enter(i){if(i.name.value===ir.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===ir.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=rr.Kind.NULL}}})}function vde(e,t){let n,r=!1;(0,rr.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let s=(0,ET.getTypeNodeNamedTypeName)(i.type),o=e.leafTypeNamesWithAuthorizationDirectives.has(s);if((!n||!n.hasParentLevelAuthorization)&&!o)return!1;let u=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,Tn.setAndGetValue)(e.authorizationDataByParentTypeName,u,(0,Tn.newAuthorizationData)(u)));let l=(0,Tn.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,Tn.newFieldAuthorizationData)(e.childName));if(!(0,Tn.mergeAuthorizationDataByAND)(n,l))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!o)return!1;if(r)return(0,Tn.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,s,()=>[]).push(l),!1;let d=e.authorizationDataByParentTypeName.get(s);return d&&d.hasParentLevelAuthorization&&!(0,Tn.mergeAuthorizationDataByAND)(d,l)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let s=e.parentDefinitionDataByTypeName.get(i.name.value);if(!s)return!1;e.originalParentTypeName=s.name,e.renamedParentTypeName=s.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}});var YR=j(pa=>{"use strict";m();T();h();Object.defineProperty(pa,"__esModule",{value:!0});pa.EntityDataNode=pa.RootNode=pa.GraphNode=pa.Edge=void 0;var fI=ps(),qR=class{constructor(t,n,r,i=!1){b(this,"edgeName");b(this,"id");b(this,"isAbstractEdge");b(this,"isInaccessible",!1);b(this,"node");b(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};pa.Edge=qR;var KR=class{constructor(t,n,r){b(this,"fieldDataByFieldName",new Map);b(this,"headToTailEdges",new Map);b(this,"entityEdges",[]);b(this,"nodeName");b(this,"hasEntitySiblings",!1);b(this,"isAbstract");b(this,"isInaccessible",!1);b(this,"isLeaf",!1);b(this,"isRootNode",!1);b(this,"satisfiedFieldSets",new Set);b(this,"subgraphName");b(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,fI.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,fI.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};pa.GraphNode=KR;var GR=class{constructor(t){b(this,"fieldDataByFieldName",new Map);b(this,"headToShareableTailEdges",new Map);b(this,"isAbstract",!1);b(this,"isRootNode",!0);b(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};pa.RootNode=GR;var QR=class{constructor(t){b(this,"fieldSetsByTargetSubgraphName",new Map);b(this,"targetSubgraphNamesByFieldSet",new Map);b(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,fI.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,fI.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};pa.EntityDataNode=QR});var zR=j(Xa=>{"use strict";m();T();h();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.NodeResolutionData=void 0;Xa.newRootFieldData=_de;Xa.generateResolvabilityErrorReasons=kq;Xa.generateSelectionSetSegments=xq;Xa.renderSelectionSet=Cq;Xa.generateResolvabilityErrors=Sde;var Lq=ps(),td=bi(),Pq=To(),JR=class{constructor(t,n){b(this,"fieldDataByFieldName");b(this,"isResolved",!1);b(this,"resolvedFieldNames",new Set);b(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Lq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,Pq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};Xa.NodeResolutionData=JR;function _de(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(td.QUOTATION_JOIN)}".`,subgraphNames:n}}function bde(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- -`+zl.LITERAL_SPACE.repeat(t+3)+`... -`+zl.LITERAL_SPACE.repeat(t+2)+`} -`}function Iq({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:s}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(s.size>1?"s":"")+`: "${[...s].join(zl.QUOTATION_JOIN)}".`];if(e){let u=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(s.has(l)){u=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" to access subgraph "${l}".`)}u||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendent of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that share the same root type field "${t.coordinate}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendent of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function vq(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();h();Object.defineProperty(uI,"__esModule",{value:!0});uI.Graph=void 0;var wi=ps(),bq=bi(),Hp=BR(),Wp=jR(),$R=class{constructor(){A(this,"edgeId",-1);A(this,"entityDataNodes",new Map);A(this,"entityNodeNamesBySharedFieldPath",new Map);A(this,"nodeByNodeName",new Map);A(this,"nodesByTypeName",new Map);A(this,"rootNodeByRootTypeName",new Map);A(this,"subgraphName",bq.NOT_APPLICABLE);A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);A(this,"nodeResolutionDataByFieldPath",new Map);A(this,"unresolvableFieldPaths",new Set);A(this,"failureResultByEntityNodeName",new Map);A(this,"walkerIndex",-1)}getRootNode(t){return(0,wi.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Hp.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let s=new Hp.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,s),(0,wi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(s),s}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new Hp.Edge(this.getNextEdgeId(),n,r);return(0,wi.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(u),u}let s=t,o=new Hp.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return s.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Hp.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(bq.ROOT_TYPE_NAMES.has(t)){let s=this.getRootNode(t);s.removeInaccessibleEdges(n),s.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let s of i)if(s.fieldDataByFieldName=n,s.handleInaccessibleEdges(),s.isLeaf=!1,!!r){s.hasEntitySiblings=!0;for(let o of s.satisfiedFieldSets){let u=r.targetSubgraphNamesByFieldSet.get(o);for(let l of u||[]){if(l===s.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${s.typeName}`);d&&s.entityEdges.push(new Hp.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,s]of t){let o=s.size>1,u,l=o?new Map:void 0,d=new Set,p=new Map;for(let y of s){let N=this.nodeByNodeName.get(y);if(!N)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let K=this.failureResultByEntityNodeName.get(y);if(!K){u=void 0;break}if(!o)return K}let O=this.nodesByTypeName.get(N.typeName)||[],x=(0,wi.getValueOrDefault)(r,y,()=>o?p:new Map),V=new qR({interSubgraphNodes:O,entityNodeNamesBySharedFieldPath:x,originNode:N,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:d});if(V.visitEntityNode(N),V.unresolvableFieldPaths.size>0){if(o&&d.size<1){u=void 0;break}u={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,wi.getOrThrowError)(this.entityDataNodes,N.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:N.subgraphName,typeName:N.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:N.typeName,unresolvableFieldPaths:o?d:V.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,u);continue}u=void 0;break}if(u)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(u.nodeName,l),u}if(r.size>0)for(let[i,s]of r){let o=this.validateEntities(s,n);if(!o.success){for(let[u,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(u);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let u of i){if(u.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(u,`${n.typeName.toLowerCase()}`)}let s=(0,wi.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,Wp.newRootFieldData)(n.typeName,r,s.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,Wp.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let u=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);u.success||this.generateEntityResolvabilityErrors(u,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,wi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,wi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,wi.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new Wp.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,s]of t.headToTailEdges)this.visitEdge(s,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,wi.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),s="";for(let o of t.parentFieldPathForEntityReference)s=o+s;(0,Wp.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:s,entityAncestorData:t.entityAncestorData})}};uI.Graph=$R;var qR=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:s,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:u}){A(this,"entityNodeNamesBySharedFieldPath");A(this,"interSubgraphNodes");A(this,"originNode");A(this,"resolvableFieldNamesByRelativeFieldPath");A(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");A(this,"unresolvableFieldPaths",new Set);A(this,"unresolvableSharedFieldPaths");A(this,"walkerIndex");A(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=s,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=u}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,wi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,wi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new Wp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,wi.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new Wp.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[s,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(s),i==null||i.add(s));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var YR=j(Wl=>{"use strict";m();T();h();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.NormalizationFactory=void 0;Wl.normalizeSubgraphFromString=hde;Wl.normalizeSubgraph=Oq;Wl.batchNormalize=Tde;var Re=(Le(),Me(je)),Hi=$i(),Lc=Ql(),Li=Oc(),st=ps(),De=To(),ve=bi(),fde=nD(),fa=rI(),mde=PR(),Xp=cT(),GR=kR(),Hl=Gh(),Wr=Jp(),Za=Qa(),QR=KR(),hT=Al();function hde(e,t=!0){let{error:n,documentNode:r}=(0,Hi.safeParse)(e,t);return n||!r?{errors:[(0,De.subgraphInvalidSyntaxError)(n)],warnings:[]}:new TT(new QR.Graph).normalize(r)}function Oq(e,t,n){return new TT(n||new QR.Graph,t).normalize(e)}var TT=class{constructor(t,n){A(this,"argumentName","");A(this,"authorizationDataByParentTypeName",new Map);A(this,"childName","");A(this,"concreteTypeNamesByAbstractTypeName",new Map);A(this,"conditionalFieldDataByCoordinates",new Map);A(this,"configurationDataByParentTypeName",new Map);A(this,"customDirectiveDefinitions",new Map);A(this,"directiveDefinitionByDirectiveName",new Map);A(this,"edfsDirectiveReferences",new Set);A(this,"errors",[]);A(this,"entityDataByTypeName",new Map);A(this,"entityInterfaceDataByTypeName",new Map);A(this,"eventsConfigurations",new Map);A(this,"unvalidatedExternalFieldCoords",new Set);A(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);A(this,"internalGraph");A(this,"isCurrentParentExtension",!1);A(this,"isSubgraphEventDrivenGraph",!1);A(this,"isSubgraphVersionTwo",!1);A(this,"fieldSetDataByTypeName",new Map);A(this,"heirFieldAuthorizationDataByTypeName",new Map);A(this,"handledRepeatedDirectivesByHostPath",new Map);A(this,"lastParentNodeKind",Re.Kind.NULL);A(this,"lastChildNodeKind",Re.Kind.NULL);A(this,"leafTypeNamesWithAuthorizationDirectives",new Set);A(this,"keyFieldSetDataByTypeName",new Map);A(this,"keyFieldNamesByParentTypeName",new Map);A(this,"operationTypeNodeByTypeName",new Map);A(this,"originalParentTypeName","");A(this,"originalTypeNameByRenamedTypeName",new Map);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"parentsWithChildArguments",new Set);A(this,"overridesByTargetSubgraphName",new Map);A(this,"invalidOrScopesHostPaths",new Set);A(this,"schemaDefinition");A(this,"referencedDirectiveNames",new Set);A(this,"referencedTypeNames",new Set);A(this,"renamedParentTypeName","");A(this,"subgraphName");A(this,"usesEdfsNatsStreamConfiguration",!1);A(this,"warnings",[]);for(let[r,i]of Li.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ve.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaDefinition={directivesByDirectiveName:new Map,kind:Re.Kind.SCHEMA_DEFINITION,typeName:ve.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if(Li.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,De.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case Re.Kind.ENUM_TYPE_DEFINITION:case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Re.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,st.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,s]of t.argumentDataByArgumentName){let o=(0,Za.getTypeNodeNamedTypeName)(s.type),{hasUnhandledError:u,typeString:l}=this.validateInputNamedType(o);u&&r.push({argumentName:i,namedType:o,typeString:l,typeName:(0,fa.printTypeNode)(s.type)})}r.length>0&&this.errors.push((0,De.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,st.resetAuthorizationData)(r),!t.directives)return r;let i=!1,s=[];for(let d of t.directives){let p=d.name.value;if(p===ve.AUTHENTICATED){if(i)return;i=!0;continue}if(p===ve.REQUIRES_SCOPES){if(s.length>0)return;s.push(d)}}if(!i&&s.length<1||((0,st.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,st.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,st.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,s.length!==1))return r;let o=s[0];if(!o.arguments||o.arguments.length!==1)return;let u=o.arguments[0];if(u.name.value!==ve.SCOPES||u.value.kind!==Re.Kind.LIST)return;let l=u.value.values;if(l.length<1)return r;if(l.length>st.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let d of l){if(d.kind!==Re.Kind.LIST)return;let p=new Set;for(let y of d.values){if(y.kind!==Re.Kind.STRING)return;p.add(y.value)}p.size&&r.requiredScopes.push(p)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let l of t.directives){let d=(0,Wr.getDirectiveValidationErrors)(l,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),p=l.name.value;if(d.length>0){this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.EXTENDS)continue;if(p===ve.OVERRIDE){this.handleOverrideDeclaration(l,r,d),d.length>0&&this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.AUTHENTICATED||p===ve.REQUIRES_SCOPES){i.push(l);continue}let y=n.get(p);if(y){y.push(l);continue}n.set(p,[l])}if(i.length<1)return n;let s=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==Re.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(s);let o=(0,st.getValueOrDefault)(this.authorizationDataByParentTypeName,s,()=>(0,st.newAuthorizationData)(s)),u=(0,st.getAuthorizationDataToUpdate)(o,t,this.childName);for(let l of i){if(l.name.value===ve.AUTHENTICATED){u.requiresAuthentication=!0;continue}let p=l.arguments[0].value.values;if(p.length>st.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let y of p){let N=new Set;for(let I of y.values)N.add(I.value);N.size&&u.requiredScopes.push(N)}}return n}isTypeNameRootType(t){return ve.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}extractDirectives(t,n,r,i=!1){if(!t.directives)return n;let s=new Set;for(let o of t.directives){let u=(0,Wr.getDirectiveValidationErrors)(o,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r,i),l=o.name.value;if(u.length>0){this.errors.push((0,De.invalidDirectiveError)(l,r,u));continue}if(ve.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===ve.KEY){let p=o.arguments[0].value.value;if(s.has(p))continue;s.add(p)}let d=n.get(l);d?d.push(o):n.set(l,[o])}return n}getNodeExtensionType(t,n,r=!1){return t?Hl.ExtensionType.REAL:r||this.isSubgraphVersionTwo||!n.has(ve.EXTENDS)?Hl.ExtensionType.NONE:Hl.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Hl.ExtensionType.EXTENDS:case Hl.ExtensionType.NONE:{if(n===Hl.ExtensionType.REAL)return;this.errors.push((0,De.duplicateTypeDefinitionError)((0,st.kindToTypeString)(t.kind),t.name));return}default:t.extensionType=n}}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateImplementedInterfaceError)((0,st.kindToConvertedTypeString)(t.kind),r,s));continue}n.add(s)}return n}updateCompositeOutputDataByNode(t,n,r,i){this.setParentDataExtensionType(n,i),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.isEntity||(n.isEntity=r.has(ve.KEY)),n.isInaccessible||(n.isInaccessible=r.has(ve.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName),n.description||(n.description=(0,Hi.formatDescription)("description"in t?t.description:void 0))}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,st.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s),u=this.entityInterfaceDataByTypeName.get(r);if(u&&t.fields)for(let l of t.fields)u.interfaceFieldNames.add(l.name.value);if(i){if(i.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,o);return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),kind:Re.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,Za.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Re.OperationTypeNode.MUTATION:return ve.MUTATION;case Re.OperationTypeNode.SUBSCRIPTION:return ve.SUBSCRIPTION;default:return ve.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.isTypeNameRootType(r),u=this.getNodeExtensionType(n,s,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Re.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,u),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r),this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:u,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:l,isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),isRootType:o,kind:Re.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,Za.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{appearances:1,directivesByDirectiveName:s,extensionType:o,enumValueDataByValueName:new Map,kind:Re.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,Za.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=s.has(ve.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,inputValueDataByValueName:new Map,isInaccessible:s.has(ve.INACCESSIBLE),kind:Re.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,Za.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,Za.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateUnionMemberDefinitionError)(r,s));continue}(0,st.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(s),Li.BASE_SCALARS.has(s)||this.referencedTypeNames.add(s),n.set(s,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Re.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,st.kindToTypeString)(i.kind),(0,st.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Re.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,Za.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractKeyFieldSets(t,n){var o;let r=n.isUnresolvableByKeyFieldSet,i=t.name.value;if(!((o=t.directives)!=null&&o.length)){this.errors.push((0,De.expectedEntityError)(i));return}let s=[];for(let u of t.directives){if(u.name.value!==ve.KEY)continue;if(!u.arguments||u.arguments.length<1){s.push((0,De.undefinedRequiredArgumentsErrorMessage)(ve.KEY,i,[ve.FIELDS]));continue}let l,d=!1;for(let p of u.arguments){if(p.name.value===ve.RESOLVABLE){p.value.kind===Re.Kind.BOOLEAN&&!p.value.value&&(d=!0);continue}if(p.name.value!==ve.FIELDS){l=void 0;break}if(p.value.kind!==Re.Kind.STRING){l=void 0,s.push((0,De.invalidKeyDirectiveArgumentErrorMessage)(p.value.kind));break}l=p.value.value}l!==void 0&&r.set(l,d)}s.length&&this.errors.push((0,De.invalidKeyDirectivesError)(i,s))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ve.INACCESSIBLE),r=new Map,i=new Map,s=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(!u){this.errors.push((0,De.undefinedTypeError)(o));continue}if(u.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,st.kindToTypeString)(u.kind));continue}if(t.name===u.name){s=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of u.fieldDataByFieldName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let N=!1,I=t.fieldDataByFieldName.get(p);if(!I){d=!0,l.unimplementedFields.push(p);continue}let O={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,fa.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Wr.isTypeValidImplementation)(y.node.type,I.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,N=!0,O.implementedResponseType=(0,fa.printTypeNode)(I.node.type));let x=new Set;for(let[V,K]of y.argumentDataByArgumentName){x.add(V);let re=I.argumentDataByArgumentName.get(V);if(!re){d=!0,N=!0,O.unimplementedArguments.add(V);continue}let se=(0,fa.printTypeNode)(re.type),fe=(0,fa.printTypeNode)(K.type);fe!==se&&(d=!0,N=!0,O.invalidImplementedArguments.push({actualType:se,argumentName:V,expectedType:fe}))}for(let[V,K]of I.argumentDataByArgumentName)x.has(V)||K.type.kind===Re.Kind.NON_NULL_TYPE&&(d=!0,N=!0,O.invalidAdditionalArguments.add(V));!n&&I.isInaccessible&&!y.isInaccessible&&(d=!0,N=!0,O.isInaccessible=!0),N&&l.invalidFieldImplementations.set(p,O)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,De.invalidImplementedTypeError)(t.name,i)),s&&this.errors.push((0,De.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,De.invalidInterfaceImplementationError)(t.name,(0,st.kindToTypeString)(t.kind),r))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==Re.Kind.STRING){r.push((0,De.invalidDirectiveArgumentTypeErrorMessage)(!0,ve.FROM,Re.Kind.STRING,i.value.kind));return}let s=i.value.value;if(s===this.subgraphName){r.push((0,De.equivalentSourceAndTargetOverrideErrorMessage)(s,n));return}let o=(0,st.getValueOrDefault)(this.overridesByTargetSubgraphName,s,()=>new Map);(0,st.getValueOrDefault)(o,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}getKafkaPublishConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of t.arguments||[])switch(o.name.value){case ve.TOPIC:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push((0,De.invalidEventSubjectErrorMessage)(ve.TOPIC));continue}(0,Lc.validateArgumentTemplateReferences)(o.value.value,n,r),i.push(o.value.value);break}case ve.PROVIDER_ID:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_KAFKA,topics:i,type:ve.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of t.arguments||[])switch(o.name.value){case ve.TOPICS:{if(o.value.kind!==Re.Kind.LIST){r.push((0,De.invalidEventSubjectsErrorMessage)(ve.TOPICS));continue}for(let u of o.value.values){if(u.kind!==Re.Kind.STRING||u.value.length<1){r.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.TOPICS));break}(0,Lc.validateArgumentTemplateReferences)(u.value,n,r),i.push(u.value)}break}case ve.PROVIDER_ID:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_KAFKA,topics:i,type:ve.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i){let s=[],o=ve.DEFAULT_EDFS_PROVIDER_ID;for(let u of n.arguments||[])switch(u.name.value){case ve.SUBJECT:{if(u.value.kind!==Re.Kind.STRING||u.value.value.length<1){i.push((0,De.invalidEventSubjectErrorMessage)(ve.SUBJECT));continue}(0,Lc.validateArgumentTemplateReferences)(u.value.value,r,i),s.push(u.value.value);break}case ve.PROVIDER_ID:{if(u.value.kind!==Re.Kind.STRING||u.value.value.length<1){i.push(De.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:this.childName,providerId:o,providerType:ve.PROVIDER_TYPE_NATS,subjects:s,type:t}}getNatsSubscribeConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID,o=hT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,u="",l="";for(let d of t.arguments||[])switch(d.name.value){case ve.SUBJECTS:{if(d.value.kind!==Re.Kind.LIST){r.push((0,De.invalidEventSubjectsErrorMessage)(ve.SUBJECTS));continue}for(let p of d.value.values){if(p.kind!==Re.Kind.STRING||p.value.length<1){r.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.SUBJECTS));break}(0,Lc.validateArgumentTemplateReferences)(p.value,n,r),i.push(p.value)}break}case ve.PROVIDER_ID:{if(d.value.kind!==Re.Kind.STRING||d.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=d.value.value;break}case ve.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,d.value.kind!==Re.Kind.OBJECT||d.value.fields.length<1){r.push(De.invalidNatsStreamInputErrorMessage);continue}let p=!0,y=new Set,N=new Set(ve.STREAM_CONFIGURATION_FIELD_NAMES),I=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]),O=new Set,x=new Set;for(let V of d.value.fields){let K=V.name.value;if(!ve.STREAM_CONFIGURATION_FIELD_NAMES.has(K)){y.add(K),p=!1;continue}if(N.has(K))N.delete(K);else{O.add(K),p=!1;continue}switch(I.has(K)&&I.delete(K),K){case ve.CONSUMER_NAME:if(V.value.kind!=Re.Kind.STRING||V.value.value.length<1){x.add(K),p=!1;continue}u=V.value.value;break;case ve.STREAM_NAME:if(V.value.kind!=Re.Kind.STRING||V.value.value.length<1){x.add(K),p=!1;continue}l=V.value.value;break;case ve.CONSUMER_INACTIVE_THRESHOLD:if(V.value.kind!=Re.Kind.INT){r.push((0,De.invalidArgumentValueErrorMessage)("edfs__NatsStreamConfiguration(consumerInactiveThreshold: ...)",Re.Kind.INT)),p=!1;continue}try{o=parseInt(V.value.value,10)}catch(re){r.push((0,De.invalidArgumentValueErrorMessage)("edfs__NatsStreamConfiguration(consumerInactiveThreshold: ...)",Re.Kind.INT,V.value.value)),p=!1}break}}(!p||I.size>0)&&r.push((0,De.invalidNatsStreamInputFieldsErrorMessage)([...I],[...O],[...x],[...y]))}}if(!(r.length>0))return o<0?(o=hT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,Xp.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${hT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):o>hT.MAX_INT32&&(o=0,this.warnings.push((0,Xp.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),k({fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_NATS,subjects:i,type:ve.SUBSCRIBE},u&&l?{streamConfiguration:{consumerInactiveThreshold:o,consumerName:u,streamName:l}}:{})}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Re.OperationTypeNode.SUBSCRIPTION;for(let s of t.directives)if(s.name.value===ve.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,De.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=`${this.renamedParentTypeName||this.originalParentTypeName}.${this.childName}`;for(let i of t.directives){let s=[],o;switch(i.name.value){case ve.EDFS_KAFKA_PUBLISH:o=this.getKafkaPublishConfiguration(i,n,s);break;case ve.EDFS_KAFKA_SUBSCRIBE:o=this.getKafkaSubscribeConfiguration(i,n,s);break;case ve.EDFS_NATS_PUBLISH:{o=this.getNatsPublishAndRequestConfiguration(ve.PUBLISH,i,n,s);break}case ve.EDFS_NATS_REQUEST:{o=this.getNatsPublishAndRequestConfiguration(ve.REQUEST,i,n,s);break}case ve.EDFS_NATS_SUBSCRIBE:{o=this.getNatsSubscribeConfiguration(i,n,s);break}default:continue}if(s.length>0){this.errors.push((0,De.invalidEventDirectiveError)(i.name.value,r,s));continue}o&&(0,st.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(o)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Re.OperationTypeNode.MUTATION:return new Set([ve.EDFS_KAFKA_PUBLISH,ve.EDFS_NATS_PUBLISH,ve.EDFS_NATS_REQUEST]);case Re.OperationTypeNode.QUERY:return new Set([ve.EDFS_NATS_REQUEST]);case Re.OperationTypeNode.SUBSCRIPTION:return new Set([ve.EDFS_KAFKA_SUBSCRIBE,ve.EDFS_NATS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ve.MUTATION:return Re.OperationTypeNode.MUTATION;case ve.QUERY:return Re.OperationTypeNode.QUERY;case ve.SUBSCRIPTION:return Re.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let s=this.getOperationTypeNodeForRootTypeName(t.name);if(!s){this.errors.push((0,De.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(s);for(let[u,l]of t.fieldDataByFieldName){let d=`${l.originalParentTypeName}.${u}`,p=new Set;for(let V of ve.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(V)&&p.add(V);let y=new Set;for(let V of p)o.has(V)||y.add(V);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),s===Re.OperationTypeNode.MUTATION){let V=(0,fa.printTypeNode)(l.type);V!==ve.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,V);continue}let N=(0,fa.printTypeNode)(l.type),I=l.namedTypeName+"!",O=!1,x=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let V of x)if(O||(O=this.entityDataByTypeName.has(V)),O)break;(!O||N!==I)&&r.set(d,N)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDataByTypeName.get(t);if(r)for(let[i,s]of r.isUnresolvableByKeyFieldSet)s||(0,st.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){for(let[s,o]of t){let u=`${o.originalParentTypeName}.${s}`;if(n.has(s)){o.isExternalBySubgraphName.get(this.subgraphName)||r.set(u,s);continue}i.set(u,s)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ve.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size!=1)return!1;for(let[n,r]of t.fieldDataByFieldName)if(r.argumentDataByArgumentName.size>0||n!==ve.SUCCESS||(0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Re.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByValueName.size!=3)return!1;for(let[n,r]of t.inputValueDataByValueName)switch(n){case ve.CONSUMER_INACTIVE_THRESHOLD:{if((0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Re.Kind.INT||r.defaultValue.value!==`${hT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case ve.CONSUMER_NAME:case ve.STREAM_NAME:{if((0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,s=new Map,o=new Map,u=new Map,l=new Map,d=new Set,p=new Set;for(let[y,N]of this.parentDefinitionDataByTypeName){if(y===ve.EDFS_PUBLISH_RESULT||y===ve.EDFS_NATS_STREAM_CONFIGURATION||N.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)continue;if(N.isRootType){this.validateEventDrivenRootType(N,r,i,s);continue}let I=this.keyFieldNamesByParentTypeName.get(y);if(!I){p.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(N.fieldDataByFieldName,I,u,l)}if(this.isEdfsPublishResultValid()||n.push(De.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ve.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(ve.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(De.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(ve.EDFS_NATS_STREAM_CONFIGURATION),t.push(Li.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}r.size>0&&n.push((0,De.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),s.size>0&&n.push((0,De.invalidEventDrivenMutationResponseTypeErrorMessage)(s)),i.size>0&&n.push((0,De.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,De.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),u.size>0&&n.push((0,De.nonExternalKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&n.push((0,De.nonKeyFieldNamesEventDrivenErrorMessage)(l)),d.size>0&&n.push((0,De.nonEntityObjectExtensionsEventDrivenErrorMessage)([...d])),p.size>0&&n.push((0,De.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...p])),n.length>0&&this.errors.push((0,De.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,De.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,st.kindToTypeString)(i.kind)}"`)}n.length>0&&this.errors.push((0,De.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,st.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}validateAndAddKeyToConfiguration(t,n){let r=(0,st.getOrThrowError)(this.configurationDataByParentTypeName,(0,Wr.getParentTypeName)(t),"configurationDataByParentTypeName"),i=(0,Lc.validateKeyFieldSets)(this,t,n.isUnresolvableByKeyFieldSet,r.fieldNames);i&&(r.keys=i)}validateAndAddKeysToConfiguration(){for(let[t,n]of this.keyFieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(t));continue}this.validateAndAddKeyToConfiguration(r,n)}}normalize(t){(0,GR.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,GR.upsertParentsAndChildren)(this,t),(0,GR.consolidateAuthorizationDirectives)(this,t);for(let s of this.interfaceTypeNamesWithAuthorizationDirectives){let o=this.authorizationDataByParentTypeName.get(s);if(!o)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);for(let l of u||[]){let d=(0,st.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,st.newAuthorizationData)(l));for(let[p,y]of o.fieldAuthorizationDataByFieldName)(0,st.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,y)||this.invalidOrScopesHostPaths.add(`${l}.${p}`)}}for(let[s,o]of this.heirFieldAuthorizationDataByTypeName){let u=this.authorizationDataByParentTypeName.get(s);if(u)for(let l of o)(0,st.mergeAuthorizationDataByAND)(u,l)||this.invalidOrScopesHostPaths.add(`${s}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,De.orScopesLimitError)(st.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let s of Li.BASE_DIRECTIVE_DEFINITIONS)n.push(s);if(n.push(Li.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let s of Li.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(s),this.directiveDefinitionByDirectiveName.set(s.name.value,s);n.push(Li.SCOPE_SCALAR_DEFINITION)}for(let s of this.edfsDirectiveReferences){let o=Li.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(s);if(!o){this.errors.push((0,De.invalidEdfsDirectiveName)(s));continue}n.push(o)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ve.SUBSCRIPTION_FILTER)&&(this.directiveDefinitionByDirectiveName.set(ve.SUBSCRIPTION_FILTER,Li.SUBSCRIPTION_FILTER_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Li.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_VALUE_DEFINITION));for(let s of this.customDirectiveDefinitions.values())n.push(s);this.schemaDefinition.operationTypes.size>0&&n.push((0,Wr.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));for(let[s,o]of this.parentDefinitionDataByTypeName)switch(o.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(o.enumValueDataByValueName.size<1){this.errors.push((0,De.noDefinedEnumValuesError)(s));break}n.push((0,Wr.getEnumNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(o.inputValueDataByValueName.size<1){this.errors.push((0,De.noInputValueDefinitionsError)(s));break}n.push((0,Wr.getInputObjectNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let u=this.entityDataByTypeName.has(s),l=this.operationTypeNodeByTypeName.get(s),d=o.kind===Re.Kind.OBJECT_TYPE_DEFINITION;if(l&&(o.fieldDataByFieldName.delete(ve.SERVICE_FIELD),o.fieldDataByFieldName.delete(ve.ENTITIES_FIELD)),this.parentsWithChildArguments.has(s)||!d){let O=[];for(let[x,V]of o.fieldDataByFieldName)!d&&V.isExternalBySubgraphName.get(this.subgraphName)&&O.push(x),this.validateArguments(V,`${s}.${x}`);O.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,De.externalInterfaceFieldsError)(s,O)):this.warnings.push((0,Xp.externalInterfaceFieldsWarning)(this.subgraphName,s,O)))}let p=o.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&o.renamedTypeName||s,y={fieldNames:new Set,isRootNode:u,typeName:p},N=this.entityInterfaceDataByTypeName.get(s);N&&(N.fieldDatas=(0,st.fieldDatasToSimpleFieldDatas)(o.fieldDataByFieldName.values()),N.concreteTypeNames=(0,st.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,s,()=>new Set),y.isInterfaceObject=N.isInterfaceObject,y.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let I=this.eventsConfigurations.get(p);I&&(y.events=I),this.configurationDataByParentTypeName.set(p,y),(0,Lc.addFieldNamesToConfigurationData)(o.fieldDataByFieldName,y),this.validateInterfaceImplementations(o),n.push((0,Wr.getCompositeOutputNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),o.fieldDataByFieldName.size<1&&!(0,Lc.isNodeQuery)(s,l)&&this.errors.push((0,De.noFieldDefinitionsError)((0,st.kindToTypeString)(o.kind),s));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(o.extensionType===Hl.ExtensionType.REAL){this.errors.push((0,De.noBaseScalarDefinitionError)(s));break}n.push((0,Wr.getScalarNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName));break;case Re.Kind.UNION_TYPE_DEFINITION:n.push((0,Wr.getUnionNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName)),this.validateUnionMembers(o);break;default:throw(0,De.unexpectedKindFatalError)(s)}for(let s of Object.values(Re.OperationTypeNode)){let o=this.schemaDefinition.operationTypes.get(s),u=(0,st.getOrThrowError)(Hi.operationTypeNodeToDefaultType,s,ve.OPERATION_TO_DEFAULT),l=o?(0,Za.getTypeNodeNamedTypeName)(o.type):u;if(l!==u&&this.parentDefinitionDataByTypeName.has(u)){this.errors.push((0,De.invalidRootTypeDefinitionError)(s,l,u));continue}let d=this.parentDefinitionDataByTypeName.get(l);if(o){if(!d){this.errors.push((0,De.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,s)}if(!d)continue;let p=this.configurationDataByParentTypeName.get(u);if(p&&(p.isRootNode=!0,p.typeName=u),d.kind!==Re.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.operationDefinitionError)(l,s,d.kind));continue}for(let y of d.fieldDataByFieldName.values()){let N=(0,Za.getTypeNodeNamedTypeName)(y.node.type);!Li.BASE_SCALARS.has(N)&&!this.parentDefinitionDataByTypeName.has(N)&&this.errors.push((0,De.undefinedTypeError)(N))}}for(let s of this.referencedTypeNames){let o=this.parentDefinitionDataByTypeName.get(s);if(o){if(o.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);(!u||u.size<0)&&this.warnings.push((0,Xp.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,s));continue}this.entityDataByTypeName.has(s)||this.errors.push((0,De.undefinedTypeError)(s))}this.validateAndAddKeysToConfiguration();for(let[s,o]of this.fieldSetDataByTypeName){let u=this.parentDefinitionDataByTypeName.get(s);if(!u||u.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(s));continue}(0,Lc.validateAndAddConditionalFieldSetsToConfiguration)(this,u,o)}let r=new Map;for(let s of this.directiveDefinitionByDirectiveName.values()){let o=(0,Hi.extractExecutableDirectiveLocations)(s.locations,new Set);o.size<1||(0,Wr.addPersistedDirectiveDefinitionDataByNode)(r,s,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,this.subgraphName)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let s of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,De.invalidExternalDirectiveError)(s)):this.warnings.push((0,Xp.invalidExternalFieldWarning)(s,this.subgraphName));if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let i={kind:Re.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoordinates,configurationDataByTypeName:this.configurationDataByParentTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Re.print)(i),schema:(0,fde.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0})},warnings:this.warnings}}};Wl.NormalizationFactory=TT;function Tde(e){let t=new Map,n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Set,l=new Map,d=new Set,p=new Set,y=[],N=new Set,I=[],O=[];for(let K of e)K.name&&(0,mde.recordSubgraphName)(K.name,d,p);let x=new QR.Graph;for(let K=0;K0&&I.push(...xe),fe){O.push((0,De.subgraphValidationError)(se,fe));continue}if(!he){O.push((0,De.subgraphValidationError)(se,[De.subgraphValidationFailureError]));continue}l.set(se,he.parentDefinitionDataByTypeName);for(let ht of he.authorizationDataByParentTypeName.values())(0,st.upsertAuthorizationData)(t,ht,N);for(let[ht,Ct]of he.concreteTypeNamesByAbstractTypeName){let B=n.get(ht);if(!B){n.set(ht,new Set(Ct));continue}(0,st.addIterableValuesToSet)(Ct,B)}for(let ht of he.entityDataByTypeName.values())(0,st.upsertEntityData)(r,ht);if(re.name&&i.set(se,{conditionalFieldDataByCoordinates:he.conditionalFieldDataByCoordinates,configurationDataByTypeName:he.configurationDataByTypeName,definitions:he.subgraphAST,entityInterfaces:he.entityInterfaces,isVersionTwo:he.isVersionTwo,keyFieldNamesByParentTypeName:he.keyFieldNamesByParentTypeName,name:se,operationTypes:he.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:he.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:he.persistedDirectiveDefinitionDataByDirectiveName,schema:he.schema,url:re.url}),!(he.overridesByTargetSubgraphName.size<1))for(let[ht,Ct]of he.overridesByTargetSubgraphName){let B=d.has(ht);for(let[Te,nt]of Ct){let xt=he.originalTypeNameByRenamedTypeName.get(Te)||Te;if(!B)I.push((0,Xp.invalidOverrideTargetSubgraphNameWarning)(ht,xt,[...nt],re.name));else{let rn=(0,st.getValueOrDefault)(s,ht,()=>new Map),wn=(0,st.getValueOrDefault)(rn,Te,()=>new Set(nt));(0,st.addIterableValuesToSet)(nt,wn)}for(let rn of nt){let wn=`${xt}.${rn}`,vn=o.get(wn);if(!vn){o.set(wn,[se]);continue}vn.push(se),u.add(wn)}}}}let V=[];if(N.size>0&&V.push((0,De.orScopesLimitError)(st.maxOrScopes,[...N])),(y.length>0||p.size>0)&&V.push((0,De.invalidSubgraphNamesError)([...p],y)),u.size>0){let K=[];for(let re of u){let se=(0,st.getOrThrowError)(o,re,"overrideSourceSubgraphNamesByFieldPath");K.push((0,De.duplicateOverriddenFieldErrorMessage)(re,se))}V.push((0,De.duplicateOverriddenFieldsError)(K))}if(V.push(...O),V.length>0)return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:V,internalSubgraphBySubgraphName:i,internalGraph:x,warnings:I};for(let[K,re]of s){let se=(0,st.getOrThrowError)(i,K,"internalSubgraphBySubgraphName");se.overriddenFieldNamesByParentTypeName=re;for(let[fe,he]of re){let xe=se.configurationDataByTypeName.get(fe);xe&&((0,st.subtractSourceSetFromTargetSet)(he,xe.fieldNames),xe.fieldNames.size<1&&se.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,internalSubgraphBySubgraphName:i,internalGraph:x,warnings:I}}});var cI=j(ed=>{"use strict";m();T();h();Object.defineProperty(ed,"__esModule",{value:!0});ed.DivergentType=void 0;ed.getLeastRestrictiveMergedTypeNode=Nde;ed.getMostRestrictiveMergedTypeNode=Ede;ed.renameNamedTypeName=gde;var Xl=(Le(),Me(je)),Dq=To(),yde=Qa(),Sq=$i(),Aq=Al(),Zl;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Zl||(ed.DivergentType=Zl={}));function Rq(e,t,n,r,i){t=(0,yde.getMutableTypeNode)(t,n,i);let s={kind:e.kind},o=Zl.NONE,u=s;for(let l=0;l{"use strict";m();T();h();Object.defineProperty(zR,"__esModule",{value:!0});zR.renameRootTypes=_de;var Ide=(Le(),Me(je)),Pc=bi(),td=ps(),JR=$i(),vde=cI();function _de(e,t){let n,r=!1,i;(0,Ide.visit)(t.definitions,{FieldDefinition:{enter(s){let o=s.name.value;if(r&&(o===Pc.SERVICE_FIELD||o===Pc.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(o),!1;let u=n.name,l=(0,td.getOrThrowError)(n.fieldDataByFieldName,o,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,td.getOrThrowError)(JR.operationTypeNodeToDefaultType,d,Pc.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,vde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(s){let o=s.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,td.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pc.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,td.getOrThrowError)(JR.operationTypeNodeToDefaultType,u,Pc.OPERATION_TO_DEFAULT):o;n=(0,td.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pc.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,td.getOrThrowError)(JR.operationTypeNodeToDefaultType,u,Pc.OPERATION_TO_DEFAULT):o;n=(0,td.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pc.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var Fq=j((Zp,yT)=>{"use strict";m();T();h();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",d=1,p=2,y=4,N=1,I=2,O=1,x=2,V=4,K=8,re=16,se=32,fe=64,he=128,xe=256,ht=512,Ct=30,B="...",Te=800,nt=16,xt=1,rn=2,wn=3,vn=1/0,_n=9007199254740991,mi=17976931348623157e292,Xr=NaN,kn=4294967295,on=kn-1,$n=kn>>>1,U=[["ary",he],["bind",O],["bindKey",x],["curry",K],["curryRight",re],["flip",ht],["partial",se],["partialRight",fe],["rearg",xe]],ae="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",Ke="[object Boolean]",Q="[object Date]",ee="[object DOMException]",Ue="[object Error]",Xe="[object Function]",$t="[object GeneratorFunction]",Je="[object Map]",Ht="[object Number]",Ta="[object Null]",ki="[object Object]",ya="[object Promise]",ud="[object Proxy]",Ao="[object RegExp]",Gr="[object Set]",Wi="[object String]",cn="[object Symbol]",Qr="[object Undefined]",Mc="[object WeakMap]",Ro="[object WeakSet]",Bc="[object ArrayBuffer]",F="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",J="[object Int16Array]",ie="[object Int32Array]",me="[object Uint8Array]",Rt="[object Uint8ClampedArray]",Cn="[object Uint16Array]",Dn="[object Uint32Array]",qn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,CK=/(__e\(.*?\)|\b__t\)) \+\n'';/g,LF=/&(?:amp|lt|gt|quot|#39);/g,PF=/[&<>"']/g,xK=RegExp(LF.source),UK=RegExp(PF.source),MK=/<%-([\s\S]+?)%>/g,BK=/<%([\s\S]+?)%>/g,kF=/<%=([\s\S]+?)%>/g,VK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jK=/^\w*$/,$K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jI=/[\\^$.*+?()[\]{}|]/g,qK=RegExp(jI.source),$I=/^\s+/,KK=/\s/,GK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,QK=/\{\n\/\* \[wrapped with (.+)\] \*/,YK=/,? & /,JK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zK=/[()=,{}\[\]\/\s]/,HK=/\\(\\)?/g,WK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,CF=/\w*$/,XK=/^[-+]0x[0-9a-f]+$/i,ZK=/^0b[01]+$/i,eG=/^\[object .+?Constructor\]$/,tG=/^0o[0-7]+$/i,nG=/^(?:0|[1-9]\d*)$/,rG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xT=/($^)/,iG=/['\n\r\u2028\u2029\\]/g,UT="\\ud800-\\udfff",sG="\\u0300-\\u036f",oG="\\ufe20-\\ufe2f",aG="\\u20d0-\\u20ff",xF=sG+oG+aG,UF="\\u2700-\\u27bf",MF="a-z\\xdf-\\xf6\\xf8-\\xff",uG="\\xac\\xb1\\xd7\\xf7",cG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lG="\\u2000-\\u206f",dG=" \\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",BF="A-Z\\xc0-\\xd6\\xd8-\\xde",VF="\\ufe0e\\ufe0f",jF=uG+cG+lG+dG,qI="['\u2019]",pG="["+UT+"]",$F="["+jF+"]",MT="["+xF+"]",qF="\\d+",fG="["+UF+"]",KF="["+MF+"]",GF="[^"+UT+jF+qF+UF+MF+BF+"]",KI="\\ud83c[\\udffb-\\udfff]",mG="(?:"+MT+"|"+KI+")",QF="[^"+UT+"]",GI="(?:\\ud83c[\\udde6-\\uddff]){2}",QI="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="["+BF+"]",YF="\\u200d",JF="(?:"+KF+"|"+GF+")",hG="(?:"+cd+"|"+GF+")",zF="(?:"+qI+"(?:d|ll|m|re|s|t|ve))?",HF="(?:"+qI+"(?:D|LL|M|RE|S|T|VE))?",WF=mG+"?",XF="["+VF+"]?",TG="(?:"+YF+"(?:"+[QF,GI,QI].join("|")+")"+XF+WF+")*",yG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",NG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ZF=XF+WF+TG,EG="(?:"+[fG,GI,QI].join("|")+")"+ZF,gG="(?:"+[QF+MT+"?",MT,GI,QI,pG].join("|")+")",IG=RegExp(qI,"g"),vG=RegExp(MT,"g"),YI=RegExp(KI+"(?="+KI+")|"+gG+ZF,"g"),_G=RegExp([cd+"?"+KF+"+"+zF+"(?="+[$F,cd,"$"].join("|")+")",hG+"+"+HF+"(?="+[$F,cd+JF,"$"].join("|")+")",cd+"?"+JF+"+"+zF,cd+"+"+HF,NG,yG,qF,EG].join("|"),"g"),bG=RegExp("["+YF+UT+xF+VF+"]"),OG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,SG=["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"],DG=-1,Vn={};Vn[g]=Vn[v]=Vn[C]=Vn[J]=Vn[ie]=Vn[me]=Vn[Rt]=Vn[Cn]=Vn[Dn]=!0,Vn[ae]=Vn[te]=Vn[Bc]=Vn[Ke]=Vn[F]=Vn[Q]=Vn[Ue]=Vn[Xe]=Vn[Je]=Vn[Ht]=Vn[ki]=Vn[Ao]=Vn[Gr]=Vn[Wi]=Vn[Mc]=!1;var xn={};xn[ae]=xn[te]=xn[Bc]=xn[F]=xn[Ke]=xn[Q]=xn[g]=xn[v]=xn[C]=xn[J]=xn[ie]=xn[Je]=xn[Ht]=xn[ki]=xn[Ao]=xn[Gr]=xn[Wi]=xn[cn]=xn[me]=xn[Rt]=xn[Cn]=xn[Dn]=!0,xn[Ue]=xn[Xe]=xn[Mc]=!1;var AG={\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"},RG={"&":"&","<":"<",">":">",'"':""","'":"'"},FG={"&":"&","<":"<",">":">",""":'"',"'":"'"},wG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},LG=parseFloat,PG=parseInt,ew=typeof global=="object"&&global&&global.Object===Object&&global,kG=typeof self=="object"&&self&&self.Object===Object&&self,xr=ew||kG||Function("return this")(),JI=typeof Zp=="object"&&Zp&&!Zp.nodeType&&Zp,Vc=JI&&typeof yT=="object"&&yT&&!yT.nodeType&&yT,tw=Vc&&Vc.exports===JI,zI=tw&&ew.process,Es=function(){try{var W=Vc&&Vc.require&&Vc.require("util").types;return W||zI&&zI.binding&&zI.binding("util")}catch(de){}}(),nw=Es&&Es.isArrayBuffer,rw=Es&&Es.isDate,iw=Es&&Es.isMap,sw=Es&&Es.isRegExp,ow=Es&&Es.isSet,aw=Es&&Es.isTypedArray;function Xi(W,de,oe){switch(oe.length){case 0:return W.call(de);case 1:return W.call(de,oe[0]);case 2:return W.call(de,oe[0],oe[1]);case 3:return W.call(de,oe[0],oe[1],oe[2])}return W.apply(de,oe)}function CG(W,de,oe,Be){for(var _t=-1,dn=W==null?0:W.length;++_t-1}function HI(W,de,oe){for(var Be=-1,_t=W==null?0:W.length;++Be<_t;)if(oe(de,W[Be]))return!0;return!1}function Kn(W,de){for(var oe=-1,Be=W==null?0:W.length,_t=Array(Be);++oe-1;);return oe}function hw(W,de){for(var oe=W.length;oe--&&ld(de,W[oe],0)>-1;);return oe}function KG(W,de){for(var oe=W.length,Be=0;oe--;)W[oe]===de&&++Be;return Be}var GG=ev(AG),QG=ev(RG);function YG(W){return"\\"+wG[W]}function JG(W,de){return W==null?e:W[de]}function dd(W){return bG.test(W)}function zG(W){return OG.test(W)}function HG(W){for(var de,oe=[];!(de=W.next()).done;)oe.push(de.value);return oe}function iv(W){var de=-1,oe=Array(W.size);return W.forEach(function(Be,_t){oe[++de]=[_t,Be]}),oe}function Tw(W,de){return function(oe){return W(de(oe))}}function Ju(W,de){for(var oe=-1,Be=W.length,_t=0,dn=[];++oe-1}function UQ(a,c){var f=this.__data__,E=ny(f,a);return E<0?(++this.size,f.push([a,c])):f[E][1]=c,this}Na.prototype.clear=PQ,Na.prototype.delete=kQ,Na.prototype.get=CQ,Na.prototype.has=xQ,Na.prototype.set=UQ;function Ea(a){var c=-1,f=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function _s(a,c,f,E,_,L){var M,q=c&d,X=c&p,ye=c&y;if(f&&(M=_?f(a,E,_,L):f(a)),M!==e)return M;if(!Xn(a))return a;var Ne=St(a);if(Ne){if(M=j2(a),!q)return Ci(a,M)}else{var Ie=ei(a),we=Ie==Xe||Ie==$t;if(tc(a))return Xw(a,q);if(Ie==ki||Ie==ae||we&&!_){if(M=X||we?{}:yL(a),!q)return X?F2(a,ZQ(M,a)):R2(a,Aw(M,a))}else{if(!xn[Ie])return _?a:{};M=$2(a,Ie,q)}}L||(L=new to);var ze=L.get(a);if(ze)return ze;L.set(a,M),QL(a)?a.forEach(function(dt){M.add(_s(dt,c,f,dt,a,L))}):KL(a)&&a.forEach(function(dt,qt){M.set(qt,_s(dt,c,f,qt,a,L))});var lt=ye?X?Fv:Rv:X?Ui:Ur,Ut=Ne?e:lt(a);return gs(Ut||a,function(dt,qt){Ut&&(qt=dt,dt=a[qt]),Tf(M,qt,_s(dt,c,f,qt,a,L))}),M}function e2(a){var c=Ur(a);return function(f){return Rw(f,a,c)}}function Rw(a,c,f){var E=f.length;if(a==null)return!E;for(a=Ln(a);E--;){var _=f[E],L=c[_],M=a[_];if(M===e&&!(_ in a)||!L(M))return!1}return!0}function Fw(a,c,f){if(typeof a!="function")throw new Is(i);return _f(function(){a.apply(e,f)},c)}function yf(a,c,f,E){var _=-1,L=BT,M=!0,q=a.length,X=[],ye=c.length;if(!q)return X;f&&(c=Kn(c,Zi(f))),E?(L=HI,M=!1):c.length>=n&&(L=lf,M=!1,c=new qc(c));e:for(;++__?0:_+f),E=E===e||E>_?_:Lt(E),E<0&&(E+=_),E=f>E?0:JL(E);f0&&f(q)?c>1?Yr(q,c-1,f,E,_):Yu(_,q):E||(_[_.length]=q)}return _}var dv=iL(),Pw=iL(!0);function Fo(a,c){return a&&dv(a,c,Ur)}function pv(a,c){return a&&Pw(a,c,Ur)}function iy(a,c){return Qu(c,function(f){return ba(a[f])})}function Gc(a,c){c=Zu(c,a);for(var f=0,E=c.length;a!=null&&fc}function r2(a,c){return a!=null&&On.call(a,c)}function i2(a,c){return a!=null&&c in Ln(a)}function s2(a,c,f){return a>=Zr(c,f)&&a=120&&Ne.length>=120)?new qc(M&&Ne):e}Ne=a[0];var Ie=-1,we=q[0];e:for(;++Ie<_&&ye.length-1;)q!==a&&zT.call(q,X,1),zT.call(a,X,1);return a}function Kw(a,c){for(var f=a?c.length:0,E=f-1;f--;){var _=c[f];if(f==E||_!==L){var L=_;_a(_)?zT.call(a,_,1):vv(a,_)}}return a}function Ev(a,c){return a+XT(bw()*(c-a+1))}function N2(a,c,f,E){for(var _=-1,L=Ar(WT((c-a)/(f||1)),0),M=oe(L);L--;)M[E?L:++_]=a,a+=f;return M}function gv(a,c){var f="";if(!a||c<1||c>_n)return f;do c%2&&(f+=a),c=XT(c/2),c&&(a+=a);while(c);return f}function Bt(a,c){return Uv(gL(a,c,Mi),a+"")}function E2(a){return Dw(Id(a))}function g2(a,c){var f=Id(a);return hy(f,Kc(c,0,f.length))}function gf(a,c,f,E){if(!Xn(a))return a;c=Zu(c,a);for(var _=-1,L=c.length,M=L-1,q=a;q!=null&&++__?0:_+c),f=f>_?_:f,f<0&&(f+=_),_=c>f?0:f-c>>>0,c>>>=0;for(var L=oe(_);++E<_;)L[E]=a[E+c];return L}function _2(a,c){var f;return Wu(a,function(E,_,L){return f=c(E,_,L),!f}),!!f}function oy(a,c,f){var E=0,_=a==null?E:a.length;if(typeof c=="number"&&c===c&&_<=$n){for(;E<_;){var L=E+_>>>1,M=a[L];M!==null&&!ts(M)&&(f?M<=c:M=n){var ye=c?null:k2(a);if(ye)return jT(ye);M=!1,_=lf,X=new qc}else X=c?[]:q;e:for(;++E=E?a:bs(a,c,f)}var Ww=dQ||function(a){return xr.clearTimeout(a)};function Xw(a,c){if(c)return a.slice();var f=a.length,E=Ew?Ew(f):new a.constructor(f);return a.copy(E),E}function Sv(a){var c=new a.constructor(a.byteLength);return new YT(c).set(new YT(a)),c}function O2(a,c){var f=c?Sv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function S2(a){var c=new a.constructor(a.source,CF.exec(a));return c.lastIndex=a.lastIndex,c}function D2(a){return hf?Ln(hf.call(a)):{}}function Zw(a,c){var f=c?Sv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function eL(a,c){if(a!==c){var f=a!==e,E=a===null,_=a===a,L=ts(a),M=c!==e,q=c===null,X=c===c,ye=ts(c);if(!q&&!ye&&!L&&a>c||L&&M&&X&&!q&&!ye||E&&M&&X||!f&&X||!_)return 1;if(!E&&!L&&!ye&&a=q)return X;var ye=f[E];return X*(ye=="desc"?-1:1)}}return a.index-c.index}function tL(a,c,f,E){for(var _=-1,L=a.length,M=f.length,q=-1,X=c.length,ye=Ar(L-M,0),Ne=oe(X+ye),Ie=!E;++q1?f[_-1]:e,M=_>2?f[2]:e;for(L=a.length>3&&typeof L=="function"?(_--,L):e,M&&Ti(f[0],f[1],M)&&(L=_<3?e:L,_=1),c=Ln(c);++E<_;){var q=f[E];q&&a(c,q,E,L)}return c})}function rL(a,c){return function(f,E){if(f==null)return f;if(!xi(f))return a(f,E);for(var _=f.length,L=c?_:-1,M=Ln(f);(c?L--:++L<_)&&E(M[L],L,M)!==!1;);return f}}function iL(a){return function(c,f,E){for(var _=-1,L=Ln(c),M=E(c),q=M.length;q--;){var X=M[a?q:++_];if(f(L[X],X,L)===!1)break}return c}}function w2(a,c,f){var E=c&O,_=If(a);function L(){var M=this&&this!==xr&&this instanceof L?_:a;return M.apply(E?f:this,arguments)}return L}function sL(a){return function(c){c=yn(c);var f=dd(c)?eo(c):e,E=f?f[0]:c.charAt(0),_=f?ec(f,1).join(""):c.slice(1);return E[a]()+_}}function Nd(a){return function(c){return WI(rP(nP(c).replace(IG,"")),a,"")}}function If(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var f=Td(a.prototype),E=a.apply(f,c);return Xn(E)?E:f}}function L2(a,c,f){var E=If(a);function _(){for(var L=arguments.length,M=oe(L),q=L,X=Ed(_);q--;)M[q]=arguments[q];var ye=L<3&&M[0]!==X&&M[L-1]!==X?[]:Ju(M,X);if(L-=ye.length,L-1?_[L?c[M]:M]:e}}function aL(a){return va(function(c){var f=c.length,E=f,_=vs.prototype.thru;for(a&&c.reverse();E--;){var L=c[E];if(typeof L!="function")throw new Is(i);if(_&&!M&&fy(L)=="wrapper")var M=new vs([],!0)}for(E=M?E:f;++E1&&Wt.reverse(),Ne&&Xq))return!1;var ye=L.get(a),Ne=L.get(c);if(ye&&Ne)return ye==c&&Ne==a;var Ie=-1,we=!0,ze=f&I?new qc:e;for(L.set(a,c),L.set(c,a);++Ie1?"& ":"")+c[E],c=c.join(f>2?", ":" "),a.replace(GK,`{ +`+td.LITERAL_SPACE.repeat(t+3)+`... +`+td.LITERAL_SPACE.repeat(t+2)+`} +`}function kq({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:s}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(s.size>1?"s":"")+`: "${[...s].join(td.QUOTATION_JOIN)}".`];if(e){let u=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(s.has(l)){u=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" to access subgraph "${l}".`)}u||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendent of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that share the same root type field "${t.coordinate}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendent of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function xq(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();h();Object.defineProperty(mI,"__esModule",{value:!0});mI.Graph=void 0;var wi=ps(),Uq=bi(),nf=YR(),rf=zR(),HR=class{constructor(){b(this,"edgeId",-1);b(this,"entityDataNodes",new Map);b(this,"entityNodeNamesBySharedFieldPath",new Map);b(this,"nodeByNodeName",new Map);b(this,"nodesByTypeName",new Map);b(this,"rootNodeByRootTypeName",new Map);b(this,"subgraphName",Uq.NOT_APPLICABLE);b(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);b(this,"nodeResolutionDataByFieldPath",new Map);b(this,"unresolvableFieldPaths",new Set);b(this,"failureResultByEntityNodeName",new Map);b(this,"walkerIndex",-1)}getRootNode(t){return(0,wi.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new nf.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let s=new nf.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,s),(0,wi.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(s),s}addEdge(t,n,r,i=!1){if(t.isRootNode){let u=new nf.Edge(this.getNextEdgeId(),n,r);return(0,wi.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(u),u}let s=t,o=new nf.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return s.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new nf.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(Uq.ROOT_TYPE_NAMES.has(t)){let s=this.getRootNode(t);s.removeInaccessibleEdges(n),s.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let s of i)if(s.fieldDataByFieldName=n,s.handleInaccessibleEdges(),s.isLeaf=!1,!!r){s.hasEntitySiblings=!0;for(let o of s.satisfiedFieldSets){let u=r.targetSubgraphNamesByFieldSet.get(o);for(let l of u||[]){if(l===s.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${s.typeName}`);d&&s.entityEdges.push(new nf.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,s]of t){let o=s.size>1,u,l=o?new Map:void 0,d=new Set,p=new Map;for(let y of s){let N=this.nodeByNodeName.get(y);if(!N)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let G=this.failureResultByEntityNodeName.get(y);if(!G){u=void 0;break}if(!o)return G}let S=this.nodesByTypeName.get(N.typeName)||[],C=(0,wi.getValueOrDefault)(r,y,()=>o?p:new Map),V=new WR({interSubgraphNodes:S,entityNodeNamesBySharedFieldPath:C,originNode:N,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:d});if(V.visitEntityNode(N),V.unresolvableFieldPaths.size>0){if(o&&d.size<1){u=void 0;break}u={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,wi.getOrThrowError)(this.entityDataNodes,N.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:N.subgraphName,typeName:N.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:N.typeName,unresolvableFieldPaths:o?d:V.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,u);continue}u=void 0;break}if(u)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(u.nodeName,l),u}if(r.size>0)for(let[i,s]of r){let o=this.validateEntities(s,n);if(!o.success){for(let[u,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(u);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let u of i){if(u.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(u,`${n.typeName.toLowerCase()}`)}let s=(0,wi.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,rf.newRootFieldData)(n.typeName,r,s.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,rf.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let u=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);u.success||this.generateEntityResolvabilityErrors(u,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,wi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,wi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,wi.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new rf.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,s]of t.headToTailEdges)this.visitEdge(s,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,wi.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),s="";for(let o of t.parentFieldPathForEntityReference)s=o+s;(0,rf.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:s,entityAncestorData:t.entityAncestorData})}};mI.Graph=HR;var WR=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:s,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:u}){b(this,"entityNodeNamesBySharedFieldPath");b(this,"interSubgraphNodes");b(this,"originNode");b(this,"resolvableFieldNamesByRelativeFieldPath");b(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");b(this,"unresolvableFieldPaths",new Set);b(this,"unresolvableSharedFieldPaths");b(this,"walkerIndex");b(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=s,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=u}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,wi.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,wi.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,wi.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new rf.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,wi.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new rf.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[s,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(s),i==null||i.add(s));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var tF=j(rd=>{"use strict";m();T();h();Object.defineProperty(rd,"__esModule",{value:!0});rd.NormalizationFactory=void 0;rd.normalizeSubgraphFromString=Rde;rd.normalizeSubgraph=Mq;rd.batchNormalize=Fde;var Re=(Le(),Me(je)),Hi=$i(),Mc=Xl(),Li=wc(),ot=ps(),De=To(),ve=bi(),Dde=lD(),fa=cI(),Ade=jR(),sf=hT(),ZR=$R(),nd=Wh(),Wr=ef(),Za=Qa(),eF=XR(),IT=kl();function Rde(e,t=!0){let{error:n,documentNode:r}=(0,Hi.safeParse)(e,t);return n||!r?{errors:[(0,De.subgraphInvalidSyntaxError)(n)],warnings:[]}:new vT(new eF.Graph).normalize(r)}function Mq(e,t,n){return new vT(n||new eF.Graph,t).normalize(e)}var vT=class{constructor(t,n){b(this,"argumentName","");b(this,"authorizationDataByParentTypeName",new Map);b(this,"childName","");b(this,"concreteTypeNamesByAbstractTypeName",new Map);b(this,"conditionalFieldDataByCoordinates",new Map);b(this,"configurationDataByParentTypeName",new Map);b(this,"customDirectiveDefinitions",new Map);b(this,"directiveDefinitionByDirectiveName",new Map);b(this,"edfsDirectiveReferences",new Set);b(this,"errors",[]);b(this,"entityDataByTypeName",new Map);b(this,"entityInterfaceDataByTypeName",new Map);b(this,"eventsConfigurations",new Map);b(this,"unvalidatedExternalFieldCoords",new Set);b(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);b(this,"internalGraph");b(this,"isCurrentParentExtension",!1);b(this,"isSubgraphEventDrivenGraph",!1);b(this,"isSubgraphVersionTwo",!1);b(this,"fieldSetDataByTypeName",new Map);b(this,"heirFieldAuthorizationDataByTypeName",new Map);b(this,"handledRepeatedDirectivesByHostPath",new Map);b(this,"lastParentNodeKind",Re.Kind.NULL);b(this,"lastChildNodeKind",Re.Kind.NULL);b(this,"leafTypeNamesWithAuthorizationDirectives",new Set);b(this,"keyFieldSetDataByTypeName",new Map);b(this,"keyFieldNamesByParentTypeName",new Map);b(this,"operationTypeNodeByTypeName",new Map);b(this,"originalParentTypeName","");b(this,"originalTypeNameByRenamedTypeName",new Map);b(this,"parentDefinitionDataByTypeName",new Map);b(this,"parentsWithChildArguments",new Set);b(this,"overridesByTargetSubgraphName",new Map);b(this,"invalidOrScopesHostPaths",new Set);b(this,"schemaDefinition");b(this,"referencedDirectiveNames",new Set);b(this,"referencedTypeNames",new Set);b(this,"renamedParentTypeName","");b(this,"subgraphName");b(this,"usesEdfsNatsStreamConfiguration",!1);b(this,"warnings",[]);for(let[r,i]of Li.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ve.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaDefinition={directivesByDirectiveName:new Map,kind:Re.Kind.SCHEMA_DEFINITION,typeName:ve.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if(Li.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,De.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case Re.Kind.ENUM_TYPE_DEFINITION:case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Re.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,ot.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,s]of t.argumentDataByArgumentName){let o=(0,Za.getTypeNodeNamedTypeName)(s.type),{hasUnhandledError:u,typeString:l}=this.validateInputNamedType(o);u&&r.push({argumentName:i,namedType:o,typeString:l,typeName:(0,fa.printTypeNode)(s.type)})}r.length>0&&this.errors.push((0,De.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,ot.resetAuthorizationData)(r),!t.directives)return r;let i=!1,s=[];for(let d of t.directives){let p=d.name.value;if(p===ve.AUTHENTICATED){if(i)return;i=!0;continue}if(p===ve.REQUIRES_SCOPES){if(s.length>0)return;s.push(d)}}if(!i&&s.length<1||((0,ot.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,ot.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,ot.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,s.length!==1))return r;let o=s[0];if(!o.arguments||o.arguments.length!==1)return;let u=o.arguments[0];if(u.name.value!==ve.SCOPES||u.value.kind!==Re.Kind.LIST)return;let l=u.value.values;if(l.length<1)return r;if(l.length>ot.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let d of l){if(d.kind!==Re.Kind.LIST)return;let p=new Set;for(let y of d.values){if(y.kind!==Re.Kind.STRING)return;p.add(y.value)}p.size&&r.requiredScopes.push(p)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let l of t.directives){let d=(0,Wr.getDirectiveValidationErrors)(l,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),p=l.name.value;if(d.length>0){this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.EXTENDS)continue;if(p===ve.OVERRIDE){this.handleOverrideDeclaration(l,r,d),d.length>0&&this.errors.push((0,De.invalidDirectiveError)(p,r,d));continue}if(p===ve.AUTHENTICATED||p===ve.REQUIRES_SCOPES){i.push(l);continue}let y=n.get(p);if(y){y.push(l);continue}n.set(p,[l])}if(i.length<1)return n;let s=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==Re.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(s);let o=(0,ot.getValueOrDefault)(this.authorizationDataByParentTypeName,s,()=>(0,ot.newAuthorizationData)(s)),u=(0,ot.getAuthorizationDataToUpdate)(o,t,this.childName);for(let l of i){if(l.name.value===ve.AUTHENTICATED){u.requiresAuthentication=!0;continue}let p=l.arguments[0].value.values;if(p.length>ot.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let y of p){let N=new Set;for(let I of y.values)N.add(I.value);N.size&&u.requiredScopes.push(N)}}return n}isTypeNameRootType(t){return ve.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}extractDirectives(t,n,r,i=!1){if(!t.directives)return n;let s=new Set;for(let o of t.directives){let u=(0,Wr.getDirectiveValidationErrors)(o,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r,i),l=o.name.value;if(u.length>0){this.errors.push((0,De.invalidDirectiveError)(l,r,u));continue}if(ve.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===ve.KEY){let p=o.arguments[0].value.value;if(s.has(p))continue;s.add(p)}let d=n.get(l);d?d.push(o):n.set(l,[o])}return n}getNodeExtensionType(t,n,r=!1){return t?nd.ExtensionType.REAL:r||this.isSubgraphVersionTwo||!n.has(ve.EXTENDS)?nd.ExtensionType.NONE:nd.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case nd.ExtensionType.EXTENDS:case nd.ExtensionType.NONE:{if(n===nd.ExtensionType.REAL)return;this.errors.push((0,De.duplicateTypeDefinitionError)((0,ot.kindToTypeString)(t.kind),t.name));return}default:t.extensionType=n}}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateImplementedInterfaceError)((0,ot.kindToConvertedTypeString)(t.kind),r,s));continue}n.add(s)}return n}updateCompositeOutputDataByNode(t,n,r,i){this.setParentDataExtensionType(n,i),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.isEntity||(n.isEntity=r.has(ve.KEY)),n.isInaccessible||(n.isInaccessible=r.has(ve.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName),n.description||(n.description=(0,Hi.formatDescription)("description"in t?t.description:void 0))}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,ot.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s),u=this.entityInterfaceDataByTypeName.get(r);if(u&&t.fields)for(let l of t.fields)u.interfaceFieldNames.add(l.name.value);if(i){if(i.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,o);return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),kind:Re.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,Za.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case Re.OperationTypeNode.MUTATION:return ve.MUTATION;case Re.OperationTypeNode.SUBSCRIPTION:return ve.SUBSCRIPTION;default:return ve.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.isTypeNameRootType(r),u=this.getNodeExtensionType(n,s,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Re.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,s,u),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r),this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:u,fieldDataByFieldName:new Map,implementedInterfaceTypeNames:l,isEntity:s.has(ve.KEY),isInaccessible:s.has(ve.INACCESSIBLE),isRootType:o,kind:Re.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,Za.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{appearances:1,directivesByDirectiveName:s,extensionType:o,enumValueDataByValueName:new Map,kind:Re.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,Za.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=s.has(ve.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,inputValueDataByValueName:new Map,isInaccessible:s.has(ve.INACCESSIBLE),kind:Re.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,Za.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectivesAndAuthorization(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,s);if(i){if(i.kind!==Re.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,Za.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let s=i.name.value;if(n.has(s)){this.errors.push((0,De.duplicateUnionMemberDefinitionError)(r,s));continue}(0,ot.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(s),Li.BASE_SCALARS.has(s)||this.referencedTypeNames.add(s),n.set(s,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),s=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map,r),o=this.getNodeExtensionType(n,s);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==Re.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,De.multipleNamedTypeDefinitionError)(r,(0,ot.kindToTypeString)(i.kind),(0,ot.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Hi.formatDescription)("description"in t?t.description:void 0));return}this.parentDefinitionDataByTypeName.set(r,{directivesByDirectiveName:s,extensionType:o,kind:Re.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,Za.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Wr.newPersistedDirectivesData)(),description:(0,Hi.formatDescription)("description"in t?t.description:void 0)})}extractKeyFieldSets(t,n){var o;let r=n.isUnresolvableByKeyFieldSet,i=t.name.value;if(!((o=t.directives)!=null&&o.length)){this.errors.push((0,De.expectedEntityError)(i));return}let s=[];for(let u of t.directives){if(u.name.value!==ve.KEY)continue;if(!u.arguments||u.arguments.length<1){s.push((0,De.undefinedRequiredArgumentsErrorMessage)(ve.KEY,i,[ve.FIELDS]));continue}let l,d=!1;for(let p of u.arguments){if(p.name.value===ve.RESOLVABLE){p.value.kind===Re.Kind.BOOLEAN&&!p.value.value&&(d=!0);continue}if(p.name.value!==ve.FIELDS){l=void 0;break}if(p.value.kind!==Re.Kind.STRING){l=void 0,s.push((0,De.invalidKeyDirectiveArgumentErrorMessage)(p.value.kind));break}l=p.value.value}l!==void 0&&r.set(l,d)}s.length&&this.errors.push((0,De.invalidKeyDirectivesError)(i,s))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ve.INACCESSIBLE),r=new Map,i=new Map,s=!1;for(let o of t.implementedInterfaceTypeNames){let u=this.parentDefinitionDataByTypeName.get(o);if(!u){this.errors.push((0,De.undefinedTypeError)(o));continue}if(u.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){i.set(u.name,(0,ot.kindToTypeString)(u.kind));continue}if(t.name===u.name){s=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,y]of u.fieldDataByFieldName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let N=!1,I=t.fieldDataByFieldName.get(p);if(!I){d=!0,l.unimplementedFields.push(p);continue}let S={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,fa.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Wr.isTypeValidImplementation)(y.node.type,I.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,N=!0,S.implementedResponseType=(0,fa.printTypeNode)(I.node.type));let C=new Set;for(let[V,G]of y.argumentDataByArgumentName){C.add(V);let re=I.argumentDataByArgumentName.get(V);if(!re){d=!0,N=!0,S.unimplementedArguments.add(V);continue}let se=(0,fa.printTypeNode)(re.type),fe=(0,fa.printTypeNode)(G.type);fe!==se&&(d=!0,N=!0,S.invalidImplementedArguments.push({actualType:se,argumentName:V,expectedType:fe}))}for(let[V,G]of I.argumentDataByArgumentName)C.has(V)||G.type.kind===Re.Kind.NON_NULL_TYPE&&(d=!0,N=!0,S.invalidAdditionalArguments.add(V));!n&&I.isInaccessible&&!y.isInaccessible&&(d=!0,N=!0,S.isInaccessible=!0),N&&l.invalidFieldImplementations.set(p,S)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,De.invalidImplementedTypeError)(t.name,i)),s&&this.errors.push((0,De.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,De.invalidInterfaceImplementationError)(t.name,(0,ot.kindToTypeString)(t.kind),r))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==Re.Kind.STRING){r.push((0,De.invalidDirectiveArgumentTypeErrorMessage)(!0,ve.FROM,Re.Kind.STRING,i.value.kind));return}let s=i.value.value;if(s===this.subgraphName){r.push((0,De.equivalentSourceAndTargetOverrideErrorMessage)(s,n));return}let o=(0,ot.getValueOrDefault)(this.overridesByTargetSubgraphName,s,()=>new Map);(0,ot.getValueOrDefault)(o,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}getKafkaPublishConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of t.arguments||[])switch(o.name.value){case ve.TOPIC:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push((0,De.invalidEventSubjectErrorMessage)(ve.TOPIC));continue}(0,Mc.validateArgumentTemplateReferences)(o.value.value,n,r),i.push(o.value.value);break}case ve.PROVIDER_ID:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_KAFKA,topics:i,type:ve.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID;for(let o of t.arguments||[])switch(o.name.value){case ve.TOPICS:{if(o.value.kind!==Re.Kind.LIST){r.push((0,De.invalidEventSubjectsErrorMessage)(ve.TOPICS));continue}for(let u of o.value.values){if(u.kind!==Re.Kind.STRING||u.value.length<1){r.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.TOPICS));break}(0,Mc.validateArgumentTemplateReferences)(u.value,n,r),i.push(u.value)}break}case ve.PROVIDER_ID:{if(o.value.kind!==Re.Kind.STRING||o.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=o.value.value;break}}if(!(r.length>0))return{fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_KAFKA,topics:i,type:ve.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i){let s=[],o=ve.DEFAULT_EDFS_PROVIDER_ID;for(let u of n.arguments||[])switch(u.name.value){case ve.SUBJECT:{if(u.value.kind!==Re.Kind.STRING||u.value.value.length<1){i.push((0,De.invalidEventSubjectErrorMessage)(ve.SUBJECT));continue}(0,Mc.validateArgumentTemplateReferences)(u.value.value,r,i),s.push(u.value.value);break}case ve.PROVIDER_ID:{if(u.value.kind!==Re.Kind.STRING||u.value.value.length<1){i.push(De.invalidEventProviderIdErrorMessage);continue}o=u.value.value;break}}if(!(i.length>0))return{fieldName:this.childName,providerId:o,providerType:ve.PROVIDER_TYPE_NATS,subjects:s,type:t}}getNatsSubscribeConfiguration(t,n,r){let i=[],s=ve.DEFAULT_EDFS_PROVIDER_ID,o=IT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,u="",l="";for(let d of t.arguments||[])switch(d.name.value){case ve.SUBJECTS:{if(d.value.kind!==Re.Kind.LIST){r.push((0,De.invalidEventSubjectsErrorMessage)(ve.SUBJECTS));continue}for(let p of d.value.values){if(p.kind!==Re.Kind.STRING||p.value.length<1){r.push((0,De.invalidEventSubjectsItemErrorMessage)(ve.SUBJECTS));break}(0,Mc.validateArgumentTemplateReferences)(p.value,n,r),i.push(p.value)}break}case ve.PROVIDER_ID:{if(d.value.kind!==Re.Kind.STRING||d.value.value.length<1){r.push(De.invalidEventProviderIdErrorMessage);continue}s=d.value.value;break}case ve.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,d.value.kind!==Re.Kind.OBJECT||d.value.fields.length<1){r.push(De.invalidNatsStreamInputErrorMessage);continue}let p=!0,y=new Set,N=new Set(ve.STREAM_CONFIGURATION_FIELD_NAMES),I=new Set([ve.CONSUMER_NAME,ve.STREAM_NAME]),S=new Set,C=new Set;for(let V of d.value.fields){let G=V.name.value;if(!ve.STREAM_CONFIGURATION_FIELD_NAMES.has(G)){y.add(G),p=!1;continue}if(N.has(G))N.delete(G);else{S.add(G),p=!1;continue}switch(I.has(G)&&I.delete(G),G){case ve.CONSUMER_NAME:if(V.value.kind!=Re.Kind.STRING||V.value.value.length<1){C.add(G),p=!1;continue}u=V.value.value;break;case ve.STREAM_NAME:if(V.value.kind!=Re.Kind.STRING||V.value.value.length<1){C.add(G),p=!1;continue}l=V.value.value;break;case ve.CONSUMER_INACTIVE_THRESHOLD:if(V.value.kind!=Re.Kind.INT){r.push((0,De.invalidArgumentValueErrorMessage)("edfs__NatsStreamConfiguration(consumerInactiveThreshold: ...)",Re.Kind.INT)),p=!1;continue}try{o=parseInt(V.value.value,10)}catch(re){r.push((0,De.invalidArgumentValueErrorMessage)("edfs__NatsStreamConfiguration(consumerInactiveThreshold: ...)",Re.Kind.INT,V.value.value)),p=!1}break}}(!p||I.size>0)&&r.push((0,De.invalidNatsStreamInputFieldsErrorMessage)([...I],[...S],[...C],[...y]))}}if(!(r.length>0))return o<0?(o=IT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,sf.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${IT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):o>IT.MAX_INT32&&(o=0,this.warnings.push((0,sf.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),k({fieldName:this.childName,providerId:s,providerType:ve.PROVIDER_TYPE_NATS,subjects:i,type:ve.SUBSCRIBE},u&&l?{streamConfiguration:{consumerInactiveThreshold:o,consumerName:u,streamName:l}}:{})}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Re.OperationTypeNode.SUBSCRIPTION;for(let s of t.directives)if(s.name.value===ve.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,De.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=`${this.renamedParentTypeName||this.originalParentTypeName}.${this.childName}`;for(let i of t.directives){let s=[],o;switch(i.name.value){case ve.EDFS_KAFKA_PUBLISH:o=this.getKafkaPublishConfiguration(i,n,s);break;case ve.EDFS_KAFKA_SUBSCRIBE:o=this.getKafkaSubscribeConfiguration(i,n,s);break;case ve.EDFS_NATS_PUBLISH:{o=this.getNatsPublishAndRequestConfiguration(ve.PUBLISH,i,n,s);break}case ve.EDFS_NATS_REQUEST:{o=this.getNatsPublishAndRequestConfiguration(ve.REQUEST,i,n,s);break}case ve.EDFS_NATS_SUBSCRIBE:{o=this.getNatsSubscribeConfiguration(i,n,s);break}default:continue}if(s.length>0){this.errors.push((0,De.invalidEventDirectiveError)(i.name.value,r,s));continue}o&&(0,ot.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(o)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Re.OperationTypeNode.MUTATION:return new Set([ve.EDFS_KAFKA_PUBLISH,ve.EDFS_NATS_PUBLISH,ve.EDFS_NATS_REQUEST]);case Re.OperationTypeNode.QUERY:return new Set([ve.EDFS_NATS_REQUEST]);case Re.OperationTypeNode.SUBSCRIPTION:return new Set([ve.EDFS_KAFKA_SUBSCRIBE,ve.EDFS_NATS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ve.MUTATION:return Re.OperationTypeNode.MUTATION;case ve.QUERY:return Re.OperationTypeNode.QUERY;case ve.SUBSCRIPTION:return Re.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let s=this.getOperationTypeNodeForRootTypeName(t.name);if(!s){this.errors.push((0,De.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(s);for(let[u,l]of t.fieldDataByFieldName){let d=`${l.originalParentTypeName}.${u}`,p=new Set;for(let V of ve.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(V)&&p.add(V);let y=new Set;for(let V of p)o.has(V)||y.add(V);if((p.size<1||y.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...y]}),s===Re.OperationTypeNode.MUTATION){let V=(0,fa.printTypeNode)(l.type);V!==ve.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,V);continue}let N=(0,fa.printTypeNode)(l.type),I=l.namedTypeName+"!",S=!1,C=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let V of C)if(S||(S=this.entityDataByTypeName.has(V)),S)break;(!S||N!==I)&&r.set(d,N)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDataByTypeName.get(t);if(r)for(let[i,s]of r.isUnresolvableByKeyFieldSet)s||(0,ot.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){for(let[s,o]of t){let u=`${o.originalParentTypeName}.${s}`;if(n.has(s)){o.isExternalBySubgraphName.get(this.subgraphName)||r.set(u,s);continue}i.set(u,s)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ve.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size!=1)return!1;for(let[n,r]of t.fieldDataByFieldName)if(r.argumentDataByArgumentName.size>0||n!==ve.SUCCESS||(0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==Re.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByValueName.size!=3)return!1;for(let[n,r]of t.inputValueDataByValueName)switch(n){case ve.CONSUMER_INACTIVE_THRESHOLD:{if((0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Re.Kind.INT||r.defaultValue.value!==`${IT.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case ve.CONSUMER_NAME:case ve.STREAM_NAME:{if((0,fa.printTypeNode)(r.type)!==ve.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,s=new Map,o=new Map,u=new Map,l=new Map,d=new Set,p=new Set;for(let[y,N]of this.parentDefinitionDataByTypeName){if(y===ve.EDFS_PUBLISH_RESULT||y===ve.EDFS_NATS_STREAM_CONFIGURATION||N.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)continue;if(N.isRootType){this.validateEventDrivenRootType(N,r,i,s);continue}let I=this.keyFieldNamesByParentTypeName.get(y);if(!I){p.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(N.fieldDataByFieldName,I,u,l)}if(this.isEdfsPublishResultValid()||n.push(De.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ve.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(ve.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(De.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(ve.EDFS_NATS_STREAM_CONFIGURATION),t.push(Li.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}r.size>0&&n.push((0,De.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),s.size>0&&n.push((0,De.invalidEventDrivenMutationResponseTypeErrorMessage)(s)),i.size>0&&n.push((0,De.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,De.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),u.size>0&&n.push((0,De.nonExternalKeyFieldNamesEventDrivenErrorMessage)(u)),l.size>0&&n.push((0,De.nonKeyFieldNamesEventDrivenErrorMessage)(l)),d.size>0&&n.push((0,De.nonEntityObjectExtensionsEventDrivenErrorMessage)([...d])),p.size>0&&n.push((0,De.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...p])),n.length>0&&this.errors.push((0,De.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,De.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,ot.kindToTypeString)(i.kind)}"`)}n.length>0&&this.errors.push((0,De.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,ot.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}validateAndAddKeyToConfiguration(t,n){let r=(0,ot.getOrThrowError)(this.configurationDataByParentTypeName,(0,Wr.getParentTypeName)(t),"configurationDataByParentTypeName"),i=(0,Mc.validateKeyFieldSets)(this,t,n.isUnresolvableByKeyFieldSet,r.fieldNames);i&&(r.keys=i)}validateAndAddKeysToConfiguration(){for(let[t,n]of this.keyFieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(t));continue}this.validateAndAddKeyToConfiguration(r,n)}}normalize(t){(0,ZR.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,ZR.upsertParentsAndChildren)(this,t),(0,ZR.consolidateAuthorizationDirectives)(this,t);for(let s of this.interfaceTypeNamesWithAuthorizationDirectives){let o=this.authorizationDataByParentTypeName.get(s);if(!o)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);for(let l of u||[]){let d=(0,ot.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,ot.newAuthorizationData)(l));for(let[p,y]of o.fieldAuthorizationDataByFieldName)(0,ot.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,y)||this.invalidOrScopesHostPaths.add(`${l}.${p}`)}}for(let[s,o]of this.heirFieldAuthorizationDataByTypeName){let u=this.authorizationDataByParentTypeName.get(s);if(u)for(let l of o)(0,ot.mergeAuthorizationDataByAND)(u,l)||this.invalidOrScopesHostPaths.add(`${s}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,De.orScopesLimitError)(ot.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let s of Li.BASE_DIRECTIVE_DEFINITIONS)n.push(s);if(n.push(Li.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let s of Li.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(s),this.directiveDefinitionByDirectiveName.set(s.name.value,s);n.push(Li.SCOPE_SCALAR_DEFINITION)}for(let s of this.edfsDirectiveReferences){let o=Li.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(s);if(!o){this.errors.push((0,De.invalidEdfsDirectiveName)(s));continue}n.push(o)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ve.SUBSCRIPTION_FILTER)&&(this.directiveDefinitionByDirectiveName.set(ve.SUBSCRIPTION_FILTER,Li.SUBSCRIPTION_FILTER_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Li.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Li.SUBSCRIPTION_FILTER_VALUE_DEFINITION));for(let s of this.customDirectiveDefinitions.values())n.push(s);this.schemaDefinition.operationTypes.size>0&&n.push((0,Wr.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));for(let[s,o]of this.parentDefinitionDataByTypeName)switch(o.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(o.enumValueDataByValueName.size<1){this.errors.push((0,De.noDefinedEnumValuesError)(s));break}n.push((0,Wr.getEnumNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(o.inputValueDataByValueName.size<1){this.errors.push((0,De.noInputValueDefinitionsError)(s));break}n.push((0,Wr.getInputObjectNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let u=this.entityDataByTypeName.has(s),l=this.operationTypeNodeByTypeName.get(s),d=o.kind===Re.Kind.OBJECT_TYPE_DEFINITION;if(l&&(o.fieldDataByFieldName.delete(ve.SERVICE_FIELD),o.fieldDataByFieldName.delete(ve.ENTITIES_FIELD)),this.parentsWithChildArguments.has(s)||!d){let S=[];for(let[C,V]of o.fieldDataByFieldName)!d&&V.isExternalBySubgraphName.get(this.subgraphName)&&S.push(C),this.validateArguments(V,`${s}.${C}`);S.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,De.externalInterfaceFieldsError)(s,S)):this.warnings.push((0,sf.externalInterfaceFieldsWarning)(this.subgraphName,s,S)))}let p=o.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&o.renamedTypeName||s,y={fieldNames:new Set,isRootNode:u,typeName:p},N=this.entityInterfaceDataByTypeName.get(s);N&&(N.fieldDatas=(0,ot.fieldDatasToSimpleFieldDatas)(o.fieldDataByFieldName.values()),N.concreteTypeNames=(0,ot.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,s,()=>new Set),y.isInterfaceObject=N.isInterfaceObject,y.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let I=this.eventsConfigurations.get(p);I&&(y.events=I),this.configurationDataByParentTypeName.set(p,y),(0,Mc.addFieldNamesToConfigurationData)(o.fieldDataByFieldName,y),this.validateInterfaceImplementations(o),n.push((0,Wr.getCompositeOutputNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),o.fieldDataByFieldName.size<1&&!(0,Mc.isNodeQuery)(s,l)&&this.errors.push((0,De.noFieldDefinitionsError)((0,ot.kindToTypeString)(o.kind),s));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(o.extensionType===nd.ExtensionType.REAL){this.errors.push((0,De.noBaseScalarDefinitionError)(s));break}n.push((0,Wr.getScalarNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName));break;case Re.Kind.UNION_TYPE_DEFINITION:n.push((0,Wr.getUnionNodeByData)(o,this.errors,this.directiveDefinitionByDirectiveName)),this.validateUnionMembers(o);break;default:throw(0,De.unexpectedKindFatalError)(s)}for(let s of Object.values(Re.OperationTypeNode)){let o=this.schemaDefinition.operationTypes.get(s),u=(0,ot.getOrThrowError)(Hi.operationTypeNodeToDefaultType,s,ve.OPERATION_TO_DEFAULT),l=o?(0,Za.getTypeNodeNamedTypeName)(o.type):u;if(l!==u&&this.parentDefinitionDataByTypeName.has(u)){this.errors.push((0,De.invalidRootTypeDefinitionError)(s,l,u));continue}let d=this.parentDefinitionDataByTypeName.get(l);if(o){if(!d){this.errors.push((0,De.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,s)}if(!d)continue;let p=this.configurationDataByParentTypeName.get(u);if(p&&(p.isRootNode=!0,p.typeName=u),d.kind!==Re.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,De.operationDefinitionError)(l,s,d.kind));continue}for(let y of d.fieldDataByFieldName.values()){let N=(0,Za.getTypeNodeNamedTypeName)(y.node.type);!Li.BASE_SCALARS.has(N)&&!this.parentDefinitionDataByTypeName.has(N)&&this.errors.push((0,De.undefinedTypeError)(N))}}for(let s of this.referencedTypeNames){let o=this.parentDefinitionDataByTypeName.get(s);if(o){if(o.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION)continue;let u=this.concreteTypeNamesByAbstractTypeName.get(s);(!u||u.size<0)&&this.warnings.push((0,sf.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,s));continue}this.entityDataByTypeName.has(s)||this.errors.push((0,De.undefinedTypeError)(s))}this.validateAndAddKeysToConfiguration();for(let[s,o]of this.fieldSetDataByTypeName){let u=this.parentDefinitionDataByTypeName.get(s);if(!u||u.kind!==Re.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,De.undefinedObjectLikeParentError)(s));continue}(0,Mc.validateAndAddConditionalFieldSetsToConfiguration)(this,u,o)}let r=new Map;for(let s of this.directiveDefinitionByDirectiveName.values()){let o=(0,Hi.extractExecutableDirectiveLocations)(s.locations,new Set);o.size<1||(0,Wr.addPersistedDirectiveDefinitionDataByNode)(r,s,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,this.subgraphName)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let s of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,De.invalidExternalDirectiveError)(s)):this.warnings.push((0,sf.invalidExternalFieldWarning)(s,this.subgraphName));if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let i={kind:Re.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoordinates,configurationDataByTypeName:this.configurationDataByParentTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,Re.print)(i),schema:(0,Dde.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0})},warnings:this.warnings}}};rd.NormalizationFactory=vT;function Fde(e){let t=new Map,n=new Map,r=new Map,i=new Map,s=new Map,o=new Map,u=new Set,l=new Map,d=new Set,p=new Set,y=[],N=new Set,I=[],S=[];for(let G of e)G.name&&(0,Ade.recordSubgraphName)(G.name,d,p);let C=new eF.Graph;for(let G=0;G0&&I.push(...Ce),fe){S.push((0,De.subgraphValidationError)(se,fe));continue}if(!he){S.push((0,De.subgraphValidationError)(se,[De.subgraphValidationFailureError]));continue}l.set(se,he.parentDefinitionDataByTypeName);for(let ht of he.authorizationDataByParentTypeName.values())(0,ot.upsertAuthorizationData)(t,ht,N);for(let[ht,xt]of he.concreteTypeNamesByAbstractTypeName){let B=n.get(ht);if(!B){n.set(ht,new Set(xt));continue}(0,ot.addIterableValuesToSet)(xt,B)}for(let ht of he.entityDataByTypeName.values())(0,ot.upsertEntityData)(r,ht);if(re.name&&i.set(se,{conditionalFieldDataByCoordinates:he.conditionalFieldDataByCoordinates,configurationDataByTypeName:he.configurationDataByTypeName,definitions:he.subgraphAST,entityInterfaces:he.entityInterfaces,isVersionTwo:he.isVersionTwo,keyFieldNamesByParentTypeName:he.keyFieldNamesByParentTypeName,name:se,operationTypes:he.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:he.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:he.persistedDirectiveDefinitionDataByDirectiveName,schema:he.schema,url:re.url}),!(he.overridesByTargetSubgraphName.size<1))for(let[ht,xt]of he.overridesByTargetSubgraphName){let B=d.has(ht);for(let[Te,rt]of xt){let Ct=he.originalTypeNameByRenamedTypeName.get(Te)||Te;if(!B)I.push((0,sf.invalidOverrideTargetSubgraphNameWarning)(ht,Ct,[...rt],re.name));else{let rn=(0,ot.getValueOrDefault)(s,ht,()=>new Map),wn=(0,ot.getValueOrDefault)(rn,Te,()=>new Set(rt));(0,ot.addIterableValuesToSet)(rt,wn)}for(let rn of rt){let wn=`${Ct}.${rn}`,_n=o.get(wn);if(!_n){o.set(wn,[se]);continue}_n.push(se),u.add(wn)}}}}let V=[];if(N.size>0&&V.push((0,De.orScopesLimitError)(ot.maxOrScopes,[...N])),(y.length>0||p.size>0)&&V.push((0,De.invalidSubgraphNamesError)([...p],y)),u.size>0){let G=[];for(let re of u){let se=(0,ot.getOrThrowError)(o,re,"overrideSourceSubgraphNamesByFieldPath");G.push((0,De.duplicateOverriddenFieldErrorMessage)(re,se))}V.push((0,De.duplicateOverriddenFieldsError)(G))}if(V.push(...S),V.length>0)return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:V,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I};for(let[G,re]of s){let se=(0,ot.getOrThrowError)(i,G,"internalSubgraphBySubgraphName");se.overriddenFieldNamesByParentTypeName=re;for(let[fe,he]of re){let Ce=se.configurationDataByTypeName.get(fe);Ce&&((0,ot.subtractSourceSetFromTargetSet)(he,Ce.fieldNames),Ce.fieldNames.size<1&&se.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,internalSubgraphBySubgraphName:i,internalGraph:C,warnings:I}}});var hI=j(od=>{"use strict";m();T();h();Object.defineProperty(od,"__esModule",{value:!0});od.DivergentType=void 0;od.getLeastRestrictiveMergedTypeNode=Lde;od.getMostRestrictiveMergedTypeNode=Pde;od.renameNamedTypeName=kde;var id=(Le(),Me(je)),Vq=To(),wde=Qa(),Bq=$i(),jq=kl(),sd;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(sd||(od.DivergentType=sd={}));function $q(e,t,n,r,i){t=(0,wde.getMutableTypeNode)(t,n,i);let s={kind:e.kind},o=sd.NONE,u=s;for(let l=0;l{"use strict";m();T();h();Object.defineProperty(rF,"__esModule",{value:!0});rF.renameRootTypes=Ude;var xde=(Le(),Me(je)),Bc=bi(),ad=ps(),nF=$i(),Cde=hI();function Ude(e,t){let n,r=!1,i;(0,xde.visit)(t.definitions,{FieldDefinition:{enter(s){let o=s.name.value;if(r&&(o===Bc.SERVICE_FIELD||o===Bc.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(o),!1;let u=n.name,l=(0,ad.getOrThrowError)(n.fieldDataByFieldName,o,`${u}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,ad.getOrThrowError)(nF.operationTypeNodeToDefaultType,d,Bc.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,Cde.renameNamedTypeName)(l,p,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(s){let o=s.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,ad.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Bc.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,ad.getOrThrowError)(nF.operationTypeNodeToDefaultType,u,Bc.OPERATION_TO_DEFAULT):o;n=(0,ad.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Bc.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(s){let o=s.name.value,u=t.operationTypes.get(o),l=u?(0,ad.getOrThrowError)(nF.operationTypeNodeToDefaultType,u,Bc.OPERATION_TO_DEFAULT):o;n=(0,ad.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Bc.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var qq=j((of,_T)=>{"use strict";m();T();h();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",u=500,l="__lodash_placeholder__",d=1,p=2,y=4,N=1,I=2,S=1,C=2,V=4,G=8,re=16,se=32,fe=64,he=128,Ce=256,ht=512,xt=30,B="...",Te=800,rt=16,Ct=1,rn=2,wn=3,_n=1/0,bn=9007199254740991,mi=17976931348623157e292,Xr=NaN,kn=4294967295,on=kn-1,$n=kn>>>1,U=[["ary",he],["bind",S],["bindKey",C],["curry",G],["curryRight",re],["flip",ht],["partial",se],["partialRight",fe],["rearg",Ce]],ae="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",Ke="[object Boolean]",Y="[object Date]",ee="[object DOMException]",Ue="[object Error]",Xe="[object Function]",$t="[object GeneratorFunction]",Je="[object Map]",Ht="[object Number]",Ta="[object Null]",ki="[object Object]",ya="[object Promise]",md="[object Proxy]",Ao="[object RegExp]",Gr="[object Set]",Wi="[object String]",cn="[object Symbol]",Qr="[object Undefined]",Kc="[object WeakMap]",Ro="[object WeakSet]",Gc="[object ArrayBuffer]",F="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",x="[object Int8Array]",z="[object Int16Array]",ie="[object Int32Array]",me="[object Uint8Array]",Rt="[object Uint8ClampedArray]",xn="[object Uint16Array]",Dn="[object Uint32Array]",qn=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,zK=/(__e\(.*?\)|\b__t\)) \+\n'';/g,GF=/&(?:amp|lt|gt|quot|#39);/g,QF=/[&<>"']/g,HK=RegExp(GF.source),WK=RegExp(QF.source),XK=/<%-([\s\S]+?)%>/g,ZK=/<%([\s\S]+?)%>/g,YF=/<%=([\s\S]+?)%>/g,eG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tG=/^\w*$/,nG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zI=/[\\^$.*+?()[\]{}|]/g,rG=RegExp(zI.source),HI=/^\s+/,iG=/\s/,sG=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oG=/\{\n\/\* \[wrapped with (.+)\] \*/,aG=/,? & /,uG=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cG=/[()=,{}\[\]\/\s]/,lG=/\\(\\)?/g,dG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,JF=/\w*$/,pG=/^[-+]0x[0-9a-f]+$/i,fG=/^0b[01]+$/i,mG=/^\[object .+?Constructor\]$/,hG=/^0o[0-7]+$/i,TG=/^(?:0|[1-9]\d*)$/,yG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$T=/($^)/,NG=/['\n\r\u2028\u2029\\]/g,qT="\\ud800-\\udfff",EG="\\u0300-\\u036f",gG="\\ufe20-\\ufe2f",IG="\\u20d0-\\u20ff",zF=EG+gG+IG,HF="\\u2700-\\u27bf",WF="a-z\\xdf-\\xf6\\xf8-\\xff",vG="\\xac\\xb1\\xd7\\xf7",_G="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bG="\\u2000-\\u206f",OG=" \\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",XF="A-Z\\xc0-\\xd6\\xd8-\\xde",ZF="\\ufe0e\\ufe0f",ew=vG+_G+bG+OG,WI="['\u2019]",SG="["+qT+"]",tw="["+ew+"]",KT="["+zF+"]",nw="\\d+",DG="["+HF+"]",rw="["+WF+"]",iw="[^"+qT+ew+nw+HF+WF+XF+"]",XI="\\ud83c[\\udffb-\\udfff]",AG="(?:"+KT+"|"+XI+")",sw="[^"+qT+"]",ZI="(?:\\ud83c[\\udde6-\\uddff]){2}",ev="[\\ud800-\\udbff][\\udc00-\\udfff]",hd="["+XF+"]",ow="\\u200d",aw="(?:"+rw+"|"+iw+")",RG="(?:"+hd+"|"+iw+")",uw="(?:"+WI+"(?:d|ll|m|re|s|t|ve))?",cw="(?:"+WI+"(?:D|LL|M|RE|S|T|VE))?",lw=AG+"?",dw="["+ZF+"]?",FG="(?:"+ow+"(?:"+[sw,ZI,ev].join("|")+")"+dw+lw+")*",wG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",LG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pw=dw+lw+FG,PG="(?:"+[DG,ZI,ev].join("|")+")"+pw,kG="(?:"+[sw+KT+"?",KT,ZI,ev,SG].join("|")+")",xG=RegExp(WI,"g"),CG=RegExp(KT,"g"),tv=RegExp(XI+"(?="+XI+")|"+kG+pw,"g"),UG=RegExp([hd+"?"+rw+"+"+uw+"(?="+[tw,hd,"$"].join("|")+")",RG+"+"+cw+"(?="+[tw,hd+aw,"$"].join("|")+")",hd+"?"+aw+"+"+uw,hd+"+"+cw,LG,wG,nw,PG].join("|"),"g"),MG=RegExp("["+ow+qT+zF+ZF+"]"),BG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,VG=["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"],jG=-1,Vn={};Vn[g]=Vn[v]=Vn[x]=Vn[z]=Vn[ie]=Vn[me]=Vn[Rt]=Vn[xn]=Vn[Dn]=!0,Vn[ae]=Vn[te]=Vn[Gc]=Vn[Ke]=Vn[F]=Vn[Y]=Vn[Ue]=Vn[Xe]=Vn[Je]=Vn[Ht]=Vn[ki]=Vn[Ao]=Vn[Gr]=Vn[Wi]=Vn[Kc]=!1;var Cn={};Cn[ae]=Cn[te]=Cn[Gc]=Cn[F]=Cn[Ke]=Cn[Y]=Cn[g]=Cn[v]=Cn[x]=Cn[z]=Cn[ie]=Cn[Je]=Cn[Ht]=Cn[ki]=Cn[Ao]=Cn[Gr]=Cn[Wi]=Cn[cn]=Cn[me]=Cn[Rt]=Cn[xn]=Cn[Dn]=!0,Cn[Ue]=Cn[Xe]=Cn[Kc]=!1;var $G={\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"},qG={"&":"&","<":"<",">":">",'"':""","'":"'"},KG={"&":"&","<":"<",">":">",""":'"',"'":"'"},GG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QG=parseFloat,YG=parseInt,fw=typeof global=="object"&&global&&global.Object===Object&&global,JG=typeof self=="object"&&self&&self.Object===Object&&self,Cr=fw||JG||Function("return this")(),nv=typeof of=="object"&&of&&!of.nodeType&&of,Qc=nv&&typeof _T=="object"&&_T&&!_T.nodeType&&_T,mw=Qc&&Qc.exports===nv,rv=mw&&fw.process,Es=function(){try{var W=Qc&&Qc.require&&Qc.require("util").types;return W||rv&&rv.binding&&rv.binding("util")}catch(de){}}(),hw=Es&&Es.isArrayBuffer,Tw=Es&&Es.isDate,yw=Es&&Es.isMap,Nw=Es&&Es.isRegExp,Ew=Es&&Es.isSet,gw=Es&&Es.isTypedArray;function Xi(W,de,oe){switch(oe.length){case 0:return W.call(de);case 1:return W.call(de,oe[0]);case 2:return W.call(de,oe[0],oe[1]);case 3:return W.call(de,oe[0],oe[1],oe[2])}return W.apply(de,oe)}function zG(W,de,oe,Be){for(var _t=-1,dn=W==null?0:W.length;++_t-1}function iv(W,de,oe){for(var Be=-1,_t=W==null?0:W.length;++Be<_t;)if(oe(de,W[Be]))return!0;return!1}function Kn(W,de){for(var oe=-1,Be=W==null?0:W.length,_t=Array(Be);++oe-1;);return oe}function Aw(W,de){for(var oe=W.length;oe--&&Td(de,W[oe],0)>-1;);return oe}function iQ(W,de){for(var oe=W.length,Be=0;oe--;)W[oe]===de&&++Be;return Be}var sQ=uv($G),oQ=uv(qG);function aQ(W){return"\\"+GG[W]}function uQ(W,de){return W==null?e:W[de]}function yd(W){return MG.test(W)}function cQ(W){return BG.test(W)}function lQ(W){for(var de,oe=[];!(de=W.next()).done;)oe.push(de.value);return oe}function pv(W){var de=-1,oe=Array(W.size);return W.forEach(function(Be,_t){oe[++de]=[_t,Be]}),oe}function Rw(W,de){return function(oe){return W(de(oe))}}function ec(W,de){for(var oe=-1,Be=W.length,_t=0,dn=[];++oe-1}function WQ(a,c){var f=this.__data__,E=uy(f,a);return E<0?(++this.size,f.push([a,c])):f[E][1]=c,this}Na.prototype.clear=YQ,Na.prototype.delete=JQ,Na.prototype.get=zQ,Na.prototype.has=HQ,Na.prototype.set=WQ;function Ea(a){var c=-1,f=a==null?0:a.length;for(this.clear();++c=c?a:c)),a}function _s(a,c,f,E,_,L){var M,K=c&d,X=c&p,ye=c&y;if(f&&(M=_?f(a,E,_,L):f(a)),M!==e)return M;if(!Zn(a))return a;var Ne=St(a);if(Ne){if(M=tY(a),!K)return xi(a,M)}else{var Ie=ei(a),we=Ie==Xe||Ie==$t;if(ac(a))return dL(a,K);if(Ie==ki||Ie==ae||we&&!_){if(M=X||we?{}:FL(a),!K)return X?K2(a,f2(M,a)):q2(a,jw(M,a))}else{if(!Cn[Ie])return _?a:{};M=nY(a,Ie,K)}}L||(L=new to);var ze=L.get(a);if(ze)return ze;L.set(a,M),sP(a)?a.forEach(function(pt){M.add(_s(pt,c,f,pt,a,L))}):rP(a)&&a.forEach(function(pt,qt){M.set(qt,_s(pt,c,f,qt,a,L))});var dt=ye?X?Mv:Uv:X?Ui:Ur,Ut=Ne?e:dt(a);return gs(Ut||a,function(pt,qt){Ut&&(qt=pt,pt=a[qt]),vf(M,qt,_s(pt,c,f,qt,a,L))}),M}function m2(a){var c=Ur(a);return function(f){return $w(f,a,c)}}function $w(a,c,f){var E=f.length;if(a==null)return!E;for(a=Ln(a);E--;){var _=f[E],L=c[_],M=a[_];if(M===e&&!(_ in a)||!L(M))return!1}return!0}function qw(a,c,f){if(typeof a!="function")throw new Is(i);return Rf(function(){a.apply(e,f)},c)}function _f(a,c,f,E){var _=-1,L=GT,M=!0,K=a.length,X=[],ye=c.length;if(!K)return X;f&&(c=Kn(c,Zi(f))),E?(L=iv,M=!1):c.length>=n&&(L=Tf,M=!1,c=new zc(c));e:for(;++__?0:_+f),E=E===e||E>_?_:Lt(E),E<0&&(E+=_),E=f>E?0:aP(E);f0&&f(K)?c>1?Yr(K,c-1,f,E,_):Zu(_,K):E||(_[_.length]=K)}return _}var Ev=yL(),Qw=yL(!0);function Fo(a,c){return a&&Ev(a,c,Ur)}function gv(a,c){return a&&Qw(a,c,Ur)}function ly(a,c){return Xu(c,function(f){return ba(a[f])})}function Wc(a,c){c=sc(c,a);for(var f=0,E=c.length;a!=null&&fc}function y2(a,c){return a!=null&&Sn.call(a,c)}function N2(a,c){return a!=null&&c in Ln(a)}function E2(a,c,f){return a>=Zr(c,f)&&a=120&&Ne.length>=120)?new zc(M&&Ne):e}Ne=a[0];var Ie=-1,we=K[0];e:for(;++Ie<_&&ye.length-1;)K!==a&&ty.call(K,X,1),ty.call(a,X,1);return a}function rL(a,c){for(var f=a?c.length:0,E=f-1;f--;){var _=c[f];if(f==E||_!==L){var L=_;_a(_)?ty.call(a,_,1):Fv(a,_)}}return a}function Dv(a,c){return a+iy(Uw()*(c-a+1))}function L2(a,c,f,E){for(var _=-1,L=Ar(ry((c-a)/(f||1)),0),M=oe(L);L--;)M[E?L:++_]=a,a+=f;return M}function Av(a,c){var f="";if(!a||c<1||c>bn)return f;do c%2&&(f+=a),c=iy(c/2),c&&(a+=a);while(c);return f}function Bt(a,c){return Gv(PL(a,c,Mi),a+"")}function P2(a){return Vw(Dd(a))}function k2(a,c){var f=Dd(a);return Iy(f,Hc(c,0,f.length))}function Sf(a,c,f,E){if(!Zn(a))return a;c=sc(c,a);for(var _=-1,L=c.length,M=L-1,K=a;K!=null&&++__?0:_+c),f=f>_?_:f,f<0&&(f+=_),_=c>f?0:f-c>>>0,c>>>=0;for(var L=oe(_);++E<_;)L[E]=a[E+c];return L}function U2(a,c){var f;return rc(a,function(E,_,L){return f=c(E,_,L),!f}),!!f}function py(a,c,f){var E=0,_=a==null?E:a.length;if(typeof c=="number"&&c===c&&_<=$n){for(;E<_;){var L=E+_>>>1,M=a[L];M!==null&&!ts(M)&&(f?M<=c:M=n){var ye=c?null:J2(a);if(ye)return YT(ye);M=!1,_=Tf,X=new zc}else X=c?[]:K;e:for(;++E=E?a:bs(a,c,f)}var lL=OQ||function(a){return Cr.clearTimeout(a)};function dL(a,c){if(c)return a.slice();var f=a.length,E=Lw?Lw(f):new a.constructor(f);return a.copy(E),E}function kv(a){var c=new a.constructor(a.byteLength);return new ZT(c).set(new ZT(a)),c}function B2(a,c){var f=c?kv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function V2(a){var c=new a.constructor(a.source,JF.exec(a));return c.lastIndex=a.lastIndex,c}function j2(a){return If?Ln(If.call(a)):{}}function pL(a,c){var f=c?kv(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function fL(a,c){if(a!==c){var f=a!==e,E=a===null,_=a===a,L=ts(a),M=c!==e,K=c===null,X=c===c,ye=ts(c);if(!K&&!ye&&!L&&a>c||L&&M&&X&&!K&&!ye||E&&M&&X||!f&&X||!_)return 1;if(!E&&!L&&!ye&&a=K)return X;var ye=f[E];return X*(ye=="desc"?-1:1)}}return a.index-c.index}function mL(a,c,f,E){for(var _=-1,L=a.length,M=f.length,K=-1,X=c.length,ye=Ar(L-M,0),Ne=oe(X+ye),Ie=!E;++K1?f[_-1]:e,M=_>2?f[2]:e;for(L=a.length>3&&typeof L=="function"?(_--,L):e,M&&Ti(f[0],f[1],M)&&(L=_<3?e:L,_=1),c=Ln(c);++E<_;){var K=f[E];K&&a(c,K,E,L)}return c})}function TL(a,c){return function(f,E){if(f==null)return f;if(!Ci(f))return a(f,E);for(var _=f.length,L=c?_:-1,M=Ln(f);(c?L--:++L<_)&&E(M[L],L,M)!==!1;);return f}}function yL(a){return function(c,f,E){for(var _=-1,L=Ln(c),M=E(c),K=M.length;K--;){var X=M[a?K:++_];if(f(L[X],X,L)===!1)break}return c}}function G2(a,c,f){var E=c&S,_=Df(a);function L(){var M=this&&this!==Cr&&this instanceof L?_:a;return M.apply(E?f:this,arguments)}return L}function NL(a){return function(c){c=yn(c);var f=yd(c)?eo(c):e,E=f?f[0]:c.charAt(0),_=f?oc(f,1).join(""):c.slice(1);return E[a]()+_}}function bd(a){return function(c){return sv(TP(hP(c).replace(xG,"")),a,"")}}function Df(a){return function(){var c=arguments;switch(c.length){case 0:return new a;case 1:return new a(c[0]);case 2:return new a(c[0],c[1]);case 3:return new a(c[0],c[1],c[2]);case 4:return new a(c[0],c[1],c[2],c[3]);case 5:return new a(c[0],c[1],c[2],c[3],c[4]);case 6:return new a(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new a(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var f=vd(a.prototype),E=a.apply(f,c);return Zn(E)?E:f}}function Q2(a,c,f){var E=Df(a);function _(){for(var L=arguments.length,M=oe(L),K=L,X=Od(_);K--;)M[K]=arguments[K];var ye=L<3&&M[0]!==X&&M[L-1]!==X?[]:ec(M,X);if(L-=ye.length,L-1?_[L?c[M]:M]:e}}function gL(a){return va(function(c){var f=c.length,E=f,_=vs.prototype.thru;for(a&&c.reverse();E--;){var L=c[E];if(typeof L!="function")throw new Is(i);if(_&&!M&&Ey(L)=="wrapper")var M=new vs([],!0)}for(E=M?E:f;++E1&&Wt.reverse(),Ne&&XK))return!1;var ye=L.get(a),Ne=L.get(c);if(ye&&Ne)return ye==c&&Ne==a;var Ie=-1,we=!0,ze=f&I?new zc:e;for(L.set(a,c),L.set(c,a);++Ie1?"& ":"")+c[E],c=c.join(f>2?", ":" "),a.replace(sG,`{ /* [wrapped with `+c+`] */ -`)}function K2(a){return St(a)||Jc(a)||!!(vw&&a&&a[vw])}function _a(a,c){var f=typeof a;return c=c==null?_n:c,!!c&&(f=="number"||f!="symbol"&&nG.test(a))&&a>-1&&a%1==0&&a0){if(++c>=Te)return arguments[0]}else c=0;return a.apply(e,arguments)}}function hy(a,c){var f=-1,E=a.length,_=E-1;for(c=c===e?E:c;++f1?a[c-1]:e;return f=typeof f=="function"?(a.pop(),f):e,LL(a,f)});function PL(a){var c=w(a);return c.__chain__=!0,c}function tJ(a,c){return c(a),a}function Ty(a,c){return c(a)}var nJ=va(function(a){var c=a.length,f=c?a[0]:0,E=this.__wrapped__,_=function(L){return lv(L,a)};return c>1||this.__actions__.length||!(E instanceof Gt)||!_a(f)?this.thru(_):(E=E.slice(f,+f+(c?1:0)),E.__actions__.push({func:Ty,args:[_],thisArg:e}),new vs(E,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function rJ(){return PL(this)}function iJ(){return new vs(this.value(),this.__chain__)}function sJ(){this.__values__===e&&(this.__values__=YL(this.value()));var a=this.__index__>=this.__values__.length,c=a?e:this.__values__[this.__index__++];return{done:a,value:c}}function oJ(){return this}function aJ(a){for(var c,f=this;f instanceof ty;){var E=SL(f);E.__index__=0,E.__values__=e,c?_.__wrapped__=E:c=E;var _=E;f=f.__wrapped__}return _.__wrapped__=a,c}function uJ(){var a=this.__wrapped__;if(a instanceof Gt){var c=a;return this.__actions__.length&&(c=new Gt(this)),c=c.reverse(),c.__actions__.push({func:Ty,args:[Mv],thisArg:e}),new vs(c,this.__chain__)}return this.thru(Mv)}function cJ(){return zw(this.__wrapped__,this.__actions__)}var lJ=uy(function(a,c,f){On.call(a,f)?++a[f]:ga(a,f,1)});function dJ(a,c,f){var E=St(a)?uw:t2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}function pJ(a,c){var f=St(a)?Qu:Lw;return f(a,ct(c,3))}var fJ=oL(DL),mJ=oL(AL);function hJ(a,c){return Yr(yy(a,c),1)}function TJ(a,c){return Yr(yy(a,c),vn)}function yJ(a,c,f){return f=f===e?1:Lt(f),Yr(yy(a,c),f)}function kL(a,c){var f=St(a)?gs:Wu;return f(a,ct(c,3))}function CL(a,c){var f=St(a)?xG:ww;return f(a,ct(c,3))}var NJ=uy(function(a,c,f){On.call(a,f)?a[f].push(c):ga(a,f,[c])});function EJ(a,c,f,E){a=xi(a)?a:Id(a),f=f&&!E?Lt(f):0;var _=a.length;return f<0&&(f=Ar(_+f,0)),vy(a)?f<=_&&a.indexOf(c,f)>-1:!!_&&ld(a,c,f)>-1}var gJ=Bt(function(a,c,f){var E=-1,_=typeof c=="function",L=xi(a)?oe(a.length):[];return Wu(a,function(M){L[++E]=_?Xi(c,M,f):Nf(M,c,f)}),L}),IJ=uy(function(a,c,f){ga(a,f,c)});function yy(a,c){var f=St(a)?Kn:Mw;return f(a,ct(c,3))}function vJ(a,c,f,E){return a==null?[]:(St(c)||(c=c==null?[]:[c]),f=E?e:f,St(f)||(f=f==null?[]:[f]),$w(a,c,f))}var _J=uy(function(a,c,f){a[f?0:1].push(c)},function(){return[[],[]]});function bJ(a,c,f){var E=St(a)?WI:pw,_=arguments.length<3;return E(a,ct(c,4),f,_,Wu)}function OJ(a,c,f){var E=St(a)?UG:pw,_=arguments.length<3;return E(a,ct(c,4),f,_,ww)}function SJ(a,c){var f=St(a)?Qu:Lw;return f(a,gy(ct(c,3)))}function DJ(a){var c=St(a)?Dw:E2;return c(a)}function AJ(a,c,f){(f?Ti(a,c,f):c===e)?c=1:c=Lt(c);var E=St(a)?HQ:g2;return E(a,c)}function RJ(a){var c=St(a)?WQ:v2;return c(a)}function FJ(a){if(a==null)return 0;if(xi(a))return vy(a)?pd(a):a.length;var c=ei(a);return c==Je||c==Gr?a.size:Tv(a).length}function wJ(a,c,f){var E=St(a)?XI:_2;return f&&Ti(a,c,f)&&(c=e),E(a,ct(c,3))}var LJ=Bt(function(a,c){if(a==null)return[];var f=c.length;return f>1&&Ti(a,c[0],c[1])?c=[]:f>2&&Ti(c[0],c[1],c[2])&&(c=[c[0]]),$w(a,Yr(c,1),[])}),Ny=pQ||function(){return xr.Date.now()};function PJ(a,c){if(typeof c!="function")throw new Is(i);return a=Lt(a),function(){if(--a<1)return c.apply(this,arguments)}}function xL(a,c,f){return c=f?e:c,c=a&&c==null?a.length:c,Ia(a,he,e,e,e,e,c)}function UL(a,c){var f;if(typeof c!="function")throw new Is(i);return a=Lt(a),function(){return--a>0&&(f=c.apply(this,arguments)),a<=1&&(c=e),f}}var Vv=Bt(function(a,c,f){var E=O;if(f.length){var _=Ju(f,Ed(Vv));E|=se}return Ia(a,E,c,f,_)}),ML=Bt(function(a,c,f){var E=O|x;if(f.length){var _=Ju(f,Ed(ML));E|=se}return Ia(c,E,a,f,_)});function BL(a,c,f){c=f?e:c;var E=Ia(a,K,e,e,e,e,e,c);return E.placeholder=BL.placeholder,E}function VL(a,c,f){c=f?e:c;var E=Ia(a,re,e,e,e,e,e,c);return E.placeholder=VL.placeholder,E}function jL(a,c,f){var E,_,L,M,q,X,ye=0,Ne=!1,Ie=!1,we=!0;if(typeof a!="function")throw new Is(i);c=Ss(c)||0,Xn(f)&&(Ne=!!f.leading,Ie="maxWait"in f,L=Ie?Ar(Ss(f.maxWait)||0,c):L,we="trailing"in f?!!f.trailing:we);function ze(Tr){var ro=E,Sa=_;return E=_=e,ye=Tr,M=a.apply(Sa,ro),M}function lt(Tr){return ye=Tr,q=_f(qt,c),Ne?ze(Tr):M}function Ut(Tr){var ro=Tr-X,Sa=Tr-ye,oP=c-ro;return Ie?Zr(oP,L-Sa):oP}function dt(Tr){var ro=Tr-X,Sa=Tr-ye;return X===e||ro>=c||ro<0||Ie&&Sa>=L}function qt(){var Tr=Ny();if(dt(Tr))return Wt(Tr);q=_f(qt,Ut(Tr))}function Wt(Tr){return q=e,we&&E?ze(Tr):(E=_=e,M)}function ns(){q!==e&&Ww(q),ye=0,E=X=_=q=e}function yi(){return q===e?M:Wt(Ny())}function rs(){var Tr=Ny(),ro=dt(Tr);if(E=arguments,_=this,X=Tr,ro){if(q===e)return lt(X);if(Ie)return Ww(q),q=_f(qt,c),ze(X)}return q===e&&(q=_f(qt,c)),M}return rs.cancel=ns,rs.flush=yi,rs}var kJ=Bt(function(a,c){return Fw(a,1,c)}),CJ=Bt(function(a,c,f){return Fw(a,Ss(c)||0,f)});function xJ(a){return Ia(a,ht)}function Ey(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new Is(i);var f=function(){var E=arguments,_=c?c.apply(this,E):E[0],L=f.cache;if(L.has(_))return L.get(_);var M=a.apply(this,E);return f.cache=L.set(_,M)||L,M};return f.cache=new(Ey.Cache||Ea),f}Ey.Cache=Ea;function gy(a){if(typeof a!="function")throw new Is(i);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function UJ(a){return UL(2,a)}var MJ=b2(function(a,c){c=c.length==1&&St(c[0])?Kn(c[0],Zi(ct())):Kn(Yr(c,1),Zi(ct()));var f=c.length;return Bt(function(E){for(var _=-1,L=Zr(E.length,f);++_=c}),Jc=Cw(function(){return arguments}())?Cw:function(a){return sr(a)&&On.call(a,"callee")&&!Iw.call(a,"callee")},St=oe.isArray,ZJ=nw?Zi(nw):a2;function xi(a){return a!=null&&Iy(a.length)&&!ba(a)}function hr(a){return sr(a)&&xi(a)}function e3(a){return a===!0||a===!1||sr(a)&&hi(a)==Ke}var tc=mQ||Xv,t3=rw?Zi(rw):u2;function n3(a){return sr(a)&&a.nodeType===1&&!bf(a)}function r3(a){if(a==null)return!0;if(xi(a)&&(St(a)||typeof a=="string"||typeof a.splice=="function"||tc(a)||gd(a)||Jc(a)))return!a.length;var c=ei(a);if(c==Je||c==Gr)return!a.size;if(vf(a))return!Tv(a).length;for(var f in a)if(On.call(a,f))return!1;return!0}function i3(a,c){return Ef(a,c)}function s3(a,c,f){f=typeof f=="function"?f:e;var E=f?f(a,c):e;return E===e?Ef(a,c,e,f):!!E}function $v(a){if(!sr(a))return!1;var c=hi(a);return c==Ue||c==ee||typeof a.message=="string"&&typeof a.name=="string"&&!bf(a)}function o3(a){return typeof a=="number"&&_w(a)}function ba(a){if(!Xn(a))return!1;var c=hi(a);return c==Xe||c==$t||c==ce||c==ud}function qL(a){return typeof a=="number"&&a==Lt(a)}function Iy(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=_n}function Xn(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function sr(a){return a!=null&&typeof a=="object"}var KL=iw?Zi(iw):l2;function a3(a,c){return a===c||hv(a,c,Lv(c))}function u3(a,c,f){return f=typeof f=="function"?f:e,hv(a,c,Lv(c),f)}function c3(a){return GL(a)&&a!=+a}function l3(a){if(Y2(a))throw new _t(r);return xw(a)}function d3(a){return a===null}function p3(a){return a==null}function GL(a){return typeof a=="number"||sr(a)&&hi(a)==Ht}function bf(a){if(!sr(a)||hi(a)!=ki)return!1;var c=JT(a);if(c===null)return!0;var f=On.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&KT.call(f)==uQ}var qv=sw?Zi(sw):d2;function f3(a){return qL(a)&&a>=-_n&&a<=_n}var QL=ow?Zi(ow):p2;function vy(a){return typeof a=="string"||!St(a)&&sr(a)&&hi(a)==Wi}function ts(a){return typeof a=="symbol"||sr(a)&&hi(a)==cn}var gd=aw?Zi(aw):f2;function m3(a){return a===e}function h3(a){return sr(a)&&ei(a)==Mc}function T3(a){return sr(a)&&hi(a)==Ro}var y3=py(yv),N3=py(function(a,c){return a<=c});function YL(a){if(!a)return[];if(xi(a))return vy(a)?eo(a):Ci(a);if(df&&a[df])return HG(a[df]());var c=ei(a),f=c==Je?iv:c==Gr?jT:Id;return f(a)}function Oa(a){if(!a)return a===0?a:0;if(a=Ss(a),a===vn||a===-vn){var c=a<0?-1:1;return c*mi}return a===a?a:0}function Lt(a){var c=Oa(a),f=c%1;return c===c?f?c-f:c:0}function JL(a){return a?Kc(Lt(a),0,kn):0}function Ss(a){if(typeof a=="number")return a;if(ts(a))return Xr;if(Xn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Xn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=fw(a);var f=ZK.test(a);return f||tG.test(a)?PG(a.slice(2),f?2:8):XK.test(a)?Xr:+a}function zL(a){return wo(a,Ui(a))}function E3(a){return a?Kc(Lt(a),-_n,_n):a===0?a:0}function yn(a){return a==null?"":es(a)}var g3=yd(function(a,c){if(vf(c)||xi(c)){wo(c,Ur(c),a);return}for(var f in c)On.call(c,f)&&Tf(a,f,c[f])}),HL=yd(function(a,c){wo(c,Ui(c),a)}),_y=yd(function(a,c,f,E){wo(c,Ui(c),a,E)}),I3=yd(function(a,c,f,E){wo(c,Ur(c),a,E)}),v3=va(lv);function _3(a,c){var f=Td(a);return c==null?f:Aw(f,c)}var b3=Bt(function(a,c){a=Ln(a);var f=-1,E=c.length,_=E>2?c[2]:e;for(_&&Ti(c[0],c[1],_)&&(E=1);++f1),L}),wo(a,Fv(a),f),E&&(f=_s(f,d|p|y,C2));for(var _=c.length;_--;)vv(f,c[_]);return f});function $3(a,c){return XL(a,gy(ct(c)))}var q3=va(function(a,c){return a==null?{}:T2(a,c)});function XL(a,c){if(a==null)return{};var f=Kn(Fv(a),function(E){return[E]});return c=ct(c),qw(a,f,function(E,_){return c(E,_[0])})}function K3(a,c,f){c=Zu(c,a);var E=-1,_=c.length;for(_||(_=1,a=e);++E<_;){var L=a==null?e:a[Lo(c[E])];L===e&&(E=_,L=f),a=ba(L)?L.call(a):L}return a}function G3(a,c,f){return a==null?a:gf(a,c,f)}function Q3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:gf(a,c,f,E)}var ZL=dL(Ur),eP=dL(Ui);function Y3(a,c,f){var E=St(a),_=E||tc(a)||gd(a);if(c=ct(c,4),f==null){var L=a&&a.constructor;_?f=E?new L:[]:Xn(a)?f=ba(L)?Td(JT(a)):{}:f={}}return(_?gs:Fo)(a,function(M,q,X){return c(f,M,q,X)}),f}function J3(a,c){return a==null?!0:vv(a,c)}function z3(a,c,f){return a==null?a:Jw(a,c,Ov(f))}function H3(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:Jw(a,c,Ov(f),E)}function Id(a){return a==null?[]:rv(a,Ur(a))}function W3(a){return a==null?[]:rv(a,Ui(a))}function X3(a,c,f){return f===e&&(f=c,c=e),f!==e&&(f=Ss(f),f=f===f?f:0),c!==e&&(c=Ss(c),c=c===c?c:0),Kc(Ss(a),c,f)}function Z3(a,c,f){return c=Oa(c),f===e?(f=c,c=0):f=Oa(f),a=Ss(a),s2(a,c,f)}function ez(a,c,f){if(f&&typeof f!="boolean"&&Ti(a,c,f)&&(c=f=e),f===e&&(typeof c=="boolean"?(f=c,c=e):typeof a=="boolean"&&(f=a,a=e)),a===e&&c===e?(a=0,c=1):(a=Oa(a),c===e?(c=a,a=0):c=Oa(c)),a>c){var E=a;a=c,c=E}if(f||a%1||c%1){var _=bw();return Zr(a+_*(c-a+LG("1e-"+((_+"").length-1))),c)}return Ev(a,c)}var tz=Nd(function(a,c,f){return c=c.toLowerCase(),a+(f?tP(c):c)});function tP(a){return Qv(yn(a).toLowerCase())}function nP(a){return a=yn(a),a&&a.replace(rG,GG).replace(vG,"")}function nz(a,c,f){a=yn(a),c=es(c);var E=a.length;f=f===e?E:Kc(Lt(f),0,E);var _=f;return f-=c.length,f>=0&&a.slice(f,_)==c}function rz(a){return a=yn(a),a&&UK.test(a)?a.replace(PF,QG):a}function iz(a){return a=yn(a),a&&qK.test(a)?a.replace(jI,"\\$&"):a}var sz=Nd(function(a,c,f){return a+(f?"-":"")+c.toLowerCase()}),oz=Nd(function(a,c,f){return a+(f?" ":"")+c.toLowerCase()}),az=sL("toLowerCase");function uz(a,c,f){a=yn(a),c=Lt(c);var E=c?pd(a):0;if(!c||E>=c)return a;var _=(c-E)/2;return dy(XT(_),f)+a+dy(WT(_),f)}function cz(a,c,f){a=yn(a),c=Lt(c);var E=c?pd(a):0;return c&&E>>0,f?(a=yn(a),a&&(typeof c=="string"||c!=null&&!qv(c))&&(c=es(c),!c&&dd(a))?ec(eo(a),0,f):a.split(c,f)):[]}var Tz=Nd(function(a,c,f){return a+(f?" ":"")+Qv(c)});function yz(a,c,f){return a=yn(a),f=f==null?0:Kc(Lt(f),0,a.length),c=es(c),a.slice(f,f+c.length)==c}function Nz(a,c,f){var E=w.templateSettings;f&&Ti(a,c,f)&&(c=e),a=yn(a),c=_y({},c,E,pL);var _=_y({},c.imports,E.imports,pL),L=Ur(_),M=rv(_,L),q,X,ye=0,Ne=c.interpolate||xT,Ie="__p += '",we=sv((c.escape||xT).source+"|"+Ne.source+"|"+(Ne===kF?WK:xT).source+"|"+(c.evaluate||xT).source+"|$","g"),ze="//# sourceURL="+(On.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DG+"]")+` -`;a.replace(we,function(dt,qt,Wt,ns,yi,rs){return Wt||(Wt=ns),Ie+=a.slice(ye,rs).replace(iG,YG),qt&&(q=!0,Ie+=`' + +`)}function iY(a){return St(a)||el(a)||!!(xw&&a&&a[xw])}function _a(a,c){var f=typeof a;return c=c==null?bn:c,!!c&&(f=="number"||f!="symbol"&&TG.test(a))&&a>-1&&a%1==0&&a0){if(++c>=Te)return arguments[0]}else c=0;return a.apply(e,arguments)}}function Iy(a,c){var f=-1,E=a.length,_=E-1;for(c=c===e?E:c;++f1?a[c-1]:e;return f=typeof f=="function"?(a.pop(),f):e,GL(a,f)});function QL(a){var c=w(a);return c.__chain__=!0,c}function hJ(a,c){return c(a),a}function vy(a,c){return c(a)}var TJ=va(function(a){var c=a.length,f=c?a[0]:0,E=this.__wrapped__,_=function(L){return Nv(L,a)};return c>1||this.__actions__.length||!(E instanceof Gt)||!_a(f)?this.thru(_):(E=E.slice(f,+f+(c?1:0)),E.__actions__.push({func:vy,args:[_],thisArg:e}),new vs(E,this.__chain__).thru(function(L){return c&&!L.length&&L.push(e),L}))});function yJ(){return QL(this)}function NJ(){return new vs(this.value(),this.__chain__)}function EJ(){this.__values__===e&&(this.__values__=oP(this.value()));var a=this.__index__>=this.__values__.length,c=a?e:this.__values__[this.__index__++];return{done:a,value:c}}function gJ(){return this}function IJ(a){for(var c,f=this;f instanceof ay;){var E=BL(f);E.__index__=0,E.__values__=e,c?_.__wrapped__=E:c=E;var _=E;f=f.__wrapped__}return _.__wrapped__=a,c}function vJ(){var a=this.__wrapped__;if(a instanceof Gt){var c=a;return this.__actions__.length&&(c=new Gt(this)),c=c.reverse(),c.__actions__.push({func:vy,args:[Qv],thisArg:e}),new vs(c,this.__chain__)}return this.thru(Qv)}function _J(){return uL(this.__wrapped__,this.__actions__)}var bJ=my(function(a,c,f){Sn.call(a,f)?++a[f]:ga(a,f,1)});function OJ(a,c,f){var E=St(a)?Iw:h2;return f&&Ti(a,c,f)&&(c=e),E(a,lt(c,3))}function SJ(a,c){var f=St(a)?Xu:Gw;return f(a,lt(c,3))}var DJ=EL(VL),AJ=EL(jL);function RJ(a,c){return Yr(_y(a,c),1)}function FJ(a,c){return Yr(_y(a,c),_n)}function wJ(a,c,f){return f=f===e?1:Lt(f),Yr(_y(a,c),f)}function YL(a,c){var f=St(a)?gs:rc;return f(a,lt(c,3))}function JL(a,c){var f=St(a)?HG:Kw;return f(a,lt(c,3))}var LJ=my(function(a,c,f){Sn.call(a,f)?a[f].push(c):ga(a,f,[c])});function PJ(a,c,f,E){a=Ci(a)?a:Dd(a),f=f&&!E?Lt(f):0;var _=a.length;return f<0&&(f=Ar(_+f,0)),Ay(a)?f<=_&&a.indexOf(c,f)>-1:!!_&&Td(a,c,f)>-1}var kJ=Bt(function(a,c,f){var E=-1,_=typeof c=="function",L=Ci(a)?oe(a.length):[];return rc(a,function(M){L[++E]=_?Xi(c,M,f):bf(M,c,f)}),L}),xJ=my(function(a,c,f){ga(a,f,c)});function _y(a,c){var f=St(a)?Kn:Ww;return f(a,lt(c,3))}function CJ(a,c,f,E){return a==null?[]:(St(c)||(c=c==null?[]:[c]),f=E?e:f,St(f)||(f=f==null?[]:[f]),tL(a,c,f))}var UJ=my(function(a,c,f){a[f?0:1].push(c)},function(){return[[],[]]});function MJ(a,c,f){var E=St(a)?sv:Ow,_=arguments.length<3;return E(a,lt(c,4),f,_,rc)}function BJ(a,c,f){var E=St(a)?WG:Ow,_=arguments.length<3;return E(a,lt(c,4),f,_,Kw)}function VJ(a,c){var f=St(a)?Xu:Gw;return f(a,Sy(lt(c,3)))}function jJ(a){var c=St(a)?Vw:P2;return c(a)}function $J(a,c,f){(f?Ti(a,c,f):c===e)?c=1:c=Lt(c);var E=St(a)?l2:k2;return E(a,c)}function qJ(a){var c=St(a)?d2:C2;return c(a)}function KJ(a){if(a==null)return 0;if(Ci(a))return Ay(a)?Nd(a):a.length;var c=ei(a);return c==Je||c==Gr?a.size:bv(a).length}function GJ(a,c,f){var E=St(a)?ov:U2;return f&&Ti(a,c,f)&&(c=e),E(a,lt(c,3))}var QJ=Bt(function(a,c){if(a==null)return[];var f=c.length;return f>1&&Ti(a,c[0],c[1])?c=[]:f>2&&Ti(c[0],c[1],c[2])&&(c=[c[0]]),tL(a,Yr(c,1),[])}),by=SQ||function(){return Cr.Date.now()};function YJ(a,c){if(typeof c!="function")throw new Is(i);return a=Lt(a),function(){if(--a<1)return c.apply(this,arguments)}}function zL(a,c,f){return c=f?e:c,c=a&&c==null?a.length:c,Ia(a,he,e,e,e,e,c)}function HL(a,c){var f;if(typeof c!="function")throw new Is(i);return a=Lt(a),function(){return--a>0&&(f=c.apply(this,arguments)),a<=1&&(c=e),f}}var Jv=Bt(function(a,c,f){var E=S;if(f.length){var _=ec(f,Od(Jv));E|=se}return Ia(a,E,c,f,_)}),WL=Bt(function(a,c,f){var E=S|C;if(f.length){var _=ec(f,Od(WL));E|=se}return Ia(c,E,a,f,_)});function XL(a,c,f){c=f?e:c;var E=Ia(a,G,e,e,e,e,e,c);return E.placeholder=XL.placeholder,E}function ZL(a,c,f){c=f?e:c;var E=Ia(a,re,e,e,e,e,e,c);return E.placeholder=ZL.placeholder,E}function eP(a,c,f){var E,_,L,M,K,X,ye=0,Ne=!1,Ie=!1,we=!0;if(typeof a!="function")throw new Is(i);c=Ss(c)||0,Zn(f)&&(Ne=!!f.leading,Ie="maxWait"in f,L=Ie?Ar(Ss(f.maxWait)||0,c):L,we="trailing"in f?!!f.trailing:we);function ze(Tr){var ro=E,Sa=_;return E=_=e,ye=Tr,M=a.apply(Sa,ro),M}function dt(Tr){return ye=Tr,K=Rf(qt,c),Ne?ze(Tr):M}function Ut(Tr){var ro=Tr-X,Sa=Tr-ye,EP=c-ro;return Ie?Zr(EP,L-Sa):EP}function pt(Tr){var ro=Tr-X,Sa=Tr-ye;return X===e||ro>=c||ro<0||Ie&&Sa>=L}function qt(){var Tr=by();if(pt(Tr))return Wt(Tr);K=Rf(qt,Ut(Tr))}function Wt(Tr){return K=e,we&&E?ze(Tr):(E=_=e,M)}function ns(){K!==e&&lL(K),ye=0,E=X=_=K=e}function yi(){return K===e?M:Wt(by())}function rs(){var Tr=by(),ro=pt(Tr);if(E=arguments,_=this,X=Tr,ro){if(K===e)return dt(X);if(Ie)return lL(K),K=Rf(qt,c),ze(X)}return K===e&&(K=Rf(qt,c)),M}return rs.cancel=ns,rs.flush=yi,rs}var JJ=Bt(function(a,c){return qw(a,1,c)}),zJ=Bt(function(a,c,f){return qw(a,Ss(c)||0,f)});function HJ(a){return Ia(a,ht)}function Oy(a,c){if(typeof a!="function"||c!=null&&typeof c!="function")throw new Is(i);var f=function(){var E=arguments,_=c?c.apply(this,E):E[0],L=f.cache;if(L.has(_))return L.get(_);var M=a.apply(this,E);return f.cache=L.set(_,M)||L,M};return f.cache=new(Oy.Cache||Ea),f}Oy.Cache=Ea;function Sy(a){if(typeof a!="function")throw new Is(i);return function(){var c=arguments;switch(c.length){case 0:return!a.call(this);case 1:return!a.call(this,c[0]);case 2:return!a.call(this,c[0],c[1]);case 3:return!a.call(this,c[0],c[1],c[2])}return!a.apply(this,c)}}function WJ(a){return HL(2,a)}var XJ=M2(function(a,c){c=c.length==1&&St(c[0])?Kn(c[0],Zi(lt())):Kn(Yr(c,1),Zi(lt()));var f=c.length;return Bt(function(E){for(var _=-1,L=Zr(E.length,f);++_=c}),el=Jw(function(){return arguments}())?Jw:function(a){return sr(a)&&Sn.call(a,"callee")&&!kw.call(a,"callee")},St=oe.isArray,f3=hw?Zi(hw):I2;function Ci(a){return a!=null&&Dy(a.length)&&!ba(a)}function hr(a){return sr(a)&&Ci(a)}function m3(a){return a===!0||a===!1||sr(a)&&hi(a)==Ke}var ac=AQ||o_,h3=Tw?Zi(Tw):v2;function T3(a){return sr(a)&&a.nodeType===1&&!Ff(a)}function y3(a){if(a==null)return!0;if(Ci(a)&&(St(a)||typeof a=="string"||typeof a.splice=="function"||ac(a)||Sd(a)||el(a)))return!a.length;var c=ei(a);if(c==Je||c==Gr)return!a.size;if(Af(a))return!bv(a).length;for(var f in a)if(Sn.call(a,f))return!1;return!0}function N3(a,c){return Of(a,c)}function E3(a,c,f){f=typeof f=="function"?f:e;var E=f?f(a,c):e;return E===e?Of(a,c,e,f):!!E}function Hv(a){if(!sr(a))return!1;var c=hi(a);return c==Ue||c==ee||typeof a.message=="string"&&typeof a.name=="string"&&!Ff(a)}function g3(a){return typeof a=="number"&&Cw(a)}function ba(a){if(!Zn(a))return!1;var c=hi(a);return c==Xe||c==$t||c==ce||c==md}function nP(a){return typeof a=="number"&&a==Lt(a)}function Dy(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=bn}function Zn(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}function sr(a){return a!=null&&typeof a=="object"}var rP=yw?Zi(yw):b2;function I3(a,c){return a===c||_v(a,c,Vv(c))}function v3(a,c,f){return f=typeof f=="function"?f:e,_v(a,c,Vv(c),f)}function _3(a){return iP(a)&&a!=+a}function b3(a){if(aY(a))throw new _t(r);return zw(a)}function O3(a){return a===null}function S3(a){return a==null}function iP(a){return typeof a=="number"||sr(a)&&hi(a)==Ht}function Ff(a){if(!sr(a)||hi(a)!=ki)return!1;var c=ey(a);if(c===null)return!0;var f=Sn.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&HT.call(f)==vQ}var Wv=Nw?Zi(Nw):O2;function D3(a){return nP(a)&&a>=-bn&&a<=bn}var sP=Ew?Zi(Ew):S2;function Ay(a){return typeof a=="string"||!St(a)&&sr(a)&&hi(a)==Wi}function ts(a){return typeof a=="symbol"||sr(a)&&hi(a)==cn}var Sd=gw?Zi(gw):D2;function A3(a){return a===e}function R3(a){return sr(a)&&ei(a)==Kc}function F3(a){return sr(a)&&hi(a)==Ro}var w3=Ny(Ov),L3=Ny(function(a,c){return a<=c});function oP(a){if(!a)return[];if(Ci(a))return Ay(a)?eo(a):xi(a);if(yf&&a[yf])return lQ(a[yf]());var c=ei(a),f=c==Je?pv:c==Gr?YT:Dd;return f(a)}function Oa(a){if(!a)return a===0?a:0;if(a=Ss(a),a===_n||a===-_n){var c=a<0?-1:1;return c*mi}return a===a?a:0}function Lt(a){var c=Oa(a),f=c%1;return c===c?f?c-f:c:0}function aP(a){return a?Hc(Lt(a),0,kn):0}function Ss(a){if(typeof a=="number")return a;if(ts(a))return Xr;if(Zn(a)){var c=typeof a.valueOf=="function"?a.valueOf():a;a=Zn(c)?c+"":c}if(typeof a!="string")return a===0?a:+a;a=Sw(a);var f=fG.test(a);return f||hG.test(a)?YG(a.slice(2),f?2:8):pG.test(a)?Xr:+a}function uP(a){return wo(a,Ui(a))}function P3(a){return a?Hc(Lt(a),-bn,bn):a===0?a:0}function yn(a){return a==null?"":es(a)}var k3=_d(function(a,c){if(Af(c)||Ci(c)){wo(c,Ur(c),a);return}for(var f in c)Sn.call(c,f)&&vf(a,f,c[f])}),cP=_d(function(a,c){wo(c,Ui(c),a)}),Ry=_d(function(a,c,f,E){wo(c,Ui(c),a,E)}),x3=_d(function(a,c,f,E){wo(c,Ur(c),a,E)}),C3=va(Nv);function U3(a,c){var f=vd(a);return c==null?f:jw(f,c)}var M3=Bt(function(a,c){a=Ln(a);var f=-1,E=c.length,_=E>2?c[2]:e;for(_&&Ti(c[0],c[1],_)&&(E=1);++f1),L}),wo(a,Mv(a),f),E&&(f=_s(f,d|p|y,z2));for(var _=c.length;_--;)Fv(f,c[_]);return f});function nz(a,c){return dP(a,Sy(lt(c)))}var rz=va(function(a,c){return a==null?{}:F2(a,c)});function dP(a,c){if(a==null)return{};var f=Kn(Mv(a),function(E){return[E]});return c=lt(c),nL(a,f,function(E,_){return c(E,_[0])})}function iz(a,c,f){c=sc(c,a);var E=-1,_=c.length;for(_||(_=1,a=e);++E<_;){var L=a==null?e:a[Lo(c[E])];L===e&&(E=_,L=f),a=ba(L)?L.call(a):L}return a}function sz(a,c,f){return a==null?a:Sf(a,c,f)}function oz(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:Sf(a,c,f,E)}var pP=bL(Ur),fP=bL(Ui);function az(a,c,f){var E=St(a),_=E||ac(a)||Sd(a);if(c=lt(c,4),f==null){var L=a&&a.constructor;_?f=E?new L:[]:Zn(a)?f=ba(L)?vd(ey(a)):{}:f={}}return(_?gs:Fo)(a,function(M,K,X){return c(f,M,K,X)}),f}function uz(a,c){return a==null?!0:Fv(a,c)}function cz(a,c,f){return a==null?a:aL(a,c,Pv(f))}function lz(a,c,f,E){return E=typeof E=="function"?E:e,a==null?a:aL(a,c,Pv(f),E)}function Dd(a){return a==null?[]:dv(a,Ur(a))}function dz(a){return a==null?[]:dv(a,Ui(a))}function pz(a,c,f){return f===e&&(f=c,c=e),f!==e&&(f=Ss(f),f=f===f?f:0),c!==e&&(c=Ss(c),c=c===c?c:0),Hc(Ss(a),c,f)}function fz(a,c,f){return c=Oa(c),f===e?(f=c,c=0):f=Oa(f),a=Ss(a),E2(a,c,f)}function mz(a,c,f){if(f&&typeof f!="boolean"&&Ti(a,c,f)&&(c=f=e),f===e&&(typeof c=="boolean"?(f=c,c=e):typeof a=="boolean"&&(f=a,a=e)),a===e&&c===e?(a=0,c=1):(a=Oa(a),c===e?(c=a,a=0):c=Oa(c)),a>c){var E=a;a=c,c=E}if(f||a%1||c%1){var _=Uw();return Zr(a+_*(c-a+QG("1e-"+((_+"").length-1))),c)}return Dv(a,c)}var hz=bd(function(a,c,f){return c=c.toLowerCase(),a+(f?mP(c):c)});function mP(a){return e_(yn(a).toLowerCase())}function hP(a){return a=yn(a),a&&a.replace(yG,sQ).replace(CG,"")}function Tz(a,c,f){a=yn(a),c=es(c);var E=a.length;f=f===e?E:Hc(Lt(f),0,E);var _=f;return f-=c.length,f>=0&&a.slice(f,_)==c}function yz(a){return a=yn(a),a&&WK.test(a)?a.replace(QF,oQ):a}function Nz(a){return a=yn(a),a&&rG.test(a)?a.replace(zI,"\\$&"):a}var Ez=bd(function(a,c,f){return a+(f?"-":"")+c.toLowerCase()}),gz=bd(function(a,c,f){return a+(f?" ":"")+c.toLowerCase()}),Iz=NL("toLowerCase");function vz(a,c,f){a=yn(a),c=Lt(c);var E=c?Nd(a):0;if(!c||E>=c)return a;var _=(c-E)/2;return yy(iy(_),f)+a+yy(ry(_),f)}function _z(a,c,f){a=yn(a),c=Lt(c);var E=c?Nd(a):0;return c&&E>>0,f?(a=yn(a),a&&(typeof c=="string"||c!=null&&!Wv(c))&&(c=es(c),!c&&yd(a))?oc(eo(a),0,f):a.split(c,f)):[]}var Fz=bd(function(a,c,f){return a+(f?" ":"")+e_(c)});function wz(a,c,f){return a=yn(a),f=f==null?0:Hc(Lt(f),0,a.length),c=es(c),a.slice(f,f+c.length)==c}function Lz(a,c,f){var E=w.templateSettings;f&&Ti(a,c,f)&&(c=e),a=yn(a),c=Ry({},c,E,OL);var _=Ry({},c.imports,E.imports,OL),L=Ur(_),M=dv(_,L),K,X,ye=0,Ne=c.interpolate||$T,Ie="__p += '",we=fv((c.escape||$T).source+"|"+Ne.source+"|"+(Ne===YF?dG:$T).source+"|"+(c.evaluate||$T).source+"|$","g"),ze="//# sourceURL="+(Sn.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jG+"]")+` +`;a.replace(we,function(pt,qt,Wt,ns,yi,rs){return Wt||(Wt=ns),Ie+=a.slice(ye,rs).replace(NG,aQ),qt&&(K=!0,Ie+=`' + __e(`+qt+`) + '`),yi&&(X=!0,Ie+=`'; `+yi+`; __p += '`),Wt&&(Ie+=`' + ((__t = (`+Wt+`)) == null ? '' : __t) + -'`),ye=rs+dt.length,dt}),Ie+=`'; -`;var lt=On.call(c,"variable")&&c.variable;if(!lt)Ie=`with (obj) { +'`),ye=rs+pt.length,pt}),Ie+=`'; +`;var dt=Sn.call(c,"variable")&&c.variable;if(!dt)Ie=`with (obj) { `+Ie+` } -`;else if(zK.test(lt))throw new _t(s);Ie=(X?Ie.replace(qn,""):Ie).replace(bn,"$1").replace(CK,"$1;"),Ie="function("+(lt||"obj")+`) { -`+(lt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(q?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; +`;else if(cG.test(dt))throw new _t(s);Ie=(X?Ie.replace(qn,""):Ie).replace(On,"$1").replace(zK,"$1;"),Ie="function("+(dt||"obj")+`) { +`+(dt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ie+`return __p -}`;var Ut=iP(function(){return dn(L,ze+"return "+Ie).apply(e,M)});if(Ut.source=Ie,$v(Ut))throw Ut;return Ut}function Ez(a){return yn(a).toLowerCase()}function gz(a){return yn(a).toUpperCase()}function Iz(a,c,f){if(a=yn(a),a&&(f||c===e))return fw(a);if(!a||!(c=es(c)))return a;var E=eo(a),_=eo(c),L=mw(E,_),M=hw(E,_)+1;return ec(E,L,M).join("")}function vz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.slice(0,yw(a)+1);if(!a||!(c=es(c)))return a;var E=eo(a),_=hw(E,eo(c))+1;return ec(E,0,_).join("")}function _z(a,c,f){if(a=yn(a),a&&(f||c===e))return a.replace($I,"");if(!a||!(c=es(c)))return a;var E=eo(a),_=mw(E,eo(c));return ec(E,_).join("")}function bz(a,c){var f=Ct,E=B;if(Xn(c)){var _="separator"in c?c.separator:_;f="length"in c?Lt(c.length):f,E="omission"in c?es(c.omission):E}a=yn(a);var L=a.length;if(dd(a)){var M=eo(a);L=M.length}if(f>=L)return a;var q=f-pd(E);if(q<1)return E;var X=M?ec(M,0,q).join(""):a.slice(0,q);if(_===e)return X+E;if(M&&(q+=X.length-q),qv(_)){if(a.slice(q).search(_)){var ye,Ne=X;for(_.global||(_=sv(_.source,yn(CF.exec(_))+"g")),_.lastIndex=0;ye=_.exec(Ne);)var Ie=ye.index;X=X.slice(0,Ie===e?q:Ie)}}else if(a.indexOf(es(_),q)!=q){var we=X.lastIndexOf(_);we>-1&&(X=X.slice(0,we))}return X+E}function Oz(a){return a=yn(a),a&&xK.test(a)?a.replace(LF,eQ):a}var Sz=Nd(function(a,c,f){return a+(f?" ":"")+c.toUpperCase()}),Qv=sL("toUpperCase");function rP(a,c,f){return a=yn(a),c=f?e:c,c===e?zG(a)?rQ(a):VG(a):a.match(c)||[]}var iP=Bt(function(a,c){try{return Xi(a,e,c)}catch(f){return $v(f)?f:new _t(f)}}),Dz=va(function(a,c){return gs(c,function(f){f=Lo(f),ga(a,f,Vv(a[f],a))}),a});function Az(a){var c=a==null?0:a.length,f=ct();return a=c?Kn(a,function(E){if(typeof E[1]!="function")throw new Is(i);return[f(E[0]),E[1]]}):[],Bt(function(E){for(var _=-1;++__n)return[];var f=kn,E=Zr(a,kn);c=ct(c),a-=kn;for(var _=nv(E,c);++f0||c<0)?new Gt(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),c!==e&&(c=Lt(c),f=c<0?f.dropRight(-c):f.take(c-a)),f)},Gt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Gt.prototype.toArray=function(){return this.take(kn)},Fo(Gt.prototype,function(a,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),_=w[E?"take"+(c=="last"?"Right":""):c],L=E||/^find/.test(c);_&&(w.prototype[c]=function(){var M=this.__wrapped__,q=E?[1]:arguments,X=M instanceof Gt,ye=q[0],Ne=X||St(M),Ie=function(qt){var Wt=_.apply(w,Yu([qt],q));return E&&we?Wt[0]:Wt};Ne&&f&&typeof ye=="function"&&ye.length!=1&&(X=Ne=!1);var we=this.__chain__,ze=!!this.__actions__.length,lt=L&&!we,Ut=X&&!ze;if(!L&&Ne){M=Ut?M:new Gt(this);var dt=a.apply(M,q);return dt.__actions__.push({func:Ty,args:[Ie],thisArg:e}),new vs(dt,we)}return lt&&Ut?a.apply(this,q):(dt=this.thru(Ie),lt?E?dt.value()[0]:dt.value():dt)})}),gs(["pop","push","shift","sort","splice","unshift"],function(a){var c=$T[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);w.prototype[a]=function(){var _=arguments;if(E&&!this.__chain__){var L=this.value();return c.apply(St(L)?L:[],_)}return this[f](function(M){return c.apply(St(M)?M:[],_)})}}),Fo(Gt.prototype,function(a,c){var f=w[c];if(f){var E=f.name+"";On.call(hd,E)||(hd[E]=[]),hd[E].push({name:c,func:f})}}),hd[cy(e,x).name]=[{name:"wrapper",func:e}],Gt.prototype.clone=OQ,Gt.prototype.reverse=SQ,Gt.prototype.value=DQ,w.prototype.at=nJ,w.prototype.chain=rJ,w.prototype.commit=iJ,w.prototype.next=sJ,w.prototype.plant=aJ,w.prototype.reverse=uJ,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=cJ,w.prototype.first=w.prototype.head,df&&(w.prototype[df]=oJ),w},zu=iQ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(xr._=zu,define(function(){return zu})):Vc?((Vc.exports=zu)._=zu,JI._=zu):xr._=zu}).call(Zp)});var Pq=j(nd=>{"use strict";m();T();h();Object.defineProperty(nd,"__esModule",{value:!0});nd.FederationFactory=void 0;nd.federateSubgraphs=Dde;nd.federateSubgraphsWithContracts=Ade;nd.federateSubgraphsContract=Rde;var ke=(Le(),Me(je)),kc=Qa(),Xs=$i(),Ce=To(),ef=wR(),Fe=bi(),_e=ps(),lI=rI(),fr=Oc(),bde=YR(),Ode=Ql(),wq=Gh(),Se=Jp(),Sde=HR(),Lq=Fq(),tf=cI(),dI=Al(),pI=class{constructor(t){A(this,"authorizationDataByParentTypeName");A(this,"concreteTypeNamesByAbstractTypeName");A(this,"clientDefinitions",[fr.DEPRECATED_DEFINITION]);A(this,"currentSubgraphName","");A(this,"subgraphNamesByNamedTypeNameByFieldCoordinates",new Map);A(this,"entityDataByTypeName");A(this,"entityInterfaceFederationDataByTypeName");A(this,"errors",[]);A(this,"fieldConfigurationByFieldPath",new Map);A(this,"inaccessiblePaths",new Set);A(this,"isMaxDepth",!1);A(this,"internalGraph");A(this,"internalSubgraphBySubgraphName");A(this,"invalidOrScopesHostPaths",new Set);A(this,"isVersionTwo",!1);A(this,"namedInputValueTypeNames",new Set);A(this,"namedOutputTypeNames",new Set);A(this,"parentDefinitionDataByTypeName",new Map);A(this,"parentTagDataByTypeName",new Map);A(this,"pathsByNamedTypeName",new Map);A(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Fe.AUTHENTICATED,fr.AUTHENTICATED_DEFINITION],[Fe.DEPRECATED,fr.DEPRECATED_DEFINITION],[Fe.INACCESSIBLE,fr.INACCESSIBLE_DEFINITION],[Fe.REQUIRES_SCOPES,fr.REQUIRES_SCOPES_DEFINITION],[Fe.TAG,fr.TAG_DEFINITION]]));A(this,"persistedDirectiveDefinitions",new Set([Fe.AUTHENTICATED,Fe.DEPRECATED,Fe.INACCESSIBLE,Fe.TAG,Fe.REQUIRES_SCOPES]));A(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);A(this,"routerDefinitions",[fr.DEPRECATED_DEFINITION,fr.TAG_DEFINITION]);A(this,"shareableErrorTypeNames",new Map);A(this,"subscriptionFilterDataByFieldPath",new Map);A(this,"tagNamesByPath",new Map);A(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Se.isNodeDataInaccessible)(t),i=new Map,s=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,Xs.stringToNamedTypeNode)(u));let l=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Fe.PARENT_DEFINITION_DATA);if(l.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION){s.set(l.name,(0,_e.kindToTypeString)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,N]of l.fieldDataByFieldName){let I=!1,O=t.fieldDataByFieldName.get(y);if(!O){p=!0,d.unimplementedFields.push(y);continue}let x={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,lI.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Se.isTypeValidImplementation)(N.node.type,O.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,I=!0,x.implementedResponseType=(0,lI.printTypeNode)(O.node.type));let V=new Set;for(let[K,re]of N.argumentDataByArgumentName){let se=re.node;V.add(K);let fe=(o=O.argumentDataByArgumentName.get(K))==null?void 0:o.node;if(!fe){p=!0,I=!0,x.unimplementedArguments.add(K);continue}let he=(0,lI.printTypeNode)(fe.type),xe=(0,lI.printTypeNode)(se.type);xe!==he&&(p=!0,I=!0,x.invalidImplementedArguments.push({actualType:he,argumentName:K,expectedType:xe}))}for(let[K,re]of O.argumentDataByArgumentName){let se=re.node;V.has(K)||se.type.kind===ke.Kind.NON_NULL_TYPE&&(p=!0,I=!0,x.invalidAdditionalArguments.add(K))}!r&&O.isInaccessible&&!N.isInaccessible&&(p=!0,I=!0,x.isInaccessible=!0),I&&d.invalidFieldImplementations.set(y,x)}p&&i.set(u,d)}return s.size>0&&this.errors.push((0,Ce.invalidImplementedTypeError)(t.name,s)),i.size&&this.errors.push((0,Ce.invalidInterfaceImplementationError)(t.node.name.value,(0,_e.kindToTypeString)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,_e.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,s=i.get(n.typeName);if(!s||s.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)throw(0,Ce.incompatibleParentKindFatalError)(n.typeName,ke.Kind.OBJECT_TYPE_DEFINITION,(s==null?void 0:s.kind)||ke.Kind.NULL);let o=(0,_e.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByParentTypeName"),u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,ef.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:n.keyFieldSets,graphNode:l,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i});for(let[y,N]of this.entityInterfaceFederationDataByTypeName){if(!((p=N.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let I=this.entityDataByTypeName.get(y);I&&(0,ef.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:I.keyFieldSets,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of u)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let s=t.parentDefinitionDataByTypeName,o=s.get(n);if(!o||o.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION)throw(0,Ce.incompatibleParentKindFatalError)(n,ke.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||ke.Kind.NULL);let u=(0,_e.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByParentTypeName"),l=[];if((0,ef.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:t.conditionalFieldDataByCoordinates,configurationData:u,fieldSets:r.keyFieldSets,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:s,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Se.MergeMethod.CONSISTENT:Se.MergeMethod.INTERSECTION:Se.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByPath){let r=t.split(".");if(r.length<1)continue;let i=(0,_e.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,ef.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let s=(0,_e.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,ef.newChildTagData)(r[1]));for(let l of n)s.tagNames.add(l);break;case 3:let o=(0,_e.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,ef.newChildTagData)(r[1])),u=(0,_e.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),s=i||n,o=`${n.parentTypeName}.${n.name}`;(0,Se.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Se.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(o),this.recordTagNamesByPath(s,o),!i){n.node={directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name)},t.set(n.name,n);return}i.appearances+=1,(0,Se.setLongestDescription)(i,n),(0,_e.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames)}upsertInputValueData(t,n,r){let i=t.get(n.name),s=i||n;if((0,Se.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s,r||s.renamedPath),!i){n.node={directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name),type:n.type},t.set(n.name,n);return}(0,Se.setLongestDescription)(i,n),(0,_e.addIterableValuesToSet)(n.requiredSubgraphNames,i.requiredSubgraphNames),(0,_e.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames);let{typeErrors:o,typeNode:u}=(0,tf.getMostRestrictiveMergedTypeNode)(i.type,n.type,i.originalPath,this.errors);if(u)i.type=u;else{if(!o||o.length<2)throw(0,Ce.fieldTypeMergeFatalError)(i.name);i.isArgument?this.errors.push((0,Ce.incompatibleArgumentTypesError)(i.name,i.renamedPath,o[0],o[1])):this.errors.push((0,Ce.incompatibleChildTypesError)(i.renamedPath,o[0],o[1]))}(0,Se.compareAndValidateInputValueDefaultValues)(i,n,this.errors)}handleArgumentInaccessibility(t,n,r,i){if(t){this.inaccessiblePaths.add(r);return}(0,Se.isNodeDataInaccessible)(n)&&((0,Se.isTypeRequired)(n.type)?this.errors.push((0,Ce.inaccessibleRequiredArgumentError)(n.name,r,i)):this.inaccessiblePaths.add(r))}handleSubscriptionFilterDirective(t,n,r){let i=t.directivesByDirectiveName.get(Fe.SUBSCRIPTION_FILTER);if(i){let s=(0,_e.getSingleSetEntry)(t.subgraphNames);if(s===void 0){this.errors.push((0,Ce.unknownFieldSubgraphNameError)(n));return}this.subscriptionFilterDataByFieldPath.set(n,{directive:i[0],fieldData:r||t,directiveSubgraphName:s})}}federateOutputType({current:t,other:n,hostPath:r,mostRestrictive:i}){n=(0,kc.getMutableTypeNode)(n,r,this.errors);let s={kind:t.kind},o=tf.DivergentType.NONE,u=s;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=`${n.renamedParentTypeName}.${n.name}`;(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,n.namedTypeName,()=>new Set).add(i),this.namedOutputTypeNames.add(n.namedTypeName);let s=t.get(n.name),o=s||n;this.handleSubscriptionFilterDirective(n,i,o),(0,Se.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Se.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(i),this.recordTagNamesByPath(o,i),!s){t.set(n.name,n),n.node={arguments:[],directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name),type:n.type};for(let[d,p]of n.argumentDataByArgumentName){p.node={directives:[],kind:p.node.kind,name:(0,Xs.stringToNameNode)(p.name),type:p.type};let y=(0,kc.getTypeNodeNamedTypeName)(p.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p.renamedPath),this.namedInputValueTypeNames.add(y),(0,Se.extractPersistedDirectives)(p.persistedDirectivesData,p.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.handleArgumentInaccessibility(r||u,p,p.renamedPath,i),this.recordTagNamesByPath(p,`${i}.${d}`)}return}let l=this.federateOutputType({current:s.type,other:n.type,hostPath:i,mostRestrictive:!1});if(l.success)if(s.type=l.typeNode,s.namedTypeName!==n.namedTypeName){let d=(0,_e.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoordinates,`${s.renamedParentTypeName}.${s.name}`,()=>new Map),p=(0,_e.getValueOrDefault)(d,s.namedTypeName,()=>new Set);if(p.size<1)for(let y of s.subgraphNames)n.subgraphNames.has(y)||p.add(y);(0,_e.addIterableValuesToSet)(n.subgraphNames,(0,_e.getValueOrDefault)(d,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let[d,p]of n.argumentDataByArgumentName){let y=(0,kc.getTypeNodeNamedTypeName)(p.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p.renamedPath),this.namedInputValueTypeNames.add(y),this.handleArgumentInaccessibility(r||u,p,p.renamedPath,i),this.upsertInputValueData(s.argumentDataByArgumentName,p,`${i}.${d}`)}(0,Se.setLongestDescription)(s,n),s.isInaccessible||(s.isInaccessible=n.isInaccessible),(0,_e.addMapEntries)(n.isExternalBySubgraphName,s.isExternalBySubgraphName),(0,_e.addMapEntries)(n.isShareableBySubgraphName,s.isShareableBySubgraphName),(0,_e.addIterableValuesToSet)(n.subgraphNames,s.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessiblePaths.has(r)||n.push(i);return n}recordTagNamesByPath(t,n){let r=n||t.name;if(t.persistedDirectivesData.tags.size>0){let i=(0,_e.getValueOrDefault)(this.tagNamesByPath,r,()=>new Set);for(let s of t.persistedDirectivesData.tags.keys())i.add(s)}}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),s=i||t;(0,Se.extractPersistedDirectives)(s.persistedDirectivesData,t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s);let o=(0,Se.isNodeDataInaccessible)(s);if(o&&this.inaccessiblePaths.add(t.name),r&&r.interfaceObjectSubgraphs.has(n)&&(t.kind=ke.Kind.INTERFACE_TYPE_DEFINITION),!i)switch(t.node={kind:t.kind,name:(0,Xs.stringToNameNode)(t.name)},this.parentDefinitionDataByTypeName.set(t.name,t),t.kind){case ke.Kind.ENUM_TYPE_DEFINITION:for(let[u,l]of t.enumValueDataByValueName){let d=`${t.name}.${u}`;l.node={directives:[],kind:l.node.kind,name:(0,Xs.stringToNameNode)(l.name)},(0,Se.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,d),(0,Se.isNodeDataInaccessible)(l)&&this.inaccessiblePaths.add(d)}return;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let[u,l]of t.inputValueDataByValueName){l.node={directives:[],kind:l.node.kind,name:(0,Xs.stringToNameNode)(l.name),type:l.type};let d=(0,kc.getTypeNodeNamedTypeName)(l.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,d,()=>new Set).add(l.renamedPath),this.namedInputValueTypeNames.add(d),(0,Se.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,`${t.name}.${u}`),(o||(0,Se.isNodeDataInaccessible)(l))&&this.inaccessiblePaths.add(l.renamedPath)}return;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:(0,Se.isParentDataRootType)(t)&&(t.extensionType=wq.ExtensionType.NONE);for(let u of t.fieldDataByFieldName.values()){u.node={arguments:[],directives:[],kind:u.node.kind,name:(0,Xs.stringToNameNode)(u.name),type:u.type};let l=`${u.renamedParentTypeName}.${u.name}`;this.handleSubscriptionFilterDirective(u,l),(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,u.namedTypeName,()=>new Set).add(l),this.namedOutputTypeNames.add(u.namedTypeName),(0,Se.extractPersistedDirectives)(u.persistedDirectivesData,u.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(u,l);let d=(0,Se.isNodeDataInaccessible)(u);(o||d)&&this.inaccessiblePaths.add(l);for(let[p,y]of u.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,Xs.stringToNameNode)(y.name),type:y.type};let N=(0,kc.getTypeNodeNamedTypeName)(y.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Se.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(y,`${l}.${p}`),this.handleArgumentInaccessibility(o||d,y,y.renamedPath,l)}}return;default:return}if(i.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||i.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Ce.incompatibleParentKindMergeError)(i.name,(0,_e.kindToTypeString)(i.kind),(0,_e.kindToTypeString)(t.kind)));return}switch((0,Se.setLongestDescription)(i,t),(0,Se.setParentDataExtensionType)(i,t),i.kind){case ke.Kind.ENUM_TYPE_DEFINITION:i.appearances+=1,(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(i.enumValueDataByValueName,l,o);return;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i),(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let[l,d]of t.inputValueDataByValueName){let p=`${t.name}.${l}`,y=(0,kc.getTypeNodeNamedTypeName)(d.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p),this.namedInputValueTypeNames.add(y),this.upsertInputValueData(i.inputValueDataByValueName,d),this.recordTagNamesByPath(d,p),(o||(0,Se.isNodeDataInaccessible)(d))&&this.inaccessiblePaths.add(p)}return;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i);let u=t;(0,_e.addIterableValuesToSet)(u.implementedInterfaceTypeNames,i.implementedInterfaceTypeNames),(0,_e.addIterableValuesToSet)(u.subgraphNames,i.subgraphNames);for(let l of u.fieldDataByFieldName.values())this.upsertFieldData(i.fieldDataByFieldName,l,o||i.isInaccessible);return;case ke.Kind.UNION_TYPE_DEFINITION:(0,_e.addMapEntries)(t.memberByMemberTypeName,i.memberByMemberTypeName);return;default:return}}propagateInaccessibilityToExistingChildren(t){switch(t.isInaccessible=!0,t.kind){case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByValueName.keys())this.inaccessiblePaths.add(`${t.name}.${n}`);break;default:for(let[n,r]of t.fieldDataByFieldName){let i=`${r.renamedParentTypeName}.${n}`;this.inaccessiblePaths.add(i);for(let s of r.argumentDataByArgumentName.values())this.inaccessiblePaths.add(s.renamedPath)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let s=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,kc.getTypeNodeNamedTypeName)(o.type)),this.upsertInputValueData(s,o);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:s,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,Se.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let s of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,kc.getTypeNodeNamedTypeName)(s.type)),this.upsertInputValueData(i.argumentDataByArgumentName,s);(0,Se.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case ke.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[y,N]of o)if(p!==y&&!N.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,u)){this.errors.push((0,Ce.incompatibleFederatedFieldNamedTypeError)(t,n));continue}s.namedTypeName=d,this.updateTypeNodeNamedType(s.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,Sde.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:s,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.satisfiedFieldSets.add(p),s.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,_e.subtractSourceSetFromTargetSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Fe.PARENT_DEFINITION_DATA);if(r.kind===ke.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let s=(0,_e.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=s.configurationDataByTypeName,u=this.concreteTypeNamesByAbstractTypeName.get(t);if(!u)continue;let l=(0,_e.getOrThrowError)(o,t,"configurationDataMap"),d=l.keys;if(!d)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames;let p=l.fieldNames,y=this.authorizationDataByParentTypeName.get(n.typeName);this.internalGraph.setSubgraphName(i);let N=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let I of u){if(o.has(I))continue;if(y){let re=(0,_e.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,_e.newAuthorizationData)(I));for(let se of y.fieldAuthorizationDataByFieldName.values())(0,_e.upsertFieldAuthorizationData)(re.fieldAuthorizationDataByFieldName,se)||this.invalidOrScopesHostPaths.add(`${I}.${se.fieldName}`)}let O=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,I,Fe.PARENT_DEFINITION_DATA);if(O.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;let x=(0,_e.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");x.subgraphNames.add(i);let V={fieldNames:p,isRootNode:!0,keys:d,typeName:I},K=new Set;for(let re of d.filter(se=>!se.disableEntityResolver))K.add(re.selectionSet);for(let re of n.interfaceObjectFieldNames){if(O.fieldDataByFieldName.get(re))continue;let fe=(0,_e.getOrThrowError)(r.fieldDataByFieldName,re,`${t}.fieldDataByFieldName`);O.fieldDataByFieldName.set(re,k({},fe))}o.set(I,V),this.handleInterfaceObjectForInternalGraph({internalSubgraph:s,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:K,entityData:x})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,_e.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==wq.ExtensionType.NONE&&this.errors.push((0,Ce.noBaseDefinitionForExtensionError)((0,_e.kindToTypeString)(r.kind),n)),r.kind){case ke.Kind.ENUM_TYPE_DEFINITION:let i=[],s=[],o=this.getEnumValueMergeMethod(n);for(let K of r.enumValueDataByValueName.values()){let re=(0,Se.getNodeForRouterSchemaByData)(K,this.persistedDirectiveDefinitionByDirectiveName,this.errors),se=(0,Se.isNodeDataInaccessible)(K),fe=G(k({},K.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(K)});switch(o){case Se.MergeMethod.CONSISTENT:!se&&r.appearances>K.appearances&&this.errors.push((0,Ce.incompatibleSharedEnumError)(n)),i.push(re),se||s.push(fe);break;case Se.MergeMethod.INTERSECTION:r.appearances===K.appearances&&(i.push(re),se||s.push(fe));break;default:i.push(re),se||s.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){this.errors.push((0,Ce.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,Fe.ENUM_VALUE));break}this.clientDefinitions.push(G(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),values:s}));break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:let u=[],l=[],d=[];for(let[K,re]of r.inputValueDataByValueName)if(r.subgraphNames.size===re.subgraphNames.size){if(l.push((0,Se.getNodeWithPersistedDirectivesByInputValueData)(re,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(re))continue;d.push(G(k({},re.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(re)}))}else(0,Se.isTypeRequired)(re.type)&&u.push({inputValueName:K,missingSubgraphs:(0,_e.getEntriesNotInHashSet)(r.subgraphNames,re.subgraphNames),requiredSubgraphs:[...re.requiredSubgraphNames]});if(u.length>0){this.errors.push((0,Ce.invalidRequiredInputValueError)(Fe.INPUT_OBJECT,n,u,!1));break}if(r.node.fields=l,this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(d.length<1){this.errors.push((0,Ce.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,"input field"));break}this.clientDefinitions.push(G(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),fields:d}));break;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:let p=[],y=[],N=new Map,I=(0,Se.newInvalidFieldNames)(),O=r.kind===ke.Kind.OBJECT_TYPE_DEFINITION;for(let[K,re]of r.fieldDataByFieldName){(0,Se.pushAuthorizationDirectives)(re,this.authorizationDataByParentTypeName.get(n));let se=(0,Se.getValidFieldArgumentNodes)(re,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);O&&(0,Se.validateExternalAndShareable)(re,I),p.push((0,Se.getNodeWithPersistedDirectivesByFieldData)(re,this.persistedDirectiveDefinitionByDirectiveName,se,this.errors)),!(0,Se.isNodeDataInaccessible)(re)&&(y.push((0,Se.getClientSchemaFieldNodeByFieldData)(re)),N.set(K,this.fieldDataToGraphFieldData(re)))}if(O&&(I.byShareable.size>0&&this.errors.push((0,Ce.invalidFieldShareabilityError)(r,I.byShareable)),I.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Ce.allExternalFieldInstancesError)(n,I.subgraphNamesByExternalFieldName))),r.node.fields=p,this.internalGraph.initializeNode(n,N),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let x=(0,Ode.isNodeQuery)(n);if((0,Se.isNodeDataInaccessible)(r)){if(x){this.errors.push(Ce.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let K=x?Ce.noQueryRootTypeError:(0,Ce.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,Fe.FIELD);this.errors.push(K);break}this.clientDefinitions.push(G(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),fields:y}));break;case ke.Kind.SCALAR_TYPE_DEFINITION:if(fr.BASE_SCALARS.has(n))break;if(this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(G(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r)}));break;case ke.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,_e.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let V=this.getClientSchemaUnionMembers(r);if(V.length<1){this.errors.push((0,Ce.allChildDefinitionsAreInaccessibleError)(Fe.UNION,n,"union member type"));break}this.clientDefinitions.push(G(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),types:V}));break}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let s of n.implementedInterfaceTypeNames)this.inaccessiblePaths.has(s)||i.push((0,Xs.stringToNamedTypeNode)(s));this.clientDefinitions.push(G(k({},n.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[fr.AUTHENTICATED_DEFINITION,fr.DEPRECATED_DEFINITION,fr.INACCESSIBLE_DEFINITION,fr.REQUIRES_SCOPES_DEFINITION,fr.TAG_DEFINITION,fr.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[fr.AUTHENTICATED_DEFINITION,fr.DEPRECATED_DEFINITION,fr.REQUIRES_SCOPES_DEFINITION,fr.SCOPE_SCALAR_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Fe.LEFT_PARENTHESIS)[0].split(Fe.PERIOD),i=r[0];for(let s=0;s0&&this.errors.push((0,Ce.invalidReferencesOfInaccessibleTypeError)((0,_e.kindToTypeString)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Fe.QUERY);if(!t||t.kind!==ke.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size<1){this.errors.push(Ce.noQueryRootTypeError);return}for(let n of t.fieldDataByFieldName.values())if(!(0,Se.isNodeDataInaccessible)(n))return;this.errors.push(Ce.noQueryRootTypeError)}validateSubscriptionFieldConditionFieldPath(t,n,r,i,s){let o=t.split(Fe.PERIOD);if(o.length<1)return s.push((0,Ce.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessiblePaths.has(u.renamedTypeName))return s.push((0,Ce.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)return s.push((0,Ce.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=u.fieldDataByFieldName.get(p);if(!y)return s.push((0,Ce.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let N=`${u.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return s.push((0,Ce.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N,i)),[];if(this.inaccessiblePaths.has(N))return s.push((0,Ce.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N)),[];if(fr.BASE_SCALARS.has(y.namedTypeName)){u={kind:ke.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}u=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Fe.PARENT_DEFINITION_DATA)}return(0,Se.isLeafKind)(u.kind)?o:(s.push((0,Ce.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,_e.kindToTypeString)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,s,o,u){if(i>dI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Ce.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([Fe.FIELD_PATH,Fe.VALUES]),p=new Set,y=new Set,N=[];for(let I of t.fields){let O=I.name.value,x=s+`.${O}`;switch(O){case Fe.FIELD_PATH:{if(d.has(Fe.FIELD_PATH))d.delete(Fe.FIELD_PATH);else{l=!0,p.add(Fe.FIELD_PATH);break}if(I.value.kind!==ke.Kind.STRING){N.push((0,Ce.invalidInputFieldTypeErrorMessage)(x,Fe.STRING,(0,_e.kindToTypeString)(I.value.kind))),l=!0;break}let V=this.validateSubscriptionFieldConditionFieldPath(I.value.value,r,x,o,N);if(V.length<1){l=!0;break}n.fieldPath=V;break}case Fe.VALUES:{if(d.has(Fe.VALUES))d.delete(Fe.VALUES);else{l=!0,p.add(Fe.VALUES);break}let V=I.value.kind;if(V==ke.Kind.NULL||V==ke.Kind.OBJECT){N.push((0,Ce.invalidInputFieldTypeErrorMessage)(x,Fe.LIST,(0,_e.kindToTypeString)(I.value.kind))),l=!0;break}if(V!==ke.Kind.LIST){n.values=[(0,Se.getSubscriptionFilterValue)(I.value)];break}let K=new Set,re=[];for(let se=0;se0){N.push((0,Ce.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(x,re));continue}if(K.size<1){l=!0,N.push((0,Ce.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(x));continue}n.values=[...K];break}default:l=!0,y.add(O)}}return l?(u.push((0,Ce.subscriptionFieldConditionInvalidInputFieldErrorMessage)(s,[...d],[...p],[...y],N)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,s,o,u){if(i>dI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,Ce.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,Ce.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(s,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Fe.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,Ce.subscriptionFilterConditionInvalidInputFieldErrorMessage)(s,d)),!1;let p=s+`.${d}`;switch(l.value.kind){case ke.Kind.OBJECT:switch(d){case Fe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,s+".IN",o,u);case Fe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,s+".NOT",o,u);default:return u.push((0,Ce.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Fe.LIST,Fe.OBJECT)),!1}case ke.Kind.LIST:{let y=[];switch(d){case Fe.AND_UPPER:{n.and=y;break}case Fe.OR_UPPER:{n.or=y;break}default:return u.push((0,Ce.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Fe.OBJECT,Fe.LIST)),!1}let N=l.value.values.length;if(N<1||N>5)return u.push((0,Ce.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,N)),!1;let I=!0,O=[];for(let x=0;x0?(u.push((0,Ce.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,O)),!1):I}default:{let y=Fe.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?Fe.LIST:Fe.OBJECT;return u.push((0,Ce.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,_e.kindToTypeString)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,s,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==ke.Kind.OBJECT){this.errors.push((0,Ce.invalidSubscriptionFilterDirectiveError)(r,[(0,Ce.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Fe.CONDITION,Fe.OBJECT,(0,_e.kindToTypeString)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,Fe.CONDITION,o,d)){this.errors.push((0,Ce.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,_e.getValueOrDefault)(this.fieldConfigurationByFieldPath,r,()=>({argumentNames:[],fieldName:i,typeName:s})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessiblePaths.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Ce.invalidSubscriptionFilterDirectiveError)(t,[(0,Ce.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Se.isNodeDataInaccessible)(r)||r.kind===ke.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,Ce.orScopesLimitError)(_e.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let s of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Se.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,s,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];if(this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let s=this.internalGraph.validate();if(s.length>0)return{errors:s,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let n={kind:ke.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,ke.buildASTSchema)({kind:ke.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let s of this.internalSubgraphBySubgraphName.values())i.set(s.name,{configurationDataByTypeName:s.configurationDataByTypeName,schema:s.schema});for(let s of this.authorizationDataByParentTypeName.values())(0,_e.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,s);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,ke.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}getClientSchemaObjectBoolean(){return this.inaccessiblePaths.size<1&&this.tagNamesByPath.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let s=n.size;for(let[o,u]of r){let l=(0,_e.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Se.isNodeDataInaccessible)(l)){s-=1;continue}(0,_e.doSetsIntersect)(i,u.tagNames)&&((0,_e.getValueOrDefault)(l.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}handleChildTagInclusions(t,n,r,i){let s=n.size;for(let[o,u]of n){if((0,Se.isNodeDataInaccessible)(u)){s-=1;continue}let l=r.get(o);(!l||!(0,_e.doSetsIntersect)(i,l.tagNames))&&((0,_e.getValueOrDefault)(u.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(fr.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Fe.PARENT_DEFINITION_DATA);if(!(0,Se.isNodeDataInaccessible)(l)){if((0,_e.doSetsIntersect)(t.tagNamesToExclude,u.tagNames)){l.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case ke.Kind.SCALAR_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:continue;case ke.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,u.childTagDataByChildName,t.tagNamesToExclude);break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByValueName,u.childTagDataByChildName,t.tagNamesToExclude);break;default:let d=l.fieldDataByFieldName.size;for(let[p,y]of u.childTagDataByChildName){let N=(0,_e.getOrThrowError)(l.fieldDataByFieldName,p,`${o}.fieldDataByFieldName`);if((0,Se.isNodeDataInaccessible)(N)){d-=1;continue}if((0,_e.doSetsIntersect)(t.tagNamesToExclude,y.tagNames)){(0,_e.getValueOrDefault)(N.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1;continue}for(let[I,O]of y.tagNamesByArgumentName){let x=(0,_e.getOrThrowError)(N.argumentDataByArgumentName,I,`${p}.argumentDataByArgumentName`);(0,Se.isNodeDataInaccessible)(x)||(0,_e.doSetsIntersect)(O,O)&&((0,_e.getValueOrDefault)(x.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(x.renamedPath))}}d<1&&(l.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Se.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(0,_e.doSetsIntersect)(t.tagNamesToInclude,l.tagNames)){if(l.childTagDataByChildName.size<1){u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}switch(u.kind){case ke.Kind.SCALAR_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:continue;case ke.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=u.fieldDataByFieldName.size;for(let[p,y]of u.fieldDataByFieldName){if((0,Se.isNodeDataInaccessible)(y)){d-=1;continue}let N=l.childTagDataByChildName.get(p);(!N||!(0,_e.doSetsIntersect)(t.tagNamesToInclude,N.tagNames))&&((0,_e.getValueOrDefault)(y.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1)}d<1&&(u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Se.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let r={kind:ke.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,ke.buildASTSchema)({kind:ke.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),s=new Map;for(let o of this.internalSubgraphBySubgraphName.values())s.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,_e.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,o);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:s,federatedGraphAST:r,federatedGraphSchema:(0,ke.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};nd.FederationFactory=pI;function WR(e){if(e.length<1)return{errors:[Ce.minimumSubgraphRequirementError],warnings:[]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:i,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}=(0,bde.batchNormalize)(e);if(i)return{errors:i,warnings:u};let l=new Map,d=new Map,p=new Set;for(let[y,N]of s)for(let[I,O]of N.entityInterfaces){(0,_e.getValueOrDefault)(d,I,()=>[]).push({subgraphName:y,concreteTypeNames:O.concreteTypeNames||new Set});let x=l.get(I);if(!x){p.add(I),l.set(I,(0,_e.newEntityInterfaceFederationData)(O,y));continue}(0,_e.upsertEntityInterfaceFederationData)(x,O,y)&&p.delete(I)}for(let y of p)d.delete(y);return d.size>0?{errors:[(0,Ce.undefinedEntityInterfaceImplementationsError)(d,l)],warnings:u}:{federationFactory:new pI({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:l,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}),warnings:u}}function Dde(e){let{errors:t,federationFactory:n,warnings:r}=WR(e);return t||!n?{errors:t||[Ce.federationFactoryInitializationFatalError],warnings:r}:n.federateSubgraphsInternal()}function Ade(e,t){let{errors:n,federationFactory:r,warnings:i}=WR(e);if(n||!r)return{errors:n||[Ce.federationFactoryInitializationFatalError],warnings:i};r.federateSubgraphData();let s=[(0,Lq.cloneDeep)(r)],{errors:o,federationResult:u,warnings:l}=r.buildFederationResult();if(o)return{errors:o,warnings:l};let d=t.size-1,p=new Map,y=0;for(let[N,I]of t){y!==d&&s.push((0,Lq.cloneDeep)(s[y]));let O=s[y].buildFederationContractResult(I);p.set(N,O),y++}return{federationResult:u,federationResultContainerByContractName:p,warnings:l}}function Rde(e,t){let{errors:n,federationFactory:r,warnings:i}=WR(e);return n||!r?{errors:n||[Ce.federationFactoryInitializationFatalError],warnings:i}:(r.federateSubgraphData(),r.buildFederationContractResult(t))}});var fI=j(Sn=>{"use strict";m();T();h();var Fde=Sn&&Sn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),ir=Sn&&Sn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Fde(t,e,n)};Object.defineProperty(Sn,"__esModule",{value:!0});ir($i(),Sn);ir(nD(),Sn);ir(To(),Sn);ir(ZM(),Sn);ir(Pq(),Sn);ir(wR(),Sn);ir(HR(),Sn);ir(YR(),Sn);ir(Ql(),Sn);ir(kR(),Sn);ir(iA(),Sn);ir(KR(),Sn);ir(BR(),Sn);ir(jR(),Sn);ir(Qa(),Sn);ir(Gh(),Sn);ir(cI(),Sn);ir(Jp(),Sn);ir(PR(),Sn);ir(ps(),Sn);ir(Oc(),Sn);ir(bi(),Sn);ir(cT(),Sn)});var _pe={};Sf(_pe,{buildRouterConfiguration:()=>vpe,federateSubgraphs:()=>Ipe});m();T();h();var wF=e_(fI());m();T();h();m();T();h();function XR(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}m();T();h();m();T();h();var kq={};m();T();h();function Cq(e){return e!=null}m();T();h();m();T();h();Le();m();T();h();var xq;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}xq=function(t,n){return new e(t,n)}}else xq=AggregateError;function Uq(e){return"errors"in e&&Array.isArray(e.errors)}var Vq=3;function jq(e){return mI(e,[])}function mI(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return wde(e,t);default:return String(e)}}function Mq(e){return e instanceof Y?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function wde(e,t){if(e===null)return"null";if(e instanceof Error)return Uq(e)?Mq(e)+` -`+Bq(e.errors,t):Mq(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Lde(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:mI(r,n)}else if(Array.isArray(e))return Bq(e,n);return Pde(e,n)}function Lde(e){return typeof e.toJSON=="function"}function Pde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>Vq?"["+kde(e)+"]":"{ "+n.map(([i,s])=>i+": "+mI(s,t)).join(", ")+" }"}function Bq(e,t){if(e.length===0)return"[]";if(t.length>Vq)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();h();Le();m();T();h();Le();function ma(e){if(Qe(e)){let t=ma(e.ofType);if(t.kind===R.NON_NULL_TYPE)throw new Error(`Invalid type node ${jq(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:R.NON_NULL_TYPE,type:t}}else if(Pt(e))return{kind:R.LIST_TYPE,type:ma(e.ofType)};return{kind:R.NAMED_TYPE,name:{kind:R.NAME,value:e.name}}}m();T();h();Le();function TI(e){if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=TI(n);r!=null&&t.push(r)}return{kind:R.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=TI(r);i&&t.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:n},value:i})}return{kind:R.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:R.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Cde.test(t)?{kind:R.INT,value:t}:{kind:R.FLOAT,value:t}}if(typeof e=="string")return{kind:R.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Cde=/^-?(?:0|[1-9][0-9]*)$/;m();T();h();m();T();h();function yI(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}var kYe=yI(function(t){let n=xde(t);return new Set([...n].map(r=>r.name))}),xde=yI(function(t){let n=ZR(t);return new Set(n.values())}),ZR=yI(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n});function Ude(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Mde(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)dc(u)||s.push(Bde(u,e,n));for(let u in r){let l=r[u],d=uo(l),p=ui(l);if(!(d||p))if(at(l))s.push(Vde(l,e,n));else if(Nt(l))s.push(jde(l,e,n));else if(pn(l))s.push($de(l,e,n));else if(It(l))s.push(qde(l,e,n));else if(sn(l))s.push(Kde(l,e,n));else if(er(l))s.push(Gde(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:R.DOCUMENT,definitions:s}}function $q(e,t={}){let n=Ude(e,t);return Ft(n)}function Mde(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(e.astNode!=null&&s.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)s.push(p);for(let p of s)if(p.operationTypes)for(let y of p.operationTypes)i.set(y.operation,y);let o=ZR(e);for(let[p,y]of i){let N=o.get(p);if(N!=null){let I=ma(N);y!=null?y.type=I:i.set(p,{kind:R.OPERATION_TYPE_DEFINITION,operation:p,type:I})}}let u=[...i.values()].filter(Cq),l=nf(e,e,t);if(!u.length&&!l.length)return null;let d={kind:u!=null?R.SCHEMA_DEFINITION:R.SCHEMA_EXTENSION,operationTypes:u,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:R.STRING,value:e.description,block:!0}:void 0,d}function Bde(e,t,n){var r,i,s,o;return{kind:R.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description}:void 0,name:{kind:R.NAME,value:e.name},arguments:(s=e.args)===null||s===void 0?void 0:s.map(u=>qq(u,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(u=>({kind:R.NAME,value:u})))||[]}}function nf(e,t,n){let r=hI(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=eF(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}function EI(e,t,n){var r,i;let s=[],o=null,u=hI(e,n),l;return u!=null?l=eF(t,u):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(s=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=Jde(e.deprecationReason)),o==null?s:[o].concat(s)}function qq(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:ma(e.type),defaultValue:e.defaultValue!==void 0&&(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0,directives:EI(e,t,n)}}function Vde(e,t,n){var r,i;return{kind:R.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>Kq(s,t,n)),interfaces:Object.values(e.getInterfaces()).map(s=>ma(s)),directives:nf(e,t,n)}}function jde(e,t,n){var r,i;let s={kind:R.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>Kq(o,t,n)),directives:nf(e,t,n)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map(o=>ma(o))),s}function $de(e,t,n){var r,i;return{kind:R.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:nf(e,t,n),types:e.getTypes().map(s=>ma(s))}}function qde(e,t,n){var r,i;return{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>Qde(s,t,n)),directives:nf(e,t,n)}}function Kde(e,t,n){var r,i;return{kind:R.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},values:Object.values(e.getValues()).map(s=>Yde(s,t,n)),directives:nf(e,t,n)}}function Gde(e,t,n){var r,i,s;let o=hI(e,n),u=o?eF(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!u.some(d=>d.name.value==="specifiedBy")){let d={url:l};u.push(NI("specifiedBy",d))}return{kind:R.SCALAR_TYPE_DEFINITION,description:(s=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&s!==void 0?s:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:u}}function Kq(e,t,n){var r,i;return{kind:R.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},arguments:e.args.map(s=>qq(s,t,n)),type:ma(e.type),directives:EI(e,t,n)}}function Qde(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:ma(e.type),directives:EI(e,t,n),defaultValue:(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0}}function Yde(e,t,n){var r,i;return{kind:R.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:EI(e,t,n)}}function Jde(e){return NI("deprecated",{reason:e},Mo)}function NI(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=Hr(o,i.type);u&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=TI(s);o&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:i},value:o})}return{kind:R.DIRECTIVE,name:{kind:R.NAME,value:e},arguments:r}}function eF(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(NI(r,o,s));else n.push(NI(r,i,s))}return n}var LK=e_(fI(),1);Le();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();function Fn(e,t){if(!e)throw new Error(t)}var zde=34028234663852886e22,Hde=-34028234663852886e22,Wde=4294967295,Xde=2147483647,Zde=-2147483648;function rf(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Xde||eWde||e<0)throw new Error("invalid uint 32: "+e)}function gI(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>zde||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function nF(e,t,n){let r=Object.create(null),i=Object.create(null),s=[];for(let o of t){let u=Jq(o);s.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:s,findName(o){return r[o]},findNumber(o){return i[o]}}}function Yq(e,t,n){let r={};for(let i of t){let s=Jq(i);r[s.localName]=s.no,r[s.no]=s.localName}return tF(r,e,t,n),r}function Jq(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();h();m();T();h();var mt=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),s=i.writerFactory();return r.writeMessage(this,s,i),s.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function zq(e,t,n,r){var i;let s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[s]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[s];return Object.setPrototypeOf(o.prototype,new mt),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();h();m();T();h();m();T();h();m();T();h();function Wq(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>s,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){let o=t>>>s,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var II=4294967296;function rF(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function s(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=II&&(i=i+(r/II|0),r=r%II)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?Zq(r,i):sF(r,i)}function Xq(e,t){let n=sF(e,t),r=n.hi&2147483648;r&&(n=Zq(n.lo,n.hi));let i=iF(n.lo,n.hi);return r?"-"+i:i}function iF(e,t){if({lo:e,hi:t}=epe(e,t),t<=2097151)return String(II*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,s=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return s>=l&&(o+=Math.floor(s/l),s%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+Hq(o)+Hq(s)}function epe(e,t){return{lo:e>>>0,hi:t>>>0}}function sF(e,t){return{lo:e|0,hi:t|0}}function Zq(e,t){return t=~t,e?e=~e+1:t+=1,sF(e,t)}var Hq=e=>{let t=String(e);return"0000000".slice(t.length)+t};function oF(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function eK(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function tpe(){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 b!="object"||typeof b.env!="object"||b.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),s=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>s||du||dFn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>Fn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),rF(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),rF(i)},dec(i,s){return Xq(i,s)},uDec(i,s){return iF(i,s)}}}var Ir=tpe();m();T();h();var Ee;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ee||(Ee={}));var Oo;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Oo||(Oo={}));function eu(e,t,n){if(t===n)return!0;if(e==Ee.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(NT(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return rf(t),oF(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){gI(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){NT(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){rf(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return rf(t),t=(t<<1^t>>31)>>>0,oF(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Ir.enc(t);return vI(n.lo,n.hi,this.buf),this}sint64(t){let n=Ir.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return vI(i,s,this.buf),this}uint64(t){let n=Ir.uEnc(t);return vI(n.lo,n.hi,this.buf),this}},OI=class{constructor(t,n){this.varint64=Wq,this.uint32=eK,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case mr.Varint:for(;this.buf[this.pos++]&128;);break;case mr.Bit64:this.pos+=4;case mr.Bit32:this.pos+=4;break;case mr.LengthDelimited:let r=this.uint32();this.pos+=r;break;case mr.StartGroup:let i;for(;(i=this.tag()[1])!==mr.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Ir.dec(...this.varint64())}uint64(){return Ir.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ir.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ir.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ir.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function tK(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function SI(e){let t=e.field.localName,n=Object.create(null);return n[t]=npe(e),[n,()=>n[t]]}function npe(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 So(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function nK(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();h();m();T();h();var tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),DI=[];for(let e=0;e>4,o=s,i=2;break;case 2:n[r++]=(o&15)<<4|(s&60)>>2,o=s,i=3;break;case 3:n[r++]=(o&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=tu[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=tu[i|r>>6],t+=tu[r&63],n=0;break}return n&&(t+=tu[i],t+="=",n==1&&(t+="=")),t}};m();T();h();function rK(e,t,n){sK(t,e);let r=t.runtime.bin.makeReadOptions(n),i=nK(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,o]=SI(t);for(let u of i)t.runtime.bin.readField(s,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function iK(e,t,n,r){sK(t,e);let i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(uF(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=s.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,s);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function sK(e,t){Fn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();h();function AI(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!_I(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function cF(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?So(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();h();m();T();h();function Do(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(mt.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function RI(e,t){return Do(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var m3e={"google.protobuf.DoubleValue":Ee.DOUBLE,"google.protobuf.FloatValue":Ee.FLOAT,"google.protobuf.Int64Value":Ee.INT64,"google.protobuf.UInt64Value":Ee.UINT64,"google.protobuf.Int32Value":Ee.INT32,"google.protobuf.UInt32Value":Ee.UINT32,"google.protobuf.BoolValue":Ee.BOOL,"google.protobuf.StringValue":Ee.STRING,"google.protobuf.BytesValue":Ee.BYTES};var oK={ignoreUnknownFields:!1},aK={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function rpe(e){return e?Object.assign(Object.assign({},oK),e):oK}function ipe(e){return e?Object.assign(Object.assign({},aK),e):aK}var LI=Symbol(),FI=Symbol();function lK(){return{makeReadOptions:rpe,makeWriteOptions:ipe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ha(t)}`);r=r!=null?r:new e;let i=new Map,s=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}uK(r,u,l,n,e)}else{let d=!1;if(s!=null&&s.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=s.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[y,N]=SI(p);uK(y,u,p.field,n,p),iK(r,p,N(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!AI(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!ope(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=cK(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=s.findExtensionFor(n.typeName,o.no);if(u&&uF(e,u)){let l=rK(e,u,t),d=cK(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(s){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=s instanceof Error?s.message:String(s);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return ET(e,t,n!=null?n:Oo.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||_I(e,t)))return wI(e,t)},debug:ha}}function ha(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 uK(e,t,n,r,i){let s=n.localName;if(n.repeated){if(Fn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`);let o=e[s];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=lF(n.T,u,r.ignoreUnknownFields,!0);l!==FI&&o.push(l);break;case"scalar":try{o.push(ET(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`);let o=e[s];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=spe(n.K,u)}catch(p){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw p instanceof Error&&p.message.length>0&&(y+=`: ${p.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=lF(n.V.T,l,r.ignoreUnknownFields,!0);p!==FI&&(o[d]=p);break;case"scalar":try{o[d]=ET(n.V.T,l,Oo.BIGINT,!0)}catch(y){let N=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw y instanceof Error&&y.message.length>0&&(N+=`: ${y.message}`),new Error(N)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[s];Do(u)?u.fromJson(t,r):(e[s]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[s]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=lF(n.T,t,r.ignoreUnknownFields,!1);switch(l){case LI:cF(n,e);break;case FI:break;default:e[s]=l;break}break;case"scalar":try{let d=ET(n.T,t,n.L,!1);switch(d){case LI:cF(n,e);break;default:e[s]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function spe(e,t){if(e===Ee.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return ET(e,t,Oo.BIGINT,!0).toString()}function ET(e,t,n,r){if(t===null)return r?So(e,n):LI;switch(e){case Ee.DOUBLE:case Ee.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ee.FLOAT&&gI(i),i;case Ee.INT32:case Ee.FIXED32:case Ee.SFIXED32:case Ee.SINT32:case Ee.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==Ee.UINT32||e==Ee.FIXED32?NT(s):rf(s),s;case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Ir.parse(t);return n?o.toString():o;case Ee.FIXED64:case Ee.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Ir.uParse(t);return n?u.toString():u;case Ee.BOOL:if(typeof t!="boolean")break;return t;case Ee.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ee.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return aF.dec(t)}throw new Error}function lF(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:LI;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return FI;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ha(t)}`)}function ope(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function cK(e,t,n){if(e.kind=="map"){Fn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=wI(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let s=e.V.T;for(let[o,u]of i)r[o.toString()]=dF(s,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){Fn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return wI(e.T,t);case"enum":return dF(e.T,t,n.enumAsInteger);case"message":return RI(e.T,t).toJson(n)}}function dF(e,t,n){var r;if(Fn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function wI(e,t){switch(e){case Ee.INT32:case Ee.SFIXED32:case Ee.SINT32:case Ee.FIXED32:case Ee.UINT32:return Fn(typeof t=="number"),t;case Ee.FLOAT:case Ee.DOUBLE:return Fn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ee.STRING:return Fn(typeof t=="string"),t;case Ee.BOOL:return Fn(typeof t=="boolean"),t;case Ee.UINT64:case Ee.FIXED64:case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:return Fn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ee.BYTES:return Fn(t instanceof Uint8Array),aF.enc(t)}}m();T();h();var sf=Symbol("@bufbuild/protobuf/unknown-fields"),dK={readUnknownFields:!0,readerFactory:e=>new OI(e)},pK={writeUnknownFields:!0,writerFactory:()=>new bI};function ape(e){return e?Object.assign(Object.assign({},dK),e):dK}function upe(e){return e?Object.assign(Object.assign({},pK),e):pK}function TK(){return{makeReadOptions:ape,makeWriteOptions:upe,listUnknownFields(e){var t;return(t=e[sf])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[sf]},writeUnknownFields(e,t){let r=e[sf];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[sf])||(i[sf]=[]),i[sf].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let s=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=lpe),s){let N=e[o];if(r==mr.LengthDelimited&&u!=Ee.STRING&&u!=Ee.BYTES){let O=t.uint32()+t.pos;for(;t.posDo(N,y)?N:new y(N));else{let N=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?s[i]=IT(N):s[i]=N:s[i]=Do(N,y)?N:new y(N)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,s[u]));case"scalar":return i.every((o,u)=>eu(r.T,o,s[u]));case"enum":return i.every((o,u)=>eu(Ee.INT32,o,s[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return eu(Ee.INT32,i,s);case"scalar":return eu(r.T,i,s);case"oneof":if(i.case!==s.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,s.value);case"enum":return eu(Ee.INT32,i.value,s.value);case"scalar":return eu(o.T,i.value,s.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],s[p]));case"enum":return u.every(p=>eu(Ee.INT32,i[p],s[p]));case"scalar":let d=r.V.T;return u.every(p=>eu(d,i[p],s[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let s=e[i.localName],o;if(i.repeated)o=s.map(CI);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(s))o[u]=CI(l)}else i.kind=="oneof"?o=i.findField(s.case)?{case:s.case,value:CI(s.value)}:{case:void 0}:o=CI(s);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function CI(e){if(e===void 0)return e;if(Do(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function IT(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function EK(e,t,n){return{syntax:e,json:lK(),bin:TK(),util:Object.assign(Object.assign({},NK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return zq(this,r,i,s)},makeEnum:Yq,makeEnumType:nF,getEnumType:Qq,makeExtension(r,i,s){return tK(this,r,i,s)}}}m();T();h();var xI=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();h();m();T();h();m();T();h();function pF(e,t){let n=vK(e);return t?n:Tpe(hpe(n))}function gK(e){return pF(e,!1)}var IK=vK;function vK(e){let t=!1,n=[];for(let r=0;r`${e}$`,hpe=e=>mpe.has(e)?_K(e):e,Tpe=e=>fpe.has(e)?_K(e):e;var UI=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=gK(t)}addField(t){Fn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew xI(e,t=>bK(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=So(t.T,t.L);break;case"message":break}}});var of;(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"})(of||(of={}));z.util.setEnumType(of,"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"}]);var nu;(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"})(nu||(nu={}));z.util.setEnumType(nu,"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 ru;(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"})(ru||(ru={}));z.util.setEnumType(ru,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();h();var fF;(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"})(fF||(fF={}));z.util.setEnumType(fF,"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 id;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(id||(id={}));z.util.setEnumType(id,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var Cc;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(Cc||(Cc={}));z.util.setEnumType(Cc,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Gu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Gu||(Gu={}));z.util.setEnumType(Gu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var xc;(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"})(xc||(xc={}));z.util.setEnumType(xc,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var sd;(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"})(sd||(sd={}));z.util.setEnumType(sd,"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 iu=class iu extends mt{constructor(n){super();A(this,"id","");A(this,"name","");A(this,"routingUrl","");z.util.initPartial(n,this)}static fromBinary(n,r){return new iu().fromBinary(n,r)}static fromJson(n,r){return new iu().fromJson(n,r)}static fromJsonString(n,r){return new iu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(iu,n,r)}};A(iu,"runtime",z),A(iu,"typeName","wg.cosmo.node.v1.Subgraph"),A(iu,"fields",z.util.newFieldList(()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var MI=iu,su=class su extends mt{constructor(n){super();A(this,"configByFeatureFlagName",{});z.util.initPartial(n,this)}static fromBinary(n,r){return new su().fromBinary(n,r)}static fromJson(n,r){return new su().fromJson(n,r)}static fromJsonString(n,r){return new su().fromJsonString(n,r)}static equals(n,r){return z.util.equals(su,n,r)}};A(su,"runtime",z),A(su,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),A(su,"fields",z.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:hF}}]));var mF=su,ou=class ou extends mt{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new ou().fromBinary(n,r)}static fromJson(n,r){return new ou().fromJson(n,r)}static fromJsonString(n,r){return new ou().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ou,n,r)}};A(ou,"runtime",z),A(ou,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),A(ou,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:af},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:MI,repeated:!0}]));var hF=ou,au=class au extends mt{constructor(n){super();A(this,"engineConfig");A(this,"version","");A(this,"subgraphs",[]);A(this,"featureFlagConfigs");z.util.initPartial(n,this)}static fromBinary(n,r){return new au().fromBinary(n,r)}static fromJson(n,r){return new au().fromJson(n,r)}static fromJsonString(n,r){return new au().fromJsonString(n,r)}static equals(n,r){return z.util.equals(au,n,r)}};A(au,"runtime",z),A(au,"typeName","wg.cosmo.node.v1.RouterConfig"),A(au,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:af},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:MI,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:mF,opt:!0}]));var vT=au,uu=class uu extends mt{constructor(n){super();A(this,"code",of.OK);A(this,"details");z.util.initPartial(n,this)}static fromBinary(n,r){return new uu().fromBinary(n,r)}static fromJson(n,r){return new uu().fromJson(n,r)}static fromJsonString(n,r){return new uu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(uu,n,r)}};A(uu,"runtime",z),A(uu,"typeName","wg.cosmo.node.v1.Response"),A(uu,"fields",z.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:z.getEnumType(of)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var TF=uu,cu=class cu extends mt{constructor(n){super();A(this,"code",0);A(this,"message","");z.util.initPartial(n,this)}static fromBinary(n,r){return new cu().fromBinary(n,r)}static fromJson(n,r){return new cu().fromJson(n,r)}static fromJsonString(n,r){return new cu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(cu,n,r)}};A(cu,"runtime",z),A(cu,"typeName","wg.cosmo.node.v1.ResponseStatus"),A(cu,"fields",z.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var OK=cu,lu=class lu extends mt{constructor(n){super();A(this,"accountLimits");A(this,"graphPublicKey","");z.util.initPartial(n,this)}static fromBinary(n,r){return new lu().fromBinary(n,r)}static fromJson(n,r){return new lu().fromJson(n,r)}static fromJsonString(n,r){return new lu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(lu,n,r)}};A(lu,"runtime",z),A(lu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),A(lu,"fields",z.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:NF},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var yF=lu,du=class du extends mt{constructor(n){super();A(this,"traceSamplingRate",0);z.util.initPartial(n,this)}static fromBinary(n,r){return new du().fromBinary(n,r)}static fromJson(n,r){return new du().fromJson(n,r)}static fromJsonString(n,r){return new du().fromJsonString(n,r)}static equals(n,r){return z.util.equals(du,n,r)}};A(du,"runtime",z),A(du,"typeName","wg.cosmo.node.v1.AccountLimits"),A(du,"fields",z.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var NF=du,pu=class pu extends mt{constructor(t){super(),z.util.initPartial(t,this)}static fromBinary(t,n){return new pu().fromBinary(t,n)}static fromJson(t,n){return new pu().fromJson(t,n)}static fromJsonString(t,n){return new pu().fromJsonString(t,n)}static equals(t,n){return z.util.equals(pu,t,n)}};A(pu,"runtime",z),A(pu,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),A(pu,"fields",z.util.newFieldList(()=>[]));var SK=pu,fu=class fu extends mt{constructor(n){super();A(this,"response");A(this,"registrationInfo");z.util.initPartial(n,this)}static fromBinary(n,r){return new fu().fromBinary(n,r)}static fromJson(n,r){return new fu().fromJson(n,r)}static fromJsonString(n,r){return new fu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(fu,n,r)}};A(fu,"runtime",z),A(fu,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),A(fu,"fields",z.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:TF},{no:2,name:"registrationInfo",kind:"message",T:yF,opt:!0}]));var DK=fu,mu=class mu extends mt{constructor(n){super();A(this,"defaultFlushInterval",Ir.zero);A(this,"datasourceConfigurations",[]);A(this,"fieldConfigurations",[]);A(this,"graphqlSchema","");A(this,"typeConfigurations",[]);A(this,"stringStorage",{});A(this,"graphqlClientSchema");z.util.initPartial(n,this)}static fromBinary(n,r){return new mu().fromBinary(n,r)}static fromJson(n,r){return new mu().fromJson(n,r)}static fromJsonString(n,r){return new mu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(mu,n,r)}};A(mu,"runtime",z),A(mu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),A(mu,"fields",z.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:_T,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:DT,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:EF,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 af=mu,hu=class hu extends mt{constructor(n){super();A(this,"kind",Cc.STATIC);A(this,"rootNodes",[]);A(this,"childNodes",[]);A(this,"overrideFieldPathFromAlias",!1);A(this,"customGraphql");A(this,"customStatic");A(this,"directives",[]);A(this,"requestTimeoutSeconds",Ir.zero);A(this,"id","");A(this,"keys",[]);A(this,"provides",[]);A(this,"requires",[]);A(this,"customEvents");A(this,"entityInterfaces",[]);A(this,"interfaceObjects",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new hu().fromBinary(n,r)}static fromJson(n,r){return new hu().fromJson(n,r)}static fromJsonString(n,r){return new hu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(hu,n,r)}};A(hu,"runtime",z),A(hu,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),A(hu,"fields",z.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:z.getEnumType(Cc)},{no:2,name:"root_nodes",kind:"message",T:uf,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:uf,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:FT},{no:6,name:"custom_static",kind:"message",T:IF},{no:7,name:"directives",kind:"message",T:vF,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:ad},{no:14,name:"entity_interfaces",kind:"message",T:cf,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:cf,repeated:!0}]));var _T=hu,Tu=class Tu extends mt{constructor(n){super();A(this,"name","");A(this,"sourceType",id.OBJECT_FIELD);z.util.initPartial(n,this)}static fromBinary(n,r){return new Tu().fromBinary(n,r)}static fromJson(n,r){return new Tu().fromJson(n,r)}static fromJsonString(n,r){return new Tu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Tu,n,r)}};A(Tu,"runtime",z),A(Tu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),A(Tu,"fields",z.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:z.getEnumType(id)}]));var bT=Tu,yu=class yu extends mt{constructor(n){super();A(this,"requiredAndScopes",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new yu().fromBinary(n,r)}static fromJson(n,r){return new yu().fromJson(n,r)}static fromJsonString(n,r){return new yu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(yu,n,r)}};A(yu,"runtime",z),A(yu,"typeName","wg.cosmo.node.v1.Scopes"),A(yu,"fields",z.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var OT=yu,Nu=class Nu extends mt{constructor(n){super();A(this,"requiresAuthentication",!1);A(this,"requiredOrScopes",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Nu().fromBinary(n,r)}static fromJson(n,r){return new Nu().fromJson(n,r)}static fromJsonString(n,r){return new Nu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Nu,n,r)}};A(Nu,"runtime",z),A(Nu,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),A(Nu,"fields",z.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:OT,repeated:!0}]));var ST=Nu,Eu=class Eu extends mt{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"argumentsConfiguration",[]);A(this,"authorizationConfiguration");A(this,"subscriptionFilterCondition");z.util.initPartial(n,this)}static fromBinary(n,r){return new Eu().fromBinary(n,r)}static fromJson(n,r){return new Eu().fromJson(n,r)}static fromJsonString(n,r){return new Eu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Eu,n,r)}};A(Eu,"runtime",z),A(Eu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),A(Eu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:bT,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:ST},{no:5,name:"subscription_filter_condition",kind:"message",T:Uc,opt:!0}]));var DT=Eu,gu=class gu extends mt{constructor(n){super();A(this,"typeName","");A(this,"renameTo","");z.util.initPartial(n,this)}static fromBinary(n,r){return new gu().fromBinary(n,r)}static fromJson(n,r){return new gu().fromJson(n,r)}static fromJsonString(n,r){return new gu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(gu,n,r)}};A(gu,"runtime",z),A(gu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),A(gu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var EF=gu,Iu=class Iu extends mt{constructor(n){super();A(this,"typeName","");A(this,"fieldNames",[]);A(this,"externalFieldNames",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Iu().fromBinary(n,r)}static fromJson(n,r){return new Iu().fromJson(n,r)}static fromJsonString(n,r){return new Iu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Iu,n,r)}};A(Iu,"runtime",z),A(Iu,"typeName","wg.cosmo.node.v1.TypeField"),A(Iu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var uf=Iu,vu=class vu extends mt{constructor(n){super();A(this,"fieldName","");A(this,"typeName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new vu().fromBinary(n,r)}static fromJson(n,r){return new vu().fromJson(n,r)}static fromJsonString(n,r){return new vu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(vu,n,r)}};A(vu,"runtime",z),A(vu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),A(vu,"fields",z.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var AT=vu,_u=class _u extends mt{constructor(n){super();A(this,"fieldCoordinatesPath",[]);A(this,"fieldPath",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new _u().fromBinary(n,r)}static fromJson(n,r){return new _u().fromJson(n,r)}static fromJsonString(n,r){return new _u().fromJsonString(n,r)}static equals(n,r){return z.util.equals(_u,n,r)}};A(_u,"runtime",z),A(_u,"typeName","wg.cosmo.node.v1.FieldSetCondition"),A(_u,"fields",z.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:AT,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var RT=_u,bu=class bu extends mt{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");A(this,"selectionSet","");A(this,"disableEntityResolver",!1);A(this,"conditions",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new bu().fromBinary(n,r)}static fromJson(n,r){return new bu().fromJson(n,r)}static fromJsonString(n,r){return new bu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(bu,n,r)}};A(bu,"runtime",z),A(bu,"typeName","wg.cosmo.node.v1.RequiredField"),A(bu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:RT,repeated:!0}]));var rd=bu,Ou=class Ou extends mt{constructor(n){super();A(this,"interfaceTypeName","");A(this,"concreteTypeNames",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Ou().fromBinary(n,r)}static fromJson(n,r){return new Ou().fromJson(n,r)}static fromJsonString(n,r){return new Ou().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Ou,n,r)}};A(Ou,"runtime",z),A(Ou,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),A(Ou,"fields",z.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var cf=Ou,Su=class Su extends mt{constructor(n){super();A(this,"url");A(this,"method",sd.GET);A(this,"header",{});A(this,"body");A(this,"query",[]);A(this,"urlEncodeBody",!1);A(this,"mtls");A(this,"baseUrl");A(this,"path");A(this,"httpProxyUrl");z.util.initPartial(n,this)}static fromBinary(n,r){return new Su().fromBinary(n,r)}static fromJson(n,r){return new Su().fromJson(n,r)}static fromJsonString(n,r){return new Su().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Su,n,r)}};A(Su,"runtime",z),A(Su,"typeName","wg.cosmo.node.v1.FetchConfiguration"),A(Su,"fields",z.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Pi},{no:2,name:"method",kind:"enum",T:z.getEnumType(sd)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:bF}},{no:4,name:"body",kind:"message",T:Pi},{no:5,name:"query",kind:"message",T:_F,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:OF},{no:9,name:"base_url",kind:"message",T:Pi},{no:10,name:"path",kind:"message",T:Pi},{no:11,name:"http_proxy_url",kind:"message",T:Pi,opt:!0}]));var gF=Su,Du=class Du extends mt{constructor(n){super();A(this,"statusCode",Ir.zero);A(this,"typeName","");A(this,"injectStatusCodeIntoBody",!1);z.util.initPartial(n,this)}static fromBinary(n,r){return new Du().fromBinary(n,r)}static fromJson(n,r){return new Du().fromJson(n,r)}static fromJsonString(n,r){return new Du().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Du,n,r)}};A(Du,"runtime",z),A(Du,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),A(Du,"fields",z.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var AK=Du,Au=class Au extends mt{constructor(n){super();A(this,"fetch");A(this,"subscription");A(this,"federation");A(this,"upstreamSchema");A(this,"customScalarTypeFields",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Au().fromBinary(n,r)}static fromJson(n,r){return new Au().fromJson(n,r)}static fromJsonString(n,r){return new Au().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Au,n,r)}};A(Au,"runtime",z),A(Au,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),A(Au,"fields",z.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:gF},{no:2,name:"subscription",kind:"message",T:SF},{no:3,name:"federation",kind:"message",T:DF},{no:4,name:"upstream_schema",kind:"message",T:kT},{no:6,name:"custom_scalar_type_fields",kind:"message",T:AF,repeated:!0}]));var FT=Au,Ru=class Ru extends mt{constructor(n){super();A(this,"consumerName","");A(this,"streamName","");A(this,"consumerInactiveThreshold",0);z.util.initPartial(n,this)}static fromBinary(n,r){return new Ru().fromBinary(n,r)}static fromJson(n,r){return new Ru().fromJson(n,r)}static fromJsonString(n,r){return new Ru().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Ru,n,r)}};A(Ru,"runtime",z),A(Ru,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),A(Ru,"fields",z.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 wT=Ru,Fu=class Fu extends mt{constructor(n){super();A(this,"engineEventConfiguration");A(this,"subjects",[]);A(this,"streamConfiguration");z.util.initPartial(n,this)}static fromBinary(n,r){return new Fu().fromBinary(n,r)}static fromJson(n,r){return new Fu().fromJson(n,r)}static fromJsonString(n,r){return new Fu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Fu,n,r)}};A(Fu,"runtime",z),A(Fu,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),A(Fu,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:od},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:wT}]));var LT=Fu,wu=class wu extends mt{constructor(n){super();A(this,"engineEventConfiguration");A(this,"topics",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new wu().fromBinary(n,r)}static fromJson(n,r){return new wu().fromJson(n,r)}static fromJsonString(n,r){return new wu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(wu,n,r)}};A(wu,"runtime",z),A(wu,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),A(wu,"fields",z.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:od},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var PT=wu,Lu=class Lu extends mt{constructor(n){super();A(this,"providerId","");A(this,"type",Gu.PUBLISH);A(this,"typeName","");A(this,"fieldName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Lu().fromBinary(n,r)}static fromJson(n,r){return new Lu().fromJson(n,r)}static fromJsonString(n,r){return new Lu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Lu,n,r)}};A(Lu,"runtime",z),A(Lu,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),A(Lu,"fields",z.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:z.getEnumType(Gu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var od=Lu,Pu=class Pu extends mt{constructor(n){super();A(this,"nats",[]);A(this,"kafka",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Pu().fromBinary(n,r)}static fromJson(n,r){return new Pu().fromJson(n,r)}static fromJsonString(n,r){return new Pu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Pu,n,r)}};A(Pu,"runtime",z),A(Pu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),A(Pu,"fields",z.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:LT,repeated:!0},{no:2,name:"kafka",kind:"message",T:PT,repeated:!0}]));var ad=Pu,ku=class ku extends mt{constructor(n){super();A(this,"data");z.util.initPartial(n,this)}static fromBinary(n,r){return new ku().fromBinary(n,r)}static fromJson(n,r){return new ku().fromJson(n,r)}static fromJsonString(n,r){return new ku().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ku,n,r)}};A(ku,"runtime",z),A(ku,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),A(ku,"fields",z.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Pi}]));var IF=ku,Cu=class Cu extends mt{constructor(n){super();A(this,"kind",xc.STATIC_CONFIGURATION_VARIABLE);A(this,"staticVariableContent","");A(this,"environmentVariableName","");A(this,"environmentVariableDefaultValue","");A(this,"placeholderVariableName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Cu().fromBinary(n,r)}static fromJson(n,r){return new Cu().fromJson(n,r)}static fromJsonString(n,r){return new Cu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Cu,n,r)}};A(Cu,"runtime",z),A(Cu,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),A(Cu,"fields",z.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:z.getEnumType(xc)},{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 Pi=Cu,xu=class xu extends mt{constructor(n){super();A(this,"directiveName","");A(this,"renameTo","");z.util.initPartial(n,this)}static fromBinary(n,r){return new xu().fromBinary(n,r)}static fromJson(n,r){return new xu().fromJson(n,r)}static fromJsonString(n,r){return new xu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(xu,n,r)}};A(xu,"runtime",z),A(xu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),A(xu,"fields",z.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var vF=xu,Uu=class Uu extends mt{constructor(n){super();A(this,"name","");A(this,"value","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Uu().fromBinary(n,r)}static fromJson(n,r){return new Uu().fromJson(n,r)}static fromJsonString(n,r){return new Uu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Uu,n,r)}};A(Uu,"runtime",z),A(Uu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),A(Uu,"fields",z.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var _F=Uu,Mu=class Mu extends mt{constructor(n){super();A(this,"values",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Mu().fromBinary(n,r)}static fromJson(n,r){return new Mu().fromJson(n,r)}static fromJsonString(n,r){return new Mu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Mu,n,r)}};A(Mu,"runtime",z),A(Mu,"typeName","wg.cosmo.node.v1.HTTPHeader"),A(Mu,"fields",z.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Pi,repeated:!0}]));var bF=Mu,Bu=class Bu extends mt{constructor(n){super();A(this,"key");A(this,"cert");A(this,"insecureSkipVerify",!1);z.util.initPartial(n,this)}static fromBinary(n,r){return new Bu().fromBinary(n,r)}static fromJson(n,r){return new Bu().fromJson(n,r)}static fromJsonString(n,r){return new Bu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Bu,n,r)}};A(Bu,"runtime",z),A(Bu,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),A(Bu,"fields",z.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Pi},{no:2,name:"cert",kind:"message",T:Pi},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var OF=Bu,Vu=class Vu extends mt{constructor(n){super();A(this,"enabled",!1);A(this,"url");A(this,"useSSE");A(this,"protocol");A(this,"websocketSubprotocol");z.util.initPartial(n,this)}static fromBinary(n,r){return new Vu().fromBinary(n,r)}static fromJson(n,r){return new Vu().fromJson(n,r)}static fromJsonString(n,r){return new Vu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Vu,n,r)}};A(Vu,"runtime",z),A(Vu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),A(Vu,"fields",z.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Pi},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:z.getEnumType(nu),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:z.getEnumType(ru),opt:!0}]));var SF=Vu,ju=class ju extends mt{constructor(n){super();A(this,"enabled",!1);A(this,"serviceSdl","");z.util.initPartial(n,this)}static fromBinary(n,r){return new ju().fromBinary(n,r)}static fromJson(n,r){return new ju().fromJson(n,r)}static fromJsonString(n,r){return new ju().fromJsonString(n,r)}static equals(n,r){return z.util.equals(ju,n,r)}};A(ju,"runtime",z),A(ju,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),A(ju,"fields",z.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var DF=ju,$u=class $u extends mt{constructor(n){super();A(this,"key","");z.util.initPartial(n,this)}static fromBinary(n,r){return new $u().fromBinary(n,r)}static fromJson(n,r){return new $u().fromJson(n,r)}static fromJsonString(n,r){return new $u().fromJsonString(n,r)}static equals(n,r){return z.util.equals($u,n,r)}};A($u,"runtime",z),A($u,"typeName","wg.cosmo.node.v1.InternedString"),A($u,"fields",z.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var kT=$u,qu=class qu extends mt{constructor(n){super();A(this,"typeName","");A(this,"fieldName","");z.util.initPartial(n,this)}static fromBinary(n,r){return new qu().fromBinary(n,r)}static fromJson(n,r){return new qu().fromJson(n,r)}static fromJsonString(n,r){return new qu().fromJsonString(n,r)}static equals(n,r){return z.util.equals(qu,n,r)}};A(qu,"runtime",z),A(qu,"typeName","wg.cosmo.node.v1.SingleTypeField"),A(qu,"fields",z.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var AF=qu,Ku=class Ku extends mt{constructor(n){super();A(this,"fieldPath",[]);A(this,"json","");z.util.initPartial(n,this)}static fromBinary(n,r){return new Ku().fromBinary(n,r)}static fromJson(n,r){return new Ku().fromJson(n,r)}static fromJsonString(n,r){return new Ku().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Ku,n,r)}};A(Ku,"runtime",z),A(Ku,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),A(Ku,"fields",z.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var CT=Ku,Zs=class Zs extends mt{constructor(n){super();A(this,"and",[]);A(this,"in");A(this,"not");A(this,"or",[]);z.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return z.util.equals(Zs,n,r)}};A(Zs,"runtime",z),A(Zs,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),A(Zs,"fields",z.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Zs,repeated:!0},{no:2,name:"in",kind:"message",T:CT,opt:!0},{no:3,name:"not",kind:"message",T:Zs,opt:!0},{no:4,name:"or",kind:"message",T:Zs,repeated:!0}]));var Uc=Zs;m();T();h();var VI=e_(fI(),1);function ype(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let s=i.split(".");if(s.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new AT({fieldName:s[1],typeName:s[0]}))}t.push(new RT({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function RF(e,t,n){if(e)for(let r of e){let i=ype(r);t.push(new rd(k(k({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function RK(e){switch(e){case"publish":return Gu.PUBLISH;case"request":return Gu.REQUEST;case"subscribe":return Gu.SUBSCRIBE}}function FK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new ad({nats:[],kafka:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,s=[...r.fieldNames],o=new uf({typeName:i,fieldNames:s});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let d=new cf({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(d):t.entityInterfaces.push(d)}RF(r.keys,t.keys,i),RF(r.provides,t.provides,i),RF(r.requires,t.requires,i);let u=[],l=[];for(let d of(n=r.events)!=null?n:[])switch(d.providerType){case VI.PROVIDER_TYPE_KAFKA:{l.push(new PT({engineEventConfiguration:new od({fieldName:d.fieldName,providerId:d.providerId,type:RK(d.type),typeName:i}),topics:d.topics}));break}case VI.PROVIDER_TYPE_NATS:{u.push(new LT(k({engineEventConfiguration:new od({fieldName:d.fieldName,providerId:d.providerId,type:RK(d.type),typeName:i}),subjects:d.subjects},d.streamConfiguration?{streamConfiguration:new wT({consumerInactiveThreshold:d.streamConfiguration.consumerInactiveThreshold,consumerName:d.streamConfiguration.consumerName,streamName:d.streamConfiguration.streamName})}:{})));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l)}return t}function wK(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(l=>new bT({name:l,sourceType:id.FIELD_ARGUMENT})),s=new DT({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),o=((n=r.requiredScopes)==null?void 0:n.map(l=>new OT({requiredAndScopes:l})))||[],u=o.length>0;if((r.requiresAuthentication||u)&&(s.authorizationConfiguration=new ST({requiresAuthentication:r.requiresAuthentication||u,requiredOrScopes:o})),r.subscriptionFilterCondition){let l=new Uc;BI(l,r.subscriptionFilterCondition),s.subscriptionFilterCondition=l}t.push(s)}return t}function BI(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Uc;BI(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new CT({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Uc,BI(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Uc;BI(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();h();function FF(e){return new Error(`Normalization failed to return a ${e}.`)}var Npe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new kT({key:n})},Epe=e=>{switch(e){case"ws":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},gpe=e=>{switch(e){case"auto":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}throw new Error(`Unsupported websocket subprotocol '${e}'`)},PK=function(e){let t=new af({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw FF("ConfigurationDataByTypeName");if(!n.schema)throw FF("GraphQLSchema");let r=Npe(t,$q(Qm(n.schema))),{childNodes:i,entityInterfaces:s,events:o,interfaceObjects:u,keys:l,provides:d,requires:p,rootNodes:y}=FK(n.configurationDataByTypeName),N=Epe(n.subscriptionProtocol||"ws"),I=gpe(n.websocketSubprotocol||"auto"),O,x,V;if(o.kafka.length>0||o.nats.length>0){O=Cc.PUBSUB,V=new ad({kafka:o.kafka,nats:o.nats});let re=he=>LK.ROOT_TYPE_NAMES.has(he.typeName),se=0,fe=0;for(;se({id:n.id,name:n.name,routingUrl:n.url}))})};m();T();h();Le();function kK(e){let t;try{t=io(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function Ipe(e){let{federationResult:t,errors:n}=(0,wF.federateSubgraphs)(e.map(kK));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:Ft(t.federatedGraphAST)}}function vpe(e){let t=(0,wF.federateSubgraphs)(e.map(kK));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return PK({federatedClientSDL:ep(t.federationResult.federatedGraphClientSchema),federatedSDL:ep(t.federationResult.federatedGraphSchema),fieldConfigurations:t.federationResult.fieldConfigurations,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let s=t.federationResult.subgraphConfigBySubgraphName.get(r.name),o=s==null?void 0:s.schema,u=s==null?void 0:s.configurationDataByTypeName;return{id:`${i}`,name:r.name,url:XR(r.url),sdl:r.schema,subscriptionUrl:XR((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return Me(_pe);})(); +}`;var Ut=yP(function(){return dn(L,ze+"return "+Ie).apply(e,M)});if(Ut.source=Ie,Hv(Ut))throw Ut;return Ut}function Pz(a){return yn(a).toLowerCase()}function kz(a){return yn(a).toUpperCase()}function xz(a,c,f){if(a=yn(a),a&&(f||c===e))return Sw(a);if(!a||!(c=es(c)))return a;var E=eo(a),_=eo(c),L=Dw(E,_),M=Aw(E,_)+1;return oc(E,L,M).join("")}function Cz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.slice(0,Fw(a)+1);if(!a||!(c=es(c)))return a;var E=eo(a),_=Aw(E,eo(c))+1;return oc(E,0,_).join("")}function Uz(a,c,f){if(a=yn(a),a&&(f||c===e))return a.replace(HI,"");if(!a||!(c=es(c)))return a;var E=eo(a),_=Dw(E,eo(c));return oc(E,_).join("")}function Mz(a,c){var f=xt,E=B;if(Zn(c)){var _="separator"in c?c.separator:_;f="length"in c?Lt(c.length):f,E="omission"in c?es(c.omission):E}a=yn(a);var L=a.length;if(yd(a)){var M=eo(a);L=M.length}if(f>=L)return a;var K=f-Nd(E);if(K<1)return E;var X=M?oc(M,0,K).join(""):a.slice(0,K);if(_===e)return X+E;if(M&&(K+=X.length-K),Wv(_)){if(a.slice(K).search(_)){var ye,Ne=X;for(_.global||(_=fv(_.source,yn(JF.exec(_))+"g")),_.lastIndex=0;ye=_.exec(Ne);)var Ie=ye.index;X=X.slice(0,Ie===e?K:Ie)}}else if(a.indexOf(es(_),K)!=K){var we=X.lastIndexOf(_);we>-1&&(X=X.slice(0,we))}return X+E}function Bz(a){return a=yn(a),a&&HK.test(a)?a.replace(GF,mQ):a}var Vz=bd(function(a,c,f){return a+(f?" ":"")+c.toUpperCase()}),e_=NL("toUpperCase");function TP(a,c,f){return a=yn(a),c=f?e:c,c===e?cQ(a)?yQ(a):eQ(a):a.match(c)||[]}var yP=Bt(function(a,c){try{return Xi(a,e,c)}catch(f){return Hv(f)?f:new _t(f)}}),jz=va(function(a,c){return gs(c,function(f){f=Lo(f),ga(a,f,Jv(a[f],a))}),a});function $z(a){var c=a==null?0:a.length,f=lt();return a=c?Kn(a,function(E){if(typeof E[1]!="function")throw new Is(i);return[f(E[0]),E[1]]}):[],Bt(function(E){for(var _=-1;++_bn)return[];var f=kn,E=Zr(a,kn);c=lt(c),a-=kn;for(var _=lv(E,c);++f0||c<0)?new Gt(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),c!==e&&(c=Lt(c),f=c<0?f.dropRight(-c):f.take(c-a)),f)},Gt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Gt.prototype.toArray=function(){return this.take(kn)},Fo(Gt.prototype,function(a,c){var f=/^(?:filter|find|map|reject)|While$/.test(c),E=/^(?:head|last)$/.test(c),_=w[E?"take"+(c=="last"?"Right":""):c],L=E||/^find/.test(c);_&&(w.prototype[c]=function(){var M=this.__wrapped__,K=E?[1]:arguments,X=M instanceof Gt,ye=K[0],Ne=X||St(M),Ie=function(qt){var Wt=_.apply(w,Zu([qt],K));return E&&we?Wt[0]:Wt};Ne&&f&&typeof ye=="function"&&ye.length!=1&&(X=Ne=!1);var we=this.__chain__,ze=!!this.__actions__.length,dt=L&&!we,Ut=X&&!ze;if(!L&&Ne){M=Ut?M:new Gt(this);var pt=a.apply(M,K);return pt.__actions__.push({func:vy,args:[Ie],thisArg:e}),new vs(pt,we)}return dt&&Ut?a.apply(this,K):(pt=this.thru(Ie),dt?E?pt.value()[0]:pt.value():pt)})}),gs(["pop","push","shift","sort","splice","unshift"],function(a){var c=JT[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);w.prototype[a]=function(){var _=arguments;if(E&&!this.__chain__){var L=this.value();return c.apply(St(L)?L:[],_)}return this[f](function(M){return c.apply(St(M)?M:[],_)})}}),Fo(Gt.prototype,function(a,c){var f=w[c];if(f){var E=f.name+"";Sn.call(Id,E)||(Id[E]=[]),Id[E].push({name:c,func:f})}}),Id[hy(e,C).name]=[{name:"wrapper",func:e}],Gt.prototype.clone=BQ,Gt.prototype.reverse=VQ,Gt.prototype.value=jQ,w.prototype.at=TJ,w.prototype.chain=yJ,w.prototype.commit=NJ,w.prototype.next=EJ,w.prototype.plant=IJ,w.prototype.reverse=vJ,w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=_J,w.prototype.first=w.prototype.head,yf&&(w.prototype[yf]=gJ),w},tc=NQ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Cr._=tc,define(function(){return tc})):Qc?((Qc.exports=tc)._=tc,nv._=tc):Cr._=tc}).call(of)});var Qq=j(ud=>{"use strict";m();T();h();Object.defineProperty(ud,"__esModule",{value:!0});ud.FederationFactory=void 0;ud.federateSubgraphs=jde;ud.federateSubgraphsWithContracts=$de;ud.federateSubgraphsContract=qde;var ke=(Le(),Me(je)),Vc=Qa(),Xs=$i(),xe=To(),af=BR(),Fe=bi(),_e=ps(),TI=cI(),fr=wc(),Mde=tF(),Bde=Xl(),Kq=Wh(),Se=ef(),Vde=iF(),Gq=qq(),uf=hI(),yI=kl(),NI=class{constructor(t){b(this,"authorizationDataByParentTypeName");b(this,"concreteTypeNamesByAbstractTypeName");b(this,"clientDefinitions",[fr.DEPRECATED_DEFINITION]);b(this,"currentSubgraphName","");b(this,"subgraphNamesByNamedTypeNameByFieldCoordinates",new Map);b(this,"entityDataByTypeName");b(this,"entityInterfaceFederationDataByTypeName");b(this,"errors",[]);b(this,"fieldConfigurationByFieldPath",new Map);b(this,"inaccessiblePaths",new Set);b(this,"isMaxDepth",!1);b(this,"internalGraph");b(this,"internalSubgraphBySubgraphName");b(this,"invalidOrScopesHostPaths",new Set);b(this,"isVersionTwo",!1);b(this,"namedInputValueTypeNames",new Set);b(this,"namedOutputTypeNames",new Set);b(this,"parentDefinitionDataByTypeName",new Map);b(this,"parentTagDataByTypeName",new Map);b(this,"pathsByNamedTypeName",new Map);b(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Fe.AUTHENTICATED,fr.AUTHENTICATED_DEFINITION],[Fe.DEPRECATED,fr.DEPRECATED_DEFINITION],[Fe.INACCESSIBLE,fr.INACCESSIBLE_DEFINITION],[Fe.REQUIRES_SCOPES,fr.REQUIRES_SCOPES_DEFINITION],[Fe.TAG,fr.TAG_DEFINITION]]));b(this,"persistedDirectiveDefinitions",new Set([Fe.AUTHENTICATED,Fe.DEPRECATED,Fe.INACCESSIBLE,Fe.TAG,Fe.REQUIRES_SCOPES]));b(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);b(this,"routerDefinitions",[fr.DEPRECATED_DEFINITION,fr.TAG_DEFINITION]);b(this,"shareableErrorTypeNames",new Map);b(this,"subscriptionFilterDataByFieldPath",new Map);b(this,"tagNamesByPath",new Map);b(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,Se.isNodeDataInaccessible)(t),i=new Map,s=new Map;for(let u of t.implementedInterfaceTypeNames){n.push((0,Xs.stringToNamedTypeNode)(u));let l=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,u,Fe.PARENT_DEFINITION_DATA);if(l.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION){s.set(l.name,(0,_e.kindToTypeString)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[y,N]of l.fieldDataByFieldName){let I=!1,S=t.fieldDataByFieldName.get(y);if(!S){p=!0,d.unimplementedFields.push(y);continue}let C={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,TI.printTypeNode)(N.node.type),unimplementedArguments:new Set};(0,Se.isTypeValidImplementation)(N.node.type,S.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,I=!0,C.implementedResponseType=(0,TI.printTypeNode)(S.node.type));let V=new Set;for(let[G,re]of N.argumentDataByArgumentName){let se=re.node;V.add(G);let fe=(o=S.argumentDataByArgumentName.get(G))==null?void 0:o.node;if(!fe){p=!0,I=!0,C.unimplementedArguments.add(G);continue}let he=(0,TI.printTypeNode)(fe.type),Ce=(0,TI.printTypeNode)(se.type);Ce!==he&&(p=!0,I=!0,C.invalidImplementedArguments.push({actualType:he,argumentName:G,expectedType:Ce}))}for(let[G,re]of S.argumentDataByArgumentName){let se=re.node;V.has(G)||se.type.kind===ke.Kind.NON_NULL_TYPE&&(p=!0,I=!0,C.invalidAdditionalArguments.add(G))}!r&&S.isInaccessible&&!N.isInaccessible&&(p=!0,I=!0,C.isInaccessible=!0),I&&d.invalidFieldImplementations.set(y,C)}p&&i.set(u,d)}return s.size>0&&this.errors.push((0,xe.invalidImplementedTypeError)(t.name,s)),i.size&&this.errors.push((0,xe.invalidInterfaceImplementationError)(t.node.name.value,(0,_e.kindToTypeString)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,_e.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,s=i.get(n.typeName);if(!s||s.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)throw(0,xe.incompatibleParentKindFatalError)(n.typeName,ke.Kind.OBJECT_TYPE_DEFINITION,(s==null?void 0:s.kind)||ke.Kind.NULL);let o=(0,_e.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByParentTypeName"),u=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,af.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:n.keyFieldSets,graphNode:l,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i});for(let[y,N]of this.entityInterfaceFederationDataByTypeName){if(!((p=N.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let I=this.entityDataByTypeName.get(y);I&&(0,af.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:r.conditionalFieldDataByCoordinates,configurationData:o,fieldSets:I.keyFieldSets,implicitKeys:u,objectData:s,parentDefinitionDataByTypeName:i,graphNode:l})}if(u.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=u;return}let d=new Set(o.keys.map(y=>y.selectionSet));for(let y of u)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let s=t.parentDefinitionDataByTypeName,o=s.get(n);if(!o||o.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION)throw(0,xe.incompatibleParentKindFatalError)(n,ke.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||ke.Kind.NULL);let u=(0,_e.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByParentTypeName"),l=[];if((0,af.validateImplicitFieldSets)({conditionalFieldDataByCoordinates:t.conditionalFieldDataByCoordinates,configurationData:u,fieldSets:r.keyFieldSets,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:s,graphNode:i}),l.length<1)return;if(!u.keys||u.keys.length<1){u.isRootNode=!0,u.keys=l;return}let d=new Set(u.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(u.keys.push(p),d.add(p.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Se.MergeMethod.CONSISTENT:Se.MergeMethod.INTERSECTION:Se.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByPath){let r=t.split(".");if(r.length<1)continue;let i=(0,_e.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,af.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let s=(0,_e.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,af.newChildTagData)(r[1]));for(let l of n)s.tagNames.add(l);break;case 3:let o=(0,_e.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,af.newChildTagData)(r[1])),u=(0,_e.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)u.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),s=i||n,o=`${n.parentTypeName}.${n.name}`;(0,Se.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Se.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(o),this.recordTagNamesByPath(s,o),!i){n.node={directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name)},t.set(n.name,n);return}i.appearances+=1,(0,Se.setLongestDescription)(i,n),(0,_e.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames)}upsertInputValueData(t,n,r){let i=t.get(n.name),s=i||n;if((0,Se.extractPersistedDirectives)(s.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s,r||s.renamedPath),!i){n.node={directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name),type:n.type},t.set(n.name,n);return}(0,Se.setLongestDescription)(i,n),(0,_e.addIterableValuesToSet)(n.requiredSubgraphNames,i.requiredSubgraphNames),(0,_e.addIterableValuesToSet)(n.subgraphNames,i.subgraphNames);let{typeErrors:o,typeNode:u}=(0,uf.getMostRestrictiveMergedTypeNode)(i.type,n.type,i.originalPath,this.errors);if(u)i.type=u;else{if(!o||o.length<2)throw(0,xe.fieldTypeMergeFatalError)(i.name);i.isArgument?this.errors.push((0,xe.incompatibleArgumentTypesError)(i.name,i.renamedPath,o[0],o[1])):this.errors.push((0,xe.incompatibleChildTypesError)(i.renamedPath,o[0],o[1]))}(0,Se.compareAndValidateInputValueDefaultValues)(i,n,this.errors)}handleArgumentInaccessibility(t,n,r,i){if(t){this.inaccessiblePaths.add(r);return}(0,Se.isNodeDataInaccessible)(n)&&((0,Se.isTypeRequired)(n.type)?this.errors.push((0,xe.inaccessibleRequiredArgumentError)(n.name,r,i)):this.inaccessiblePaths.add(r))}handleSubscriptionFilterDirective(t,n,r){let i=t.directivesByDirectiveName.get(Fe.SUBSCRIPTION_FILTER);if(i){let s=(0,_e.getSingleSetEntry)(t.subgraphNames);if(s===void 0){this.errors.push((0,xe.unknownFieldSubgraphNameError)(n));return}this.subscriptionFilterDataByFieldPath.set(n,{directive:i[0],fieldData:r||t,directiveSubgraphName:s})}}federateOutputType({current:t,other:n,hostPath:r,mostRestrictive:i}){n=(0,Vc.getMutableTypeNode)(n,r,this.errors);let s={kind:t.kind},o=uf.DivergentType.NONE,u=s;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=`${n.renamedParentTypeName}.${n.name}`;(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,n.namedTypeName,()=>new Set).add(i),this.namedOutputTypeNames.add(n.namedTypeName);let s=t.get(n.name),o=s||n;this.handleSubscriptionFilterDirective(n,i,o),(0,Se.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let u=(0,Se.isNodeDataInaccessible)(n);if((r||u)&&this.inaccessiblePaths.add(i),this.recordTagNamesByPath(o,i),!s){t.set(n.name,n),n.node={arguments:[],directives:[],kind:n.node.kind,name:(0,Xs.stringToNameNode)(n.name),type:n.type};for(let[d,p]of n.argumentDataByArgumentName){p.node={directives:[],kind:p.node.kind,name:(0,Xs.stringToNameNode)(p.name),type:p.type};let y=(0,Vc.getTypeNodeNamedTypeName)(p.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p.renamedPath),this.namedInputValueTypeNames.add(y),(0,Se.extractPersistedDirectives)(p.persistedDirectivesData,p.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.handleArgumentInaccessibility(r||u,p,p.renamedPath,i),this.recordTagNamesByPath(p,`${i}.${d}`)}return}let l=this.federateOutputType({current:s.type,other:n.type,hostPath:i,mostRestrictive:!1});if(l.success)if(s.type=l.typeNode,s.namedTypeName!==n.namedTypeName){let d=(0,_e.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoordinates,`${s.renamedParentTypeName}.${s.name}`,()=>new Map),p=(0,_e.getValueOrDefault)(d,s.namedTypeName,()=>new Set);if(p.size<1)for(let y of s.subgraphNames)n.subgraphNames.has(y)||p.add(y);(0,_e.addIterableValuesToSet)(n.subgraphNames,(0,_e.getValueOrDefault)(d,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let[d,p]of n.argumentDataByArgumentName){let y=(0,Vc.getTypeNodeNamedTypeName)(p.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p.renamedPath),this.namedInputValueTypeNames.add(y),this.handleArgumentInaccessibility(r||u,p,p.renamedPath,i),this.upsertInputValueData(s.argumentDataByArgumentName,p,`${i}.${d}`)}(0,Se.setLongestDescription)(s,n),s.isInaccessible||(s.isInaccessible=n.isInaccessible),(0,_e.addMapEntries)(n.isExternalBySubgraphName,s.isExternalBySubgraphName),(0,_e.addMapEntries)(n.isShareableBySubgraphName,s.isShareableBySubgraphName),(0,_e.addIterableValuesToSet)(n.subgraphNames,s.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessiblePaths.has(r)||n.push(i);return n}recordTagNamesByPath(t,n){let r=n||t.name;if(t.persistedDirectivesData.tags.size>0){let i=(0,_e.getValueOrDefault)(this.tagNamesByPath,r,()=>new Set);for(let s of t.persistedDirectivesData.tags.keys())i.add(s)}}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),s=i||t;(0,Se.extractPersistedDirectives)(s.persistedDirectivesData,t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(s);let o=(0,Se.isNodeDataInaccessible)(s);if(o&&this.inaccessiblePaths.add(t.name),r&&r.interfaceObjectSubgraphs.has(n)&&(t.kind=ke.Kind.INTERFACE_TYPE_DEFINITION),!i)switch(t.node={kind:t.kind,name:(0,Xs.stringToNameNode)(t.name)},this.parentDefinitionDataByTypeName.set(t.name,t),t.kind){case ke.Kind.ENUM_TYPE_DEFINITION:for(let[u,l]of t.enumValueDataByValueName){let d=`${t.name}.${u}`;l.node={directives:[],kind:l.node.kind,name:(0,Xs.stringToNameNode)(l.name)},(0,Se.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,d),(0,Se.isNodeDataInaccessible)(l)&&this.inaccessiblePaths.add(d)}return;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let[u,l]of t.inputValueDataByValueName){l.node={directives:[],kind:l.node.kind,name:(0,Xs.stringToNameNode)(l.name),type:l.type};let d=(0,Vc.getTypeNodeNamedTypeName)(l.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,d,()=>new Set).add(l.renamedPath),this.namedInputValueTypeNames.add(d),(0,Se.extractPersistedDirectives)(l.persistedDirectivesData,l.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(l,`${t.name}.${u}`),(o||(0,Se.isNodeDataInaccessible)(l))&&this.inaccessiblePaths.add(l.renamedPath)}return;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:(0,Se.isParentDataRootType)(t)&&(t.extensionType=Kq.ExtensionType.NONE);for(let u of t.fieldDataByFieldName.values()){u.node={arguments:[],directives:[],kind:u.node.kind,name:(0,Xs.stringToNameNode)(u.name),type:u.type};let l=`${u.renamedParentTypeName}.${u.name}`;this.handleSubscriptionFilterDirective(u,l),(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,u.namedTypeName,()=>new Set).add(l),this.namedOutputTypeNames.add(u.namedTypeName),(0,Se.extractPersistedDirectives)(u.persistedDirectivesData,u.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(u,l);let d=(0,Se.isNodeDataInaccessible)(u);(o||d)&&this.inaccessiblePaths.add(l);for(let[p,y]of u.argumentDataByArgumentName){y.node={directives:[],kind:y.node.kind,name:(0,Xs.stringToNameNode)(y.name),type:y.type};let N=(0,Vc.getTypeNodeNamedTypeName)(y.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,N,()=>new Set).add(y.renamedPath),this.namedInputValueTypeNames.add(N),(0,Se.extractPersistedDirectives)(y.persistedDirectivesData,y.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByPath(y,`${l}.${p}`),this.handleArgumentInaccessibility(o||d,y,y.renamedPath,l)}}return;default:return}if(i.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||i.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,xe.incompatibleParentKindMergeError)(i.name,(0,_e.kindToTypeString)(i.kind),(0,_e.kindToTypeString)(t.kind)));return}switch((0,Se.setLongestDescription)(i,t),(0,Se.setParentDataExtensionType)(i,t),i.kind){case ke.Kind.ENUM_TYPE_DEFINITION:i.appearances+=1,(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(i.enumValueDataByValueName,l,o);return;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i),(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames);for(let[l,d]of t.inputValueDataByValueName){let p=`${t.name}.${l}`,y=(0,Vc.getTypeNodeNamedTypeName)(d.type);(0,_e.getValueOrDefault)(this.pathsByNamedTypeName,y,()=>new Set).add(p),this.namedInputValueTypeNames.add(y),this.upsertInputValueData(i.inputValueDataByValueName,d),this.recordTagNamesByPath(d,p),(o||(0,Se.isNodeDataInaccessible)(d))&&this.inaccessiblePaths.add(p)}return;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:o&&!i.isInaccessible&&this.propagateInaccessibilityToExistingChildren(i);let u=t;(0,_e.addIterableValuesToSet)(u.implementedInterfaceTypeNames,i.implementedInterfaceTypeNames),(0,_e.addIterableValuesToSet)(u.subgraphNames,i.subgraphNames);for(let l of u.fieldDataByFieldName.values())this.upsertFieldData(i.fieldDataByFieldName,l,o||i.isInaccessible);return;case ke.Kind.UNION_TYPE_DEFINITION:(0,_e.addMapEntries)(t.memberByMemberTypeName,i.memberByMemberTypeName);return;default:return}}propagateInaccessibilityToExistingChildren(t){switch(t.isInaccessible=!0,t.kind){case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByValueName.keys())this.inaccessiblePaths.add(`${t.name}.${n}`);break;default:for(let[n,r]of t.fieldDataByFieldName){let i=`${r.renamedParentTypeName}.${n}`;this.inaccessiblePaths.add(i);for(let s of r.argumentDataByArgumentName.values())this.inaccessiblePaths.add(s.renamedPath)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let s=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Vc.getTypeNodeNamedTypeName)(o.type)),this.upsertInputValueData(s,o);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:s,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,Se.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let s of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,Vc.getTypeNodeNamedTypeName)(s.type)),this.upsertInputValueData(i.argumentDataByArgumentName,s);(0,Se.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,_e.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case ke.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[y,N]of o)if(p!==y&&!N.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,u)){this.errors.push((0,xe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}s.namedTypeName=d,this.updateTypeNodeNamedType(s.type,d)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,Vde.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:s,subgraphName:o}){let u=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let p of i.satisfiedFieldSets)u.satisfiedFieldSets.add(p),s.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:y}of d||[])this.internalGraph.addEdge(u,this.internalGraph.addOrUpdateNode(y),p);this.internalGraph.addEdge(i,u,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,u)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,_e.subtractSourceSetFromTargetSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Fe.PARENT_DEFINITION_DATA);if(r.kind===ke.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let s=(0,_e.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=s.configurationDataByTypeName,u=this.concreteTypeNamesByAbstractTypeName.get(t);if(!u)continue;let l=(0,_e.getOrThrowError)(o,t,"configurationDataMap"),d=l.keys;if(!d)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames;let p=l.fieldNames,y=this.authorizationDataByParentTypeName.get(n.typeName);this.internalGraph.setSubgraphName(i);let N=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let I of u){if(o.has(I))continue;if(y){let re=(0,_e.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,_e.newAuthorizationData)(I));for(let se of y.fieldAuthorizationDataByFieldName.values())(0,_e.upsertFieldAuthorizationData)(re.fieldAuthorizationDataByFieldName,se)||this.invalidOrScopesHostPaths.add(`${I}.${se.fieldName}`)}let S=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,I,Fe.PARENT_DEFINITION_DATA);if(S.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;let C=(0,_e.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");C.subgraphNames.add(i);let V={fieldNames:p,isRootNode:!0,keys:d,typeName:I},G=new Set;for(let re of d.filter(se=>!se.disableEntityResolver))G.add(re.selectionSet);for(let re of n.interfaceObjectFieldNames){if(S.fieldDataByFieldName.get(re))continue;let fe=(0,_e.getOrThrowError)(r.fieldDataByFieldName,re,`${t}.fieldDataByFieldName`);S.fieldDataByFieldName.set(re,k({},fe))}o.set(I,V),this.handleInterfaceObjectForInternalGraph({internalSubgraph:s,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:N,resolvableKeyFieldSets:G,entityData:C})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,_e.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Kq.ExtensionType.NONE&&this.errors.push((0,xe.noBaseDefinitionForExtensionError)((0,_e.kindToTypeString)(r.kind),n)),r.kind){case ke.Kind.ENUM_TYPE_DEFINITION:let i=[],s=[],o=this.getEnumValueMergeMethod(n);for(let G of r.enumValueDataByValueName.values()){let re=(0,Se.getNodeForRouterSchemaByData)(G,this.persistedDirectiveDefinitionByDirectiveName,this.errors),se=(0,Se.isNodeDataInaccessible)(G),fe=Q(k({},G.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(G)});switch(o){case Se.MergeMethod.CONSISTENT:!se&&r.appearances>G.appearances&&this.errors.push((0,xe.incompatibleSharedEnumError)(n)),i.push(re),se||s.push(fe);break;case Se.MergeMethod.INTERSECTION:r.appearances===G.appearances&&(i.push(re),se||s.push(fe));break;default:i.push(re),se||s.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(s.length<1){this.errors.push((0,xe.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,Fe.ENUM_VALUE));break}this.clientDefinitions.push(Q(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),values:s}));break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:let u=[],l=[],d=[];for(let[G,re]of r.inputValueDataByValueName)if(r.subgraphNames.size===re.subgraphNames.size){if(l.push((0,Se.getNodeWithPersistedDirectivesByInputValueData)(re,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(re))continue;d.push(Q(k({},re.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(re)}))}else(0,Se.isTypeRequired)(re.type)&&u.push({inputValueName:G,missingSubgraphs:(0,_e.getEntriesNotInHashSet)(r.subgraphNames,re.subgraphNames),requiredSubgraphs:[...re.requiredSubgraphNames]});if(u.length>0){this.errors.push((0,xe.invalidRequiredInputValueError)(Fe.INPUT_OBJECT,n,u,!1));break}if(r.node.fields=l,this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(d.length<1){this.errors.push((0,xe.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,"input field"));break}this.clientDefinitions.push(Q(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),fields:d}));break;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:let p=[],y=[],N=new Map,I=(0,Se.newInvalidFieldNames)(),S=r.kind===ke.Kind.OBJECT_TYPE_DEFINITION;for(let[G,re]of r.fieldDataByFieldName){(0,Se.pushAuthorizationDirectives)(re,this.authorizationDataByParentTypeName.get(n));let se=(0,Se.getValidFieldArgumentNodes)(re,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);S&&(0,Se.validateExternalAndShareable)(re,I),p.push((0,Se.getNodeWithPersistedDirectivesByFieldData)(re,this.persistedDirectiveDefinitionByDirectiveName,se,this.errors)),!(0,Se.isNodeDataInaccessible)(re)&&(y.push((0,Se.getClientSchemaFieldNodeByFieldData)(re)),N.set(G,this.fieldDataToGraphFieldData(re)))}if(S&&(I.byShareable.size>0&&this.errors.push((0,xe.invalidFieldShareabilityError)(r,I.byShareable)),I.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,xe.allExternalFieldInstancesError)(n,I.subgraphNamesByExternalFieldName))),r.node.fields=p,this.internalGraph.initializeNode(n,N),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let C=(0,Bde.isNodeQuery)(n);if((0,Se.isNodeDataInaccessible)(r)){if(C){this.errors.push(xe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let G=C?xe.noQueryRootTypeError:(0,xe.allChildDefinitionsAreInaccessibleError)((0,_e.kindToTypeString)(r.kind),n,Fe.FIELD);this.errors.push(G);break}this.clientDefinitions.push(Q(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),fields:y}));break;case ke.Kind.SCALAR_TYPE_DEFINITION:if(fr.BASE_SCALARS.has(n))break;if(this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Q(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r)}));break;case ke.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,_e.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(r,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let V=this.getClientSchemaUnionMembers(r);if(V.length<1){this.errors.push((0,xe.allChildDefinitionsAreInaccessibleError)(Fe.UNION,n,"union member type"));break}this.clientDefinitions.push(Q(k({},r.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(r),types:V}));break}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,Se.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,Se.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let s of n.implementedInterfaceTypeNames)this.inaccessiblePaths.has(s)||i.push((0,Xs.stringToNamedTypeNode)(s));this.clientDefinitions.push(Q(k({},n.node),{directives:(0,Se.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[fr.AUTHENTICATED_DEFINITION,fr.DEPRECATED_DEFINITION,fr.INACCESSIBLE_DEFINITION,fr.REQUIRES_SCOPES_DEFINITION,fr.TAG_DEFINITION,fr.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[fr.AUTHENTICATED_DEFINITION,fr.DEPRECATED_DEFINITION,fr.REQUIRES_SCOPES_DEFINITION,fr.SCOPE_SCALAR_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Fe.LEFT_PARENTHESIS)[0].split(Fe.PERIOD),i=r[0];for(let s=0;s0&&this.errors.push((0,xe.invalidReferencesOfInaccessibleTypeError)((0,_e.kindToTypeString)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Fe.QUERY);if(!t||t.kind!==ke.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByFieldName.size<1){this.errors.push(xe.noQueryRootTypeError);return}for(let n of t.fieldDataByFieldName.values())if(!(0,Se.isNodeDataInaccessible)(n))return;this.errors.push(xe.noQueryRootTypeError)}validateSubscriptionFieldConditionFieldPath(t,n,r,i,s){let o=t.split(Fe.PERIOD);if(o.length<1)return s.push((0,xe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let u=n;if(this.inaccessiblePaths.has(u.renamedTypeName))return s.push((0,xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],u.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,u.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)return s.push((0,xe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=u.fieldDataByFieldName.get(p);if(!y)return s.push((0,xe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,u.renamedTypeName)),[];let N=`${u.renamedTypeName}.${p}`;if(!y.subgraphNames.has(i))return s.push((0,xe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N,i)),[];if(this.inaccessiblePaths.has(N))return s.push((0,xe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,N)),[];if(fr.BASE_SCALARS.has(y.namedTypeName)){u={kind:ke.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}u=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Fe.PARENT_DEFINITION_DATA)}return(0,Se.isLeafKind)(u.kind)?o:(s.push((0,xe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,_e.kindToTypeString)(u.kind),u.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,s,o,u){if(i>yI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([Fe.FIELD_PATH,Fe.VALUES]),p=new Set,y=new Set,N=[];for(let I of t.fields){let S=I.name.value,C=s+`.${S}`;switch(S){case Fe.FIELD_PATH:{if(d.has(Fe.FIELD_PATH))d.delete(Fe.FIELD_PATH);else{l=!0,p.add(Fe.FIELD_PATH);break}if(I.value.kind!==ke.Kind.STRING){N.push((0,xe.invalidInputFieldTypeErrorMessage)(C,Fe.STRING,(0,_e.kindToTypeString)(I.value.kind))),l=!0;break}let V=this.validateSubscriptionFieldConditionFieldPath(I.value.value,r,C,o,N);if(V.length<1){l=!0;break}n.fieldPath=V;break}case Fe.VALUES:{if(d.has(Fe.VALUES))d.delete(Fe.VALUES);else{l=!0,p.add(Fe.VALUES);break}let V=I.value.kind;if(V==ke.Kind.NULL||V==ke.Kind.OBJECT){N.push((0,xe.invalidInputFieldTypeErrorMessage)(C,Fe.LIST,(0,_e.kindToTypeString)(I.value.kind))),l=!0;break}if(V!==ke.Kind.LIST){n.values=[(0,Se.getSubscriptionFilterValue)(I.value)];break}let G=new Set,re=[];for(let se=0;se0){N.push((0,xe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(C,re));continue}if(G.size<1){l=!0,N.push((0,xe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(C));continue}n.values=[...G];break}default:l=!0,y.add(S)}}return l?(u.push((0,xe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(s,[...d],[...p],[...y],N)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,s,o,u){if(i>yI.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return u.push((0,xe.subscriptionFilterConditionDepthExceededErrorMessage)(s)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return u.push((0,xe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(s,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Fe.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return u.push((0,xe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(s,d)),!1;let p=s+`.${d}`;switch(l.value.kind){case ke.Kind.OBJECT:switch(d){case Fe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,s+".IN",o,u);case Fe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,s+".NOT",o,u);default:return u.push((0,xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Fe.LIST,Fe.OBJECT)),!1}case ke.Kind.LIST:{let y=[];switch(d){case Fe.AND_UPPER:{n.and=y;break}case Fe.OR_UPPER:{n.or=y;break}default:return u.push((0,xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,Fe.OBJECT,Fe.LIST)),!1}let N=l.value.values.length;if(N<1||N>5)return u.push((0,xe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,N)),!1;let I=!0,S=[];for(let C=0;C0?(u.push((0,xe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,S)),!1):I}default:{let y=Fe.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?Fe.LIST:Fe.OBJECT;return u.push((0,xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,y,(0,_e.kindToTypeString)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,s,o){if(!t.arguments||t.arguments.length!==1)return;let u=t.arguments[0];if(u.value.kind!==ke.Kind.OBJECT){this.errors.push((0,xe.invalidSubscriptionFilterDirectiveError)(r,[(0,xe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Fe.CONDITION,Fe.OBJECT,(0,_e.kindToTypeString)(u.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(u.value,l,n,0,Fe.CONDITION,o,d)){this.errors.push((0,xe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,_e.getValueOrDefault)(this.fieldConfigurationByFieldPath,r,()=>({argumentNames:[],fieldName:i,typeName:s})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessiblePaths.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,xe.invalidSubscriptionFilterDirectiveError)(t,[(0,xe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,Se.isNodeDataInaccessible)(r)||r.kind===ke.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,xe.orScopesLimitError)(_e.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let s of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Se.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,s,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];if(this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let s=this.internalGraph.validate();if(s.length>0)return{errors:s,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let n={kind:ke.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,ke.buildASTSchema)({kind:ke.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let s of this.internalSubgraphBySubgraphName.values())i.set(s.name,{configurationDataByTypeName:s.configurationDataByTypeName,schema:s.schema});for(let s of this.authorizationDataByParentTypeName.values())(0,_e.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,s);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,ke.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}getClientSchemaObjectBoolean(){return this.inaccessiblePaths.size<1&&this.tagNamesByPath.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let s=n.size;for(let[o,u]of r){let l=(0,_e.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,Se.isNodeDataInaccessible)(l)){s-=1;continue}(0,_e.doSetsIntersect)(i,u.tagNames)&&((0,_e.getValueOrDefault)(l.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}handleChildTagInclusions(t,n,r,i){let s=n.size;for(let[o,u]of n){if((0,Se.isNodeDataInaccessible)(u)){s-=1;continue}let l=r.get(o);(!l||!(0,_e.doSetsIntersect)(i,l.tagNames))&&((0,_e.getValueOrDefault)(u.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${t.name}.${o}`),s-=1)}s<1&&(t.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(fr.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,u]of this.parentTagDataByTypeName){let l=(0,_e.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Fe.PARENT_DEFINITION_DATA);if(!(0,Se.isNodeDataInaccessible)(l)){if((0,_e.doSetsIntersect)(t.tagNamesToExclude,u.tagNames)){l.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(u.childTagDataByChildName.size<1))switch(l.kind){case ke.Kind.SCALAR_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:continue;case ke.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,u.childTagDataByChildName,t.tagNamesToExclude);break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByValueName,u.childTagDataByChildName,t.tagNamesToExclude);break;default:let d=l.fieldDataByFieldName.size;for(let[p,y]of u.childTagDataByChildName){let N=(0,_e.getOrThrowError)(l.fieldDataByFieldName,p,`${o}.fieldDataByFieldName`);if((0,Se.isNodeDataInaccessible)(N)){d-=1;continue}if((0,_e.doSetsIntersect)(t.tagNamesToExclude,y.tagNames)){(0,_e.getValueOrDefault)(N.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1;continue}for(let[I,S]of y.tagNamesByArgumentName){let C=(0,_e.getOrThrowError)(N.argumentDataByArgumentName,I,`${p}.argumentDataByArgumentName`);(0,Se.isNodeDataInaccessible)(C)||(0,_e.doSetsIntersect)(S,S)&&((0,_e.getValueOrDefault)(C.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(C.renamedPath))}}d<1&&(l.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,u]of this.parentDefinitionDataByTypeName){if((0,Se.isNodeDataInaccessible)(u))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}if(!(0,_e.doSetsIntersect)(t.tagNamesToInclude,l.tagNames)){if(l.childTagDataByChildName.size<1){u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o);continue}switch(u.kind){case ke.Kind.SCALAR_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:continue;case ke.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(u,u.inputValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=u.fieldDataByFieldName.size;for(let[p,y]of u.fieldDataByFieldName){if((0,Se.isNodeDataInaccessible)(y)){d-=1;continue}let N=l.childTagDataByChildName.get(p);(!N||!(0,_e.doSetsIntersect)(t.tagNamesToInclude,N.tagNames))&&((0,_e.getValueOrDefault)(y.persistedDirectivesData.directives,Fe.INACCESSIBLE,()=>[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(`${o}.${p}`),d-=1)}d<1&&(u.persistedDirectivesData.directives.set(Fe.INACCESSIBLE,[(0,_e.generateSimpleDirective)(Fe.INACCESSIBLE)]),this.inaccessiblePaths.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,Se.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,warnings:this.warnings};let r={kind:ke.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,ke.buildASTSchema)({kind:ke.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),s=new Map;for(let o of this.internalSubgraphBySubgraphName.values())s.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,_e.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,o);return{federationResult:k({fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:s,federatedGraphAST:r,federatedGraphSchema:(0,ke.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName},this.getClientSchemaObjectBoolean()),warnings:this.warnings}}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};ud.FederationFactory=NI;function sF(e){if(e.length<1)return{errors:[xe.minimumSubgraphRequirementError],warnings:[]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,errors:i,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}=(0,Mde.batchNormalize)(e);if(i)return{errors:i,warnings:u};let l=new Map,d=new Map,p=new Set;for(let[y,N]of s)for(let[I,S]of N.entityInterfaces){(0,_e.getValueOrDefault)(d,I,()=>[]).push({subgraphName:y,concreteTypeNames:S.concreteTypeNames||new Set});let C=l.get(I);if(!C){p.add(I),l.set(I,(0,_e.newEntityInterfaceFederationData)(S,y));continue}(0,_e.upsertEntityInterfaceFederationData)(C,S,y)&&p.delete(I)}for(let y of p)d.delete(y);return d.size>0?{errors:[(0,xe.undefinedEntityInterfaceImplementationsError)(d,l)],warnings:u}:{federationFactory:new NI({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,entityInterfaceFederationDataByTypeName:l,internalSubgraphBySubgraphName:s,internalGraph:o,warnings:u}),warnings:u}}function jde(e){let{errors:t,federationFactory:n,warnings:r}=sF(e);return t||!n?{errors:t||[xe.federationFactoryInitializationFatalError],warnings:r}:n.federateSubgraphsInternal()}function $de(e,t){let{errors:n,federationFactory:r,warnings:i}=sF(e);if(n||!r)return{errors:n||[xe.federationFactoryInitializationFatalError],warnings:i};r.federateSubgraphData();let s=[(0,Gq.cloneDeep)(r)],{errors:o,federationResult:u,warnings:l}=r.buildFederationResult();if(o)return{errors:o,warnings:l};let d=t.size-1,p=new Map,y=0;for(let[N,I]of t){y!==d&&s.push((0,Gq.cloneDeep)(s[y]));let S=s[y].buildFederationContractResult(I);p.set(N,S),y++}return{federationResult:u,federationResultContainerByContractName:p,warnings:l}}function qde(e,t){let{errors:n,federationFactory:r,warnings:i}=sF(e);return n||!r?{errors:n||[xe.federationFactoryInitializationFatalError],warnings:i}:(r.federateSubgraphData(),r.buildFederationContractResult(t))}});var Yq=j(EI=>{"use strict";m();T();h();Object.defineProperty(EI,"__esModule",{value:!0});EI.COMPOSITION_VERSION=void 0;EI.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var gI=j(vn=>{"use strict";m();T();h();var Kde=vn&&vn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Xn=vn&&vn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Kde(t,e,n)};Object.defineProperty(vn,"__esModule",{value:!0});Xn($i(),vn);Xn(lD(),vn);Xn(To(),vn);Xn(pB(),vn);Xn(Qq(),vn);Xn(BR(),vn);Xn(iF(),vn);Xn(tF(),vn);Xn(Xl(),vn);Xn($R(),vn);Xn(pA(),vn);Xn(XR(),vn);Xn(YR(),vn);Xn(zR(),vn);Xn(Qa(),vn);Xn(Wh(),vn);Xn(hI(),vn);Xn(ef(),vn);Xn(jR(),vn);Xn(Yq(),vn);Xn(wc(),vn);Xn(ps(),vn);Xn(bi(),vn);Xn(hT(),vn)});var Upe={};Lf(Upe,{buildRouterConfiguration:()=>Cpe,federateSubgraphs:()=>xpe});m();T();h();var KF=u_(gI());m();T();h();m();T();h();function oF(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}m();T();h();m();T();h();var Jq={};m();T();h();function zq(e){return e!=null}m();T();h();m();T();h();Le();m();T();h();var Hq;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}Hq=function(t,n){return new e(t,n)}}else Hq=AggregateError;function Wq(e){return"errors"in e&&Array.isArray(e.errors)}var eK=3;function tK(e){return II(e,[])}function II(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Gde(e,t);default:return String(e)}}function Xq(e){return e instanceof J?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function Gde(e,t){if(e===null)return"null";if(e instanceof Error)return Wq(e)?Xq(e)+` +`+Zq(e.errors,t):Xq(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Qde(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:II(r,n)}else if(Array.isArray(e))return Zq(e,n);return Yde(e,n)}function Qde(e){return typeof e.toJSON=="function"}function Yde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>eK?"["+Jde(e)+"]":"{ "+n.map(([i,s])=>i+": "+II(s,t)).join(", ")+" }"}function Zq(e,t){if(e.length===0)return"[]";if(t.length>eK)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();h();Le();m();T();h();Le();function ma(e){if(Qe(e)){let t=ma(e.ofType);if(t.kind===R.NON_NULL_TYPE)throw new Error(`Invalid type node ${tK(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:R.NON_NULL_TYPE,type:t}}else if(Pt(e))return{kind:R.LIST_TYPE,type:ma(e.ofType)};return{kind:R.NAMED_TYPE,name:{kind:R.NAME,value:e.name}}}m();T();h();Le();function _I(e){if(e===null)return{kind:R.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=_I(n);r!=null&&t.push(r)}return{kind:R.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=_I(r);i&&t.push({kind:R.OBJECT_FIELD,name:{kind:R.NAME,value:n},value:i})}return{kind:R.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:R.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return zde.test(t)?{kind:R.INT,value:t}:{kind:R.FLOAT,value:t}}if(typeof e=="string")return{kind:R.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var zde=/^-?(?:0|[1-9][0-9]*)$/;m();T();h();m();T();h();function bI(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let s=e(r);return t.set(r,s),s}return i}}var XYe=bI(function(t){let n=Hde(t);return new Set([...n].map(r=>r.name))}),Hde=bI(function(t){let n=aF(t);return new Set(n.values())}),aF=bI(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let s=t.getSubscriptionType();return s&&n.set("subscription",s),n});function Wde(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Xde(e,n),s=i!=null?[i]:[],o=e.getDirectives();for(let u of o)yc(u)||s.push(Zde(u,e,n));for(let u in r){let l=r[u],d=uo(l),p=ui(l);if(!(d||p))if(ut(l))s.push(epe(l,e,n));else if(Nt(l))s.push(tpe(l,e,n));else if(pn(l))s.push(npe(l,e,n));else if(It(l))s.push(rpe(l,e,n));else if(sn(l))s.push(ipe(l,e,n));else if(tr(l))s.push(spe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:R.DOCUMENT,definitions:s}}function nK(e,t={}){let n=Wde(e,t);return Ft(n)}function Xde(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),s=[];if(e.astNode!=null&&s.push(e.astNode),e.extensionASTNodes!=null)for(let p of e.extensionASTNodes)s.push(p);for(let p of s)if(p.operationTypes)for(let y of p.operationTypes)i.set(y.operation,y);let o=aF(e);for(let[p,y]of i){let N=o.get(p);if(N!=null){let I=ma(N);y!=null?y.type=I:i.set(p,{kind:R.OPERATION_TYPE_DEFINITION,operation:p,type:I})}}let u=[...i.values()].filter(zq),l=cf(e,e,t);if(!u.length&&!l.length)return null;let d={kind:u!=null?R.SCHEMA_DEFINITION:R.SCHEMA_EXTENSION,operationTypes:u,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:R.STRING,value:e.description,block:!0}:void 0,d}function Zde(e,t,n){var r,i,s,o;return{kind:R.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description}:void 0,name:{kind:R.NAME,value:e.name},arguments:(s=e.args)===null||s===void 0?void 0:s.map(u=>rK(u,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(u=>({kind:R.NAME,value:u})))||[]}}function cf(e,t,n){let r=vI(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let s;if(r!=null)s=uF(t,r);else{s=[];for(let o of i)o.directives&&s.push(...o.directives)}return s}function SI(e,t,n){var r,i;let s=[],o=null,u=vI(e,n),l;return u!=null?l=uF(t,u):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(s=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=upe(e.deprecationReason)),o==null?s:[o].concat(s)}function rK(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:ma(e.type),defaultValue:e.defaultValue!==void 0&&(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0,directives:SI(e,t,n)}}function epe(e,t,n){var r,i;return{kind:R.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>iK(s,t,n)),interfaces:Object.values(e.getInterfaces()).map(s=>ma(s)),directives:cf(e,t,n)}}function tpe(e,t,n){var r,i;let s={kind:R.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>iK(o,t,n)),directives:cf(e,t,n)};return"getInterfaces"in e&&(s.interfaces=Object.values(e.getInterfaces()).map(o=>ma(o))),s}function npe(e,t,n){var r,i;return{kind:R.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:cf(e,t,n),types:e.getTypes().map(s=>ma(s))}}function rpe(e,t,n){var r,i;return{kind:R.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>ope(s,t,n)),directives:cf(e,t,n)}}function ipe(e,t,n){var r,i;return{kind:R.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},values:Object.values(e.getValues()).map(s=>ape(s,t,n)),directives:cf(e,t,n)}}function spe(e,t,n){var r,i,s;let o=vI(e,n),u=o?uF(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!u.some(d=>d.name.value==="specifiedBy")){let d={url:l};u.push(OI("specifiedBy",d))}return{kind:R.SCALAR_TYPE_DEFINITION,description:(s=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&s!==void 0?s:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:u}}function iK(e,t,n){var r,i;return{kind:R.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},arguments:e.args.map(s=>rK(s,t,n)),type:ma(e.type),directives:SI(e,t,n)}}function ope(e,t,n){var r,i,s;return{kind:R.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},type:ma(e.type),directives:SI(e,t,n),defaultValue:(s=Hr(e.defaultValue,e.type))!==null&&s!==void 0?s:void 0}}function ape(e,t,n){var r,i;return{kind:R.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:R.STRING,value:e.description,block:!0}:void 0,name:{kind:R.NAME,value:e.name},directives:SI(e,t,n)}}function upe(e){return OI("deprecated",{reason:e},Mo)}function OI(e,t,n){let r=[];if(n!=null)for(let i of n.args){let s=i.name,o=t[s];if(o!==void 0){let u=Hr(o,i.type);u&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:s},value:u})}}else for(let i in t){let s=t[i],o=_I(s);o&&r.push({kind:R.ARGUMENT,name:{kind:R.NAME,value:i},value:o})}return{kind:R.DIRECTIVE,name:{kind:R.NAME,value:e},arguments:r}}function uF(e,t){let n=[];for(let r in t){let i=t[r],s=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(OI(r,o,s));else n.push(OI(r,i,s))}return n}var JI=u_(gI(),1);Le();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();m();T();h();function Fn(e,t){if(!e)throw new Error(t)}var cpe=34028234663852886e22,lpe=-34028234663852886e22,dpe=4294967295,ppe=2147483647,fpe=-2147483648;function lf(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>ppe||edpe||e<0)throw new Error("invalid uint 32: "+e)}function DI(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>cpe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function lF(e,t,n){let r=Object.create(null),i=Object.create(null),s=[];for(let o of t){let u=uK(o);s.push(u),r[o.name]=u,i[o.no]=u}return{typeName:e,values:s,findName(o){return r[o]},findNumber(o){return i[o]}}}function aK(e,t,n){let r={};for(let i of t){let s=uK(i);r[s.localName]=s.no,r[s.no]=s.localName}return cF(r,e,t,n),r}function uK(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();h();m();T();h();var tt=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,s=i.makeReadOptions(n);return i.readMessage(this,s.readerFactory(t),t.byteLength,s),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,s=i.makeReadOptions(n);return i.readMessage(r,t,s,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),s=i.writerFactory();return r.writeMessage(this,s,i),s.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function cK(e,t,n,r){var i;let s=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[s]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[s];return Object.setPrototypeOf(o.prototype,new tt),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(u,l){return new o().fromBinary(u,l)},fromJson(u,l){return new o().fromJson(u,l)},fromJsonString(u,l){return new o().fromJsonString(u,l)},equals(u,l){return e.util.equals(o,u,l)}}),o}m();T();h();m();T();h();m();T();h();m();T();h();function dK(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>s,u=!(!(o>>>7)&&t==0),l=(u?o|128:o)&255;if(n.push(l),!u)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let s=3;s<31;s=s+7){let o=t>>>s,u=!!(o>>>7),l=(u?o|128:o)&255;if(n.push(l),!u)return}n.push(t>>>31&1)}}var AI=4294967296;function dF(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function s(o,u){let l=Number(e.slice(o,u));i*=n,r=r*n+l,r>=AI&&(i=i+(r/AI|0),r=r%AI)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?fK(r,i):fF(r,i)}function pK(e,t){let n=fF(e,t),r=n.hi&2147483648;r&&(n=fK(n.lo,n.hi));let i=pF(n.lo,n.hi);return r?"-"+i:i}function pF(e,t){if({lo:e,hi:t}=mpe(e,t),t<=2097151)return String(AI*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,s=n+r*6777216+i*6710656,o=r+i*8147497,u=i*2,l=1e7;return s>=l&&(o+=Math.floor(s/l),s%=l),o>=l&&(u+=Math.floor(o/l),o%=l),u.toString()+lK(o)+lK(s)}function mpe(e,t){return{lo:e>>>0,hi:t>>>0}}function fF(e,t){return{lo:e|0,hi:t|0}}function fK(e,t){return t=~t,e?e=~e+1:t+=1,fF(e,t)}var lK=e=>{let t=String(e);return"0000000".slice(t.length)+t};function mF(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function mK(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function hpe(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),s=BigInt("9223372036854775807"),o=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let d=typeof l=="bigint"?l:BigInt(l);if(d>s||du||dFn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>Fn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),dF(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),dF(i)},dec(i,s){return pK(i,s)},uDec(i,s){return pF(i,s)}}}var Ir=hpe();m();T();h();var Ee;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ee||(Ee={}));var Oo;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Oo||(Oo={}));function eu(e,t,n){if(t===n)return!0;if(e==Ee.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(bT(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return lf(t),mF(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){DI(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){bT(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){lf(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return lf(t),t=(t<<1^t>>31)>>>0,mF(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ir.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Ir.enc(t);return RI(n.lo,n.hi,this.buf),this}sint64(t){let n=Ir.enc(t),r=n.hi>>31,i=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return RI(i,s,this.buf),this}uint64(t){let n=Ir.uEnc(t);return RI(n.lo,n.hi,this.buf),this}},LI=class{constructor(t,n){this.varint64=dK,this.uint32=mK,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case mr.Varint:for(;this.buf[this.pos++]&128;);break;case mr.Bit64:this.pos+=4;case mr.Bit32:this.pos+=4;break;case mr.LengthDelimited:let r=this.uint32();this.pos+=r;break;case mr.StartGroup:let i;for(;(i=this.tag()[1])!==mr.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Ir.dec(...this.varint64())}uint64(){return Ir.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ir.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ir.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ir.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};function hK(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let s=typeof r=="function"?r():r;s.name=t.split(".").pop(),s.jsonName=`[${t}]`,i=e.util.newFieldList([s]).list()[0]}return i},runtime:e}}function PI(e){let t=e.field.localName,n=Object.create(null);return n[t]=Tpe(e),[n,()=>n[t]]}function Tpe(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 So(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function TK(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();h();m();T();h();var tu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),kI=[];for(let e=0;e>4,o=s,i=2;break;case 2:n[r++]=(o&15)<<4|(s&60)>>2,o=s,i=3;break;case 3:n[r++]=(o&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let s=0;s>2],i=(r&3)<<4,n=1;break;case 1:t+=tu[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=tu[i|r>>6],t+=tu[r&63],n=0;break}return n&&(t+=tu[i],t+="=",n==1&&(t+="=")),t}};m();T();h();function yK(e,t,n){EK(t,e);let r=t.runtime.bin.makeReadOptions(n),i=TK(e.getType().runtime.bin.listUnknownFields(e),t.field),[s,o]=PI(t);for(let u of i)t.runtime.bin.readField(s,r.readerFactory(u.data),t.field,u.wireType,r);return o()}function NK(e,t,n,r){EK(t,e);let i=t.runtime.bin.makeReadOptions(r),s=t.runtime.bin.makeWriteOptions(r);if(TF(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.data)}let o=s.writerFactory(),u=t.field;!u.opt&&!u.repeated&&(u.kind=="enum"||u.kind=="scalar")&&(u=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(u,n,o,s);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function EK(e,t){Fn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();h();function xI(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!FI(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function yF(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?So(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();h();m();T();h();function Do(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(tt.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function CI(e,t){return Do(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var L3e={"google.protobuf.DoubleValue":Ee.DOUBLE,"google.protobuf.FloatValue":Ee.FLOAT,"google.protobuf.Int64Value":Ee.INT64,"google.protobuf.UInt64Value":Ee.UINT64,"google.protobuf.Int32Value":Ee.INT32,"google.protobuf.UInt32Value":Ee.UINT32,"google.protobuf.BoolValue":Ee.BOOL,"google.protobuf.StringValue":Ee.STRING,"google.protobuf.BytesValue":Ee.BYTES};var gK={ignoreUnknownFields:!1},IK={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function ype(e){return e?Object.assign(Object.assign({},gK),e):gK}function Npe(e){return e?Object.assign(Object.assign({},IK),e):IK}var BI=Symbol(),UI=Symbol();function bK(){return{makeReadOptions:ype,makeWriteOptions:Npe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ha(t)}`);r=r!=null?r:new e;let i=new Map,s=n.typeRegistry;for(let[o,u]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(u===null&&l.kind=="scalar")continue;let d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}vK(r,u,l,n,e)}else{let d=!1;if(s!=null&&s.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=s.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[y,N]=PI(p);vK(y,u,p.field,n,p),NK(r,p,N(),n)}}if(!d&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!xI(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!gpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],u=_K(i,o,t);u!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=u)}let s=t.typeRegistry;if(s!=null&&s.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let u=s.findExtensionFor(n.typeName,o.no);if(u&&TF(e,u)){let l=yK(e,u,t),d=_K(u.field,l,t);d!==void 0&&(r[u.field.jsonName]=d)}}}catch(s){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,u=s instanceof Error?s.message:String(s);throw new Error(o+(u.length>0?`: ${u}`:""))}return r},readScalar(e,t,n){return OT(e,t,n!=null?n:Oo.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||FI(e,t)))return MI(e,t)},debug:ha}}function ha(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 vK(e,t,n,r,i){let s=n.localName;if(n.repeated){if(Fn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`);let o=e[s];for(let u of t){if(u===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(u)}`);switch(n.kind){case"message":o.push(n.T.fromJson(u,r));break;case"enum":let l=NF(n.T,u,r.ignoreUnknownFields,!0);l!==UI&&o.push(l);break;case"scalar":try{o.push(OT(n.T,u,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(u)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`);let o=e[s];for(let[u,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let d;try{d=Epe(n.K,u)}catch(p){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw p instanceof Error&&p.message.length>0&&(y+=`: ${p.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=NF(n.V.T,l,r.ignoreUnknownFields,!0);p!==UI&&(o[d]=p);break;case"scalar":try{o[d]=OT(n.V.T,l,Oo.BIGINT,!0)}catch(y){let N=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw y instanceof Error&&y.message.length>0&&(N+=`: ${y.message}`),new Error(N)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:s},s="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let u=e[s];Do(u)?u.fromJson(t,r):(e[s]=u=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[s]=o.fieldWrapper.unwrapField(u)));break;case"enum":let l=NF(n.T,t,r.ignoreUnknownFields,!1);switch(l){case BI:yF(n,e);break;case UI:break;default:e[s]=l;break}break;case"scalar":try{let d=OT(n.T,t,n.L,!1);switch(d){case BI:yF(n,e);break;default:e[s]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ha(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function Epe(e,t){if(e===Ee.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return OT(e,t,Oo.BIGINT,!0).toString()}function OT(e,t,n,r){if(t===null)return r?So(e,n):BI;switch(e){case Ee.DOUBLE:case Ee.FLOAT:if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ee.FLOAT&&DI(i),i;case Ee.INT32:case Ee.FIXED32:case Ee.SFIXED32:case Ee.SINT32:case Ee.UINT32:let s;if(typeof t=="number"?s=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(s=Number(t)),s===void 0)break;return e==Ee.UINT32||e==Ee.FIXED32?bT(s):lf(s),s;case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Ir.parse(t);return n?o.toString():o;case Ee.FIXED64:case Ee.UINT64:if(typeof t!="number"&&typeof t!="string")break;let u=Ir.uParse(t);return n?u.toString():u;case Ee.BOOL:if(typeof t!="boolean")break;return t;case Ee.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ee.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return hF.dec(t)}throw new Error}function NF(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:BI;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return UI;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ha(t)}`)}function gpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function _K(e,t,n){if(e.kind=="map"){Fn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,u]of i)r[o.toString()]=MI(e.V.T,u);break;case"message":for(let[o,u]of i)r[o.toString()]=u.toJson(n);break;case"enum":let s=e.V.T;for(let[o,u]of i)r[o.toString()]=EF(s,u,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){Fn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return MI(e.T,t);case"enum":return EF(e.T,t,n.enumAsInteger);case"message":return CI(e.T,t).toJson(n)}}function EF(e,t,n){var r;if(Fn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function MI(e,t){switch(e){case Ee.INT32:case Ee.SFIXED32:case Ee.SINT32:case Ee.FIXED32:case Ee.UINT32:return Fn(typeof t=="number"),t;case Ee.FLOAT:case Ee.DOUBLE:return Fn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ee.STRING:return Fn(typeof t=="string"),t;case Ee.BOOL:return Fn(typeof t=="boolean"),t;case Ee.UINT64:case Ee.FIXED64:case Ee.INT64:case Ee.SFIXED64:case Ee.SINT64:return Fn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ee.BYTES:return Fn(t instanceof Uint8Array),hF.enc(t)}}m();T();h();var df=Symbol("@bufbuild/protobuf/unknown-fields"),OK={readUnknownFields:!0,readerFactory:e=>new LI(e)},SK={writeUnknownFields:!0,writerFactory:()=>new wI};function Ipe(e){return e?Object.assign(Object.assign({},OK),e):OK}function vpe(e){return e?Object.assign(Object.assign({},SK),e):SK}function FK(){return{makeReadOptions:Ipe,makeWriteOptions:vpe,listUnknownFields(e){var t;return(t=e[df])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[df]},writeUnknownFields(e,t){let r=e[df];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[df])||(i[df]=[]),i[df].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let s=e.getType(),o=i?t.len:t.pos+n,u,l;for(;t.pos0&&(l=bpe),s){let N=e[o];if(r==mr.LengthDelimited&&u!=Ee.STRING&&u!=Ee.BYTES){let S=t.uint32()+t.pos;for(;t.posDo(N,y)?N:new y(N));else{let N=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?s[i]=DT(N):s[i]=N:s[i]=Do(N,y)?N:new y(N)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],s=n[r.localName];if(r.repeated){if(i.length!==s.length)return!1;switch(r.kind){case"message":return i.every((o,u)=>r.T.equals(o,s[u]));case"scalar":return i.every((o,u)=>eu(r.T,o,s[u]));case"enum":return i.every((o,u)=>eu(Ee.INT32,o,s[u]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,s);case"enum":return eu(Ee.INT32,i,s);case"scalar":return eu(r.T,i,s);case"oneof":if(i.case!==s.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,s.value);case"enum":return eu(Ee.INT32,i.value,s.value);case"scalar":return eu(o.T,i.value,s.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let u=Object.keys(i).concat(Object.keys(s));switch(r.V.kind){case"message":let l=r.V.T;return u.every(p=>l.equals(i[p],s[p]));case"enum":return u.every(p=>eu(Ee.INT32,i[p],s[p]));case"scalar":let d=r.V.T;return u.every(p=>eu(d,i[p],s[p]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let s=e[i.localName],o;if(i.repeated)o=s.map($I);else if(i.kind=="map"){o=r[i.localName];for(let[u,l]of Object.entries(s))o[u]=$I(l)}else i.kind=="oneof"?o=i.findField(s.case)?{case:s.case,value:$I(s.value)}:{case:void 0}:o=$I(s);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function $I(e){if(e===void 0)return e;if(Do(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function DT(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function PK(e,t,n){return{syntax:e,json:bK(),bin:FK(),util:Object.assign(Object.assign({},LK()),{newFieldList:t,initFields:n}),makeMessageType(r,i,s){return cK(this,r,i,s)},makeEnum:aK,makeEnumType:lF,getEnumType:oK,makeExtension(r,i,s){return hK(this,r,i,s)}}}m();T();h();var qI=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};m();T();h();m();T();h();m();T();h();function gF(e,t){let n=CK(e);return t?n:Fpe(Rpe(n))}function kK(e){return gF(e,!1)}var xK=CK;function CK(e){let t=!1,n=[];for(let r=0;r`${e}$`,Rpe=e=>Ape.has(e)?UK(e):e,Fpe=e=>Dpe.has(e)?UK(e):e;var KI=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=kK(t)}addField(t){Fn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;nnew qI(e,t=>MK(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=So(t.T,t.L);break;case"message":break}}});var pf;(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"})(pf||(pf={}));q.util.setEnumType(pf,"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"}]);var nu;(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"})(nu||(nu={}));q.util.setEnumType(nu,"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 ru;(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"})(ru||(ru={}));q.util.setEnumType(ru,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();h();var IF;(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"})(IF||(IF={}));q.util.setEnumType(IF,"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 ld;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(ld||(ld={}));q.util.setEnumType(ld,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var jc;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(jc||(jc={}));q.util.setEnumType(jc,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Wu;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Wu||(Wu={}));q.util.setEnumType(Wu,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var $c;(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"})($c||($c={}));q.util.setEnumType($c,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var dd;(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"})(dd||(dd={}));q.util.setEnumType(dd,"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 iu=class iu extends tt{constructor(n){super();b(this,"id","");b(this,"name","");b(this,"routingUrl","");q.util.initPartial(n,this)}static fromBinary(n,r){return new iu().fromBinary(n,r)}static fromJson(n,r){return new iu().fromJson(n,r)}static fromJsonString(n,r){return new iu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(iu,n,r)}};b(iu,"runtime",q),b(iu,"typeName","wg.cosmo.node.v1.Subgraph"),b(iu,"fields",q.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 GI=iu,su=class su extends tt{constructor(n){super();b(this,"configByFeatureFlagName",{});q.util.initPartial(n,this)}static fromBinary(n,r){return new su().fromBinary(n,r)}static fromJson(n,r){return new su().fromJson(n,r)}static fromJsonString(n,r){return new su().fromJsonString(n,r)}static equals(n,r){return q.util.equals(su,n,r)}};b(su,"runtime",q),b(su,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),b(su,"fields",q.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:_F}}]));var vF=su,ou=class ou extends tt{constructor(n){super();b(this,"engineConfig");b(this,"version","");b(this,"subgraphs",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new ou().fromBinary(n,r)}static fromJson(n,r){return new ou().fromJson(n,r)}static fromJsonString(n,r){return new ou().fromJsonString(n,r)}static equals(n,r){return q.util.equals(ou,n,r)}};b(ou,"runtime",q),b(ou,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),b(ou,"fields",q.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ff},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:GI,repeated:!0}]));var _F=ou,au=class au extends tt{constructor(n){super();b(this,"engineConfig");b(this,"version","");b(this,"subgraphs",[]);b(this,"featureFlagConfigs");b(this,"compatibilityVersion","");q.util.initPartial(n,this)}static fromBinary(n,r){return new au().fromBinary(n,r)}static fromJson(n,r){return new au().fromJson(n,r)}static fromJsonString(n,r){return new au().fromJsonString(n,r)}static equals(n,r){return q.util.equals(au,n,r)}};b(au,"runtime",q),b(au,"typeName","wg.cosmo.node.v1.RouterConfig"),b(au,"fields",q.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:ff},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:GI,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:vF,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var AT=au,uu=class uu extends tt{constructor(n){super();b(this,"code",pf.OK);b(this,"details");q.util.initPartial(n,this)}static fromBinary(n,r){return new uu().fromBinary(n,r)}static fromJson(n,r){return new uu().fromJson(n,r)}static fromJsonString(n,r){return new uu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(uu,n,r)}};b(uu,"runtime",q),b(uu,"typeName","wg.cosmo.node.v1.Response"),b(uu,"fields",q.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:q.getEnumType(pf)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var bF=uu,cu=class cu extends tt{constructor(n){super();b(this,"code",0);b(this,"message","");q.util.initPartial(n,this)}static fromBinary(n,r){return new cu().fromBinary(n,r)}static fromJson(n,r){return new cu().fromJson(n,r)}static fromJsonString(n,r){return new cu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(cu,n,r)}};b(cu,"runtime",q),b(cu,"typeName","wg.cosmo.node.v1.ResponseStatus"),b(cu,"fields",q.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var BK=cu,lu=class lu extends tt{constructor(n){super();b(this,"accountLimits");b(this,"graphPublicKey","");q.util.initPartial(n,this)}static fromBinary(n,r){return new lu().fromBinary(n,r)}static fromJson(n,r){return new lu().fromJson(n,r)}static fromJsonString(n,r){return new lu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(lu,n,r)}};b(lu,"runtime",q),b(lu,"typeName","wg.cosmo.node.v1.RegistrationInfo"),b(lu,"fields",q.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:SF},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var OF=lu,du=class du extends tt{constructor(n){super();b(this,"traceSamplingRate",0);q.util.initPartial(n,this)}static fromBinary(n,r){return new du().fromBinary(n,r)}static fromJson(n,r){return new du().fromJson(n,r)}static fromJsonString(n,r){return new du().fromJsonString(n,r)}static equals(n,r){return q.util.equals(du,n,r)}};b(du,"runtime",q),b(du,"typeName","wg.cosmo.node.v1.AccountLimits"),b(du,"fields",q.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var SF=du,pu=class pu extends tt{constructor(t){super(),q.util.initPartial(t,this)}static fromBinary(t,n){return new pu().fromBinary(t,n)}static fromJson(t,n){return new pu().fromJson(t,n)}static fromJsonString(t,n){return new pu().fromJsonString(t,n)}static equals(t,n){return q.util.equals(pu,t,n)}};b(pu,"runtime",q),b(pu,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),b(pu,"fields",q.util.newFieldList(()=>[]));var VK=pu,fu=class fu extends tt{constructor(n){super();b(this,"response");b(this,"registrationInfo");q.util.initPartial(n,this)}static fromBinary(n,r){return new fu().fromBinary(n,r)}static fromJson(n,r){return new fu().fromJson(n,r)}static fromJsonString(n,r){return new fu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(fu,n,r)}};b(fu,"runtime",q),b(fu,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),b(fu,"fields",q.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:bF},{no:2,name:"registrationInfo",kind:"message",T:OF,opt:!0}]));var jK=fu,mu=class mu extends tt{constructor(n){super();b(this,"defaultFlushInterval",Ir.zero);b(this,"datasourceConfigurations",[]);b(this,"fieldConfigurations",[]);b(this,"graphqlSchema","");b(this,"typeConfigurations",[]);b(this,"stringStorage",{});b(this,"graphqlClientSchema");q.util.initPartial(n,this)}static fromBinary(n,r){return new mu().fromBinary(n,r)}static fromJson(n,r){return new mu().fromJson(n,r)}static fromJsonString(n,r){return new mu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(mu,n,r)}};b(mu,"runtime",q),b(mu,"typeName","wg.cosmo.node.v1.EngineConfiguration"),b(mu,"fields",q.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:RT,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:PT,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:DF,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 ff=mu,hu=class hu extends tt{constructor(n){super();b(this,"kind",jc.STATIC);b(this,"rootNodes",[]);b(this,"childNodes",[]);b(this,"overrideFieldPathFromAlias",!1);b(this,"customGraphql");b(this,"customStatic");b(this,"directives",[]);b(this,"requestTimeoutSeconds",Ir.zero);b(this,"id","");b(this,"keys",[]);b(this,"provides",[]);b(this,"requires",[]);b(this,"customEvents");b(this,"entityInterfaces",[]);b(this,"interfaceObjects",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new hu().fromBinary(n,r)}static fromJson(n,r){return new hu().fromJson(n,r)}static fromJsonString(n,r){return new hu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(hu,n,r)}};b(hu,"runtime",q),b(hu,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),b(hu,"fields",q.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:q.getEnumType(jc)},{no:2,name:"root_nodes",kind:"message",T:mf,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:mf,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:CT},{no:6,name:"custom_static",kind:"message",T:RF},{no:7,name:"directives",kind:"message",T:FF,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:cd,repeated:!0},{no:11,name:"provides",kind:"message",T:cd,repeated:!0},{no:12,name:"requires",kind:"message",T:cd,repeated:!0},{no:13,name:"custom_events",kind:"message",T:fd},{no:14,name:"entity_interfaces",kind:"message",T:hf,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:hf,repeated:!0}]));var RT=hu,Tu=class Tu extends tt{constructor(n){super();b(this,"name","");b(this,"sourceType",ld.OBJECT_FIELD);q.util.initPartial(n,this)}static fromBinary(n,r){return new Tu().fromBinary(n,r)}static fromJson(n,r){return new Tu().fromJson(n,r)}static fromJsonString(n,r){return new Tu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Tu,n,r)}};b(Tu,"runtime",q),b(Tu,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),b(Tu,"fields",q.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:q.getEnumType(ld)}]));var FT=Tu,yu=class yu extends tt{constructor(n){super();b(this,"requiredAndScopes",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new yu().fromBinary(n,r)}static fromJson(n,r){return new yu().fromJson(n,r)}static fromJsonString(n,r){return new yu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(yu,n,r)}};b(yu,"runtime",q),b(yu,"typeName","wg.cosmo.node.v1.Scopes"),b(yu,"fields",q.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var wT=yu,Nu=class Nu extends tt{constructor(n){super();b(this,"requiresAuthentication",!1);b(this,"requiredOrScopes",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Nu().fromBinary(n,r)}static fromJson(n,r){return new Nu().fromJson(n,r)}static fromJsonString(n,r){return new Nu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Nu,n,r)}};b(Nu,"runtime",q),b(Nu,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),b(Nu,"fields",q.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:wT,repeated:!0}]));var LT=Nu,Eu=class Eu extends tt{constructor(n){super();b(this,"typeName","");b(this,"fieldName","");b(this,"argumentsConfiguration",[]);b(this,"authorizationConfiguration");b(this,"subscriptionFilterCondition");q.util.initPartial(n,this)}static fromBinary(n,r){return new Eu().fromBinary(n,r)}static fromJson(n,r){return new Eu().fromJson(n,r)}static fromJsonString(n,r){return new Eu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Eu,n,r)}};b(Eu,"runtime",q),b(Eu,"typeName","wg.cosmo.node.v1.FieldConfiguration"),b(Eu,"fields",q.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:FT,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:LT},{no:5,name:"subscription_filter_condition",kind:"message",T:qc,opt:!0}]));var PT=Eu,gu=class gu extends tt{constructor(n){super();b(this,"typeName","");b(this,"renameTo","");q.util.initPartial(n,this)}static fromBinary(n,r){return new gu().fromBinary(n,r)}static fromJson(n,r){return new gu().fromJson(n,r)}static fromJsonString(n,r){return new gu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(gu,n,r)}};b(gu,"runtime",q),b(gu,"typeName","wg.cosmo.node.v1.TypeConfiguration"),b(gu,"fields",q.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var DF=gu,Iu=class Iu extends tt{constructor(n){super();b(this,"typeName","");b(this,"fieldNames",[]);b(this,"externalFieldNames",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Iu().fromBinary(n,r)}static fromJson(n,r){return new Iu().fromJson(n,r)}static fromJsonString(n,r){return new Iu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Iu,n,r)}};b(Iu,"runtime",q),b(Iu,"typeName","wg.cosmo.node.v1.TypeField"),b(Iu,"fields",q.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var mf=Iu,vu=class vu extends tt{constructor(n){super();b(this,"fieldName","");b(this,"typeName","");q.util.initPartial(n,this)}static fromBinary(n,r){return new vu().fromBinary(n,r)}static fromJson(n,r){return new vu().fromJson(n,r)}static fromJsonString(n,r){return new vu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(vu,n,r)}};b(vu,"runtime",q),b(vu,"typeName","wg.cosmo.node.v1.FieldCoordinates"),b(vu,"fields",q.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var kT=vu,_u=class _u extends tt{constructor(n){super();b(this,"fieldCoordinatesPath",[]);b(this,"fieldPath",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new _u().fromBinary(n,r)}static fromJson(n,r){return new _u().fromJson(n,r)}static fromJsonString(n,r){return new _u().fromJsonString(n,r)}static equals(n,r){return q.util.equals(_u,n,r)}};b(_u,"runtime",q),b(_u,"typeName","wg.cosmo.node.v1.FieldSetCondition"),b(_u,"fields",q.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:kT,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var xT=_u,bu=class bu extends tt{constructor(n){super();b(this,"typeName","");b(this,"fieldName","");b(this,"selectionSet","");b(this,"disableEntityResolver",!1);b(this,"conditions",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new bu().fromBinary(n,r)}static fromJson(n,r){return new bu().fromJson(n,r)}static fromJsonString(n,r){return new bu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(bu,n,r)}};b(bu,"runtime",q),b(bu,"typeName","wg.cosmo.node.v1.RequiredField"),b(bu,"fields",q.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:xT,repeated:!0}]));var cd=bu,Ou=class Ou extends tt{constructor(n){super();b(this,"interfaceTypeName","");b(this,"concreteTypeNames",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Ou().fromBinary(n,r)}static fromJson(n,r){return new Ou().fromJson(n,r)}static fromJsonString(n,r){return new Ou().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Ou,n,r)}};b(Ou,"runtime",q),b(Ou,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),b(Ou,"fields",q.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 hf=Ou,Su=class Su extends tt{constructor(n){super();b(this,"url");b(this,"method",dd.GET);b(this,"header",{});b(this,"body");b(this,"query",[]);b(this,"urlEncodeBody",!1);b(this,"mtls");b(this,"baseUrl");b(this,"path");b(this,"httpProxyUrl");q.util.initPartial(n,this)}static fromBinary(n,r){return new Su().fromBinary(n,r)}static fromJson(n,r){return new Su().fromJson(n,r)}static fromJsonString(n,r){return new Su().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Su,n,r)}};b(Su,"runtime",q),b(Su,"typeName","wg.cosmo.node.v1.FetchConfiguration"),b(Su,"fields",q.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Pi},{no:2,name:"method",kind:"enum",T:q.getEnumType(dd)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:LF}},{no:4,name:"body",kind:"message",T:Pi},{no:5,name:"query",kind:"message",T:wF,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:PF},{no:9,name:"base_url",kind:"message",T:Pi},{no:10,name:"path",kind:"message",T:Pi},{no:11,name:"http_proxy_url",kind:"message",T:Pi,opt:!0}]));var AF=Su,Du=class Du extends tt{constructor(n){super();b(this,"statusCode",Ir.zero);b(this,"typeName","");b(this,"injectStatusCodeIntoBody",!1);q.util.initPartial(n,this)}static fromBinary(n,r){return new Du().fromBinary(n,r)}static fromJson(n,r){return new Du().fromJson(n,r)}static fromJsonString(n,r){return new Du().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Du,n,r)}};b(Du,"runtime",q),b(Du,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),b(Du,"fields",q.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 $K=Du,Au=class Au extends tt{constructor(n){super();b(this,"fetch");b(this,"subscription");b(this,"federation");b(this,"upstreamSchema");b(this,"customScalarTypeFields",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Au().fromBinary(n,r)}static fromJson(n,r){return new Au().fromJson(n,r)}static fromJsonString(n,r){return new Au().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Au,n,r)}};b(Au,"runtime",q),b(Au,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),b(Au,"fields",q.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:AF},{no:2,name:"subscription",kind:"message",T:kF},{no:3,name:"federation",kind:"message",T:xF},{no:4,name:"upstream_schema",kind:"message",T:VT},{no:6,name:"custom_scalar_type_fields",kind:"message",T:CF,repeated:!0}]));var CT=Au,Ru=class Ru extends tt{constructor(n){super();b(this,"consumerName","");b(this,"streamName","");b(this,"consumerInactiveThreshold",0);q.util.initPartial(n,this)}static fromBinary(n,r){return new Ru().fromBinary(n,r)}static fromJson(n,r){return new Ru().fromJson(n,r)}static fromJsonString(n,r){return new Ru().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Ru,n,r)}};b(Ru,"runtime",q),b(Ru,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),b(Ru,"fields",q.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 UT=Ru,Fu=class Fu extends tt{constructor(n){super();b(this,"engineEventConfiguration");b(this,"subjects",[]);b(this,"streamConfiguration");q.util.initPartial(n,this)}static fromBinary(n,r){return new Fu().fromBinary(n,r)}static fromJson(n,r){return new Fu().fromJson(n,r)}static fromJsonString(n,r){return new Fu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Fu,n,r)}};b(Fu,"runtime",q),b(Fu,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),b(Fu,"fields",q.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:pd},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:UT}]));var MT=Fu,wu=class wu extends tt{constructor(n){super();b(this,"engineEventConfiguration");b(this,"topics",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new wu().fromBinary(n,r)}static fromJson(n,r){return new wu().fromJson(n,r)}static fromJsonString(n,r){return new wu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(wu,n,r)}};b(wu,"runtime",q),b(wu,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),b(wu,"fields",q.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:pd},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var BT=wu,Lu=class Lu extends tt{constructor(n){super();b(this,"providerId","");b(this,"type",Wu.PUBLISH);b(this,"typeName","");b(this,"fieldName","");q.util.initPartial(n,this)}static fromBinary(n,r){return new Lu().fromBinary(n,r)}static fromJson(n,r){return new Lu().fromJson(n,r)}static fromJsonString(n,r){return new Lu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Lu,n,r)}};b(Lu,"runtime",q),b(Lu,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),b(Lu,"fields",q.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:q.getEnumType(Wu)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var pd=Lu,Pu=class Pu extends tt{constructor(n){super();b(this,"nats",[]);b(this,"kafka",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Pu().fromBinary(n,r)}static fromJson(n,r){return new Pu().fromJson(n,r)}static fromJsonString(n,r){return new Pu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Pu,n,r)}};b(Pu,"runtime",q),b(Pu,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),b(Pu,"fields",q.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:MT,repeated:!0},{no:2,name:"kafka",kind:"message",T:BT,repeated:!0}]));var fd=Pu,ku=class ku extends tt{constructor(n){super();b(this,"data");q.util.initPartial(n,this)}static fromBinary(n,r){return new ku().fromBinary(n,r)}static fromJson(n,r){return new ku().fromJson(n,r)}static fromJsonString(n,r){return new ku().fromJsonString(n,r)}static equals(n,r){return q.util.equals(ku,n,r)}};b(ku,"runtime",q),b(ku,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),b(ku,"fields",q.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Pi}]));var RF=ku,xu=class xu extends tt{constructor(n){super();b(this,"kind",$c.STATIC_CONFIGURATION_VARIABLE);b(this,"staticVariableContent","");b(this,"environmentVariableName","");b(this,"environmentVariableDefaultValue","");b(this,"placeholderVariableName","");q.util.initPartial(n,this)}static fromBinary(n,r){return new xu().fromBinary(n,r)}static fromJson(n,r){return new xu().fromJson(n,r)}static fromJsonString(n,r){return new xu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(xu,n,r)}};b(xu,"runtime",q),b(xu,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),b(xu,"fields",q.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:q.getEnumType($c)},{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 Pi=xu,Cu=class Cu extends tt{constructor(n){super();b(this,"directiveName","");b(this,"renameTo","");q.util.initPartial(n,this)}static fromBinary(n,r){return new Cu().fromBinary(n,r)}static fromJson(n,r){return new Cu().fromJson(n,r)}static fromJsonString(n,r){return new Cu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Cu,n,r)}};b(Cu,"runtime",q),b(Cu,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),b(Cu,"fields",q.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var FF=Cu,Uu=class Uu extends tt{constructor(n){super();b(this,"name","");b(this,"value","");q.util.initPartial(n,this)}static fromBinary(n,r){return new Uu().fromBinary(n,r)}static fromJson(n,r){return new Uu().fromJson(n,r)}static fromJsonString(n,r){return new Uu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Uu,n,r)}};b(Uu,"runtime",q),b(Uu,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),b(Uu,"fields",q.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var wF=Uu,Mu=class Mu extends tt{constructor(n){super();b(this,"values",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Mu().fromBinary(n,r)}static fromJson(n,r){return new Mu().fromJson(n,r)}static fromJsonString(n,r){return new Mu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Mu,n,r)}};b(Mu,"runtime",q),b(Mu,"typeName","wg.cosmo.node.v1.HTTPHeader"),b(Mu,"fields",q.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Pi,repeated:!0}]));var LF=Mu,Bu=class Bu extends tt{constructor(n){super();b(this,"key");b(this,"cert");b(this,"insecureSkipVerify",!1);q.util.initPartial(n,this)}static fromBinary(n,r){return new Bu().fromBinary(n,r)}static fromJson(n,r){return new Bu().fromJson(n,r)}static fromJsonString(n,r){return new Bu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Bu,n,r)}};b(Bu,"runtime",q),b(Bu,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),b(Bu,"fields",q.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Pi},{no:2,name:"cert",kind:"message",T:Pi},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var PF=Bu,Vu=class Vu extends tt{constructor(n){super();b(this,"enabled",!1);b(this,"url");b(this,"useSSE");b(this,"protocol");b(this,"websocketSubprotocol");q.util.initPartial(n,this)}static fromBinary(n,r){return new Vu().fromBinary(n,r)}static fromJson(n,r){return new Vu().fromJson(n,r)}static fromJsonString(n,r){return new Vu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Vu,n,r)}};b(Vu,"runtime",q),b(Vu,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),b(Vu,"fields",q.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Pi},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:q.getEnumType(nu),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:q.getEnumType(ru),opt:!0}]));var kF=Vu,ju=class ju extends tt{constructor(n){super();b(this,"enabled",!1);b(this,"serviceSdl","");q.util.initPartial(n,this)}static fromBinary(n,r){return new ju().fromBinary(n,r)}static fromJson(n,r){return new ju().fromJson(n,r)}static fromJsonString(n,r){return new ju().fromJsonString(n,r)}static equals(n,r){return q.util.equals(ju,n,r)}};b(ju,"runtime",q),b(ju,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),b(ju,"fields",q.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var xF=ju,$u=class $u extends tt{constructor(n){super();b(this,"key","");q.util.initPartial(n,this)}static fromBinary(n,r){return new $u().fromBinary(n,r)}static fromJson(n,r){return new $u().fromJson(n,r)}static fromJsonString(n,r){return new $u().fromJsonString(n,r)}static equals(n,r){return q.util.equals($u,n,r)}};b($u,"runtime",q),b($u,"typeName","wg.cosmo.node.v1.InternedString"),b($u,"fields",q.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var VT=$u,qu=class qu extends tt{constructor(n){super();b(this,"typeName","");b(this,"fieldName","");q.util.initPartial(n,this)}static fromBinary(n,r){return new qu().fromBinary(n,r)}static fromJson(n,r){return new qu().fromJson(n,r)}static fromJsonString(n,r){return new qu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(qu,n,r)}};b(qu,"runtime",q),b(qu,"typeName","wg.cosmo.node.v1.SingleTypeField"),b(qu,"fields",q.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var CF=qu,Ku=class Ku extends tt{constructor(n){super();b(this,"fieldPath",[]);b(this,"json","");q.util.initPartial(n,this)}static fromBinary(n,r){return new Ku().fromBinary(n,r)}static fromJson(n,r){return new Ku().fromJson(n,r)}static fromJsonString(n,r){return new Ku().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Ku,n,r)}};b(Ku,"runtime",q),b(Ku,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),b(Ku,"fields",q.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var jT=Ku,Zs=class Zs extends tt{constructor(n){super();b(this,"and",[]);b(this,"in");b(this,"not");b(this,"or",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Zs,n,r)}};b(Zs,"runtime",q),b(Zs,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),b(Zs,"fields",q.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Zs,repeated:!0},{no:2,name:"in",kind:"message",T:jT,opt:!0},{no:3,name:"not",kind:"message",T:Zs,opt:!0},{no:4,name:"or",kind:"message",T:Zs,repeated:!0}]));var qc=Zs,Gu=class Gu extends tt{constructor(n){super();b(this,"operations",[]);q.util.initPartial(n,this)}static fromBinary(n,r){return new Gu().fromBinary(n,r)}static fromJson(n,r){return new Gu().fromJson(n,r)}static fromJsonString(n,r){return new Gu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Gu,n,r)}};b(Gu,"runtime",q),b(Gu,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),b(Gu,"fields",q.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:UF,repeated:!0}]));var qK=Gu,Qu=class Qu extends tt{constructor(n){super();b(this,"request");b(this,"client");q.util.initPartial(n,this)}static fromBinary(n,r){return new Qu().fromBinary(n,r)}static fromJson(n,r){return new Qu().fromJson(n,r)}static fromJsonString(n,r){return new Qu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Qu,n,r)}};b(Qu,"runtime",q),b(Qu,"typeName","wg.cosmo.node.v1.Operation"),b(Qu,"fields",q.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:MF},{no:2,name:"client",kind:"message",T:jF}]));var UF=Qu,Yu=class Yu extends tt{constructor(n){super();b(this,"operationName","");b(this,"query","");b(this,"extensions");q.util.initPartial(n,this)}static fromBinary(n,r){return new Yu().fromBinary(n,r)}static fromJson(n,r){return new Yu().fromJson(n,r)}static fromJsonString(n,r){return new Yu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Yu,n,r)}};b(Yu,"runtime",q),b(Yu,"typeName","wg.cosmo.node.v1.OperationRequest"),b(Yu,"fields",q.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:BF}]));var MF=Yu,Ju=class Ju extends tt{constructor(n){super();b(this,"persistedQuery");q.util.initPartial(n,this)}static fromBinary(n,r){return new Ju().fromBinary(n,r)}static fromJson(n,r){return new Ju().fromJson(n,r)}static fromJsonString(n,r){return new Ju().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Ju,n,r)}};b(Ju,"runtime",q),b(Ju,"typeName","wg.cosmo.node.v1.Extension"),b(Ju,"fields",q.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:VF}]));var BF=Ju,zu=class zu extends tt{constructor(n){super();b(this,"sha256Hash","");b(this,"version",0);q.util.initPartial(n,this)}static fromBinary(n,r){return new zu().fromBinary(n,r)}static fromJson(n,r){return new zu().fromJson(n,r)}static fromJsonString(n,r){return new zu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(zu,n,r)}};b(zu,"runtime",q),b(zu,"typeName","wg.cosmo.node.v1.PersistedQuery"),b(zu,"fields",q.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var VF=zu,Hu=class Hu extends tt{constructor(n){super();b(this,"name","");b(this,"version","");q.util.initPartial(n,this)}static fromBinary(n,r){return new Hu().fromBinary(n,r)}static fromJson(n,r){return new Hu().fromJson(n,r)}static fromJsonString(n,r){return new Hu().fromJsonString(n,r)}static equals(n,r){return q.util.equals(Hu,n,r)}};b(Hu,"runtime",q),b(Hu,"typeName","wg.cosmo.node.v1.ClientInfo"),b(Hu,"fields",q.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var jF=Hu;m();T();h();var YI=u_(gI(),1);function wpe(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let s=i.split(".");if(s.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new kT({fieldName:s[1],typeName:s[0]}))}t.push(new xT({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function $F(e,t,n){if(e)for(let r of e){let i=wpe(r);t.push(new cd(k(k({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function KK(e){switch(e){case"publish":return Wu.PUBLISH;case"request":return Wu.REQUEST;case"subscribe":return Wu.SUBSCRIBE}}function GK(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new fd({nats:[],kafka:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,s=[...r.fieldNames],o=new mf({typeName:i,fieldNames:s});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let d=new hf({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(d):t.entityInterfaces.push(d)}$F(r.keys,t.keys,i),$F(r.provides,t.provides,i),$F(r.requires,t.requires,i);let u=[],l=[];for(let d of(n=r.events)!=null?n:[])switch(d.providerType){case YI.PROVIDER_TYPE_KAFKA:{l.push(new BT({engineEventConfiguration:new pd({fieldName:d.fieldName,providerId:d.providerId,type:KK(d.type),typeName:i}),topics:d.topics}));break}case YI.PROVIDER_TYPE_NATS:{u.push(new MT(k({engineEventConfiguration:new pd({fieldName:d.fieldName,providerId:d.providerId,type:KK(d.type),typeName:i}),subjects:d.subjects},d.streamConfiguration?{streamConfiguration:new UT({consumerInactiveThreshold:d.streamConfiguration.consumerInactiveThreshold,consumerName:d.streamConfiguration.consumerName,streamName:d.streamConfiguration.streamName})}:{})));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...u),t.events.kafka.push(...l)}return t}function QK(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(l=>new FT({name:l,sourceType:ld.FIELD_ARGUMENT})),s=new PT({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),o=((n=r.requiredScopes)==null?void 0:n.map(l=>new wT({requiredAndScopes:l})))||[],u=o.length>0;if((r.requiresAuthentication||u)&&(s.authorizationConfiguration=new LT({requiresAuthentication:r.requiresAuthentication||u,requiredOrScopes:o})),r.subscriptionFilterCondition){let l=new qc;QI(l,r.subscriptionFilterCondition),s.subscriptionFilterCondition=l}t.push(s)}return t}function QI(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new qc;QI(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new jT({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new qc,QI(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new qc;QI(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();h();function qF(e){return new Error(`Normalization failed to return a ${e}.`)}var Lpe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new VT({key:n})},Ppe=e=>{switch(e){case"ws":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return nu.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},kpe=e=>{switch(e){case"auto":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return ru.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}throw new Error(`Unsupported websocket subprotocol '${e}'`)},YK=function(e){let t=new ff({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw qF("ConfigurationDataByTypeName");if(!n.schema)throw qF("GraphQLSchema");let r=Lpe(t,nK(Xm(n.schema))),{childNodes:i,entityInterfaces:s,events:o,interfaceObjects:u,keys:l,provides:d,requires:p,rootNodes:y}=GK(n.configurationDataByTypeName),N=Ppe(n.subscriptionProtocol||"ws"),I=kpe(n.websocketSubprotocol||"auto"),S,C,V;if(o.kafka.length>0||o.nats.length>0){S=jc.PUBSUB,V=new fd({kafka:o.kafka,nats:o.nats});let re=he=>JI.ROOT_TYPE_NAMES.has(he.typeName),se=0,fe=0;for(;se({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`1:${JI.COMPOSITION_VERSION}`})};m();T();h();Le();function JK(e){let t;try{t=io(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function xpe(e){let{federationResult:t,errors:n}=(0,KF.federateSubgraphs)(e.map(JK));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:Ft(t.federatedGraphAST)}}function Cpe(e){let t=(0,KF.federateSubgraphs)(e.map(JK));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return YK({federatedClientSDL:op(t.federationResult.federatedGraphClientSchema),federatedSDL:op(t.federationResult.federatedGraphSchema),fieldConfigurations:t.federationResult.fieldConfigurations,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let s=t.federationResult.subgraphConfigBySubgraphName.get(r.name),o=s==null?void 0:s.schema,u=s==null?void 0:s.configurationDataByTypeName;return{id:`${i}`,name:r.name,url:oF(r.url),sdl:r.schema,subscriptionUrl:oF((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:u}})}).toJsonString()}return Me(Upe);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/package.json b/composition/package.json index a4c7fff37e..66027c2e45 100644 --- a/composition/package.json +++ b/composition/package.json @@ -18,7 +18,8 @@ "test:watch": "vitest test", "test": "vitest run", "lint": "prettier --check src tests", - "lint:fix": "prettier --write src tests" + "lint:fix": "prettier --write src tests", + "postversion": "node ./scripts/get-composition-version.mjs" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/composition/scripts/get-composition-version.mjs b/composition/scripts/get-composition-version.mjs new file mode 100644 index 0000000000..e8806389f0 --- /dev/null +++ b/composition/scripts/get-composition-version.mjs @@ -0,0 +1,20 @@ +import fs from 'fs'; +import { fileURLToPath } from 'node:url'; +import path from 'node:path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const compositionVersion = '{{$COMPOSITION__VERSION}}'; + +// From pnpm v10+, modules will explicitly need to set whether a hook is allowed to run. +if (process.argv[1] === __filename) { + const json = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString()); + const version = json.version; + const varFilePath = path.join(__dirname, '../dist/utils/composition-version.js'); + let content = fs.readFileSync(varFilePath).toString(); + if (content.indexOf(compositionVersion) < 0) { + throw new Error(`"${compositionVersion}" string not found in dist/utils/composition-version.js.`); + } + content = content.replace(compositionVersion, version); + fs.writeFileSync(varFilePath, content); +} diff --git a/composition/src/index.ts b/composition/src/index.ts index 5957b6a875..c4c5e6a674 100644 --- a/composition/src/index.ts +++ b/composition/src/index.ts @@ -17,7 +17,8 @@ export * from './schema-building/type-definition-data'; export * from './schema-building/type-merging'; export * from './schema-building/utils'; export * from './subgraph/subgraph'; -export * from './utils/utils'; +export * from './utils/composition-version'; export * from './utils/constants'; +export * from './utils/utils'; export * from './utils/string-constants'; export * from './warnings/warnings'; diff --git a/composition/src/utils/composition-version.ts b/composition/src/utils/composition-version.ts new file mode 100644 index 0000000000..aae3eb6784 --- /dev/null +++ b/composition/src/utils/composition-version.ts @@ -0,0 +1 @@ +export const COMPOSITION_VERSION = '{{$COMPOSITION__VERSION}}'; diff --git a/composition/tsconfig.json b/composition/tsconfig.json index bf9c043a05..a291aedd7c 100644 --- a/composition/tsconfig.json +++ b/composition/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "declaration": true, "outDir": "./dist", - "module": "commonjs", + "module": "NodeNext", + "moduleResolution": "NodeNext", }, "include": ["src/**/*"], "exclude": ["node_modules"] 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 3e021a110f..c343294f6d 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 @@ -500,7 +500,8 @@ type RouterConfig struct { Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Subgraphs []*Subgraph `protobuf:"bytes,3,rep,name=subgraphs,proto3" json:"subgraphs,omitempty"` // The map of feature flag router execution configs requires a wrapper to be non-breaking - FeatureFlagConfigs *FeatureFlagRouterExecutionConfigs `protobuf:"bytes,4,opt,name=feature_flag_configs,json=featureFlagConfigs,proto3,oneof" json:"feature_flag_configs,omitempty"` + FeatureFlagConfigs *FeatureFlagRouterExecutionConfigs `protobuf:"bytes,4,opt,name=feature_flag_configs,json=featureFlagConfigs,proto3,oneof" json:"feature_flag_configs,omitempty"` + CompatibilityVersion string `protobuf:"bytes,5,opt,name=compatibility_version,json=compatibilityVersion,proto3" json:"compatibility_version,omitempty"` } func (x *RouterConfig) Reset() { @@ -563,6 +564,13 @@ func (x *RouterConfig) GetFeatureFlagConfigs() *FeatureFlagRouterExecutionConfig return nil } +func (x *RouterConfig) GetCompatibilityVersion() string { + if x != nil { + return x.CompatibilityVersion + } + return "" +} + type Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3375,7 +3383,7 @@ var file_wg_cosmo_node_v1_node_proto_rawDesc = []byte{ 0x12, 0x38, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x52, - 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x22, 0xb3, 0x02, 0x0a, 0x0c, 0x52, + 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x22, 0xe8, 0x02, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, @@ -3393,590 +3401,593 @@ var file_wg_cosmo_node_v1_node_proto_rawDesc = []byte{ 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x48, 0x00, 0x52, 0x12, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x73, 0x88, 0x01, 0x01, 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, - 0x22, 0x6a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x75, - 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x88, 0x01, 0x01, - 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3e, 0x0a, 0x0e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x84, 0x01, 0x0a, - 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x46, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x61, - 0x70, 0x68, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x61, - 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x11, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, - 0x52, 0x61, 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb8, 0x01, 0x0a, 0x14, - 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x10, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x88, 0x01, - 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfc, 0x04, 0x0a, 0x13, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, - 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, - 0x61, 0x6c, 0x12, 0x66, 0x0a, 0x19, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x57, 0x0a, 0x14, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x72, 0x61, 0x70, - 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x54, 0x0a, 0x13, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x74, 0x79, 0x70, + 0x66, 0x69, 0x67, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, + 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x17, 0x0a, 0x15, + 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x6a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x33, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x22, 0x3e, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x46, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, + 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x28, + 0x0a, 0x10, 0x67, 0x72, 0x61, 0x70, 0x68, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x72, 0x61, + 0x63, 0x65, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x6c, + 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0xb8, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x48, + 0x00, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfc, 0x04, 0x0a, 0x13, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, + 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x66, 0x0a, 0x19, 0x64, 0x61, 0x74, 0x61, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x5f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x12, 0x37, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x13, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x40, 0x0a, 0x12, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x18, 0x0a, 0x16, 0x5f, - 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xfa, 0x07, 0x0a, 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, - 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x3a, 0x0a, 0x0a, 0x72, 0x6f, 0x6f, 0x74, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x4e, 0x6f, 0x64, 0x65, - 0x73, 0x12, 0x42, 0x0a, 0x1e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x6f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, - 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x57, 0x0a, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x47, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x48, 0x0a, 0x0a, 0x64, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x54, + 0x0a, 0x13, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x12, 0x74, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x04, 0x6b, 0x65, - 0x79, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, - 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, - 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x0e, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x22, 0x6e, 0x0a, 0x15, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x41, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, + 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x13, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x40, + 0x0a, 0x12, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xfa, 0x07, 0x0a, 0x17, 0x44, + 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x38, 0x0a, 0x06, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x73, 0x63, 0x6f, - 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0x9d, 0x01, 0x0a, - 0x1a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x17, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, - 0x5f, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x4f, 0x72, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0xbb, 0x03, 0x0a, - 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x60, 0x0a, 0x17, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x61, 0x72, 0x67, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x6d, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x76, 0x0a, 0x1d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x20, 0x0a, 0x1e, 0x5f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x11, 0x54, 0x79, - 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x7b, 0x0a, 0x09, 0x54, 0x79, 0x70, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, - 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, - 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x16, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, - 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, - 0x65, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0xed, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, - 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x74, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7e, 0x0a, 0x1c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xed, 0x05, 0x0a, 0x12, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x34, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x48, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x3a, 0x0a, 0x0a, + 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x72, + 0x6f, 0x6f, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x75, 0x72, 0x6c, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x72, - 0x6c, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x37, 0x0a, 0x04, 0x6d, - 0x74, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x54, 0x4c, - 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, - 0x6d, 0x74, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x3b, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x52, 0x0a, 0x0e, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x1e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, + 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x52, 0x0d, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x47, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x12, 0x4e, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x48, 0x0a, + 0x0a, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x33, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x57, 0x0a, 0x0b, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x54, 0x54, - 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x95, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x43, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, - 0x1c, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xa9, 0x03, - 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x12, 0x3a, 0x0a, 0x05, 0x66, 0x65, - 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x12, 0x56, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x04, + 0x6b, 0x65, 0x79, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, + 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, + 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x12, 0x4d, + 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x5b, 0x0a, + 0x11, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, + 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x6e, 0x0a, 0x15, 0x41, 0x72, 0x67, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x38, 0x0a, 0x06, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6e, + 0x64, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, - 0x0a, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x12, 0x37, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x12, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, + 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4f, 0x72, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x22, 0xbb, 0x03, 0x0a, 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x60, 0x0a, 0x17, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, + 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x76, 0x0a, 0x1d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, + 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1b, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x20, 0x0a, + 0x1e, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x4d, 0x0a, 0x11, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x7b, + 0x0a, 0x09, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x12, + 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x11, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x58, 0x0a, 0x16, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, + 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0xed, 0x01, 0x0a, 0x0d, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, + 0x17, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, + 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7e, 0x0a, 0x1c, 0x45, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, + 0x6e, 0x63, 0x72, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xed, 0x05, 0x0a, 0x12, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, + 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x34, 0x0a, 0x06, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x77, + 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x49, 0x0a, 0x0f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x75, 0x70, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x5c, 0x0a, 0x19, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x52, 0x4c, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x75, 0x72, 0x6c, 0x5f, + 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x75, 0x72, 0x6c, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x6f, 0x64, 0x79, + 0x12, 0x37, 0x0a, 0x04, 0x6d, 0x74, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x52, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x17, 0x4e, 0x61, - 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, - 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1b, 0x63, - 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0xfc, 0x01, 0x0a, 0x16, - 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x5c, 0x0a, 0x14, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, - 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x17, 0x4b, - 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x67, + 0x31, 0x2e, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6d, 0x74, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x3b, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x52, 0x0a, 0x0e, 0x68, 0x74, + 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x68, + 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x57, + 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x68, 0x74, 0x74, 0x70, + 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x95, 0x01, 0x0a, 0x15, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1c, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x62, 0x6f, + 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x42, 0x6f, + 0x64, 0x79, 0x22, 0xa9, 0x03, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x12, + 0x3a, 0x0a, 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x12, 0x56, 0x0a, 0x0c, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, + 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x0e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x5c, 0x0a, 0x19, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x61, + 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x63, + 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x9f, + 0x01, 0x0a, 0x17, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x3e, 0x0a, 0x1b, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x49, + 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x22, 0xfc, 0x01, 0x0a, 0x16, 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3c, - 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x05, - 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, - 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x22, 0x56, 0x0a, - 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd5, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x3f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x12, 0x36, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x15, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x65, 0x6e, 0x76, - 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x1f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, - 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, - 0x72, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5c, 0x0a, - 0x16, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x41, 0x0a, 0x15, 0x55, - 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4d, - 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xbb, 0x01, - 0x0a, 0x11, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, - 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x12, 0x5c, 0x0a, 0x14, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x9b, 0x01, 0x0a, 0x17, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, 0xa8, 0x01, + 0x0a, 0x18, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x74, + 0x73, 0x12, 0x3f, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x6b, 0x61, 0x66, + 0x6b, 0x61, 0x22, 0x56, 0x0a, 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x3b, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd5, 0x02, 0x0a, 0x15, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, + 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, + 0x19, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x22, 0x65, 0x6e, 0x76, + 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, + 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, + 0x22, 0x41, 0x0a, 0x15, 0x55, 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x4d, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x11, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, + 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x22, 0xfb, 0x02, 0x0a, 0x20, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, + 0x39, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x69, - 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0xfb, 0x02, 0x0a, 0x20, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x06, 0x75, 0x73, + 0x65, 0x53, 0x53, 0x45, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x53, 0x53, 0x45, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, + 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x65, 0x0a, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x57, 0x65, + 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x48, 0x02, 0x52, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, + 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x5a, + 0x0a, 0x1e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x88, - 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x48, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, - 0x01, 0x12, 0x65, 0x0a, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x02, 0x52, - 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x75, 0x73, 0x65, - 0x53, 0x53, 0x45, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x5a, 0x0a, 0x1e, 0x47, 0x72, 0x61, - 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x53, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x53, 0x64, 0x6c, 0x22, 0x22, 0x0a, 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, - 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4d, 0x0a, 0x0f, 0x53, 0x69, 0x6e, - 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x1a, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xb5, 0x02, 0x0a, 0x1b, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x03, 0x61, 0x6e, 0x64, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x6e, 0x64, 0x12, 0x41, 0x0a, 0x02, 0x69, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x02, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, - 0x03, 0x6e, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x03, 0x6e, 0x6f, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x02, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x64, 0x6c, 0x22, 0x22, 0x0a, 0x0e, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4d, + 0x0a, 0x0f, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, + 0x1a, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xb5, + 0x02, 0x0a, 0x1b, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, + 0x0a, 0x03, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x6e, 0x64, 0x12, + 0x41, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x02, 0x69, 0x6e, 0x88, + 0x01, 0x01, 0x12, 0x44, 0x0a, 0x03, 0x6e, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, - 0x6f, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6e, 0x6f, - 0x74, 0x22, 0x54, 0x0a, 0x15, 0x43, 0x61, 0x63, 0x68, 0x65, 0x57, 0x61, 0x72, 0x6d, 0x65, 0x72, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, - 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x56, 0x0a, 0x09, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x0e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, - 0x4b, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x5f, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x0a, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x82, 0x01, 0x0a, 0x1b, 0x41, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, - 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, - 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x5f, 0x47, 0x52, 0x41, 0x50, - 0x48, 0x51, 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x52, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, - 0x53, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x53, 0x56, 0x10, 0x02, 0x2a, 0x36, 0x0a, - 0x0e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x10, 0x0a, 0x0c, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, - 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, - 0x45, 0x4e, 0x54, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x41, 0x54, 0x49, - 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x50, 0x48, 0x51, 0x4c, 0x10, 0x01, - 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x53, 0x55, 0x42, 0x10, 0x02, 0x2a, 0x34, 0x0a, 0x09, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x55, 0x42, - 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, - 0x10, 0x02, 0x2a, 0x86, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, - 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, - 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, - 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x4e, 0x56, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, - 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, - 0x45, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x48, 0x4f, 0x4c, 0x44, - 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x2a, 0x41, 0x0a, 0x0a, 0x48, - 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, - 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, - 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x04, 0x32, 0x6e, - 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a, - 0x0c, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x25, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xcf, - 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x77, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2d, 0x67, 0x6f, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x77, 0x67, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6e, 0x6f, 0x64, 0x65, 0x76, 0x31, 0xa2, - 0x02, 0x03, 0x57, 0x43, 0x4e, 0xaa, 0x02, 0x10, 0x57, 0x67, 0x2e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x57, 0x67, 0x5c, 0x43, 0x6f, - 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x57, 0x67, - 0x5c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x57, 0x67, 0x3a, - 0x3a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x3a, 0x3a, 0x4e, 0x6f, 0x64, 0x65, 0x3a, 0x3a, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, + 0x52, 0x03, 0x6e, 0x6f, 0x74, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x02, 0x6f, 0x72, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x6f, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x6e, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x6e, 0x6f, 0x74, 0x22, 0x54, 0x0a, 0x15, 0x43, 0x61, 0x63, 0x68, 0x65, 0x57, + 0x61, 0x72, 0x6d, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3b, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x09, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01, + 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x3b, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x56, 0x0a, 0x09, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x65, 0x72, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x22, 0x4b, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, + 0x32, 0x35, 0x36, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x82, 0x01, + 0x0a, 0x1b, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, + 0x17, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, + 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x52, 0x45, + 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, + 0x5f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x51, 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x01, + 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, + 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x53, 0x56, + 0x10, 0x02, 0x2a, 0x36, 0x0a, 0x0e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x46, + 0x49, 0x45, 0x4c, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, + 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x0e, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0a, 0x0a, 0x06, + 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x50, + 0x48, 0x51, 0x4c, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x53, 0x55, 0x42, 0x10, + 0x02, 0x2a, 0x34, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, + 0x0a, 0x07, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, + 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, 0x53, + 0x43, 0x52, 0x49, 0x42, 0x45, 0x10, 0x02, 0x2a, 0x86, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x5f, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, + 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x4e, 0x56, 0x5f, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, + 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x4c, 0x41, 0x43, + 0x45, 0x48, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, + 0x2a, 0x41, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x07, + 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, + 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, + 0x53, 0x10, 0x04, 0x32, 0x6e, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x0c, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x25, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, + 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0xcf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4e, 0x6f, + 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2d, + 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x77, 0x67, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6e, 0x6f, + 0x64, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x43, 0x4e, 0xaa, 0x02, 0x10, 0x57, 0x67, 0x2e, + 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, + 0x57, 0x67, 0x5c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1c, 0x57, 0x67, 0x5c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x13, 0x57, 0x67, 0x3a, 0x3a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x3a, 0x3a, 0x4e, 0x6f, 0x64, + 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/connect/src/wg/cosmo/node/v1/node_pb.ts b/connect/src/wg/cosmo/node/v1/node_pb.ts index d3c7a7cb3f..7125c77c80 100644 --- a/connect/src/wg/cosmo/node/v1/node_pb.ts +++ b/connect/src/wg/cosmo/node/v1/node_pb.ts @@ -330,6 +330,11 @@ export class RouterConfig extends Message { */ featureFlagConfigs?: FeatureFlagRouterExecutionConfigs; + /** + * @generated from field: string compatibility_version = 5; + */ + compatibilityVersion = ""; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -342,6 +347,7 @@ export class RouterConfig extends Message { { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "subgraphs", kind: "message", T: Subgraph, repeated: true }, { no: 4, name: "feature_flag_configs", kind: "message", T: FeatureFlagRouterExecutionConfigs, opt: true }, + { no: 5, name: "compatibility_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RouterConfig { diff --git a/proto/wg/cosmo/node/v1/node.proto b/proto/wg/cosmo/node/v1/node.proto index 1f0c721d71..ac0bb2986e 100644 --- a/proto/wg/cosmo/node/v1/node.proto +++ b/proto/wg/cosmo/node/v1/node.proto @@ -26,6 +26,7 @@ message RouterConfig { repeated Subgraph subgraphs = 3; // The map of feature flag router execution configs requires a wrapper to be non-breaking optional FeatureFlagRouterExecutionConfigs feature_flag_configs = 4; + string compatibility_version = 5; } message Response { diff --git a/router/core/router.go b/router/core/router.go index f3e1a8ad9f..eb4f6b5a38 100644 --- a/router/core/router.go +++ b/router/core/router.go @@ -1105,6 +1105,16 @@ func (r *Router) Start(ctx context.Context) error { return nil } + /* Older versions of composition will not populate a compatibility version. + * Currently, all "old" router execution configurations are compatible as there have been no breaking + * changes. + * Upon the first breaking change to the execution config, an unpopulated compatibility version will + * also be unsupported (and the logic for IsRouterCompatibleWithExecutionConfig will need to be updated). + */ + if !execution_config.IsRouterCompatibleWithExecutionConfig(r.logger, cfg.CompatibilityVersion) { + return nil + } + if err := r.newServer(ctx, cfg); err != nil { r.logger.Error("Failed to update server with new config", zap.Error(err)) return nil 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 d55c99d7ea..650926febc 100644 --- a/router/gen/proto/wg/cosmo/node/v1/node.pb.go +++ b/router/gen/proto/wg/cosmo/node/v1/node.pb.go @@ -500,7 +500,8 @@ type RouterConfig struct { Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Subgraphs []*Subgraph `protobuf:"bytes,3,rep,name=subgraphs,proto3" json:"subgraphs,omitempty"` // The map of feature flag router execution configs requires a wrapper to be non-breaking - FeatureFlagConfigs *FeatureFlagRouterExecutionConfigs `protobuf:"bytes,4,opt,name=feature_flag_configs,json=featureFlagConfigs,proto3,oneof" json:"feature_flag_configs,omitempty"` + FeatureFlagConfigs *FeatureFlagRouterExecutionConfigs `protobuf:"bytes,4,opt,name=feature_flag_configs,json=featureFlagConfigs,proto3,oneof" json:"feature_flag_configs,omitempty"` + CompatibilityVersion string `protobuf:"bytes,5,opt,name=compatibility_version,json=compatibilityVersion,proto3" json:"compatibility_version,omitempty"` } func (x *RouterConfig) Reset() { @@ -563,6 +564,13 @@ func (x *RouterConfig) GetFeatureFlagConfigs() *FeatureFlagRouterExecutionConfig return nil } +func (x *RouterConfig) GetCompatibilityVersion() string { + if x != nil { + return x.CompatibilityVersion + } + return "" +} + type Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3375,7 +3383,7 @@ var file_wg_cosmo_node_v1_node_proto_rawDesc = []byte{ 0x12, 0x38, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x52, - 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x22, 0xb3, 0x02, 0x0a, 0x0c, 0x52, + 0x09, 0x73, 0x75, 0x62, 0x67, 0x72, 0x61, 0x70, 0x68, 0x73, 0x22, 0xe8, 0x02, 0x0a, 0x0c, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x0d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, @@ -3393,590 +3401,593 @@ var file_wg_cosmo_node_v1_node_proto_rawDesc = []byte{ 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x48, 0x00, 0x52, 0x12, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x73, 0x88, 0x01, 0x01, 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x66, 0x65, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, - 0x22, 0x6a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x75, - 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x88, 0x01, 0x01, - 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3e, 0x0a, 0x0e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x84, 0x01, 0x0a, - 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x46, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x61, - 0x70, 0x68, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, 0x61, - 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x11, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, - 0x52, 0x61, 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb8, 0x01, 0x0a, 0x14, - 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x10, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x88, 0x01, - 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfc, 0x04, 0x0a, 0x13, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, - 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, - 0x61, 0x6c, 0x12, 0x66, 0x0a, 0x19, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x57, 0x0a, 0x14, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x72, 0x61, 0x70, - 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x54, 0x0a, 0x13, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x74, 0x79, 0x70, + 0x66, 0x69, 0x67, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x61, + 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x17, 0x0a, 0x15, + 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x6a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x33, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, + 0x73, 0x22, 0x3e, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x46, 0x0a, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x52, + 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x28, + 0x0a, 0x10, 0x67, 0x72, 0x61, 0x70, 0x68, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x72, 0x61, + 0x63, 0x65, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x11, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x74, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x65, 0x6c, + 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0xb8, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x53, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x48, + 0x00, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x88, 0x01, 0x01, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfc, 0x04, 0x0a, 0x13, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, + 0x75, 0x73, 0x68, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x14, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x66, 0x0a, 0x19, 0x64, 0x61, 0x74, 0x61, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x64, 0x61, 0x74, 0x61, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x5f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x12, 0x37, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x13, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x40, 0x0a, 0x12, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x18, 0x0a, 0x16, 0x5f, - 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xfa, 0x07, 0x0a, 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, - 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x3a, 0x0a, 0x0a, 0x72, 0x6f, 0x6f, 0x74, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x72, 0x6f, 0x6f, 0x74, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, 0x64, 0x4e, 0x6f, 0x64, 0x65, - 0x73, 0x12, 0x42, 0x0a, 0x1e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x6f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, - 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x57, 0x0a, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x47, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x48, 0x0a, 0x0a, 0x64, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, + 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0d, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x54, + 0x0a, 0x13, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x12, 0x74, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x04, 0x6b, 0x65, - 0x79, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, - 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x08, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, - 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0d, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x0e, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x22, 0x6e, 0x0a, 0x15, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x41, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, + 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x13, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x40, + 0x0a, 0x12, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x5f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xfa, 0x07, 0x0a, 0x17, 0x44, + 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x38, 0x0a, 0x06, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x73, 0x63, 0x6f, - 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0x9d, 0x01, 0x0a, - 0x1a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x17, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x12, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, - 0x5f, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x4f, 0x72, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0xbb, 0x03, 0x0a, - 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x60, 0x0a, 0x17, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, 0x61, 0x72, 0x67, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x6d, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x76, 0x0a, 0x1d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1b, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x20, 0x0a, 0x1e, 0x5f, 0x73, 0x75, 0x62, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4d, 0x0a, 0x11, 0x54, 0x79, - 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x7b, 0x0a, 0x09, 0x54, 0x79, 0x70, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, - 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, - 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x11, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x16, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, - 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, - 0x65, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0xed, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, - 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x69, 0x73, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, - 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, - 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x74, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7e, 0x0a, 0x1c, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xed, 0x05, 0x0a, 0x12, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x34, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x48, 0x0a, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x3a, 0x0a, 0x0a, + 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x72, + 0x6f, 0x6f, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, - 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x75, 0x72, 0x6c, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, - 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x75, 0x72, - 0x6c, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x37, 0x0a, 0x04, 0x6d, - 0x74, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x54, 0x4c, - 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, - 0x6d, 0x74, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x3b, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x52, 0x0a, 0x0e, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0a, 0x63, 0x68, 0x69, 0x6c, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x1e, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, + 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, + 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x52, 0x0d, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x47, 0x72, 0x61, 0x70, 0x68, 0x71, 0x6c, 0x12, 0x4e, 0x0a, + 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x48, 0x0a, + 0x0a, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x33, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, - 0x6f, 0x78, 0x79, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x57, 0x0a, 0x0b, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x54, 0x54, - 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x95, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x43, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, - 0x1c, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xa9, 0x03, - 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x12, 0x3a, 0x0a, 0x05, 0x66, 0x65, - 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x12, 0x56, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x04, + 0x6b, 0x65, 0x79, 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x73, + 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, + 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x73, 0x12, 0x3b, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x18, 0x0c, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x12, 0x4d, + 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x5b, 0x0a, + 0x11, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x5b, 0x0a, 0x11, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, + 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x6e, 0x0a, 0x15, 0x41, 0x72, 0x67, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, + 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x38, 0x0a, 0x06, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x6e, + 0x64, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x1a, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, - 0x0a, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x12, 0x37, 0x0a, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x12, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6f, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x52, + 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x4f, 0x72, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x73, 0x22, 0xbb, 0x03, 0x0a, 0x12, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x60, 0x0a, 0x17, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x16, + 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x1b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x76, 0x0a, 0x1d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, + 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1b, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x20, 0x0a, + 0x1e, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x4d, 0x0a, 0x11, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x7b, + 0x0a, 0x09, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x65, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x10, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x12, + 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x11, + 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x58, 0x0a, 0x16, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x6f, 0x6f, 0x72, 0x64, + 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, + 0x6e, 0x61, 0x74, 0x65, 0x73, 0x52, 0x14, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6f, 0x72, + 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0xed, 0x01, 0x0a, 0x0d, 0x52, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6c, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, + 0x17, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, + 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7e, 0x0a, 0x1c, 0x45, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, + 0x6e, 0x63, 0x72, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x63, 0x72, 0x65, 0x74, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0xed, 0x05, 0x0a, 0x12, 0x46, + 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, + 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x34, 0x0a, 0x06, + 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x77, + 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x49, 0x0a, 0x0f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0e, 0x75, 0x70, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x5c, 0x0a, 0x19, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x52, 0x4c, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x75, 0x72, 0x6c, 0x5f, + 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x75, 0x72, 0x6c, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x6f, 0x64, 0x79, + 0x12, 0x37, 0x0a, 0x04, 0x6d, 0x74, 0x6c, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x52, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x17, 0x4e, 0x61, - 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, - 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1b, 0x63, - 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x49, 0x6e, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0xfc, 0x01, 0x0a, 0x16, - 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x5c, 0x0a, 0x14, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, - 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x17, 0x4b, - 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, 0xa8, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x67, + 0x31, 0x2e, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6d, 0x74, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x08, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x3b, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x52, 0x0a, 0x0e, 0x68, 0x74, + 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x68, + 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x55, 0x72, 0x6c, 0x88, 0x01, 0x01, 0x1a, 0x57, + 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x32, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x68, 0x74, 0x74, 0x70, + 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x22, 0x95, 0x01, 0x0a, 0x15, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1c, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x6f, 0x5f, 0x62, 0x6f, + 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x74, 0x6f, 0x42, 0x6f, + 0x64, 0x79, 0x22, 0xa9, 0x03, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x12, + 0x3a, 0x0a, 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x66, 0x65, 0x74, 0x63, 0x68, 0x12, 0x56, 0x0a, 0x0c, 0x73, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, + 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x66, 0x65, 0x64, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x52, 0x0e, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x5c, 0x0a, 0x19, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x61, + 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x63, + 0x61, 0x6c, 0x61, 0x72, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x9f, + 0x01, 0x0a, 0x17, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x3e, 0x0a, 0x1b, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x49, + 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, + 0x22, 0xfc, 0x01, 0x0a, 0x16, 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3c, - 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x12, 0x3f, 0x0a, 0x05, - 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x77, 0x67, - 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4b, - 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x22, 0x56, 0x0a, - 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd5, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x3f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x12, 0x36, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x15, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x65, 0x6e, 0x76, - 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x22, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x1f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, - 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, - 0x72, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x5c, 0x0a, - 0x16, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x72, 0x65, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, 0x22, 0x41, 0x0a, 0x15, 0x55, - 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4d, - 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, - 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xbb, 0x01, - 0x0a, 0x11, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, - 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x12, 0x5c, 0x0a, 0x14, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x73, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x9b, 0x01, 0x0a, 0x17, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x68, 0x0a, 0x1a, 0x65, + 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x18, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, 0xa8, 0x01, + 0x0a, 0x18, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x16, 0x44, 0x61, 0x74, + 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x6e, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x74, 0x73, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x74, + 0x73, 0x12, 0x3f, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x6b, 0x61, 0x66, + 0x6b, 0x61, 0x22, 0x56, 0x0a, 0x17, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x12, 0x3b, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xd5, 0x02, 0x0a, 0x15, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, + 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, + 0x19, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x22, 0x65, 0x6e, 0x76, + 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, + 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x6f, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x6f, + 0x22, 0x41, 0x0a, 0x15, 0x55, 0x52, 0x4c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x4d, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x22, 0xbb, 0x01, 0x0a, 0x11, 0x4d, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x04, 0x63, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, + 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x22, 0xfb, 0x02, 0x0a, 0x20, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, + 0x39, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x04, 0x63, 0x65, 0x72, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x69, - 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x53, 0x6b, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x22, 0xfb, 0x02, 0x0a, 0x20, - 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x06, 0x75, 0x73, + 0x65, 0x53, 0x53, 0x45, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x53, 0x53, 0x45, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, + 0x68, 0x51, 0x4c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x65, 0x0a, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x57, 0x65, + 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x48, 0x02, 0x52, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, + 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, + 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x5a, + 0x0a, 0x1e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, - 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x75, 0x73, 0x65, 0x53, 0x53, 0x45, 0x88, - 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x48, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, - 0x01, 0x12, 0x65, 0x0a, 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x47, 0x72, 0x61, 0x70, 0x68, 0x51, 0x4c, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, - 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x48, 0x02, 0x52, - 0x14, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, 0x62, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x75, 0x73, 0x65, - 0x53, 0x53, 0x45, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x42, 0x17, 0x0a, 0x15, 0x5f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x75, - 0x62, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x5a, 0x0a, 0x1e, 0x47, 0x72, 0x61, - 0x70, 0x68, 0x51, 0x4c, 0x46, 0x65, 0x64, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x53, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x53, 0x64, 0x6c, 0x22, 0x22, 0x0a, 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, - 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4d, 0x0a, 0x0f, 0x53, 0x69, 0x6e, - 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x1a, 0x53, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xb5, 0x02, 0x0a, 0x1b, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x03, 0x61, 0x6e, 0x64, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x6e, 0x64, 0x12, 0x41, 0x0a, 0x02, 0x69, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x02, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x44, 0x0a, - 0x03, 0x6e, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, - 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x03, 0x6e, 0x6f, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x02, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x64, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x64, 0x6c, 0x22, 0x22, 0x0a, 0x0e, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x4d, + 0x0a, 0x0f, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, + 0x1a, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6a, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0xb5, + 0x02, 0x0a, 0x1b, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, + 0x0a, 0x03, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x61, 0x6e, 0x64, 0x12, + 0x41, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x77, 0x67, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x02, 0x69, 0x6e, 0x88, + 0x01, 0x01, 0x12, 0x44, 0x0a, 0x03, 0x6e, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, - 0x6f, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6e, 0x6f, - 0x74, 0x22, 0x54, 0x0a, 0x15, 0x43, 0x61, 0x63, 0x68, 0x65, 0x57, 0x61, 0x72, 0x6d, 0x65, 0x72, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, - 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x0a, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x56, 0x0a, 0x09, 0x45, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, - 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x0e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, - 0x4b, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x5f, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x48, 0x61, - 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x0a, 0x0a, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x82, 0x01, 0x0a, 0x1b, 0x41, 0x72, 0x67, - 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x17, 0x52, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, - 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, - 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x5f, 0x47, 0x52, 0x41, 0x50, - 0x48, 0x51, 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x52, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, - 0x53, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x53, 0x56, 0x10, 0x02, 0x2a, 0x36, 0x0a, - 0x0e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x10, 0x0a, 0x0c, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, - 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, - 0x45, 0x4e, 0x54, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x41, 0x54, 0x49, - 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x50, 0x48, 0x51, 0x4c, 0x10, 0x01, - 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x53, 0x55, 0x42, 0x10, 0x02, 0x2a, 0x34, 0x0a, 0x09, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x55, 0x42, - 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, - 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, - 0x10, 0x02, 0x2a, 0x86, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x69, 0x6e, 0x64, - 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, - 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, - 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x4e, 0x56, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, - 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, - 0x45, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x4c, 0x41, 0x43, 0x45, 0x48, 0x4f, 0x4c, 0x44, - 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x2a, 0x41, 0x0a, 0x0a, 0x48, - 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, - 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, - 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x04, 0x32, 0x6e, - 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a, - 0x0c, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x25, 0x2e, - 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xcb, - 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x77, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x77, 0x67, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2f, 0x6e, 0x6f, 0x64, - 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6e, 0x6f, 0x64, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x57, 0x43, - 0x4e, 0xaa, 0x02, 0x10, 0x57, 0x67, 0x2e, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x57, 0x67, 0x5c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x5c, - 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x57, 0x67, 0x5c, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x57, 0x67, 0x3a, 0x3a, 0x43, 0x6f, 0x73, - 0x6d, 0x6f, 0x3a, 0x3a, 0x4e, 0x6f, 0x64, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, + 0x52, 0x03, 0x6e, 0x6f, 0x74, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x02, 0x6f, 0x72, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x6f, 0x72, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x6e, 0x42, 0x06, + 0x0a, 0x04, 0x5f, 0x6e, 0x6f, 0x74, 0x22, 0x54, 0x0a, 0x15, 0x43, 0x61, 0x63, 0x68, 0x65, 0x57, + 0x61, 0x72, 0x6d, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3b, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x09, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x07, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x67, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x8c, 0x01, + 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x3b, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x56, 0x0a, 0x09, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x65, 0x72, + 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x0e, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x64, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x22, 0x4b, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, + 0x64, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, + 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x68, 0x61, + 0x32, 0x35, 0x36, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0x3a, 0x0a, 0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x82, 0x01, + 0x0a, 0x1b, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, + 0x17, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, + 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x24, 0x0a, 0x20, 0x52, 0x45, + 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, + 0x5f, 0x47, 0x52, 0x41, 0x50, 0x48, 0x51, 0x4c, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x01, + 0x12, 0x20, 0x0a, 0x1c, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, + 0x45, 0x4e, 0x54, 0x5f, 0x41, 0x53, 0x5f, 0x41, 0x52, 0x52, 0x41, 0x59, 0x5f, 0x43, 0x53, 0x56, + 0x10, 0x02, 0x2a, 0x36, 0x0a, 0x0e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x46, + 0x49, 0x45, 0x4c, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, + 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x2a, 0x35, 0x0a, 0x0e, 0x44, 0x61, + 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x0a, 0x0a, 0x06, + 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x52, 0x41, 0x50, + 0x48, 0x51, 0x4c, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x55, 0x42, 0x53, 0x55, 0x42, 0x10, + 0x02, 0x2a, 0x34, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, + 0x0a, 0x07, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, + 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, 0x53, + 0x43, 0x52, 0x49, 0x42, 0x45, 0x10, 0x02, 0x2a, 0x86, 0x01, 0x0a, 0x19, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x41, 0x54, 0x49, 0x43, 0x5f, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, + 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x4e, 0x56, 0x5f, + 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, + 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x4c, 0x41, 0x43, + 0x45, 0x48, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x41, 0x52, 0x49, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x02, + 0x2a, 0x41, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x07, + 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 0x54, 0x10, + 0x01, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, + 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, + 0x53, 0x10, 0x04, 0x32, 0x6e, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x0c, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x25, 0x2e, 0x77, 0x67, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6c, + 0x66, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0xcb, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x67, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x4e, 0x6f, + 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x75, 0x6e, 0x64, 0x65, 0x72, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x77, 0x67, 0x2f, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6e, 0x6f, 0x64, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x57, 0x43, 0x4e, 0xaa, 0x02, 0x10, 0x57, 0x67, 0x2e, 0x43, 0x6f, 0x73, 0x6d, + 0x6f, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x57, 0x67, 0x5c, 0x43, + 0x6f, 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x57, + 0x67, 0x5c, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x5c, 0x4e, 0x6f, 0x64, 0x65, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x57, 0x67, + 0x3a, 0x3a, 0x43, 0x6f, 0x73, 0x6d, 0x6f, 0x3a, 0x3a, 0x4e, 0x6f, 0x64, 0x65, 0x3a, 0x3a, 0x56, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/router/pkg/execution_config/compatibility.go b/router/pkg/execution_config/compatibility.go new file mode 100644 index 0000000000..57d3f476c5 --- /dev/null +++ b/router/pkg/execution_config/compatibility.go @@ -0,0 +1,72 @@ +package execution_config + +import ( + "fmt" + "go.uber.org/zap" + "strconv" + "strings" +) + +const ( + // ExecutionConfigVersionThreshold should ONLY be updated if there is a breaking change in the router execution config. + ExecutionConfigVersionThreshold = 1 + compatibilityVersionParseErrorMessage = "Failed to parse compatibility version." + executionConfigVersionParseErrorMessage = "Failed to parse router execution config version of compatibility version." +) + +func IsRouterCompatibleWithExecutionConfig(logger *zap.Logger, compatibilityVersion string) bool { + if compatibilityVersion == "" { + return true + } + /* A compatibility version is composed thus: : + * A router version supports a maximum router execution configuration version (ExecutionConfigVersionThreshold). + * In the event the execution config version exceeds ExecutionConfigVersionThreshold, an error will request for + * the router version be upgraded. + * If the router version requires a newer router execution configuration version, a warning will explain that some + * new features may be unavailable or functionality/behaviour may have changed. + */ + segments := strings.Split(compatibilityVersion, ":") + if len(segments) != 2 { + logger.Error(compatibilityVersionParseErrorMessage, zap.String("compatibility_version", compatibilityVersion)) + return false + } + routerExecutionVersion, err := strconv.ParseInt(segments[0], 10, 32) + if err != nil { + logger.Error(executionConfigVersionParseErrorMessage, zap.String("compatibility_version", compatibilityVersion)) + return false + } + switch { + case routerExecutionVersion == ExecutionConfigVersionThreshold: + return true + case routerExecutionVersion > ExecutionConfigVersionThreshold: + logger.Error( + executionConfigVersionThresholdExceededError(routerExecutionVersion), + zap.Int64("execution_config_version", routerExecutionVersion), + zap.String("composition_package_version", segments[1]), + ) + return false + default: + logger.Warn( + executionConfigVersionInsufficientWarning(routerExecutionVersion), + zap.Int64("execution_config_version", routerExecutionVersion), + zap.String("composition_package_version", segments[1]), + ) + return true + } +} + +func executionConfigVersionThresholdExceededError(executionConfigVersion int64) string { + return fmt.Sprintf( + "This router version supports a router execution config version up to %d. The router execution config version supplied is %d. Please upgrade your router version.", + ExecutionConfigVersionThreshold, + executionConfigVersion, + ) +} + +func executionConfigVersionInsufficientWarning(executionConfigVersion int64) string { + return fmt.Sprintf( + "This router version requires a minimum router execution config version of %d to support all functionality. The router execution config version supplied is %d. Please create a new execution configuration.", + ExecutionConfigVersionThreshold, + executionConfigVersion, + ) +} diff --git a/router/pkg/execution_config/compatibility_test.go b/router/pkg/execution_config/compatibility_test.go new file mode 100644 index 0000000000..be8afdba56 --- /dev/null +++ b/router/pkg/execution_config/compatibility_test.go @@ -0,0 +1,108 @@ +package execution_config + +import ( + "bytes" + "fmt" + "github.com/stretchr/testify/assert" + "go.uber.org/zap" + "go.uber.org/zap/zapcore" + "go.uber.org/zap/zaptest/observer" + "testing" +) + +func TestExecutionConfiguration(t *testing.T) { + t.Run("no compatibility version is supported", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + assert.True(t, IsRouterCompatibleWithExecutionConfig(logger, "")) + assert.Equal(t, 0, len(logs.All())) + }) + + t.Run("same compatibility version is supported", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + assert.True(t, IsRouterCompatibleWithExecutionConfig(logger, fmt.Sprintf("%d:0.1.0", ExecutionConfigVersionThreshold))) + assert.Equal(t, 0, len(logs.All())) + }) + + t.Run("return an error if compatibility version is unparsable #1", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + compatibilityVersion := "nonsense" + assert.False(t, IsRouterCompatibleWithExecutionConfig(logger, compatibilityVersion)) + logsSlice := logs.All() + assert.Equal(t, 1, len(logsSlice)) + assert.Equal(t, compatibilityVersionParseErrorMessage, logsSlice[0].Message) + assert.Equal(t, zapcore.ErrorLevel, logsSlice[0].Level) + assert.Equal(t, 1, len(logsSlice[0].Context)) + assert.Equal(t, zap.String("compatibility_version", compatibilityVersion), logsSlice[0].Context[0]) + }) + + t.Run("return an error if compatibility version is unparsable #2", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + compatibilityVersion := "1:2:3" + assert.False(t, IsRouterCompatibleWithExecutionConfig(logger, compatibilityVersion)) + logsSlice := logs.All() + assert.Equal(t, 1, len(logsSlice)) + assert.Equal(t, compatibilityVersionParseErrorMessage, logsSlice[0].Message) + assert.Equal(t, zapcore.ErrorLevel, logsSlice[0].Level) + assert.Equal(t, 1, len(logsSlice[0].Context)) + assert.Equal(t, zap.String("compatibility_version", compatibilityVersion), logsSlice[0].Context[0]) + }) + + t.Run("return an error if execution config version is unparsable", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + compatibilityVersion := "a:0.1.0" + assert.False(t, IsRouterCompatibleWithExecutionConfig(logger, compatibilityVersion)) + logsSlice := logs.All() + assert.Equal(t, 1, len(logsSlice)) + assert.Equal(t, executionConfigVersionParseErrorMessage, logsSlice[0].Message) + assert.Equal(t, zapcore.ErrorLevel, logsSlice[0].Level) + assert.Equal(t, 1, len(logsSlice[0].Context)) + assert.Equal(t, zap.String("compatibility_version", compatibilityVersion), logsSlice[0].Context[0]) + }) + + t.Run("return an error if the maximum execution config version threshold of the router is exceeded", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + nextVersion := int64(ExecutionConfigVersionThreshold + 1) + compVersion := "0.1.0" + compatibilityVersion := fmt.Sprintf("%d:%s", nextVersion, compVersion) + assert.False(t, IsRouterCompatibleWithExecutionConfig(logger, compatibilityVersion)) + logsSlice := logs.All() + assert.Equal(t, 1, len(logsSlice)) + assert.Equal(t, executionConfigVersionThresholdExceededError(nextVersion), logsSlice[0].Message) + assert.Equal(t, zapcore.ErrorLevel, logsSlice[0].Level) + assert.Equal(t, 2, len(logsSlice[0].Context)) + assert.Equal(t, zap.Int64("execution_config_version", nextVersion), logsSlice[0].Context[0]) + assert.Equal(t, zap.String("composition_package_version", compVersion), logsSlice[0].Context[1]) + }) + + t.Run("return a warning if the execution config version is insufficient", func(t *testing.T) { + observed, logs := observer.New(zapcore.DebugLevel) + logger := newLogger(observed) + previousVersion := int64(ExecutionConfigVersionThreshold - 1) + compVersion := "0.1.0" + compatibilityVersion := fmt.Sprintf("%d:%s", previousVersion, compVersion) + assert.True(t, IsRouterCompatibleWithExecutionConfig(logger, compatibilityVersion)) + logsSlice := logs.All() + assert.Equal(t, 1, len(logsSlice)) + assert.Equal(t, executionConfigVersionInsufficientWarning(previousVersion), logsSlice[0].Message) + assert.Equal(t, zapcore.WarnLevel, logsSlice[0].Level) + assert.Equal(t, 2, len(logsSlice[0].Context)) + assert.Equal(t, zap.Int64("execution_config_version", previousVersion), logsSlice[0].Context[0]) + assert.Equal(t, zap.String("composition_package_version", compVersion), logsSlice[0].Context[1]) + }) +} + +func newLogger(observed zapcore.Core) *zap.Logger { + var buffer bytes.Buffer + return zap.New( + zapcore.NewTee( + zapcore.NewCore(zapcore.NewJSONEncoder(zapcore.EncoderConfig{}), zapcore.AddSync(&buffer), zapcore.DebugLevel), + observed, + ), + ) +} diff --git a/shared/src/router-config/builder.ts b/shared/src/router-config/builder.ts index 59ebbb2837..3dea73af15 100644 --- a/shared/src/router-config/builder.ts +++ b/shared/src/router-config/builder.ts @@ -1,6 +1,6 @@ import crypto from 'node:crypto'; import { printSchemaWithDirectives } from '@graphql-tools/utils'; -import { ConfigurationData, FieldConfiguration, ROOT_TYPE_NAMES } from '@wundergraph/composition'; +import { COMPOSITION_VERSION, ConfigurationData, FieldConfiguration, ROOT_TYPE_NAMES } from '@wundergraph/composition'; import { GraphQLSchema, lexicographicSortSchema } from 'graphql'; import { GraphQLSubscriptionProtocol, @@ -215,5 +215,6 @@ export const buildRouterConfig = function (input: Input): RouterConfig { name: s.name, routingUrl: s.url, })), + compatibilityVersion: `1:${COMPOSITION_VERSION}`, }); }; diff --git a/shared/test/__snapshots__/router.config.test.ts.snap b/shared/test/__snapshots__/router.config.test.ts.snap index ff821b2d6a..6b08dae5e8 100644 --- a/shared/test/__snapshots__/router.config.test.ts.snap +++ b/shared/test/__snapshots__/router.config.test.ts.snap @@ -302,7 +302,8 @@ exports[`Router Config Builder > Build Subgraph schema > router.config.json 1`] "name": "inventory", "routingUrl": "https://wg-federation-demo-inventory.fly.dev/graphql" } - ] + ], + "compatibilityVersion": "1:{{$COMPOSITION__VERSION}}" }" `; @@ -436,7 +437,8 @@ exports[`Router Config Builder > that the federatedClientSDL property is not pro "name": "products", "routingUrl": "https://wg-federation-demo-products.fly.dev/graphql" } - ] + ], + "compatibilityVersion": "1:{{$COMPOSITION__VERSION}}" }" `; @@ -571,7 +573,8 @@ exports[`Router Config Builder > that the federatedClientSDL property is propaga "name": "products", "routingUrl": "https://wg-federation-demo-products.fly.dev/graphql" } - ] + ], + "compatibilityVersion": "1:{{$COMPOSITION__VERSION}}" }" `; @@ -706,6 +709,7 @@ exports[`Router Config Builder > that the federatedClientSDL property is propaga "name": "products", "routingUrl": "https://wg-federation-demo-products.fly.dev/graphql" } - ] + ], + "compatibilityVersion": "1:{{$COMPOSITION__VERSION}}" }" `;