@redocly/openapi-language-server 0.6.4 → 0.6.6
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/lib/index.d.ts +651 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -66,7 +66,7 @@ ${JSON.stringify(p,null,4)}`);let _=p;if(ue.string(_.id)||ue.number(_.id)){let A
|
|
|
66
66
|
`,`\r
|
|
67
67
|
`,"\r"];(function(e){function t(o,s,a,c){return new Ou(o,s,a,c)}e.create=t;function n(o){let s=o;return!!(f.defined(s)&&f.string(s.uri)&&(f.undefined(s.languageId)||f.string(s.languageId))&&f.uinteger(s.lineCount)&&f.func(s.getText)&&f.func(s.positionAt)&&f.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),c=i(s,(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),l=a.length;for(let d=c.length-1;d>=0;d--){let h=c[d],v=o.offsetAt(h.range.start),y=o.offsetAt(h.range.end);if(y<=l)a=a.substring(0,v)+h.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");l=v}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,c=o.slice(0,a),l=o.slice(a);i(c,s),i(l,s);let d=0,h=0,v=0;for(;d<c.length&&h<l.length;)s(c[d],l[h])<=0?o[v++]=c[d++]:o[v++]=l[h++];for(;d<c.length;)o[v++]=c[d++];for(;h<l.length;)o[v++]=l[h++];return o}})(Au||(Au={}));Ou=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
|
|
68
68
|
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
69
|
-
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=dn(),rf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(rf||(He.MessageDirection=rf={}));var qu=class{constructor(t){this.method=t}};He.RegistrationType=qu;var Nu=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Nu;var Eu=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Eu;var ju=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=ju;var Mu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=Mu});var ho=S(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.objectLiteral=be.typedArray=be.stringArray=be.array=be.func=be.error=be.number=be.string=be.boolean=void 0;function U_(e){return e===!0||e===!1}be.boolean=U_;function of(e){return typeof e=="string"||e instanceof String}be.string=of;function W_(e){return typeof e=="number"||e instanceof Number}be.number=W_;function B_(e){return e instanceof Error}be.error=B_;function H_(e){return typeof e=="function"}be.func=H_;function sf(e){return Array.isArray(e)}be.array=sf;function z_(e){return sf(e)&&e.every(t=>of(t))}be.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}be.typedArray=$_;function V_(e){return e!==null&&typeof e=="object"}be.objectLiteral=V_});var uf=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.ImplementationRequest=void 0;var af=se(),cf;(function(e){e.method="textDocument/implementation",e.messageDirection=af.MessageDirection.clientToServer,e.type=new af.ProtocolRequestType(e.method)})(cf||(yo.ImplementationRequest=cf={}))});var df=S(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.TypeDefinitionRequest=void 0;var lf=se(),pf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=lf.MessageDirection.clientToServer,e.type=new lf.ProtocolRequestType(e.method)})(pf||(bo.TypeDefinitionRequest=pf={}))});var mf=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var vo=se(),ff;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=vo.MessageDirection.serverToClient,e.type=new vo.ProtocolRequestType0(e.method)})(ff||(Kn.WorkspaceFoldersRequest=ff={}));var gf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=vo.MessageDirection.clientToServer,e.type=new vo.ProtocolNotificationType(e.method)})(gf||(Kn.DidChangeWorkspaceFoldersNotification=gf={}))});var bf=S(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.ConfigurationRequest=void 0;var hf=se(),yf;(function(e){e.method="workspace/configuration",e.messageDirection=hf.MessageDirection.serverToClient,e.type=new hf.ProtocolRequestType(e.method)})(yf||(xo.ConfigurationRequest=yf={}))});var Pf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var Po=se(),vf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(vf||(Qn.DocumentColorRequest=vf={}));var xf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(xf||(Qn.ColorPresentationRequest=xf={}))});var Sf=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var _o=se(),_f;(function(e){e.method="textDocument/foldingRange",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(_f||(Jn.FoldingRangeRequest=_f={}));var Cf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=_o.MessageDirection.serverToClient,e.type=new _o.ProtocolRequestType0(e.method)})(Cf||(Jn.FoldingRangeRefreshRequest=Cf={}))});var Tf=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.DeclarationRequest=void 0;var Df=se(),Rf;(function(e){e.method="textDocument/declaration",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Rf||(Co.DeclarationRequest=Rf={}))});var Af=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.SelectionRangeRequest=void 0;var wf=se(),kf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(kf||(So.SelectionRangeRequest=kf={}))});var Ef=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.WorkDoneProgressCancelNotification=Bt.WorkDoneProgressCreateRequest=Bt.WorkDoneProgress=void 0;var Y_=dn(),Do=se(),Of;(function(e){e.type=new Y_.ProgressType;function t(n){return n===e.type}e.is=t})(Of||(Bt.WorkDoneProgress=Of={}));var qf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Do.MessageDirection.serverToClient,e.type=new Do.ProtocolRequestType(e.method)})(qf||(Bt.WorkDoneProgressCreateRequest=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Do.MessageDirection.clientToServer,e.type=new Do.ProtocolNotificationType(e.method)})(Nf||(Bt.WorkDoneProgressCancelNotification=Nf={}))});var If=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CallHierarchyOutgoingCallsRequest=Ht.CallHierarchyIncomingCallsRequest=Ht.CallHierarchyPrepareRequest=void 0;var Xn=se(),jf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Ht.CallHierarchyPrepareRequest=jf={}));var Mf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Mf||(Ht.CallHierarchyIncomingCallsRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Lf||(Ht.CallHierarchyOutgoingCallsRequest=Lf={}))});var zf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Tt=se(),Ff;(function(e){e.Relative="relative"})(Ff||(ze.TokenFormat=Ff={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new Tt.RegistrationType(e.method)})(Ir||(ze.SemanticTokensRegistrationType=Ir={}));var Uf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Uf||(ze.SemanticTokensRequest=Uf={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Wf||(ze.SemanticTokensDeltaRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Bf||(ze.SemanticTokensRangeRequest=Bf={}));var Hf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Tt.MessageDirection.serverToClient,e.type=new Tt.ProtocolRequestType0(e.method)})(Hf||(ze.SemanticTokensRefreshRequest=Hf={}))});var Yf=S(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.ShowDocumentRequest=void 0;var $f=se(),Vf;(function(e){e.method="window/showDocument",e.messageDirection=$f.MessageDirection.serverToClient,e.type=new $f.ProtocolRequestType(e.method)})(Vf||(Ro.ShowDocumentRequest=Vf={}))});var Qf=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.LinkedEditingRangeRequest=void 0;var Gf=se(),Kf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Kf||(To.LinkedEditingRangeRequest=Kf={}))});var ig=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Jf;(function(e){e.file="file",e.folder="folder"})(Jf||(Ee.FileOperationPatternKind=Jf={}));var Xf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillCreateFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidCreateFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(eg||(Ee.WillRenameFilesRequest=eg={}));var tg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(tg||(Ee.DidRenameFilesNotification=tg={}));var ng;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidDeleteFilesNotification=ng={}));var rg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(rg||(Ee.WillDeleteFilesRequest=rg={}))});var ug=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.MonikerRequest=zt.MonikerKind=zt.UniquenessLevel=void 0;var og=se(),sg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(sg||(zt.UniquenessLevel=sg={}));var ag;(function(e){e.$import="import",e.$export="export",e.local="local"})(ag||(zt.MonikerKind=ag={}));var cg;(function(e){e.method="textDocument/moniker",e.messageDirection=og.MessageDirection.clientToServer,e.type=new og.ProtocolRequestType(e.method)})(cg||(zt.MonikerRequest=cg={}))});var fg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.TypeHierarchySubtypesRequest=$t.TypeHierarchySupertypesRequest=$t.TypeHierarchyPrepareRequest=void 0;var Zn=se(),lg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||($t.TypeHierarchyPrepareRequest=lg={}));var pg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(pg||($t.TypeHierarchySupertypesRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(dg||($t.TypeHierarchySubtypesRequest=dg={}))});var hg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),gg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(gg||(er.InlineValueRequest=gg={}));var mg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(mg||(er.InlineValueRefreshRequest=mg={}))});var xg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.InlayHintRefreshRequest=Vt.InlayHintResolveRequest=Vt.InlayHintRequest=void 0;var tr=se(),yg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(yg||(Vt.InlayHintRequest=yg={}));var bg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(bg||(Vt.InlayHintResolveRequest=bg={}));var vg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(vg||(Vt.InlayHintRefreshRequest=vg={}))});var Tg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Rg=dn(),G_=ho(),nr=se(),Pg;(function(e){function t(n){let r=n;return r&&G_.boolean(r.retriggerRequest)}e.is=t})(Pg||(et.DiagnosticServerCancellationData=Pg={}));var _g;(function(e){e.Full="full",e.Unchanged="unchanged"})(_g||(et.DocumentDiagnosticReportKind=_g={}));var Cg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Rg.ProgressType})(Cg||(et.DocumentDiagnosticRequest=Cg={}));var Sg;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Rg.ProgressType})(Sg||(et.WorkspaceDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Dg||(et.DiagnosticRefreshRequest=Dg={}))});var Eg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(mo(),Zr(go)),ct=ho(),ht=se(),Lu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Lu||(de.NotebookCellKind=Lu={}));var Iu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Iu||(de.ExecutionSummary=Iu={}));var ko;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Lu.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Iu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(ko||(de.NotebookCell=ko={}));var wg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,ko.is)}e.is=n})(wg||(de.NotebookDocument=wg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var kg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidOpenNotebookDocumentNotification=kg={}));var Ag;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,ko.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Ag||(de.NotebookCellArrayChange=Ag={}));var Og;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidChangeNotebookDocumentNotification=Og={}));var qg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(qg||(de.DidSaveNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ng||(de.DidCloseNotebookDocumentNotification=Ng={}))});var Lg=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.InlineCompletionRequest=void 0;var jg=se(),Mg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=jg.MessageDirection.clientToServer,e.type=new jg.ProtocolRequestType(e.method)})(Mg||(Ao.InlineCompletionRequest=Mg={}))});var Qm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Ig=(mo(),Zr(go)),Te=ho(),K_=uf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return K_.ImplementationRequest}});var Q_=df();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var Vm=mf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Vm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Vm.DidChangeWorkspaceFoldersNotification}});var J_=bf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var Ym=Pf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Ym.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Ym.ColorPresentationRequest}});var Gm=Sf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRefreshRequest}});var X_=Tf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=Af();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var Hu=Ef();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Hu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCancelNotification}});var zu=If();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.CallHierarchyPrepareRequest}});var ir=zf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var eC=Yf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=Qf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var mn=ig();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return mn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return mn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return mn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return mn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return mn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return mn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return mn.WillDeleteFilesRequest}});var $u=ug();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return $u.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return $u.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return $u.MonikerRequest}});var Vu=fg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySupertypesRequest}});var Km=hg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Km.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Km.InlineValueRefreshRequest}});var Yu=xg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Yu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Yu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Yu.InlayHintRefreshRequest}});var Ur=Tg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var yt=Eg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var nC=Lg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return nC.InlineCompletionRequest}});var Fu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Fu||(u.TextDocumentFilter=Fu={}));var Uu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Uu||(u.NotebookDocumentFilter=Uu={}));var Wu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Uu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Wu||(u.NotebookCellTextDocumentFilter=Wu={}));var Bu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Fu.is(r)&&!Wu.is(r))return!1;return!0}e.is=t})(Bu||(u.DocumentSelector=Bu={}));var Fg;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Fg||(u.RegistrationRequest=Fg={}));var Ug;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.UnregistrationRequest=Ug={}));var Wg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Wg||(u.ResourceOperationKind=Wg={}));var Bg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Bg||(u.FailureHandlingKind=Bg={}));var Hg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Hg||(u.PositionEncodingKind=Hg={}));var zg;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(zg||(u.StaticRegistrationOptions=zg={}));var $g;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Bu.is(r.documentSelector))}e.is=t})($g||(u.TextDocumentRegistrationOptions=$g={}));var Vg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(Vg||(u.WorkDoneProgressOptions=Vg={}));var Yg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Yg||(u.InitializeRequest=Yg={}));var Gg;(function(e){e.unknownProtocolVersion=1})(Gg||(u.InitializeErrorCodes=Gg={}));var Kg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Kg||(u.InitializedNotification=Kg={}));var Qg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Qg||(u.ShutdownRequest=Qg={}));var Jg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Jg||(u.ExitNotification=Jg={}));var Xg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Xg||(u.DidChangeConfigurationNotification=Xg={}));var Zg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Zg||(u.MessageType=Zg={}));var em;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(em||(u.ShowMessageNotification=em={}));var tm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(tm||(u.ShowMessageRequest=tm={}));var nm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(nm||(u.LogMessageNotification=nm={}));var rm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.TelemetryEventNotification=rm={}));var im;(function(e){e.None=0,e.Full=1,e.Incremental=2})(im||(u.TextDocumentSyncKind=im={}));var om;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(om||(u.DidOpenTextDocumentNotification=om={}));var sm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(sm||(u.TextDocumentContentChangeEvent=sm={}));var am;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(am||(u.DidChangeTextDocumentNotification=am={}));var cm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidCloseTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidSaveTextDocumentNotification=um={}));var lm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(lm||(u.TextDocumentSaveReason=lm={}));var pm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(pm||(u.WillSaveTextDocumentNotification=pm={}));var dm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(dm||(u.WillSaveTextDocumentWaitUntilRequest=dm={}));var fm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(fm||(u.DidChangeWatchedFilesNotification=fm={}));var gm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(gm||(u.FileChangeType=gm={}));var mm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Ig.URI.is(r.baseUri)||Ig.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(mm||(u.RelativePattern=mm={}));var hm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(hm||(u.WatchKind=hm={}));var ym;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(ym||(u.PublishDiagnosticsNotification=ym={}));var bm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(bm||(u.CompletionTriggerKind=bm={}));var vm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(vm||(u.CompletionRequest=vm={}));var xm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionResolveRequest=xm={}));var Pm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.HoverRequest=Pm={}));var _m;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(_m||(u.SignatureHelpTriggerKind=_m={}));var Cm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Cm||(u.SignatureHelpRequest=Cm={}));var Sm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.DefinitionRequest=Sm={}));var Dm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.ReferencesRequest=Dm={}));var Rm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.DocumentHighlightRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentSymbolRequest=Tm={}));var wm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.CodeActionRequest=wm={}));var km;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.CodeActionResolveRequest=km={}));var Am;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.WorkspaceSymbolRequest=Am={}));var Om;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolResolveRequest=Om={}));var qm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.CodeLensRequest=qm={}));var Nm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensResolveRequest=Nm={}));var Em;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Em||(u.CodeLensRefreshRequest=Em={}));var jm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(u.DocumentLinkRequest=jm={}));var Mm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkResolveRequest=Mm={}));var Lm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentFormattingRequest=Lm={}));var Im;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentRangeFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangesFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentOnTypeFormattingRequest=Um={}));var Wm;(function(e){e.Identifier=1})(Wm||(u.PrepareSupportDefaultBehavior=Wm={}));var Bm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(u.RenameRequest=Bm={}));var Hm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.PrepareRenameRequest=Hm={}));var zm;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.ExecuteCommandRequest=zm={}));var $m;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})($m||(u.ApplyWorkspaceEditRequest=$m={}))});var Xm=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.createProtocolConnection=void 0;var Jm=dn();function rC(e,t,n,r){return Jm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Jm.createMessageConnection)(e,t,n,r)}Oo.createProtocolConnection=rC});var eh=S($e=>{"use strict";var iC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;qo(dn(),$e);qo((mo(),Zr(go)),$e);qo(se(),$e);qo(Qm(),$e);var oC=Xm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return oC.createProtocolConnection}});var Zm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Zm||($e.LSPErrorCodes=Zm={}))});var ye=S(bt=>{"use strict";var sC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),th=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var aC=kc();th(kc(),bt);th(eh(),bt);function cC(e,t,n,r){return(0,aC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=cC});var Ku=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.SemanticTokensBuilder=Yt.SemanticTokensDiff=Yt.SemanticTokensFeature=void 0;var No=ye(),uC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(No.SemanticTokensRefreshRequest.type),on:t=>{let n=No.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=No.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=No.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yt.SemanticTokensFeature=uC;var Eo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Yt.SemanticTokensDiff=Eo;var Gu=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Eo(this._prevData,this._data).computeDiff()}:this.build()}};Yt.SemanticTokensBuilder=Gu});var nh=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionFeature=void 0;var lC=ye(),pC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(lC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};jo.InlineCompletionFeature=pC});var Ju=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.TextDocuments=void 0;var hn=ye(),Qu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new hn.Emitter,this._onDidOpen=new hn.Emitter,this._onDidClose=new hn.Emitter,this._onDidSave=new hn.Emitter,this._onWillSave=new hn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=hn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),hn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Mo.TextDocuments=Qu});var Zu=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),rh=Ju(),dC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=dC;var Lo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Lo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Xu=class{constructor(t){t instanceof rh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new rh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Lo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Xu});var el=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.thenable=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function fC(e){return e===!0||e===!1}ve.boolean=fC;function ih(e){return typeof e=="string"||e instanceof String}ve.string=ih;function gC(e){return typeof e=="number"||e instanceof Number}ve.number=gC;function mC(e){return e instanceof Error}ve.error=mC;function oh(e){return typeof e=="function"}ve.func=oh;function sh(e){return Array.isArray(e)}ve.array=sh;function hC(e){return sh(e)&&e.every(t=>ih(t))}ve.stringArray=hC;function yC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=yC;function bC(e){return e&&oh(e.then)}ve.thenable=bC});var tl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Wr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];nt.empty=new Wr("00000000-0000-0000-0000-000000000000");function ah(){return new Br}nt.v4=ah;var vC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ch(e){return vC.test(e)}nt.isUUID=ch;function xC(e){if(!ch(e))throw new Error("invalid uuid");return new Wr(e)}nt.parse=xC;function PC(){return ah().asHex()}nt.generateUuid=PC});var uh=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Gt=ye(),_C=tl(),yn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,{kind:"end"})}};yn.Instances=new Map;var Io=class extends yn{constructor(t,n){super(t,n),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Fo=class extends Hr{constructor(){super(),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function CC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new yn(e,n)}Kt.attachWorkDone=CC;var SC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Gt.WorkDoneProgressCancelNotification.type,n=>{let r=yn.Instances.get(n.token);(r instanceof Io||r instanceof Fo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new yn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,_C.generateUuid)();return this.connection.sendRequest(Gt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Io(this.connection,t))}else return Promise.resolve(new Fo)}};Kt.ProgressFeature=SC;var nl;(function(e){e.type=new Gt.ProgressType})(nl||(nl={}));var rl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(nl.type,this._token,t)}};function DC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new rl(e,n)}Kt.attachPartialResult=DC});var lh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ConfigurationFeature=void 0;var RC=ye(),TC=el(),wC=e=>class extends e{getConfiguration(t){return t?TC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(RC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Uo.ConfigurationFeature=wC});var ph=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.WorkspaceFoldersFeature=void 0;var Wo=ye(),kC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Wo.Emitter,this.connection.onNotification(Wo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Wo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Wo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Bo.WorkspaceFoldersFeature=kC});var dh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.CallHierarchyFeature=void 0;var il=ye(),AC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(il.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=il.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=il.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ho.CallHierarchyFeature=AC});var fh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.ShowDocumentFeature=void 0;var OC=ye(),qC=e=>class extends e{showDocument(t){return this.connection.sendRequest(OC.ShowDocumentRequest.type,t)}};zo.ShowDocumentFeature=qC});var gh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.FileOperationsFeature=void 0;var sr=ye(),NC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};$o.FileOperationsFeature=NC});var mh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.LinkedEditingRangeFeature=void 0;var EC=ye(),jC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(EC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Vo.LinkedEditingRangeFeature=jC});var hh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.TypeHierarchyFeature=void 0;var ol=ye(),MC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(ol.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=ol.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=ol.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yo.TypeHierarchyFeature=MC});var bh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlineValueFeature=void 0;var yh=ye(),LC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(yh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(yh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Go.InlineValueFeature=LC});var xh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.FoldingRangeFeature=void 0;var vh=ye(),IC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(vh.FoldingRangeRefreshRequest.type),on:t=>{let n=vh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ko.FoldingRangeFeature=IC});var Ph=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.InlayHintFeature=void 0;var sl=ye(),FC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(sl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(sl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(sl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Qo.InlayHintFeature=FC});var _h=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DiagnosticFeature=void 0;var zr=ye(),UC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Jo.DiagnosticFeature=UC});var Ch=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.MonikerFeature=void 0;var WC=ye(),BC=e=>class extends e{get moniker(){return{on:t=>{let n=WC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.MonikerFeature=BC});var Ih=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=el(),cl=tl(),B=uh(),HC=lh(),zC=ph(),$C=dh(),VC=Ku(),YC=fh(),GC=gh(),KC=mh(),QC=hh(),JC=bh(),XC=xh(),ZC=Ph(),e0=_h(),t0=Zu(),n0=Ch();function al(e){if(e!==null)return e}var ul=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=ul;var Zo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},ll=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}},Sh=(0,YC.ShowDocumentFeature)((0,B.ProgressFeature)(ll)),Dh;(function(e){function t(){return new es}e.create=t})(Dh||(Q.BulkRegistration=Dh={}));var es=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=cl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Rh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Rh||(Q.BulkUnregistration=Rh={}));var $r=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ts=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof es?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=cl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=cl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Th=(0,GC.FileOperationsFeature)((0,zC.WorkspaceFoldersFeature)((0,HC.ConfigurationFeature)(pl))),ns=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=is;var wh=(0,XC.FoldingRangeFeature)((0,n0.MonikerFeature)((0,e0.DiagnosticFeature)((0,ZC.InlayHintFeature)((0,JC.InlineValueFeature)((0,QC.TypeHierarchyFeature)((0,KC.LinkedEditingRangeFeature)((0,VC.SemanticTokensFeature)((0,$C.CallHierarchyFeature)(is))))))))),os=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=os;var kh=(0,t0.NotebookSyncFeature)(os);function Ah(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Lh;function r0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Ah),tracer:n(e.tracer,t.tracer,qh),telemetry:n(e.telemetry,t.telemetry,Oh),client:n(e.client,t.client,Nh),window:n(e.window,t.window,Eh),workspace:n(e.workspace,t.workspace,jh),languages:n(e.languages,t.languages,Mh),notebooks:n(e.notebooks,t.notebooks,Lh)}}Q.combineFeatures=r0;function i0(e,t,n){let r=n&&n.console?new(n.console(Zo)):new Zo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ns)):new ns,s=n&&n.telemetry?new(n.telemetry(rs)):new rs,a=n&&n.client?new(n.client(ts)):new ts,c=n&&n.window?new(n.window(Sh)):new Sh,l=n&&n.workspace?new(n.workspace(Th)):new Th,d=n&&n.languages?new(n.languages(wh)):new wh,h=n&&n.notebooks?new(n.notebooks(kh)):new kh,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=i0});var dl=S(je=>{"use strict";var o0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Uh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var s0=Ku();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return s0.SemanticTokensBuilder}});var a0=nh();Uh(ye(),je);var c0=Ju();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return c0.TextDocuments}});var u0=Zu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return u0.NotebookDocuments}});Uh(Ih(),je);var Fh;(function(e){e.all={__brand:"features",languages:a0.InlineCompletionFeature}})(Fh||(je.ProposedFeatures=Fh={}))});var Bh=S((ew,Wh)=>{"use strict";Wh.exports=ye()});var fl=S(vt=>{"use strict";var l0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),zh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ss=dl();zh(Bh(),vt);zh(dl(),vt);var Hh=!1,p0={initialize:e=>{},get shutdownReceived(){return Hh},set shutdownReceived(e){Hh=e},exit:e=>{}};function d0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ss.ConnectionStrategy.is(e)||ss.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ss.createProtocolConnection)(o,s,l,a);return(0,ss.createConnection)(c,p0,i)}vt.createConnection=d0});var Qt=S((nw,$h)=>{"use strict";$h.exports=fl()});var Cl=S((Vw,iy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ry(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function Z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ry(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ry(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;iy.exports=ur});import{createConfig as fd,loadConfig as _x,DEFAULT_CONFIG as gd}from"@redocly/openapi-core";var wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var tn="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(tn.length===0?tn+="..":tn+="/..");return tn.length>0?tn+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>vn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let kt=it.posix||it,en="/";var vn;(function(k){k.joinPath=function(b,...E){return b.with({path:kt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==en&&(j=en+j,P=!0);let C=kt.resolve(j,...E);return P&&C[0]===en&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===en)return b;let E=kt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return kt.basename(b.path)},k.extname=function(b){return kt.extname(b.path)}})(vn||(vn={})),wl=r})();var{URI:Ot,Utils:ne}=wl;import{CONFIG_FILE_NAME as jy}from"@redocly/openapi-core";var Ss={languageId:"yaml",filePattern:/\.ya?ml$/i},Ds={languageId:"json",filePattern:/\.json$/i},Cs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ss,Ds];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),jy);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},Pe=new Cs;function Rs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Ot.parse(e)}function Pt(e){return Ot.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=Ot.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function kl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await Pe.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as xx,Source as dd,readFileFromUrl as Px}from"@redocly/openapi-core";var pi=Ie(br(),1);import{isAbsoluteUrl as yx}from"@redocly/openapi-core";function td(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function ea(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function nd(e){return e==="$ref"}async function ta(e,t){let n=Ot.parse(t);return ne.joinPath(n,e).toString()}async function rd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await ta(i,n)===t)return r}function id(e){return typeof e=="string"}function di(e){return typeof e=="function"}function od(e){return e?.kind===pi.Kind.MAP}function na(e){return e?.kind===pi.Kind.MAPPING}function ra(e){return e?.kind===pi.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ia(e){return yx(e)||e.startsWith("file://")}var fi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=cd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=sd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=sd(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&ad(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},gi;(function(e){function t(i,o,s,a){return new fi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof fi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=oa(o.map(bx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(gi||(gi={}));function oa(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);oa(r,t),oa(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function sd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ad(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ad(e){return e===13||e===10}function cd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function bx(e){let t=cd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ud=new Map;function ld(e,t){return ud.set(e,t)}function pd(e){let t=[];for(let[n,r]of ud.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=Pe.documents.get(e);if(t)return t;let n=await Pe.fs.readFile(Se(e),"utf-8");return gi.create(e,"yaml",1,n)}function sa(e){return Ds.filePattern.test(e)}function vx(e){return Ss.filePattern.test(e)}var St=class extends xx{resolveExternalRef(t,n){return ia(n)?n:t&&ia(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await Px(t,{...this.config.http,customFetch:fetch});return new dd(t,n,r)}return new dd(t,(await Qe(t)).getText())}};var jt;async function md(e){let t=new St,n=e?await Pe.findConfig(e):void 0;return n===void 0?await fd(gd):(jt=await _x({configPath:n,externalRefResolver:t}),jt)}async function Tn(e){return jt||await md(e)}async function aa(e,t){try{return await md(e)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),await fd(gd)}}function cn(e){return ca(e)?!0:!!jt?.resolvedRefMap&&[...jt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Rs(fr(e),n))}function ca(e){return jt?.configPath?Rs(e,jt.configPath):!1}var hd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:hd,additionalProperties:!1},Cx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Mt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},hd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Cx},additionalProperties:!1}},additionalProperties:!1};var Sx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ua={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},mi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Mt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ua,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Sx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var wn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Dx={type:"object",properties:{name:{type:"string"},items:wn,queries:wn,mutations:wn,subscriptions:wn,types:wn,directives:wn},required:["name"],additionalProperties:!1},Rx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Dx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Rx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ua,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Mt},additionalProperties:!1};var Tx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},wx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},yd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},kx={type:"object",properties:{beforeInfo:{type:"array",items:yd},end:{type:"array",items:yd}}},un={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},hi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ax={type:"object",properties:xi(un.properties,["light","dark"])},Ox={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},qx={type:"object",properties:{error:hi,info:hi,redirect:hi,success:hi}},Nx={type:"object",properties:An(un.properties,["dark"])},Ex={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},jx={type:"object",properties:{accent:un,border:Ax,error:un,http:Ox,primary:un,responses:qx,secondary:Nx,success:un,text:Ex,tonalOffset:{type:"number"},warning:un}},yi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Mx={type:"object",properties:{small:yi,medium:yi,large:yi,xlarge:yi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Mx})},bd={type:"object",properties:xi(ft.properties,["fontSize","lineHeight"])},Ix={type:"object",properties:{medium:bd,small:bd}},Fx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ix})},Ux={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Wx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},vd={type:"object",properties:{fullWidth:{type:"boolean"}}},Bx={type:"object",properties:{buttons:Lx,httpBadges:Fx,layoutControls:Ux,panels:Wx,tryItButton:vd,tryItSendButton:vd}},vi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Hx={type:"object",properties:{maxWidth:vi}},zx={type:"object",properties:{maxWidth:vi,middlePanelMaxWidth:vi}},$x={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Hx,"three-panel":zx}},xd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Vx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:xd,defaultDetailsWidth:{type:"string"},examples:xd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},_d={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Yx={type:"object",properties:xi(_d.properties,["textTransform"])},Gx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Kx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:_d,level1items:Yx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Gx,textColor:{type:"string"},width:{type:"string"}})},bi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Qx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Jx={type:"object",properties:An(ft.properties,["fontSize"])},Xx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Zx={type:"object",properties:Object.assign(Object.assign({code:Qx,fieldName:ft},xi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:bi,heading2:bi,heading3:bi,headings:Jx,lineHeight:{type:"string"},links:Xx,optimizeSpeed:{type:"boolean"},rightPanelHeading:bi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},eP={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},tP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:eP}},nP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},rP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Pd={type:"object",properties:{custom:{type:"string"}}},iP={type:"object",properties:{DownloadButton:Pd,NextSectionButton:Pd}},oP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},sP={type:"object",properties:{borderRadius:{type:"string"}}},aP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},cP={type:"object",properties:{breakpoints:vi,codeBlock:tP,colors:jx,components:Bx,layout:$x,logo:nP,fab:rP,overrides:iP,rightPanel:oP,schema:Vx,shape:sP,sidebar:Kx,spacing:aP,typography:Zx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},uP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Tx}},required:["languages"]},Cd={type:"object",properties:{theme:cP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:uP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:wx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:kx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function xi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Lt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Lt,oas2Rules:Lt,oas3_0Rules:Lt,oas3_1Rules:Lt,async2Rules:Lt,async3Rules:Lt,arazzo1Rules:Lt,overlay1Rules:Lt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Sd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},la={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},pa={type:"array",items:Object.assign(Object.assign({},la),{properties:Object.assign(Object.assign({},la.properties),{items:{type:"array",items:la}})})},lP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},pP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},dP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},fP={type:"object",properties:Object.assign({facets:dP},Re.properties),additionalProperties:!1},gP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Pi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},_i={type:"object",properties:Object.assign({items:pa},Re.properties),additionalProperties:!1},Ci={type:"object",additionalProperties:lP},Si={type:"object",properties:Object.assign({items:pa,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Di={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ri={type:"object",properties:{head:{type:"array",items:Sd},body:{type:"array",items:Sd}},additionalProperties:!1},Ti={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:pP,filters:fP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:gP}},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},mP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},Ai={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:mP},additionalProperties:!1},Oi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},qi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},mi),{properties:Object.assign(Object.assign({},mi.properties),Cd.properties)}),hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},_P={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},da={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:da}},additionalProperties:!1,required:["trackingId"]},Ni={type:"object",properties:{adobe:hP,amplitude:yP,fullstory:bP,heap:vP,rudderstack:xP,segment:PP,gtm:_P,ga:CP}},Ei={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},ji={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Mi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},SP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},DP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:SP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:pa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":DP}},Li={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var RP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},TP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},wP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Dt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:TP},excludes:{type:"array",items:RP},filters:{type:"array",items:wP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},kP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},AP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:kP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},OP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:AP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},qP={type:"object",additionalProperties:OP},Ii={type:"object",properties:{entityTypes:qP,catalogs:{type:"object",properties:{all:Dt,services:Dt,domains:Dt,teams:Dt,users:Dt,apiDescriptions:Dt,dataSchemas:Dt,apiOperations:Dt},additionalProperties:Dt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Pi,navbar:_i,products:Ci,footer:Si,sidebar:Di,scripts:Ri,links:Ti,feedback:Mt,search:wi,colorMode:ki,navigation:Ai,codeSnippet:Oi,markdown:qi,openapi:On,graphql:kn,analytics:Ni,userMenu:Ei,versionPicker:ji,breadcrumbs:Mi,catalog:qn,entitiesCatalog:Ii,catalogClassic:qn,scorecard:Li},additionalProperties:!0};var ga="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var fa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(fa||(fa={}));var ma=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy"];function Fi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Fi(i,t):i)]:[n,Fi(r,t)]}).filter(Boolean))}var NP={type:"object",additionalProperties:{type:"string"}},EP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ui={type:"string",enum:["error","warn","off"]},jP={type:"object",additionalProperties:!1,properties:{schemaCheck:Ui,statusCodeCheck:Ui,contentTypeCheck:Ui,successCriteriaCheck:Ui}},MP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},LP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Dd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[MP,LP]},inputs:NP,servers:EP,severity:jP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var IP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},FP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:IP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},UP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ga},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},WP={oneOf:[FP,UP],discriminator:{propertyName:"type"}},BP={type:"object",additionalProperties:WP},HP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},zP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},$P={type:"object",additionalProperties:zP,default:{}},ba={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},VP={type:"object",additionalProperties:!0},YP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Rd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Td={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Rd},default:{llmstxt:Rd.default},additionalProperties:!1},GP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},ln={type:"object",additionalProperties:{type:"string"}},kd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ln,cms:ln,reunite:ln,features:{type:"object",properties:{aiSearch:ln},additionalProperties:!1},content:{type:"object",properties:{"**":ln},additionalProperties:ln}},additionalProperties:ln},KP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},QP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},JP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[KP,QP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},XP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},ZP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ha={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[XP,ZP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},e_=Object.assign(Object.assign({},ha),{properties:Object.assign(Object.assign({},ha.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),t_={type:"object",oneOf:[ha,e_,JP],discriminator:{propertyName:"type"}},n_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:t_}}},wd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},r_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ya={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:$P,seo:Td,rbac:kd,apiFunctions:GP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:r_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ba},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:BP,sso:HP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:n_,removeAttribution:{type:"boolean"},i18n:wd,l10n:wd,metadata:VP,metadataGlobs:YP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Dd,logo:Pi,navbar:_i,products:Ci,footer:Si,sidebar:Di,scripts:Ri,links:Ti,feedback:Mt,search:wi,colorMode:ki,navigation:Ai,codeSnippet:Oi,markdown:qi,openapi:On,graphql:kn,analytics:Ni,userMenu:Ei,versionPicker:ji,breadcrumbs:Mi,catalog:qn,entitiesCatalog:Ii,catalogClassic:qn,scorecard:Li}),default:{redirects:{},seo:Td.default},additionalProperties:!0},i_=Object.assign(Object.assign({},Fi(ya,"default")),{additionalProperties:!1}),va=Object.assign(Object.assign({$id:"root-redocly-config"},ya),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ya.properties),{env:{type:"object",additionalProperties:i_}}),default:{},additionalProperties:!1});var xa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:da}}},additionalProperties:!0,default:{}},o_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},xa.properties),{apis:{type:"object",additionalProperties:ba},theme:xa}),additionalProperties:!1};var s_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},a_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},c_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},u_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"}},required:["specType","schema"],additionalProperties:!0};var l_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},p_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",properties:{type:{type:"string",enum:ma},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Sr={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},l_]},links:{anyOf:[{type:"null"},{type:"array",items:p_}]},relations:{anyOf:[{type:"null"},{type:"array",items:d_}]}},hR={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"user"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-operation"},metadata:c_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"data-schema"},metadata:u_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-description"},metadata:a_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}}),required:["key","title","type"],additionalProperties:!1}]};var Le=Ie(Qt(),1);import{getLineColLocation as P0,lintDocument as _0,makeDocumentFromString as hl,lintConfig as C0,detectSpec as S0,createConfigTypes as D0}from"@redocly/openapi-core";import{bundleDocument as f0,isPlainObject as g0,makeDocumentFromString as m0}from"@redocly/openapi-core";var Vh=new Map,as=new Map;function h0(e){return e?Array.from(e).map(([t,n])=>[t,ea(n)]):[]}async function gl(e,t){let n=await Tn(),r=new St(n.resolve),i=m0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await f0({document:i,config:n,externalRefResolver:r}),d=h0(l);l&&(as=new Map([...as,...l])),Vh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:g0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function y0(){return Array.from(Vh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ml(e){return as.has(e)?as.get(e):null}import{createConfig as b0,lintDocument as v0}from"@redocly/openapi-core";async function Yh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await x0(i):i,c=await b0({...s,plugins:a},{configPath:r}),l=await v0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function x0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
69
|
+
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Xe.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return Xe.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function s(y){return t.call(y)==="[object Number]"}e.number=s;function a(y,R,I){return t.call(y)==="[object Number]"&&R<=y&&y<=I}e.numberRange=a;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=c;function l(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=l;function d(y){return t.call(y)==="[object Function]"}e.func=d;function h(y){return y!==null&&typeof y=="object"}e.objectLiteral=h;function v(y,R){return Array.isArray(y)&&y.every(R)}e.typedArray=v})(f||(f={}))});var se=S(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.ProtocolNotificationType=He.ProtocolNotificationType0=He.ProtocolRequestType=He.ProtocolRequestType0=He.RegistrationType=He.MessageDirection=void 0;var Gn=dn(),rf;(function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"})(rf||(He.MessageDirection=rf={}));var qu=class{constructor(t){this.method=t}};He.RegistrationType=qu;var Nu=class extends Gn.RequestType0{constructor(t){super(t)}};He.ProtocolRequestType0=Nu;var Eu=class extends Gn.RequestType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolRequestType=Eu;var ju=class extends Gn.NotificationType0{constructor(t){super(t)}};He.ProtocolNotificationType0=ju;var Mu=class extends Gn.NotificationType{constructor(t){super(t,Gn.ParameterStructures.byName)}};He.ProtocolNotificationType=Mu});var ho=S(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.objectLiteral=be.typedArray=be.stringArray=be.array=be.func=be.error=be.number=be.string=be.boolean=void 0;function U_(e){return e===!0||e===!1}be.boolean=U_;function of(e){return typeof e=="string"||e instanceof String}be.string=of;function W_(e){return typeof e=="number"||e instanceof Number}be.number=W_;function B_(e){return e instanceof Error}be.error=B_;function H_(e){return typeof e=="function"}be.func=H_;function sf(e){return Array.isArray(e)}be.array=sf;function z_(e){return sf(e)&&e.every(t=>of(t))}be.stringArray=z_;function $_(e,t){return Array.isArray(e)&&e.every(t)}be.typedArray=$_;function V_(e){return e!==null&&typeof e=="object"}be.objectLiteral=V_});var uf=S(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.ImplementationRequest=void 0;var af=se(),cf;(function(e){e.method="textDocument/implementation",e.messageDirection=af.MessageDirection.clientToServer,e.type=new af.ProtocolRequestType(e.method)})(cf||(yo.ImplementationRequest=cf={}))});var df=S(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.TypeDefinitionRequest=void 0;var lf=se(),pf;(function(e){e.method="textDocument/typeDefinition",e.messageDirection=lf.MessageDirection.clientToServer,e.type=new lf.ProtocolRequestType(e.method)})(pf||(bo.TypeDefinitionRequest=pf={}))});var mf=S(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var vo=se(),ff;(function(e){e.method="workspace/workspaceFolders",e.messageDirection=vo.MessageDirection.serverToClient,e.type=new vo.ProtocolRequestType0(e.method)})(ff||(Kn.WorkspaceFoldersRequest=ff={}));var gf;(function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=vo.MessageDirection.clientToServer,e.type=new vo.ProtocolNotificationType(e.method)})(gf||(Kn.DidChangeWorkspaceFoldersNotification=gf={}))});var bf=S(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.ConfigurationRequest=void 0;var hf=se(),yf;(function(e){e.method="workspace/configuration",e.messageDirection=hf.MessageDirection.serverToClient,e.type=new hf.ProtocolRequestType(e.method)})(yf||(xo.ConfigurationRequest=yf={}))});var Pf=S(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.ColorPresentationRequest=Qn.DocumentColorRequest=void 0;var Po=se(),vf;(function(e){e.method="textDocument/documentColor",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(vf||(Qn.DocumentColorRequest=vf={}));var xf;(function(e){e.method="textDocument/colorPresentation",e.messageDirection=Po.MessageDirection.clientToServer,e.type=new Po.ProtocolRequestType(e.method)})(xf||(Qn.ColorPresentationRequest=xf={}))});var Sf=S(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.FoldingRangeRefreshRequest=Jn.FoldingRangeRequest=void 0;var _o=se(),_f;(function(e){e.method="textDocument/foldingRange",e.messageDirection=_o.MessageDirection.clientToServer,e.type=new _o.ProtocolRequestType(e.method)})(_f||(Jn.FoldingRangeRequest=_f={}));var Cf;(function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=_o.MessageDirection.serverToClient,e.type=new _o.ProtocolRequestType0(e.method)})(Cf||(Jn.FoldingRangeRefreshRequest=Cf={}))});var Tf=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.DeclarationRequest=void 0;var Df=se(),Rf;(function(e){e.method="textDocument/declaration",e.messageDirection=Df.MessageDirection.clientToServer,e.type=new Df.ProtocolRequestType(e.method)})(Rf||(Co.DeclarationRequest=Rf={}))});var Af=S(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.SelectionRangeRequest=void 0;var wf=se(),kf;(function(e){e.method="textDocument/selectionRange",e.messageDirection=wf.MessageDirection.clientToServer,e.type=new wf.ProtocolRequestType(e.method)})(kf||(So.SelectionRangeRequest=kf={}))});var Ef=S(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.WorkDoneProgressCancelNotification=Bt.WorkDoneProgressCreateRequest=Bt.WorkDoneProgress=void 0;var Y_=dn(),Do=se(),Of;(function(e){e.type=new Y_.ProgressType;function t(n){return n===e.type}e.is=t})(Of||(Bt.WorkDoneProgress=Of={}));var qf;(function(e){e.method="window/workDoneProgress/create",e.messageDirection=Do.MessageDirection.serverToClient,e.type=new Do.ProtocolRequestType(e.method)})(qf||(Bt.WorkDoneProgressCreateRequest=qf={}));var Nf;(function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=Do.MessageDirection.clientToServer,e.type=new Do.ProtocolNotificationType(e.method)})(Nf||(Bt.WorkDoneProgressCancelNotification=Nf={}))});var If=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.CallHierarchyOutgoingCallsRequest=Ht.CallHierarchyIncomingCallsRequest=Ht.CallHierarchyPrepareRequest=void 0;var Xn=se(),jf;(function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(jf||(Ht.CallHierarchyPrepareRequest=jf={}));var Mf;(function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Mf||(Ht.CallHierarchyIncomingCallsRequest=Mf={}));var Lf;(function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=Xn.MessageDirection.clientToServer,e.type=new Xn.ProtocolRequestType(e.method)})(Lf||(Ht.CallHierarchyOutgoingCallsRequest=Lf={}))});var zf=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.SemanticTokensRefreshRequest=ze.SemanticTokensRangeRequest=ze.SemanticTokensDeltaRequest=ze.SemanticTokensRequest=ze.SemanticTokensRegistrationType=ze.TokenFormat=void 0;var Tt=se(),Ff;(function(e){e.Relative="relative"})(Ff||(ze.TokenFormat=Ff={}));var Ir;(function(e){e.method="textDocument/semanticTokens",e.type=new Tt.RegistrationType(e.method)})(Ir||(ze.SemanticTokensRegistrationType=Ir={}));var Uf;(function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Uf||(ze.SemanticTokensRequest=Uf={}));var Wf;(function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Wf||(ze.SemanticTokensDeltaRequest=Wf={}));var Bf;(function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=Tt.MessageDirection.clientToServer,e.type=new Tt.ProtocolRequestType(e.method),e.registrationMethod=Ir.method})(Bf||(ze.SemanticTokensRangeRequest=Bf={}));var Hf;(function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=Tt.MessageDirection.serverToClient,e.type=new Tt.ProtocolRequestType0(e.method)})(Hf||(ze.SemanticTokensRefreshRequest=Hf={}))});var Yf=S(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.ShowDocumentRequest=void 0;var $f=se(),Vf;(function(e){e.method="window/showDocument",e.messageDirection=$f.MessageDirection.serverToClient,e.type=new $f.ProtocolRequestType(e.method)})(Vf||(Ro.ShowDocumentRequest=Vf={}))});var Qf=S(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.LinkedEditingRangeRequest=void 0;var Gf=se(),Kf;(function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=Gf.MessageDirection.clientToServer,e.type=new Gf.ProtocolRequestType(e.method)})(Kf||(To.LinkedEditingRangeRequest=Kf={}))});var ig=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WillDeleteFilesRequest=Ee.DidDeleteFilesNotification=Ee.DidRenameFilesNotification=Ee.WillRenameFilesRequest=Ee.DidCreateFilesNotification=Ee.WillCreateFilesRequest=Ee.FileOperationPatternKind=void 0;var Ze=se(),Jf;(function(e){e.file="file",e.folder="folder"})(Jf||(Ee.FileOperationPatternKind=Jf={}));var Xf;(function(e){e.method="workspace/willCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(Xf||(Ee.WillCreateFilesRequest=Xf={}));var Zf;(function(e){e.method="workspace/didCreateFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(Zf||(Ee.DidCreateFilesNotification=Zf={}));var eg;(function(e){e.method="workspace/willRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(eg||(Ee.WillRenameFilesRequest=eg={}));var tg;(function(e){e.method="workspace/didRenameFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(tg||(Ee.DidRenameFilesNotification=tg={}));var ng;(function(e){e.method="workspace/didDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolNotificationType(e.method)})(ng||(Ee.DidDeleteFilesNotification=ng={}));var rg;(function(e){e.method="workspace/willDeleteFiles",e.messageDirection=Ze.MessageDirection.clientToServer,e.type=new Ze.ProtocolRequestType(e.method)})(rg||(Ee.WillDeleteFilesRequest=rg={}))});var ug=S(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.MonikerRequest=zt.MonikerKind=zt.UniquenessLevel=void 0;var og=se(),sg;(function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"})(sg||(zt.UniquenessLevel=sg={}));var ag;(function(e){e.$import="import",e.$export="export",e.local="local"})(ag||(zt.MonikerKind=ag={}));var cg;(function(e){e.method="textDocument/moniker",e.messageDirection=og.MessageDirection.clientToServer,e.type=new og.ProtocolRequestType(e.method)})(cg||(zt.MonikerRequest=cg={}))});var fg=S($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.TypeHierarchySubtypesRequest=$t.TypeHierarchySupertypesRequest=$t.TypeHierarchyPrepareRequest=void 0;var Zn=se(),lg;(function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(lg||($t.TypeHierarchyPrepareRequest=lg={}));var pg;(function(e){e.method="typeHierarchy/supertypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(pg||($t.TypeHierarchySupertypesRequest=pg={}));var dg;(function(e){e.method="typeHierarchy/subtypes",e.messageDirection=Zn.MessageDirection.clientToServer,e.type=new Zn.ProtocolRequestType(e.method)})(dg||($t.TypeHierarchySubtypesRequest=dg={}))});var hg=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.InlineValueRefreshRequest=er.InlineValueRequest=void 0;var wo=se(),gg;(function(e){e.method="textDocument/inlineValue",e.messageDirection=wo.MessageDirection.clientToServer,e.type=new wo.ProtocolRequestType(e.method)})(gg||(er.InlineValueRequest=gg={}));var mg;(function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=wo.MessageDirection.serverToClient,e.type=new wo.ProtocolRequestType0(e.method)})(mg||(er.InlineValueRefreshRequest=mg={}))});var xg=S(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.InlayHintRefreshRequest=Vt.InlayHintResolveRequest=Vt.InlayHintRequest=void 0;var tr=se(),yg;(function(e){e.method="textDocument/inlayHint",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(yg||(Vt.InlayHintRequest=yg={}));var bg;(function(e){e.method="inlayHint/resolve",e.messageDirection=tr.MessageDirection.clientToServer,e.type=new tr.ProtocolRequestType(e.method)})(bg||(Vt.InlayHintResolveRequest=bg={}));var vg;(function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=tr.MessageDirection.serverToClient,e.type=new tr.ProtocolRequestType0(e.method)})(vg||(Vt.InlayHintRefreshRequest=vg={}))});var Tg=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Rg=dn(),G_=ho(),nr=se(),Pg;(function(e){function t(n){let r=n;return r&&G_.boolean(r.retriggerRequest)}e.is=t})(Pg||(et.DiagnosticServerCancellationData=Pg={}));var _g;(function(e){e.Full="full",e.Unchanged="unchanged"})(_g||(et.DocumentDiagnosticReportKind=_g={}));var Cg;(function(e){e.method="textDocument/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Rg.ProgressType})(Cg||(et.DocumentDiagnosticRequest=Cg={}));var Sg;(function(e){e.method="workspace/diagnostic",e.messageDirection=nr.MessageDirection.clientToServer,e.type=new nr.ProtocolRequestType(e.method),e.partialResult=new Rg.ProgressType})(Sg||(et.WorkspaceDiagnosticRequest=Sg={}));var Dg;(function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=nr.MessageDirection.serverToClient,e.type=new nr.ProtocolRequestType0(e.method)})(Dg||(et.DiagnosticRefreshRequest=Dg={}))});var Eg=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.DidCloseNotebookDocumentNotification=de.DidSaveNotebookDocumentNotification=de.DidChangeNotebookDocumentNotification=de.NotebookCellArrayChange=de.DidOpenNotebookDocumentNotification=de.NotebookDocumentSyncRegistrationType=de.NotebookDocument=de.NotebookCell=de.ExecutionSummary=de.NotebookCellKind=void 0;var Fr=(mo(),Zr(go)),ct=ho(),ht=se(),Lu;(function(e){e.Markup=1,e.Code=2;function t(n){return n===1||n===2}e.is=t})(Lu||(de.NotebookCellKind=Lu={}));var Iu;(function(e){function t(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}e.create=t;function n(i){let o=i;return ct.objectLiteral(o)&&Fr.uinteger.is(o.executionOrder)&&(o.success===void 0||ct.boolean(o.success))}e.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}e.equals=r})(Iu||(de.ExecutionSummary=Iu={}));var ko;(function(e){function t(o,s){return{kind:o,document:s}}e.create=t;function n(o){let s=o;return ct.objectLiteral(s)&&Lu.is(s.kind)&&Fr.DocumentUri.is(s.document)&&(s.metadata===void 0||ct.objectLiteral(s.metadata))}e.is=n;function r(o,s){let a=new Set;return o.document!==s.document&&a.add("document"),o.kind!==s.kind&&a.add("kind"),o.executionSummary!==s.executionSummary&&a.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&a.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Iu.equals(o.executionSummary,s.executionSummary)&&a.add("executionSummary"),a}e.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let a=Array.isArray(o),c=Array.isArray(s);if(a!==c)return!1;if(a&&c){if(o.length!==s.length)return!1;for(let l=0;l<o.length;l++)if(!i(o[l],s[l]))return!1}if(ct.objectLiteral(o)&&ct.objectLiteral(s)){let l=Object.keys(o),d=Object.keys(s);if(l.length!==d.length||(l.sort(),d.sort(),!i(l,d)))return!1;for(let h=0;h<l.length;h++){let v=l[h];if(!i(o[v],s[v]))return!1}}return!0}})(ko||(de.NotebookCell=ko={}));var wg;(function(e){function t(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}e.create=t;function n(r){let i=r;return ct.objectLiteral(i)&&ct.string(i.uri)&&Fr.integer.is(i.version)&&ct.typedArray(i.cells,ko.is)}e.is=n})(wg||(de.NotebookDocument=wg={}));var rr;(function(e){e.method="notebookDocument/sync",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.RegistrationType(e.method)})(rr||(de.NotebookDocumentSyncRegistrationType=rr={}));var kg;(function(e){e.method="notebookDocument/didOpen",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(kg||(de.DidOpenNotebookDocumentNotification=kg={}));var Ag;(function(e){function t(r){let i=r;return ct.objectLiteral(i)&&Fr.uinteger.is(i.start)&&Fr.uinteger.is(i.deleteCount)&&(i.cells===void 0||ct.typedArray(i.cells,ko.is))}e.is=t;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}e.create=n})(Ag||(de.NotebookCellArrayChange=Ag={}));var Og;(function(e){e.method="notebookDocument/didChange",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Og||(de.DidChangeNotebookDocumentNotification=Og={}));var qg;(function(e){e.method="notebookDocument/didSave",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(qg||(de.DidSaveNotebookDocumentNotification=qg={}));var Ng;(function(e){e.method="notebookDocument/didClose",e.messageDirection=ht.MessageDirection.clientToServer,e.type=new ht.ProtocolNotificationType(e.method),e.registrationMethod=rr.method})(Ng||(de.DidCloseNotebookDocumentNotification=Ng={}))});var Lg=S(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.InlineCompletionRequest=void 0;var jg=se(),Mg;(function(e){e.method="textDocument/inlineCompletion",e.messageDirection=jg.MessageDirection.clientToServer,e.type=new jg.ProtocolRequestType(e.method)})(Mg||(Ao.InlineCompletionRequest=Mg={}))});var Qm=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.WorkspaceSymbolRequest=u.CodeActionResolveRequest=u.CodeActionRequest=u.DocumentSymbolRequest=u.DocumentHighlightRequest=u.ReferencesRequest=u.DefinitionRequest=u.SignatureHelpRequest=u.SignatureHelpTriggerKind=u.HoverRequest=u.CompletionResolveRequest=u.CompletionRequest=u.CompletionTriggerKind=u.PublishDiagnosticsNotification=u.WatchKind=u.RelativePattern=u.FileChangeType=u.DidChangeWatchedFilesNotification=u.WillSaveTextDocumentWaitUntilRequest=u.WillSaveTextDocumentNotification=u.TextDocumentSaveReason=u.DidSaveTextDocumentNotification=u.DidCloseTextDocumentNotification=u.DidChangeTextDocumentNotification=u.TextDocumentContentChangeEvent=u.DidOpenTextDocumentNotification=u.TextDocumentSyncKind=u.TelemetryEventNotification=u.LogMessageNotification=u.ShowMessageRequest=u.ShowMessageNotification=u.MessageType=u.DidChangeConfigurationNotification=u.ExitNotification=u.ShutdownRequest=u.InitializedNotification=u.InitializeErrorCodes=u.InitializeRequest=u.WorkDoneProgressOptions=u.TextDocumentRegistrationOptions=u.StaticRegistrationOptions=u.PositionEncodingKind=u.FailureHandlingKind=u.ResourceOperationKind=u.UnregistrationRequest=u.RegistrationRequest=u.DocumentSelector=u.NotebookCellTextDocumentFilter=u.NotebookDocumentFilter=u.TextDocumentFilter=void 0;u.MonikerRequest=u.MonikerKind=u.UniquenessLevel=u.WillDeleteFilesRequest=u.DidDeleteFilesNotification=u.WillRenameFilesRequest=u.DidRenameFilesNotification=u.WillCreateFilesRequest=u.DidCreateFilesNotification=u.FileOperationPatternKind=u.LinkedEditingRangeRequest=u.ShowDocumentRequest=u.SemanticTokensRegistrationType=u.SemanticTokensRefreshRequest=u.SemanticTokensRangeRequest=u.SemanticTokensDeltaRequest=u.SemanticTokensRequest=u.TokenFormat=u.CallHierarchyPrepareRequest=u.CallHierarchyOutgoingCallsRequest=u.CallHierarchyIncomingCallsRequest=u.WorkDoneProgressCancelNotification=u.WorkDoneProgressCreateRequest=u.WorkDoneProgress=u.SelectionRangeRequest=u.DeclarationRequest=u.FoldingRangeRefreshRequest=u.FoldingRangeRequest=u.ColorPresentationRequest=u.DocumentColorRequest=u.ConfigurationRequest=u.DidChangeWorkspaceFoldersNotification=u.WorkspaceFoldersRequest=u.TypeDefinitionRequest=u.ImplementationRequest=u.ApplyWorkspaceEditRequest=u.ExecuteCommandRequest=u.PrepareRenameRequest=u.RenameRequest=u.PrepareSupportDefaultBehavior=u.DocumentOnTypeFormattingRequest=u.DocumentRangesFormattingRequest=u.DocumentRangeFormattingRequest=u.DocumentFormattingRequest=u.DocumentLinkResolveRequest=u.DocumentLinkRequest=u.CodeLensRefreshRequest=u.CodeLensResolveRequest=u.CodeLensRequest=u.WorkspaceSymbolResolveRequest=void 0;u.InlineCompletionRequest=u.DidCloseNotebookDocumentNotification=u.DidSaveNotebookDocumentNotification=u.DidChangeNotebookDocumentNotification=u.NotebookCellArrayChange=u.DidOpenNotebookDocumentNotification=u.NotebookDocumentSyncRegistrationType=u.NotebookDocument=u.NotebookCell=u.ExecutionSummary=u.NotebookCellKind=u.DiagnosticRefreshRequest=u.WorkspaceDiagnosticRequest=u.DocumentDiagnosticRequest=u.DocumentDiagnosticReportKind=u.DiagnosticServerCancellationData=u.InlayHintRefreshRequest=u.InlayHintResolveRequest=u.InlayHintRequest=u.InlineValueRefreshRequest=u.InlineValueRequest=u.TypeHierarchySupertypesRequest=u.TypeHierarchySubtypesRequest=u.TypeHierarchyPrepareRequest=void 0;var T=se(),Ig=(mo(),Zr(go)),Te=ho(),K_=uf();Object.defineProperty(u,"ImplementationRequest",{enumerable:!0,get:function(){return K_.ImplementationRequest}});var Q_=df();Object.defineProperty(u,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Q_.TypeDefinitionRequest}});var Vm=mf();Object.defineProperty(u,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Vm.WorkspaceFoldersRequest}});Object.defineProperty(u,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Vm.DidChangeWorkspaceFoldersNotification}});var J_=bf();Object.defineProperty(u,"ConfigurationRequest",{enumerable:!0,get:function(){return J_.ConfigurationRequest}});var Ym=Pf();Object.defineProperty(u,"DocumentColorRequest",{enumerable:!0,get:function(){return Ym.DocumentColorRequest}});Object.defineProperty(u,"ColorPresentationRequest",{enumerable:!0,get:function(){return Ym.ColorPresentationRequest}});var Gm=Sf();Object.defineProperty(u,"FoldingRangeRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRequest}});Object.defineProperty(u,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return Gm.FoldingRangeRefreshRequest}});var X_=Tf();Object.defineProperty(u,"DeclarationRequest",{enumerable:!0,get:function(){return X_.DeclarationRequest}});var Z_=Af();Object.defineProperty(u,"SelectionRangeRequest",{enumerable:!0,get:function(){return Z_.SelectionRangeRequest}});var Hu=Ef();Object.defineProperty(u,"WorkDoneProgress",{enumerable:!0,get:function(){return Hu.WorkDoneProgress}});Object.defineProperty(u,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCreateRequest}});Object.defineProperty(u,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Hu.WorkDoneProgressCancelNotification}});var zu=If();Object.defineProperty(u,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyIncomingCallsRequest}});Object.defineProperty(u,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return zu.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(u,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return zu.CallHierarchyPrepareRequest}});var ir=zf();Object.defineProperty(u,"TokenFormat",{enumerable:!0,get:function(){return ir.TokenFormat}});Object.defineProperty(u,"SemanticTokensRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRequest}});Object.defineProperty(u,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ir.SemanticTokensDeltaRequest}});Object.defineProperty(u,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRangeRequest}});Object.defineProperty(u,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ir.SemanticTokensRefreshRequest}});Object.defineProperty(u,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ir.SemanticTokensRegistrationType}});var eC=Yf();Object.defineProperty(u,"ShowDocumentRequest",{enumerable:!0,get:function(){return eC.ShowDocumentRequest}});var tC=Qf();Object.defineProperty(u,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return tC.LinkedEditingRangeRequest}});var mn=ig();Object.defineProperty(u,"FileOperationPatternKind",{enumerable:!0,get:function(){return mn.FileOperationPatternKind}});Object.defineProperty(u,"DidCreateFilesNotification",{enumerable:!0,get:function(){return mn.DidCreateFilesNotification}});Object.defineProperty(u,"WillCreateFilesRequest",{enumerable:!0,get:function(){return mn.WillCreateFilesRequest}});Object.defineProperty(u,"DidRenameFilesNotification",{enumerable:!0,get:function(){return mn.DidRenameFilesNotification}});Object.defineProperty(u,"WillRenameFilesRequest",{enumerable:!0,get:function(){return mn.WillRenameFilesRequest}});Object.defineProperty(u,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return mn.DidDeleteFilesNotification}});Object.defineProperty(u,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return mn.WillDeleteFilesRequest}});var $u=ug();Object.defineProperty(u,"UniquenessLevel",{enumerable:!0,get:function(){return $u.UniquenessLevel}});Object.defineProperty(u,"MonikerKind",{enumerable:!0,get:function(){return $u.MonikerKind}});Object.defineProperty(u,"MonikerRequest",{enumerable:!0,get:function(){return $u.MonikerRequest}});var Vu=fg();Object.defineProperty(u,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchyPrepareRequest}});Object.defineProperty(u,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySubtypesRequest}});Object.defineProperty(u,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Vu.TypeHierarchySupertypesRequest}});var Km=hg();Object.defineProperty(u,"InlineValueRequest",{enumerable:!0,get:function(){return Km.InlineValueRequest}});Object.defineProperty(u,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Km.InlineValueRefreshRequest}});var Yu=xg();Object.defineProperty(u,"InlayHintRequest",{enumerable:!0,get:function(){return Yu.InlayHintRequest}});Object.defineProperty(u,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Yu.InlayHintResolveRequest}});Object.defineProperty(u,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Yu.InlayHintRefreshRequest}});var Ur=Tg();Object.defineProperty(u,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ur.DiagnosticServerCancellationData}});Object.defineProperty(u,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticReportKind}});Object.defineProperty(u,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ur.DocumentDiagnosticRequest}});Object.defineProperty(u,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ur.WorkspaceDiagnosticRequest}});Object.defineProperty(u,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ur.DiagnosticRefreshRequest}});var yt=Eg();Object.defineProperty(u,"NotebookCellKind",{enumerable:!0,get:function(){return yt.NotebookCellKind}});Object.defineProperty(u,"ExecutionSummary",{enumerable:!0,get:function(){return yt.ExecutionSummary}});Object.defineProperty(u,"NotebookCell",{enumerable:!0,get:function(){return yt.NotebookCell}});Object.defineProperty(u,"NotebookDocument",{enumerable:!0,get:function(){return yt.NotebookDocument}});Object.defineProperty(u,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return yt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(u,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidOpenNotebookDocumentNotification}});Object.defineProperty(u,"NotebookCellArrayChange",{enumerable:!0,get:function(){return yt.NotebookCellArrayChange}});Object.defineProperty(u,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidChangeNotebookDocumentNotification}});Object.defineProperty(u,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidSaveNotebookDocumentNotification}});Object.defineProperty(u,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return yt.DidCloseNotebookDocumentNotification}});var nC=Lg();Object.defineProperty(u,"InlineCompletionRequest",{enumerable:!0,get:function(){return nC.InlineCompletionRequest}});var Fu;(function(e){function t(n){let r=n;return Te.string(r)||Te.string(r.language)||Te.string(r.scheme)||Te.string(r.pattern)}e.is=t})(Fu||(u.TextDocumentFilter=Fu={}));var Uu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebookType)||Te.string(r.scheme)||Te.string(r.pattern))}e.is=t})(Uu||(u.NotebookDocumentFilter=Uu={}));var Wu;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Te.string(r.notebook)||Uu.is(r.notebook))&&(r.language===void 0||Te.string(r.language))}e.is=t})(Wu||(u.NotebookCellTextDocumentFilter=Wu={}));var Bu;(function(e){function t(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Te.string(r)&&!Fu.is(r)&&!Wu.is(r))return!1;return!0}e.is=t})(Bu||(u.DocumentSelector=Bu={}));var Fg;(function(e){e.method="client/registerCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Fg||(u.RegistrationRequest=Fg={}));var Ug;(function(e){e.method="client/unregisterCapability",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(Ug||(u.UnregistrationRequest=Ug={}));var Wg;(function(e){e.Create="create",e.Rename="rename",e.Delete="delete"})(Wg||(u.ResourceOperationKind=Wg={}));var Bg;(function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"})(Bg||(u.FailureHandlingKind=Bg={}));var Hg;(function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"})(Hg||(u.PositionEncodingKind=Hg={}));var zg;(function(e){function t(n){let r=n;return r&&Te.string(r.id)&&r.id.length>0}e.hasId=t})(zg||(u.StaticRegistrationOptions=zg={}));var $g;(function(e){function t(n){let r=n;return r&&(r.documentSelector===null||Bu.is(r.documentSelector))}e.is=t})($g||(u.TextDocumentRegistrationOptions=$g={}));var Vg;(function(e){function t(r){let i=r;return Te.objectLiteral(i)&&(i.workDoneProgress===void 0||Te.boolean(i.workDoneProgress))}e.is=t;function n(r){let i=r;return i&&Te.boolean(i.workDoneProgress)}e.hasWorkDoneProgress=n})(Vg||(u.WorkDoneProgressOptions=Vg={}));var Yg;(function(e){e.method="initialize",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Yg||(u.InitializeRequest=Yg={}));var Gg;(function(e){e.unknownProtocolVersion=1})(Gg||(u.InitializeErrorCodes=Gg={}));var Kg;(function(e){e.method="initialized",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Kg||(u.InitializedNotification=Kg={}));var Qg;(function(e){e.method="shutdown",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType0(e.method)})(Qg||(u.ShutdownRequest=Qg={}));var Jg;(function(e){e.method="exit",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType0(e.method)})(Jg||(u.ExitNotification=Jg={}));var Xg;(function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(Xg||(u.DidChangeConfigurationNotification=Xg={}));var Zg;(function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5})(Zg||(u.MessageType=Zg={}));var em;(function(e){e.method="window/showMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(em||(u.ShowMessageNotification=em={}));var tm;(function(e){e.method="window/showMessageRequest",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType(e.method)})(tm||(u.ShowMessageRequest=tm={}));var nm;(function(e){e.method="window/logMessage",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(nm||(u.LogMessageNotification=nm={}));var rm;(function(e){e.method="telemetry/event",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(rm||(u.TelemetryEventNotification=rm={}));var im;(function(e){e.None=0,e.Full=1,e.Incremental=2})(im||(u.TextDocumentSyncKind=im={}));var om;(function(e){e.method="textDocument/didOpen",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(om||(u.DidOpenTextDocumentNotification=om={}));var sm;(function(e){function t(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}e.isIncremental=t;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}e.isFull=n})(sm||(u.TextDocumentContentChangeEvent=sm={}));var am;(function(e){e.method="textDocument/didChange",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(am||(u.DidChangeTextDocumentNotification=am={}));var cm;(function(e){e.method="textDocument/didClose",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(cm||(u.DidCloseTextDocumentNotification=cm={}));var um;(function(e){e.method="textDocument/didSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(um||(u.DidSaveTextDocumentNotification=um={}));var lm;(function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3})(lm||(u.TextDocumentSaveReason=lm={}));var pm;(function(e){e.method="textDocument/willSave",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(pm||(u.WillSaveTextDocumentNotification=pm={}));var dm;(function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(dm||(u.WillSaveTextDocumentWaitUntilRequest=dm={}));var fm;(function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolNotificationType(e.method)})(fm||(u.DidChangeWatchedFilesNotification=fm={}));var gm;(function(e){e.Created=1,e.Changed=2,e.Deleted=3})(gm||(u.FileChangeType=gm={}));var mm;(function(e){function t(n){let r=n;return Te.objectLiteral(r)&&(Ig.URI.is(r.baseUri)||Ig.WorkspaceFolder.is(r.baseUri))&&Te.string(r.pattern)}e.is=t})(mm||(u.RelativePattern=mm={}));var hm;(function(e){e.Create=1,e.Change=2,e.Delete=4})(hm||(u.WatchKind=hm={}));var ym;(function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolNotificationType(e.method)})(ym||(u.PublishDiagnosticsNotification=ym={}));var bm;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3})(bm||(u.CompletionTriggerKind=bm={}));var vm;(function(e){e.method="textDocument/completion",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(vm||(u.CompletionRequest=vm={}));var xm;(function(e){e.method="completionItem/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(xm||(u.CompletionResolveRequest=xm={}));var Pm;(function(e){e.method="textDocument/hover",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Pm||(u.HoverRequest=Pm={}));var _m;(function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3})(_m||(u.SignatureHelpTriggerKind=_m={}));var Cm;(function(e){e.method="textDocument/signatureHelp",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Cm||(u.SignatureHelpRequest=Cm={}));var Sm;(function(e){e.method="textDocument/definition",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Sm||(u.DefinitionRequest=Sm={}));var Dm;(function(e){e.method="textDocument/references",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Dm||(u.ReferencesRequest=Dm={}));var Rm;(function(e){e.method="textDocument/documentHighlight",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Rm||(u.DocumentHighlightRequest=Rm={}));var Tm;(function(e){e.method="textDocument/documentSymbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Tm||(u.DocumentSymbolRequest=Tm={}));var wm;(function(e){e.method="textDocument/codeAction",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(wm||(u.CodeActionRequest=wm={}));var km;(function(e){e.method="codeAction/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(km||(u.CodeActionResolveRequest=km={}));var Am;(function(e){e.method="workspace/symbol",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Am||(u.WorkspaceSymbolRequest=Am={}));var Om;(function(e){e.method="workspaceSymbol/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Om||(u.WorkspaceSymbolResolveRequest=Om={}));var qm;(function(e){e.method="textDocument/codeLens",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(qm||(u.CodeLensRequest=qm={}));var Nm;(function(e){e.method="codeLens/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Nm||(u.CodeLensResolveRequest=Nm={}));var Em;(function(e){e.method="workspace/codeLens/refresh",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType0(e.method)})(Em||(u.CodeLensRefreshRequest=Em={}));var jm;(function(e){e.method="textDocument/documentLink",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(jm||(u.DocumentLinkRequest=jm={}));var Mm;(function(e){e.method="documentLink/resolve",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Mm||(u.DocumentLinkResolveRequest=Mm={}));var Lm;(function(e){e.method="textDocument/formatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Lm||(u.DocumentFormattingRequest=Lm={}));var Im;(function(e){e.method="textDocument/rangeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Im||(u.DocumentRangeFormattingRequest=Im={}));var Fm;(function(e){e.method="textDocument/rangesFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Fm||(u.DocumentRangesFormattingRequest=Fm={}));var Um;(function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Um||(u.DocumentOnTypeFormattingRequest=Um={}));var Wm;(function(e){e.Identifier=1})(Wm||(u.PrepareSupportDefaultBehavior=Wm={}));var Bm;(function(e){e.method="textDocument/rename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Bm||(u.RenameRequest=Bm={}));var Hm;(function(e){e.method="textDocument/prepareRename",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(Hm||(u.PrepareRenameRequest=Hm={}));var zm;(function(e){e.method="workspace/executeCommand",e.messageDirection=T.MessageDirection.clientToServer,e.type=new T.ProtocolRequestType(e.method)})(zm||(u.ExecuteCommandRequest=zm={}));var $m;(function(e){e.method="workspace/applyEdit",e.messageDirection=T.MessageDirection.serverToClient,e.type=new T.ProtocolRequestType("workspace/applyEdit")})($m||(u.ApplyWorkspaceEditRequest=$m={}))});var Xm=S(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.createProtocolConnection=void 0;var Jm=dn();function rC(e,t,n,r){return Jm.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,Jm.createMessageConnection)(e,t,n,r)}Oo.createProtocolConnection=rC});var eh=S($e=>{"use strict";var iC=$e&&$e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qo=$e&&$e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iC(t,e,n)};Object.defineProperty($e,"__esModule",{value:!0});$e.LSPErrorCodes=$e.createProtocolConnection=void 0;qo(dn(),$e);qo((mo(),Zr(go)),$e);qo(se(),$e);qo(Qm(),$e);var oC=Xm();Object.defineProperty($e,"createProtocolConnection",{enumerable:!0,get:function(){return oC.createProtocolConnection}});var Zm;(function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800})(Zm||($e.LSPErrorCodes=Zm={}))});var ye=S(bt=>{"use strict";var sC=bt&&bt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),th=bt&&bt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&sC(t,e,n)};Object.defineProperty(bt,"__esModule",{value:!0});bt.createProtocolConnection=void 0;var aC=kc();th(kc(),bt);th(eh(),bt);function cC(e,t,n,r){return(0,aC.createMessageConnection)(e,t,n,r)}bt.createProtocolConnection=cC});var Ku=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.SemanticTokensBuilder=Yt.SemanticTokensDiff=Yt.SemanticTokensFeature=void 0;var No=ye(),uC=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(No.SemanticTokensRefreshRequest.type),on:t=>{let n=No.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=No.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=No.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yt.SemanticTokensFeature=uC;var Eo=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Yt.SemanticTokensDiff=Eo;var Gu=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Eo(this._prevData,this._data).computeDiff()}:this.build()}};Yt.SemanticTokensBuilder=Gu});var nh=S(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.InlineCompletionFeature=void 0;var lC=ye(),pC=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(lC.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};jo.InlineCompletionFeature=pC});var Ju=S(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.TextDocuments=void 0;var hn=ye(),Qu=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new hn.Emitter,this._onDidOpen=new hn.Emitter,this._onDidClose=new hn.Emitter,this._onDidSave=new hn.Emitter,this._onWillSave=new hn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=hn.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),hn.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Mo.TextDocuments=Qu});var Zu=S(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.NotebookDocuments=or.NotebookSyncFeature=void 0;var tt=ye(),rh=Ju(),dC=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(tt.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(tt.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(tt.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(tt.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};or.NotebookSyncFeature=dC;var Lo=class e{onDidOpenTextDocument(t){return this.openHandler=t,tt.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,tt.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,tt.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Lo.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var Xu=class{constructor(t){t instanceof rh.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new rh.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new tt.Emitter,this._onDidChange=new tt.Emitter,this._onDidSave=new tt.Emitter,this._onDidClose=new tt.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Lo,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,c=i.change;c.metadata!==void 0&&(a=!0,o.metadata=c.metadata);let l=[],d=[],h=[],v=[];if(c.cells!==void 0){let Y=c.cells;if(Y.structure!==void 0){let m=Y.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),Y.structure.didOpen!==void 0)for(let g of Y.structure.didOpen)n.openTextDocument({textDocument:g}),l.push(g.uri);if(Y.structure.didClose)for(let g of Y.structure.didClose)n.closeTextDocument({textDocument:g}),d.push(g.uri)}if(Y.data!==void 0){let m=new Map(Y.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let w=m.get(o.cells[g].document);if(w!==void 0){let V=o.cells.splice(g,1,w);if(h.push({old:V[0],new:w}),m.delete(w.document),m.size===0)break}}}if(Y.textContent!==void 0)for(let m of Y.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),v.push(m.document.uri)}this.updateCellMap(o);let y={notebookDocument:o};a&&(y.metadata={old:s,new:o.metadata});let R=[];for(let Y of l)R.push(this.getNotebookCell(Y));let I=[];for(let Y of d)I.push(this.getNotebookCell(Y));let $=[];for(let Y of v)$.push(this.getNotebookCell(Y));(R.length>0||I.length>0||h.length>0||$.length>0)&&(y.cells={added:R,removed:I,changed:{data:h,textContent:$}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),tt.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};or.NotebookDocuments=Xu});var el=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.thenable=ve.typedArray=ve.stringArray=ve.array=ve.func=ve.error=ve.number=ve.string=ve.boolean=void 0;function fC(e){return e===!0||e===!1}ve.boolean=fC;function ih(e){return typeof e=="string"||e instanceof String}ve.string=ih;function gC(e){return typeof e=="number"||e instanceof Number}ve.number=gC;function mC(e){return e instanceof Error}ve.error=mC;function oh(e){return typeof e=="function"}ve.func=oh;function sh(e){return Array.isArray(e)}ve.array=sh;function hC(e){return sh(e)&&e.every(t=>ih(t))}ve.stringArray=hC;function yC(e,t){return Array.isArray(e)&&e.every(t)}ve.typedArray=yC;function bC(e){return e&&oh(e.then)}ve.thenable=bC});var tl=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.generateUuid=nt.parse=nt.isUUID=nt.v4=nt.empty=void 0;var Wr=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Br=class e extends Wr{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Br._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Br._timeHighBits=["8","9","a","b"];nt.empty=new Wr("00000000-0000-0000-0000-000000000000");function ah(){return new Br}nt.v4=ah;var vC=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function ch(e){return vC.test(e)}nt.isUUID=ch;function xC(e){if(!ch(e))throw new Error("invalid uuid");return new Wr(e)}nt.parse=xC;function PC(){return ah().asHex()}nt.generateUuid=PC});var uh=S(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.attachPartialResult=Kt.ProgressFeature=Kt.attachWorkDone=void 0;var Gt=ye(),_C=tl(),yn=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Gt.WorkDoneProgress.type,this._token,{kind:"end"})}};yn.Instances=new Map;var Io=class extends yn{constructor(t,n){super(t,n),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Hr=class{constructor(){}begin(){}report(){}done(){}},Fo=class extends Hr{constructor(){super(),this._source=new Gt.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function CC(e,t){if(t===void 0||t.workDoneToken===void 0)return new Hr;let n=t.workDoneToken;return delete t.workDoneToken,new yn(e,n)}Kt.attachWorkDone=CC;var SC=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Gt.WorkDoneProgressCancelNotification.type,n=>{let r=yn.Instances.get(n.token);(r instanceof Io||r instanceof Fo)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Hr:new yn(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,_C.generateUuid)();return this.connection.sendRequest(Gt.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new Io(this.connection,t))}else return Promise.resolve(new Fo)}};Kt.ProgressFeature=SC;var nl;(function(e){e.type=new Gt.ProgressType})(nl||(nl={}));var rl=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(nl.type,this._token,t)}};function DC(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new rl(e,n)}Kt.attachPartialResult=DC});var lh=S(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.ConfigurationFeature=void 0;var RC=ye(),TC=el(),wC=e=>class extends e{getConfiguration(t){return t?TC.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(RC.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};Uo.ConfigurationFeature=wC});var ph=S(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.WorkspaceFoldersFeature=void 0;var Wo=ye(),kC=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Wo.Emitter,this.connection.onNotification(Wo.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Wo.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Wo.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Bo.WorkspaceFoldersFeature=kC});var dh=S(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.CallHierarchyFeature=void 0;var il=ye(),AC=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(il.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=il.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=il.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ho.CallHierarchyFeature=AC});var fh=S(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.ShowDocumentFeature=void 0;var OC=ye(),qC=e=>class extends e{showDocument(t){return this.connection.sendRequest(OC.ShowDocumentRequest.type,t)}};zo.ShowDocumentFeature=qC});var gh=S($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.FileOperationsFeature=void 0;var sr=ye(),NC=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(sr.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(sr.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(sr.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(sr.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(sr.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(sr.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};$o.FileOperationsFeature=NC});var mh=S(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.LinkedEditingRangeFeature=void 0;var EC=ye(),jC=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(EC.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Vo.LinkedEditingRangeFeature=jC});var hh=S(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.TypeHierarchyFeature=void 0;var ol=ye(),MC=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(ol.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=ol.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=ol.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Yo.TypeHierarchyFeature=MC});var bh=S(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.InlineValueFeature=void 0;var yh=ye(),LC=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(yh.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(yh.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Go.InlineValueFeature=LC});var xh=S(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.FoldingRangeFeature=void 0;var vh=ye(),IC=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(vh.FoldingRangeRefreshRequest.type),on:t=>{let n=vh.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Ko.FoldingRangeFeature=IC});var Ph=S(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.InlayHintFeature=void 0;var sl=ye(),FC=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(sl.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(sl.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(sl.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Qo.InlayHintFeature=FC});var _h=S(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.DiagnosticFeature=void 0;var zr=ye(),UC=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(zr.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(zr.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(zr.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(zr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Jo.DiagnosticFeature=UC});var Ch=S(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.MonikerFeature=void 0;var WC=ye(),BC=e=>class extends e{get moniker(){return{on:t=>{let n=WC.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Xo.MonikerFeature=BC});var Ih=S(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.createConnection=Q.combineFeatures=Q.combineNotebooksFeatures=Q.combineLanguagesFeatures=Q.combineWorkspaceFeatures=Q.combineWindowFeatures=Q.combineClientFeatures=Q.combineTracerFeatures=Q.combineTelemetryFeatures=Q.combineConsoleFeatures=Q._NotebooksImpl=Q._LanguagesImpl=Q.BulkUnregistration=Q.BulkRegistration=Q.ErrorMessageTracker=void 0;var O=ye(),rt=el(),cl=tl(),B=uh(),HC=lh(),zC=ph(),$C=dh(),VC=Ku(),YC=fh(),GC=gh(),KC=mh(),QC=hh(),JC=bh(),XC=xh(),ZC=Ph(),e0=_h(),t0=Zu(),n0=Ch();function al(e){if(e!==null)return e}var ul=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};Q.ErrorMessageTracker=ul;var Zo=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(O.MessageType.Error,t)}warn(t){this.send(O.MessageType.Warning,t)}info(t){this.send(O.MessageType.Info,t)}log(t){this.send(O.MessageType.Log,t)}debug(t){this.send(O.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(O.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,O.RAL)().console.error("Sending log message failed")})}},ll=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:O.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showWarningMessage(t,...n){let r={type:O.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}showInformationMessage(t,...n){let r={type:O.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(O.ShowMessageRequest.type,r).then(al)}},Sh=(0,YC.ShowDocumentFeature)((0,B.ProgressFeature)(ll)),Dh;(function(e){function t(){return new es}e.create=t})(Dh||(Q.BulkRegistration=Dh={}));var es=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=rt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=cl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},Rh;(function(e){function t(){return new $r(void 0,[])}e.create=t})(Rh||(Q.BulkUnregistration=Rh={}));var $r=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(O.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=rt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(O.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},ts=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof es?this.registerMany(t):t instanceof $r?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=rt.string(n)?n:n.method,o=cl.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(O.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=rt.string(t)?t:t.method,i=cl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(O.RegistrationRequest.type,o).then(s=>O.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(O.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(O.RegistrationRequest.type,n).then(()=>new $r(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},pl=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(O.ApplyWorkspaceEditRequest.type,r)}},Th=(0,GC.FileOperationsFeature)((0,zC.WorkspaceFoldersFeature)((0,HC.ConfigurationFeature)(pl))),ns=class{constructor(){this._trace=O.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==O.Trace.Off&&this.connection.sendNotification(O.LogTraceNotification.type,{message:t,verbose:this._trace===O.Trace.Verbose?n:void 0}).catch(()=>{})}},rs=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(O.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},is=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._LanguagesImpl=is;var wh=(0,XC.FoldingRangeFeature)((0,n0.MonikerFeature)((0,e0.DiagnosticFeature)((0,ZC.InlayHintFeature)((0,JC.InlineValueFeature)((0,QC.TypeHierarchyFeature)((0,KC.LinkedEditingRangeFeature)((0,VC.SemanticTokensFeature)((0,$C.CallHierarchyFeature)(is))))))))),os=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,B.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,B.attachPartialResult)(this.connection,n)}};Q._NotebooksImpl=os;var kh=(0,t0.NotebookSyncFeature)(os);function Ah(e,t){return function(n){return t(e(n))}}Q.combineConsoleFeatures=Ah;function Oh(e,t){return function(n){return t(e(n))}}Q.combineTelemetryFeatures=Oh;function qh(e,t){return function(n){return t(e(n))}}Q.combineTracerFeatures=qh;function Nh(e,t){return function(n){return t(e(n))}}Q.combineClientFeatures=Nh;function Eh(e,t){return function(n){return t(e(n))}}Q.combineWindowFeatures=Eh;function jh(e,t){return function(n){return t(e(n))}}Q.combineWorkspaceFeatures=jh;function Mh(e,t){return function(n){return t(e(n))}}Q.combineLanguagesFeatures=Mh;function Lh(e,t){return function(n){return t(e(n))}}Q.combineNotebooksFeatures=Lh;function r0(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,Ah),tracer:n(e.tracer,t.tracer,qh),telemetry:n(e.telemetry,t.telemetry,Oh),client:n(e.client,t.client,Nh),window:n(e.window,t.window,Eh),workspace:n(e.workspace,t.workspace,jh),languages:n(e.languages,t.languages,Mh),notebooks:n(e.notebooks,t.notebooks,Lh)}}Q.combineFeatures=r0;function i0(e,t,n){let r=n&&n.console?new(n.console(Zo)):new Zo,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(ns)):new ns,s=n&&n.telemetry?new(n.telemetry(rs)):new rs,a=n&&n.client?new(n.client(ts)):new ts,c=n&&n.window?new(n.window(Sh)):new Sh,l=n&&n.workspace?new(n.workspace(Th)):new Th,d=n&&n.languages?new(n.languages(wh)):new wh,h=n&&n.notebooks?new(n.notebooks(kh)):new kh,v=[r,o,s,a,c,l,d,h];function y(m){return m instanceof Promise?m:rt.thenable(m)?new Promise((g,w)=>{m.then(V=>g(V),V=>w(V))}):Promise.resolve(m)}let R,I,$,Y={listen:()=>i.listen(),sendRequest:(m,...g)=>i.sendRequest(rt.string(m)?m:m.method,...g),onRequest:(m,g)=>i.onRequest(m,g),sendNotification:(m,g)=>{let w=rt.string(m)?m:m.method;return i.sendNotification(w,g)},onNotification:(m,g)=>i.onNotification(m,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(I=m,{dispose:()=>{I=void 0}}),onInitialized:m=>i.onNotification(O.InitializedNotification.type,m),onShutdown:m=>(R=m,{dispose:()=>{R=void 0}}),onExit:m=>($=m,{dispose:()=>{$=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return c},get workspace(){return l},get languages(){return d},get notebooks(){return h},onDidChangeConfiguration:m=>i.onNotification(O.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(O.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(O.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(O.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(O.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(O.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(O.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(O.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(O.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(O.HoverRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onCompletion:m=>i.onRequest(O.CompletionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCompletionResolve:m=>i.onRequest(O.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(O.SignatureHelpRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDeclaration:m=>i.onRequest(O.DeclarationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDefinition:m=>i.onRequest(O.DefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onTypeDefinition:m=>i.onRequest(O.TypeDefinitionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onImplementation:m=>i.onRequest(O.ImplementationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onReferences:m=>i.onRequest(O.ReferencesRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentHighlight:m=>i.onRequest(O.DocumentHighlightRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentSymbol:m=>i.onRequest(O.DocumentSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbol:m=>i.onRequest(O.WorkspaceSymbolRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:m=>i.onRequest(O.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(O.CodeActionRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeActionResolve:m=>i.onRequest(O.CodeActionResolveRequest.type,(g,w)=>m(g,w)),onCodeLens:m=>i.onRequest(O.CodeLensRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onCodeLensResolve:m=>i.onRequest(O.CodeLensResolveRequest.type,(g,w)=>m(g,w)),onDocumentFormatting:m=>i.onRequest(O.DocumentFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:m=>i.onRequest(O.DocumentRangeFormattingRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(O.DocumentOnTypeFormattingRequest.type,(g,w)=>m(g,w)),onRenameRequest:m=>i.onRequest(O.RenameRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),onPrepareRename:m=>i.onRequest(O.PrepareRenameRequest.type,(g,w)=>m(g,w)),onDocumentLinks:m=>i.onRequest(O.DocumentLinkRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onDocumentLinkResolve:m=>i.onRequest(O.DocumentLinkResolveRequest.type,(g,w)=>m(g,w)),onDocumentColor:m=>i.onRequest(O.DocumentColorRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onColorPresentation:m=>i.onRequest(O.ColorPresentationRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onFoldingRanges:m=>i.onRequest(O.FoldingRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onSelectionRanges:m=>i.onRequest(O.SelectionRangeRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),(0,B.attachPartialResult)(i,g))),onExecuteCommand:m=>i.onRequest(O.ExecuteCommandRequest.type,(g,w)=>m(g,w,(0,B.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let m of v)m.attach(Y);return i.onRequest(O.InitializeRequest.type,m=>{t.initialize(m),rt.string(m.trace)&&(o.trace=O.Trace.fromString(m.trace));for(let g of v)g.initialize(m.capabilities);if(I){let g=I(m,new O.CancellationTokenSource().token,(0,B.attachWorkDone)(i,m),void 0);return y(g).then(w=>{if(w instanceof O.ResponseError)return w;let V=w;V||(V={capabilities:{}});let X=V.capabilities;X||(X={},V.capabilities=X),X.textDocumentSync===void 0||X.textDocumentSync===null?X.textDocumentSync=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None:!rt.number(X.textDocumentSync)&&!rt.number(X.textDocumentSync.change)&&(X.textDocumentSync.change=rt.number(Y.__textDocumentSync)?Y.__textDocumentSync:O.TextDocumentSyncKind.None);for(let it of v)it.fillServerCapabilities(X);return V})}else{let g={capabilities:{textDocumentSync:O.TextDocumentSyncKind.None}};for(let w of v)w.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(O.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,R)return R(new O.CancellationTokenSource().token)}),i.onNotification(O.ExitNotification.type,()=>{try{$&&$()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(O.SetTraceNotification.type,m=>{o.trace=O.Trace.fromString(m.value)}),Y}Q.createConnection=i0});var dl=S(je=>{"use strict";var o0=je&&je.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Uh=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o0(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});je.ProposedFeatures=je.NotebookDocuments=je.TextDocuments=je.SemanticTokensBuilder=void 0;var s0=Ku();Object.defineProperty(je,"SemanticTokensBuilder",{enumerable:!0,get:function(){return s0.SemanticTokensBuilder}});var a0=nh();Uh(ye(),je);var c0=Ju();Object.defineProperty(je,"TextDocuments",{enumerable:!0,get:function(){return c0.TextDocuments}});var u0=Zu();Object.defineProperty(je,"NotebookDocuments",{enumerable:!0,get:function(){return u0.NotebookDocuments}});Uh(Ih(),je);var Fh;(function(e){e.all={__brand:"features",languages:a0.InlineCompletionFeature}})(Fh||(je.ProposedFeatures=Fh={}))});var Bh=S((ew,Wh)=>{"use strict";Wh.exports=ye()});var fl=S(vt=>{"use strict";var l0=vt&&vt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),zh=vt&&vt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&l0(t,e,n)};Object.defineProperty(vt,"__esModule",{value:!0});vt.createConnection=void 0;var ss=dl();zh(Bh(),vt);zh(dl(),vt);var Hh=!1,p0={initialize:e=>{},get shutdownReceived(){return Hh},set shutdownReceived(e){Hh=e},exit:e=>{}};function d0(e,t,n,r){let i,o,s,a;e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),ss.ConnectionStrategy.is(e)||ss.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n);let c=l=>(0,ss.createProtocolConnection)(o,s,l,a);return(0,ss.createConnection)(c,p0,i)}vt.createConnection=d0});var Qt=S((nw,$h)=>{"use strict";$h.exports=fl()});var Cl=S((Vw,iy)=>{"use strict";function xt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ry(e,t){for(var n="",r=0,i=-1,o=0,s,a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function Z0(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ur={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),xt(o),o.length!==0&&(t=o+"/"+t,n=o.charCodeAt(0)===47)}return t=ry(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(xt(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=ry(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return xt(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];xt(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ur.normalize(t)},relative:function(t,n){if(xt(t),xt(n),t===n||(t=ur.resolve(t),n=ur.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,c=a-s,l=o<c?o:c,d=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(n.charCodeAt(s+h)===47)return n.slice(s+h+1);if(h===0)return n.slice(s+h)}else o>l&&(t.charCodeAt(r+h)===47?d=h:h===0&&(d=0));break}var v=t.charCodeAt(r+h),y=n.charCodeAt(s+h);if(v!==y)break;v===47&&(d=h)}var R="";for(h=r+d+1;h<=i;++h)(h===i||t.charCodeAt(h)===47)&&(R.length===0?R+="..":R+="/..");return R.length>0?R+n.slice(s+d):(s+=d,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(xt(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,o=!0,s=t.length-1;s>=1;--s)if(n=t.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xt(t);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,c=-1;for(s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(l===47){if(!o){r=s+1;break}}else c===-1&&(o=!1,c=s+1),a>=0&&(l===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=c))}return r===i?i=c:i===-1&&(i=t.length),t.slice(r,i)}else{for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":t.slice(r,i)}},extname:function(t){xt(t);for(var n=-1,r=0,i=-1,o=!0,s=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),c===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Z0("/",t)},parse:function(t){xt(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,c=-1,l=!0,d=t.length-1,h=0;d>=o;--d){if(r=t.charCodeAt(d),r===47){if(!l){a=d+1;break}continue}c===-1&&(l=!1,c=d+1),r===46?s===-1?s=d:h!==1&&(h=1):s!==-1&&(h=-1)}return s===-1||c===-1||h===0||h===1&&s===c-1&&s===a+1?c!==-1&&(a===0&&i?n.base=n.name=t.slice(1,c):n.base=n.name=t.slice(a,c)):(a===0&&i?(n.name=t.slice(1,s),n.base=t.slice(1,c)):(n.name=t.slice(a,s),n.base=t.slice(a,c)),n.ext=t.slice(s,c)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};ur.posix=ur;iy.exports=ur});import{createConfig as fd,loadConfig as _x,DEFAULT_CONFIG as gd}from"@redocly/openapi-core";var wl;(()=>{"use strict";var e={975:k=>{function b(P){if(typeof P!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(P))}function E(P,C){for(var D,N="",M=0,q=-1,z=0,G=0;G<=P.length;++G){if(G<P.length)D=P.charCodeAt(G);else{if(D===47)break;D=47}if(D===47){if(!(q===G-1||z===1))if(q!==G-1&&z===2){if(N.length<2||M!==2||N.charCodeAt(N.length-1)!==46||N.charCodeAt(N.length-2)!==46){if(N.length>2){var Ce=N.lastIndexOf("/");if(Ce!==N.length-1){Ce===-1?(N="",M=0):M=(N=N.slice(0,Ce)).length-1-N.lastIndexOf("/"),q=G,z=0;continue}}else if(N.length===2||N.length===1){N="",M=0,q=G,z=0;continue}}C&&(N.length>0?N+="/..":N="..",M=2)}else N.length>0?N+="/"+P.slice(q+1,G):N=P.slice(q+1,G),M=G-q-1;q=G,z=0}else D===46&&z!==-1?++z:z=-1}return N}var j={resolve:function(){for(var P,C="",D=!1,N=arguments.length-1;N>=-1&&!D;N--){var M;N>=0?M=arguments[N]:(P===void 0&&(P=process.cwd()),M=P),b(M),M.length!==0&&(C=M+"/"+C,D=M.charCodeAt(0)===47)}return C=E(C,!D),D?C.length>0?"/"+C:"/":C.length>0?C:"."},normalize:function(P){if(b(P),P.length===0)return".";var C=P.charCodeAt(0)===47,D=P.charCodeAt(P.length-1)===47;return(P=E(P,!C)).length!==0||C||(P="."),P.length>0&&D&&(P+="/"),C?"/"+P:P},isAbsolute:function(P){return b(P),P.length>0&&P.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var P,C=0;C<arguments.length;++C){var D=arguments[C];b(D),D.length>0&&(P===void 0?P=D:P+="/"+D)}return P===void 0?".":j.normalize(P)},relative:function(P,C){if(b(P),b(C),P===C||(P=j.resolve(P))===(C=j.resolve(C)))return"";for(var D=1;D<P.length&&P.charCodeAt(D)===47;++D);for(var N=P.length,M=N-D,q=1;q<C.length&&C.charCodeAt(q)===47;++q);for(var z=C.length-q,G=M<z?M:z,Ce=-1,ee=0;ee<=G;++ee){if(ee===G){if(z>G){if(C.charCodeAt(q+ee)===47)return C.slice(q+ee+1);if(ee===0)return C.slice(q+ee)}else M>G&&(P.charCodeAt(D+ee)===47?Ce=ee:ee===0&&(Ce=0));break}var ot=P.charCodeAt(D+ee);if(ot!==C.charCodeAt(q+ee))break;ot===47&&(Ce=ee)}var tn="";for(ee=D+Ce+1;ee<=N;++ee)ee!==N&&P.charCodeAt(ee)!==47||(tn.length===0?tn+="..":tn+="/..");return tn.length>0?tn+C.slice(q+Ce):(q+=Ce,C.charCodeAt(q)===47&&++q,C.slice(q))},_makeLong:function(P){return P},dirname:function(P){if(b(P),P.length===0)return".";for(var C=P.charCodeAt(0),D=C===47,N=-1,M=!0,q=P.length-1;q>=1;--q)if((C=P.charCodeAt(q))===47){if(!M){N=q;break}}else M=!1;return N===-1?D?"/":".":D&&N===1?"//":P.slice(0,N)},basename:function(P,C){if(C!==void 0&&typeof C!="string")throw new TypeError('"ext" argument must be a string');b(P);var D,N=0,M=-1,q=!0;if(C!==void 0&&C.length>0&&C.length<=P.length){if(C.length===P.length&&C===P)return"";var z=C.length-1,G=-1;for(D=P.length-1;D>=0;--D){var Ce=P.charCodeAt(D);if(Ce===47){if(!q){N=D+1;break}}else G===-1&&(q=!1,G=D+1),z>=0&&(Ce===C.charCodeAt(z)?--z==-1&&(M=D):(z=-1,M=G))}return N===M?M=G:M===-1&&(M=P.length),P.slice(N,M)}for(D=P.length-1;D>=0;--D)if(P.charCodeAt(D)===47){if(!q){N=D+1;break}}else M===-1&&(q=!1,M=D+1);return M===-1?"":P.slice(N,M)},extname:function(P){b(P);for(var C=-1,D=0,N=-1,M=!0,q=0,z=P.length-1;z>=0;--z){var G=P.charCodeAt(z);if(G!==47)N===-1&&(M=!1,N=z+1),G===46?C===-1?C=z:q!==1&&(q=1):C!==-1&&(q=-1);else if(!M){D=z+1;break}}return C===-1||N===-1||q===0||q===1&&C===N-1&&C===D+1?"":P.slice(C,N)},format:function(P){if(P===null||typeof P!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof P);return(function(C,D){var N=D.dir||D.root,M=D.base||(D.name||"")+(D.ext||"");return N?N===D.root?N+M:N+"/"+M:M})(0,P)},parse:function(P){b(P);var C={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return C;var D,N=P.charCodeAt(0),M=N===47;M?(C.root="/",D=1):D=0;for(var q=-1,z=0,G=-1,Ce=!0,ee=P.length-1,ot=0;ee>=D;--ee)if((N=P.charCodeAt(ee))!==47)G===-1&&(Ce=!1,G=ee+1),N===46?q===-1?q=ee:ot!==1&&(ot=1):q!==-1&&(ot=-1);else if(!Ce){z=ee+1;break}return q===-1||G===-1||ot===0||ot===1&&q===G-1&&q===z+1?G!==-1&&(C.base=C.name=z===0&&M?P.slice(1,G):P.slice(z,G)):(z===0&&M?(C.name=P.slice(1,q),C.base=P.slice(1,G)):(C.name=P.slice(z,q),C.base=P.slice(z,G)),C.ext=P.slice(q,G)),z>0?C.dir=P.slice(0,z-1):M&&(C.dir="/"),C},sep:"/",delimiter:":",win32:null,posix:null};j.posix=j,k.exports=j}},t={};function n(k){var b=t[k];if(b!==void 0)return b.exports;var E=t[k]={exports:{}};return e[k](E,E.exports,n),E.exports}n.d=(k,b)=>{for(var E in b)n.o(b,E)&&!n.o(k,E)&&Object.defineProperty(k,E,{enumerable:!0,get:b[E]})},n.o=(k,b)=>Object.prototype.hasOwnProperty.call(k,b),n.r=k=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})};var r={};let i;n.r(r),n.d(r,{URI:()=>v,Utils:()=>vn}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function c(k,b){if(!k.scheme&&b)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!o.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!s.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let l="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class v{static isUri(b){return b instanceof v||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="string"&&typeof b.with=="function"&&typeof b.toString=="function"}scheme;authority;path;query;fragment;constructor(b,E,j,P,C,D=!1){typeof b=="object"?(this.scheme=b.scheme||l,this.authority=b.authority||l,this.path=b.path||l,this.query=b.query||l,this.fragment=b.fragment||l):(this.scheme=(function(N,M){return N||M?N:"file"})(b,D),this.authority=E||l,this.path=(function(N,M){switch(N){case"https":case"http":case"file":M?M[0]!==d&&(M=d+M):M=d}return M})(this.scheme,j||l),this.query=P||l,this.fragment=C||l,c(this,D))}get fsPath(){return m(this,!1)}with(b){if(!b)return this;let{scheme:E,authority:j,path:P,query:C,fragment:D}=b;return E===void 0?E=this.scheme:E===null&&(E=l),j===void 0?j=this.authority:j===null&&(j=l),P===void 0?P=this.path:P===null&&(P=l),C===void 0?C=this.query:C===null&&(C=l),D===void 0?D=this.fragment:D===null&&(D=l),E===this.scheme&&j===this.authority&&P===this.path&&C===this.query&&D===this.fragment?this:new R(E,j,P,C,D)}static parse(b,E=!1){let j=h.exec(b);return j?new R(j[2]||l,X(j[4]||l),X(j[5]||l),X(j[7]||l),X(j[9]||l),E):new R(l,l,l,l,l)}static file(b){let E=l;if(i&&(b=b.replace(/\\/g,d)),b[0]===d&&b[1]===d){let j=b.indexOf(d,2);j===-1?(E=b.substring(2),b=d):(E=b.substring(2,j),b=b.substring(j)||d)}return new R("file",E,b,l,l)}static from(b){let E=new R(b.scheme,b.authority,b.path,b.query,b.fragment);return c(E,!0),E}toString(b=!1){return g(this,b)}toJSON(){return this}static revive(b){if(b){if(b instanceof v)return b;{let E=new R(b);return E._formatted=b.external,E._fsPath=b._sep===y?b.fsPath:null,E}}return b}}let y=i?1:void 0;class R extends v{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=m(this,!1)),this._fsPath}toString(b=!1){return b?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){let b={$mid:1};return this._fsPath&&(b.fsPath=this._fsPath,b._sep=y),this._formatted&&(b.external=this._formatted),this.path&&(b.path=this.path),this.scheme&&(b.scheme=this.scheme),this.authority&&(b.authority=this.authority),this.query&&(b.query=this.query),this.fragment&&(b.fragment=this.fragment),b}}let I={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function $(k,b,E){let j,P=-1;for(let C=0;C<k.length;C++){let D=k.charCodeAt(C);if(D>=97&&D<=122||D>=65&&D<=90||D>=48&&D<=57||D===45||D===46||D===95||D===126||b&&D===47||E&&D===91||E&&D===93||E&&D===58)P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j!==void 0&&(j+=k.charAt(C));else{j===void 0&&(j=k.substr(0,C));let N=I[D];N!==void 0?(P!==-1&&(j+=encodeURIComponent(k.substring(P,C)),P=-1),j+=N):P===-1&&(P=C)}}return P!==-1&&(j+=encodeURIComponent(k.substring(P))),j!==void 0?j:k}function Y(k){let b;for(let E=0;E<k.length;E++){let j=k.charCodeAt(E);j===35||j===63?(b===void 0&&(b=k.substr(0,E)),b+=I[j]):b!==void 0&&(b+=k[E])}return b!==void 0?b:k}function m(k,b){let E;return E=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?b?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,i&&(E=E.replace(/\//g,"\\")),E}function g(k,b){let E=b?Y:$,j="",{scheme:P,authority:C,path:D,query:N,fragment:M}=k;if(P&&(j+=P,j+=":"),(C||P==="file")&&(j+=d,j+=d),C){let q=C.indexOf("@");if(q!==-1){let z=C.substr(0,q);C=C.substr(q+1),q=z.lastIndexOf(":"),q===-1?j+=E(z,!1,!1):(j+=E(z.substr(0,q),!1,!1),j+=":",j+=E(z.substr(q+1),!1,!0)),j+="@"}C=C.toLowerCase(),q=C.lastIndexOf(":"),q===-1?j+=E(C,!1,!0):(j+=E(C.substr(0,q),!1,!0),j+=C.substr(q))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){let q=D.charCodeAt(1);q>=65&&q<=90&&(D=`/${String.fromCharCode(q+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){let q=D.charCodeAt(0);q>=65&&q<=90&&(D=`${String.fromCharCode(q+32)}:${D.substr(2)}`)}j+=E(D,!0,!1)}return N&&(j+="?",j+=E(N,!1,!1)),M&&(j+="#",j+=b?M:$(M,!1,!1)),j}function w(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+w(k.substr(3)):k}}let V=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function X(k){return k.match(V)?k.replace(V,(b=>w(b))):k}var it=n(975);let kt=it.posix||it,en="/";var vn;(function(k){k.joinPath=function(b,...E){return b.with({path:kt.join(b.path,...E)})},k.resolvePath=function(b,...E){let j=b.path,P=!1;j[0]!==en&&(j=en+j,P=!0);let C=kt.resolve(j,...E);return P&&C[0]===en&&!b.authority&&(C=C.substring(1)),b.with({path:C})},k.dirname=function(b){if(b.path.length===0||b.path===en)return b;let E=kt.dirname(b.path);return E.length===1&&E.charCodeAt(0)===46&&(E=""),b.with({path:E})},k.basename=function(b){return kt.basename(b.path)},k.extname=function(b){return kt.extname(b.path)}})(vn||(vn={})),wl=r})();var{URI:Ot,Utils:ne}=wl;import{CONFIG_FILE_NAME as jy}from"@redocly/openapi-core";var Ss={languageId:"yaml",filePattern:/\.ya?ml$/i},Ds={languageId:"json",filePattern:/\.json$/i},Cs=class{constructor(){this._fs=null;this._documentManager=null;this._findConfig=null;this._getRootWorkspaceFolderURI=null;this._scorecardStatus="pending";this.supportedLanguages=[Ss,Ds];this.registerConfigFinder(async t=>{if(this._fs)try{let n=ne.resolvePath(ne.dirname(Se(t)),jy);return await this._fs.exists(n)?n.toString():void 0}catch{return}}),this.registerRootWorkspaceFolderURIGetter(async()=>"")}registerFileSystemProvider(t){this._fs=t}registerDocumentsProvider(t){this._documentManager=t}registerConfigFinder(t){this._findConfig=t}registerRootWorkspaceFolderURIGetter(t){this._getRootWorkspaceFolderURI=t}registerRemoteScorecardAndPlugins(t){this._remoteScorecardAndPlugins=t}get remoteScorecardAndPlugins(){return this._remoteScorecardAndPlugins}get fs(){if(!this._fs)throw new Error("FileSystemProvider not registered.");return this._fs}get documents(){if(!this._documentManager)throw new Error("DocumentsProvider not registered.");return this._documentManager}get findConfig(){if(!this._findConfig)throw new Error("ConfigFinder not registered.");return this._findConfig}get getRootWorkspaceFolderURI(){if(!this._getRootWorkspaceFolderURI)throw new Error("RootWorkspaceFolderURIGetter not registered.");return this._getRootWorkspaceFolderURI}setScorecardStatus(t){this._scorecardStatus=t}get scorecardStatus(){return this._scorecardStatus}},Pe=new Cs;function Rs(e,t){return ne.resolvePath(Se(e)).toString()===ne.resolvePath(Se(t)).toString()}function Se(e){return Ot.parse(e)}function Pt(e){return Ot.parse(e).fsPath}function dr(e){let t=["https","http"],{scheme:n}=Ot.parse(e);return t.includes(n)}function fr(e){return ne.basename(Se(e))}async function kl(e,t="/"){let n=ne.resolvePath(Se(t));for(;e.path!=="/";)try{(await Pe.fs.stat(ne.resolvePath(n,e.path))).isDirectory()||(e=ne.dirname(e));break}catch{e=ne.dirname(e)}return e}import{BaseResolver as xx,Source as dd,readFileFromUrl as Px}from"@redocly/openapi-core";var pi=Ie(br(),1);import{isAbsoluteUrl as yx}from"@redocly/openapi-core";function td(e,t=100,n=!1){let r=new Map,i=new Map,o=new Map,s=new Map;function a(l){let d=i.get(l.uri),h=d?Date.now()-d:0;try{if(h<t&&h>=0)r.set(l.uri,setTimeout(()=>a(l),t-h));else if(r.delete(l.uri),i.delete(l.uri),!n){let v=s.get(l.uri),y=e(o.get(l.uri));v&&v.forEach(({resolve:R})=>R(y)),s.delete(l.uri)}}catch(v){let y=s.get(l.uri);y&&y.forEach(({reject:R})=>R(v)),s.delete(l.uri)}}function c(l){let d=r.get(l.uri),h=n&&!d;return i.set(l.uri,Date.now()),o.set(l.uri,l),new Promise((v,y)=>{let R=s.get(l.uri)||[];d||(s.set(l.uri,[...R,{resolve:v,reject:y}]),r.set(l.uri,setTimeout(()=>a(l),t))),h?v(e(o.get(l.uri))):s.set(l.uri,[...R,{resolve:v,reject:y}])})}return c}function ea(e){let t=new Set,n=r=>Array.isArray(n)?r.map(n):typeof r=="object"&&r!==null?t.has(r)?void 0:(t.add(r),Object.fromEntries(Object.entries(r).map(([i,o])=>[i,n(o)]))):r;return n(e)}function nd(e){return e==="$ref"}async function ta(e,t){let n=Ot.parse(t);return ne.joinPath(n,e).toString()}async function rd(e,t,n){for(let[r,{root:i}]of Object.entries(e??{}))if(await ta(i,n)===t)return r}function id(e){return typeof e=="string"}function di(e){return typeof e=="function"}function od(e){return e?.kind===pi.Kind.MAP}function na(e){return e?.kind===pi.Kind.MAPPING}function ra(e){return e?.kind===pi.Kind.SEQ}function vr(e,t){let n=t.singleQuoted?"'":'"';return`${n}${e}${n}`}function ia(e){return yx(e)||e.startsWith("file://")}var fi=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=cd(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),c=Math.max(i.end.line,0),l=this._lineOffsets,d=sd(r.text,!1,o);if(c-a===d.length)for(let v=0,y=d.length;v<y;v++)l[v+a+1]=d[v];else d.length<1e4?l.splice(a+1,c-a,...d):this._lineOffsets=l=l.slice(0,a+1).concat(d,l.slice(c+1));let h=r.text.length-(s-o);if(h!==0)for(let v=a+1+d.length,y=l.length;v<y;v++)l[v]=l[v]+h}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=sd(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&ad(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},gi;(function(e){function t(i,o,s,a){return new fi(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof fi)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=oa(o.map(bx),(d,h)=>{let v=d.range.start.line-h.range.start.line;return v===0?d.range.start.character-h.range.start.character:v}),c=0,l=[];for(let d of a){let h=i.offsetAt(d.range.start);if(h<c)throw new Error("Overlapping edit");h>c&&l.push(s.substring(c,h)),d.newText.length&&l.push(d.newText),c=i.offsetAt(d.range.end)}return l.push(s.substr(c)),l.join("")}e.applyEdits=r})(gi||(gi={}));function oa(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);oa(r,t),oa(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function sd(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ad(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function ad(e){return e===13||e===10}function cd(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function bx(e){let t=cd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var ud=new Map;function ld(e,t){return ud.set(e,t)}function pd(e){let t=[];for(let[n,r]of ud.entries())r.dependencyPaths.has(e)&&t.push({documentPath:n,durationMS:r.durationMS});return t}async function Qe(e){let t=Pe.documents.get(e);if(t)return t;let n=await Pe.fs.readFile(Se(e),"utf-8");return gi.create(e,"yaml",1,n)}function sa(e){return Ds.filePattern.test(e)}function vx(e){return Ss.filePattern.test(e)}var St=class extends xx{resolveExternalRef(t,n){return ia(n)?n:t&&ia(t)?new URL(n,t).href:t?ne.resolvePath(ne.dirname(Se(t)),n).toString():n}async loadExternalRef(t){if(dr(t)){let{body:n,mimeType:r}=await Px(t,{...this.config.http,customFetch:fetch});return new dd(t,n,r)}return new dd(t,(await Qe(t)).getText())}};var jt;async function md(e){let t=new St,n=e?await Pe.findConfig(e):void 0;return n===void 0?await fd(gd):(jt=await _x({configPath:n,externalRefResolver:t}),jt)}async function Tn(e){return jt||await md(e)}async function aa(e,t){try{return await md(e)}catch(n){return t?.createEventHandleLoadConfigError?.(n?.message),await fd(gd)}}function cn(e){return ca(e)?!0:!!jt?.resolvedRefMap&&[...jt.resolvedRefMap.keys()].map(n=>n.split("::")?.[1]?.split("#")[0]).some(n=>Rs(fr(e),n))}function ca(e){return jt?.configPath?Rs(e,jt.configPath):!1}var hd={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}},xr={type:"object",properties:hd,additionalProperties:!1},Cx={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Mt={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},hd),{like:xr,dislike:xr,satisfied:xr,neutral:xr,dissatisfied:xr}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Cx},additionalProperties:!1}},additionalProperties:!1};var Sx={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},ua={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},mi={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Mt,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ua,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Sx,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1};var wn={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Dx={type:"object",properties:{name:{type:"string"},items:wn,queries:wn,mutations:wn,subscriptions:wn,types:wn,directives:wn},required:["name"],additionalProperties:!1},Rx={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Dx},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},kn={type:"object",properties:{menu:{type:"object",properties:Object.assign({},Rx.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ua,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Mt,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"}},additionalProperties:!1};var Tx={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},wx={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},yd={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},kx={type:"object",properties:{beforeInfo:{type:"array",items:yd},end:{type:"array",items:yd}}},un={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},hi={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Ax={type:"object",properties:xi(un.properties,["light","dark"])},Ox={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},qx={type:"object",properties:{error:hi,info:hi,redirect:hi,success:hi}},Nx={type:"object",properties:An(un.properties,["dark"])},Ex={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},jx={type:"object",properties:{accent:un,border:Ax,error:un,http:Ox,primary:un,responses:qx,secondary:Nx,success:un,text:Ex,tonalOffset:{type:"number"},warning:un}},yi={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},Mx={type:"object",properties:{small:yi,medium:yi,large:yi,xlarge:yi}},ft={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Lx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:Mx})},bd={type:"object",properties:xi(ft.properties,["fontSize","lineHeight"])},Ix={type:"object",properties:{medium:bd,small:bd}},Fx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:Ix})},Ux={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Wx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},vd={type:"object",properties:{fullWidth:{type:"boolean"}}},Bx={type:"object",properties:{buttons:Lx,httpBadges:Fx,layoutControls:Ux,panels:Wx,tryItButton:vd,tryItSendButton:vd}},vi={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Hx={type:"object",properties:{maxWidth:vi}},zx={type:"object",properties:{maxWidth:vi,middlePanelMaxWidth:vi}},$x={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Hx,"three-panel":zx}},xd={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},Vx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:xd,defaultDetailsWidth:{type:"string"},examples:xd,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},_d={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},Yx={type:"object",properties:xi(_d.properties,["textTransform"])},Gx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Kx={type:"object",properties:Object.assign(Object.assign({},An(ft.properties,["fontWeight","lineHeight"])),{activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:_d,level1items:Yx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:Gx,textColor:{type:"string"},width:{type:"string"}})},bi={type:"object",properties:Object.assign(Object.assign({},ft.properties),{color:{type:"string"},transform:{type:"string"}})},Qx={type:"object",properties:Object.assign(Object.assign({},ft.properties),{backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}})},Jx={type:"object",properties:An(ft.properties,["fontSize"])},Xx={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Zx={type:"object",properties:Object.assign(Object.assign({code:Qx,fieldName:ft},xi(ft.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:bi,heading2:bi,heading3:bi,headings:Jx,lineHeight:{type:"string"},links:Xx,optimizeSpeed:{type:"boolean"},rightPanelHeading:bi,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},eP={type:"object",properties:Object.assign({color:{type:"string"}},An(ft.properties,["fontWeight"]))},tP={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:eP}},nP={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},rP={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Pd={type:"object",properties:{custom:{type:"string"}}},iP={type:"object",properties:{DownloadButton:Pd,NextSectionButton:Pd}},oP={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},sP={type:"object",properties:{borderRadius:{type:"string"}}},aP={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},cP={type:"object",properties:{breakpoints:vi,codeBlock:tP,colors:jx,components:Bx,layout:$x,logo:nP,fab:rP,overrides:iP,rightPanel:oP,schema:Vx,shape:sP,sidebar:Kx,spacing:aP,typography:Zx,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},uP={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Tx}},required:["languages"]},Cd={type:"object",properties:{theme:cP,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:uP,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:wx,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:kx,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function xi(e,t){return Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]))}function An(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>!t.includes(n)))}var Lt={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}},Pr={rules:Lt,oas2Rules:Lt,oas3_0Rules:Lt,oas3_1Rules:Lt,async2Rules:Lt,async3Rules:Lt,arazzo1Rules:Lt,overlay1Rules:Lt},_r={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}},Cr={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}};var Re={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Sd={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},la={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"top"},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}}}},pa={type:"array",items:Object.assign(Object.assign({},la),{properties:Object.assign(Object.assign({},la.properties),{items:{type:"array",items:la}})})},lP={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},pP={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},dP={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},fP={type:"object",properties:Object.assign({facets:dP},Re.properties),additionalProperties:!1},gP={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Pi={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},_i={type:"object",properties:Object.assign({items:pa},Re.properties),additionalProperties:!1},Ci={type:"object",additionalProperties:lP},Si={type:"object",properties:Object.assign({items:pa,copyrightText:{type:"string"},logo:Re},Re.properties),additionalProperties:!1},Di={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},Re.properties),additionalProperties:!1},Ri={type:"object",properties:{head:{type:"array",items:Sd},body:{type:"array",items:Sd}},additionalProperties:!1},Ti={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},wi={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:pP,filters:fP,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:gP}},Re.properties),additionalProperties:!1},ki={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},Re.properties),additionalProperties:!1},mP={type:"object",properties:Object.assign(Object.assign({},Re.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1},Ai={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},actions:mP},additionalProperties:!1},Oi={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},Re.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},Re.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1},qi={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["**/_partials/**"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},Re.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},Re.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},Re.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}},On=Object.assign(Object.assign({},mi),{properties:Object.assign(Object.assign({},mi.properties),Cd.properties)}),hP={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},yP={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},bP={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},vP={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},xP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},PP={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},_P={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},da={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},CP={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:da}},additionalProperties:!1,required:["trackingId"]},Ni={type:"object",properties:{adobe:hP,amplitude:yP,fullstory:bP,heap:vP,rudderstack:xP,segment:PP,gtm:_P,ga:CP}},Ei={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},Re.properties),additionalProperties:!1},ji={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Mi={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1,default:{}}}},additionalProperties:!1},SP={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},DP={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:SP},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:pa,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qn={type:"object",patternProperties:{".*":DP}},Li={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},Pr),_r),Cr),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}};var RP={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},TP={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},wP={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Dt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:TP},excludes:{type:"array",items:RP},filters:{type:"array",items:wP},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},kP={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},AP={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:kP},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},OP={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:AP,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},qP={type:"object",additionalProperties:OP},Ii={type:"object",properties:{entityTypes:qP,catalogs:{type:"object",properties:{all:Dt,services:Dt,domains:Dt,teams:Dt,users:Dt,apiDescriptions:Dt,dataSchemas:Dt,apiOperations:Dt},additionalProperties:Dt}},additionalProperties:!1};var Je={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Pi,navbar:_i,products:Ci,footer:Si,sidebar:Di,scripts:Ri,links:Ti,feedback:Mt,search:wi,colorMode:ki,navigation:Ai,codeSnippet:Oi,markdown:qi,openapi:On,graphql:kn,analytics:Ni,userMenu:Ei,versionPicker:ji,breadcrumbs:Mi,catalog:qn,entitiesCatalog:Ii,catalogClassic:qn,scorecard:Li},additionalProperties:!0};var ga="https://redocly.com/sso/teams",Nn;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(Nn||(Nn={}));var En;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(En||(En={}));var fa;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(fa||(fa={}));var ma=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy"];function Fi(e,t){return Object.fromEntries(Object.entries(e).map(([n,r])=>{if(n!==t)return typeof r!="object"||!r?[n,r]:Array.isArray(r)?[n,r.map(i=>typeof i=="object"?Fi(i,t):i)]:[n,Fi(r,t)]}).filter(Boolean))}var NP={type:"object",additionalProperties:{type:"string"}},EP={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Ui={type:"string",enum:["error","warn","off"]},jP={type:"object",additionalProperties:!1,properties:{schemaCheck:Ui,statusCodeCheck:Ui,contentTypeCheck:Ui,successCriteriaCheck:Ui}},MP={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},LP={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Dd={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[MP,LP]},inputs:NP,servers:EP,severity:jP},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1};var IP={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},FP={type:"object",properties:{type:{type:"string",const:Nn.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:IP,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},UP={type:"object",properties:{type:{type:"string",const:Nn.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:ga},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},WP={oneOf:[FP,UP],discriminator:{propertyName:"type"}},BP={type:"object",additionalProperties:WP},HP={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]},zP={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1},$P={type:"object",additionalProperties:zP,default:{}},ba={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:On,graphql:kn,theme:{type:"object",properties:{openapi:On,graphql:kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},Pr),_r),Cr),{extends:{type:"array",items:{type:"string"}}}),required:["root"]},VP={type:"object",additionalProperties:!0},YP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Rd={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1},Td={type:"object",properties:{title:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Rd},default:{llmstxt:Rd.default},additionalProperties:!1},GP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},ln={type:"object",additionalProperties:{type:"string"}},kd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ln,cms:ln,reunite:ln,features:{type:"object",properties:{aiSearch:ln},additionalProperties:!1},content:{type:"object",properties:{"**":ln},additionalProperties:ln}},additionalProperties:ln},KP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},QP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},JP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[KP,QP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},XP={type:"object",properties:{type:{type:"string",const:En.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},ZP={type:"object",properties:{type:{type:"string",const:En.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},ha={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[XP,ZP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},e_=Object.assign(Object.assign({},ha),{properties:Object.assign(Object.assign({},ha.properties),{type:{type:"string",const:"APIGEE_EDGE"}})}),t_={type:"object",oneOf:[ha,e_,JP],discriminator:{propertyName:"type"}},n_={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:t_}}},wd={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},r_={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ya={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:$P,seo:Td,rbac:kd,apiFunctions:GP,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:r_}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:ba},extends:{type:"array",items:{type:"string"}}},Pr),Cr),_r),{ssoDirect:BP,sso:HP,residency:{type:"string",pattern:"^https?://.*"},developerOnboarding:n_,removeAttribution:{type:"boolean"},i18n:wd,l10n:wd,metadata:VP,metadataGlobs:YP,ignore:{type:"array",items:{type:"string"}},theme:Je,reunite:Dd,logo:Pi,navbar:_i,products:Ci,footer:Si,sidebar:Di,scripts:Ri,links:Ti,feedback:Mt,search:wi,colorMode:ki,navigation:Ai,codeSnippet:Oi,markdown:qi,openapi:On,graphql:kn,analytics:Ni,userMenu:Ei,versionPicker:ji,breadcrumbs:Mi,catalog:qn,entitiesCatalog:Ii,catalogClassic:qn,scorecard:Li}),default:{redirects:{},seo:Td.default},additionalProperties:!0},i_=Object.assign(Object.assign({},Fi(ya,"default")),{additionalProperties:!1}),va=Object.assign(Object.assign({$id:"root-redocly-config"},ya),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},ya.properties),{env:{type:"object",additionalProperties:i_}}),default:{},additionalProperties:!1});var xa={type:"object",properties:{logo:Je.properties.logo,navbar:Je.properties.navbar,footer:Je.properties.footer,sidebar:Je.properties.sidebar,search:Je.properties.search,codeSnippet:Je.properties.codeSnippet,breadcrumbs:Je.properties.breadcrumbs,openapi:Je.properties.openapi,feedback:Je.properties.feedback,analytics:{type:"object",properties:{ga:da}}},additionalProperties:!0,default:{}},o_={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},xa.properties),{apis:{type:"object",additionalProperties:ba},theme:xa}),additionalProperties:!1};var s_={type:"object",properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},a_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},c_={type:"object",properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},u_={type:"object",properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"}},required:["specType","schema"],additionalProperties:!0};var l_={type:"object",properties:{slack:{type:"object",properties:{channels:{type:"array",items:{type:"object",properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1}}},required:["channels"],additionalProperties:!1}},additionalProperties:!1},p_={type:"object",properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},d_={type:"object",properties:{type:{type:"string",enum:ma},key:{type:"string",minLength:2,maxLength:100}},required:["type","key"],additionalProperties:!1},Sr={key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},title:{type:"string",minLength:2,maxLength:200},summary:{type:["string","null"],minLength:1,maxLength:500},tags:{type:["array","null"],items:{type:"string",minLength:1,maxLength:50}},git:{type:["array","null"],items:{type:"string"}},contact:{anyOf:[{type:"null"},l_]},links:{anyOf:[{type:"null"},{type:"array",items:p_}]},relations:{anyOf:[{type:"null"},{type:"array",items:d_}]}},hR={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"user"},metadata:s_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-operation"},metadata:c_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"data-schema"},metadata:u_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{const:"api-description"},metadata:a_}),required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",properties:Object.assign(Object.assign({},Sr),{type:{enum:["service","domain","team"]},metadata:{type:["object","null"],additionalProperties:!0}}),required:["key","title","type"],additionalProperties:!1}]};var Le=Ie(Qt(),1);import{getLineColLocation as P0,lintDocument as _0,makeDocumentFromString as hl,lintConfig as C0,detectSpec as S0,createConfigTypes as D0}from"@redocly/openapi-core";import{bundleDocument as f0,isPlainObject as g0,makeDocumentFromString as m0}from"@redocly/openapi-core";var Vh=new Map,as=new Map;function h0(e){return e?Array.from(e).map(([t,n])=>[t,ea(n)]):[]}async function gl(e,t){let n=await Tn(),r=new St(n.resolve),i=m0(e.getText(),e.uri),{bundle:o,problems:s,fileDependencies:a,rootType:c,refTypes:l}=await f0({document:i,config:n,externalRefResolver:r}),d=h0(l);l&&(as=new Map([...as,...l])),Vh.set(e.uri,{uri:e.uri,name:fr(e.uri),definition:g0(o.parsed)?o.parsed:{},rootType:c,refTypes:d,errors:t})}function y0(){return Array.from(Vh).map(([e,{definition:t,rootType:n,refTypes:r,errors:i}])=>({name:fr(e),uri:e,definition:t,rootType:n,refTypes:r,errors:i}))}function ml(e){return as.has(e)?as.get(e):null}import{createConfig as b0,lintDocument as v0}from"@redocly/openapi-core";async function Yh(e,t,n,r,i){let o=[];for(let s of n?.levels||[]){let a=typeof i=="string"?await x0(i):i,c=await b0({...s,plugins:a},{configPath:r}),l=await v0({document:e,externalRefResolver:t,config:c});o.push(...l.filter(({ignored:d})=>!d).map(d=>({...d,scorecardLevel:s.name})))}return o}async function x0(e){if(!e)return[];try{let t=typeof __dirname>"u"?"":__dirname.replaceAll(/\\/g,"/"),n=e.replaceAll("__redocly_dirname",`"${t}"`);return(await import(`data:text/javascript;base64,${btoa(n)}`)).default.map(a=>a())}catch(t){return console.error("Failed to load plugins module:",t.message),console.error(`
|
|
70
70
|
Plugins code preview:`,e.substring(0,500)+"..."),[]}}var R0=800,T0=5,yl=td(A0,R0);async function w0(e){let t=e.map(({documentPath:i})=>Se(i).toString()),n=await Tn(),r=await Pe.getRootWorkspaceFolderURI();for(let{root:i}of Object.values(n.resolvedConfig.apis??{})){let o=await ta(i,r);if(t.includes(o))return o}return t[0]}function k0(e){try{return S0(e),!0}catch{return!1}}async function A0(e){let t=e.uri,n=await Tn();if(cn(Pt(t))){let r=ca(Pt(t))?hl(e.getText(),t):hl(n.document?.source.body||"",n.document?.source.absoluteRef||""),i=new St,o=await C0({config:{document:r},externalRefResolver:i,externalConfigTypes:D0(va,n)}),s=[{uri:e.uri,diagnostics:[]}];return Gh(o,s),s}else{let r=pd(t),i=await w0(r||[]);i&&(e=await Qe(i),t=i);let o;try{o=hl(e.getText(),t)}catch{return[{uri:e.uri,diagnostics:[]}]}if(!k0(o.parsed))return[{uri:e.uri,diagnostics:[]}];let s=[];try{let a=new St(n.resolve),c=await Pe.getRootWorkspaceFolderURI(),l=await rd(n.resolvedConfig.apis??{},e.uri,c),d=Date.now(),h=[],v=[];try{v=(await _0({document:o,config:n.forAlias(l),externalRefResolver:a})).filter(({ignored:m})=>!m);let $=Pe.remoteScorecardAndPlugins?.scorecard||n.resolvedConfig.scorecard,Y=$&&Pe.scorecardStatus==="enabled"?await Yh(o,a,$,n.configPath,Pe.remoteScorecardAndPlugins?.plugins):[];h=[...v,...Y]}catch($){h.push({ruleId:"struct",suggest:[],severity:"error",message:`Error linting document: ${$.message}`,location:[{start:{line:1,col:1},end:{line:1,col:1},source:o.source}]})}let y=E0(v);gl(e,y);let R=Date.now()-d;s=[...new Set([e.uri,...[...a.getFiles()].map($=>Se($).toString())])].map($=>({uri:$,diagnostics:[]})),ld(t,{dependencyPaths:a.getFiles(),durationMS:R}),Gh(h,s)}catch(a){O0(e.uri,a,s)}return s}}function cs(){return Pe.documents.all().map(yl)}function O0(e,t,n){let r=n||[{uri:e,diagnostics:[]}];if(t.line&&t.col&&t.message){let i=t.source?.absoluteRef?Se(t.source.absoluteRef).toString():e,o=t.line-1,s=t.col-1,a=Le.Position.create(o,s),c=Le.Diagnostic.create(Le.Range.create(a,a),t.message,Le.DiagnosticSeverity.Error);Kh(i,c,r)}else t.message.includes("This doesn\u2019t look like an OpenAPI document")||console.error(t);return r}function Kh(e,t,n){let r=n.find(i=>i.uri===e);return r||(r={uri:e,diagnostics:[]},n.push(r)),r.diagnostics.push(t),n}function q0(e){return e.suggest.length===0?"":e.suggest.length===1?`
|
|
71
71
|
Did you mean: ${e.suggest[0]} ?`:`
|
|
72
72
|
Did you mean:
|