parse-dashboard 9.2.1-alpha.1 → 9.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Parse-Dashboard/public/bundles/1056.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1151.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1256.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1272.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1356.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1440.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1675.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1987.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2499.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/2499.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/2794.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2823.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/2823.bundle.js.LICENSE.txt +1 -0
- package/Parse-Dashboard/public/bundles/2955.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2972.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3120.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3212.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3227.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3412.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3839.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3871.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4056.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4062.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4069.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4097.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4438.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/448.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/4760.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/4760.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/4837.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/490.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5147.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5166.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5281.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/5281.bundle.js.LICENSE.txt +44 -0
- package/Parse-Dashboard/public/bundles/5521.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/580.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5834.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5851.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5866.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5967.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6079.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6214.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6490.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6556.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6562.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/6562.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/6727.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7110.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7214.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/7214.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/7413.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7537.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7775.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/792.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/802.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/8058.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/8445.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9096.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9174.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9433.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9794.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9895.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js.LICENSE.txt +39 -75
- package/Parse-Dashboard/public/bundles/img/f6283f7ccaed1249d9eb.ttf +0 -0
- package/Parse-Dashboard/public/bundles/login.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/login.bundle.js.LICENSE.txt +21 -14
- package/package.json +12 -10
- package/Parse-Dashboard/public/bundles/120.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/183.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/19.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/221.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/372.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/573.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/578.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/584.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/629.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/643.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/647.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/701.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/729.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/75.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/753.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/817.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/844.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/862.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/866.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/874.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/881.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/929.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/950.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/97.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/976.bundle.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7110],{86947(e,t,n){n.d(t,{FH:()=>o});var i=n(34627),r=n(93484);function o(e,t){const n=t?(0,r.S)(t,e):void 0,o=[];return(0,i.YR)(e,{OperationDefinition(e){o.push(e)}}),{variableToType:n,operations:o}}},25907(e,t,n){n.d(t,{yX:()=>d,Q6:()=>p,FH:()=>F.FH,$V:()=>l,fq:()=>M}),n(80957);var i=n(79222);function r(e,t){e.push(t)}function o(e,t){(0,i.bd)(t)?(o(e,t.ofType),r(e,"!")):(0,i.Fs)(t)?(r(e,"["),o(e,t.ofType),r(e,"]")):r(e,t.name)}function s(e,t,n){const s=[],a="type"in e?e.type:e;return"type"in e&&e.description&&(r(s,e.description),r(s,"\n\n")),r(s,function(e,t){const n=[];return t&&r(n,"```graphql\n"),o(n,e),t&&r(n,"\n```"),n.join("")}(a,t)),n?(r(s,"\n"),r(s,n)):!(0,i.lg)(a)&&"description"in a&&a.description?(r(s,"\n"),r(s,a.description)):"ofType"in a&&!(0,i.lg)(a.ofType)&&"description"in a.ofType&&a.ofType.description&&(r(s,"\n"),r(s,a.ofType.description)),s.join("")}const a={Int:{type:"integer"},String:{type:"string"},Float:{type:"number"},ID:{type:"string"},Boolean:{type:"boolean"},DateTime:{type:"string"}};class u{constructor(){this.set=new Set}mark(e){return!this.set.has(e)&&(this.set.add(e),!0)}}function c(e,t){var n,r;let o=Object.create(null);const a=Object.create(null),u="type"in e?e.type:e,l=(0,i.bd)(u)?u.ofType:u,p=(0,i.bd)(u);if((0,i.lg)(l))(null===(n=null==t?void 0:t.scalarSchemas)||void 0===n?void 0:n[l.name])?o=JSON.parse(JSON.stringify(t.scalarSchemas[l.name])):o.type=["string","number","boolean","integer"],p||(Array.isArray(o.type)?o.type.push("null"):o.type?o.type=[o.type,"null"]:o.enum?o.enum.push(null):o.oneOf?o.oneOf.push({type:"null"}):o={oneOf:[o,{type:"null"}]});else if((0,i.oF)(l))o.enum=l.getValues().map(e=>e.name),p||o.enum.push(null);else if((0,i.Fs)(l)){o.type=p?"array":["array","null"];const{definition:e,definitions:n}=c(l.ofType,t);if(o.items=e,n)for(const e of Object.keys(n))a[e]=n[e]}else if((0,i.qK)(l)&&(p?o.$ref=`#/definitions/${l.name}`:o.oneOf=[{$ref:`#/definitions/${l.name}`},{type:"null"}],null===(r=null==t?void 0:t.definitionMarker)||void 0===r?void 0:r.mark(l.name))){const e=l.getFields(),n={type:"object",properties:{},required:[]};n.description=s(l),(null==t?void 0:t.useMarkdownDescription)&&(n.markdownDescription=s(l,!0));for(const i of Object.keys(e)){const r=e[i],{required:o,definition:s,definitions:u}=c(r,t);if(n.properties[i]=s,o&&n.required.push(i),u)for(const[e,t]of Object.entries(u))a[e]=t}a[l.name]=n}"defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue);const{description:d}=o;return o.description=s(e,!1,d),(null==t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=s(e,!0,d)),{required:p,definition:o,definitions:a}}function l(e,t){var n;const i={$schema:"http://json-schema.org/draft-04/schema",type:"object",properties:{},required:[],additionalProperties:!1},r=Object.assign(Object.assign({},t),{definitionMarker:new u,scalarSchemas:Object.assign(Object.assign({},a),null==t?void 0:t.scalarSchemas)});if(e)for(const[t,o]of Object.entries(e)){const{definition:e,required:s,definitions:a}=c(o,r);i.properties[t]=e,s&&(null===(n=i.required)||void 0===n||n.push(t)),a&&(i.definitions=Object.assign(Object.assign({},null==i?void 0:i.definitions),a))}return i}class p{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new d(e,t)}setEnd(e,t){this.end=new d(e,t)}}class d{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}var f=n(54674),g=n(62043),h=n(31875),m=n(19451),y=n(14100),v=n(92300),b=n(91595),E=n(90363),T=n(41613),_=n(93063),S=n(18668),A=n(59875),N=n(279),R=n(46748),x=n(8098),I=n(24773),O=n(57110),$=n(16314),k=n(57715),L=n(5072),C=n(14552);const D=[f.l,g.u,h.i,m.g,y.X,v.Z,b.y,E.e,T.U,_.S,S.J,A.C,N._,R.T,x.X];function M(e,t,n,i,r){const o=I.gv.filter(e=>e!==O.z&&e!==$.T&&(!i||e!==k.K));return n&&Array.prototype.push.apply(o,n),r&&Array.prototype.push.apply(o,D),(0,L.tf)(e,t,o).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===C.b.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}var F=n(86947)},29681(e,t,n){n.d(t,{n:()=>a});var i=n(84869),r=n(26635),o=n(81978);let s=!1;function a(e){if(s)return;s=!0;const t=new i.AU(e=>{globalThis.postMessage(e)},t=>new r.EditorSimpleWorker(o.EditorWorkerHost.getChannel(t),e));globalThis.onmessage=e=>{t.onmessage(e.data)}}globalThis.onmessage=e=>{s||a(null)}},34990(e,t,n){var i,r,o,s,a,u,c,l,p,d,f,g,h,m,y,v,b,E,T,_,S,A,N,R,x,I,O,$,k,L,C,D,M,F,w,U,H,j,P,V,q,G,B,Y,Q,X,K,J,z,W,Z,ee,te,ne,ie,re,oe,se,ae,ue,ce,le,pe,de,fe,ge,he,me,ye,ve,be,Ee,Te,_e,Se,Ae,Ne,Re,xe,Ie,Oe,$e,ke,Le,Ce=n(29681),De=n(34627),Me=n(26788),Fe=n(14552),we=n(79222),Ue=n(34058),He=n(50080),je=n(93544),Pe=n(59847);!function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.uinteger(t.line)&&Le.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,i){if(Le.uinteger(e)&&Le.uinteger(t)&&Le.uinteger(n)&&Le.uinteger(i))return{start:a.create(e,t),end:a.create(n,i)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){const t=e;return Le.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(u||(u={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&u.is(t.range)&&(Le.string(t.uri)||Le.undefined(t.uri))}}(c||(c={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&u.is(t.targetRange)&&Le.string(t.targetUri)&&u.is(t.targetSelectionRange)&&(u.is(t.originSelectionRange)||Le.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.numberRange(t.red,0,1)&&Le.numberRange(t.green,0,1)&&Le.numberRange(t.blue,0,1)&&Le.numberRange(t.alpha,0,1)}}(p||(p={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&u.is(t.range)&&p.is(t.color)}}(d||(d={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.string(t.label)&&(Le.undefined(t.textEdit)||_.is(t))&&(Le.undefined(t.additionalTextEdits)||Le.typedArray(t.additionalTextEdits,_.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,i,r,o){const s={startLine:e,endLine:t};return Le.defined(n)&&(s.startCharacter=n),Le.defined(i)&&(s.endCharacter=i),Le.defined(r)&&(s.kind=r),Le.defined(o)&&(s.collapsedText=o),s},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.uinteger(t.startLine)&&Le.uinteger(t.startLine)&&(Le.undefined(t.startCharacter)||Le.uinteger(t.startCharacter))&&(Le.undefined(t.endCharacter)||Le.uinteger(t.endCharacter))&&(Le.undefined(t.kind)||Le.string(t.kind))}}(h||(h={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Le.defined(t)&&c.is(t.location)&&Le.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,i,r,o){const s={range:e,message:t};return Le.defined(n)&&(s.severity=n),Le.defined(i)&&(s.code=i),Le.defined(r)&&(s.source=r),Le.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t;const n=e;return Le.defined(n)&&u.is(n.range)&&(Le.string(n.message)||U.is(n.message))&&(Le.number(n.severity)||Le.undefined(n.severity))&&(Le.integer(n.code)||Le.string(n.code)||Le.undefined(n.code))&&(Le.undefined(n.codeDescription)||Le.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Le.string(n.source)||Le.undefined(n.source))&&(Le.undefined(n.relatedInformation)||Le.typedArray(n.relatedInformation,m.is))},e.is3_17=function(e){return Le.string(e.message)},e.getMessageString=function(e){if(Le.string(e.message))return e.message;if(U.is(e.message))return e.message.value;throw new Error("Unknown message type "+typeof e.message)}}(E||(E={})),function(e){e.create=function(e,t,...n){const i={title:e,command:t};return Le.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){const t=e;return Le.defined(t)&&Le.string(t.title)&&(void 0===t.tooltip||Le.string(t.tooltip))&&Le.string(t.command)}}(T||(T={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.string(t.newText)&&u.is(t.range)}}(_||(_={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Le.objectLiteral(t)&&Le.string(t.label)&&(Le.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Le.string(t.description)||void 0===t.description)}}(S||(S={})),function(e){e.is=function(e){const t=e;return Le.string(t)}}(A||(A={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return _.is(t)&&(S.is(t.annotationId)||A.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Le.defined(t)&&D.is(t.textDocument)&&Array.isArray(t.edits)}}(R||(R={})),function(e){e.create=function(e,t,n){const i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"create"===t.kind&&Le.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n,i){const r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Le.string(t.oldUri)&&Le.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Le.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Le.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(I||(I={})),function(e){e.create=function(e,t,n){const i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Le.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Le.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Le.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||A.is(t.annotationId))}}(O||(O={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Le.string(e.kind)?x.is(e)||I.is(e)||O.is(e):R.is(e)))}}($||($={})),function(e){e.is=function(e){const t=e;return Le.objectLiteral(t)&&u.is(t.range)&&Ae.isSnippet(t.snippet)&&(void 0===t.annotationId||S.is(t.annotationId)||A.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Le.defined(t)&&Le.string(t.uri)}}(L||(L={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Le.defined(t)&&Le.string(t.uri)&&Le.integer(t.version)}}(C||(C={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Le.defined(t)&&Le.string(t.uri)&&(null===t.version||Le.integer(t.version))}}(D||(D={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="git-rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Plaintext="plaintext",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(M||(M={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){const t=e;return Le.defined(t)&&Le.string(t.uri)&&Le.string(t.languageId)&&Le.integer(t.version)&&Le.string(t.text)}}(F||(F={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(w||(w={})),function(e){e.is=function(e){const t=e;return Le.objectLiteral(e)&&w.is(t.kind)&&Le.string(t.value)}}(U||(U={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(H||(H={})),function(e){e.PlainText=1,e.Snippet=2}(j||(j={})),function(e){e.Deprecated=1}(P||(P={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Le.string(t.newText)&&u.is(t.insert)&&u.is(t.replace)}}(V||(V={})),function(e){e.asIs=1,e.adjustIndentation=2}(q||(q={})),function(e){e.Replace=1,e.Merge=2}(G||(G={})),function(e){e.is=function(e){const t=e;return t&&(Le.string(t.detail)||void 0===t.detail)&&(Le.string(t.description)||void 0===t.description)}}(B||(B={})),function(e){e.create=function(e){return{label:e}}}(Y||(Y={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Q||(Q={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Le.string(t)||Le.objectLiteral(t)&&Le.string(t.language)&&Le.string(t.value)}}(X||(X={})),function(e){e.is=function(e){const t=e;return!!t&&Le.objectLiteral(t)&&(U.is(t.contents)||X.is(t.contents)||Le.typedArray(t.contents,X.is))&&(void 0===e.range||u.is(e.range))}}(K||(K={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(J||(J={})),function(e){e.create=function(e,t,...n){const i={label:e};return Le.defined(t)&&(i.documentation=t),Le.defined(n)?i.parameters=n:i.parameters=[],i}}(z||(z={})),function(e){e.Text=1,e.Read=2,e.Write=3}(W||(W={})),function(e){e.create=function(e,t){const n={range:e};return Le.number(t)&&(n.kind=t),n}}(Z||(Z={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,n,i,r){const o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o}}(ne||(ne={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(ie||(ie={})),function(e){e.create=function(e,t,n,i,r,o){const s={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(s.children=o),s},e.is=function(e){const t=e;return t&&Le.string(t.name)&&Le.number(t.kind)&&u.is(t.range)&&u.is(t.selectionRange)&&(void 0===t.detail||Le.string(t.detail))&&(void 0===t.deprecated||Le.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(re||(re={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(oe||(oe={})),function(e){e.Invoked=1,e.Automatic=2}(se||(se={})),function(e){e.create=function(e,t,n){const i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){const t=e;return Le.defined(t)&&Le.typedArray(t.diagnostics,E.is)&&(void 0===t.only||Le.typedArray(t.only,Le.string))&&(void 0===t.triggerKind||t.triggerKind===se.Invoked||t.triggerKind===se.Automatic)}}(ae||(ae={})),function(e){e.LLMGenerated=1,e.is=function(t){return Le.defined(t)&&t===e.LLMGenerated}}(ue||(ue={})),function(e){e.create=function(e,t,n){const i={title:e};let r=!0;return"string"==typeof t?(r=!1,i.kind=t):T.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return t&&Le.string(t.title)&&(void 0===t.diagnostics||Le.typedArray(t.diagnostics,E.is))&&(void 0===t.kind||Le.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||T.is(t.command))&&(void 0===t.isPreferred||Le.boolean(t.isPreferred))&&(void 0===t.edit||$.is(t.edit))&&(void 0===t.tags||Le.typedArray(t.tags,ue.is))}}(ce||(ce={})),function(e){e.create=function(e,t){const n={range:e};return Le.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Le.defined(t)&&u.is(t.range)&&(Le.undefined(t.command)||T.is(t.command))}}(le||(le={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Le.defined(t)&&Le.uinteger(t.tabSize)&&Le.boolean(t.insertSpaces)}}(pe||(pe={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Le.defined(t)&&u.is(t.range)&&(Le.undefined(t.target)||Le.string(t.target))}}(de||(de={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Le.objectLiteral(n)&&u.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(fe||(fe={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(ge||(ge={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(he||(he={})),function(e){e.is=function(e){const t=e;return Le.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(me||(me={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&u.is(t.range)&&Le.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&u.is(t.range)&&Le.boolean(t.caseSensitiveLookup)&&(Le.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&u.is(t.range)&&(Le.string(t.expression)||void 0===t.expression)}}(be||(be={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Le.defined(t)&&u.is(e.stoppedLocation)}}(Ee||(Ee={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Te||(Te={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Le.objectLiteral(t)&&(void 0===t.tooltip||Le.string(t.tooltip)||U.is(t.tooltip))&&(void 0===t.location||c.is(t.location))&&(void 0===t.command||T.is(t.command))}}(_e||(_e={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Le.objectLiteral(t)&&a.is(t.position)&&(Le.string(t.label)||Le.typedArray(t.label,_e.is))&&(void 0===t.kind||Te.is(t.kind))&&void 0===t.textEdits||Le.typedArray(t.textEdits,_.is)&&(void 0===t.tooltip||Le.string(t.tooltip)||U.is(t.tooltip))&&(void 0===t.paddingLeft||Le.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Le.boolean(t.paddingRight))}}(Se||(Se={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Le.objectLiteral(t)&&"snippet"===t.kind&&Le.string(t.value)}}(Ae||(Ae={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(Ne||(Ne={})),function(e){e.create=function(e){return{items:e}}}(Re||(Re={})),function(e){e.Invoked=1,e.Automatic=2}(xe||(xe={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ie||(Ie={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Oe||(Oe={})),function(e){e.is=function(e){const t=e;return Le.objectLiteral(t)&&r.is(t.uri)&&Le.string(t.name)}}($e||($e={})),function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);let s=0,a=0,u=0;for(;s<r.length&&a<o.length;){const t=n(r[s],o[a]);e[u++]=t<=0?r[s++]:o[a++]}for(;s<r.length;)e[u++]=r[s++];for(;a<o.length;)e[u++]=o[a++];return e}e.create=function(e,t,n,i){return new Ve(e,t,n,i)},e.is=function(e){const t=e;return!!(Le.defined(t)&&Le.string(t.uri)&&(Le.undefined(t.languageId)||Le.string(t.languageId))&&Le.uinteger(t.lineCount)&&Le.func(t.getText)&&Le.func(t.positionAt)&&Le.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText();const r=t(n,(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let o=i.length;for(let t=r.length-1;t>=0;t--){const n=r[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=o))throw new Error("Overlapping edit");i=i.substring(0,s)+n.newText+i.substring(a,i.length),o=s}return i}}(ke||(ke={}));class Ve{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);const r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return a.create(0,e);for(;n<i;){const r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}const r=n-1;return a.create(r,e-t[r])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Le||(Le={}));var qe,Ge=n(49570),Be=(n(72142),n(43669));function Ye(e,t){const n=e.split("\n"),i=(0,Be.A)();let r=i.startState(),o="",s=new Ge.A("");for(let e=0;e<n.length;e++){for(s=new Ge.A(n[e]);!s.eol()&&(o=i.token(s,r),"BREAK"!==t(s,r,o,e)););t(s,r,o,e),r.kind||(r=i.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:r,style:o}}!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(qe||(qe={}));const Qe=[Fe.b.SCHEMA_DEFINITION,Fe.b.OPERATION_TYPE_DEFINITION,Fe.b.SCALAR_TYPE_DEFINITION,Fe.b.OBJECT_TYPE_DEFINITION,Fe.b.INTERFACE_TYPE_DEFINITION,Fe.b.UNION_TYPE_DEFINITION,Fe.b.ENUM_TYPE_DEFINITION,Fe.b.INPUT_OBJECT_TYPE_DEFINITION,Fe.b.DIRECTIVE_DEFINITION,Fe.b.SCHEMA_EXTENSION,Fe.b.SCALAR_TYPE_EXTENSION,Fe.b.OBJECT_TYPE_EXTENSION,Fe.b.INTERFACE_TYPE_EXTENSION,Fe.b.UNION_TYPE_EXTENSION,Fe.b.ENUM_TYPE_EXTENSION,Fe.b.INPUT_OBJECT_TYPE_EXTENSION];function Xe(e,t,n=0){let i=null,r=null,o=null;const s=Ye(e,(e,s,a,u)=>{if(!(u!==t.line||e.getCurrentPosition()+n<t.character+1))return i=a,r=Object.assign({},s),o=e.current(),"BREAK"});return{start:s.start,end:s.end,string:o||s.string,state:r||s.state,style:i||s.style}}function Ke(e,t,n,i,r,o=0){const s=i||Xe(e,t,o);if(!s)return null;const a="Invalid"===s.state.kind?s.state.prevState:s.state;if(!a)return null;const u=function(e,t){let n,i,r,o,s,a,u,c,l,p,d;return ze(t,t=>{var f;switch(t.kind){case Ze.q.QUERY:case"ShortQuery":p=e.getQueryType();break;case Ze.q.MUTATION:p=e.getMutationType();break;case Ze.q.SUBSCRIPTION:p=e.getSubscriptionType();break;case Ze.q.INLINE_FRAGMENT:case Ze.q.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case Ze.q.FIELD:case Ze.q.ALIASED_FIELD:p&&t.name?(s=l?Je(e,l,t.name):null,p=s?s.type:null):s=null;break;case Ze.q.SELECTION_SET:l=(0,we.MR)(p);break;case Ze.q.DIRECTIVE:r=t.name?e.getDirective(t.name):null;break;case Ze.q.INTERFACE_DEF:t.name&&(u=null,d=new we.VA({name:t.name,interfaces:[],fields:{}}));break;case Ze.q.OBJECT_TYPE_DEF:t.name&&(d=null,u=new we.bh({name:t.name,interfaces:[],fields:{}}));break;case Ze.q.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Ze.q.FIELD:i=s&&s.args;break;case Ze.q.DIRECTIVE:i=r&&r.args;break;case Ze.q.ALIASED_FIELD:{const n=null===(f=t.prevState)||void 0===f?void 0:f.name;if(!n){i=null;break}const r=l?Je(e,l,n):null;if(!r){i=null;break}i=r.args;break}default:i=null}else i=null;break;case Ze.q.ARGUMENT:if(i)for(let e=0;e<i.length;e++)if(i[e].name===t.name){n=i[e];break}a=null==n?void 0:n.type;break;case Ze.q.VARIABLE_DEFINITION:case Ze.q.VARIABLE:p=a;break;case Ze.q.ENUM_VALUE:const g=(0,we.MR)(a);o=g instanceof we.Zb?g.getValues().find(e=>e.value===t.name):null;break;case Ze.q.LIST_VALUE:const h=(0,we.yl)(a);a=h instanceof we.KT?h.ofType:null;break;case Ze.q.OBJECT_VALUE:const m=(0,we.MR)(a);c=m instanceof we.zP?m.getFields():null;break;case Ze.q.OBJECT_FIELD:const y=t.name&&c?c[t.name]:null;a=null==y?void 0:y.type,s=y,p=s?s.type:null;break;case Ze.q.NAMED_TYPE:t.name&&(p=e.getType(t.name))}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:o,fieldDef:s,inputType:a,objectFieldDefs:c,parentType:l,type:p,interfaceDef:d,objectTypeDef:u}}(n,s.state);return{token:s,state:a,typeInfo:u,mode:(null==r?void 0:r.mode)||(c=e,l=null==r?void 0:r.uri,(null==l?void 0:l.endsWith(".graphqls"))?qe.TYPE_SYSTEM:(e=>{let t=qe.UNKNOWN;if(e)try{(0,De.YR)((0,Me.qg)(e),{enter(e){if("Document"!==e.kind)return!!Qe.includes(e.kind)&&(t=qe.TYPE_SYSTEM,De.sP);t=qe.EXECUTABLE}})}catch(e){return t}return t})(c))};var c,l}function Je(e,t,n){return n===Ue.S0.name&&e.getQueryType()===t?Ue.S0:n===Ue.Xe.name&&e.getQueryType()===t?Ue.Xe:n===Ue.of.name&&(0,we.ML)(t)?Ue.of:"getFields"in t?t.getFields()[n]:null}function ze(e,t){const n=[];let i=e;for(;null==i?void 0:i.kind;)n.push(i),i=i.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}var We,Ze=n(38580);function et(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function tt(e,t){return function(e,t){if(!t||""===t.trim()||":"===t.trim()||"{"===t.trim())return nt(e,e=>!e.isDeprecated);return nt(nt(e.map(e=>({proximity:rt(it(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry)}(t,it(e.string))}function nt(e,t){const n=e.filter(t);return 0===n.length?e:n}function it(e){return e.toLowerCase().replaceAll(/\W/g,"")}function rt(e,t){let n=function(e,t){let n,i;const r=[],o=e.length,s=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=s;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=s;i++){const o=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+o),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+o))}return r[o][s]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(We||(We={}));const ot=(e,t,n)=>{if(!t)return null!=n?n:e;const i=(0,we.MR)(t);return(0,we.YQ)(i)||(0,we.qK)(i)||(0,we.Fs)(i)||(0,we.Lc)(i)?e+" {\n $1\n}":null!=n?n:e},st=(e,t,n)=>{if((0,we.Fs)(t)){const n=(0,we.MR)(t.ofType);return e+`[${ot("",n,"$1")}]`}return ot(e,t,n)},at={command:"editor.action.triggerSuggest",title:"Suggestions"};function ut(e,t,n,i,r,o){var s;const a=Object.assign(Object.assign({},o),{schema:e}),u=Ke(t,n,e,i,o,1);if(!u)return[];const{state:c,typeInfo:l,mode:p,token:d}=u,{kind:f,step:g,prevState:h}=c;if(f===Ze.q.DOCUMENT)return p===qe.TYPE_SYSTEM?function(e){return tt(e,[{label:"extend",kind:We.Function},...ct])}(d):p===qe.EXECUTABLE?function(e){return tt(e,lt)}(d):function(e){return tt(e,[{label:"extend",kind:We.Function},...lt,...ct])}(d);if(f===Ze.q.EXTEND_DEF)return function(e){return tt(e,ct)}(d);if((null===(s=null==h?void 0:h.prevState)||void 0===s?void 0:s.kind)===Ze.q.EXTENSION_DEFINITION&&c.name)return tt(d,[]);if((null==h?void 0:h.kind)===Fe.b.SCALAR_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(we.lg).map(e=>({label:e.name,kind:We.Function})));if((null==h?void 0:h.kind)===Fe.b.OBJECT_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(e=>(0,we.YQ)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:We.Function})));if((null==h?void 0:h.kind)===Fe.b.INTERFACE_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(we.kD).map(e=>({label:e.name,kind:We.Function})));if((null==h?void 0:h.kind)===Fe.b.UNION_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(we.CK).map(e=>({label:e.name,kind:We.Function})));if((null==h?void 0:h.kind)===Fe.b.ENUM_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(e=>(0,we.oF)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:We.Function})));if((null==h?void 0:h.kind)===Fe.b.INPUT_OBJECT_TYPE_EXTENSION)return tt(d,Object.values(e.getTypeMap()).filter(we.qK).map(e=>({label:e.name,kind:We.Function})));if(f===Ze.q.IMPLEMENTS||f===Ze.q.NAMED_TYPE&&(null==h?void 0:h.kind)===Ze.q.IMPLEMENTS)return function(e,t,n,i,r){if(t.needsSeparator)return[];const o=et(n.getTypeMap()).filter(we.kD),s=o.map(({name:e})=>e),a=new Set;Ye(i,(e,t)=>{var i,o,u,c,l;if(t.name&&(t.kind!==Ze.q.INTERFACE_DEF||s.includes(t.name)||a.add(t.name),t.kind===Ze.q.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===Ze.q.IMPLEMENTS))if(r.interfaceDef){if(null===(o=r.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(u=r.interfaceDef)||void 0===u?void 0:u.toConfig();r.interfaceDef=new we.VA(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new we.VA({name:t.name,fields:{}})]}))}else if(r.objectTypeDef){if(null===(c=r.objectTypeDef)||void 0===c?void 0:c.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),i=null===(l=r.objectTypeDef)||void 0===l?void 0:l.toConfig();r.objectTypeDef=new we.bh(Object.assign(Object.assign({},i),{interfaces:[...i.interfaces,e||new we.VA({name:t.name,fields:{}})]}))}});const u=r.interfaceDef||r.objectTypeDef,c=((null==u?void 0:u.getInterfaces())||[]).map(({name:e})=>e);return tt(e,o.concat([...a].map(e=>({name:e}))).filter(({name:e})=>e!==(null==u?void 0:u.name)&&!c.includes(e)).map(e=>{const t={label:e.name,kind:We.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(d,c,e,t,l);if(f===Ze.q.SELECTION_SET||f===Ze.q.FIELD||f===Ze.q.ALIASED_FIELD)return function(e,t,n){var i;if(t.parentType){const{parentType:r}=t;let o=[];return"getFields"in r&&(o=et(r.getFields())),(0,we.ML)(r)&&o.push(Ue.of),r===(null===(i=null==n?void 0:n.schema)||void 0===i?void 0:i.getQueryType())&&o.push(Ue.S0,Ue.Xe),tt(e,o.map((t,i)=>{var r;const o={sortText:String(i)+t.name,label:t.name,detail:String(t.type),documentation:null!==(r=t.description)&&void 0!==r?r:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:We.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=(e=>{const t=e.args.filter(e=>e.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${ot("",e.type,"\n")}`})(t),o.insertText||(o.insertText=ot(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=j.Snippet,o.insertTextMode=q.adjustIndentation,o.command=at)),o}))}return[]}(d,l,a);if(f===Ze.q.ARGUMENTS||f===Ze.q.ARGUMENT&&0===g){const{argDefs:e}=l;if(e)return tt(d,e.map(e=>{var t;return{label:e.name,insertText:st(e.name+": ",e.type),insertTextMode:q.adjustIndentation,insertTextFormat:j.Snippet,command:at,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:We.Variable,type:e.type}}))}if((f===Ze.q.OBJECT_VALUE||f===Ze.q.OBJECT_FIELD&&0===g)&&l.objectFieldDefs){const e=et(l.objectFieldDefs),t=f===Ze.q.OBJECT_VALUE?We.Value:We.Field;return tt(d,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:st(e.name+": ",e.type),insertTextMode:q.adjustIndentation,insertTextFormat:j.Snippet,command:at}}))}if(f===Ze.q.ENUM_VALUE||f===Ze.q.LIST_VALUE&&1===g||f===Ze.q.OBJECT_FIELD&&2===g||f===Ze.q.ARGUMENT&&2===g)return function(e,t,n,i){const r=(0,we.MR)(t.inputType),o=pt(n,i,e).filter(e=>e.detail===(null==r?void 0:r.name));return r instanceof we.Zb?tt(e,r.getValues().map(e=>{var t;return{label:e.name,detail:String(r),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:We.EnumMember,type:r}}).concat(o)):r===He.kk?tt(e,o.concat([{label:"true",detail:String(He.kk),documentation:"Not false.",kind:We.Variable,type:He.kk},{label:"false",detail:String(He.kk),documentation:"Not true.",kind:We.Variable,type:He.kk}])):o}(d,l,t,e);if(f===Ze.q.VARIABLE&&1===g){const n=(0,we.MR)(l.inputType);return tt(d,pt(t,e,d).filter(e=>e.detail===(null==n?void 0:n.name)))}if(f===Ze.q.TYPE_CONDITION&&1===g||f===Ze.q.NAMED_TYPE&&null!=h&&h.kind===Ze.q.TYPE_CONDITION)return function(e,t,n){let i;if(t.parentType)if((0,we.Lc)(t.parentType)){const e=(0,we.N_)(t.parentType),r=n.getPossibleTypes(e),o=Object.create(null);for(const e of r)for(const t of e.getInterfaces())o[t.name]=t;i=r.concat(et(o))}else i=[t.parentType];else i=et(n.getTypeMap()).filter(e=>(0,we.ML)(e)&&!e.name.startsWith("__"));return tt(e,i.map(e=>{const t=(0,we.MR)(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:We.Field}}))}(d,l,e);if(f===Ze.q.FRAGMENT_SPREAD&&1===g)return function(e,t,n,i,r){if(!i)return[];const o=n.getTypeMap(),s=function(e){let t;return ze(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}(e.state),a=function(e){const t=[];return Ye(e,(e,n)=>{n.kind===Ze.q.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Ze.q.FRAGMENT_DEFINITION,name:{kind:Fe.b.NAME,value:n.name},selectionSet:{kind:Ze.q.SELECTION_SET,selections:[]},typeCondition:{kind:Ze.q.NAMED_TYPE,name:{kind:Fe.b.NAME,value:n.type}}})}),t}(i);r&&r.length>0&&a.push(...r);return tt(e,a.filter(e=>o[e.typeCondition.name.value]&&!(s&&s.kind===Ze.q.FRAGMENT_DEFINITION&&s.name===e.name.value)&&(0,we.ML)(t.parentType)&&(0,we.ML)(o[e.typeCondition.name.value])&&(0,je.uI)(n,t.parentType,o[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:We.Field,type:o[e.typeCondition.name.value]})))}(d,l,e,t,Array.isArray(r)?r:(e=>{const t=[];if(e)try{(0,De.YR)((0,Me.qg)(e),{FragmentDefinition(e){t.push(e)}})}catch(e){return[]}return t})(r));const m=dt(c);return m.kind===Ze.q.FIELD_DEF?tt(d,Object.values(e.getTypeMap()).filter(e=>(0,we.oH)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:We.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:q.adjustIndentation}))):m.kind===Ze.q.INPUT_VALUE_DEF&&2===g?tt(d,Object.values(e.getTypeMap()).filter(e=>(0,we.dX)(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:We.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:q.adjustIndentation,insertTextFormat:j.Snippet}))):f===Ze.q.VARIABLE_DEFINITION&&2===g||f===Ze.q.LIST_TYPE&&1===g||f===Ze.q.NAMED_TYPE&&h&&(h.kind===Ze.q.VARIABLE_DEFINITION||h.kind===Ze.q.LIST_TYPE||h.kind===Ze.q.NON_NULL_TYPE)?function(e,t){return tt(e,et(t.getTypeMap()).filter(we.dX).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:We.Variable})))}(d,e):f===Ze.q.DIRECTIVE?function(e,t,n){var i;if(null===(i=t.prevState)||void 0===i?void 0:i.kind){const i=n.getDirectives().filter(e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:i}=e,{locations:r}=t;switch(n){case Ze.q.QUERY:return r.includes(Pe.H.QUERY);case Ze.q.MUTATION:return r.includes(Pe.H.MUTATION);case Ze.q.SUBSCRIPTION:return r.includes(Pe.H.SUBSCRIPTION);case Ze.q.FIELD:case Ze.q.ALIASED_FIELD:return r.includes(Pe.H.FIELD);case Ze.q.FRAGMENT_DEFINITION:return r.includes(Pe.H.FRAGMENT_DEFINITION);case Ze.q.FRAGMENT_SPREAD:return r.includes(Pe.H.FRAGMENT_SPREAD);case Ze.q.INLINE_FRAGMENT:return r.includes(Pe.H.INLINE_FRAGMENT);case Ze.q.SCHEMA_DEF:return r.includes(Pe.H.SCHEMA);case Ze.q.SCALAR_DEF:return r.includes(Pe.H.SCALAR);case Ze.q.OBJECT_TYPE_DEF:return r.includes(Pe.H.OBJECT);case Ze.q.FIELD_DEF:return r.includes(Pe.H.FIELD_DEFINITION);case Ze.q.INTERFACE_DEF:return r.includes(Pe.H.INTERFACE);case Ze.q.UNION_DEF:return r.includes(Pe.H.UNION);case Ze.q.ENUM_DEF:return r.includes(Pe.H.ENUM);case Ze.q.ENUM_VALUE:return r.includes(Pe.H.ENUM_VALUE);case Ze.q.INPUT_DEF:return r.includes(Pe.H.INPUT_OBJECT);case Ze.q.INPUT_VALUE_DEF:switch(null==i?void 0:i.kind){case Ze.q.ARGUMENTS_DEF:return r.includes(Pe.H.ARGUMENT_DEFINITION);case Ze.q.INPUT_DEF:return r.includes(Pe.H.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e));return tt(e,i.map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:We.Function})))}return[]}(d,c,e):f===Ze.q.DIRECTIVE_DEF?function(e,t,n){const i=n.getDirectives().find(e=>e.name===t.name);return tt(e,(null==i?void 0:i.args.map(e=>({label:e.name,documentation:e.description||"",kind:We.Field})))||[])}(d,c,e):[]}const ct=[{label:"type",kind:We.Function},{label:"interface",kind:We.Function},{label:"union",kind:We.Function},{label:"input",kind:We.Function},{label:"scalar",kind:We.Function},{label:"schema",kind:We.Function}],lt=[{label:"query",kind:We.Function},{label:"mutation",kind:We.Function},{label:"subscription",kind:We.Function},{label:"fragment",kind:We.Function},{label:"{",kind:We.Constructor}];function pt(e,t,n){let i,r=null;const o=Object.create({});return Ye(e,(e,s)=>{var a;if((null==s?void 0:s.kind)===Ze.q.VARIABLE&&s.name&&(r=s.name),(null==s?void 0:s.kind)===Ze.q.NAMED_TYPE&&r){const e=((e,t)=>{var n,i,r,o,s,a,u,c,l,p;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(r=null===(i=e.prevState)||void 0===i?void 0:i.prevState)||void 0===r?void 0:r.kind)===t?e.prevState.prevState:(null===(a=null===(s=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===s?void 0:s.prevState)||void 0===a?void 0:a.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(l=null===(c=null===(u=e.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===l?void 0:l.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(s,Ze.q.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}if(r&&i&&!o[r]){const e="$"===n.string||"Variable"===(null===(a=null==n?void 0:n.state)||void 0===a?void 0:a.kind)?r:"$"+r;o[r]={detail:i.toString(),insertText:e,label:"$"+r,rawInsert:e,type:i,kind:We.Variable},r=null,i=null}}),et(o)}function dt(e){return e.prevState&&e.kind&&[Ze.q.NAMED_TYPE,Ze.q.LIST_TYPE,Ze.q.TYPE,Ze.q.NON_NULL_TYPE].includes(e.kind)?dt(e.prevState):e}n(56220);var ft=n(64121),gt=n(4405),ht=n(5072),mt=n(99115);function yt(e){return{Field(t){const n=e.getFieldDef(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=e.getParentType();null!=r||(0,mt.V)(!1),e.reportError(new gt.eO(`The field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=e.getDirective();if(null!=r)e.reportError(new gt.eO(`Directive "@${r.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}));else{const r=e.getParentType(),o=e.getFieldDef();null!=r&&null!=o||(0,mt.V)(!1),e.reportError(new gt.eO(`Field "${r.name}.${o.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}))}}},ObjectField(t){const n=(0,we.MR)(e.getParentInputType());if((0,we.qK)(n)){const i=n.getFields()[t.name.value],r=null==i?void 0:i.deprecationReason;null!=r&&e.reportError(new gt.eO(`The input field ${n.name}.${i.name} is deprecated. ${r}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){const r=(0,we.MR)(e.getInputType());null!=r||(0,mt.V)(!1),e.reportError(new gt.eO(`The enum value "${r.name}.${n.name}" is deprecated. ${i}`,{nodes:t}))}}}}var vt=n(25907);const bt="Error",Et="Warning",Tt="Information",_t="Hint",St={[bt]:1,[Et]:2,[Tt]:3,[_t]:4},At=(e,t)=>{if(!e)throw new Error(t)};function Nt(e,t,n){if(!e.nodes)return[];const i=[];for(const[r,o]of e.nodes.entries()){const s="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(s){At(e.locations,"GraphQL validation error requires locations.");const o=e.locations[r],a=Rt(s),u=o.column+(a.end-a.start);i.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new vt.Q6(new vt.yX(o.line-1,o.column-1),new vt.yX(o.line-1,u))})}}return i}function Rt(e){const t=e.loc;return At(t,"Expected ASTNode to have a location."),t}function xt(e,t){t.useMarkdown&&Dt(e,"```graphql\n")}function It(e,t){t.useMarkdown&&Dt(e,"\n```")}function Ot(e,t,n){if(!t.fieldDef)return;const i=t.fieldDef.name;"__"!==i.slice(0,2)&&(Lt(e,t,n,t.parentType),Dt(e,".")),Dt(e,i)}function $t(e,t,n){t.directiveDef&&Dt(e,"@"+t.directiveDef.name)}function kt(e,t,n,i){Dt(e,": "),Lt(e,t,n,i)}function Lt(e,t,n,i){i&&(i instanceof we.Gc?(Lt(e,t,n,i.ofType),Dt(e,"!")):i instanceof we.KT?(Dt(e,"["),Lt(e,t,n,i.ofType),Dt(e,"]")):Dt(e,i.name))}function Ct(e,t,n){if(!n)return;const i="string"==typeof n.description?n.description:null;i&&(Dt(e,"\n\n"),Dt(e,i)),function(e,t,n){if(!n)return;const i=n.deprecationReason;i&&(Dt(e,"\n\n"),Dt(e,"Deprecated: "),Dt(e,i))}(e,0,n)}function Dt(e,t){e.push(t)}n(50215);var Mt=n(40708),Ft=n.n(Mt),wt=n(8063),Ut=n(55279);const Ht=(e,t)=>{const{schema:n,documentAST:i,introspectionJSON:r,introspectionJSONString:o,buildSchemaOptions:s,documentString:a}=e;if(n)return n;if(o){const e=JSON.parse(o);return(0,wt.D)(e,s)}if(a&&t){const e=t(a);return(0,Ut.o)(e,s)}if(r)return(0,wt.D)(r,s);if(i)return(0,Ut.o)(i,s);throw new Error("No schema supplied")},jt=new Map;class Pt{_parser=Me.qg;_schemas=[];_schemaCache=jt;_schemaLoader=Ht;_parseOptions;_customValidationRules;_externalFragmentDefinitionNodes=null;_externalFragmentDefinitionsString=null;_completionSettings;constructor({parser:e,schemas:t,parseOptions:n,externalFragmentDefinitions:i,customValidationRules:r,fillLeafsOnComplete:o,completionSettings:s}){this._schemaLoader=Ht,t&&(this._schemas=t,this._cacheSchemas()),e&&(this._parser=e),this._completionSettings={...s,fillLeafsOnComplete:s?.fillLeafsOnComplete??o},n&&(this._parseOptions=n),r&&(this._customValidationRules=r),i&&(Array.isArray(i)?this._externalFragmentDefinitionNodes=i:this._externalFragmentDefinitionsString=i)}_cacheSchemas(){for(const e of this._schemas)this._cacheSchema(e)}_cacheSchema(e){const t=this._schemaLoader(e,this.parse.bind(this));return this._schemaCache.set(e.uri,{...e,schema:t})}getSchemaForFile(e){if(!this._schemas.length)return;if(1===this._schemas.length)return this._schemaCache.get(this._schemas[0].uri);const t=this._schemas.find(t=>!!t.fileMatch&&t.fileMatch.some(t=>Ft()(t)(e)));if(t){const e=this._schemaCache.get(t.uri);return e||this._cacheSchema(t).get(t.uri)}}getExternalFragmentDefinitions(){if(!this._externalFragmentDefinitionNodes&&this._externalFragmentDefinitionsString){const e=[];try{(0,De.YR)(this._parser(this._externalFragmentDefinitionsString),{FragmentDefinition(t){e.push(t)}})}catch{throw new Error(`Failed parsing externalFragmentDefinitions string:\n${this._externalFragmentDefinitionsString}`)}this._externalFragmentDefinitionNodes=e}return this._externalFragmentDefinitionNodes}async updateSchemas(e){this._schemas=e,this._cacheSchemas()}updateSchema(e){const t=this._schemas.findIndex(t=>t.uri===e.uri);t<0?console.warn("updateSchema could not find a schema in your config by that URI",e.uri):(this._schemas[t]=e,this._cacheSchema(e))}addSchema(e){this._schemas.push(e),this._cacheSchema(e)}parse(e,t){return this._parser(e,t||this._parseOptions)}getCompletion=(e,t,n)=>{const i=this.getSchemaForFile(e);return t&&i?.schema?ut(i.schema,t,n,void 0,this.getExternalFragmentDefinitions(),{uri:e,...this._completionSettings}):[]};getDiagnostics=(e,t,n)=>{const i=this.getSchemaForFile(e);return!t||t.trim().length<2||!i?.schema?[]:function(e,t=null,n,i,r){var o,s;let a=null,u="";r&&(u="string"==typeof r?r:r.reduce((e,t)=>e+(0,ft.y)(t)+"\n\n",""));const c=u?`${e}\n\n${u}`:e;try{a=(0,Me.qg)(c)}catch(e){if(e instanceof gt.eO){const t=function(e,t){const n=(0,Be.A)(),i=n.startState(),r=t.split("\n");At(r.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let t=0;t<e.line;t++)for(o=new Ge.A(r[t]);!o.eol()&&"invalidchar"!==n.token(o,i););At(o,"Expected Parser stream to be available.");const s=e.line-1,a=o.getStartOfToken(),u=o.getCurrentPosition();return new vt.Q6(new vt.yX(s,a),new vt.yX(s,u))}(null!==(s=null===(o=e.locations)||void 0===o?void 0:o[0])&&void 0!==s?s:{line:0,column:0},c);return[{severity:St.Error,message:e.message,source:"GraphQL: Syntax",range:t}]}throw e}return function(e,t=null,n,i){if(!t)return[];const r=(0,vt.fq)(t,e,n,i).flatMap(e=>Nt(e,St.Error,"Validation")),o=(0,ht.tf)(t,e,[yt]).flatMap(e=>Nt(e,St.Warning,"Deprecation"));return r.concat(o)}(a,t,n,i)}(t,i.schema,n??this._customValidationRules,!1,this.getExternalFragmentDefinitions())};getHover=(e,t,n,i)=>{const r=this.getSchemaForFile(e);if(r&&t.length>3)return function(e,t,n,i,r){const o=Object.assign(Object.assign({},r),{schema:e}),s=Ke(t,n,e,i);if(!s)return"";const{typeInfo:a,token:u}=s,{kind:c,step:l}=u.state;if("Field"===c&&0===l&&a.fieldDef||"AliasedField"===c&&2===l&&a.fieldDef||"ObjectField"===c&&0===l&&a.fieldDef){const e=[];return xt(e,o),function(e,t,n){Ot(e,t,n),kt(e,t,n,t.type)}(e,a,o),It(e,o),Ct(e,0,a.fieldDef),e.join("").trim()}if("Directive"===c&&1===l&&a.directiveDef){const e=[];return xt(e,o),$t(e,a),It(e,o),Ct(e,0,a.directiveDef),e.join("").trim()}if("Variable"===c&&a.type){const e=[];return xt(e,o),Lt(e,a,o,a.type),It(e,o),Ct(e,0,a.type),e.join("").trim()}if("Argument"===c&&0===l&&a.argDef){const e=[];return xt(e,o),function(e,t,n){if(t.directiveDef?$t(e,t):t.fieldDef&&Ot(e,t,n),!t.argDef)return;const{name:i}=t.argDef;Dt(e,"("),Dt(e,i),kt(e,t,n,t.inputType),Dt(e,")")}(e,a,o),It(e,o),Ct(e,0,a.argDef),e.join("").trim()}if("EnumValue"===c&&a.enumValue&&"description"in a.enumValue){const e=[];return xt(e,o),function(e,t,n){if(!t.enumValue)return;const{name:i}=t.enumValue;Lt(e,t,n,t.inputType),Dt(e,"."),Dt(e,i)}(e,a,o),It(e,o),Ct(e,0,a.enumValue),e.join("").trim()}if("NamedType"===c&&a.type&&"description"in a.type){const e=[];return xt(e,o),Lt(e,a,o,a.type),It(e,o),Ct(e,0,a.type),e.join("").trim()}return""}(r.schema,t,n,void 0,{useMarkdown:!0,...i})};getVariablesJSONSchema=(e,t,n)=>{const i=this.getSchemaForFile(e);if(i&&t.length>3)try{const e=this.parse(t),{variableToType:r}=(0,vt.FH)(e,i.schema);if(r)return(0,vt.$V)(r,{...n,scalarSchemas:i.customScalarSchemas})}catch{}return null}}var Vt=n(4731);function qt(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function Gt(e){return new vt.yX(e.lineNumber-1,e.column-1)}function Bt(e){const t={1:Vt.cj.Error,2:Vt.cj.Warning,3:Vt.cj.Info,4:Vt.cj.Hint};return e?t[e]:t[2]}function Yt(e){return{startLineNumber:e.range.start.line+1,endLineNumber:e.range.end.line+1,startColumn:e.range.start.character+1,endColumn:e.range.end.character,message:e.message,severity:Bt(e.severity),code:e.code||void 0}}class Qt{_ctx;_languageService;_formattingOptions;constructor(e,t){this._ctx=e,this._languageService=new Pt(t.languageConfig),this._formattingOptions=t.formattingOptions}async doValidation(e){try{const t=this._getTextModel(e),n=t?.getValue();return n?this._languageService.getDiagnostics(e,n).map(Yt):[]}catch(e){return console.error(e),[]}}async doComplete(e,t){try{const n=this._getTextModel(e),i=n?.getValue();if(!i)return[];const r=Gt(t);return this._languageService.getCompletion(e,i,r).map(e=>{return{label:(t=e).label,insertText:t.insertText,sortText:t.sortText,filterText:t.filterText,...t.documentation&&{documentation:{value:t.documentation}},detail:t.detail,...n,kind:t.kind,...t.insertTextFormat&&{insertTextFormat:t.insertTextFormat},...t.insertTextMode&&{insertTextMode:t.insertTextMode},...t.command&&{command:{...t.command,id:t.command.command}},...t.labelDetails&&{labelDetails:t.labelDetails}};var t,n})}catch(e){return console.error(e),[]}}async doHover(e,t){try{const n=this._getTextModel(e),i=n?.getValue();if(!i)return null;const r=Gt(t),o=this._languageService.getHover(e,i,r),s=Xe(i,r);return{content:o,range:qt(new vt.Q6(new vt.yX(r.line,s.start),new vt.yX(r.line,s.end)))}}catch(e){return console.error(e),null}}async doGetVariablesJSONSchema(e){const t=this._getTextModel(e),n=t?.getValue();if(!t||!n)return null;const i=this._languageService.getVariablesJSONSchema(e,n,{useMarkdownDescription:!0});return i?{...i,$id:"monaco://variables-schema.json",title:"GraphQL Variables"}:null}async doFormat(e){const t=this._getTextModel(e),i=t?.getValue();if(!t||!i)return null;const r=await n.e(7413).then(n.bind(n,17413)),o=await n.e(5521).then(n.t.bind(n,57902,23));return r.format(i,{parser:"graphql",plugins:[o],...this._formattingOptions?.prettierConfig})}_getTextModel(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return n;return null}doUpdateSchema(e){return this._languageService.updateSchema(e)}doUpdateSchemas(e){return this._languageService.updateSchemas(e)}}globalThis.onmessage=()=>{(0,Ce.n)((e,t)=>new Qt(e,t))}},80957(e){function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},40708(e,t,n){e.exports=n(89230)},48277(e){const t="\\\\/",n=`[^${t}]`,i="\\.",r="\\/",o="[^/]",s=`(?:${r}|$)`,a=`(?:^|${r})`,u=`${i}{1,2}${s}`,c={DOT_LITERAL:i,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:r,ONE_CHAR:"(?=.)",QMARK:o,END_ANCHOR:s,DOTS_SLASH:u,NO_DOT:`(?!${i})`,NO_DOTS:`(?!${a}${u})`,NO_DOT_SLASH:`(?!${i}{0,1}${s})`,NO_DOTS_SLASH:`(?!${u})`,QMARK_NO_DOT:`[^.${r}]`,STAR:`${o}*?`,START_ANCHOR:a,SEP:"/"},l={...c,SLASH_LITERAL:`[${t}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${i}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${t}])${i}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?l:c}},72291(e,t,n){const i=n(48277),r=n(61785),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:s,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=i,l=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map(e=>r.escapeRegex(e)).join("..")}return n},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=c[e]||e;const n={...t},d="number"==typeof n.maxLength?Math.min(o,n.maxLength):o;let f=e.length;if(f>d)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${d}`);const g={type:"bos",value:"",output:n.prepend||""},h=[g],m=n.capture?"":"?:",y=i.globChars(n.windows),v=i.extglobChars(y),{DOT_LITERAL:b,PLUS_LITERAL:E,SLASH_LITERAL:T,ONE_CHAR:_,DOTS_SLASH:S,NO_DOT:A,NO_DOT_SLASH:N,NO_DOTS_SLASH:R,QMARK:x,QMARK_NO_DOT:I,STAR:O,START_ANCHOR:$}=y,k=e=>`(${m}(?:(?!${$}${e.dot?S:b}).)*?)`,L=n.dot?"":A,C=n.dot?x:I;let D=!0===n.bash?k(n):O;n.capture&&(D=`(${D})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const M={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};e=r.removePrefix(e,M),f=e.length;const F=[],w=[],U=[];let H,j=g;const P=()=>M.index===f-1,V=M.peek=(t=1)=>e[M.index+t],q=M.advance=()=>e[++M.index],G=()=>e.slice(M.index+1),B=(e="",t=0)=>{M.consumed+=e,M.index+=t},Y=e=>{M.output+=null!=e.output?e.output:e.value,B(e.value)},Q=()=>{let e=1;for(;"!"===V()&&("("!==V(2)||"?"===V(3));)q(),M.start++,e++;return e%2!=0&&(M.negated=!0,M.start++,!0)},X=e=>{M[e]++,U.push(e)},K=e=>{M[e]--,U.pop()},J=e=>{if("globstar"===j.type){const t=M.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||F.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(M.output=M.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=D,M.output+=j.output)}if(F.length&&"paren"!==e.type&&!v[e.value]&&(F[F.length-1].inner+=e.value),(e.value||e.output)&&Y(e),j&&"text"===j.type&&"text"===e.type)return j.value+=e.value,void(j.output=(j.output||"")+e.value);e.prev=j,h.push(e),j=e},z=(e,t)=>{const i={...v[t],conditions:1,inner:""};i.prev=j,i.parens=M.parens,i.output=M.output;const r=(n.capture?"(":"")+i.open;X("parens"),J({type:e,value:t,output:M.output?"":_}),J({type:"paren",extglob:!0,value:q(),output:r}),F.push(i)},W=e=>{let t=e.close+(n.capture?")":"");if("negate"===e.type){let i=D;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=k(n)),(i!==D||P()||/^\)+$/.test(G()))&&(t=e.close=`)$))${i}`),"bos"===e.prev.type&&P()&&(M.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:H,output:t}),K("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let i=!1,o=e.replace(u,(e,t,n,r,o,s)=>"\\"===r?(i=!0,e):"?"===r?t?t+r+(o?x.repeat(o.length):""):0===s?C+(o?x.repeat(o.length):""):x.repeat(n.length):"."===r?b.repeat(n.length):"*"===r?t?t+r+(o?D:""):D:t?e:`\\${e}`);return!0===i&&(o=!0===n.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),o===e&&!0===n.contains?(M.output=e,M):(M.output=r.wrapOutput(o,M,t),M)}for(;!P();){if(H=q(),"\0"===H)continue;if("\\"===H){const e=V();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){H+="\\",J({type:"text",value:H});continue}const t=/^\\+/.exec(G());let i=0;if(t&&t[0].length>2&&(i=t[0].length,M.index+=i,i%2!=0&&(H+="\\")),!0===n.unescape?H=q()||"":H+=q()||"",0===M.brackets){J({type:"text",value:H});continue}}if(M.brackets>0&&("]"!==H||"["===j.value||"[^"===j.value)){if(!1!==n.posix&&":"===H){const e=j.value.slice(1);if(e.includes("[")&&(j.posix=!0,e.includes(":"))){const e=j.value.lastIndexOf("["),t=j.value.slice(0,e),n=j.value.slice(e+2),i=s[n];if(i){j.value=t+i,M.backtrack=!0,q(),g.output||1!==h.indexOf(j)||(g.output=_);continue}}}("["===H&&":"!==V()||"-"===H&&"]"===V())&&(H=`\\${H}`),"]"!==H||"["!==j.value&&"[^"!==j.value||(H=`\\${H}`),!0===n.posix&&"!"===H&&"["===j.value&&(H="^"),j.value+=H,Y({value:H});continue}if(1===M.quotes&&'"'!==H){H=r.escapeRegex(H),j.value+=H,Y({value:H});continue}if('"'===H){M.quotes=1===M.quotes?0:1,!0===n.keepQuotes&&J({type:"text",value:H});continue}if("("===H){X("parens"),J({type:"paren",value:H});continue}if(")"===H){if(0===M.parens&&!0===n.strictBrackets)throw new SyntaxError(p("opening","("));const e=F[F.length-1];if(e&&M.parens===e.parens+1){W(F.pop());continue}J({type:"paren",value:H,output:M.parens?")":"\\)"}),K("parens");continue}if("["===H){if(!0!==n.nobracket&&G().includes("]"))X("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));H=`\\${H}`}J({type:"bracket",value:H});continue}if("]"===H){if(!0===n.nobracket||j&&"bracket"===j.type&&1===j.value.length){J({type:"text",value:H,output:`\\${H}`});continue}if(0===M.brackets){if(!0===n.strictBrackets)throw new SyntaxError(p("opening","["));J({type:"text",value:H,output:`\\${H}`});continue}K("brackets");const e=j.value.slice(1);if(!0===j.posix||"^"!==e[0]||e.includes("/")||(H=`/${H}`),j.value+=H,Y({value:H}),!1===n.literalBrackets||r.hasRegexChars(e))continue;const t=r.escapeRegex(j.value);if(M.output=M.output.slice(0,-j.value.length),!0===n.literalBrackets){M.output+=t,j.value=t;continue}j.value=`(${m}${t}|${j.value})`,M.output+=j.value;continue}if("{"===H&&!0!==n.nobrace){X("braces");const e={type:"brace",value:H,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};w.push(e),J(e);continue}if("}"===H){const e=w[w.length-1];if(!0===n.nobrace||!e){J({type:"text",value:H,output:H});continue}let t=")";if(!0===e.dots){const e=h.slice(),i=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&i.unshift(e[t].value);t=l(i,n),M.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=M.output.slice(0,e.outputIndex),i=M.tokens.slice(e.tokensIndex);e.value=e.output="\\{",H=t="\\}",M.output=n;for(const e of i)M.output+=e.output||e.value}J({type:"brace",value:H,output:t}),K("braces"),w.pop();continue}if("|"===H){F.length>0&&F[F.length-1].conditions++,J({type:"text",value:H});continue}if(","===H){let e=H;const t=w[w.length-1];t&&"braces"===U[U.length-1]&&(t.comma=!0,e="|"),J({type:"comma",value:H,output:e});continue}if("/"===H){if("dot"===j.type&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",h.pop(),j=g;continue}J({type:"slash",value:H,output:T});continue}if("."===H){if(M.braces>0&&"dot"===j.type){"."===j.value&&(j.output=b);const e=w[w.length-1];j.type="dots",j.output+=H,j.value+=H,e.dots=!0;continue}if(M.braces+M.parens===0&&"bos"!==j.type&&"slash"!==j.type){J({type:"text",value:H,output:b});continue}J({type:"dot",value:H,output:b});continue}if("?"===H){if((!j||"("!==j.value)&&!0!==n.noextglob&&"("===V()&&"?"!==V(2)){z("qmark",H);continue}if(j&&"paren"===j.type){const e=V();let t=H;if("<"===e&&!r.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===j.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(G()))&&(t=`\\${H}`),J({type:"text",value:H,output:t});continue}if(!0!==n.dot&&("slash"===j.type||"bos"===j.type)){J({type:"qmark",value:H,output:I});continue}J({type:"qmark",value:H,output:x});continue}if("!"===H){if(!0!==n.noextglob&&"("===V()&&("?"!==V(2)||!/[!=<:]/.test(V(3)))){z("negate",H);continue}if(!0!==n.nonegate&&0===M.index){Q();continue}}if("+"===H){if(!0!==n.noextglob&&"("===V()&&"?"!==V(2)){z("plus",H);continue}if(j&&"("===j.value||!1===n.regex){J({type:"plus",value:H,output:E});continue}if(j&&("bracket"===j.type||"paren"===j.type||"brace"===j.type)||M.parens>0){J({type:"plus",value:H});continue}J({type:"plus",value:E});continue}if("@"===H){if(!0!==n.noextglob&&"("===V()&&"?"!==V(2)){J({type:"at",extglob:!0,value:H,output:""});continue}J({type:"text",value:H});continue}if("*"!==H){"$"!==H&&"^"!==H||(H=`\\${H}`);const e=a.exec(G());e&&(H+=e[0],M.index+=e[0].length),J({type:"text",value:H});continue}if(j&&("globstar"===j.type||!0===j.star)){j.type="star",j.star=!0,j.value+=H,j.output=D,M.backtrack=!0,M.globstar=!0,B(H);continue}let t=G();if(!0!==n.noextglob&&/^\([^?]/.test(t)){z("star",H);continue}if("star"===j.type){if(!0===n.noglobstar){B(H);continue}const i=j.prev,r=i.prev,o="slash"===i.type||"bos"===i.type,s=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!o||t[0]&&"/"!==t[0])){J({type:"star",value:H,output:""});continue}const a=M.braces>0&&("comma"===i.type||"brace"===i.type),u=F.length&&("pipe"===i.type||"paren"===i.type);if(!o&&"paren"!==i.type&&!a&&!u){J({type:"star",value:H,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[M.index+4];if(n&&"/"!==n)break;t=t.slice(3),B("/**",3)}if("bos"===i.type&&P()){j.type="globstar",j.value+=H,j.output=k(n),M.output=j.output,M.globstar=!0,B(H);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!s&&P()){M.output=M.output.slice(0,-(i.output+j.output).length),i.output=`(?:${i.output}`,j.type="globstar",j.output=k(n)+(n.strictSlashes?")":"|$)"),j.value+=H,M.globstar=!0,M.output+=i.output+j.output,B(H);continue}if("slash"===i.type&&"bos"!==i.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";M.output=M.output.slice(0,-(i.output+j.output).length),i.output=`(?:${i.output}`,j.type="globstar",j.output=`${k(n)}${T}|${T}${e})`,j.value+=H,M.output+=i.output+j.output,M.globstar=!0,B(H+q()),J({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){j.type="globstar",j.value+=H,j.output=`(?:^|${T}|${k(n)}${T})`,M.output=j.output,M.globstar=!0,B(H+q()),J({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-j.output.length),j.type="globstar",j.output=k(n),j.value+=H,M.output+=j.output,M.globstar=!0,B(H);continue}const i={type:"star",value:H,output:D};!0!==n.bash?!j||"bracket"!==j.type&&"paren"!==j.type||!0!==n.regex?(M.index!==M.start&&"slash"!==j.type&&"dot"!==j.type||("dot"===j.type?(M.output+=N,j.output+=N):!0===n.dot?(M.output+=R,j.output+=R):(M.output+=L,j.output+=L),"*"!==V()&&(M.output+=_,j.output+=_)),J(i)):(i.output=H,J(i)):(i.output=".*?","bos"!==j.type&&"slash"!==j.type||(i.output=L+i.output),J(i))}for(;M.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","]"));M.output=r.escapeLast(M.output,"["),K("brackets")}for(;M.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing",")"));M.output=r.escapeLast(M.output,"("),K("parens")}for(;M.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(p("closing","}"));M.output=r.escapeLast(M.output,"{"),K("braces")}if(!0===n.strictSlashes||"star"!==j.type&&"bracket"!==j.type||J({type:"maybe_slash",value:"",output:`${T}?`}),!0===M.backtrack){M.output="";for(const e of M.tokens)M.output+=null!=e.output?e.output:e.value,e.suffix&&(M.output+=e.suffix)}return M};d.fastpaths=(e,t)=>{const n={...t},s="number"==typeof n.maxLength?Math.min(o,n.maxLength):o,a=e.length;if(a>s)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${s}`);e=c[e]||e;const{DOT_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:f,NO_DOTS:g,NO_DOTS_SLASH:h,STAR:m,START_ANCHOR:y}=i.globChars(n.windows),v=n.dot?g:f,b=n.dot?h:f,E=n.capture?"":"?:";let T=!0===n.bash?".*?":m;n.capture&&(T=`(${T})`);const _=e=>!0===e.noglobstar?T:`(${E}(?:(?!${y}${e.dot?d:u}).)*?)`,S=e=>{switch(e){case"*":return`${v}${p}${T}`;case".*":return`${u}${p}${T}`;case"*.*":return`${v}${T}${u}${p}${T}`;case"*/*":return`${v}${T}${l}${p}${b}${T}`;case"**":return v+_(n);case"**/*":return`(?:${v}${_(n)}${l})?${b}${p}${T}`;case"**/*.*":return`(?:${v}${_(n)}${l})?${b}${T}${u}${p}${T}`;case"**/.*":return`(?:${v}${_(n)}${l})?${u}${p}${T}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=S(t[1]);if(!n)return;return n+u+t[2]}}},A=r.removePrefix(e,{negated:!1,prefix:""});let N=S(A);return N&&!0!==n.strictSlashes&&(N+=`${l}?`),N},e.exports=d},89230(e,t,n){const i=n(45055),r=n(72291),o=n(61785),s=n(48277),a=(e,t,n=!1)=>{if(Array.isArray(e)){const i=e.map(e=>a(e,t,n)),r=e=>{for(const t of i){const n=t(e);if(n)return n}return!1};return r}const i=(r=e)&&"object"==typeof r&&!Array.isArray(r)&&e.tokens&&e.input;var r;if(""===e||"string"!=typeof e&&!i)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},s=o.windows,u=i?a.compileRe(e,t):a.makeRe(e,t,!1,!0),c=u.state;delete u.state;let l=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=a(o.ignore,e,n)}const p=(n,i=!1)=>{const{isMatch:r,match:p,output:d}=a.test(n,u,t,{glob:e,posix:s}),f={glob:e,state:c,regex:u,posix:s,input:n,output:d,match:p,isMatch:r};return"function"==typeof o.onResult&&o.onResult(f),!1===r?(f.isMatch=!1,!!i&&f):l(n)?("function"==typeof o.onIgnore&&o.onIgnore(f),f.isMatch=!1,!!i&&f):("function"==typeof o.onMatch&&o.onMatch(f),!i||f)};return n&&(p.state=c),p};a.test=(e,t,n,{glob:i,posix:r}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const s=n||{},u=s.format||(r?o.toPosixSlashes:null);let c=e===i,l=c&&u?u(e):e;return!1===c&&(l=u?u(e):e,c=l===i),!1!==c&&!0!==s.capture||(c=!0===s.matchBase||!0===s.basename?a.matchBase(e,t,n,r):t.exec(l)),{isMatch:Boolean(c),match:c,output:l}},a.matchBase=(e,t,n)=>(t instanceof RegExp?t:a.makeRe(t,n)).test(o.basename(e)),a.isMatch=(e,t,n)=>a(t,n)(e),a.parse=(e,t)=>Array.isArray(e)?e.map(e=>a.parse(e,t)):r(e,{...t,fastpaths:!1}),a.scan=(e,t)=>i(e,t),a.compileRe=(e,t,n=!1,i=!1)=>{if(!0===n)return e.output;const r=t||{},o=r.contains?"":"^",s=r.contains?"":"$";let u=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(u=`^(?!${u}).*$`);const c=a.toRegex(u,t);return!0===i&&(c.state=e),c},a.makeRe=(e,t,n=!1,i=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");const o=t||{};let s,u={negated:!1,fastpaths:!0},c="";return e.startsWith("./")&&(e=e.slice(2),c=u.prefix="./"),!1===o.fastpaths||"."!==e[0]&&"*"!==e[0]||(s=r.fastpaths(e,t)),void 0===s?(u=r(e,t),u.prefix=c+(u.prefix||"")):u.output=s,a.compileRe(u,t,n,i)},a.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},a.constants=s,e.exports=a},45055(e,t,n){const i=n(61785),{CHAR_ASTERISK:r,CHAR_AT:o,CHAR_BACKWARD_SLASH:s,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:g,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:v}=n(48277),b=e=>e===l||e===s,E=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const n=t||{},T=e.length-1,_=!0===n.parts||!0===n.scanToEnd,S=[],A=[],N=[];let R,x,I=e,O=-1,$=0,k=0,L=!1,C=!1,D=!1,M=!1,F=!1,w=!1,U=!1,H=!1,j=!1,P=0,V={value:"",depth:0,isGlob:!1};const q=()=>O>=T,G=()=>I.charCodeAt(O+1),B=()=>(R=x,I.charCodeAt(++O));for(;O<T;){let e;if(x=B(),x!==s){if(!0===w||x===p){for(P++;!0!==q()&&(x=B());)if(x!==s)if(x!==p){if(!0!==w&&x===u&&(x=B())===u){if(L=V.isBrace=!0,D=V.isGlob=!0,j=!0,!0===_)continue;break}if(!0!==w&&x===a){if(L=V.isBrace=!0,D=V.isGlob=!0,j=!0,!0===_)continue;break}if(x===m&&(P--,0===P)){w=!1,L=V.isBrace=!0,j=!0;break}}else P++;else U=V.backslashes=!0,B();if(!0===_)continue;break}if(x!==l){if(!0!==n.noext&&!0==(x===g||x===o||x===r||x===h||x===c)&&G()===d){if(D=V.isGlob=!0,M=V.isExtglob=!0,j=!0,!0===_){for(;!0!==q()&&(x=B());)if(x!==s){if(x===y){D=V.isGlob=!0,j=!0;break}}else U=V.backslashes=!0,x=B();continue}break}if(x===r){if(R===r&&(F=V.isGlobstar=!0),D=V.isGlob=!0,j=!0,!0===_)continue;break}if(x===h){if(D=V.isGlob=!0,j=!0,!0===_)continue;break}if(x===f)for(;!0!==q()&&(e=B());)if(e!==s){if(e===v){if(C=V.isBracket=!0,D=V.isGlob=!0,j=!0,!0===_)continue;break}}else U=V.backslashes=!0,B();if(!0===n.nonegate||x!==c||O!==$){if(!0!==n.noparen&&x===d){if(D=V.isGlob=!0,!0===_){for(;!0!==q()&&(x=B());)if(x!==d){if(x===y){j=!0;break}}else U=V.backslashes=!0,x=B();continue}break}if(!0===D){if(j=!0,!0===_)continue;break}}else H=V.negated=!0,$++}else{if(S.push(O),A.push(V),V={value:"",depth:0,isGlob:!1},!0===j)continue;if(R===u&&O===$+1){$+=2;continue}k=O+1}}else U=V.backslashes=!0,x=B(),x===p&&(w=!0)}!0===n.noext&&(M=!1,D=!1);let Y=I,Q="",X="";$>0&&(Q=I.slice(0,$),I=I.slice($),k-=$),Y&&!0===D&&k>0?(Y=I.slice(0,k),X=I.slice(k)):!0===D?(Y="",X=I):Y=I,Y&&""!==Y&&"/"!==Y&&Y!==I&&b(Y.charCodeAt(Y.length-1))&&(Y=Y.slice(0,-1)),!0===n.unescape&&(X&&(X=i.removeBackslashes(X)),Y&&!0===U&&(Y=i.removeBackslashes(Y)));const K={prefix:Q,input:e,start:$,base:Y,glob:X,isBrace:L,isBracket:C,isGlob:D,isExtglob:M,isGlobstar:F,negated:H};if(!0===n.tokens&&(K.maxDepth=0,b(x)||A.push(V),K.tokens=A),!0===n.parts||!0===n.tokens){let t;for(let i=0;i<S.length;i++){const r=t?t+1:$,o=S[i],s=e.slice(r,o);n.tokens&&(0===i&&0!==$?(A[i].isPrefix=!0,A[i].value=Q):A[i].value=s,E(A[i]),K.maxDepth+=A[i].depth),0===i&&""===s||N.push(s),t=o}if(t&&t+1<e.length){const i=e.slice(t+1);N.push(i),n.tokens&&(A[A.length-1].value=i,E(A[A.length-1]),K.maxDepth+=A[A.length-1].depth)}K.slashes=S,K.parts=N}return K}},61785(e,t,n){const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:s}=n(48277);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>o.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(s,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(r,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.escapeLast=(e,n,i)=>{const r=e.lastIndexOf(n,i);return-1===r?e:"\\"===e[r-1]?t.escapeLast(e,n,r-1):`${e.slice(0,r)}\\${e.slice(r)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let i=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(i=`(?:^(?!${i}).*$)`),i},t.basename=(e,{windows:t}={})=>t?e.replace(/[\\/]$/,"").replace(/.*[\\/]/,""):e.replace(/\/$/,"").replace(/.*\//,"")},63685(e,t,n){n.d(t,{OC:()=>r,yo:()=>s});var i=n(45676);function r(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;const a=e[t],u=o(a);u!==a.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&u<n&&(n=u))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function o(e){let t=0;for(;t<e.length&&(0,i.i0)(e.charCodeAt(t));)++t;return t}function s(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,s=r.length>1&&r.slice(1).every(e=>0===e.length||(0,i.i0)(e.charCodeAt(0))),a=n.endsWith('\\"""'),u=e.endsWith('"')&&!a,c=e.endsWith("\\"),l=u||c,p=!(null!=t&&t.minimize)&&(!o||e.length>70||l||s||a);let d="";const f=o&&(0,i.i0)(e.charCodeAt(0));return(p&&!f||s)&&(d+="\n"),d+=n,(p||l)&&(d+="\n"),'"""'+d+'"""'}},79222(e,t,n){n.d(t,{Ag:()=>Y,CK:()=>N,Fs:()=>I,Gc:()=>w,KT:()=>F,Kx:()=>J,Lc:()=>D,ML:()=>C,MR:()=>q,N_:()=>M,VA:()=>te,Xj:()=>b,YQ:()=>T,YX:()=>ce,Zb:()=>re,bd:()=>O,bh:()=>Q,dX:()=>$,g0:()=>Z,hI:()=>ne,kD:()=>S,lg:()=>E,oF:()=>R,oH:()=>k,qC:()=>_,qK:()=>x,qL:()=>A,sy:()=>V,wG:()=>j,wj:()=>H,xP:()=>ee,yl:()=>P,zP:()=>ae,zf:()=>L});var i=n(46228),r=n(60758),o=n(46869),s=n(16003),a=n(32167),u=n(56997),c=n(48144),l=n(14183),p=n(38436),d=n(30221),f=n(35521),g=n(4405),h=n(14552),m=n(64121),y=n(4911),v=n(88502);function b(e){return E(e)||T(e)||S(e)||N(e)||R(e)||x(e)||I(e)||O(e)}function E(e){return(0,a.h)(e,Y)}function T(e){return(0,a.h)(e,Q)}function _(e){if(!T(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL Object type.`);return e}function S(e){return(0,a.h)(e,te)}function A(e){if(!S(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL Interface type.`);return e}function N(e){return(0,a.h)(e,ne)}function R(e){return(0,a.h)(e,re)}function x(e){return(0,a.h)(e,ae)}function I(e){return(0,a.h)(e,F)}function O(e){return(0,a.h)(e,w)}function $(e){return E(e)||R(e)||x(e)||U(e)&&$(e.ofType)}function k(e){return E(e)||T(e)||S(e)||N(e)||R(e)||U(e)&&k(e.ofType)}function L(e){return E(e)||R(e)}function C(e){return T(e)||S(e)||N(e)}function D(e){return S(e)||N(e)}function M(e){if(!D(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL abstract type.`);return e}class F{constructor(e){b(e)||(0,i.U)(!1,`Expected ${(0,s.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class w{constructor(e){H(e)||(0,i.U)(!1,`Expected ${(0,s.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function U(e){return I(e)||O(e)}function H(e){return b(e)&&!O(e)}function j(e){if(!H(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL nullable type.`);return e}function P(e){if(e)return O(e)?e.ofType:e}function V(e){return E(e)||T(e)||S(e)||N(e)||R(e)||x(e)}function q(e){if(e){let t=e;for(;U(t);)t=t.ofType;return t}}function G(e){return"function"==typeof e?e():e}function B(e){return"function"==typeof e?e():e}class Y{constructor(e){var t,n,r,a;const u=null!==(t=e.parseValue)&&void 0!==t?t:o.T;this.name=(0,v.I)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o.T,this.parseValue=u,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>u((0,y.F)(e,t)),this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(a=e.extensionASTNodes)&&void 0!==a?a:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,i.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,s.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,i.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,i.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Q{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>K(e),this._interfaces=()=>X(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,i.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,s.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:W(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function X(e){var t;const n=G(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,i.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function K(e){const t=B(e.fields);return z(t)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.I)(t,(t,n)=>{var r;z(t)||(0,i.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,i.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,s.N)(t.resolve)}.`);const o=null!==(r=t.args)&&void 0!==r?r:{};return z(o)||(0,i.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,v.I)(n),description:t.description,type:t.type,args:J(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}})}function J(e){return Object.entries(e).map(([e,t])=>({name:(0,v.I)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}))}function z(e){return(0,u.Z)(e)&&!Array.isArray(e)}function W(e){return(0,p.I)(e,e=>({description:e.description,type:e.type,args:Z(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Z(e){return(0,l.L)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function ee(e){return O(e.type)&&void 0===e.defaultValue}class te{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=K.bind(void 0,e),this._interfaces=X.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:W(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ne{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ie.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ie(e){const t=G(e.types);return Array.isArray(t)||(0,i.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class re{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:se(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=se(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,c.K)(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new g.eO(`Enum "${this.name}" cannot represent value: ${(0,s.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,s.N)(e);throw new g.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+oe(this,t))}const t=this.getValue(e);if(null==t)throw new g.eO(`Value "${e}" does not exist in "${this.name}" enum.`+oe(this,e));return t.value}parseLiteral(e,t){if(e.kind!==h.b.ENUM){const t=(0,m.y)(e);throw new g.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+oe(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,m.y)(e);throw new g.eO(`Value "${t}" does not exist in "${this.name}" enum.`+oe(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,l.L)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function oe(e,t){const n=e.getValues().map(e=>e.name),i=(0,d.x)(t,n);return(0,r.a)("the enum value",i)}function se(e,t){return z(t)||(0,i.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(z(n)||(0,i.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,s.N)(n)}.`),{name:(0,v.A)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.z)(n.extensions),astNode:n.astNode}))}class ae{constructor(e){var t,n;this.name=(0,v.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=ue.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,p.I)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function ue(e){const t=B(e.fields);return z(t)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.I)(t,(t,n)=>(!("resolve"in t)||(0,i.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,v.I)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}))}function ce(e){return O(e.type)&&void 0===e.defaultValue}},14231(e,t,n){n.d(t,{HQ:()=>f,MQ:()=>g,RR:()=>d,gw:()=>m,mM:()=>y,qT:()=>p,rc:()=>v,yK:()=>h});var i=n(46228),r=n(32167),o=n(56997),s=n(35521),a=n(59847),u=n(88502),c=n(79222),l=n(50080);function p(e){return(0,r.h)(e,d)}class d{constructor(e){var t,n;this.name=(0,u.I)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,i.U)(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};(0,o.Z)(r)&&!Array.isArray(r)||(0,i.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,c.Kx)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,c.g0)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const f=new d({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[a.H.FIELD,a.H.FRAGMENT_SPREAD,a.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(l.kk),description:"Included when true."}}}),g=new d({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[a.H.FIELD,a.H.FRAGMENT_SPREAD,a.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(l.kk),description:"Skipped when true."}}}),h=new d({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[a.H.FIELD_DEFINITION,a.H.ARGUMENT_DEFINITION,a.H.INPUT_FIELD_DEFINITION,a.H.ENUM_VALUE],args:{reason:{type:l.FV,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:"No longer supported"}}}),m=new d({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[a.H.SCALAR],args:{url:{type:new c.Gc(l.FV),description:"The URL that specifies the behavior of this scalar."}}}),y=new d({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[a.H.INPUT_OBJECT],args:{}}),v=Object.freeze([f,g,h,m,y])},11892(e,t,n){n.d(t,{GU:()=>d,V4:()=>f});var i=n(46228),r=n(16003),o=n(32167),s=n(56997),a=n(35521),u=n(4049),c=n(79222),l=n(14231),p=n(34058);function d(e){if(!function(e){return(0,o.h)(e,f)}(e))throw new Error(`Expected ${(0,r.N)(e)} to be a GraphQL schema.`);return e}class f{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,s.Z)(e)||(0,i.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,i.U)(!1,`"types" must be Array if provided but got: ${(0,r.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,i.U)(!1,`"directives" must be Array if provided but got: ${(0,r.N)(e.directives)}.`),this.description=e.description,this.extensions=(0,a.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:l.rc;const o=new Set(e.types);if(null!=e.types)for(const t of e.types)o.delete(t),g(t,o);null!=this._queryType&&g(this._queryType,o),null!=this._mutationType&&g(this._mutationType,o),null!=this._subscriptionType&&g(this._subscriptionType,o);for(const e of this._directives)if((0,l.qT)(e))for(const t of e.args)g(t.type,o);g(p.em,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of o){if(null==e)continue;const t=e.name;if(t||(0,i.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,c.kD)(e)){for(const t of e.getInterfaces())if((0,c.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,c.YQ)(e))for(const t of e.getInterfaces())if((0,c.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.cE.QUERY:return this.getQueryType();case u.cE.MUTATION:return this.getMutationType();case u.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.CK)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.CK)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function g(e,t){const n=(0,c.MR)(e);if(!t.has(n))if(t.add(n),(0,c.CK)(n))for(const e of n.getTypes())g(e,t);else if((0,c.YQ)(n)||(0,c.kD)(n)){for(const e of n.getInterfaces())g(e,t);for(const e of Object.values(n.getFields())){g(e.type,t);for(const n of e.args)g(n.type,t)}}else if((0,c.qK)(n))for(const e of Object.values(n.getFields()))g(e.type,t);return t}},99703(e,t,n){n.d(t,{Y:()=>p});var i=n(16003),r=n(4405),o=n(4049),s=n(93544),a=n(79222),u=n(14231),c=n(34058),l=n(11892);function p(e){const t=function(e){if((0,l.GU)(e),e.__validationErrors)return e.__validationErrors;const t=new d(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,a.YQ)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,i.N)(n)}.`,null!==(r=f(t,o.cE.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const s=t.getMutationType();var u;s&&!(0,a.YQ)(s)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,i.N)(s)}.`,null!==(u=f(t,o.cE.MUTATION))&&void 0!==u?u:s.astNode);const c=t.getSubscriptionType();var l;c&&!(0,a.YQ)(c)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,i.N)(c)}.`,null!==(l=f(t,o.cE.SUBSCRIPTION))&&void 0!==l?l:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,u.qT)(n)){g(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;g(e,r),(0,a.dX)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,i.N)(r.type)}.`,r.astNode),(0,a.xP)(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[N(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,i.N)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],i=Object.create(null);return function r(o){if(t[o.name])return;t[o.name]=!0,i[o.name]=n.length;const s=Object.values(o.getFields());for(const t of s)if((0,a.bd)(t.type)&&(0,a.qK)(t.type.ofType)){const o=t.type.ofType,s=i[o.name];if(n.push(t),void 0===s)r(o);else{const t=n.slice(s),i=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${i}".`,t.map(e=>e.astNode))}n.pop()}i[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))(0,a.sy)(r)?((0,c.Yh)(r)||g(e,r),(0,a.YQ)(r)||(0,a.kD)(r)?(h(e,r),m(e,r)):(0,a.CK)(r)?b(e,r):(0,a.oF)(r)?E(e,r):(0,a.qK)(r)&&(T(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${(0,i.N)(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class d{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new r.eO(e,{nodes:n}))}getErrors(){return this._errors}}function f(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function g(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function h(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const u of n){var r;g(e,u),(0,a.oH)(u.type)||e.reportError(`The type of ${t.name}.${u.name} must be Output Type but got: ${(0,i.N)(u.type)}.`,null===(r=u.astNode)||void 0===r?void 0:r.type);for(const n of u.args){const r=n.name;var o,s;g(e,n),(0,a.dX)(n.type)||e.reportError(`The type of ${t.name}.${u.name}(${r}:) must be Input Type but got: ${(0,i.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,a.xP)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${u.name}(${r}:) cannot be deprecated.`,[N(n.astNode),null===(s=n.astNode)||void 0===s?void 0:s.type])}}}function m(e,t){const n=Object.create(null);for(const r of t.getInterfaces())(0,a.kD)(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,S(t,r)):(n[r.name]=!0,v(e,t,r),y(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,S(t,r)):e.reportError(`Type ${(0,i.N)(t)} must only implement Interface types, it cannot implement ${(0,i.N)(r)}.`,S(t,r))}function y(e,t,n){const r=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,f=r[d];if(f){var o,u;(0,s.sP)(e.schema,f.type,p.type)||e.reportError(`Interface field ${n.name}.${d} expects type ${(0,i.N)(p.type)} but ${t.name}.${d} is type ${(0,i.N)(f.type)}.`,[null===(o=p.astNode)||void 0===o?void 0:o.type,null===(u=f.astNode)||void 0===u?void 0:u.type]);for(const r of p.args){const o=r.name,a=f.args.find(e=>e.name===o);var c,l;a?(0,s.n8)(r.type,a.type)||e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expects type ${(0,i.N)(r.type)} but ${t.name}.${d}(${o}:) is type ${(0,i.N)(a.type)}.`,[null===(c=r.astNode)||void 0===c?void 0:c.type,null===(l=a.astNode)||void 0===l?void 0:l.type]):e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[r.astNode,f.astNode])}for(const i of f.args){const r=i.name;!p.args.find(e=>e.name===r)&&(0,a.xP)(i)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${r} that is missing from the Interface field ${n.name}.${d}.`,[i.astNode,p.astNode])}}else e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes])}}function v(e,t,n){const i=t.getInterfaces();for(const r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...S(n,r),...S(t,n)])}function b(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const o of n)r[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,A(t,o.name)):(r[o.name]=!0,(0,a.YQ)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,i.N)(o)}.`,A(t,String(o))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)g(e,t)}function T(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r,o;g(e,s),(0,a.dX)(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${(0,i.N)(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type),(0,a.YX)(s)&&null!=s.deprecationReason&&e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[N(s.astNode),null===(o=s.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&_(t,s,e)}}function _(e,t,n){var i;(0,a.bd)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(i=t.astNode)||void 0===i?void 0:i.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function S(e,t){const{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function A(e,t){const{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function N(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===u.yK.name)}},24773(e,t,n){n.d(t,{H7:()=>j,gv:()=>H});var i=n(16314),r=n(64578),o=n(46748),s=n(86788),a=n(90363),u=n(57715),c=n(91595),l=n(86890),p=n(54674),d=n(18798),f=n(49292),g=n(72174),h=n(57110),m=n(99158),y=n(51222),v=n(31663),b=n(93063),E=n(8098),T=n(90579),_=n(73176),S=n(99609),A=n(18668),N=n(92300),R=n(41613),x=n(19451),I=n(14100),O=n(86491),$=n(59875),k=n(892),L=n(62043),C=n(31875),D=n(279),M=n(44549),F=n(37972),w=n(49975);const U=Object.freeze([d.B]),H=Object.freeze([i.T,k.H,l.P,_.R,c.y,o.T,F.J,T.A,r.Z,O.K,u.K,h.z,v.y,f.n,D._,g.Z,m.p,a.e,R.U,s.P,A.J,M.U,E.X,w.E,y.K,$.C,...U]),j=Object.freeze([p.l,L.u,C.i,x.g,I.X,S.E,N.Z,c.y,a.e,R.U,b.S,s.W,A.J,$.C,E.A])},5072(e,t,n){n.d(t,{uq:()=>g,tf:()=>f});var i=n(46228),r=n(4405),o=n(34627),s=n(99703),a=n(58709),u=n(24773),c=n(14552);class l{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===c.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===c.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),i=[e.selectionSet];let r;for(;r=i.pop();)for(const e of this.getFragmentSpreads(r)){const r=e.name.value;if(!0!==n[r]){n[r]=!0;const e=this.getFragment(r);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class p extends l{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class d extends l{constructor(e,t,n,i){super(t,i),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],i=new a.D(this._schema);(0,o.YR)(e,(0,a.S)(i,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function f(e,t,n=u.gv,c,l=new a.D(e)){var p;const f=null!==(p=null==c?void 0:c.maxErrors)&&void 0!==p?p:100;t||(0,i.U)(!1,"Must provide document."),(0,s.Y)(e);const g=Object.freeze({}),h=[],m=new d(e,t,l,e=>{if(h.length>=f)throw h.push(new r.eO("Too many validation errors, error limit reached. Validation aborted.")),g;h.push(e)}),y=(0,o.oP)(n.map(e=>e(m)));try{(0,o.YR)(t,(0,a.S)(l,y))}catch(e){if(e!==g)throw e}return h}function g(e){const t=function(e,t,n=u.H7){const i=[],r=new p(e,t,e=>{i.push(e)}),s=n.map(e=>e(r));return(0,o.YR)(e,(0,o.oP)(s)),i}(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}}}]);
|